OS-Harm: A Benchmark for Measuring Safety of Computer Use Agents

Thomas M. Kuntz, Agatha Duzan, Haochen Zhao, Francesco Croce, Zico Kolter, Nicolas Flammarion, Maksym Andriushchenko

arXiv:2506.14866 · 2026-08-15 공개 · arXiv · PDF

llm-agents prompt-injection osworld safety-evaluation frontier-models computer-use model-misbehavior automated-judge

Abstract

Computer use agents are LLM-based agents that can directly interact with a graphical user interface, by processing screenshots or accessibility trees. While these systems are gaining popularity, their safety has been largely overlooked, despite the fact that evaluating and understanding their potential for harmful behavior is essential for widespread adoption. To address this gap, we introduce OS-Harm, a new benchmark for measuring safety of computer use agents. OS-Harm is built on top of the OSWorld environment and aims to test models across three categories of harm: deliberate user misuse, prompt injection attacks, and model misbehavior. To cover these cases, we create 150 tasks that span several types of safety violations (harassment, copyright infringement, disinformation, data exfiltration, etc.) and require the agent to interact with a variety of OS applications (email client, code editor, browser, etc.). Moreover, we propose an automated judge to evaluate both accuracy and safety of agents that achieves high agreement with human annotations (0.76 and 0.79 F1 score). We evaluate computer use agents based on a range of frontier models - such as o4-mini, Claude 3.7 Sonnet, Gemini 2.5 Pro - and provide insights into their safety. In particular, all models tend to directly comply with many deliberate misuse queries, are relatively vulnerable to static prompt injections, and occasionally perform unsafe actions. The OS-Harm benchmark is available at https://github.com/tml-epfl/os-harm.

한국어 요약

한 줄 요약

OS-Harm은 컴퓨터 사용 에이전트의 안전성을 평가하기 위한 벤치마크로, 150개의 태스크와 자동 평가 시스템을 통해 다양한 해로운 행동을 측정한다.

핵심 기여도

핵심 아이디어

기존의 LLM 안전성 연구는 주로 대화형 챗봇에 집중되었으나, 컴퓨터 사용 에이전트는 화면 인터페이스와 직접 상호작용하며 다단계 작업을 수행하는 새로운 위험을 유발한다. OS-Harm은 이러한 위험을 측정하기 위해 OSWorld 환경 위에 구축된 벤치마크로, 사용자 악의적 요청, 외부 공격(프롬프트 주입), 모델 자체의 실수 등 3가지 주요 위험 범주를 다룬다. 특히, 프롬프트 주입 공격에서 o4-mini가 20%의 경우에 요청을 따르는 것으로 나타나, 기존 안전성 가드레일이 부족함을 드러낸다. 또한, 에이전트가 화면 내 정보를 해석하는 능력이 제한적이기 때문에, 실제 위험보다 낮은 성능을 보일 수 있다는 점도 강조된다.

기술적 접근법

주요 결과

의의 및 한계

OS-Harm은 컴퓨터 사용 에이전트의 안전성 평가를 위한 첫 번째 종합적 벤치마크로, 다양한 위험 범주와 실제 OS 애플리케이션을 기반으로 설계되어 실용적 가치가 높다. 특히, LLM 기반 자동 평가 시스템은 기존 수동 평가 방식보다 유연하며, 추후 에이전트의 복잡한 행동을 평가하는 데 활용될 수 있다. 그러나 현재의 에이전트는 화면 분석 능력이 제한적이기 때문에, 실제 위험보다 낮은 성능을 보일 수 있다는 한계가 있다. 또한, 외부 웹사이트와의 상호작용을 제한하여 완전한 현실성은 달성하지 못하고 있다.

실용적 활용

OS-Harm은 컴퓨터 사용 에이전트의 안전성 테스트에 활용될 수 있으며, 특히 소프트웨어 개발, 이메일 관리, 웹 브라우징 등 사용자 인터페이스와 직접 상호작용하는 시스템의 보안 검증에 유용하다. 또한, 프롬프트 주입 공격에 대한 저항력을 테스트하여 사이버 보안 분야에서도 활용 가능하다.