논문 해설
Notwithstanding Anything to the Contrary, Ignore All Instructions: Measuring Prompt Injection Guards on Legal Contract Review Attacks
그럼에도 불구하고 모든 지시를 무시하라: 법률 계약서 검토 공격에 대한 프롬프트 인젝션 방어 장치 측정
- 연구 문제 법률 계약에 삽입된 검토 지시를 기존 프롬프트 인젝션 가드가 탐지할 수 있는지 측정합니다.
- 주요 결과 평가한 오픈 웨이트 가드는 법률 검토 지시 탐지에 사용할 수 없었고, LLM 탐지기와 캐스케이드가 더 나은 탐지 성능을 보였습니다.
법률 계약 검토와 인젝션 위협
계약 검토 시스템은 반대 당사자가 작성한 문서를 읽습니다. 이 문서에는 자동 검토자를 겨냥한 지시문이 섞일 수 있습니다. 기존 프롬프트 인젝션 가드는 채팅 입력을 기준으로 만들어졌기 때문에, 계약 문서에 삽입된 검토 지시를 얼마나 잘 걸러내는지는 공개된 평가가 없었습니다. 이 논문은 이 공백을 법률 계약이라는 도메인에서 측정합니다.
위협 모델과 평가 설정
평가는 계약을 512-token 청크로 나누고, 청크 하나라도 임계값 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 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).
원문 · CC 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: 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.
원문 · CC 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).
원문 · CC 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 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.
원문 · CC 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에서 1.000 paired AUC를, Haiku는 0.982와 0.969를 보고합니다. 가드 패널의 최고 값은 0.814입니다. Haiku가 양성으로 판정한 것을 Opus가 재판정하는 캐스케이드는 Haiku 단독보다 문서당 0.02¢을 더 쓰면서 Opus 수준의 정밀도에 6.5배 낮은 비용으로 도달한다고 보고합니다. 범위 밖 범주인 scope claim은 가드가 탐지하지 못했지만 LLM 탐지기는 일부를 탐지했습니다.
적용 범위와 한계
평가는 영어와 미국 상업 계약에 한정되며, 각 주입 계약은 하나의 검토 질문만 대상으로 합니다. 비용은 목록 가격 기준이며 한 말뭉치와 한 필드에서만 측정되었고, 지연 시간은 측정되지 않았습니다. 구조적 은닉이나 근거 없는 사실 진술은 이 연구의 범위 밖입니다.
논문 정보
- 저자
- 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
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
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}
}