{"success":true,"data":{"ext":"xpt","name":"SAS Transport File","description":"SAS Transport File (XPT) is a platform-independent data exchange format created and maintained by SAS Institute for moving datasets between SAS systems and other software. It is used in statistical analysis, clinical research, and regulatory data submissions, including exchanges with the U.S. Food and Drug Administration. The format is legacy but still supported; it stores tabular data only and does not contain executable content, so it is generally safe to handle.","mime":["application/x-sas-xport"],"risk_level":"Safe","signatures":[{"hex":"48 45 41 44 45 52 20 52 45 43 4F 52 44 2A 2A 2A","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"50 4B 03 04","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"58 50 43 4F 4D 0A 54 79 70 65 4C 69 62","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_xpt(file_path: str) -> bool:\n    \"\"\"Check if file is a valid XPT by magic bytes.\"\"\"\n    signature = bytes([0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x20, 0x52, 0x45, 0x43, 0x4F, 0x52, 0x44, 0x2A, 0x2A, 0x2A])\n    with open(file_path, \"rb\") as f:\n        return f.read(16) == signature","node":"function isXPT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x20, 0x52, 0x45, 0x43, 0x4F, 0x52, 0x44, 0x2A, 0x2A, 0x2A]);\n  return buffer.subarray(0, 16).equals(signature);\n}","go":"func IsXPT(data []byte) bool {\n    signature := []byte{0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x20, 0x52, 0x45, 0x43, 0x4F, 0x52, 0x44, 0x2A, 0x2A, 0x2A}\n    if len(data) < 16 {\n        return false\n    }\n    return bytes.Equal(data[:16], signature)\n}"}}}