{"success":true,"data":{"ext":"sevenzip","name":"SevenZip","description":"SevenZip is a compressed archive file format developed by Igor Pavlov and maintained through the 7-Zip project. It is used to package and compress one or more files for software distribution, backups, and general data archiving, and is supported by 7-Zip and many compatible archiver applications. The format is generally safe, though like other archives it should be handled carefully when opened from untrusted sources because files inside may contain malware.","mime":["application/x-7z-compressed"],"risk_level":"Safe","signatures":[{"hex":"37 7A BC AF 27 1C","offset":0,"sources":[{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/SevenZip.cs"}]}],"related":["7z"],"usage":{"python":"def is_sevenzip(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SEVENZIP by magic bytes.\"\"\"\n    signature = bytes([0x37, 0x7A, 0xBC, 0xAF, 0x27, 0x1C])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isSEVENZIP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x37, 0x7A, 0xBC, 0xAF, 0x27, 0x1C]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsSEVENZIP(data []byte) bool {\n    signature := []byte{0x37, 0x7A, 0xBC, 0xAF, 0x27, 0x1C}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"}}}