Notwithstanding Anything to the Contrary, Ignore All Instructions: Measuring Prompt Injection Guards on Legal Contract Review Attacks
Abstract
Specialized prompt injection guards are deployed in front of document analysis systems, but no false positive rate has been published for any of them on legal contracts. We measure eleven open-weights guards on two corpora of legal contracts and find that existing guards struggle: document-level false positive rates are as high as 92.39%; two guards fall below chance on paired AUC; and a five-regex baseline is not Pareto-dominated by any guard in the panel. Controlled probes locate model-specific as well as general failure modes. Prompted LLMs resolve the tested failures, including a second threat category (unauthorized scope claims) on which every guard scores zero. A cascaded LLM solution, where the positives of a mid-tier model are verified by a frontier model, is 6.5x cheaper than using exclusively a frontier model and approaches its performance.
Create a lesson
Related papers
EA-Bench: Measuring information and action efficiency under imperfect instructions
Shared title terminology · Xu Wan, Wenyue Xu, Shenjie Zhao
I Think, Therefore I Attack: Evaluating Thought Injection Attacks on Reasoning Agents
Shared title terminology · Parth Illendula, Garik Livingston, Zain Shamsi et al.
Guarding with Judgment: Learning to Intervene for Multimodal Safety
Shared title terminology · Jipei He, Cheng Cheng, Liuguo Wang et al.
Persuasion from Within: Model-Based Insider Attacks in Multi-Agent LLM Debate and Consensus
Shared title terminology · Bangyan Ju, Xiaolin Sun, Yibin Hu et al.
The Effect of Security-Focused Prompts on Reported Findings: A Controlled Experiment on 400 AI-Generated Web Applications
Shared title terminology · Darko Andročec
Feedback-Driven Prompt Refinement for Educational AI: Affective Trajectory Estimation and Bloom's Taxonomy Classification
Shared title terminology · Josh Dean, Karan Patel, Gaurangi Raul et al.