Can a model file contain malware?
Yes, some formats can. Python's pickle module can execute arbitrary code while data is loaded, and OWASP's data and model poisoning page names malicious pickling as a way a model can run harmful code when it is loaded. Formats that store only tensors, such as safetensors, avoid that route.
Is safetensors safe?
Safetensors stores tensors without running code, unlike pickle. That protects the file format only. It does not tell you whether the model's behavior can be trusted, so you still need provenance checks and evaluation.
What is the difference between model scanning and model signing?
Scanning inspects a file for known risky content. Signing shows where a file came from and that it has not changed since it was signed. Use both: a clean scan says nothing about origin, and a valid signature says nothing about content.
What is an AI bill of materials?
It is a list of the datasets, models and settings that went into an AI system, with their dependencies. CycloneDX describes its ML-BOM as a way to capture this information for transparency and risk review.
Do scanners guarantee a model is safe?
No. A scanner finds known patterns, and Hugging Face says its own scans are not 100% foolproof. Treat a clean scan as one signal next to trusted sources, signing and sandboxed loading.
Which OWASP risks does this category cover?
We weigh LLM03 Supply Chain and LLM04 Data and Model Poisoning. Each tool page shows which of them a tool maps to and the documented capability behind it. The mapping is our analysis.