pipecat-firewall
A real-time adversarial-input firewall for Pipecat voice agents. It inspects each user turn in real time and blocks, flags, or redacts adversarial content — PII-extraction solicitation, prompt injection, and policy-override — before the LLM acts on it.
Detection + enforcement only: deterministic, dependency-light, and
production-safe. Tested against the pipecat-ai 0.0.x line (0.0.98–0.0.108);
the dependency is capped <1.0 because pipecat-ai 1.x restructures the frame
API (1.x support is future work).
Status: 0.1.0 core. The inbound
SentryFirewallFrameProcessor ships with three deterministic detectors and block/flag/redact enforcement. The outboundSentryLeakGuardand the optional LLM classifier land in later steps.
Install
pip install pipecat-firewall
The one-liner
from pipecat_firewall import SentryFirewall
pipeline = Pipeline([
transport.input(),
stt,
SentryFirewall(), # ← detects & blocks adversarial input
context_aggregator.user(),
llm,
tts,
transport.output(),
context_aggregator.assistant(),
])
Detection categories
| Category | What it catches |
|---|---|
PROMPT_INJECTION |
"ignore previous instructions", developer mode, "repeat your system prompt" |
PII_EXTRACTION |
soliciting the agent to read back a card number, SSN, PIN, CVV |
POLICY_OVERRIDE |
"skip verification", "my manager authorized", manufactured urgency |
PII_LEAK |
outbound: Luhn-valid card numbers, SSN/PIN/CVV in the agent's response |
License
MIT
Metadata
Release files for pipecat-firewall 0.1.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 | |
|---|---|---|---|
| pipecat_firewall-0.1.0.tar.gz | 18.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pipecat_firewall-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.7 kB
Release files / pipecat_firewall-0.1.0.tar.gz
| Download URL | pipecat_firewall-0.1.0.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29bef139c8b56c48cc5a04678dbbecea7d6b74cf755776e08f63cdd9d5736fa0
|
|
BLAKE2b-256 checksum How to use checksums |
53f8d2f0d9356084bf6bd6387482b5441240b188e3d3b2bc2a0318d6809ffb66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logRelease files / pipecat_firewall-0.1.0-py3-none-any.whl
| Download URL | pipecat_firewall-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dee45e46f531218981e0e285aa6f5b14b6002703732a69a8367c2afe45bae54c
|
|
BLAKE2b-256 checksum How to use checksums |
1bda27ed4dbb67b31f23751b0f7a0a997483555db60206b8e8a9c23072096e06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency log