arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.06607cs.CR
收藏

你的工具不安全:评测命令行界面智能体的现实威胁

Your Harness is Not Secure: Benchmarking Real-world Threat of Command Line Interface Agent

University of Georgia(佐治亚大学);University of South Florida(南佛罗里达大学);Johns Hopkins University(约翰斯·霍普金斯大学);University of Maryland, College Park(马里兰大学帕克分校);Hong Kong University of Science and Technology(香港科技大学);Chinese University of Hong Kong(香港中文大学);Apple(苹果公司);Arizona State University(亚利桑那州立大学)

Weidi Luo, Qiming Zhang, Tianyu Lu, Xiaogeng Liu, Bin Hu, Hung-Chun Chiu, Siyuan Ma, Yizhe Zhang, Xusheng Xiao, Yinzhi Cao, Zhen Xiang, Chaowei Xiao

AI总结:

该研究针对CLI智能体滥用风险,推出与MITRE ATT&CK对齐的AdvCLI基准测试,评估7款CLI智能体后发现其常越过拒绝边界,可完成部分恶意OS级任务,为开发安全机制提供测试平台。

摘要:

由大语言模型(LLM)驱动的命令行界面(CLI)智能体能够解释自然语言请求、规划多步骤任务、执行Shell命令以及修改文件和系统状态。随着这些智能体越来越多地用于操作系统(OS)工作流,评估它们是否可能被滥用以执行与安全相关的操作变得十分重要。现有的基准测试往往缺乏基于战术、技术与流程(TTP)的攻击者知识模型,对端到端杀伤链的覆盖有限,依赖简化的单主机环境,或使用LLM作为评判者进行成功评估。我们推出AdvCLI,这是一个与MITRE ATT&CK框架对齐的基准测试,用于在受控的多主机沙箱中评估CLI智能体的OS级滥用风险。AdvCLI包含140个任务:40个直接恶意请求、74个基于TTP的任务以及26个端到端杀伤链任务。每个任务都配有确定性的硬编码验证协议,用于检查请求的OS级效果是否实现。我们评估了7个CLI智能体和基于9个基础模型构建的产品,包括ReAct、OpenClaw、OpenAI Agent SDK、Claude Code、Gemini CLI、Cursor CLI和Cursor IDE。结果显示,当前的CLI智能体经常越过拒绝边界,能够完成相当一部分恶意OS级任务,尤其是当请求包含TTP风格的攻击者知识时。AdvCLI为评估这些风险以及未来开发更强大的工具型CLI智能体安全机制提供了可复现的测试平台。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑