Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

AI Security Python Packages

Python packages with the GitHub topic ai-security. Sorted by monthly downloads, with stars and forks.
Project-Navi
navi-sanitize

Deterministic input sanitization for untrusted text — invisible characters, homoglyphs, and encoding tricks, handled before your code sees them. Zero dependencies, no ML. Python 3.12+.

232K 3 0
hashgraph-online
plugin-scanner

Open-source antivirus and firewall for AI agents: block risky tools, secret access, prompt injection, malicious packages, MCP servers, plugins, and skills at runtime.

183K 1K 293
hashgraph-online
hol-guard

Open-source antivirus and firewall for AI agents: block risky tools, secret access, prompt injection, malicious packages, MCP servers, plugins, and skills at runtime.

108K 1K 293
Tencent
aig-skill-scan

A full-stack AI Red Teaming platform securing AI ecosystems via Agent Scan, Skills Scan, MCP scan, AI Infra scan and LLM jailbreak evaluation.

54K 8K 812
Agent-Threat-Rule
pyatr

Open detection-rule standard for AI agent security threats — like Sigma, but for AI agents. Executable, testable rules for prompt injection, tool poisoning, context exfiltration and MCP attacks. Merged into open-source projects at Microsoft, Cisco, Gen Digital, MISP and FINOS. MIT-licensed.

25K 445 71
gy15901580825
argus-probe

Open-source red-team testing for AI agents. 320 bundled probes with OWASP LLM Top 10, MITRE ATLAS, and NIST AI RMF mappings. Selected probes use recorded browser requests, MCP tool calls, or mock payments. CLI, SARIF, GitHub Action.

25K 219 35
pezhik
skilltotal

Static security scanner for npm/PyPI packages, MCP servers, agent skills, VS Code extensions and repos. Runs locally, never runs the code, no LLM. CLI, Claude Code plugin, Action.

24K 16 1
gautamvarmadatla
mcpsafetywarden

MCP servers expose tools with no information about what they actually do at runtime. mcpsafetywarden sits between your agent and any MCP server, profiling tool behavior, blocking destructive calls, and running active security audits before you trust them in a workflow.

23K 9 2
mcp-hangar
mcp-hangar

MCP policy enforcement plane — deterministic policy on every Model Context Protocol call: identity, RFC 8707 audience binding, tool schema digest pinning, full audit trail. Python, self-hosted, MIT.

21K 18 10
PrismorSec
prismor

Self-hosted runtime control plane for AI agents. Observe or HITL approve or Block rogue tool calls before it executes: secret leaks, prompt injection, supply chain etc in a local dashboard. Agent agnostic (Claude, codex, langchain etc.)

19K 679 73
koda-ai-studio
agent-bom

AI supply-chain BOM: every agent, MCP server and AI package, and what each one can reach. Open-source scanner and self-hosted control plane for code, containers, cloud and AI. Self-host free; local scans need no account.

18K 38 12
MaksimGalatin
padam-nocturne

Local sovereign SQLite AI agent memory & 4-ring Agentic Shield: stops prompt-injection, MCP rug-pulls & key leaks ($0 cloud telemetry). MCP + Studio + Android. PADAM License 1.0

18K 0 1
PrismorSec
immunity-agent

Self-hosted runtime control plane for AI agents. Observe or HITL approve or Block rogue tool calls before it executes: secret leaks, prompt injection, supply chain etc in a local dashboard. Agent agnostic (Claude, codex, langchain etc.)

18K 679 73
Giskard-AI
giskard

🐢 Open-Source Evaluation & Testing library for LLM Agents

17K 6K 582
spellwarden-ai
spellwarden

Open-source scanner for agent skills, MCP servers, A2A agent cards and the agent configuration of Claude Code, Cursor, VS Code, Windsurf, Codex and Gemini CLI. 66 rules mapped to OWASP, NIST and MITRE ATLAS; SARIF output; Apache-2.0.

16K 3 0
hedgerow-dev
hayward

Static security scanner for machine-learning model files. Checks PyTorch, pickle, joblib, GGUF, SafeTensors, ONNX and Keras checkpoints for code execution before you load them. CLI, GitHub Action, load guard, MCP server.

14K 2 1
gawk-dev
mcpgawk

Catches an MCP server that changed after you approved it, and holds the call before your agent runs it. Your inventory stays on your machine.

14K 1 0
sattyamjjain
agent-audit-kit

Static scanner for MCP-connected AI agent pipelines. 562 rules across 14 categories, 14 compliance frameworks, OWASP Agentic 10/10 + MCP 10/10, GitHub Action, SARIF, public CVE-to-rule ledger.

14K 12 1
sattyamjjain
agent-airlock

A type-checker and contract layer for AI agent tool calls: in-process, Pydantic-only. Strict argument validation, ghost-argument stripping, and self-healing retries for MCP servers and agent frameworks.

14K 19 5
sunglasses-dev
sunglasses

Open source input firewall for AI agents, beta. A local scanner checks text, code, PDFs, images, QR codes, audio and video with 1,569 patterns across 117 categories and reports findings and incomplete scans. A Claude Code hook blocks secret material in tool calls and the paths and hosts your policy lists before tools run.

13K 11 3
EnXan
vipi-scanner

Visual prompt injection scanner for images with OCR, a Python CLI, and a GitHub Action

11K 1 0
guardana
guardana-core

Open-source AI security verification for model artifacts, live endpoints, MCP servers, and recorded agent traces. Reproducible evidence for release decisions.

11K 232 21
adudley78
mcp-audit-scanner

Security scanner for MCP (Model Context Protocol) server configurations. Detects prompt injection, credential exposure, supply chain risks, and more.

11K 8 4
blitzcrieg1
agentmetry

Open-source security for AI coding agents: record, detect and block at the tool boundary, with a verifiable audit trail in the SIEM you already run.

10K 51 19
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology