{"success":true,"data":{"ext":"ogx","name":"Ogg Vorbis Codec compressed Multimedia file","description":"Ogg Vorbis Codec compressed Multimedia file is an Ogg container format associated with the Xiph.Org Foundation, which develops and maintains the Ogg and Vorbis specifications. It is commonly used for digital audio distribution, streaming media, and playback in media players, game engines, and open-source multimedia applications. The format is generally safe to open, though—as with any media file—malformed or corrupted files may expose vulnerabilities in outdated decoders.","mime":["application/ogg"],"risk_level":"Safe","signatures":[{"hex":"4F 67 67 53","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"}]},{"hex":"4F 67 67 53 00 02 00 00 00 00 00 00 00 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["oga","ogg","ogv","drc","ogm","opus"],"usage":{"python":"def is_ogx(file_path: str) -> bool:\n    \"\"\"Check if file is a valid OGX by magic bytes.\"\"\"\n    signature = bytes([0x4F, 0x67, 0x67, 0x53])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isOGX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4F, 0x67, 0x67, 0x53]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsOGX(data []byte) bool {\n    signature := []byte{0x4F, 0x67, 0x67, 0x53}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}