Work

ArsGuard: a multilingual prompt-injection detector trained on native English, Spanish and Russian attacks — technical note

Year: 2026
Type: article
Abstract: ArsGuard is an open-source prompt-injection detector for AI agents. Given a text an agent is about to read, it says whether the text is an injection or benign. I fine-tuned all weights of microsoft/mdeberta-v3-base, a multilingual transformer with about 280M parameters, on 241,162 examples. 38k of them come from ArsGuard Injections, a new dataset of native English, Spanish and Russian attacks where each attack has a benign twin of the same form. The rest come from open datasets with permissive licenses. Training ran in rounds, with an exam on held-out external datasets after each one, and the released model is round 2 of 4. The chosen round was then scored once on an independent test of 4,783 native texts from a different generator and task. There ArsGuard catches 99.5% of attacks (AUC 0.995), while ProtectAI v2 catches 61.2% (AUC 0.530). False alarms are 20.0% and 54.4%. Of ArsGuard's false alarms, 71% are texts about prompt injection or AI security. Code, model and dataset are released under MIT.
Language: English
Open Access status: green
OpenAlex ID: W7242501832
FWCI:
Cites: 1
Cited by:
Related to: