Your Harness is Not Secure: Benchmarking Real-world Threat of Command Line Interface Agent
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Command-line interface (CLI) agents powered by large language models (LLMs) can interpret natural-language requests, plan multi-step tasks, execute shell commands, and modify files and system state. As these agents are increasingly used for operating-system (OS) workflows, it is important to evaluate whether they can be misused to carry out security-relevant operations. Existing benchmarks often lack an attacker-knowledge model grounded in tactics, techniques, and procedures (TTPs), provide limited coverage of end-to-end kill chains, rely on simplified single-host environments, or use LLM-as-a-judge for success evaluation. We introduce AdvCLI, an MITRE ATT&CK-aligned benchmark for evaluating OS-level misuse risks of CLI agents in a controlled multi-host sandbox. AdvCLI contains 140 tasks: 40 direct malicious requests, 74 TTP-based tasks, and 26 end-to-end kill chains. Each task is paired with deterministic hard-coded verification protocols that check whether the requested OS-level effect is realized. We evaluate seven CLI agents and products built on nine foundation models, including ReAct, OpenClaw, OpenAI Agent SDK, Claude Code, Gemini CLI, Cursor CLI, and Cursor IDE. Results show that current CLI agents frequently proceed beyond refusal and can complete a non-negligible fraction of malicious OS-level tasks, especially when requests include TTP-style attacker knowledge. AdvCLI provides a reproducible testbed for evaluating these risks and for developing stronger safety mechanisms for tool-using CLI agents in the future.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 15 of its 55 references that are in the map. First posted on arXiv 8 Oct 2025.
Builds on
15 of 55 references.
Closest ancestors · 11
Same direction, newest first
- 2025RedCodeAgent: Automatic Red-teaming Agent against Diverse Code Agents2 Oct
- 2025OS-Harm: A Benchmark for Measuring Safety of Computer Use Agents17 Jun
- 2025RiOSWorld: Benchmarking the Risk of Multimodal Computer-Use Agents31 May
- 2025RedTeamCUA: Realistic Adversarial Testing of Computer-Use Agents in Hybrid Web-OS Environments28 May
- 2025CVE-Bench: A Benchmark for AI Agents' Ability to Exploit Real-World Web Application Vulnerabilities21 Mar
- 2025SafeArena: Evaluating the Safety of Autonomous Web Agents6 Mar
- 2025Why Are Web AI Agents More Vulnerable Than Standalone LLMs? A Security Analysis27 Feb
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection17 Feb
- 2024AdvAgent: Controllable Blackbox Red-teaming on Web Agents22 Oct
- 2024Catastrophic Cyber Capabilities Benchmark (3CB): Robustly Evaluating LLM Agent Cyber Offense Capabilities10 Oct
- 2024ST-WebAgentBench: A Benchmark for Evaluating Safety and Trustworthiness in Web Agents9 Oct
Other references · 4
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2024GPT-4V(ision) is a Generalist Web Agent, if Groundedcited by 547
- 2025CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scalecited by 71
- 2023NODLINK: An Online System for Fine-Grained APT Attack Detection and Investigationcited by 14
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026When Benign Inputs Lead to Severe Harms: Eliciting Unsafe Unintended Behaviors of Computer-Use Agentscited by 13
- 2026Do Coding Agents Understand Least-Privilege Authorization?cited by 4
- 2026Individual Turing Test: A Case Study of LLM-based Simulation Using Longitudinal Personal Datacited by 1
- 2026Constraining Host-Level Abuse in Self-Hosted Computer-Use Agents via TEE-Backed Isolationcited by 1
- 2026Do Coding Agents Understand Least-Privilege Authorization?14 May 2026
- 2026Constraining Host-Level Abuse in Self-Hosted Computer-Use Agents via TEE-Backed Isolation7 May 2026
- 2026Individual Turing Test: A Case Study of LLM-based Simulation Using Longitudinal Personal Data1 Mar 2026
- 2026When Benign Inputs Lead to Severe Harms: Eliciting Unsafe Unintended Behaviors of Computer-Use Agents9 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026MOSAIC: Knowledge-Guided CLI Command Composition Attack in LLM Coding Agents
- 2026Matching Matters: A Fair Quality-Efficiency Benchmark for Command-Line Agents
- 2026Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threats
- 2026A Security Analysis of the OpenClaw AI Agent Framework
- 2026Local LLM Agents as Vulnerable Runtimes:A Source-Code Audit of the Agent Runtime Layer
- 2026LITMUS: Benchmarking Behavioral Jailbreaks of LLM Agents in Real OS Environments
- 2025MCP Security Bench (MSB): Benchmarking Attacks Against Model Context Protocol in LLM Agents
- 2026CIBER: A Comprehensive Benchmark for Security Evaluation of Code Interpreter Agents