FAX
application/octet-stream
Magic Bytes
Offset: 0
46 4F 52 4D 46 41 58 58
Amiga IFF FAX is a raster image standard developed by Electronic Arts and Commodore for the Amiga computer system. It was utilized for storing monochrome facsimile transmissions and scanned documents within the structured Interchange File Format container. Now considered an obsolete legacy format, it is found mostly in digital archives and poses no security risks because the specification does not support executable code or any malicious embedded scripts.
Validation Code
How to validate .fax files in Python
Python
def is_fax(file_path: str) -> bool:
"""Check if file is a valid FAX by magic bytes."""
signature = bytes([0x46, 0x4F, 0x52, 0x4D, 0x46, 0x41, 0x58, 0x58])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .fax files in Node.js
Node.js
function isFAX(buffer: Buffer): boolean {
const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D, 0x46, 0x41, 0x58, 0x58]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsFAX(data []byte) bool {
signature := []byte{0x46, 0x4F, 0x52, 0x4D, 0x46, 0x41, 0x58, 0x58}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/fax
curl https://filesignature.org/api/v1/fax