PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Prompt Injection Python Packages

Python packages with the GitHub topic prompt-injection. Sorted by relevance, with stars and monthly downloads.
protectai
llm-guard

The Security Toolkit for LLM Interactions

234K 3K 414
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/

131K 464 23
ethz-spylab
agentdojo

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

76K 646 163
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+.

21K 2 0
pezhik
skilltotal

Scan AI components (MCP servers, agent skills, npm/PyPI packages) for malware & risky capabilities. Local, deterministic, evidence-anchored. Free & OSS.

16K 1 0
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.

15K 7 1
arcjet
arcjet

Arcjet Python SDK. Stop bots and automated attacks from burning your AI budget, leaking data, or misusing tools with Arcjet's AI security building blocks.

10K 32 2
Jake-Schoellkopf
aicu-scanner

Black-box security scanner for LLM applications — prompt injection, safety bypass, credential leakage

9K 3 0
sunglasses-dev
sunglasses

Sunglasses for AI agents. Protection layer + neighborhood watch.

9K 3 2
HeadyZhang
agent-audit

Static security scanner for LLM agents — prompt injection, MCP config auditing, taint analysis. 51 rules mapped to OWASP Agentic Top 10 (2026). Works with LangChain, CrewAI, AutoGen.

8K 192 22
adudley78
mcp-audit-scanner

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

8K 2 1
dockfixlabs
dfx-agentguard

Autonomous security scanner for AI agents - detects prompt injection, tool abuse, data exfiltration, and all 10 OWASP ASI Top 10 vulnerabilities. MCP server mode included.

6K 1 0
crucible-security
crucible-security

pytest for AI agents - Autonomous red-teaming, behavioral monitoring & security testing for LLM agents

6K 44 32
PrismorSec
immunity-agent

Runtime security for Agents. Blocks dangerous commands, prevent secret leaks, stop prompt injection, gate risky package installs and visibility and control over tool calls.

6K 222 17
gurudeepmallam-cmd
mcppt

MCPTROTTER - 28 automated security checks for any MCP server

5K 0 0
SaiTeja-Erukude
promptsanitizer

Secrets firewall for AI pipelines — redact credentials and PII before they reach (or leave) LLMs.

4K 13 0
admina-org
admina-core

The open framework for governed AI development: EU AI Act compliance, PII redaction, MCP proxy, prompt-injection firewall. Python + Rust, Apache 2.0

4K 5 2
CSOAI-ORG
agent-prompt-injection-firewall-mcp

AI agent prompt injection firewall MCP. OWASP LLM Top 10 #1 runtime guard. MIT

4K 0 0
UnplugAI
unplug-ai

Every way an LLM can break one SDK to stop it. Injection. Hallucination. Leakage. Handled.

4K 1 1
getarcis
arcis

Inside-the-app security middleware for Node.js, Python, and Go. 20+ attack vectors. One install, three languages, MIT.

4K 6 2
adepeju4
agent-attest

Evidence-grounded evaluation for AI agents — verifies each claim against the agent's real tool outputs (constrained, evidence-grounded model judgment, not holistic LLM-judge guesswork), with confidence intervals.

4K 17 0
Impossible-Mission-Force
wardproof

Deterministic, auditable security boundaries for AI agents. Local-first, zero-dependency, MIT.

4K 6 0
AgentSeal
agentseal

Security toolkit for AI agents. Scan your machine for dangerous skills and MCP configs, monitor for supply chain attacks, test prompt injection resistance, and audit live MCP servers for tool poisoning.

4K 292 43
MaxMLang
pytector

Easy to use LLM Prompt Injection Detection and Prompt Input Sanitization / Detector Python Package with support for local models, API-based safeguards, and LangChain guardrails.

4K 44 24
    • Data from PyPI, GitHub, ClickHouse, and BigQuery