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

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.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24782260
Primary Topic
Adversarial Robustness in Machine Learning
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

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

Evgeny V. Arsentyev
Zenodo (CERN European Organization for Nuclear Research)
Adversarial Robustness in Machine Learning
article

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

Evgeny V. Arsentyev
article en

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.

Zenodo (CERN European Organization for Nuclear Research)
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon