Downloads · 30 days
0
jeikei97/modelscan-npz-object-pickle-blindspot
modelscan-npz-object-pickle-blindspot is a machine learning model from jeikei97. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains a proof of concept for a scanner blind spot in .npz files containing object arrays.
Downloads · 30 days
0
Access
Public
Updated Jul 16, 2026
Repo size
465 B
Likes
0
Public
Click a slice to open those files.
.py3.1 KB · 37%
From the Hugging Face model README
This repository contains a proof of concept for a scanner blind spot in .npz files containing object arrays.
The included .npz file contains an object array with a harmless pickle payload.
Under NumPy:
numpy.load(..., allow_pickle=False) blocks object deserializationnumpy.load(..., allow_pickle=True) followed by access to the stored array triggers the payloadUnder modelscan in the tested environment:
.npy member successfullyThe main PoC file is:
artifacts/payload.npzThe payload is harmless. When the unsafe object-pickle path is reached, it creates a local marker file:
NPZ_MARKER.txtartifacts/payload.npzartifacts/reproduce_output.txtartifacts/sha256sums.txtreproduce.pymodelscan: protectai/modelscan @ 61fcec9c2a37c24c1fb12d84ede30fe248a364bdRun:
python reproduce.py
Expected results:
allow_pickle=False blocks object array accessallow_pickle=True plus obj["arr"] triggers the payloadmodelscan returns zero issuesmodelscan also reports an error for the inner .npy member instead of analyzing itFrom artifacts/reproduce_output.txt:
allow_pickle_false_access: ValueError Object arrays cannot be loaded when allow_pickle=Falseallow_pickle_true_array: [0]marker_after_allow_pickle_true: Truemodelscan_issue_count: 0modelscan_errors: contains a NumPy private API errorpayload.npz:arr.npyThis is a practical medium/low-value scanner blind spot for a less-common model format:
modelscan produces zero findings.joblib and .pt findings..npz payload remains effectively undetected under the tested scanner environment.