Wolf Defender v2: prompt injection detection that runs on the laptop

The TeamSep 7, 20268 minthreat-research
Wolf Defender v2: prompt injection detection that runs on the laptop

FAQ

Frequently asked questions

What is Wolf Defender?

Wolf Defender is an open classification model from Patronus Protect that detects prompt injection and jailbreak-style instructions before text reaches a language model. It is based on mmBERT (ModernBERT architecture), understands German and English, handles up to 2,048 tokens and is published under Apache 2.0 on Hugging Face.

Is Wolf Defender free?

Yes. All Wolf Defender models are Apache 2.0 licensed on Hugging Face. You can run them locally, embed them in your own products and fine-tune them. Patronus Protect additionally uses an internal model trained on the full dataset.

Which languages does Wolf Defender cover?

German and English are the trained and evaluated languages. Other languages pass through the multilingual mmBERT backbone but were not actively validated.

How fast is Wolf Defender on a CPU?

The quantized edge builds (ONNX, INT8 weights, INT4 embeddings) run in the double-digit millisecond range per text on a laptop CPU. No GPU is needed. The Small variant exists for exactly this use.

Is Wolf Defender enough on its own to stop prompt injection?

No. The model is one layer in a defense-in-depth setup. High-impact actions also need deterministic policies, privilege separation and human approval. Wolf Defender can route, block, quarantine or flag requests for review.

What is the difference between Wolf Defender and the Wolf Defender Threat Classifier?

Wolf Defender answers the binary question of whether a text is an injection. The Threat Classifier assigns a text to one of seven threat types, for example instruction override, secrets access, tool abuse or exfiltration attempt. Both share the same architecture.