Protect Your AI Agents
from prompt injection, jailbreaks, and PII
leaks
21-layer input + output guardrails that block jailbreaks, prompt injections, PII leaks, and model-theft attempts in <20ms. Severity-based blocking, monitor mode, and PII redaction. Integrate in two lines of code.
No credit card required · Free 500 requests/month
Everything You Need to Secure Your AI
21 guardrails covering input and output — injections, leaks, theft, and misconfigurations — with severity control and monitor mode for safe rollout.
Prompt Injection Detection
34+ injection patterns plus fuzzy matching for typos like “1gnore”, emoji stripping, 400+ keyword blocklist, and 20+ LLM delimiter checks (ChatML, Llama [INST], Anthropic, XML). Severity-tagged LOW–CRITICAL.
Jailbreaks & Obfuscation Defense
Catches DAN, persona attacks, and hidden payloads: Base64/Hex/URL decoded 3 levels deep, plus Rot13, reversed text, binary strings, homoglyph/leet normalization, and nonce-tagged sandbox wrapping.
PII Leakage Prevention
29 gated patterns — emails, phones, SSN, passports, IBAN, IPs, plus OpenAI/Anthropic/AWS/Stripe/GitHub keys — with Luhn and context checks to cut false positives. BLOCK or REDACT (<EMAIL_REDACTED>) per key. ~0.09ms for 4KB.
Output Validation LIVE
Scans LLM responses before they reach users: system-prompt leakage (20+ patterns), PII in output, suspicious/hallucinated URLs, leaked secrets, jailbreak-success signals, and canary leaks. Via /guardrails/check-output.
Distillation & RAG-Theft Protection
48 patterns across 9 categories block model theft: bulk extraction, training-data elicitation, RAG / knowledge-base dumping, batch generation, and fine-tune dataset theft. Configurable threshold (default 0.6).
Severity, Monitor & Per-Key Control
LOW–CRITICAL severity with min_block_severity, monitor/dry-run mode for safe rollout, atomic rate limits, per-key guardrail scoping, custom rules, competitor blocking, IP allow/block lists, and 16-script language detection.
21-Layer Guardrail System
Every prompt runs through 21 input checks plus 5 output sub-checks in ~0.8ms engine time (~6-9ms total API). Monitor mode lets you shadow-test before enforcing.
Sanitize & Wrap
- • Input Schema Validation
- • Text Normalization (NFKC + leet)
- • Homoglyph + Invisible Char Removal
- • Nonce Sandbox Wrapping + Length Cap
Allow / Block Lists
- • 631 Safe-Phrase Fast-Path Allowlist
- • 379 Keyword Blocklist (15 cats)
- • Regex + Fuzzy Match + Emoji Strip
- • Custom Rules Per Key
Payload Decoding
- • Base64/Hex/URL + Rot13/Reversed/Binary
- • Recursive Decode (3 Levels Deep)
- • Markdown / Code-Block Exploits
- • Delimiter Injection (20+ LLM tags)
Behavior & Secrets
- • Role-Play / DAN (30+ patterns)
- • Dual-Layer Shannon Entropy
- • PII Scan (29 patterns, ~0.09ms)
- • Canary Tokens (11 + custom)
Theft & Control
- • Injection + Distillation (48 pats)
- • RAG / Fine-Tune Theft Blocking
- • Sandbox Escape Detection
- • Language Check (16 scripts)
Output + Enforcement
- • Output: Leak / PII / URLs / Secrets
- • LOW–CRITICAL Severity Threshold
- • Monitor / Dry-Run Shadow Mode
- • BLOCK or REDACT Handling
Zero-In Retention
Never train on your data. Excerpts auto-delete after 90 days, IPs anonymised after 30 days — clear anytime.
Stateless Architecture
In-memory analysis, background logging, per-key toggles (ALL / BLOCKED_ONLY / NONE). SOC 2 Roadmap.
Global Low-Latency
~0.8ms engine, ~6-9ms total API (<20ms budget). Python, Node, REST, and MCP for agents.
Coming Soon
We ship what buyers ask for. Next up — no timelines promised, but actively explored.
Hallucination Detection
Coming SoonFlag fabricated citations, diagnoses, and facts in LLM outputs before they reach users. Future idea — tell us your use case via feedback.
Semantic Similarity Detection
ExploringEmbedding-based catching of paraphrased injections that evade pattern matching.
Scan Prompts in Under 5 Minutes
Python SDK, Node.js SDK, or plain REST — plus MCP servers for Claude Desktop and agents. Full reference in GitHub.
Python
pip install promptdefend
from promptdefend import PromptDefend
client = PromptDefend(api_key="...")
result = client.scan("...") # result.safeNode.js
npm install promptdefend
const client = new PromptDefend({apiKey});
await client.scan("..."); // {safe}REST
POST /api/v1/guardrails/check X-API-Key: ... prompt → status: SAFE / 403 Output: POST /api/v1/guardrails/check-output
Simple, Transparent Pricing
Start for free, scale with security. No hidden fees.
$0
/month
Perfect for hobbyists and learning.
- ✓ 1 API Key
- ✓ 10 req/min · 500 req/month
- ✓ Core Guardrails + Playground
- ✓ 1 Day Logs
Frequently Asked Questions
Everything you need to know about securing your AI applications with PromptDefend.
Still have questions? Get in touch