PyPI Stats
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About
Home

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

309K 3K 384
duriantaco
skylos

Open-source PR gate for Python, TS/JS, Java, and Go. Stop merging dead code, secrets, security flows, and AI-code regressions.

123K 428 19
ethz-spylab
agentdojo

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

23K 548 141
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.

10K 6 1
XSafeAI
xsafeclaw

Introducing XSafeClaw: The Open-Source Agent Safety Platform from Fudan University

10K 148 6
sunglasses-dev
sunglasses

Sunglasses for AI agents. Protection layer + neighborhood watch.

10K 1 1
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+.

9K 2 0
q-uestionable-AI
q-uestionable-ai

Agentic AI Security Research

8K 0 0
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.

6K 40 23
killertcell428
aig-guardian

🛡️ Open-source LLM security library for Python. Protect your AI apps from prompt injection, data leakage, and harmful outputs in 3 lines of code.

4K 14 3
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 235 34
humanbound
humanbound-cli

DEPRECATED: renamed to 'humanbound'. This is the final release; no further updates will be published.

4K 13 0
adudley78
mcp-audit-scanner

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

3K 1 0
9hannahnine-jpg
arc-sentry

Whitebox prompt injection detector for self-hosted open-weight LLMs. Deployment-specific behavioral monitor; calibrates on your traffic, detects drift from that baseline.

3K 5 1
mvar-security
mvar-security

MVAR: Information Flow Control for LLM Agent Runtimes

3K 5 1
wauldoai
wauldo

Official Python SDK for Wauldo — verified AI answers with zero hallucinations. pip install wauldo

3K 1 2
Acacian
agent-aegis

LLM guardrails & prompt injection detection for Python. Auto-instruments LangChain, CrewAI, OpenAI, LiteLLM + 8 more frameworks. PII masking, toxicity detection, policy CI/CD. One line, zero code changes.

3K 9 3
killertcell428
pyaigis

The open-source firewall for AI agents. Block prompt injections, jailbreaks, and data leaks before they reach your LLM. Multi-layer defense, agent-era security (MCP/Capability), US/CN/JP/EU compliance. Zero-dependency core.

3K 3 0
mvar-security
clawzero

Deterministic execution boundary for AI agents. IFC enforcement at the sink. 5 frameworks. 50 attack vectors. Apache 2.0.

2K 3 0
agentshield
agentshield-guard

Official Python SDK for AgentShield — prompt-injection detection for LLM agents.

2K 0 0
anthalehq
anthale

Anthale's official Python SDK

2K 1 0
maheshmakvana
llm-injection-guard

Drop-in prompt injection defense for LLM apps and AI agents — detect, sanitize, block, and audit injection attacks in real time. Includes multi-turn session scanning, allow-lists, rate-abuse detection, multi-layer scanner, FastAPI and Flask middleware.

2K 0 0
acebot712
promptguard-sdk

PromptGuard Python SDK — Drop-in security for AI applications

2K 1 0
Frostbyte-Devs
aiproof

ESLint for AI prompts — a static analyzer for LLM system prompts, user templates, Jinja/Mustache, YAML configs, and SDK call sites.

2K 0 0
    • Data from PyPI, GitHub, ClickHouse, and BigQuery