ModelscanBypass NPZ Format
Security research demonstrating that modelscan v0.7.6/v0.8.8 does not scan .npz (NumPy compressed) files.
Vulnerability
modelscan's scan_numpy() function explicitly skips .npz files with the message "Scanning of .npz files is not implemented yet" (modelscan/tools/picklescanner.py line 221).
.npz files are ZIP archives containing .npy files. NumPy .npy files with dtype=object use pickle internally. When loaded with np.load(allow_pickle=True), the pickle payload executes.
Impact
A malicious .npz file can contain arbitrary code execution payloads that modelscan will never detect.
Steps to Reproduce
import numpy as np
# Load the model - triggers RCE
data = np.load("model.npz", allow_pickle=True)
arr = data['config'] # executes payload
modelscan Result
No issues found.
0 issues, 0 errors
For Authorized Security Research Only
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support