{"success":true,"data":{"ext":"kgb","name":"KGB archive","description":"KGB archive is a compressed archive format created for KGB Archiver by Tomasz Pawlak. It is used to bundle multiple files into a single package and reduce storage or transfer size, with support in KGB Archiver and a limited number of compatible extractors. The format is largely legacy, and some modern tools may only open it for extraction; as with any archive, files from untrusted sources should be scanned before use.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4B 47 42 5F 61 72 63 68 20 2D","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_kgb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid KGB by magic bytes.\"\"\"\n    signature = bytes([0x4B, 0x47, 0x42, 0x5F, 0x61, 0x72, 0x63, 0x68, 0x20, 0x2D])\n    with open(file_path, \"rb\") as f:\n        return f.read(10) == signature","node":"function isKGB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4B, 0x47, 0x42, 0x5F, 0x61, 0x72, 0x63, 0x68, 0x20, 0x2D]);\n  return buffer.subarray(0, 10).equals(signature);\n}","go":"func IsKGB(data []byte) bool {\n    signature := []byte{0x4B, 0x47, 0x42, 0x5F, 0x61, 0x72, 0x63, 0x68, 0x20, 0x2D}\n    if len(data) < 10 {\n        return false\n    }\n    return bytes.Equal(data[:10], signature)\n}"}}}