Skip to main content

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

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)

Source distribution for promptshield-firewall 0.2.0
File Size Uploaded
promptshield_firewall-0.2.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for promptshield-firewall 0.2.0
File Interpreter ABI Platform
promptshield_firewall-0.2.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page