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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptshield_firewall-0.2.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptshield_firewall-0.2.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file promptshield_firewall-0.2.0.tar.gz.

File metadata

  • Download URL: promptshield_firewall-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for promptshield_firewall-0.2.0.tar.gz
Algorithm Hash digest
SHA256 92b9b916240dfc19b57a507c6a3f2443f0eca214395405d14c9c13d2bc0f9dca
MD5 df209bf070bda2f3eec77be1becdd5bb
BLAKE2b-256 54d02cc665b9102e2ed23cab523d704ddde33e74da8ece595dca8e0ef133f723

See more details on using hashes here.

File details

Details for the file promptshield_firewall-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for promptshield_firewall-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a255ae7315ada1dc4379a31da8eda6f4a7358a8fae6be32c0f3e23302045b64
MD5 b9c964e285ae864efbe74cf7badf6972
BLAKE2b-256 529189b51e457ddcc48de49e1f49ae7ba51dd5946248fd21b5d4d9a56bf8178d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page