{"success":true,"data":{"ext":"sd7","name":"SD7","description":"SD7 is a SAS data file format developed and maintained by SAS Institute for storing structured datasets. It is used in SAS analytics workflows for statistical analysis, data preparation, reporting, and interchange between SAS applications. The format is generally safe, though as with any data file, content should be opened in trusted software; it is associated with legacy SAS storage conventions in some environments.","mime":["application/x-sas-data"],"risk_level":"Safe","signatures":[{"hex":"53 41 53 20 46 49 4C 45","offset":84,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["sas7bdat","sd2"],"usage":{"python":"def is_sd7(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SD7 by magic bytes at offset 84.\"\"\"\n    signature = bytes([0x53, 0x41, 0x53, 0x20, 0x46, 0x49, 0x4C, 0x45])\n    with open(file_path, \"rb\") as f:\n        f.seek(84)\n        return f.read(8) == signature","node":"function isSD7(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x53, 0x41, 0x53, 0x20, 0x46, 0x49, 0x4C, 0x45]);\n  if (buffer.length < 92) return false;\n  return buffer.subarray(84, 92).equals(signature);\n}","go":"func IsSD7(data []byte) bool {\n    signature := []byte{0x53, 0x41, 0x53, 0x20, 0x46, 0x49, 0x4C, 0x45}\n    if len(data) < 92 {\n        return false\n    }\n    return bytes.Equal(data[84:92], signature)\n}"}}}