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

Prompt Injection Python Packages

Python packages with the GitHub topic prompt-injection. 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
protectai
llm-guard

The Security Toolkit for LLM Interactions

124K 3K 477
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
duriantaco
skylos

Open source local-first PR scanner that finds dead code, security bugs, secrets, quality regressions, and AI-code mistakes before merge. For first timers refer to https://duriantaco.github.io/skylos/repo-map/

98K 958 76
ethz-spylab
agentdojo

A Dynamic Environment to Evaluate Attacks and Defenses for LLM Agents.

74K 1K 295
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
tenuo-ai
tenuo

Task-scoped authorization for AI agents. Cryptographic warrants constrain tools and arguments, prevent privilege escalation at every delegation hop, and produce signed evidence of what was allowed or denied.

25K 110 29
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
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
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
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
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
batrapulkit
squidbrake

Agents propose. People approve. Change control for AI agents: everyday work runs on its own, anything an agent can't take back waits for a teammate's sign-off, every action on a tamper-evident record. Open source.

11K 19 35
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
OWASP
agent-memory-guard

Runtime defense against memory poisoning in AI agents (OWASP ASI06). Drop-in for LangChain, OpenAI Agents, AutoGen, CrewAI and mem0.

10K 214 65
guardana
guardana-rules

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

10K 232 21
crimsondevil0929
interlock-escrow

Stage what an AI agent's write does, measure it, and commit it once or not at all.

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