{"success":true,"data":{"ext":"deb","name":"DEB","description":"DEB is a binary software package format created and maintained by the Debian Project for Debian-based Linux distributions. It is used to distribute, install, update, and remove applications, libraries, and system components through package managers such as dpkg and APT. DEB files can execute installation scripts and modify system state during installation, so packages from untrusted sources should be reviewed carefully and obtained from trusted repositories.","mime":["application/x-debian-package"],"risk_level":"High","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"}]},{"hex":"21 3C 61 72 63 68 3E 0A","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["udeb","lib"],"usage":{"python":"def is_deb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DEB 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 isDEB(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 IsDEB(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}"}}}