{"success":true,"data":{"ext":"bag","name":"AOL and AIM buddy list file","description":"AOL and AIM buddy list file is a legacy contact-list format used by AOL Instant Messenger, maintained as part of AOL’s messaging ecosystem. It stored screen names, grouping information, and presence-related data for use in buddy list management within AOL and AIM clients. The format is generally safe to handle, but it is obsolete and primarily of historical interest; files from untrusted sources should still be treated cautiously.","mime":[],"risk_level":"Safe","signatures":[{"hex":"41 4F 4C 20 46 65 65 64 62 61 67","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["aby","art","dci","org"],"usage":{"python":"def is_bag(file_path: str) -> bool:\n    \"\"\"Check if file is a valid BAG by magic bytes.\"\"\"\n    signature = bytes([0x41, 0x4F, 0x4C, 0x20, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x67])\n    with open(file_path, \"rb\") as f:\n        return f.read(11) == signature","node":"function isBAG(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x41, 0x4F, 0x4C, 0x20, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x67]);\n  return buffer.subarray(0, 11).equals(signature);\n}","go":"func IsBAG(data []byte) bool {\n    signature := []byte{0x41, 0x4F, 0x4C, 0x20, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x67}\n    if len(data) < 11 {\n        return false\n    }\n    return bytes.Equal(data[:11], signature)\n}"}}}