Repository navigation
v0.54.0: the pickle scanner reads joblib files to the end
pickle_model_scan 0.4.0 / model-file-scan 0.12.1. Made with AI agents working in the name of MV2 of Munim, Inc.
- joblib.dump files are walked the way joblib.load reads them: numeric arrays are skipped by the size their pickled shape and dtype give, object-dtype arrays are walked as nested pickles with their own memo. Before, the walk stopped at the first array.
- STACK_GLOBAL operands fetched from the pickle memo are resolved, which removes the PKL007 HIGH false alarm on honest protocol 4/5 pickles (paddle.save, scikit-learn, pandas).
- New PKL008 MEDIUM: a joblib array could not be sized, so the rest of the file was not analysed (reported, never a quiet stop).
- joblib's xz and lzma compression are now opened (standard library). lz4 stays PKL006 LOW (unscanned).
- New pickle_walk(data) reports the imports resolved, the byte offset reached and the arrays skipped.
Pre-registered check pkl-joblib-v1, 16 of 16 rows held (REALFILE_CHECK_PKL_JOBLIB_2026-11.md): imports matched joblib.load on all 18 honest files; 28 of 28 published joblib files walked to the last byte (a plain opcode walk read a median 0.4%); PKL007 on published files went from 24 of 30 to 0; the full suite (1,381 tests) passed.
A clean scan is not a guarantee of safety: joblib.load and pickle.load have no safe mode, so only load files from sources you trust. Apache-2.0.