SPILLWAY: Separating Target Admission from Sanitization to Defend Tool-Using Agents against Prompt Injection

Woosang Lim, Yeseul Chang, Jaewoo Lee

arXiv:2611.07222 · 2026-11-17 공개 · arXiv · PDF

reinforcement-learning prompt-injection tool-using-agents auditability sanitization payment-security provenance-defenses deterministic-floor

Abstract

Tool-using agents act on email, files, and payments, so an instruction hidden in a web page or a shared document can make an agent send data or money to an attacker. Many runtime defenses put a language model on the decision that lets an action through, so the decision depends on a model that may read the attacker's text and adds model calls to every step. Provenance defenses keep the model off the final check but need a model to plan or route each task first. Where an action goes can instead be read from the tools' typed returns: an email's sender or a payment's account arrives in a typed field, while injected instructions arrive as free text. SPILLWAY turns this observation into a deterministic floor with no per-task plan. The check admits a call when each target value that appears in tool output but not in the user's task was returned by a read-only tool in a typed field or is covered by a fixed delegation rule. A deterministic sanitizer removes instruction-like regions its fixed rules match before the model reads them and retains the removed spans as evidence, and a local judge may restore a refused call, never one whose target lies in the removed text. Across three backbones, and seven task suites on one of them, no standard templated injection redirects an action to an attacker's target under SPILLWAY, at the highest observed mean utility and composite scores (NRP, ERS) of the defenses we run under that attack. A forged chat template also produces a raw zero, and mean in-scope attack success under a released reinforcement-learning attacker is .007. SPILLWAY reaches this floor with no defense-triggered backbone re-run and almost no added model call. As personal AI agents act on users' email, files, and payments, SPILLWAY gives them an auditable refusal floor on where their actions go that keeps them useful and holds across backbones.

한국어 요약

한 줄 요약

SPILLWAY는 도구 사용 에이전트의 프롬프트 주입 공격을 방어하기 위해 타겟 인수 결정과 정화를 분리한 시스템으로, 정확도 0.005 미만의 공격 성공률을 달성한다.

핵심 기여도

핵심 아이디어

SPILLWAY는 도구 사용 에이전트의 프롬프트 주입 공격을 방어하기 위해, **타겟 인수 결정**(target admission)과 **정화**(sanitization)를 분리하는 새로운 접근법을 제안한다. 기존 방어 시스템은 모델이 모든 결정을 내리거나, 최종 검증 단계를 제외하고는 모델을 사용하는 방식이었다. SPILLWAY는 도구의 **타입화된 반환**(typed tool returns)에서 유래된 값만을 허용함으로써, 공격자가 삽입한 텍스트를 차단한다. 예를 들어, 이메일의 발신자나 결제 계좌는 타입화된 필드에 포함되지만, 주입된 지시어는 자유 텍스트로 처리된다. 이 관찰을 기반으로, SPILLWAY는 **결정 단계**(egress floor)에서 타겟 값이 도구의 타입 필드에서 유래되었는지 확인하고, **정화 단계**(ingress sanitizer)에서 공격 유사 영역을 제거한다. 이 두 단계는 증거를 통해 연결되며, 로컬 재판단 모듈은 제거된 텍스트 내의 타겟은 재판단하지 않는다. 이는 공격이 유입되지 않도록 보장하면서도, 정상적인 작업을 유지할 수 있게 한다.

기술적 접근법

주요 결과

의의 및 한계

SPILLWAY는 도구 사용 에이전트의 프롬프트 주입 공격을 방어하는 데 있어 **구조적 보장**(structural guarantee)을 제공하며, **모델 호출 없이 실행** 가능하다는 점에서 혁신적이다. 기존 방어 시스템은 모델을 사용하는 데 비용이 많이 들었지만, SPILLWAY는 타겟 결정을 **도구 스키마 기반 집합 검색**으로 처리하여 효율성을 높였다. 또한, 정화와 재판단을 분리함으로써 공격이 유입되지 않도록 보장하면서도, 유용성을 유지할 수 있다. 그러나 SPILLWAY는 **도구의 타입 필드가 명확하게 정의되어 있어야** 작동하며, 타입 필드가 없는 경우는 적용이 어려울 수 있다. 또한, **공격자가 타입 필드를 악용하는 경우**는 방어가 어려울 수 있다.

실용적 활용

SPILLWAY는 개인 AI 에이전트가 이메일, 파일, 결제를 처리하는 상황에서 **공격에 대한 방어**와 **작업 유용성**을 동시에 유지할 수 있도록 한다. 특히, **모델 호출 없이 실행** 가능하므로, 실시간 처리가 필요한 서비스에 적합하다. 또한, **도구 역할이 선언되면 즉시 적용** 가능하므로, 다양한 에이전트 앱과 서비스에 쉽게 통합할 수 있다.