ModelScan Nested Pickle Bypass

A novel technique that hides malicious pickled objects inside opaque BINBYTES blocks. ModelScan only inspects outer-layer GLOBAL opcodes, so the inner pickle (containing os.system, subprocess, etc.) is never scanned.

Bypass GLOBALs (what ModelScan sees)

  • importlib.import_module โ€” NOT in unsafe_globals
  • operator.methodcaller โ€” NOT in unsafe_globals

Hidden GLOBALs (inside BINBYTES, never inspected)

  • os.system โ€” full RCE
  • (or any other blocked module)

Verification

modelscan -p exploit_nested.joblib
# -> "No issues found!"

PoC Size

177 bytes

Format

Joblib (pickle-based, $4,000 MFV tier)

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support