The paradox: LLMs get hijacked through external text, and the same LLM can scan that text. PromptArmor lets you use an off-the-shelf language model as a security guard, even the same model that does the task: no fine-tuning. Strong models (GPT-4o, GPT-4.1, o4-mini) did this well; weak ones much less so. The trick: first ask the model to find hidden commands in the text, then give it the cleaned text for the main task, and the success rate of prompt injection attacks drops below 1% on the AgentDojo benchmark, from about 55% with no defense.
Practical prompting, backed by research
Techniques proven in research papers and rated for real-world use
Get the week’s best papers by email
One email on Sundays with the highest-rated new techniques. Unsubscribe with one click.
Prefer a browser notification when a new technique is published?