Downloads · 30 days
0
xiaoyaoes/modelscan-bypass-ctypes-getitem
modelscan-bypass-ctypes-getitem 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. The card lists the license as mit.
PoC: Bypassing modelscan (protectai/modelscan) pickle scanner via ctypes.CDLL + operator.getitem.
Downloads · 30 days
0
Access
Public
Updated Jun 20, 2026
Repo size
130 B
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 62%
From the Hugging Face model README
PoC: Bypassing modelscan (protectai/modelscan) pickle scanner via ctypes.CDLL + operator.getitem.
Instead of using Python-level exec/eval (which modelscan blocks), this approach:
ctypes.CDLL('libc.so.6') to load the C standard librarylibc.system() via operator.getitem(libc, 'system') (uses __getitem__, not blocked)system(b'cmd') for arbitrary shell executionctypes_bypass.pkl — 130-byte pickle payload that executes arbitrary shell commands.