Downloads · 30 days
0
wulonchia/modelscan-pickle-bypass-poc
modelscan-pickle-bypass-poc is a machine learning model from wulonchia. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
⚠️ SECURITY RESEARCH ONLY - DO NOT LOAD THESE FILES ⚠️
Downloads · 30 days
0
Access
Public
Updated Apr 30, 2026
Repo size
205 B
Likes
0
Public
Click a slice to open those files.
.py5.4 KB · 65%
From the Hugging Face model README
⚠️ SECURITY RESEARCH ONLY - DO NOT LOAD THESE FILES ⚠️
This repository contains proof-of-concept files demonstrating a bypass of ModelScan's pickle scanner.
malicious_model.joblib — Uses distutils.spawn.spawn() to execute system commands (Python 3.9-3.11). Bypasses BOTH ModelScan and picklescan.cprofile_bypass.joblib — Uses cProfile.run() for arbitrary code execution. Bypasses ModelScan only.timeit_bypass.joblib — Uses timeit.timeit() for arbitrary code execution. Bypasses ModelScan only.poc_modelscan_bypass.py — Full PoC script with all vectors.pip install modelscan
modelscan -p malicious_model.joblib
# Expected: 0 issues detected (BYPASS!)
These files will execute arbitrary code when loaded with joblib.load() or pickle.load(), while completely evading ModelScan detection.