{"success":true,"data":{"ext":"ics","name":"ICS","description":"The iCalendar file format (ICS) is a text-based calendar and scheduling standard defined and maintained by the Internet Engineering Task Force (IETF). It is used to exchange event, meeting, and task information across calendar applications, email clients, and groupware systems. Because it is plain text, ICS files are generally safe to inspect, though imported events may include external links, alerts, or attachments that should be reviewed when received from untrusted sources.","mime":["text/calendar"],"risk_level":"Safe","signatures":[{"hex":"42 45 47 49 4E 3A 56 43 41 4C 45 4E 44 41 52","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["ifb","vcf","vcs"],"usage":{"python":"def is_ics(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ICS by magic bytes.\"\"\"\n    signature = bytes([0x42, 0x45, 0x47, 0x49, 0x4E, 0x3A, 0x56, 0x43, 0x41, 0x4C, 0x45, 0x4E, 0x44, 0x41, 0x52])\n    with open(file_path, \"rb\") as f:\n        return f.read(15) == signature","node":"function isICS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x42, 0x45, 0x47, 0x49, 0x4E, 0x3A, 0x56, 0x43, 0x41, 0x4C, 0x45, 0x4E, 0x44, 0x41, 0x52]);\n  return buffer.subarray(0, 15).equals(signature);\n}","go":"func IsICS(data []byte) bool {\n    signature := []byte{0x42, 0x45, 0x47, 0x49, 0x4E, 0x3A, 0x56, 0x43, 0x41, 0x4C, 0x45, 0x4E, 0x44, 0x41, 0x52}\n    if len(data) < 15 {\n        return false\n    }\n    return bytes.Equal(data[:15], signature)\n}"}}}