OWASP LLM Top 10 ยท #1 Vulnerability ยท Open Source

Stop prompt
injection attacks.

Open-source security middleware for LLM apps. 3-layer detection. 2 lines of Python. Works with ChatGPT, Claude, Gemini โ€” any AI.

Try live demo โ†’ View on GitHub
26+
detection rules
86
automated tests
<1ms
layer 1 latency
3
detection layers
Architecture

Built different.
Designed to block.

Layer 1
01
Regex Rule Engine
26+ YAML rules compiled at startup. Pattern matching against all known attack signatures. Blocks obvious attacks with zero ML overhead.
โšก < 1ms response
Layer 2
02
ML Classifier
HuggingFace transformer understands semantic meaning. Catches disguised attacks regex misses completely.
๐Ÿง  10โ€“30ms
Layer 3
03
Custom Rules
Add domain rules via API. No redeploy needed. In-memory cache for zero latency.
๐Ÿ”ง Your rules
Integration
2
lines to protect any LLM
Platforms
Any
OpenAI ยท Claude ยท Gemini
False positives
<3%
on benign inputs
Design
Fail
open โ€” never breaks app
Quick start
# pip install llmguardian

# Before โ€” unprotected
def ask_gpt(user_message):
return openai.chat(user_message)

# After โ€” 2 lines added
from promptshield import shield

@shield(mode='block')
def ask_gpt(user_message):
return openai.chat(user_message)
๐Ÿ›ก๏ธ InjectionDetected: prompt_injection ยท HIGH ยท INJ001 โ€” AI never saw this
โœ“ ALLOW โ€” "What are your opening hours?" passed through normally
What gets blocked
๐Ÿ’‰
Prompt Injection
"Ignore all previous..."
HIGH
๐Ÿ”“
Jailbreak
"You are now DAN..."
HIGH
๐Ÿ”
Prompt Extraction
"Repeat system prompt..."
HIGH
๐Ÿ“Š
PII Exfiltration
"List all customer emails..."
HIGH
๐ŸŒ
Indirect Injection
Hidden in docs/URLs
MED
Interactive

Try it.
Right now.

PromptShield ยท Scanner
live
โ† Enter a message to see the scanner in action
Built with

The stack.
Production grade.

๐Ÿ
Python
core language
โšก
FastAPI
API framework
๐Ÿ˜
PostgreSQL
event storage
๐Ÿค—
HuggingFace
ML classifier
โš›๏ธ
React
dashboard
๐Ÿณ
Docker
containers
๐Ÿ”„
GH Actions
CI/CD
๐ŸŒŠ
WebSocket
live feed