SPSS Statistics

application/octet-stream

Safe

Magic Bytes

Offset: 0
57 4D 4D 50

The SPSS Statistics Script file is a proprietary format originally developed by SPSS Inc. and currently maintained by IBM for use in social science research. It is utilized for automating data management tasks, executing complex statistical procedures, and generating analytical reports within the SPSS software environment. As a legacy format primarily used in older versions of the software, it poses minimal security risks and is largely preserved for compatibility with archived datasets.

Extension

.sct

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .sct files in Python

Python
def is_sct(file_path: str) -> bool:
    """Check if file is a valid SCT by magic bytes."""
    signature = bytes([0x57, 0x4D, 0x4D, 0x50])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .sct files in Node.js

Node.js
function isSCT(buffer: Buffer): boolean {
  const signature = Buffer.from([0x57, 0x4D, 0x4D, 0x50]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsSCT(data []byte) bool {
    signature := []byte{0x57, 0x4D, 0x4D, 0x50}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

GET /api/v1/sct
curl https://filesignature.org/api/v1/sct

Related Formats