Local prompt injection filter that checks every email or document before your agent reads it
ArsGuard is not an agent. It is a free, open-source prompt-injection detector that sits in front of one and checks every email, ticket or document the agent is about to read. A small classifier gives each text a probability of attack from 0 to 1. It runs locally on CPU, with no GPU and no internet, so the text never leaves the machine.
On an independent test of 4,783 texts from a generator that took no part in training, it caught 98.8% of English attacks against 59.6% for the ProtectAI model, with 0.9% false alarms on ordinary messages against 10.8%. It often flags articles about prompt injection and is a filter on top of limited agent permissions, not a replacement for them. MIT license.
-
Runs on CPU with about 1 GB of memory, no GPU, no internet and no paid APIs
-
Installs with pip install arsguard and checks a text in three lines of code
-
Command-line tool returns exit code 1 on an attack, for use in a script in front of an agent
-
Splits long texts into windows and returns a probability from 0 to 1 for each text
-
Open weights, dataset, training and evaluation code, plus a script that reproduces the numbers
-
Screen incoming email before an email agent reads it, so a suspicious message never reaches it
-
Check resumes for hidden instructions aimed at an AI resume screener
-
Catch payment detail swaps in invoices before an agent processes them
-
Filter support tickets that try to override the instructions of a support agent
-
Scan calendar invites and code comments an agent reads for hidden instructions