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

Unified audit logging, policy enforcement, and sanitization for VMware MCP skills

8K 0 0
Lijithvmv
guardlayer

Runtime guardrails between an AI agent and its tools: scan what it reads, gate what it does, and track the session so a secret read earlier can't be exfiltrated later. Containment over detection — pure Python, zero dependencies, ~0.2 ms per tool call.

2K 2 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
dibakshya01
grey-panda

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

2K 1 1
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.

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

780 2 0
yairsabag
verb-authority

Prevent untrusted data from authoring protected tool-call arguments.

613 0 1
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.

280 3 0
occludra
occludra

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

204 46 4
langguard
langguard

LangGuard Python Library

196 2 0
occludra
aisg

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

188 46 4
krishddd
sec-guardrails

Defensive 7-layer runtime guardrails gateway for LLM agents: a reverse proxy that blocks prompt injection (incl. indirect/XPIA), tool misuse, and data exfiltration on every turn. Polyglot — Python control plane + Rust security core + React HITL. Metrics reported split (ASR vs FPR), never one blended F1.

143 1 0
sinamsv
pulsarai

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

127 0 0
metacognitionai
zeos

ZEOS: a transformer operating system — priority-preemptive scheduling, protected mode, and deterministic replay for LLM jobs

111 21 6
Top-Celestial-Company-Ltd
vajraclaw

⚡ DROS™ VajraClaw (Hacker Edition): Free Multi-Agent Runtime Security & Docker Governance Gateway with W3C DID & <1μs Enforcement

101 16 0
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.

94 15 8
lunayue0917-max
agent-trap

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.

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