{"success":true,"data":{"ext":"gdb","name":"Firebird and Interbase database files","description":"The GDB format is a database file format used by the InterBase and Firebird relational database systems, originally developed by Borland and later maintained by the Firebird Project and Embarcadero. It is used to store application data for desktop, client-server, and embedded database deployments, and is accessed through database engines, administration tools, and development environments that support InterBase or Firebird. The format is generally considered safe, although as a live database file it may contain sensitive records; older InterBase-based files are part of a legacy lineage shared with Firebird.","mime":[],"risk_level":"Safe","signatures":[{"hex":"01 00 39 30","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"4D 73 52 63 66","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["fdb","db","dbf","mdf","accdb","mdb"],"usage":{"python":"def is_gdb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid GDB by magic bytes.\"\"\"\n    signature = bytes([0x01, 0x00, 0x39, 0x30])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isGDB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x01, 0x00, 0x39, 0x30]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsGDB(data []byte) bool {\n    signature := []byte{0x01, 0x00, 0x39, 0x30}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Databases"}}