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

Jailbreak Detection Python Packages

Python packages with the GitHub topic jailbreak-detection. Sorted by monthly downloads, with stars and forks.
gantrly
mobiusguard-redact

Streaming secret and PII redaction for LLM output: rewrites API keys, tokens, private keys, cards and IBANs in a streamed reply, even split across chunks, without stopping the stream.

2K 0 0
gantrly
mobiusguard

Open-source LLM firewall proxy for OpenAI and Anthropic APIs: prompt-injection checks on the way in (with Fortress-XS, its own CPU classifier), streaming secret and PII redaction on the way out, audit log; one base URL to change.

2K 0 0
gantrly
mobiusguard-eval

Honest evaluation harness for LLM guardrails: prompt-injection detectors scored on held-out attack families at a fixed false-positive rate, with pinned datasets, a provenance ledger and CPU latency; trains and exports small ONNX classifiers.

2K 0 0
uptrain-ai
uptrain

UpTrain is an open-source unified platform to evaluate and improve Generative AI applications. We provide grades for 20+ preconfigured checks (covering language, code, embedding use-cases), perform root cause analysis on failure cases and give insights on how to resolve them.

2K 2K 204
3nesdeniz
benigntwin

Benchmark for prompt-injection detectors and LLM guardrails: every attack is scored next to a benign twin. Recall, false-positive rate and pair accuracy with confidence intervals, per attack family and language. Python CLI and library.

2K 0 0
0xsl1m
shadowshield

Unified open-source security shield for agentic AI systems — inspired by Sentinel & ShadowClaw.

1K 0 1
AICordon
aicordon

Picket: a local signature detector for prompt injection, planted and typed - no model, no network, no dependencies

1K 1 0
hermes-labs-ai
little-canary

Prompt-injection risk sensor using sacrificial canary-model probes and structural preflight checks; experimental Ingest admission with explicit coverage evidence

933 42 8
mattijsmoens
sovereign-shield

Deterministic AI defense framework: immutable input filtering, n-model cryptographic hash consensus, and self-learning adaptive rules. Zero dependencies. Hardware-sealed.

919 21 6
killertcell428
pyaigis

Open-source trust layer for adopting Claude Code and autonomous AI agents at work: deterministic guardrails on every tool call, tamper-evident audit logs, and a generated IT-approval pack (aigis trust-pack). Zero-dependency Python firewall — prompt injection, MCP tool poisoning, memory defense; 44 compliance templates across US/CN/JP/EU. Library, Docker sidecar, or CLI.

844 52 9
vpdeva
blackwall-llm-shield-python

Blackwall LLM Shield is an open-source AI security toolkit for JavaScript and Python that protects LLM apps from prompt injection, sensitive data leaks, unsafe tool calls, and hostile RAG content with prompt sanitization, PII masking, output inspection, policy enforcement, and audit trails.

773 1 0
AICordon
aicordon-langchain

Picket: a local signature detector for prompt injection, planted and typed - no model, no network, no dependencies

738 1 0
maheshmakvana
llm-injection-guard

Drop-in prompt injection defense for LLM apps and AI agents — detect, block, and audit injection attacks in real time

650 0 0
lockllm
lockllm

Official Python SDK for LockLLM

582 0 0
DmitrL-dev
sentinel-llm-security

Free, open tools to learn how AI apps get attacked, test a guard on your own data and check what a security test result can prove. EN/RU academy, Guard Lab, eval-bounds. Live protection: spectorn.ai

503 114 19
AICordon
aicordon-haystack

Picket: a local signature detector for prompt injection, planted and typed - no model, no network, no dependencies

489 1 0
cgrtml
reasongate

Explainable security gate for LLM apps — blocks prompt injection with an auditable reason for every decision.

483 17 0
kirtanpatel2003
llm-thorn

🌵 Runtime semantic security layer for LLM apps — catches jailbreaks, prompt injection & data exfiltration before they reach your model. Fully local. WAF for the AI era.

471 1 0
mattijsmoens
intentshield

Pre-execution intent verification for AI agents. Audits what your AI is about to do, not what it says. Zero dependencies, deterministic, hash-sealed.

392 22 5
stef41
injectionguard

Prompt injection detection for LLM applications and MCP servers. Detects jailbreaks, instruction override, encoded attacks. OWASP LLM #1 defense.

370 2 0
akshaymagapu
aisafeguard

Open-source LLM safety guardrails: prompt injection protection, PII redaction, toxicity filtering, and OpenAI-compatible AI proxy

261 1 0
yfedoseev
jailguard

Pure-Rust prompt-injection detector with 1.5MB embedded MLP classifier. 98.40% accuracy, p50 14ms CPU inference. Apache-2.0/MIT alternative to Rebuff (archived 2025) and Lakera Guard.

239 13 1
DmitrL-dev
rlm-toolkit

Free, open tools to learn how AI apps get attacked, test a guard on your own data and check what a security test result can prove. EN/RU academy, Guard Lab, eval-bounds. Live protection: spectorn.ai

210 114 19
mattijsmoens
sovereign-shield-adaptive

Self-improving security filter for AI applications. Reports missed attacks, sandbox-tests new rules, auto-deploys validated filters.

207 21 6
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology