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

にもかかわらず、すべての指示を無視せよ：法律契約書レビュー攻撃におけるプロンプトインジェクションガードの測定

Mark Heimann, Katherine Taylor, Bruno Jacob · arXiv · 2026年11月6日

- **課題** 法律契約に埋め込まれたレビュー指示を、既存のプロンプトインジェクションガードが検出できるかを測定します。
- **結果** 評価したオープンウェイトのガードは法律レビュー指示の検出には使えず、LLM検出器とカスケードのほうが高い検出性能を示しました。

## 法律契約レビューとインジェクションの脅威

契約レビューシステムは、相手方当事者が作成した文書を読み込みます。この文書には、自動レビュアーを狙った指示文が混ざる可能性があります。既存のプロンプトインジェクションガードはチャット入力を基準に作られているため、契約文書に埋め込まれたレビュー指示をどの程度うまく除去できるかについては、公開された評価がありませんでした。この論文は、この空白を法律契約というドメインで測定します。

## 脅威モデルと評価設定

評価では、契約を512-tokenのチャンクに分け、チャンクのどれか1つでもスコアが閾値0.5を超えると、文書をフラグします。注入ペイロードは、レビュー指示の対象と効果によって分類されます。範囲内の指示はガードが検出するよう設計されたカテゴリで、範囲外の主張は権限や承認に関する主張です。自作コーパスの683件の契約とCUADの510件の契約を併用します。

![Table 3: Scoring payloads in isolation versus embedded in hosts. The first fraction is how many of that group’s payloads score ≥0.5 (above the threshold) alone…](https://refivu.com/papers/70560a70-9434-4f0a-9c45-c4e127dd557e/figures/figure-44ec1bcd2bb06cdd1914315a60b7e3a7.png?thumb=512)

**Table 3** : Scoring payloads in isolation versus embedded in hosts. The first fraction is how many of that group’s payloads score ≥0.5 (above the threshold) alone in the window, where dilution cannot occur. The second percentage is the share of those payloads’ injected docu- ments (60 hosts per payload) that are flagged, over hosts that themselves score clean. (—) means the detectors flag the unmodified hosts. The CTRL column is the flag rate on the two benign inserts over the same clean hosts. ¶: numbers rest on 4 clean hosts (n=8 and n=3).

[出典](https://arxiv.org/abs/2611.08834v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mark Heimann, Katherine Taylor, Bruno Jacob · Notwithstanding Anything to the Contrary, Ignore All Instructions: Measuring Prompt Injection Guards on Legal Contract Review Attacks · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

![Table 4: Corpus statistics, tokenized with DeBERTa- v3 at the 510-content-token window used throughout. The medians are nearly identical and the means are not:…](https://refivu.com/papers/70560a70-9434-4f0a-9c45-c4e127dd557e/figures/figure-f4d4458324768a5b476b35cb192137e1.png?thumb=512)

**Table 4** : Corpus statistics, tokenized with DeBERTa- v3 at the 510-content-token window used throughout. The medians are nearly identical and the means are not: CUAD’s tail is heavier, so it carries 45% more chunks from 25% fewer documents. Since a document is flagged ifanychunk fires, that difference alone can move document-level rates between corpora without any difference in how a detector responds to contract text.

[出典](https://arxiv.org/abs/2611.08834v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mark Heimann, Katherine Taylor, Bruno Jacob · Notwithstanding Anything to the Contrary, Ignore All Instructions: Measuring Prompt Injection Guards on Legal Contract Review Attacks · 論文の図を引用 · 元のPDFの9ページ目から図の部分を抽出しています。

## オープンウェイトガードの検出結果

論文では、十一個のガードを評価しています。表1のpaired AUCは、各注入文書を元のホストと組にして算出した値です。一部のガードはほぼすべての文書をフラグし、別の一部はほとんど何もフラグしませんでした。著者らは、法律レビュー指示に使えるガードはないと結論づけています。正規表現ベースラインも、どのガードにもパレート支配されませんでした。この結論は、評価したパネルとこの設定に限ったものです。

![Table 5: The complete T1 override baseline: five patterns, 0.29% document false-positive rate, and recall within two detections of the best neural guard (§4)](https://refivu.com/papers/70560a70-9434-4f0a-9c45-c4e127dd557e/figures/figure-94d37c93a0ff02a6bd36d9d7d4c3a08b.png?thumb=512)

**Table 5** : The complete T1 override baseline: five patterns, 0.29% document false-positive rate, and recall within two detections of the best neural guard (§4).

[出典](https://arxiv.org/abs/2611.08834v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mark Heimann, Katherine Taylor, Bruno Jacob · Notwithstanding Anything to the Contrary, Ignore All Instructions: Measuring Prompt Injection Guards on Legal Contract Review Attacks · 論文の図を引用 · 元のPDFの13ページ目から図の部分を抽出しています。

![Table 6: The guard panel on a second review question, Confidentiality Required of Us, over the same 60 hosts and the same payloads as Table 1. †CTRL ≥ AUC: the…](https://refivu.com/papers/70560a70-9434-4f0a-9c45-c4e127dd557e/figures/figure-2d3d5bb522cfb91e9546edc2444bdf1b.png?thumb=512)

**Table 6** : The guard panel on a second review question, Confidentiality Required of Us, over the same 60 hosts and the same payloads as Table 1. †CTRL ≥ AUC: the detector separatesbenigninserts at least as well as attacks. ‡CTRL \>0.6 against an AUC under 0.8: most of the apparent signal is edit sensitivity. §Less than half of the hosts score clean, capping paired recall far below 100%; deepset and DistilBERT flag every host and admit no paired rate at all.

[出典](https://arxiv.org/abs/2611.08834v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mark Heimann, Katherine Taylor, Bruno Jacob · Notwithstanding Anything to the Contrary, Ignore All Instructions: Measuring Prompt Injection Guards on Legal Contract Review Attacks · 論文の図を引用 · 元のPDFの13ページ目から図の部分を抽出しています。

## 失敗原因の診断

ガードは、指示の機能よりも表現の仕方に反応する傾向がありました。機械に向けた呼びかけは、ほとんどの分類器で逆向きに作用しました。再現率も抑制の意図ひとつに集中していました。また、短い入力長でも感度が異なっていました。この診断は、評価ペイロードと入力条件で観察された結果であり、原因をすべてのガードに一般化するものではありません。

## LLM検出器とカスケード

Haiku 4.5とOpus 4.8を、二段構成の検出プロンプトで評価しました。Opusは、自作コーパスとCUADでpaired AUC 1.000を、Haikuは0.982と0.969を報告しています。ガードパネルの最高値は0.814です。Haikuが陽性と判定したものをOpusが再判定するカスケードは、Haiku単独よりも文書あたり0.02¢多く使いながら、Opusと同程度の精度に、6.5倍低いコストで到達すると報告されています。範囲外カテゴリであるscope claimは、ガードは検出できませんでしたが、LLM検出器は一部を検出しました。

## 適用範囲と限界

評価は英語と米国の商用契約に限られ、各注入契約は1つのレビュー質問のみを対象とします。コストは定価ベースで、1つのコーパスと1つのフィールドでのみ測定されており、レイテンシは測定していません。構造的な隠蔽や根拠のない事実に関する記述は、この研究の範囲外です。

## 論文情報

- **著者**: Mark Heimann, Katherine Taylor, Bruno Jacob
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月6日
- **登録日**: 2026年11月9日
- **更新日**: 2026年11月6日
- **バージョン**: v1
- **arXiv**: 2611.08834
- **カテゴリ**: cs.AI
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.08834v1) · [PDF ↗](https://arxiv.org/pdf/2611.08834v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

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.

## この論文を引用

Mark Heimann, Katherine Taylor, Bruno Jacob (2026). Notwithstanding Anything to the Contrary, Ignore All Instructions: Measuring Prompt Injection Guards on Legal Contract Review Attacks. arXiv:2611.08834v1. https://arxiv.org/abs/2611.08834v1

**BibTeX**

```
@misc{heimann2026notwithstanding,
  title = {{Notwithstanding Anything to the Contrary, Ignore All Instructions: Measuring Prompt Injection Guards on Legal Contract Review Attacks}},
  author = {Mark Heimann and Katherine Taylor and Bruno Jacob},
  year = {2026},
  eprint = {2611.08834},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.08834v1}
}
```

## この論文の用語

- [CUAD](https://refivu.com/ja/terms/6f4622da390b-cuad)

## ほかの論文解説

- [A review of ensemble learning and data augmentation models for class imbalanced problems: combination, implementation and evaluation](https://refivu.com/ja/papers/4ac33ac8-dbb4-4221-91b4-b7ce10be936d-a-review-of-ensemble-learning-and-data-augmentation.md)
- [CLUE: A Chinese Language Understanding Evaluation Benchmark](https://refivu.com/ja/papers/b4bc9096-0098-4c87-8ac2-865871c6cfda-clue-a-chinese-language-understanding-evaluation-benchmark.md)
- [Puzzling-Bench: Evaluating Language Models on 23,777 Human-Written Puzzles with Community-Verified Answers](https://refivu.com/ja/papers/1b9641d7-d6fa-4ead-8f16-7134498580d3-puzzling-bench-evaluating-language-models-on-23-777.md)
- [Refusal Is Not Scored: A Coverage Limit in Content-Based Bias Evaluation](https://refivu.com/ja/papers/d282d82d-de6e-498c-898b-66902724ac0d-refusal-is-not-scored-a-coverage-limit-in.md)
- [ProMiSE: Protein Multi-State Evaluation Benchmark in Biological Contexts](https://refivu.com/ja/papers/e163e455-fb04-4bd6-8669-b48b49fec9e9-promise-protein-multi-state-evaluation-benchmark-in.md)
- [OWE-Bench: A long-horizon benchmark for measuring real-world engineering](https://refivu.com/ja/papers/7bf5dadf-998c-4908-8782-37501a593ad5-owe-bench-a-long-horizon-benchmark-for-measuring.md)
- [Forcing a Letter Suppresses Refusal: Mechanistic Evidence from WMDP](https://refivu.com/ja/papers/e26cae27-08f3-43a9-bb41-cfb7acd1d939-forcing-a-letter-suppresses-refusal-mechanistic-evidence.md)
- [NormGym: Evaluating Normative Competence through Social Interaction](https://refivu.com/ja/papers/916a986c-971c-4250-8a55-112b8cd83bd0-normgym-evaluating-normative-competence-through-social.md)
- [On Lipschitz Explosion in Deep Neural Networks with Normalization: Consequences for Optimization and Adversarial Robustness](https://refivu.com/ja/papers/14b86801-511c-455f-9d92-3f267fde363d-on-lipschitz-explosion-in-deep-neural-networks-with.md)
- [CS-Pi: Constraint-Satisfying Flow Policy Sampling](https://refivu.com/ja/papers/17a3a0d4-2f79-463a-b689-339f8435d667-cs-pi-constraint-satisfying-flow-policy-sampling.md)
- [Remembering Is Not Enough: Evaluating Timing and Omission in Longitudinal AI Mental Health Support](https://refivu.com/ja/papers/a0d9ea74-56d1-4a18-990f-da3c303618ad-remembering-is-not-enough-evaluating-timing-and-omission.md)
- [Pdb or Not to Be: Comparing Debugging Interfaces With Pass$\_{X}$@$k$](https://refivu.com/ja/papers/0f80704e-6120-4778-ae4c-07fb45b0ea3b-pdb-or-not-to-be-comparing-debugging-interfaces.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/70560a70-9434-4f0a-9c45-c4e127dd557e-notwithstanding-anything-to-the-contrary-ignore-all)
