Skip to content

Supported ML Formats

Model FormatFile ExtensionsArbitrary Code ExecutionSuspicious FunctionsNetwork RequestsDenial of ServiceSuspicious File FormatDecompression VulnerabilitiesEmbedded PayloadsDirectory TraversalArbitrary Read AccessGraph Payload
Cloudpickle.pkl, .picklexxxxx
Dill.dillxxxxx
GGUF.ggufx
HDF5.h5, .hdf5xxxxxx
JobLib.joblibxxxxx
Keras.keras, .tfxx
NeMo.nemoxxxxxx
Numpy.npy, .npzxxxxx
ONNX.onnxxxx
Pytorch.pt, .bin, .zipxxxxx
Pickle.pklxxxxx
R.rds (plain and compressed)x
Safetensors.safetensorsxx
Skops.skopsx
Tensorflow.savedmodel, .tf, .pbx
Zip.zipx

Recognized File Types

The model scanner recognizes but does not scan the following common file types.

CategoryFile Types
Documentation.md (READMEs, release notes)
Code Files.py (scripts), .js (optional), .sh (shell scripts)
Config / Metadata.json, .yaml, .yml, .ini, .cfg
Data Files.txt, .csv, .tsv
Git Config Files.gitignore, .gitattrib
TAR.tar

Unsupported Types

If Model Scanner does not support, or is unable to recognize, the type of an input file, it will emit a scan result with empty detections and results.type key set to "unknown".

[
    {
        "detections": [],
        "end_time": 1717543001759,
        "file_pointer": "/cmd/modelscan-cli/main.go",
        "results": {
            "md5": "33d1ed57c6a93d5cd910fd721c9d016e",
            "sha256": "1739c813f09d2c90ad676d318832134c22864bc1d4bf4f272b9d7971a4cea007",
            "tlsh": "3b360f42d1a3d84e8853d4c5b971a5ce2ae5cf8f87425fa1bd51bc1d4e78a18f20c8be",
            "type": "unknown"
        },
        "scan_id": "1739c813f09d2c90ad676d318832134c22864bc1d4bf4f272b9d7971a4cea007",
        "start_time": 1717543001552,
        "status": "done"
    }
]