From 54145eddf52b8bb16dbc90728aee91eea83b22fa Mon Sep 17 00:00:00 2001 From: euisuh <55032583+euisuh@users.noreply.github.com> Date: Wed, 28 Oct 2026 00:35:40 +0900 Subject: [PATCH 1/2] fix: harness correctness, ruff + CI, regenerated results - opcode_baseline: unwrap torch zip containers; non-pickle files are unsupported, not errors (zip evasion previously scored as a scan error) - modelscan adapter: exit 3 (no supported files) is not an error - metrics: report [flagged,total] counts and scan-error tally - runner: fail on missing fixtures, strip absolute paths from details - report: show counts, scanner versions - add ruff, GitHub Actions CI (3.10, 3.12), tests for the above and manifest/generator/fixture consistency Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/ci.yml | 22 + Makefile | 2 +- corpus/_marker.py | 1 - corpus/generate.py | 1 - eval/metrics.py | 51 +- eval/report.py | 32 +- eval/runner.py | 13 +- pyproject.toml | 9 +- results/REPORT.md | 22 +- results/results.json | 1060 +++++++++++++++++++++++++++++---- results/verdicts.jsonl | 166 ++++-- scanners/modelscan_adapter.py | 3 +- scanners/opcode_baseline.py | 39 +- tests/test_corpus.py | 22 + tests/test_corpus_markers.py | 1 - tests/test_metrics.py | 17 + tests/test_scanners.py | 64 ++ tools/safety_lint.py | 1 - 18 files changed, 1301 insertions(+), 225 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 tests/test_corpus.py create mode 100644 tests/test_scanners.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9a605f6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: ci +on: + push: + branches: [main] + pull_request: +permissions: + contents: read +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python: ["3.10", "3.12"] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + - run: python -m pip install -e '.[dev]' + - run: ruff check . + - run: python tools/safety_lint.py corpus/ + - run: pytest -q diff --git a/Makefile b/Makefile index f44c7ac..d3ef8c5 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: check eval report check: - python3 tools/safety_lint.py corpus/ && pytest + python3 tools/safety_lint.py corpus/ && ruff check . && pytest eval: mkdir -p results diff --git a/corpus/_marker.py b/corpus/_marker.py index 16a5298..a8e3504 100644 --- a/corpus/_marker.py +++ b/corpus/_marker.py @@ -1,6 +1,5 @@ from pathlib import Path - CANARY_NAME = "modelscan-eval.canary" CANARY_CONTENT = "MODELscan-eval benign canary\n" diff --git a/corpus/generate.py b/corpus/generate.py index 236c40d..15e3d5d 100644 --- a/corpus/generate.py +++ b/corpus/generate.py @@ -14,7 +14,6 @@ import yaml - ROOT = Path(__file__).resolve().parents[1] if str(ROOT) not in sys.path: sys.path.insert(0, str(ROOT)) diff --git a/eval/metrics.py b/eval/metrics.py index 90302d1..d578da4 100644 --- a/eval/metrics.py +++ b/eval/metrics.py @@ -2,47 +2,40 @@ def compute_metrics(verdicts: list[dict], items: list[dict]) -> dict: + """Per-scanner rates plus raw counts. + + Skipped verdicts are excluded from denominators. Scan errors count as unflagged + (fail-open, as a user would experience them) and are tallied in `errors`. + `counts` holds [flagged, total] for each rate so tiny denominators stay visible. + """ item_by_id = {item["id"]: item for item in items} techniques = sorted({item["evasion"] for item in items if item.get("evasion")}) scanners = dict.fromkeys(verdict["scanner"] for verdict in verdicts) metrics = {} + def tally(selected: list[dict]) -> list[int]: + return [sum(bool(v["flagged"]) for v in selected), len(selected)] + + def rate(counts: list[int]) -> float | None: + return counts[0] / counts[1] if counts[1] else None + for scanner in scanners: usable = [ - verdict - for verdict in verdicts - if verdict["scanner"] == scanner - and verdict.get("status") != "skipped" - and verdict.get("item_id") in item_by_id + v for v in verdicts + if v["scanner"] == scanner and v.get("status") != "skipped" and v.get("item_id") in item_by_id ] + def label(v: dict) -> dict: + return item_by_id[v["item_id"]] - def rate(selected: list[dict]) -> float | None: - return sum(bool(verdict["flagged"]) for verdict in selected) / len(selected) if selected else None - - base = [ - verdict - for verdict in usable - if item_by_id[verdict["item_id"]]["label"] == "malicious" - and item_by_id[verdict["item_id"]].get("evasion") is None - ] - clean = [ - verdict - for verdict in usable - if item_by_id[verdict["item_id"]]["label"] == "clean" - ] + base = tally([v for v in usable if label(v)["label"] == "malicious" and label(v).get("evasion") is None]) + clean = tally([v for v in usable if label(v)["label"] == "clean"]) + evasion = {t: tally([v for v in usable if label(v).get("evasion") == t]) for t in techniques} metrics[scanner] = { "detection_rate": rate(base), "fpr": rate(clean), - "evasion_robustness_by_technique": { - technique: rate( - [ - verdict - for verdict in usable - if item_by_id[verdict["item_id"]].get("evasion") == technique - ] - ) - for technique in techniques - }, + "evasion_robustness_by_technique": {t: rate(c) for t, c in evasion.items()}, + "counts": {"detection": base, "fpr": clean, "evasion": evasion}, + "errors": sum(bool(v.get("error")) for v in usable), } return {"per_scanner": metrics} diff --git a/eval/report.py b/eval/report.py index 08cb551..c9810ac 100644 --- a/eval/report.py +++ b/eval/report.py @@ -2,13 +2,13 @@ import hashlib import json +from importlib.metadata import PackageNotFoundError, version from pathlib import Path import yaml from eval.metrics import compute_metrics - ROOT = Path(__file__).resolve().parents[1] RAW_PATH = ROOT / "results/verdicts.jsonl" RESULTS_PATH = ROOT / "results/results.json" @@ -16,8 +16,17 @@ MANIFEST_PATH = ROOT / "corpus/manifest.yaml" -def format_rate(value: float | None) -> str: - return "no data" if value is None else f"{value:.1%}" +def format_rate(value: float | None, counts: list[int] | None = None) -> str: + if value is None: + return "no data" + return f"{value:.1%} ({counts[0]}/{counts[1]})" if counts else f"{value:.1%}" + + +def scanner_version(scanner: str) -> str: + try: + return version(scanner) + except PackageNotFoundError: + return "n/a" def main() -> None: @@ -35,6 +44,8 @@ def main() -> None: "corpus_item_count": len(items), "available_scanners": available, "unavailable_scanners": unavailable, + # read from the environment running the report; run `make eval report` in one env + "scanner_versions": {scanner: scanner_version(scanner) for scanner in available if scanner != "opcode_baseline"}, }, "verdicts": verdicts, "metrics": metrics, @@ -50,14 +61,16 @@ def main() -> None: f"- Corpus: `sha256:{corpus_hash}` ({len(items)} items)", f"- Available scanners: {', '.join(f'`{scanner}`' for scanner in available) or 'none'}", f"- Unavailable scanners: {', '.join(f'`{scanner}`' for scanner in unavailable) or 'none'}", + *[f"- `{scanner}` version: {ver}" for scanner, ver in result["run_meta"]["scanner_versions"].items()], "", "## Leaderboard", "", - "| Scanner | Detection rate | False-positive rate |", - "|---|---:|---:|", + "| Scanner | Detection rate | False-positive rate | Scan errors |", + "|---|---:|---:|---:|", *[ - f"| {scanner} | {format_rate(metrics['per_scanner'][scanner]['detection_rate'])} | {format_rate(metrics['per_scanner'][scanner]['fpr'])} |" - for scanner in scanners + f"| {scanner} | {format_rate(m['detection_rate'], m['counts']['detection'])} " + f"| {format_rate(m['fpr'], m['counts']['fpr'])} | {m['errors']} |" + for scanner, m in metrics["per_scanner"].items() ], "", "## Evasion robustness", @@ -67,7 +80,10 @@ def main() -> None: *[ f"| {scanner} | " + " | ".join( - format_rate(metrics["per_scanner"][scanner]["evasion_robustness_by_technique"][technique]) + format_rate( + metrics["per_scanner"][scanner]["evasion_robustness_by_technique"][technique], + metrics["per_scanner"][scanner]["counts"]["evasion"][technique], + ) for technique in techniques ) + " |" diff --git a/eval/runner.py b/eval/runner.py index ea2b182..bad2b84 100644 --- a/eval/runner.py +++ b/eval/runner.py @@ -7,11 +7,10 @@ import yaml -from scanners.opcode_baseline import OpcodeBaseline from scanners.modelscan_adapter import ModelScanAdapter +from scanners.opcode_baseline import OpcodeBaseline from scanners.picklescan_adapter import PickleScanAdapter - ROOT = Path(__file__).resolve().parents[1] SCANNERS = { PickleScanAdapter.name: PickleScanAdapter, @@ -25,7 +24,15 @@ def run(scanner_name: str): if not adapter.available(): return None manifest = yaml.safe_load((ROOT / "corpus/manifest.yaml").read_text(encoding="utf-8")) - return [replace(adapter.scan(ROOT / item["path"]), item_id=item["id"]) for item in manifest["items"]] + missing = [item["path"] for item in manifest["items"] if not (ROOT / item["path"]).is_file()] + if missing: + raise FileNotFoundError(f"manifest fixtures missing (run corpus/generate.py): {missing}") + verdicts = [] + for item in manifest["items"]: + verdict = adapter.scan(ROOT / item["path"]) + # keep committed results free of machine-specific absolute paths + verdicts.append(replace(verdict, item_id=item["id"], detail=verdict.detail.replace(f"{ROOT}/", ""))) + return verdicts def main() -> None: diff --git a/pyproject.toml b/pyproject.toml index 2a40476..bf0bf9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,11 +6,18 @@ build-backend = "setuptools.build_meta" name = "modelscan-eval" version = "0.1.0" requires-python = ">=3.10" -dependencies = ["pytest", "PyYAML"] +dependencies = ["PyYAML"] [project.optional-dependencies] scanners = ["picklescan", "modelscan"] +dev = ["pytest", "ruff"] [tool.setuptools.packages.find] include = ["corpus*", "eval*", "scanners*"] namespaces = true + +[tool.ruff] +line-length = 140 + +[tool.ruff.lint] +select = ["E", "F", "I"] diff --git a/results/REPORT.md b/results/REPORT.md index 4354d61..a42cb4a 100644 --- a/results/REPORT.md +++ b/results/REPORT.md @@ -1,21 +1,23 @@ # modelscan-eval report - Corpus: `sha256:385b48c417f80e3c110e9e3bbfa54735b0e723f97369fe5d8ee94b5f5615bdd9` (41 items) -- Available scanners: `opcode_baseline` -- Unavailable scanners: `picklescan`, `modelscan` +- Available scanners: `picklescan`, `modelscan`, `opcode_baseline` +- Unavailable scanners: none +- `picklescan` version: 1.0.5 +- `modelscan` version: 0.8.8 ## Leaderboard -| Scanner | Detection rate | False-positive rate | -|---|---:|---:| -| picklescan | no data | no data | -| modelscan | no data | no data | -| opcode_baseline | 38.9% | 0.0% | +| Scanner | Detection rate | False-positive rate | Scan errors | +|---|---:|---:|---:| +| picklescan | 11.1% (2/18) | 0.0% (0/18) | 0 | +| modelscan | 0.0% (0/18) | 0.0% (0/18) | 0 | +| opcode_baseline | 44.4% (8/18) | 0.0% (0/18) | 0 | ## Evasion robustness | Scanner | indirect_aliased_global_import | nested_second_stage_payload | non_standard_reducer | opcode_level_obfuscation | protocol_framing_variance | |---|---:|---:|---:|---:|---:| -| picklescan | no data | no data | no data | no data | no data | -| modelscan | no data | no data | no data | no data | no data | -| opcode_baseline | 100.0% | 100.0% | 100.0% | 100.0% | 0.0% | +| picklescan | 100.0% (1/1) | 100.0% (1/1) | 0.0% (0/1) | 0.0% (0/1) | 0.0% (0/1) | +| modelscan | 100.0% (1/1) | 100.0% (1/1) | 0.0% (0/1) | 0.0% (0/1) | 0.0% (0/1) | +| opcode_baseline | 100.0% (1/1) | 100.0% (1/1) | 100.0% (1/1) | 100.0% (1/1) | 100.0% (1/1) | diff --git a/results/results.json b/results/results.json index 7dbad0b..395de0e 100644 --- a/results/results.json +++ b/results/results.json @@ -2,63 +2,895 @@ "metrics": { "per_scanner": { "modelscan": { - "detection_rate": null, + "counts": { + "detection": [ + 0, + 18 + ], + "evasion": { + "indirect_aliased_global_import": [ + 1, + 1 + ], + "nested_second_stage_payload": [ + 1, + 1 + ], + "non_standard_reducer": [ + 0, + 1 + ], + "opcode_level_obfuscation": [ + 0, + 1 + ], + "protocol_framing_variance": [ + 0, + 1 + ] + }, + "fpr": [ + 0, + 18 + ] + }, + "detection_rate": 0.0, + "errors": 0, "evasion_robustness_by_technique": { - "indirect_aliased_global_import": null, - "nested_second_stage_payload": null, - "non_standard_reducer": null, - "opcode_level_obfuscation": null, - "protocol_framing_variance": null + "indirect_aliased_global_import": 1.0, + "nested_second_stage_payload": 1.0, + "non_standard_reducer": 0.0, + "opcode_level_obfuscation": 0.0, + "protocol_framing_variance": 0.0 }, - "fpr": null + "fpr": 0.0 }, "opcode_baseline": { - "detection_rate": 0.3888888888888889, + "counts": { + "detection": [ + 8, + 18 + ], + "evasion": { + "indirect_aliased_global_import": [ + 1, + 1 + ], + "nested_second_stage_payload": [ + 1, + 1 + ], + "non_standard_reducer": [ + 1, + 1 + ], + "opcode_level_obfuscation": [ + 1, + 1 + ], + "protocol_framing_variance": [ + 1, + 1 + ] + }, + "fpr": [ + 0, + 18 + ] + }, + "detection_rate": 0.4444444444444444, + "errors": 0, "evasion_robustness_by_technique": { "indirect_aliased_global_import": 1.0, "nested_second_stage_payload": 1.0, "non_standard_reducer": 1.0, "opcode_level_obfuscation": 1.0, - "protocol_framing_variance": 0.0 + "protocol_framing_variance": 1.0 }, "fpr": 0.0 }, "picklescan": { - "detection_rate": null, + "counts": { + "detection": [ + 2, + 18 + ], + "evasion": { + "indirect_aliased_global_import": [ + 1, + 1 + ], + "nested_second_stage_payload": [ + 1, + 1 + ], + "non_standard_reducer": [ + 0, + 1 + ], + "opcode_level_obfuscation": [ + 0, + 1 + ], + "protocol_framing_variance": [ + 0, + 1 + ] + }, + "fpr": [ + 0, + 18 + ] + }, + "detection_rate": 0.1111111111111111, + "errors": 0, "evasion_robustness_by_technique": { - "indirect_aliased_global_import": null, - "nested_second_stage_payload": null, - "non_standard_reducer": null, - "opcode_level_obfuscation": null, - "protocol_framing_variance": null + "indirect_aliased_global_import": 1.0, + "nested_second_stage_payload": 1.0, + "non_standard_reducer": 0.0, + "opcode_level_obfuscation": 0.0, + "protocol_framing_variance": 0.0 }, - "fpr": null + "fpr": 0.0 } } }, "run_meta": { "available_scanners": [ + "picklescan", + "modelscan", "opcode_baseline" ], "corpus_item_count": 41, "corpus_version": "sha256:385b48c417f80e3c110e9e3bbfa54735b0e723f97369fe5d8ee94b5f5615bdd9", - "unavailable_scanners": [ - "picklescan", - "modelscan" - ] + "scanner_versions": { + "modelscan": "0.8.8", + "picklescan": "1.0.5" + }, + "unavailable_scanners": [] }, "verdicts": [ { - "scanner": "picklescan", - "status": "skipped" + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", + "duration_ms": 41.63391690235585, + "error": null, + "flagged": false, + "item_id": "malicious_reduce", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", + "duration_ms": 43.50216605234891, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_optimizer", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", + "duration_ms": 44.37820799648762, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_tokenizer", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", + "duration_ms": 42.42099996190518, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_tuple", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "corpus/fixtures/malicious_reduce_partial.pkl: dangerous import 'functools partial' FOUND\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 1\nSuspicious globals: 1\nDangerous globals: 1", + "duration_ms": 42.55733301397413, + "error": null, + "flagged": true, + "item_id": "malicious_reduce_partial", + "scanner": "picklescan", + "severity": "high" + }, + { + "detail": "corpus/fixtures/malicious_reduce_builtin_call.pkl: dangerous import 'operator methodcaller' FOUND\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 1\nSuspicious globals: 1\nDangerous globals: 1", + "duration_ms": 41.55370802618563, + "error": null, + "flagged": true, + "item_id": "malicious_reduce_builtin_call", + "scanner": "picklescan", + "severity": "high" + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", + "duration_ms": 40.62191699631512, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_state_dict", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", + "duration_ms": 40.19179102033377, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_torch_zip", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 44.11637503653765, + "error": null, + "flagged": false, + "item_id": "clean_state_dict", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 43.85354195255786, + "error": null, + "flagged": false, + "item_id": "clean_optimizer", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 52.79687501024455, + "error": null, + "flagged": false, + "item_id": "clean_tokenizer", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 46.800958923995495, + "error": null, + "flagged": false, + "item_id": "clean_training_args", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 43.79916691686958, + "error": null, + "flagged": false, + "item_id": "clean_tensor_shell", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 50.492624985054135, + "error": null, + "flagged": false, + "item_id": "clean_checkpoint", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 54.00758306495845, + "error": null, + "flagged": false, + "item_id": "clean_scheduler", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 55.937667028047144, + "error": null, + "flagged": false, + "item_id": "clean_torch_zip", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", + "duration_ms": 55.29516702517867, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_opcode_level_obfuscation", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "corpus/fixtures/malicious_reduce_indirect_aliased_global_import.pkl: dangerous import 'builtins getattr' FOUND\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 1\nSuspicious globals: 1\nDangerous globals: 1", + "duration_ms": 44.64745905715972, + "error": null, + "flagged": true, + "item_id": "malicious_reduce_indirect_aliased_global_import", + "scanner": "picklescan", + "severity": "high" + }, + { + "detail": "corpus/fixtures/malicious_reduce_nested_second_stage_payload.pkl: dangerous import '_pickle loads' FOUND\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 1\nSuspicious globals: 0\nDangerous globals: 1", + "duration_ms": 69.77587507572025, + "error": null, + "flagged": true, + "item_id": "malicious_reduce_nested_second_stage_payload", + "scanner": "picklescan", + "severity": "high" + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", + "duration_ms": 149.7255420545116, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_non_standard_reducer", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", + "duration_ms": 67.44250003248453, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_protocol_framing_variance", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/modeling_alpha.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 79.73658305127174, + "error": null, + "flagged": false, + "item_id": "malicious_modeling_alpha", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/modeling_beta.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 79.6114169061184, + "error": null, + "flagged": false, + "item_id": "malicious_modeling_beta", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/modeling_vision.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 52.17704095412046, + "error": null, + "flagged": false, + "item_id": "malicious_modeling_vision", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/tokenization_synthetic.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 57.91862495243549, + "error": null, + "flagged": false, + "item_id": "malicious_tokenizer_code", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/processing_synthetic.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 57.17699998058379, + "error": null, + "flagged": false, + "item_id": "malicious_processing", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/modeling_alpha_clean.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 60.61979103833437, + "error": null, + "flagged": false, + "item_id": "clean_modeling_alpha", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/modeling_beta_clean.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 63.48512496333569, + "error": null, + "flagged": false, + "item_id": "clean_modeling_beta", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/modeling_vision_clean.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 67.12020910345018, + "error": null, + "flagged": false, + "item_id": "clean_modeling_vision", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/tokenization_synthetic_clean.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 69.73641703370959, + "error": null, + "flagged": false, + "item_id": "clean_tokenizer_code", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/processing_synthetic_clean.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 62.58625001646578, + "error": null, + "flagged": false, + "item_id": "clean_processing", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/config_typosquat.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 46.262625022791326, + "error": null, + "flagged": false, + "item_id": "metadata_typosquat", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/config_lineage_spoof.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 51.03174992837012, + "error": null, + "flagged": false, + "item_id": "metadata_lineage_spoof", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/config_author_spoof.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 57.40383290685713, + "error": null, + "flagged": false, + "item_id": "metadata_author_spoof", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/config_namespace_spoof.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 67.39620806183666, + "error": null, + "flagged": false, + "item_id": "metadata_namespace_spoof", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/config_checkpoint_spoof.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 74.14620800409466, + "error": null, + "flagged": false, + "item_id": "metadata_checkpoint_spoof", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/config_alpha.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 58.42070793733001, + "error": null, + "flagged": false, + "item_id": "clean_metadata_alpha", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/config_beta.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 54.151542019099, + "error": null, + "flagged": false, + "item_id": "clean_metadata_beta", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/config_vision.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 46.8873749487102, + "error": null, + "flagged": false, + "item_id": "clean_metadata_vision", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/tokenizer_config.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 60.723916976712644, + "error": null, + "flagged": false, + "item_id": "clean_metadata_tokenizer", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "WARNING: could not parse corpus/fixtures/processor_config.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", + "duration_ms": 55.727917002514005, + "error": null, + "flagged": false, + "item_id": "clean_metadata_processor", + "scanner": "picklescan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.221940\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"malicious_reduce.pkl\"]}}, \n\"issues\": [], \"errors\": []}", + "duration_ms": 86.87904197722673, + "error": null, + "flagged": false, + "item_id": "malicious_reduce", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_optimizer.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_optimizer.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.306889\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_optimizer.pkl\"]}}, \"issues\": [], \"errors\": []}", + "duration_ms": 82.26270799059421, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_optimizer", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_tokenizer.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_tokenizer.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.383004\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_tokenizer.pkl\"]}}, \"issues\": [], \"errors\": []}", + "duration_ms": 74.61000001057982, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_tokenizer", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_tuple.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_tuple.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.456342\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_tuple.pkl\"]}}, \"issues\": [], \"errors\": []}", + "duration_ms": 74.7695000609383, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_tuple", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_partial.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_partial.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.531226\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_partial.pkl\"]}}, \"issues\": [], \"errors\": []}", + "duration_ms": 76.418292010203, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_partial", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_builtin_call.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_builtin_call.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.609824\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_builtin_call.pkl\"]}}, \"issues\": [], \"errors\": []}", + "duration_ms": 75.14770794659853, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_builtin_call", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_state_dict.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_state_dict.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.684085\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_state_dict.pkl\"]}}, \"issues\": [], \"errors\": []}", + "duration_ms": 74.19199997093529, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_state_dict", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_torch_zip.bin:archive/data.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_torch_zip.bin\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.758770\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_torch_zip.bin:archive/data.pkl\"]}}, \"issues\": [], \"errors\": \n[]}", + "duration_ms": 75.99116605706513, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_torch_zip", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_state_dict.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_state_dict.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.833182\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_state_dict.pkl\"]}}, \n\"issues\": [], \"errors\": []}", + "duration_ms": 73.18762491922826, + "error": null, + "flagged": false, + "item_id": "clean_state_dict", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_optimizer.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_optimizer.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.907842\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_optimizer.pkl\"]}}, \n\"issues\": [], \"errors\": []}", + "duration_ms": 80.67529194522649, + "error": null, + "flagged": false, + "item_id": "clean_optimizer", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_tokenizer.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_tokenizer.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.998496\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_tokenizer.pkl\"]}}, \n\"issues\": [], \"errors\": []}", + "duration_ms": 85.33641695976257, + "error": null, + "flagged": false, + "item_id": "clean_tokenizer", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_training_args.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_training_args.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.079392\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_training_args.pkl\"]}}, \n\"issues\": [], \"errors\": []}", + "duration_ms": 82.5856669107452, + "error": null, + "flagged": false, + "item_id": "clean_training_args", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_tensor_shell.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_tensor_shell.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.158369\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_tensor_shell.pkl\"]}}, \n\"issues\": [], \"errors\": []}", + "duration_ms": 78.22012493852526, + "error": null, + "flagged": false, + "item_id": "clean_tensor_shell", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_checkpoint.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_checkpoint.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.233882\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_checkpoint.pkl\"]}}, \n\"issues\": [], \"errors\": []}", + "duration_ms": 74.16966697201133, + "error": null, + "flagged": false, + "item_id": "clean_checkpoint", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_scheduler.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_scheduler.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.309349\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_scheduler.pkl\"]}}, \n\"issues\": [], \"errors\": []}", + "duration_ms": 76.34487503673881, + "error": null, + "flagged": false, + "item_id": "clean_scheduler", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_torch_zip.bin:archive/data.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_torch_zip.bin\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.387909\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"clean_torch_zip.bin:archive/data.pkl\"]}}, \"issues\": [], \"errors\": []}", + "duration_ms": 79.32200003415346, + "error": null, + "flagged": false, + "item_id": "clean_torch_zip", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_opcode_level_obfuscation.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_opcode_level_obfuscation.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.466622\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_opcode_level_obfuscation.pkl\"]}}, \"issues\": [], \"errors\": []}", + "duration_ms": 78.51400005165488, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_opcode_level_obfuscation", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_indirect_aliased_global_import.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 1}, \"total_issues\": 1, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_indirect_aliased_global_import.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.553058\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_indirect_aliased_global_import.pkl\"]}}, \"issues\": \n[{\"description\": \"Use of unsafe operator 'getattr' from module 'builtins'\", \n\"operator\": \"getattr\", \"module\": \"builtins\", \"source\": \n\"malicious_reduce_indirect_aliased_global_import.pkl\", \"scanner\": \n\"modelscan.scanners.PickleUnsafeOpScan\", \"severity\": \"CRITICAL\"}], \"errors\": []}", + "duration_ms": 89.22050008550286, + "error": null, + "flagged": true, + "item_id": "malicious_reduce_indirect_aliased_global_import", + "scanner": "modelscan", + "severity": "high" + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_nested_second_stage_payload.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 1}, \"total_issues\": 1, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_nested_second_stage_payload.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.635461\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_nested_second_stage_payload.pkl\"]}}, \"issues\": \n[{\"description\": \"Use of unsafe operator 'loads' from module '_pickle'\", \n\"operator\": \"loads\", \"module\": \"_pickle\", \"source\": \n\"malicious_reduce_nested_second_stage_payload.pkl\", \"scanner\": \n\"modelscan.scanners.PickleUnsafeOpScan\", \"severity\": \"CRITICAL\"}], \"errors\": []}", + "duration_ms": 80.43158298823982, + "error": null, + "flagged": true, + "item_id": "malicious_reduce_nested_second_stage_payload", + "scanner": "modelscan", + "severity": "high" + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_non_standard_reducer.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_non_standard_reducer.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.713188\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_non_standard_reducer.pkl\"]}}, \"issues\": [], \"errors\": []}", + "duration_ms": 74.99883393757045, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_non_standard_reducer", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_protocol_framing_variance.bin:archive/data.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_protocol_framing_variance.bin\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.790383\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_protocol_framing_variance.bin:archive/data.pkl\"]}}, \"issues\":\n[], \"errors\": []}", + "duration_ms": 79.65054095257074, + "error": null, + "flagged": false, + "item_id": "malicious_reduce_protocol_framing_variance", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_alpha.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.870497\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 80.18504199571908, + "error": null, + "flagged": false, + "item_id": "malicious_modeling_alpha", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_beta.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.949705\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 79.48758301790804, + "error": null, + "flagged": false, + "item_id": "malicious_modeling_beta", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_vision.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.030744\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 78.0950830085203, + "error": null, + "flagged": false, + "item_id": "malicious_modeling_vision", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/tokenization_synthetic.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.105376\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 74.74333397112787, + "error": null, + "flagged": false, + "item_id": "malicious_tokenizer_code", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/processing_synthetic.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.181299\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 75.16229199245572, + "error": null, + "flagged": false, + "item_id": "malicious_processing", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_alpha_clean.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.255689\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 74.29575000423938, + "error": null, + "flagged": false, + "item_id": "clean_modeling_alpha", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_beta_clean.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.329057\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 73.16987495869398, + "error": null, + "flagged": false, + "item_id": "clean_modeling_beta", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_vision_clean.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.402390\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 73.98166693747044, + "error": null, + "flagged": false, + "item_id": "clean_modeling_vision", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/tokenization_synthetic_clean.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.477903\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 76.04341697879136, + "error": null, + "flagged": false, + "item_id": "clean_tokenizer_code", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/processing_synthetic_clean.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.552911\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 74.75454197265208, + "error": null, + "flagged": false, + "item_id": "clean_processing", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_typosquat.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.629085\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 74.84275009483099, + "error": null, + "flagged": false, + "item_id": "metadata_typosquat", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_lineage_spoof.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.702031\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 73.4836250776425, + "error": null, + "flagged": false, + "item_id": "metadata_lineage_spoof", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_author_spoof.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.776728\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 74.52300004661083, + "error": null, + "flagged": false, + "item_id": "metadata_author_spoof", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_namespace_spoof.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.850533\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 75.34945802763104, + "error": null, + "flagged": false, + "item_id": "metadata_namespace_spoof", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_checkpoint_spoof.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.928150\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 75.5743330810219, + "error": null, + "flagged": false, + "item_id": "metadata_checkpoint_spoof", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_alpha.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:31.001400\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 73.66045797243714, + "error": null, + "flagged": false, + "item_id": "clean_metadata_alpha", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_beta.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:31.076154\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 74.856249964796, + "error": null, + "flagged": false, + "item_id": "clean_metadata_beta", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_vision.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:31.151669\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 79.92883305996656, + "error": null, + "flagged": false, + "item_id": "clean_metadata_vision", + "scanner": "modelscan", + "severity": null + }, + { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/tokenizer_config.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:31.233187\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 75.9620419703424, + "error": null, + "flagged": false, + "item_id": "clean_metadata_tokenizer", + "scanner": "modelscan", + "severity": null }, { + "detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/processor_config.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:31.307104\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", + "duration_ms": 74.52687504701316, + "error": null, + "flagged": false, + "item_id": "clean_metadata_processor", "scanner": "modelscan", - "status": "skipped" + "severity": null }, { "detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", - "duration_ms": 0.046542001655325294, + "duration_ms": 0.108166947029531, "error": null, "flagged": true, "item_id": "malicious_reduce", @@ -67,7 +899,7 @@ }, { "detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", - "duration_ms": 0.03137500607408583, + "duration_ms": 0.04745798651129007, "error": null, "flagged": true, "item_id": "malicious_reduce_optimizer", @@ -76,7 +908,7 @@ }, { "detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", - "duration_ms": 0.027292000595480204, + "duration_ms": 0.045375083573162556, "error": null, "flagged": true, "item_id": "malicious_reduce_tokenizer", @@ -85,7 +917,7 @@ }, { "detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", - "duration_ms": 0.023290995159186423, + "duration_ms": 0.03483297768980265, "error": null, "flagged": true, "item_id": "malicious_reduce_tuple", @@ -94,7 +926,7 @@ }, { "detail": "dangerous opcodes: STACK_GLOBAL, STACK_GLOBAL, REDUCE, REDUCE", - "duration_ms": 0.024958004360087216, + "duration_ms": 0.0391670037060976, "error": null, "flagged": true, "item_id": "malicious_reduce_partial", @@ -103,7 +935,7 @@ }, { "detail": "dangerous opcodes: STACK_GLOBAL, REDUCE, STACK_GLOBAL, REDUCE", - "duration_ms": 0.023500004317611456, + "duration_ms": 0.037958030588924885, "error": null, "flagged": true, "item_id": "malicious_reduce_builtin_call", @@ -112,7 +944,7 @@ }, { "detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", - "duration_ms": 0.022374995751306415, + "duration_ms": 0.04233303479850292, "error": null, "flagged": true, "item_id": "malicious_reduce_state_dict", @@ -120,17 +952,17 @@ "severity": "high" }, { - "detail": "scan failed", - "duration_ms": 0.025083005311898887, - "error": "'utf-8' codec can't decode byte 0xb1 in position 13: invalid start byte", - "flagged": false, + "detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", + "duration_ms": 0.35550002939999104, + "error": null, + "flagged": true, "item_id": "malicious_reduce_torch_zip", "scanner": "opcode_baseline", - "severity": null + "severity": "high" }, { "detail": "no dangerous opcodes", - "duration_ms": 0.02370899892412126, + "duration_ms": 0.0426670303568244, "error": null, "flagged": false, "item_id": "clean_state_dict", @@ -139,7 +971,7 @@ }, { "detail": "no dangerous opcodes", - "duration_ms": 0.022375010303221643, + "duration_ms": 0.03470899537205696, "error": null, "flagged": false, "item_id": "clean_optimizer", @@ -148,7 +980,7 @@ }, { "detail": "no dangerous opcodes", - "duration_ms": 0.021624990040436387, + "duration_ms": 0.033082906156778336, "error": null, "flagged": false, "item_id": "clean_tokenizer", @@ -157,7 +989,7 @@ }, { "detail": "no dangerous opcodes", - "duration_ms": 0.020749997929669917, + "duration_ms": 0.03224995452910662, "error": null, "flagged": false, "item_id": "clean_training_args", @@ -166,7 +998,7 @@ }, { "detail": "no dangerous opcodes", - "duration_ms": 0.022582986275665462, + "duration_ms": 0.034125056117773056, "error": null, "flagged": false, "item_id": "clean_tensor_shell", @@ -175,7 +1007,7 @@ }, { "detail": "no dangerous opcodes", - "duration_ms": 0.021333005861379206, + "duration_ms": 0.032125040888786316, "error": null, "flagged": false, "item_id": "clean_checkpoint", @@ -184,7 +1016,7 @@ }, { "detail": "no dangerous opcodes", - "duration_ms": 0.02066700835712254, + "duration_ms": 0.030125025659799576, "error": null, "flagged": false, "item_id": "clean_scheduler", @@ -192,9 +1024,9 @@ "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.020958003005944192, - "error": "'utf-8' codec can't decode byte 0xf0 in position 14: invalid continuation byte", + "detail": "no dangerous opcodes", + "duration_ms": 0.07083301898092031, + "error": null, "flagged": false, "item_id": "clean_torch_zip", "scanner": "opcode_baseline", @@ -202,7 +1034,7 @@ }, { "detail": "dangerous opcodes: GLOBAL, REDUCE", - "duration_ms": 0.506000011228025, + "duration_ms": 0.14062493573874235, "error": null, "flagged": true, "item_id": "malicious_reduce_opcode_level_obfuscation", @@ -211,7 +1043,7 @@ }, { "detail": "dangerous opcodes: GLOBAL, GLOBAL, REDUCE, REDUCE, REDUCE", - "duration_ms": 0.03445800393819809, + "duration_ms": 0.04491698928177357, "error": null, "flagged": true, "item_id": "malicious_reduce_indirect_aliased_global_import", @@ -220,7 +1052,7 @@ }, { "detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", - "duration_ms": 0.025832996470853686, + "duration_ms": 0.03691692836582661, "error": null, "flagged": true, "item_id": "malicious_reduce_nested_second_stage_payload", @@ -229,7 +1061,7 @@ }, { "detail": "dangerous opcodes: GLOBAL, REDUCE", - "duration_ms": 0.02429200685583055, + "duration_ms": 0.038708909414708614, "error": null, "flagged": true, "item_id": "malicious_reduce_non_standard_reducer", @@ -237,189 +1069,189 @@ "severity": "high" }, { - "detail": "scan failed", - "duration_ms": 0.021499989088624716, - "error": "'utf-8' codec can't decode byte 0xb1 in position 13: invalid start byte", - "flagged": false, + "detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", + "duration_ms": 0.06262492388486862, + "error": null, + "flagged": true, "item_id": "malicious_reduce_protocol_framing_variance", "scanner": "opcode_baseline", - "severity": null + "severity": "high" }, { - "detail": "scan failed", - "duration_ms": 0.01999999221879989, - "error": "at position 0, opcode b'\"' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0026669586077332497, + "error": null, "flagged": false, "item_id": "malicious_modeling_alpha", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.01895800232887268, - "error": "at position 0, opcode b'\"' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0020419247448444366, + "error": null, "flagged": false, "item_id": "malicious_modeling_beta", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.018457998521625996, - "error": "at position 0, opcode b'\"' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.00200001522898674, + "error": null, "flagged": false, "item_id": "malicious_modeling_vision", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.01812499249354005, - "error": "at position 0, opcode b'\"' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0018330756574869156, + "error": null, "flagged": false, "item_id": "malicious_tokenizer_code", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.01779200101736933, - "error": "at position 0, opcode b'\"' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0018329592421650887, + "error": null, "flagged": false, "item_id": "malicious_processing", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.018082995666190982, - "error": "at position 0, opcode b'\"' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0019159633666276932, + "error": null, "flagged": false, "item_id": "clean_modeling_alpha", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.01754099503159523, - "error": "at position 0, opcode b'\"' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0019170111045241356, + "error": null, "flagged": false, "item_id": "clean_modeling_beta", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.0177919864654541, - "error": "at position 0, opcode b'\"' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0017920974642038345, + "error": null, "flagged": false, "item_id": "clean_modeling_vision", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.01733399403747171, - "error": "at position 0, opcode b'\"' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0017910497263073921, + "error": null, "flagged": false, "item_id": "clean_tokenizer_code", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.021500003640539944, - "error": "at position 0, opcode b'\"' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0018330756574869156, + "error": null, "flagged": false, "item_id": "clean_processing", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.017583995941095054, - "error": "at position 0, opcode b'{' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.00208395067602396, + "error": null, "flagged": false, "item_id": "metadata_typosquat", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.017915997887030244, - "error": "at position 0, opcode b'{' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0017499551177024841, + "error": null, "flagged": false, "item_id": "metadata_lineage_spoof", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.01750000228639692, - "error": "at position 0, opcode b'{' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.001708976924419403, + "error": null, "flagged": false, "item_id": "metadata_author_spoof", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.017915997887030244, - "error": "at position 0, opcode b'{' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0018749851733446121, + "error": null, "flagged": false, "item_id": "metadata_namespace_spoof", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.018042002920992672, - "error": "at position 0, opcode b'{' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.001750071533024311, + "error": null, "flagged": false, "item_id": "metadata_checkpoint_spoof", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.016833000699989498, - "error": "at position 0, opcode b'{' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0018749851733446121, + "error": null, "flagged": false, "item_id": "clean_metadata_alpha", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.017708996892906725, - "error": "at position 0, opcode b'{' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.00200001522898674, + "error": null, "flagged": false, "item_id": "clean_metadata_beta", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.017583006410859525, - "error": "at position 0, opcode b'{' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0017919810488820076, + "error": null, "flagged": false, "item_id": "clean_metadata_vision", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.017625003238208592, - "error": "at position 0, opcode b'{' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0018338905647397041, + "error": null, "flagged": false, "item_id": "clean_metadata_tokenizer", "scanner": "opcode_baseline", "severity": null }, { - "detail": "scan failed", - "duration_ms": 0.016833000699989498, - "error": "at position 0, opcode b'{' unknown", + "detail": "unsupported format: not a pickle file", + "duration_ms": 0.0017919810488820076, + "error": null, "flagged": false, "item_id": "clean_metadata_processor", "scanner": "opcode_baseline", diff --git a/results/verdicts.jsonl b/results/verdicts.jsonl index a5c3d56..39d7d55 100644 --- a/results/verdicts.jsonl +++ b/results/verdicts.jsonl @@ -1,43 +1,123 @@ -{"scanner": "picklescan", "status": "skipped"} -{"scanner": "modelscan", "status": "skipped"} -{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.046542001655325294, "error": null, "flagged": true, "item_id": "malicious_reduce", "scanner": "opcode_baseline", "severity": "high"} -{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.03137500607408583, "error": null, "flagged": true, "item_id": "malicious_reduce_optimizer", "scanner": "opcode_baseline", "severity": "high"} -{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.027292000595480204, "error": null, "flagged": true, "item_id": "malicious_reduce_tokenizer", "scanner": "opcode_baseline", "severity": "high"} -{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.023290995159186423, "error": null, "flagged": true, "item_id": "malicious_reduce_tuple", "scanner": "opcode_baseline", "severity": "high"} -{"detail": "dangerous opcodes: STACK_GLOBAL, STACK_GLOBAL, REDUCE, REDUCE", "duration_ms": 0.024958004360087216, "error": null, "flagged": true, "item_id": "malicious_reduce_partial", "scanner": "opcode_baseline", "severity": "high"} -{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE, STACK_GLOBAL, REDUCE", "duration_ms": 0.023500004317611456, "error": null, "flagged": true, "item_id": "malicious_reduce_builtin_call", "scanner": "opcode_baseline", "severity": "high"} -{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.022374995751306415, "error": null, "flagged": true, "item_id": "malicious_reduce_state_dict", "scanner": "opcode_baseline", "severity": "high"} -{"detail": "scan failed", "duration_ms": 0.025083005311898887, "error": "'utf-8' codec can't decode byte 0xb1 in position 13: invalid start byte", "flagged": false, "item_id": "malicious_reduce_torch_zip", "scanner": "opcode_baseline", "severity": null} -{"detail": "no dangerous opcodes", "duration_ms": 0.02370899892412126, "error": null, "flagged": false, "item_id": "clean_state_dict", "scanner": "opcode_baseline", "severity": null} -{"detail": "no dangerous opcodes", "duration_ms": 0.022375010303221643, "error": null, "flagged": false, "item_id": "clean_optimizer", "scanner": "opcode_baseline", "severity": null} -{"detail": "no dangerous opcodes", "duration_ms": 0.021624990040436387, "error": null, "flagged": false, "item_id": "clean_tokenizer", "scanner": "opcode_baseline", "severity": null} -{"detail": "no dangerous opcodes", "duration_ms": 0.020749997929669917, "error": null, "flagged": false, "item_id": "clean_training_args", "scanner": "opcode_baseline", "severity": null} -{"detail": "no dangerous opcodes", "duration_ms": 0.022582986275665462, "error": null, "flagged": false, "item_id": "clean_tensor_shell", "scanner": "opcode_baseline", "severity": null} -{"detail": "no dangerous opcodes", "duration_ms": 0.021333005861379206, "error": null, "flagged": false, "item_id": "clean_checkpoint", "scanner": "opcode_baseline", "severity": null} -{"detail": "no dangerous opcodes", "duration_ms": 0.02066700835712254, "error": null, "flagged": false, "item_id": "clean_scheduler", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.020958003005944192, "error": "'utf-8' codec can't decode byte 0xf0 in position 14: invalid continuation byte", "flagged": false, "item_id": "clean_torch_zip", "scanner": "opcode_baseline", "severity": null} -{"detail": "dangerous opcodes: GLOBAL, REDUCE", "duration_ms": 0.506000011228025, "error": null, "flagged": true, "item_id": "malicious_reduce_opcode_level_obfuscation", "scanner": "opcode_baseline", "severity": "high"} -{"detail": "dangerous opcodes: GLOBAL, GLOBAL, REDUCE, REDUCE, REDUCE", "duration_ms": 0.03445800393819809, "error": null, "flagged": true, "item_id": "malicious_reduce_indirect_aliased_global_import", "scanner": "opcode_baseline", "severity": "high"} -{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.025832996470853686, "error": null, "flagged": true, "item_id": "malicious_reduce_nested_second_stage_payload", "scanner": "opcode_baseline", "severity": "high"} -{"detail": "dangerous opcodes: GLOBAL, REDUCE", "duration_ms": 0.02429200685583055, "error": null, "flagged": true, "item_id": "malicious_reduce_non_standard_reducer", "scanner": "opcode_baseline", "severity": "high"} -{"detail": "scan failed", "duration_ms": 0.021499989088624716, "error": "'utf-8' codec can't decode byte 0xb1 in position 13: invalid start byte", "flagged": false, "item_id": "malicious_reduce_protocol_framing_variance", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.01999999221879989, "error": "at position 0, opcode b'\"' unknown", "flagged": false, "item_id": "malicious_modeling_alpha", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.01895800232887268, "error": "at position 0, opcode b'\"' unknown", "flagged": false, "item_id": "malicious_modeling_beta", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.018457998521625996, "error": "at position 0, opcode b'\"' unknown", "flagged": false, "item_id": "malicious_modeling_vision", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.01812499249354005, "error": "at position 0, opcode b'\"' unknown", "flagged": false, "item_id": "malicious_tokenizer_code", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.01779200101736933, "error": "at position 0, opcode b'\"' unknown", "flagged": false, "item_id": "malicious_processing", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.018082995666190982, "error": "at position 0, opcode b'\"' unknown", "flagged": false, "item_id": "clean_modeling_alpha", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.01754099503159523, "error": "at position 0, opcode b'\"' unknown", "flagged": false, "item_id": "clean_modeling_beta", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.0177919864654541, "error": "at position 0, opcode b'\"' unknown", "flagged": false, "item_id": "clean_modeling_vision", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.01733399403747171, "error": "at position 0, opcode b'\"' unknown", "flagged": false, "item_id": "clean_tokenizer_code", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.021500003640539944, "error": "at position 0, opcode b'\"' unknown", "flagged": false, "item_id": "clean_processing", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.017583995941095054, "error": "at position 0, opcode b'{' unknown", "flagged": false, "item_id": "metadata_typosquat", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.017915997887030244, "error": "at position 0, opcode b'{' unknown", "flagged": false, "item_id": "metadata_lineage_spoof", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.01750000228639692, "error": "at position 0, opcode b'{' unknown", "flagged": false, "item_id": "metadata_author_spoof", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.017915997887030244, "error": "at position 0, opcode b'{' unknown", "flagged": false, "item_id": "metadata_namespace_spoof", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.018042002920992672, "error": "at position 0, opcode b'{' unknown", "flagged": false, "item_id": "metadata_checkpoint_spoof", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.016833000699989498, "error": "at position 0, opcode b'{' unknown", "flagged": false, "item_id": "clean_metadata_alpha", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.017708996892906725, "error": "at position 0, opcode b'{' unknown", "flagged": false, "item_id": "clean_metadata_beta", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.017583006410859525, "error": "at position 0, opcode b'{' unknown", "flagged": false, "item_id": "clean_metadata_vision", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.017625003238208592, "error": "at position 0, opcode b'{' unknown", "flagged": false, "item_id": "clean_metadata_tokenizer", "scanner": "opcode_baseline", "severity": null} -{"detail": "scan failed", "duration_ms": 0.016833000699989498, "error": "at position 0, opcode b'{' unknown", "flagged": false, "item_id": "clean_metadata_processor", "scanner": "opcode_baseline", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", "duration_ms": 41.63391690235585, "error": null, "flagged": false, "item_id": "malicious_reduce", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", "duration_ms": 43.50216605234891, "error": null, "flagged": false, "item_id": "malicious_reduce_optimizer", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", "duration_ms": 44.37820799648762, "error": null, "flagged": false, "item_id": "malicious_reduce_tokenizer", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", "duration_ms": 42.42099996190518, "error": null, "flagged": false, "item_id": "malicious_reduce_tuple", "scanner": "picklescan", "severity": null} +{"detail": "corpus/fixtures/malicious_reduce_partial.pkl: dangerous import 'functools partial' FOUND\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 1\nSuspicious globals: 1\nDangerous globals: 1", "duration_ms": 42.55733301397413, "error": null, "flagged": true, "item_id": "malicious_reduce_partial", "scanner": "picklescan", "severity": "high"} +{"detail": "corpus/fixtures/malicious_reduce_builtin_call.pkl: dangerous import 'operator methodcaller' FOUND\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 1\nSuspicious globals: 1\nDangerous globals: 1", "duration_ms": 41.55370802618563, "error": null, "flagged": true, "item_id": "malicious_reduce_builtin_call", "scanner": "picklescan", "severity": "high"} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", "duration_ms": 40.62191699631512, "error": null, "flagged": false, "item_id": "malicious_reduce_state_dict", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", "duration_ms": 40.19179102033377, "error": null, "flagged": false, "item_id": "malicious_reduce_torch_zip", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 44.11637503653765, "error": null, "flagged": false, "item_id": "clean_state_dict", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 43.85354195255786, "error": null, "flagged": false, "item_id": "clean_optimizer", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 52.79687501024455, "error": null, "flagged": false, "item_id": "clean_tokenizer", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 46.800958923995495, "error": null, "flagged": false, "item_id": "clean_training_args", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 43.79916691686958, "error": null, "flagged": false, "item_id": "clean_tensor_shell", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 50.492624985054135, "error": null, "flagged": false, "item_id": "clean_checkpoint", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 54.00758306495845, "error": null, "flagged": false, "item_id": "clean_scheduler", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 55.937667028047144, "error": null, "flagged": false, "item_id": "clean_torch_zip", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", "duration_ms": 55.29516702517867, "error": null, "flagged": false, "item_id": "malicious_reduce_opcode_level_obfuscation", "scanner": "picklescan", "severity": null} +{"detail": "corpus/fixtures/malicious_reduce_indirect_aliased_global_import.pkl: dangerous import 'builtins getattr' FOUND\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 1\nSuspicious globals: 1\nDangerous globals: 1", "duration_ms": 44.64745905715972, "error": null, "flagged": true, "item_id": "malicious_reduce_indirect_aliased_global_import", "scanner": "picklescan", "severity": "high"} +{"detail": "corpus/fixtures/malicious_reduce_nested_second_stage_payload.pkl: dangerous import '_pickle loads' FOUND\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 1\nSuspicious globals: 0\nDangerous globals: 1", "duration_ms": 69.77587507572025, "error": null, "flagged": true, "item_id": "malicious_reduce_nested_second_stage_payload", "scanner": "picklescan", "severity": "high"} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", "duration_ms": 149.7255420545116, "error": null, "flagged": false, "item_id": "malicious_reduce_non_standard_reducer", "scanner": "picklescan", "severity": null} +{"detail": "----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 1\nDangerous globals: 0", "duration_ms": 67.44250003248453, "error": null, "flagged": false, "item_id": "malicious_reduce_protocol_framing_variance", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/modeling_alpha.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 79.73658305127174, "error": null, "flagged": false, "item_id": "malicious_modeling_alpha", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/modeling_beta.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 79.6114169061184, "error": null, "flagged": false, "item_id": "malicious_modeling_beta", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/modeling_vision.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 52.17704095412046, "error": null, "flagged": false, "item_id": "malicious_modeling_vision", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/tokenization_synthetic.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 57.91862495243549, "error": null, "flagged": false, "item_id": "malicious_tokenizer_code", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/processing_synthetic.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 57.17699998058379, "error": null, "flagged": false, "item_id": "malicious_processing", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/modeling_alpha_clean.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 60.61979103833437, "error": null, "flagged": false, "item_id": "clean_modeling_alpha", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/modeling_beta_clean.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 63.48512496333569, "error": null, "flagged": false, "item_id": "clean_modeling_beta", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/modeling_vision_clean.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 67.12020910345018, "error": null, "flagged": false, "item_id": "clean_modeling_vision", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/tokenization_synthetic_clean.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 69.73641703370959, "error": null, "flagged": false, "item_id": "clean_tokenizer_code", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/processing_synthetic_clean.py as pickle: at position 0, opcode b'\"' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 62.58625001646578, "error": null, "flagged": false, "item_id": "clean_processing", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/config_typosquat.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 46.262625022791326, "error": null, "flagged": false, "item_id": "metadata_typosquat", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/config_lineage_spoof.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 51.03174992837012, "error": null, "flagged": false, "item_id": "metadata_lineage_spoof", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/config_author_spoof.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 57.40383290685713, "error": null, "flagged": false, "item_id": "metadata_author_spoof", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/config_namespace_spoof.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 67.39620806183666, "error": null, "flagged": false, "item_id": "metadata_namespace_spoof", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/config_checkpoint_spoof.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 74.14620800409466, "error": null, "flagged": false, "item_id": "metadata_checkpoint_spoof", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/config_alpha.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 58.42070793733001, "error": null, "flagged": false, "item_id": "clean_metadata_alpha", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/config_beta.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 54.151542019099, "error": null, "flagged": false, "item_id": "clean_metadata_beta", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/config_vision.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 46.8873749487102, "error": null, "flagged": false, "item_id": "clean_metadata_vision", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/tokenizer_config.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 60.723916976712644, "error": null, "flagged": false, "item_id": "clean_metadata_tokenizer", "scanner": "picklescan", "severity": null} +{"detail": "WARNING: could not parse corpus/fixtures/processor_config.json as pickle: at position 0, opcode b'{' unknown\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nSuspicious globals: 0\nDangerous globals: 0", "duration_ms": 55.727917002514005, "error": null, "flagged": false, "item_id": "clean_metadata_processor", "scanner": "picklescan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.221940\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"malicious_reduce.pkl\"]}}, \n\"issues\": [], \"errors\": []}", "duration_ms": 86.87904197722673, "error": null, "flagged": false, "item_id": "malicious_reduce", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_optimizer.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_optimizer.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.306889\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_optimizer.pkl\"]}}, \"issues\": [], \"errors\": []}", "duration_ms": 82.26270799059421, "error": null, "flagged": false, "item_id": "malicious_reduce_optimizer", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_tokenizer.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_tokenizer.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.383004\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_tokenizer.pkl\"]}}, \"issues\": [], \"errors\": []}", "duration_ms": 74.61000001057982, "error": null, "flagged": false, "item_id": "malicious_reduce_tokenizer", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_tuple.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_tuple.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.456342\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_tuple.pkl\"]}}, \"issues\": [], \"errors\": []}", "duration_ms": 74.7695000609383, "error": null, "flagged": false, "item_id": "malicious_reduce_tuple", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_partial.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_partial.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.531226\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_partial.pkl\"]}}, \"issues\": [], \"errors\": []}", "duration_ms": 76.418292010203, "error": null, "flagged": false, "item_id": "malicious_reduce_partial", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_builtin_call.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_builtin_call.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.609824\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_builtin_call.pkl\"]}}, \"issues\": [], \"errors\": []}", "duration_ms": 75.14770794659853, "error": null, "flagged": false, "item_id": "malicious_reduce_builtin_call", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_state_dict.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_state_dict.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.684085\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_state_dict.pkl\"]}}, \"issues\": [], \"errors\": []}", "duration_ms": 74.19199997093529, "error": null, "flagged": false, "item_id": "malicious_reduce_state_dict", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_torch_zip.bin:archive/data.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_torch_zip.bin\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.758770\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_torch_zip.bin:archive/data.pkl\"]}}, \"issues\": [], \"errors\": \n[]}", "duration_ms": 75.99116605706513, "error": null, "flagged": false, "item_id": "malicious_reduce_torch_zip", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_state_dict.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_state_dict.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.833182\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_state_dict.pkl\"]}}, \n\"issues\": [], \"errors\": []}", "duration_ms": 73.18762491922826, "error": null, "flagged": false, "item_id": "clean_state_dict", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_optimizer.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_optimizer.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.907842\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_optimizer.pkl\"]}}, \n\"issues\": [], \"errors\": []}", "duration_ms": 80.67529194522649, "error": null, "flagged": false, "item_id": "clean_optimizer", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_tokenizer.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_tokenizer.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:28.998496\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_tokenizer.pkl\"]}}, \n\"issues\": [], \"errors\": []}", "duration_ms": 85.33641695976257, "error": null, "flagged": false, "item_id": "clean_tokenizer", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_training_args.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_training_args.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.079392\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_training_args.pkl\"]}}, \n\"issues\": [], \"errors\": []}", "duration_ms": 82.5856669107452, "error": null, "flagged": false, "item_id": "clean_training_args", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_tensor_shell.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_tensor_shell.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.158369\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_tensor_shell.pkl\"]}}, \n\"issues\": [], \"errors\": []}", "duration_ms": 78.22012493852526, "error": null, "flagged": false, "item_id": "clean_tensor_shell", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_checkpoint.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_checkpoint.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.233882\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_checkpoint.pkl\"]}}, \n\"issues\": [], \"errors\": []}", "duration_ms": 74.16966697201133, "error": null, "flagged": false, "item_id": "clean_checkpoint", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_scheduler.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_scheduler.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.309349\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": [\"clean_scheduler.pkl\"]}}, \n\"issues\": [], \"errors\": []}", "duration_ms": 76.34487503673881, "error": null, "flagged": false, "item_id": "clean_scheduler", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/clean_torch_zip.bin:archive/data.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/clean_torch_zip.bin\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.387909\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"clean_torch_zip.bin:archive/data.pkl\"]}}, \"issues\": [], \"errors\": []}", "duration_ms": 79.32200003415346, "error": null, "flagged": false, "item_id": "clean_torch_zip", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_opcode_level_obfuscation.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_opcode_level_obfuscation.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.466622\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_opcode_level_obfuscation.pkl\"]}}, \"issues\": [], \"errors\": []}", "duration_ms": 78.51400005165488, "error": null, "flagged": false, "item_id": "malicious_reduce_opcode_level_obfuscation", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_indirect_aliased_global_import.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 1}, \"total_issues\": 1, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_indirect_aliased_global_import.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.553058\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_indirect_aliased_global_import.pkl\"]}}, \"issues\": \n[{\"description\": \"Use of unsafe operator 'getattr' from module 'builtins'\", \n\"operator\": \"getattr\", \"module\": \"builtins\", \"source\": \n\"malicious_reduce_indirect_aliased_global_import.pkl\", \"scanner\": \n\"modelscan.scanners.PickleUnsafeOpScan\", \"severity\": \"CRITICAL\"}], \"errors\": []}", "duration_ms": 89.22050008550286, "error": null, "flagged": true, "item_id": "malicious_reduce_indirect_aliased_global_import", "scanner": "modelscan", "severity": "high"} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_nested_second_stage_payload.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 1}, \"total_issues\": 1, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_nested_second_stage_payload.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.635461\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_nested_second_stage_payload.pkl\"]}}, \"issues\": \n[{\"description\": \"Use of unsafe operator 'loads' from module '_pickle'\", \n\"operator\": \"loads\", \"module\": \"_pickle\", \"source\": \n\"malicious_reduce_nested_second_stage_payload.pkl\", \"scanner\": \n\"modelscan.scanners.PickleUnsafeOpScan\", \"severity\": \"CRITICAL\"}], \"errors\": []}", "duration_ms": 80.43158298823982, "error": null, "flagged": true, "item_id": "malicious_reduce_nested_second_stage_payload", "scanner": "modelscan", "severity": "high"} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_non_standard_reducer.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_non_standard_reducer.pkl\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.713188\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_non_standard_reducer.pkl\"]}}, \"issues\": [], \"errors\": []}", "duration_ms": 74.99883393757045, "error": null, "flagged": false, "item_id": "malicious_reduce_non_standard_reducer", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\nScanning corpus/fixtures/malicious_reduce_protocol_framing_variance.bin:archive/data.pkl using modelscan.scanners.PickleUnsafeOpScan model scan\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/malicious_reduce_protocol_framing_variance.bin\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.790383\",\n\"scanned\": {\"total_scanned\": 1, \"scanned_files\": \n[\"malicious_reduce_protocol_framing_variance.bin:archive/data.pkl\"]}}, \"issues\":\n[], \"errors\": []}", "duration_ms": 79.65054095257074, "error": null, "flagged": false, "item_id": "malicious_reduce_protocol_framing_variance", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_alpha.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.870497\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 80.18504199571908, "error": null, "flagged": false, "item_id": "malicious_modeling_alpha", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_beta.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:29.949705\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 79.48758301790804, "error": null, "flagged": false, "item_id": "malicious_modeling_beta", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_vision.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.030744\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 78.0950830085203, "error": null, "flagged": false, "item_id": "malicious_modeling_vision", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/tokenization_synthetic.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.105376\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 74.74333397112787, "error": null, "flagged": false, "item_id": "malicious_tokenizer_code", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/processing_synthetic.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.181299\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 75.16229199245572, "error": null, "flagged": false, "item_id": "malicious_processing", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_alpha_clean.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.255689\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 74.29575000423938, "error": null, "flagged": false, "item_id": "clean_modeling_alpha", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_beta_clean.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.329057\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 73.16987495869398, "error": null, "flagged": false, "item_id": "clean_modeling_beta", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/modeling_vision_clean.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.402390\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 73.98166693747044, "error": null, "flagged": false, "item_id": "clean_modeling_vision", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/tokenization_synthetic_clean.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.477903\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 76.04341697879136, "error": null, "flagged": false, "item_id": "clean_tokenizer_code", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/processing_synthetic_clean.py\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.552911\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 74.75454197265208, "error": null, "flagged": false, "item_id": "clean_processing", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_typosquat.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.629085\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 74.84275009483099, "error": null, "flagged": false, "item_id": "metadata_typosquat", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_lineage_spoof.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.702031\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 73.4836250776425, "error": null, "flagged": false, "item_id": "metadata_lineage_spoof", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_author_spoof.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.776728\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 74.52300004661083, "error": null, "flagged": false, "item_id": "metadata_author_spoof", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_namespace_spoof.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.850533\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 75.34945802763104, "error": null, "flagged": false, "item_id": "metadata_namespace_spoof", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_checkpoint_spoof.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:30.928150\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 75.5743330810219, "error": null, "flagged": false, "item_id": "metadata_checkpoint_spoof", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_alpha.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:31.001400\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 73.66045797243714, "error": null, "flagged": false, "item_id": "clean_metadata_alpha", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_beta.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:31.076154\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 74.856249964796, "error": null, "flagged": false, "item_id": "clean_metadata_beta", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/config_vision.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:31.151669\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 79.92883305996656, "error": null, "flagged": false, "item_id": "clean_metadata_vision", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/tokenizer_config.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:31.233187\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 75.9620419703424, "error": null, "flagged": false, "item_id": "clean_metadata_tokenizer", "scanner": "modelscan", "severity": null} +{"detail": "No settings file detected at modelscan-settings.toml. Using defaults. \n\n{\"summary\": {\"total_issues_by_severity\": {\"LOW\": 0, \"MEDIUM\": 0, \"HIGH\": 0, \n\"CRITICAL\": 0}, \"total_issues\": 0, \"input_path\": \n\"corpus/fix\ntures/processor_config.json\", \"absolute_path\": \n\"corpus/fix\ntures\", \"modelscan_version\": \"0.8.8\", \"timestamp\": \"2026-10-28T00:35:31.307104\",\n\"scanned\": {\"total_scanned\": 0}}, \"issues\": [], \"errors\": []}", "duration_ms": 74.52687504701316, "error": null, "flagged": false, "item_id": "clean_metadata_processor", "scanner": "modelscan", "severity": null} +{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.108166947029531, "error": null, "flagged": true, "item_id": "malicious_reduce", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.04745798651129007, "error": null, "flagged": true, "item_id": "malicious_reduce_optimizer", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.045375083573162556, "error": null, "flagged": true, "item_id": "malicious_reduce_tokenizer", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.03483297768980265, "error": null, "flagged": true, "item_id": "malicious_reduce_tuple", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "dangerous opcodes: STACK_GLOBAL, STACK_GLOBAL, REDUCE, REDUCE", "duration_ms": 0.0391670037060976, "error": null, "flagged": true, "item_id": "malicious_reduce_partial", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE, STACK_GLOBAL, REDUCE", "duration_ms": 0.037958030588924885, "error": null, "flagged": true, "item_id": "malicious_reduce_builtin_call", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.04233303479850292, "error": null, "flagged": true, "item_id": "malicious_reduce_state_dict", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.35550002939999104, "error": null, "flagged": true, "item_id": "malicious_reduce_torch_zip", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "no dangerous opcodes", "duration_ms": 0.0426670303568244, "error": null, "flagged": false, "item_id": "clean_state_dict", "scanner": "opcode_baseline", "severity": null} +{"detail": "no dangerous opcodes", "duration_ms": 0.03470899537205696, "error": null, "flagged": false, "item_id": "clean_optimizer", "scanner": "opcode_baseline", "severity": null} +{"detail": "no dangerous opcodes", "duration_ms": 0.033082906156778336, "error": null, "flagged": false, "item_id": "clean_tokenizer", "scanner": "opcode_baseline", "severity": null} +{"detail": "no dangerous opcodes", "duration_ms": 0.03224995452910662, "error": null, "flagged": false, "item_id": "clean_training_args", "scanner": "opcode_baseline", "severity": null} +{"detail": "no dangerous opcodes", "duration_ms": 0.034125056117773056, "error": null, "flagged": false, "item_id": "clean_tensor_shell", "scanner": "opcode_baseline", "severity": null} +{"detail": "no dangerous opcodes", "duration_ms": 0.032125040888786316, "error": null, "flagged": false, "item_id": "clean_checkpoint", "scanner": "opcode_baseline", "severity": null} +{"detail": "no dangerous opcodes", "duration_ms": 0.030125025659799576, "error": null, "flagged": false, "item_id": "clean_scheduler", "scanner": "opcode_baseline", "severity": null} +{"detail": "no dangerous opcodes", "duration_ms": 0.07083301898092031, "error": null, "flagged": false, "item_id": "clean_torch_zip", "scanner": "opcode_baseline", "severity": null} +{"detail": "dangerous opcodes: GLOBAL, REDUCE", "duration_ms": 0.14062493573874235, "error": null, "flagged": true, "item_id": "malicious_reduce_opcode_level_obfuscation", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "dangerous opcodes: GLOBAL, GLOBAL, REDUCE, REDUCE, REDUCE", "duration_ms": 0.04491698928177357, "error": null, "flagged": true, "item_id": "malicious_reduce_indirect_aliased_global_import", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.03691692836582661, "error": null, "flagged": true, "item_id": "malicious_reduce_nested_second_stage_payload", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "dangerous opcodes: GLOBAL, REDUCE", "duration_ms": 0.038708909414708614, "error": null, "flagged": true, "item_id": "malicious_reduce_non_standard_reducer", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.06262492388486862, "error": null, "flagged": true, "item_id": "malicious_reduce_protocol_framing_variance", "scanner": "opcode_baseline", "severity": "high"} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0026669586077332497, "error": null, "flagged": false, "item_id": "malicious_modeling_alpha", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0020419247448444366, "error": null, "flagged": false, "item_id": "malicious_modeling_beta", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.00200001522898674, "error": null, "flagged": false, "item_id": "malicious_modeling_vision", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0018330756574869156, "error": null, "flagged": false, "item_id": "malicious_tokenizer_code", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0018329592421650887, "error": null, "flagged": false, "item_id": "malicious_processing", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0019159633666276932, "error": null, "flagged": false, "item_id": "clean_modeling_alpha", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0019170111045241356, "error": null, "flagged": false, "item_id": "clean_modeling_beta", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0017920974642038345, "error": null, "flagged": false, "item_id": "clean_modeling_vision", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0017910497263073921, "error": null, "flagged": false, "item_id": "clean_tokenizer_code", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0018330756574869156, "error": null, "flagged": false, "item_id": "clean_processing", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.00208395067602396, "error": null, "flagged": false, "item_id": "metadata_typosquat", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0017499551177024841, "error": null, "flagged": false, "item_id": "metadata_lineage_spoof", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.001708976924419403, "error": null, "flagged": false, "item_id": "metadata_author_spoof", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0018749851733446121, "error": null, "flagged": false, "item_id": "metadata_namespace_spoof", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.001750071533024311, "error": null, "flagged": false, "item_id": "metadata_checkpoint_spoof", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0018749851733446121, "error": null, "flagged": false, "item_id": "clean_metadata_alpha", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.00200001522898674, "error": null, "flagged": false, "item_id": "clean_metadata_beta", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0017919810488820076, "error": null, "flagged": false, "item_id": "clean_metadata_vision", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0018338905647397041, "error": null, "flagged": false, "item_id": "clean_metadata_tokenizer", "scanner": "opcode_baseline", "severity": null} +{"detail": "unsupported format: not a pickle file", "duration_ms": 0.0017919810488820076, "error": null, "flagged": false, "item_id": "clean_metadata_processor", "scanner": "opcode_baseline", "severity": null} diff --git a/scanners/modelscan_adapter.py b/scanners/modelscan_adapter.py index 711965f..f4207d3 100644 --- a/scanners/modelscan_adapter.py +++ b/scanners/modelscan_adapter.py @@ -24,7 +24,8 @@ def scan(self, path: Path) -> Verdict: check=False, ) detail = result.stdout.strip() or result.stderr.strip() - error = None if result.returncode in (0, 1) else detail or f"exit code {result.returncode}" + # modelscan exit codes: 0 clean, 1 issues found, 3 no supported files (not an error) + error = None if result.returncode in (0, 1, 3) else detail or f"exit code {result.returncode}" return Verdict( self.name, path.stem, diff --git a/scanners/opcode_baseline.py b/scanners/opcode_baseline.py index 377c189..649878c 100644 --- a/scanners/opcode_baseline.py +++ b/scanners/opcode_baseline.py @@ -2,10 +2,22 @@ import pickletools import time +import zipfile from pathlib import Path from scanners.base import ScannerAdapter, Verdict +DANGEROUS = {"REDUCE", "GLOBAL", "STACK_GLOBAL"} +PICKLE_SUFFIXES = {".pkl", ".pickle", ".bin", ".pt", ".pth"} + + +def pickle_payloads(path: Path) -> list[bytes]: + """Return the pickle streams in a file: the file itself, or the data.pkl members of a torch zip.""" + if zipfile.is_zipfile(path): + with zipfile.ZipFile(path) as archive: + return [archive.read(n) for n in archive.namelist() if n.endswith(".pkl")] + return [path.read_bytes()] + class OpcodeBaseline(ScannerAdapter): name = "opcode_baseline" @@ -15,16 +27,21 @@ def available(self) -> bool: def scan(self, path: Path) -> Verdict: started = time.perf_counter() + + def verdict(flagged: bool, detail: str, error: str | None = None) -> Verdict: + return Verdict(self.name, path.stem, flagged, "high" if flagged else None, detail, error, + (time.perf_counter() - started) * 1000) + + if path.suffix not in PICKLE_SUFFIXES: + # Not a pickle container: nothing for an opcode scanner to inspect (not an error). + return verdict(False, "unsupported format: not a pickle file") try: - dangerous = [op.name for op, _, _ in pickletools.genops(path.read_bytes()) if op.name in {"REDUCE", "GLOBAL", "STACK_GLOBAL"}] - return Verdict( - scanner=self.name, - item_id=path.stem, - flagged=bool(dangerous), - severity="high" if dangerous else None, - detail=f"dangerous opcodes: {', '.join(dangerous)}" if dangerous else "no dangerous opcodes", - error=None, - duration_ms=(time.perf_counter() - started) * 1000, - ) + dangerous = [ + op.name + for data in pickle_payloads(path) + for op, _, _ in pickletools.genops(data) + if op.name in DANGEROUS + ] except Exception as exc: - return Verdict(self.name, path.stem, False, None, "scan failed", str(exc), (time.perf_counter() - started) * 1000) + return verdict(False, "scan failed", str(exc)) + return verdict(bool(dangerous), f"dangerous opcodes: {', '.join(dangerous)}" if dangerous else "no dangerous opcodes") diff --git a/tests/test_corpus.py b/tests/test_corpus.py new file mode 100644 index 0000000..36786db --- /dev/null +++ b/tests/test_corpus.py @@ -0,0 +1,22 @@ +from pathlib import Path + +import yaml + +from corpus.generate import outputs + +ROOT = Path(__file__).resolve().parents[1] +ITEMS = yaml.safe_load((ROOT / "corpus/manifest.yaml").read_text(encoding="utf-8"))["items"] + + +def test_manifest_matches_generator_and_committed_fixtures(): + generated = outputs() + assert {i["id"] for i in ITEMS} == generated.keys() + for item in ITEMS: + assert (ROOT / item["path"]).read_bytes() == generated[item["id"]], item["id"] + + +def test_manifest_labels_are_consistent(): + for item in ITEMS: + assert item["label"] in {"malicious", "clean"} + if item["label"] == "clean": + assert item.get("technique") is None and item.get("evasion") is None diff --git a/tests/test_corpus_markers.py b/tests/test_corpus_markers.py index b2d5b29..341ab3f 100644 --- a/tests/test_corpus_markers.py +++ b/tests/test_corpus_markers.py @@ -7,7 +7,6 @@ from corpus._marker import CANARY_CONTENT, CANARY_NAME - ROOT = Path(__file__).resolve().parents[1] MANIFEST = yaml.safe_load((ROOT / "corpus/manifest.yaml").read_text(encoding="utf-8")) MARKER_PICKLES = [ diff --git a/tests/test_metrics.py b/tests/test_metrics.py index d168d8b..cb9fe4b 100644 --- a/tests/test_metrics.py +++ b/tests/test_metrics.py @@ -26,3 +26,20 @@ def test_rates_exclude_skipped_verdicts() -> None: assert metrics["detection_rate"] == 1 / 2 assert metrics["fpr"] == 1 / 2 assert metrics["evasion_robustness_by_technique"] == {"alias": 1.0} + + +def test_counts_and_errors_reported() -> None: + items = [ + {"id": "m1", "label": "malicious", "evasion": None}, + {"id": "m2", "label": "malicious", "evasion": None}, + {"id": "c1", "label": "clean", "evasion": None}, + ] + verdicts = [ + {"scanner": "s", "item_id": "m1", "flagged": True, "error": None}, + {"scanner": "s", "item_id": "m2", "flagged": False, "error": "boom"}, + {"scanner": "s", "item_id": "c1", "flagged": False, "error": None}, + ] + m = compute_metrics(verdicts, items)["per_scanner"]["s"] + assert m["counts"]["detection"] == [1, 2] + assert m["counts"]["fpr"] == [0, 1] + assert m["errors"] == 1 diff --git a/tests/test_scanners.py b/tests/test_scanners.py new file mode 100644 index 0000000..dad3fd6 --- /dev/null +++ b/tests/test_scanners.py @@ -0,0 +1,64 @@ +import pickle +import zipfile +from pathlib import Path +from subprocess import CompletedProcess + +import pytest + +from scanners.modelscan_adapter import ModelScanAdapter +from scanners.opcode_baseline import OpcodeBaseline + + +class Evil: + def __reduce__(self): + return print, ("x",) + + +def test_baseline_flags_plain_pickle(tmp_path): + f = tmp_path / "a.pkl" + f.write_bytes(pickle.dumps(Evil())) + v = OpcodeBaseline().scan(f) + assert v.flagged and v.error is None + + +def test_baseline_unwraps_torch_zip(tmp_path): + f = tmp_path / "a.bin" + with zipfile.ZipFile(f, "w") as z: + z.writestr("archive/data.pkl", pickle.dumps(Evil())) + v = OpcodeBaseline().scan(f) + assert v.flagged and v.error is None + + +def test_baseline_clean_pickle_not_flagged(tmp_path): + f = tmp_path / "a.pkl" + f.write_bytes(pickle.dumps({"w": [1.0]})) + assert not OpcodeBaseline().scan(f).flagged + + +@pytest.mark.parametrize("name", ["config.json", "modeling.py"]) +def test_baseline_non_pickle_is_not_an_error(tmp_path, name): + f = tmp_path / name + f.write_text("{}") + v = OpcodeBaseline().scan(f) + assert not v.flagged and v.error is None + + +def test_baseline_corrupt_pickle_reports_error(tmp_path): + f = tmp_path / "a.pkl" + f.write_bytes(b"\xff\xfe not a pickle") + v = OpcodeBaseline().scan(f) + assert not v.flagged and v.error + + +@pytest.mark.parametrize(("rc", "flagged", "has_error"), [(0, False, False), (1, True, False), (3, False, False), (2, False, True)]) +def test_modelscan_exit_codes(monkeypatch, rc, flagged, has_error): + monkeypatch.setattr("subprocess.run", lambda *a, **k: CompletedProcess(a[0], rc, "out", "")) + v = ModelScanAdapter().scan(Path("x.json")) + assert v.flagged is flagged and bool(v.error) is has_error + + +def test_runner_strips_absolute_paths(): + from eval.runner import ROOT, run + + verdicts = run("opcode_baseline") + assert verdicts and not any(str(ROOT) in v.detail for v in verdicts) diff --git a/tools/safety_lint.py b/tools/safety_lint.py index b1b4c6a..3d66b7f 100644 --- a/tools/safety_lint.py +++ b/tools/safety_lint.py @@ -7,7 +7,6 @@ import sys from pathlib import Path - DENIED = ( re.compile(rb"\bsocket\b", re.IGNORECASE), re.compile(rb"\burllib\b", re.IGNORECASE), From 7b81d74f1ec16b51e0c117c599b6664d86c8e773 Mon Sep 17 00:00:00 2001 From: euisuh <55032583+euisuh@users.noreply.github.com> Date: Wed, 28 Oct 2026 00:36:15 +0900 Subject: [PATCH 2/2] docs: rewrite README with methodology, taxonomy, limitations Co-Authored-By: Claude Sonnet 5.5 --- README.md | 141 +++++++++++++++++++++++++++--------------------------- 1 file changed, 70 insertions(+), 71 deletions(-) diff --git a/README.md b/README.md index 0227517..e992dc5 100644 --- a/README.md +++ b/README.md @@ -1,89 +1,88 @@ # modelscan-eval -`modelscan-eval` is a reproducible meta-benchmark for static ML supply-chain -scanners. It runs multiple scanners over the same 41-item labeled synthetic -corpus and reports detection rate, false-positive rate, and robustness to five -pickle-evasion techniques. +A small meta-benchmark for static ML supply-chain scanners. It runs the same labeled, synthetic corpus of 41 files through [picklescan](https://github.com/mmaitre314/picklescan), [modelscan](https://github.com/protectai/modelscan) and a naive in-repo opcode baseline, then reports detection rate, false-positive rate and robustness to five pickle-evasion techniques. It evaluates scanners; it is not a scanner. -The corpus covers pickle and torch-style artifacts, custom Hugging Face code, -and spoofed metadata. No real model weights or downloads are required. +All fixtures are generated by [`corpus/generate.py`](corpus/generate.py) and committed. Nothing is downloaded, and CI runs offline. -## Run +## Methodology -Python 3.10 or newer is required. From a fresh clone: +- **Corpus** ([`corpus/manifest.yaml`](corpus/manifest.yaml)): every item has a label (`malicious` or `clean`), a `technique`, and an optional `evasion`. Clean controls are matched to each malicious category. +- **Payload safety**: the only thing a malicious fixture does when loaded is write one marker file (`modelscan-eval.canary`) into the current directory through `corpus._marker.drop_canary`. [`tools/safety_lint.py`](tools/safety_lint.py) rejects network, shell and dynamic-execution tokens in `corpus/`, and `tests/test_corpus_markers.py` unpickles each marker pickle in a temp directory and asserts that the canary is the only file created. The harness itself never unpickles fixtures; it only shells out to the scanners (or, for the baseline, reads opcodes). +- **Metrics** ([`eval/metrics.py`](eval/metrics.py)): + - detection rate = flagged / total over malicious items with no evasion (18 items) + - false-positive rate = flagged / total over clean items (18 items) + - evasion robustness = flagged / total over the items carrying one evasion label (1 item per technique, so these are single-sample outcomes) + - items a scanner was not run on (`skipped`) are excluded from denominators; scan errors count as unflagged and are tallied separately. -```sh -python3 -m venv .venv -source .venv/bin/activate -python -m pip install -e '.[scanners]' -make check -make eval -make report -``` +## Scanners + +| Scanner | How it is invoked | Notes | +|---|---|---| +| `picklescan` | `picklescan --path `, flagged on exit code 1 | optional extra | +| `modelscan` | `modelscan --path --reporting-format json`, flagged on exit code 1 (3 = no supported files, not an error) | optional extra; needs a Python version modelscan supports (3.12 used here) | +| `opcode_baseline` | `pickletools.genops`, flags any `REDUCE`, `GLOBAL` or `STACK_GLOBAL`; unwraps torch zips; ignores non-pickle files | deliberately naive denylist, a reference point and not a recommendation | + +## Case taxonomy -`make check` runs the safety lint before the tests. `make eval` writes raw -verdicts to `results/verdicts.jsonl`; `make report` produces -`results/results.json` and the shippable [report](results/REPORT.md). +Counts come from `corpus/manifest.yaml`. -The optional `[scanners]` extra installs `picklescan` and `modelscan`. Those -extras are not installed in the environment used for the committed report, so -only `opcode_baseline` has measurements there. The harness degrades gracefully: -an absent adapter returns `available() == False`, is recorded as `skipped`, and -is excluded from metric denominators rather than counted as a miss. +| Category (`technique`) | Format (`kind`) | Malicious | Clean | What it is | +|---|---|---:|---:|---| +| `pickle_reduce` | pickle (`.pkl`) | 7 | 7 | `__reduce__` returning the canary function, in different containers (bare, dict, tuple, `functools.partial`, `operator.methodcaller`) | +| `pickle_reduce` | torch-style zip (`.bin`) | 1 | 1 | same payload inside `archive/data.pkl` | +| `custom_code_import` | Python source (`.py`) | 5 | 5 | model/tokenizer/processor code that calls the canary at import time | +| `metadata_spoof` | JSON config | 5 | 5 | typosquat, lineage, author, namespace and checkpoint spoofs in config metadata | -## Safety model +Evasion variants (all `pickle_reduce`, one item each, derived from `malicious_reduce`): -Every corpus fixture and generator source is safety-lint-enforced. The only -permitted behavior of a malicious fixture is one benign marker-file write under -a caller-provided temporary directory, through the audited -`corpus._marker.drop_canary` helper. Fixtures do not access the network, spawn -shells against targets, read or exfiltrate user data, or modify files outside -that temporary directory. The evaluation harness performs static scans and -never unpickles or imports malicious fixtures. +| Evasion | Construction | +|---|---| +| `opcode_level_obfuscation` | hand-assembled opcodes (protocol 2, `GLOBAL`/`MARK`/`TUPLE`) | +| `indirect_aliased_global_import` | `getattr(importlib.import_module(...), ...)` chain reaches the callable | +| `nested_second_stage_payload` | outer pickle calls `pickle.loads` on an embedded payload | +| `non_standard_reducer` | `__reduce_ex__` instead of `__reduce__`, protocol 2 | +| `protocol_framing_variance` | payload wrapped in a torch-style zip | -[`tools/safety_lint.py`](tools/safety_lint.py) is the mechanical enforcement -gate readers can inspect and run themselves: +## Reproduce + +Python 3.10+. modelscan did not install on Python 3.14 when this was written, so use 3.12 for the full run. ```sh -python3 tools/safety_lint.py corpus/ +python3.12 -m venv .venv && source .venv/bin/activate +python -m pip install -e '.[scanners,dev]' +make check # safety lint, ruff, pytest +make eval # raw verdicts -> results/verdicts.jsonl +make report # -> results/results.json, results/REPORT.md +``` + +Without `.[scanners]`, `make eval` records those scanners as `skipped` and the report shows "no data" for them. Run `eval` and `report` in the same environment so the recorded scanner versions are accurate. To regenerate the fixtures: `python corpus/generate.py` (a test checks they match the committed bytes). + +Example, one verdict line from the baseline: + ``` +$ python -m eval.runner --scanner opcode_baseline | head -1 +{"detail": "dangerous opcodes: STACK_GLOBAL, REDUCE", "duration_ms": 0.21, "error": null, "flagged": true, "item_id": "malicious_reduce", "scanner": "opcode_baseline", "severity": "high"} +``` + +## Results -It checks committed/generated artifacts and generator sources for forbidden -network, shell, dynamic-execution, and related tokens. `make check` always runs -this gate before pytest. Separate sandboxed tests verify each payload produces -only its expected canary. - -## Prior art and differentiation - -- **InjecAgent-style corpora:** this project reuses the benchmark pattern of a - labeled synthetic adversarial corpus with matched clean controls and explicit - attack categories. It does not reuse prompt-injection samples or evaluate - agents; its artifacts and threat model are ML model-supply-chain specific. -- **`picklescan` and `modelscan`:** these existing scanners are reused - unmodified as subjects under test, behind thin adapters. The in-repo - `pickletools.genops` opcode scanner is a deliberately naive denylist baseline - reflecting the technique described in community and Trail of Bits writeups. -- **Novel contribution:** one shared labeled corpus, one uniform pickle-evasion - taxonomy, and an apples-to-apples cross-tool report measuring both ordinary - detection and evasion robustness. This project evaluates scanners; it does - not propose another scanner. +From the committed run ([`results/REPORT.md`](results/REPORT.md), raw data in `results/verdicts.jsonl`; picklescan 1.0.5, modelscan 0.8.8): + +| Scanner | Detection rate | False-positive rate | +|---|---:|---:| +| picklescan | 11.1% (2/18) | 0.0% (0/18) | +| modelscan | 0.0% (0/18) | 0.0% (0/18) | +| opcode_baseline | 44.4% (8/18) | 0.0% (0/18) | + +Read these with the limitations below. The low numbers for the real scanners are mostly a property of the corpus, not a ranking of the tools: the payload callable is `corpus._marker.drop_canary`, which is not on either scanner's list of dangerous globals. picklescan flagged only the two items that reach it through `functools.partial` and `operator.methodcaller`. The 10 `py_code` and `metadata` malicious items are outside what pickle scanners inspect, so they cap detection at 8/18 for any pickle scanner. See the evasion table in `results/REPORT.md` for per-technique outcomes. ## Limitations -- Synthetic, intentionally small corpus (41 items); results do not estimate - prevalence or performance on all real-world model repositories. -- Static analysis only. No behavioral detonation and no claim about runtime - containment. -- Pickle-focused. The corpus covers pickle, torch-style pickle containers, - custom Hugging Face code, and metadata; safetensors, GGUF, ONNX, Keras H5, - and TensorFlow SavedModel exploit formats are out of scope for v1. -- No live/networked payloads, real model downloads, or multi-gigabyte weights; - size- and ecosystem-specific scanner behavior may differ in production. -- Metadata spoof and custom-code cases are synthetic, so conclusions depend on - the v1 labels and attack taxonomy. -- Scanner results depend on installed versions. The committed report records - unavailable optional scanners explicitly and should be regenerated with - `.[scanners]` installed for a full comparison. - -See [PLAN.md](PLAN.md) for the complete threat model, corpus composition, and -metric definitions. +- The base payload calls a repo-local benign function, so denylist-based scanners have nothing to match. A fair detection comparison needs payloads that call a known-dangerous global with a harmless argument (tracked in an issue). +- Small and synthetic: 41 files, one item per evasion technique. Results say nothing about prevalence or real-world repositories. +- Static scanning only; no runtime detonation. +- Pickle-focused. safetensors, GGUF, ONNX, Keras H5 and SavedModel are out of scope. The `custom_code_import` and `metadata_spoof` categories are included to show where pickle scanners are blind, not because they target them. +- Scanner behavior depends on installed versions and defaults (modelscan ran with its default settings; no settings file). +- Scan errors count as "not flagged". + +See [PLAN.md](PLAN.md) for the original design notes.