CIBER:代码解释器代理安全评估的综合基准
CIBER: A Comprehensive Benchmark for Security Evaluation of Code Interpreter Agents
AI总结:
CIBER提出了一种综合基准,评估代码解释器代理对四种主要对抗性攻击的鲁棒性,揭示了模型架构、对齐和智能水平对安全的影响,以及自然语言伪装和安全极化现象。
摘要:
基于大型语言模型的代码解释器代理正越来越多地部署在关键工作流程中,但它们对因代码执行能力引入的风险的鲁棒性仍缺乏深入研究。现有基准仅限于静态数据集或模拟环境,无法捕捉动态代码执行、工具交互和多轮上下文带来的安全风险。为此,我们引入CIBER,一个自动化基准,结合动态攻击生成、隔离安全沙箱和状态感知评估,系统评估代码解释器代理对四种主要对抗性攻击的脆弱性:直接/间接提示注入、内存污染和基于提示的后门。我们评估了六个基础模型,涵盖两种代表性代码解释器代理(OpenInterpreter和OpenCodeInterpreter),并纳入了相同模型的受控研究。我们的结果表明,解释器架构和模型对齐设定了安全基准。结构整合使对齐的专业模型优于通用SOTA模型。相反,高智能反而使代理更容易受到复杂的对抗性提示攻击,因为更强的指令遵循性。此外,我们识别出一种“自然语言伪装”现象,其中自然语言作为比显式代码片段更有效的输入模态(+14.1% ASR),从而绕过基于语法的防御。最后,我们揭示出一种令人担忧的安全极化现象,即代理对显式威胁具有稳健的防御,但对隐含语义危害却彻底失败,突显了当前模式匹配保护方法的根本盲点。
英文摘要:
LLM-based code interpreter agents are increasingly deployed in critical workflows, yet their robustness against risks introduced by their code execution capabilities remains underexplored. Existing benchmarks are limited to static datasets or simulated environments, failing to capture the security risks arising from dynamic code execution, tool interactions, and multi-turn context. To bridge this gap, we introduce CIBER, an automated benchmark that combines dynamic attack generation, isolated secure sandboxing, and state-aware evaluation to systematically assess the vulnerability of code interpreter agents against four major types of adversarial attacks: Direct/Indirect Prompt Injection, Memory Poisoning, and Prompt-based Backdoor. We evaluate six foundation models across two representative code interpreter agents (OpenInterpreter and OpenCodeInterpreter), incorporating a controlled study of identical models. Our results reveal that Interpreter Architecture and Model Alignment Set the Security Baseline. Structural integration enables aligned specialized models to outperform generic SOTA models. Conversely, high intelligence paradoxically increases susceptibility to complex adversarial prompts due to stronger instruction adherence. Furthermore, we identify a "Natural Language Disguise" Phenomenon, where natural language functions as a significantly more effective input modality than explicit code snippets (+14.1% ASR), thereby bypassing syntax-based defenses. Finally, we expose an alarming Security Polarization, where agents exhibit robust defenses against explicit threats yet fail catastrophically against implicit semantic hazards, highlighting a fundamental blind spot in current pattern-matching protection approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。