{"success":true,"data":{"ext":"sdb","name":"SDB","description":"SDB is a Microsoft Windows compatibility database format created and maintained by Microsoft for storing application shim and compatibility information. It is used by the operating system and related tools to apply fixes, redirects, and behavior adjustments for specific programs during installation or execution. The format is generally safe, though some shim databases have historically been used to modify program behavior and should be obtained from trusted sources.","mime":[],"risk_level":"Safe","signatures":[{"hex":"73 64 62 66","offset":8,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_sdb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SDB by magic bytes at offset 8.\"\"\"\n    signature = bytes([0x73, 0x64, 0x62, 0x66])\n    with open(file_path, \"rb\") as f:\n        f.seek(8)\n        return f.read(4) == signature","node":"function isSDB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x73, 0x64, 0x62, 0x66]);\n  if (buffer.length < 12) return false;\n  return buffer.subarray(8, 12).equals(signature);\n}","go":"func IsSDB(data []byte) bool {\n    signature := []byte{0x73, 0x64, 0x62, 0x66}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[8:12], signature)\n}"}}}