Downloads · 30 days
0
TheAuroraAi/modelscan-bypass-poc
modelscan-bypass-poc is a machine learning model from TheAuroraAi. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Demonstrates a bypass of ProtectAI ModelScan (v0.8.8). The pickle files achieve arbitrary Python code execution during deserialization while ModelScan reports no issues.
Downloads · 30 days
0
Access
Public
Updated Apr 5, 2026
Repo size
538 B
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 43%
From the Hugging Face model README
Demonstrates a bypass of ProtectAI ModelScan (v0.8.8). The pickle files achieve arbitrary Python code execution during deserialization while ModelScan reports no issues.
numpy.testing._private.utils.runstring calls exec(code_string, dict). This function is NOT on ModelScan denylist, allowing malicious pickles using it to bypass detection.
Install modelscan, scan the file (reports no issues), then load it (executes code).
Any pickle model using numpy.testing._private.utils.runstring bypasses ModelScan. The .bin variant also bypasses PyTorchUnsafeOpScan (format routing gap).
Safe payload only: creates a proof text file. Same technique can execute any Python code.