{"success":true,"data":{"ext":"udeb","name":"UDEB","description":"UDEB is a Debian installer package format created and maintained by the Debian Project for use with the Debian Installer. It is used to distribute small, installation-time components such as drivers, firmware, and setup utilities during operating system installation and recovery workflows. The format is specific to Debian-based systems and is generally considered safe, though its contents should still be obtained from trusted package repositories.","mime":["application/x-debian-package"],"risk_level":"Safe","signatures":[{"hex":"21 3C 61 72 63 68 3E 0A 64 65 62 69 61 6E 2D 62 69 6E 61 72 79","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":"21 3C 61 72 63 68 3E 0A 64 65 62 69 61 6E 2D 73 70 6C 69 74","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":["deb","lib"],"usage":{"python":"def is_udeb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid UDEB by magic bytes.\"\"\"\n    signature = bytes([0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E, 0x0A, 0x64, 0x65, 0x62, 0x69, 0x61, 0x6E, 0x2D, 0x62, 0x69, 0x6E, 0x61, 0x72, 0x79])\n    with open(file_path, \"rb\") as f:\n        return f.read(21) == signature","node":"function isUDEB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E, 0x0A, 0x64, 0x65, 0x62, 0x69, 0x61, 0x6E, 0x2D, 0x62, 0x69, 0x6E, 0x61, 0x72, 0x79]);\n  return buffer.subarray(0, 21).equals(signature);\n}","go":"func IsUDEB(data []byte) bool {\n    signature := []byte{0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E, 0x0A, 0x64, 0x65, 0x62, 0x69, 0x61, 0x6E, 0x2D, 0x62, 0x69, 0x6E, 0x61, 0x72, 0x79}\n    if len(data) < 21 {\n        return false\n    }\n    return bytes.Equal(data[:21], signature)\n}"}}}