{"success":true,"data":{"ext":"mdb","name":"Microsoft Access file","description":"Microsoft Access Database (MDB) is a proprietary database file format created by Microsoft for use with Microsoft Access and the Jet database engine. It is used to store tables, queries, forms, reports, and other application data in small to medium-sized desktop database applications. The format is largely legacy, having been superseded by newer Access database formats, and files from untrusted sources should still be handled carefully because they may contain macros or embedded code.","mime":["application/x-msaccess"],"risk_level":"Safe","signatures":[{"hex":"00 01 00 00 53 74 61 6E 64 61 72 64 20 4A 65 74 20 44 42","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"},{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/MicrosoftAccess.cs"}]},{"hex":"00 01 00 00 53 74 61 6E","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":"00 01 00 00 53 74 61 6E 64 61 72 64 20 41 43 45 20 44 42","offset":0,"sources":[{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/MicrosoftAccess.cs"}]}],"related":["accdb","mdf","db","dbf","fdb","gdb"],"usage":{"python":"def is_mdb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MDB by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x01, 0x00, 0x00, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x4A, 0x65, 0x74, 0x20, 0x44, 0x42])\n    with open(file_path, \"rb\") as f:\n        return f.read(19) == signature","node":"function isMDB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x01, 0x00, 0x00, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x4A, 0x65, 0x74, 0x20, 0x44, 0x42]);\n  return buffer.subarray(0, 19).equals(signature);\n}","go":"func IsMDB(data []byte) bool {\n    signature := []byte{0x00, 0x01, 0x00, 0x00, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x4A, 0x65, 0x74, 0x20, 0x44, 0x42}\n    if len(data) < 19 {\n        return false\n    }\n    return bytes.Equal(data[:19], signature)\n}"},"category":"Databases"}}