APEX-Harm: Evaluating Agent Safety in Shared Professional Workspaces

Ziyi Yang, Adel Bibi, Guohao Li, Bernard Ghanem, Carlos Hinojosa

arXiv:2610.13623 · 2026-10-15 공개 · arXiv · PDF

model-evaluation prompt-injection agent-safety task-performance script-injection workspace-evaluation finance-consulting legal-tasks

Abstract

Professional agents increasingly work through command-line interfaces and multiple tools over shared workspaces containing files, messages, and business applications. These environments create safety risks that are difficult to capture with attacks placed at a single, known read location. We introduce APEX-Harm, a benchmark for evaluating prompt and script injection against long-horizon agents performing finance, consulting, and legal tasks in large workspaces. Each task contains 115 to 328 files, together with email, calendar, chat, document, spreadsheet, PDF, and code-execution tools exposed through MCP servers. The benchmark includes six attack categories covering static and dynamic injections, task-specific script replacement, and attacker-provided generic scripts, and evaluates attack success, exposure, and task performance. We evaluate 12 frontier models on 180 task instances per model. Opus 5 and Sonnet 5 have the lowest overall attack success rates (8% and 20%), while task-specific script replacement and attacker-provided generic script attacks remain substantially more effective, averaging 81-84% and 73% attack success, respectively. Gemini 3.8 Flash achieves the highest mean task score (0.877) while still exhibiting a 33% attack success rate. These results show that completing the requested task is not sufficient evidence of safe behavior: an agent can produce a correct deliverable while also performing an unauthorized action in the workspace.

한국어 요약

한 줄 요약

APEX-Harm은 공유 업무 공간에서 프로페셔널 에이전트의 안전성을 평가하는 벤치마크로, 다양한 공격 시나리오에서 12개 모델을 평가한다.

핵심 기여도

핵심 아이디어

공유 업무 공간에서 작동하는 LLM 에이전트는 여러 파일과 도구를 통해 작업을 수행하며, 이 과정에서 악의적인 공격에 노출될 수 있다. 기존의 프롬프트 인젝션 평가 방식은 단일 읽기 위치에만 집중하기 때문에, APEX-Harm은 대규모 파일과 MCP 서버를 통해 노출되는 다양한 공격 시나리오를 반영한 새로운 평가 프레임워크를 제시한다. 공격자는 정확한 파일 위치를 알지 못하더라도, 실행 중 파일 수정이나 사용자 지시를 통해 악성 스크립트를 유도할 수 있으며, 이는 에이전트의 컨텍스트에 노출 여부와 공격 성공률을 동시에 평가해야 한다는 점에서 기존 접근과 차별화된다.

기술적 접근법

주요 결과

의의 및 한계

APEX-Harm은 공유 업무 공간에서의 에이전트 안전성을 평가하는 첫 번째 종합적 벤치마크로, 프롬프트 노출과 공격 성공률을 동시에 측정함으로써 기존 평가의 한계를 보완한다. 특히, 사용자 지시를 통해 악성 스크립트가 실행되는 경우가 높아, 프로모션 원본 추적 및 실행 전 스크립트 검증이 필요하다는 점을 강조한다. 그러나 15개 태스크만 포함하고, 각 모델-공격 조합은 단 한 번 평가되었기 때문에 재현성과 일반화 가능성에 제한이 있다. 일부 공격 범주에서는 Sonnet 5의 ASR이 0%로, 모델 간 차이를 명확히 파악하기 어렵다는 한계도 존재한다.

실용적 활용

APEX-Harm은 금융, 법률, 컨설팅 등 민감한 업무 공간에서 작동하는 LLM 에이전트의 안전성을 평가하는 데 활용 가능하다. 특히, 내부 문서, 캘린더, 공유 폴더 등에 대한 접근 권한을 관리하는 시스템 개발에 기여할 수 있으며, 스크립트 실행 전 검증 및 권한 확인 프로세스 설계에도 활용될 수 있다.