βœ“
[PI]
tool open source

Picklescan

β˜… 920 GitHub Stars Release v0.0.21

Fast static Python pickle bytecode scanner flagging unsafe global imports and deserialization hazards inside ML checkpoints

// At a Glance
Category
Analysis
Platforms
linux, macos, windows
Pricing / License
MIT
Focus / Scope
2 MITRE Tactics

πŸ“‹ Tool Overview & Technical Brief

Overview & Engineering Philosophy

Picklescan is a focused static scanner designed to catch unsafe Python pickle global references inside downloaded machine learning weights, PyTorch .pt files, and Zip-packaged archives before torch.load() is ever invoked. It powers automated artifact checks across major model hubs and internal MLOps ingestion queues.


Key Capabilities & Technical Highlights

  • Opcode Global Auditing: Parses GLOBAL, STACK_GLOBAL, and INST opcodes without triggering __reduce__ execution.
  • HuggingFace & Archive Support: Scans Zip containers, NumPy pickles, and PyTorch archives directly from local paths or URLs.
  • Low Dependency Footprint: Pure Python implementation suitable for lightweight pre-commit and air-gapped CI workers.

Defensive Architecture & Operational Deployment

When integrating Picklescan across enterprise environments, DevSecOps pipelines, or security auditing workflows, engineering teams should establish robust operational guardrails:

  • Principle of Least Privilege: Execute all assessment tasks using dedicated service accounts or ephemeral execution tokens configured with the minimum necessary read and write permissions.
  • Automated CI/CD Quality Gates: Pin tool versions and container digest hashes within continuous integration pipelines to prevent supply-chain drift and ensure reliable, deterministic compliance checks.
  • Centralized Telemetry & Log Ingestion: Stream structured scanner outputs, policy violations, and execution telemetry into unified SIEM dashboards and ticketing systems for rapid remediation tracking.
  • Strict Scope Boundary Validation: Enforce automated target verification filters to prevent accidental evaluation of third-party dependencies or external endpoints outside authorized audit scopes.

Practical CLI Usage Examples

picklescan -p ./weights/pytorch_model.bin
picklescan --url https://huggingface.co/repo/resolve/main/model.bin

Operate strictly on repositories, networks, and environments where you hold explicit written authorization.

⚑ Installation & Quick Start

pip install picklescan
>_ Inspect via Terminal API (ToolWar v1)
curl -fsSL https://toolwar.com/api/v1/tools/picklescan/install
Official Publication / Xowia Technologies By Kapil Soni
Available on Amazon

The AI Hacker's Handbook

Finding, Exploiting and Reporting Vulnerabilities in LLM and AI Agents

Deep dive into adversarial prompt injection, jailbreaks, tool manipulation, insecure output handling, RAG poisoning, and agent hijacking methodologies. Master the modern offensive AI surface.

πŸ’¬ Discussion & Community Field Notes

0 comments
No reviews or comments yet. Be the first to share operational field notes!

Specification Matrix

Status
active
License / Model
MIT
Type
tool
Supported Platforms
linux macos windows
GitHub Telemetry
β˜… 920 85
Latest Release
v0.0.21
Maintenance
active
Community Rating
β˜… 4.5 (35)
Total Views
1,799
Last Verified
Dec 2026
Curated By
ToolWar Research Team

Maintainer Badge

Listed on ToolWar badge

Add this verified ToolWar badge to your repository README or project documentation.

Rate This Tool

Help fellow researchers evaluate tool effectiveness

Click a star to submit rating Registering rating... βœ“ Rating registered! Average: ( votes)