AI & ML interests
memory efficient on-device AI security
Recent Activity
Patronus
We build small security models for AI applications and agents, and we make them fast on the CPU. They detect prompt injection, harmful content, sensitive documents, risky tool calls and unsafe agent steps. Every model on this page is open, under Apache 2.0 or MIT, and runs without a GPU.
Our work covers the open models, the Patronus Runtime Engine that runs them, Patronus Ark to build them into an application, and a CPU-first encoder for the next generation.
![]() Wolf Defender Prompt injection |
![]() Tiger Guard Content moderation |
![]() Lion Warden Seven checks, one pass |
![]() Orca Sonar Document classes |
![]() Husky Pack Tool calls |
![]() Cat Shell Risk Commander Shell commands |
![]() Wolf Defender Jev Agent decisions |
Models
| Model | Task | Reported results |
|---|---|---|
| Wolf Defender Small · Edge |
Prompt injection and jailbreak instructions in prompts, documents, emails, web pages and tool outputs | F1 97.28 % at 0.64 % false positives (19,762 validation examples); 92.29 % mean over 13 external benchmarks. Edge: 58 MB |
| Wolf Defender Threat Classifier | One of seven threat classes for a prompt, tool call or agent step, such as instruction override, secrets access or exfiltration | Macro F1 0.925 on 4,078 held-out examples |
| Tiger Guard Small |
Content moderation in English and German: abuse, hate, threats and harmful requests in prompts, responses and comments | Accuracy 88.8 % on 1,500 prompts (HateCheck, Intuit, Aegis 1.0) |
| Lion Warden Edge |
One encoder, seven heads in a single pass: injection, threat type, routing, document class, tool class, tool action, tool tags | Mean head F1 0.937; injection head F1 0.966 |
| Orca Sonar | Nine document classes such as legal, HR, finance or medical, before a document reaches the context window | Macro F1 0.940 on real held-out documents |
| Husky Pack Sight · Paw · Nose |
Three models describe a tool call: tool type, action, and the security properties of its data flow | Husky Nose: macro F1 0.965 (multi-label) |
| Cat Shell Risk Commander | Risky shell commands and scripts before an agent runs them; a 4.1 MB linear classifier, no neural network | F1 94.20 % at 0.86 % false positives (5,948 commands) |
| Wolf Defender Jev Decision Steering Gate |
A decision model for agent security: scene, question and answer options go in, one probability per option comes out. The gate catches claims planted to steer that answer | Balanced accuracy 93.1 over 33 held-out benchmarks; 118 MB as INT8 |
All transformer models are fine-tuned from mmBERT and ship ONNX builds, most of them down to INT8 with INT4 embeddings. Each model card lists its evaluation sets, limitations and every quantized variant. Wolf Defender is used in Apache Camel, Red Hat TrustyAI, Delphi Security xaIDR and Wanaku.
Patronus Runtime Engine
Our inference runtime for these models. It runs the same ONNX files faster than ONNX Runtime and keeps memory flat on long inputs, which it splits into windows. At 2,048 tokens it is 1.6× to 7.1× faster, depending on the chip, across nine CPUs: AWS Graviton2 to Graviton4, AMD Zen 3 and Zen 4, Intel Ice Lake and Sapphire Rapids, Apple M1 and M2.
Wolf Defender Small, FP32, batch 1, median on an Apple M2 (AWS mac2-m2.metal):
| Input | ONNX Runtime | Runtime Engine |
|---|---|---|
| 256 tokens | 80 ms | 42 ms |
| 2,048 tokens | 1,151 ms | 363 ms |
| Memory at 2,048 tokens | 847 MB | 227 MB |
The Runtime Engine is licensed. Every model on this page also runs on ONNX Runtime, just slower. Licensing: team@patronus.studio.
Patronus Ark
Patronus Ark puts the models into an application. It is a Rust library with Python bindings: it splits inputs, combines rules and models, and runs only the checks a case needs. Results come back structured, with the spans that triggered them. A text is embedded once, and three layers share the result:
| Layer | What runs |
|---|---|
| Structured signals | Rules and checksums find secrets, identifiers and known injection patterns, with their location and without a model |
| Non-Transformer Decision Blocks | Small heads on the shared embedding make the first decision |
| Lion Warden | Only cases where more context helps reach the full model, which screens seven security tasks in one pass |
The rule layer alone, on the patronus-security scoreboard (Ark 0.1.10): secrets F1 0.894 against 0.511 for gitleaks 8.30.1 and 0.462 for TruffleHog 3.97.9; PII detection in 0.29 ms for a short text in Python, against 10.2 ms for Presidio.
pip install patronus-ark · cargo add patronus-ark · documentation · patronus.studio/en/product/security-lib. Public source, community or commercial license.
Encoder research
We are building our own encoder, designed for the CPU from the start. A text is embedded once, and small heads answer several security questions from that one embedding. It is meant to become the shared backbone of our next models.
The next step is a Wolf Defender for multi-turn agent sessions. The encoder reads only the current turn and keeps earlier turns in a compact security memory, so a long session never has to be encoded again. Our proposal on Manifund asks for the compute, training data and adversarial evaluation this needs:
Decision Model Guard
decision-model-guard (pip install decision-model-guard, MIT) protects decision models such as Jev or an LLM judge against steering claims, with the Decision Steering Gate, content scanners, a policy and an audit log.
Writing
- Tiger Guard: content moderation on the CPU, 19 Nov 2026
- Decision Steering Gate: protecting decision models, 17 Oct 2026
- Wolf Defender Jev: a decision model for AI agent security, 13 Oct 2026
- Detecting risky shell commands, 7 Oct 2026
- How NTDBs make decisions without a transformer, 12 Sep 2026
- How we run real-time AI security inference on a CPU, 31 Aug 2026
Patronus is developed in Regensburg by Casdo Labs GmbH. patronus.studio · GitHub · team@patronus.studio






