AOL and AIM buddy list file
application/octet-stream
Magic Bytes
Offset: 0
41 4F 4C 44 42
The AOL and AIM buddy list file is a proprietary database format developed by America Online for use with its Instant Messenger platform. This file type was primarily utilized to store local user data, including contact lists, categorized group memberships, and client-side configuration settings. Following the official discontinuation of AIM services in 2017, this legacy format is considered obsolete and carries minimal security risk for modern computing environments.
Validation Code
How to validate .bag files in Python
Python
def is_bag(file_path: str) -> bool:
"""Check if file is a valid BAG by magic bytes."""
signature = bytes([0x41, 0x4F, 0x4C, 0x44, 0x42])
with open(file_path, "rb") as f:
return f.read(5) == signature
How to validate .bag files in Node.js
Node.js
function isBAG(buffer: Buffer): boolean {
const signature = Buffer.from([0x41, 0x4F, 0x4C, 0x44, 0x42]);
return buffer.subarray(0, 5).equals(signature);
}
Go
func IsBAG(data []byte) bool {
signature := []byte{0x41, 0x4F, 0x4C, 0x44, 0x42}
if len(data) < 5 {
return false
}
return bytes.Equal(data[:5], signature)
}
API Endpoint
GET
/api/v1/bag
curl https://filesignature.org/api/v1/bag