Runtime protection
A prompt injection attack doesn’t need the LLM to say anything bad. It just needs the LLM to call the right function. Thicket sits between your application and the operations it can perform and blocks them before they execute: at the subprocess, the network socket, the file write. By the time it blocks, the operation hasn’t happened yet.
What Thicket blocks
Enforcing at the prompt level is the wrong layer. Base64-encode the payload, translate it, split it across tokens: none of it matters. Thicket enforces at the operation. There is no obfuscation that bypasses a kernel control.
Every prompt, tool result, and model output is scanned before it can route execution anywhere. A library of deterministic patterns catches direct overrides, persona injections, and jailbreak templates. Runs in your process. Nothing leaves.
Detects Crescendo-style escalation attacks, adversarial instructions accumulated across conversation turns, and sequential system prompt extraction — patterns invisible to single-message scanners.
exec, eval, subprocess.run: intercepted at the Python level before they run. Doesn’t matter what call path got there.
Blocks outbound connections to private IP ranges and cloud metadata endpoints. Enforced at the network call, not the prompt.
Sandboxes write access to sensitive paths (credentials, SSH keys, cloud config) so a compromised agent can’t exfiltrate them.
Scans model checkpoint files for embedded payloads before they are loaded, stopping the attack before the Python runtime sees it.
A second, independent enforcement layer at the kernel level. Cannot be reversed from application code. Catches bypasses that evade the Python layer.
Deployment
Thicket installs as a standard Python package. thicket.init() auto-detects FastAPI, Flask, or Django and wires middleware automatically. Also patches LangChain, LlamaIndex, and OpenAI SDK. Run in audit_only mode to validate false positive rates before switching to enforcement.
Works with
LangChain · LlamaIndex · AutoGPT
FastAPI · Flask · Django
Kubernetes · Linux · Windows Server
Integrates with
Splunk · Elastic · Azure Monitor
GitHub Advanced Security
OCSF-structured audit logs