← All papers  /  Nov 6, 2026
Data

Notwithstanding Anything to the Contrary, Ignore All Instructions: Measuring Prompt Injection Guards on Legal Contract Review Attacks

First page
Notwithstanding Anything to the Contrary, Ignore All Instructions: Measuring Prompt Injection Guards on Legal Contract Review Attacks
The curator’s take

Mark Heimann, Katherine Taylor and Bruno Jacob (Ivo AI) report the first false positive rates for prompt-injection guards on legal contracts, measuring eleven open-weight guards on two contract corpora.

Ask this paper

Key points
01

False positives. Document-level false positive rates reach 92.39%. Ordinary contract language such as 'notwithstanding anything to the contrary' resembles an injected instruction to these classifiers.

02

Weak detection. Two guards fall below chance on paired AUC, and a five-regex baseline is not Pareto-dominated by any guard in the panel.

03

Second threat. Every guard scores zero on unauthorized scope claims, a threat category the authors add.

04

Alternative. Prompted LLMs resolve the tested failures. A cascade that sends a mid-tier model's positives to a frontier model for verification is 6.5x cheaper than using the frontier model alone and approaches its performance.

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.

Every Monday
Get next week’s papers.
Subscribe on Substack