promptshield-firewall
Real-time LLM prompt injection firewall — detect and block jailbreaks, system prompt extraction, and adversarial attacks before they reach your model.
Installation
pip install promptshield-firewall
Quick Start
from promptshield import PromptShield
shield = PromptShield(api_key="ps_your_key")
Simple boolean check
if not shield.is_safe(user_input): return {"error": "Request blocked by PromptShield."}
Safe to send to your LLM
response = your_llm.chat(user_input)
Full Response
result = shield.scan(user_input) print(result["verdict"]) # BLOCKED / SUSPICIOUS / SAFE print(result["risk_score"]) # 0-100 print(result["attack_types"]) # ["jailbreak", "role_hijacking"] print(result["explanation"]) # Human-readable analysis print(result["confidence"]) # 0.0-1.0
Async Support
result = await shield.async_scan(user_input)
What It Catches
- DAN jailbreaks and 300+ known templates
- System prompt extraction attempts
- Role hijacking attacks
- Indirect injection via documents/URLs
- Context manipulation and memory poisoning
- Data exfiltration attempts
Fail-Safe Design
If PromptShield is unreachable, the SDK defaults to SAFE so your application never goes down.
Pricing
Free: $0 — 50 calls/month Pro: $99/mo — 25,000 calls/month Business: $499/mo — 500,000 calls/month Enterprise: Custom — Unlimited
Get Your Free API Key
https://promptshield.live/docs — no credit card required.
Links
- Website: https://promptshield.live
- API Docs: https://promptshield.live/docs
- GitHub: https://github.com/kehinde-code/promptshield
Author
Kehinde Omosor — Founder & CEO, PromptShield Inc. kehinde@promptshield.live
Metadata
Release files for promptshield-firewall 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| promptshield_firewall-0.2.0.tar.gz | 4.4 kB | Without provenance | Details for promptshield_firewall-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| promptshield_firewall-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for promptshield_firewall-0.2.0-py3-none-any.whl |
Total release size: 9.3 kB
Release files / promptshield_firewall-0.2.0.tar.gz
| Download URL | promptshield_firewall-0.2.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92b9b916240dfc19b57a507c6a3f2443f0eca214395405d14c9c13d2bc0f9dca
|
|
BLAKE2b-256 checksum How to use checksums |
54d02cc665b9102e2ed23cab523d704ddde33e74da8ece595dca8e0ef133f723
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / promptshield_firewall-0.2.0-py3-none-any.whl
| Download URL | promptshield_firewall-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a255ae7315ada1dc4379a31da8eda6f4a7358a8fae6be32c0f3e23302045b64
|
|
BLAKE2b-256 checksum How to use checksums |
529189b51e457ddcc48de49e1f49ae7ba51dd5946248fd21b5d4d9a56bf8178d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for promptshield-firewall 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.