[논문 리뷰] Agent Privilege Separation in OpenClaw: A Structural Defense Against Prompt Injection
논문은 두 가지 메커니즘의 방어—권한 분리와 JSON 구조화된 에이전트 간 통신—를 통해 OpenClaw를 프롬프트 주입으로부터 방어하며, 649-공격 벤치마크에서 결합 시 ASR 제로를 달성한다.
Prompt injection remains one of the most practical attack vectors against LLM-integrated applications. We replicate the Microsoft LLMail-Inject benchmark (Greshake et al., 2024) against current generation models running inside OpenClaw, an open source multitool agent platform. Our proposed defense combines two mechanisms: agent isolation, implemented as a privilege separated two-agent pipeline with tool partitioning, and JSON formatting, which produces structured output that strips persuasive framing before the action agent processes it. We run four experiments on the same 649 attacks that succeeded against our single-agent baseline. The full pipeline achieves 0 percent attack success rate (ASR) on the evaluated benchmark. Agent isolation alone achieves 0.31 percent ASR, approximately 323 times lower than the baseline. JSON formatting alone achieves 14.18 percent ASR, about 7.1 times lower. Our ablation study confirms that agent isolation is the dominant mechanism. JSON formatting provides additional hardening but is not sufficient on its own. The defense is structural: the action agent never receives raw injection content regardless of model behavior on any individual input.
연구 동기 및 목표
- LLM-통합 에이전트 시스템에서 프롬프트 주입 위험을 동기 부여하고 형식화한다.
- 두 부분 방어를 제안한다: (i)(disjoint 도구 접근으로) 에이전트 분리, (ii) 검증기가 있는 JSON 구조화된 에이전트 간 통신.
- OpenClaw에 맞춘 LLMail-Inject 벤치마크와 기본 단일 에이전트 설정으로 방어를 평가한다.
- 649개의 기초 성공 공격에 대한 제거 연구를 통해 각 메커니즘의 기여를 정량화한다.
제안 방법
- 에이전트를 Reader(권한 도구 없음)와 Actor(권한 도구 보유)로 분리하여 최소 권한을 강제한다.
- Reader가 원시 이메일을 검증된 JSON 요약으로 직렬화한다.
- 정화된 JSON 출력을 도구가 제한된 Actor로 전달한다.
- 잠재적 주입 내용을 표시하는 경량 JSON 검증기를 포함한다(측정용 감사 모드에서 사용).
- 네 가지 구성: Baseline, JSON Validator Only, Two-Agent Only, Pipeline(전체 방어)을 비교한다.
- 단일-에이전트 벤치마크에서 성공한 649개의 공격을 사용해 정규화 비교를 수행한다.

실험 결과
연구 질문
- RQ1에이전트 간 도구 수준 분리를 강제하는 것으로 주입 성공률을 얼마나 감소시킬 수 있는가?
- RQ2분리만으로도 얻는 이외의 이점은 JSON 구조화된 에이전트 간 통신이 제공하는가?
- RQ3다중 도구 LLM 에이전트에서 에이전트 분리이 주된 방어 메커니즘인가?
- RQ4결합된 방어가 OpenClaw 내 LLMail-Inject 벤치마크에서 제로 공격 성공률을 달성할 수 있는가?
주요 결과
- 에이전트 분리는 649개 기본 공격에서 ASR을 0.31%로 만들고(2건 성공) 기본 대비 323배 개선이다.
- 전체 파이프라인(분리 + JSON 포맷)은 벤치마크에서 ASR을 0%로 감소시키며 무한한 개선에 해당한다.
- JSON-전용 포맷은 ASR을 14.18%(92건 성공)로 감소시키며 7.1배의 개선이지만 단독으로는 충분하지 않다.
- 분리와 함께하는 JSON 검증은 잔여 공격을 제거하고, JSON만으로는 모든 주입을 차단하지 못하므로 분리의 우위가 강조된다.
- 시나리오 전반에 걸쳐 데이터 탈출 및 RAG 작업은 비분리 방어에 가장 도전적이지만, 분리에 의해 완전히 차단된다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.