{"success":true,"data":{"ext":"cbor","name":"CBOR","description":"Concise Binary Object Representation (CBOR) is a binary data interchange format standardized and maintained by the IETF. It is used for compact serialization in web services, IoT devices, embedded systems, and applications that exchange structured data. CBOR is generally safe, but as with other serialized formats, malformed or untrusted input can cause parsing errors or resource exhaustion in poorly implemented decoders.","mime":["application/cbor"],"risk_level":"Safe","signatures":[{"hex":"D9 D9 F7","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":[],"usage":{"python":"def is_cbor(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CBOR by magic bytes.\"\"\"\n    signature = bytes([0xD9, 0xD9, 0xF7])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isCBOR(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xD9, 0xD9, 0xF7]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsCBOR(data []byte) bool {\n    signature := []byte{0xD9, 0xD9, 0xF7}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"}}}