Is Llama-Doorman-22M state of the art?Pending benchmarks.Announced Oct 20, 2026; no independent results yet.
Pinata's small prompt-injection classifier for AI agent tool output (files, web pages, shell output, emails, tickets, MCP results). It is meant to tell a live instruction aimed at an agent apart from text that only quotes, documents or tests one. Fine-tuned from Meta's Llama Prompt Guard 2 22M and shipped as one int8 ONNX file that runs on a laptop CPU; it powers the on-device injection check in Pinata's open-source Doorman app.
The details so far
- Lab
- Pinata
- Announced
- Oct 20, 2026
- API
- Not yet
- Open weights
- Published · Hugging Face (PinataCloud/Llama-Doorman-22M)
- Parameters
- 70.8M total (21.4M transformer + 49.4M embeddings); Pinata calls it a 22M-parameter model
- Task
- Prompt-injection detection on agent tool output; two logits, index 1 = attack, with calibration folded into the head
- Base model
- Meta's Llama Prompt Guard 2 (22M), fine-tuned; DeBERTa-v2 sequence classifier with the stock Prompt Guard 2 tokenizer
- Format
- One int8 per-channel ONNX file, 87.3 MB; runs with onnxruntime (Python, Node) or onnxruntime-web (WASM)
- Runs on
- On-device on a CPU; no GPU or API key needed
- License
- Llama 4 Community License ("Built with Llama")
- Used in
- Doorman, Pinata's open-source (Apache 2.0) desktop app that monitors local coding agents such as Claude Code, Codex and Cursor
- Training data
- Public, licence-checked sets (including microsoft/BIPIA, deepset/prompt-injections, Lakera/gandalf_ignore_instructions) plus files from security repositories; English-centric
Tags marked unsure are not stated on the lab's own pages.
What would let us call it
Verdicts use only independent boards we already track. Two consecutive snapshots are required before any crown.
- Publicly announced with a source
- Usable by the public (API or weights)
- Listed on an independent board we track
- Enough results for a rank in a category
- Holds across two snapshots (crowns only)
What the lab claims
Self-reported. Shown for context; not used in any verdict.
Lab claim: as a stand-down filter it clears 97.4% of keyword-rule false alarms on template-style tool output and 88.4% on a general public mix, against 2.6% for stock Prompt Guard 2 22M.
Lab claim: it catches 66% (1,624 of 2,460) of attacks the keyword rules missed, with 0.09% false alarms (3 of 3,512) on clean text.
Lab claim: in Pinata's 14-model comparison it caught 79% of missed attacks at a 0.4% false-alarm rate, against 37.6% for GPT-6.1 Sol and 31-32% for Claude Opus 5.5; Pinata notes the LLMs got one zero-shot prompt while this model was trained for the task.
Lab claim: about 4% of held-out disguised attacks still score as harmless (4.4% of 450), so Pinata says to use it on top of deterministic detectors, not instead of them.
Lab claim: about 0.24 s per check on a laptop CPU.
Sources
LABHow we trained a small model to tell a prompt injection from a quote (Pinata blog)pinata.cloud/blog/how-we-trained-a-small-model-to-tell-a-prompt-injection-from-a-quote/ · Oct 20, 2026REPOPinataCloud/Llama-Doorman-22M model card (Hugging Face)huggingface.co/PinataCloud/Llama-Doorman-22MLABIntroducing Doorman (Pinata blog)pinata.cloud/blog/introducing-doorman-bring-security-to-where-your-agents-already-work/ · Oct 20, 2026REPOPinataCloud/doorman app source (GitHub)github.com/PinataCloud/doormanLABPinata announcement on Xx.com/pinatacloud/status/2113340031246954943 · Oct 22, 2026Tracking continues until an independent board lists it.