Open source
Light
Pattern matching and a local classifier: known injection shapes, and the phrasings no rule anticipates. 22 MB, about 2.5 ms, on CPU, no external call.
DefenderPrompt injection defense for AI tool calling
incoming tool result
Full panel, attack library and method on the Attack Benchmark.
One detection stack, three ways to run it on every tool result. Light Scan is open source and runs in your process. Deep Scan is a larger model from StackOne: Deep runs it on everything, Hybrid only where Light Scan is unsure.
Open source
Pattern matching and a local classifier: known injection shapes, and the phrasings no rule anticipates. 22 MB, about 2.5 ms, on CPU, no external call.
StackOne
Light Scan on everything, and Deep Scan on the results it is unsure about. You get Deep Scan's judgement where it changes the answer, at a fraction of the calls.
StackOne
Deep Scan reads every tool result for intent rather than phrasing, which catches attacks written to look like ordinary data. Run it in our infrastructure or yours.
Defender reports a risk level and returns the scanned content. Whether to block is your decision, not ours.
Defender is one detection stack reached three ways. Most StackOne customers never install anything. The library is available for TypeScript and Python; the two paths above it are configured rather than installed.
If you call tools through StackOne
Defender runs server-side on every RPC call, so it covers any agent in any language, including MCP. Configure it per project from the dashboard. No code.
Choose how much runs per project: Light, Hybrid or Deep.
If you build agents on the TypeScript SDK
Override the project setting for one toolset with the defender option on StackOneToolSet. Scanning still happens server-side; the SDK decides the policy.
If you want it in your own stack
Install @stackone/defender for TypeScript or stackone-defender for Python, and call it wherever you handle tool results. Both track the same version and run entirely in your process, on any tool output rather than only StackOne's.
Some attacks are built so that no single tool result contains a complete injection. One read carries a plausible instruction, another carries only a value, an address or an id. A classifier looking for injection-shaped text has little to fire on in either. Deep Scan reads each result for what it is trying to get done, which is what catches them.
Deep Scan is a model that reads the results the local scan cannot resolve by itself. It runs on a subscription, in our infrastructure or yours. Tell us what you are protecting and we will get back to you.