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

Prompt Injection Defense Python Packages

Python packages with the GitHub topic prompt-injection-defense. Sorted by monthly downloads, with stars and forks.
vmware-skills
vmware-policy

Shared policy, audit and sanitization library for VMware Skills, with the vmware-audit CLI. Dependency library; no standalone MCP server.

9K 0 0
webpro255
agentlock

An adversarially benchmarked reference implementation for pre-action AI agent authorization. Provenance-based gating for LLM agent tool calls: deny-by-default permissions, parameter lineage, signed receipts, audit logging.

2K 19 4
patronus-protect
patronus-api-client

Security scanner and runtime protection for AI coding agents. Detects prompt injection, secrets, PII, and unsafe tool activity across Codex, Claude Code, and DeepSeek Harness.

1K 2 0
AgentP-Codes
eurycleia

Task-scoped data vault for AI agents: gives each task only the data it needs, hides secrets and personal details from the model, and blocks data going to the wrong place. Early beta, use at your own risk.

1K 2 0
Lijithvmv
guardlayer

A lightweight security layer that filters the inputs and outputs of LLM and agent applications — prompt injection, jailbreaks, leakage, secrets, PII and unsafe actions.

692 2 0
0xdewy
promptscan

Detect prompt injections

600 4 0
gianlucamazza
capability-reasoning-kernel

Python reference for a CaMeL-like Reasoning Kernel. Control/data-flow separation reduces prompt-injection-to-effect risk when planner input is trusted, the capability policy is correct, and tools enforce it. Topology, not a proof that injection cannot cause an unauthorized effect.

586 0 0
dibakshya01
grey-panda

The calm guardian for AI, agent, and MCP code — a zero-dependency, standards-anchored AI security toolkit for developers and security reviewers.

440 1 1
wqbcs
ai-prompt-toolkit

Deterministic LLM prompt security & quality gate (prompt's ESLint): zero LLM cost, byte-level reproducible verdicts, SARIF/CI-native, OWASP LLM Top 10 2026 mapped. Python CLI · GitHub Action · MCP · VS Code · Docker

429 1 0
lunayue0917-max
decoyshield

Counter-recon honeypot against agentic LLM attackers (PentestGPT/AutoGPT/LangChain). Six deploy modes: Flask drop-in, WSGI/ASGI middleware (Django/FastAPI), callable Python primitives, decoyshield CLI, edge configs (nginx/Caddy/Cloudflare), and Node.js npm package (Express/Fastify). Invisible-to-human, visible-to-LLM bait halts AI scans.

271 3 0
langguard
langguard

LangGuard Python Library

265 2 0
occludra
aisg

Self-hosted AI security proxy. Redact PII, block prompt injection, route to any LLM provider. OpenAI-compatible.

236 52 5
yairsabag
verb-authority

Prevent untrusted data from authoring protected tool-call arguments.

201 0 1
occludra
occludra

Self-hosted AI security proxy. Redact PII, block prompt injection, route to any LLM provider. OpenAI-compatible.

152 52 5
dronefreak
promptscreen

Protect your LLMs from prompt injection and jailbreak attacks. Easy-to-use Python package with multiple detection methods, CLI tool, and FastAPI integration.

147 15 8
krishddd
sec-guardrails

Defensive 7-layer runtime guardrails gateway for the Odysseus agent

123 1 0
sinamsv
pulsarai

An AI security library for block prompt injection and more 🤖👾

119 0 0
metacognitionai
zeos

ZEOS -- a transformer operating system: priority-preemptive scheduling, protected mode, and virtual context for LLM jobs

86 30 7
Top-Celestial-Company-Ltd
vajraclaw

Deterministic runtime governance in-band microsecond execution guardrail for AI Agents

77 16 0
lunayue0917-max
agent-trap

Web-layer counter-recon honeypot against agentic LLM attackers — drops invisible-to-human, visible-to-LLM payloads into your Flask/HTTP responses to halt, stall, or fingerprint AI-driven penetration scans.

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