Intuit QuickBooks backup file
application/octet-stream
Magic Bytes
Offset: 0
46 41 58 43 4F 56 45 52 2D 56 45 52
The QuickBooks Backup (QBB) format is a proprietary archive file type developed by Intuit for its financial management software. It serves as a compressed snapshot of a company's financial data, enabling users to restore comprehensive accounting records, payroll information, and inventory logs after a system failure or data loss. While generally considered safe, these archives contain sensitive fiscal information and should be encrypted or password-protected using built-in software features to prevent unauthorized access.
Validation Code
How to validate .qbb files in Python
Python
def is_qbb(file_path: str) -> bool:
"""Check if file is a valid QBB by magic bytes."""
signature = bytes([0x46, 0x41, 0x58, 0x43, 0x4F, 0x56, 0x45, 0x52, 0x2D, 0x56, 0x45, 0x52])
with open(file_path, "rb") as f:
return f.read(12) == signature
How to validate .qbb files in Node.js
Node.js
function isQBB(buffer: Buffer): boolean {
const signature = Buffer.from([0x46, 0x41, 0x58, 0x43, 0x4F, 0x56, 0x45, 0x52, 0x2D, 0x56, 0x45, 0x52]);
return buffer.subarray(0, 12).equals(signature);
}
Go
func IsQBB(data []byte) bool {
signature := []byte{0x46, 0x41, 0x58, 0x43, 0x4F, 0x56, 0x45, 0x52, 0x2D, 0x56, 0x45, 0x52}
if len(data) < 12 {
return false
}
return bytes.Equal(data[:12], signature)
}
API Endpoint
GET
/api/v1/qbb
curl https://filesignature.org/api/v1/qbb