{"success":true,"data":{"ext":"aff","name":"AFF","description":"Advanced Forensics Format (AFF) is an open digital forensics file format developed by Simson Garfinkel and maintained by the AFF project community. It is used to store disk images and related evidence for forensic acquisition, analysis, archiving, and courtroom presentation. AFF files are generally safe to handle, but, like other evidence containers, they may preserve large amounts of sensitive data and should be treated according to chain-of-custody and privacy requirements.","mime":[],"risk_level":"Safe","signatures":[{"hex":"41 46 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["e01"],"usage":{"python":"def is_aff(file_path: str) -> bool:\n    \"\"\"Check if file is a valid AFF by magic bytes.\"\"\"\n    signature = bytes([0x41, 0x46, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isAFF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x41, 0x46, 0x46]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsAFF(data []byte) bool {\n    signature := []byte{0x41, 0x46, 0x46}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"},"category":"Disk Images"}}