ShadowPickle evades 10 model scanners with 63% success, up to 50% higher than prior attacks
The authors claim their SHADOWPICKLE attacks achieve a 63% evasion rate across scanners, surpassing existing attacks by up to 50%
Security & privacy arXiv 20 Jul 2026 Attack Prototype evidence
Published as “ShadowPickle: Evading Machine Learning Model Scanners via Stealthy Pickle Deserialization Attacks”
Why it matters
Model hub operators and ML practitioners should augment their scanning pipelines with whitelist integrity checks, as current scanners can be bypassed by modestly crafted pickle attacks.
Summary
SHADOWPICKLE evades existing model hub scanners with a 63% evasion rate, and its Overwritten Module variant is the hardest to detect. The paper evaluates three new pickle deserialization attacks against five open-source scanners and four model hubs, showing mixed detection (e.g., ModelTracer catches most cases while static scanners miss all). It also introduces PICKLEBENCH, an extensible benchmark for testing scanner whitelist/blacklist coverage. The evidence is based on 3,000 malicious and 3,000 benign models from Hugging Face, but the paper does not provide a formal security proof or long-term deployment data.
What they found 2
- SHADOWPICKLE (Overwritten) achieves a 63% evasion rate across all evaluated scanners.
“It has an evasion rate of 63%, across all scanners.”
- Proposed defense patches raise WEIGHTS-ONLY F1-score by 19% and FICKLING F1-score by 5% (and reduce its false-positive rate by 16%).
“Our recommendations improve the effectiveness of WEIGHTS-ONLY by 19% (F1-score) and FICKLING by 5% (F1-score) and 16% (FPR), respectively.”
Caveats 5
- ModelTracer detects SHADOWPICKLE with a high F1-score, limiting evasion.
- SHADOWPICKLE evades MODELTRACER’s dynamic scanning in only 8.4% of the injected models.
- Attack Limitations: The victim is required to install the overwritten PyPI library.
- Attack Limitations: The victim is required to install the PyPI library needed for code execution.
- Attack Limitations: The victim can download the external module and model in the same directory or the attacker can make a script to add the external file to python’s sys.path.
What’s new here 3
- Three pickle deserialization attacks (Overwritten Module, PyPI Injected, External Module) that bypass both blacklist and whitelist defenses.
- An automatic, extensible benchmark (PICKLEBENCH) that injects these attacks into arbitrary benign PTMs for large-scale scanner evaluation.
- Demonstration that the Overwritten Module attack evades PyTorch’s default WEIGHTS-ONLY unpickler, a first for such attacks.