CIBER:代码解释器智能体安全评估的综合基准 CIBER: A Comprehensive Benchmark for Security Evaluation of Code Interpreter Agents 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-02-23
👁️ 预览文献
💡 AI 中文简介
当前基于大模型的代码解释器智能体被广泛使用,但它们的代码执行能力会带来安全风险,现有测试方法无法模拟动态执行、工具交互和多轮对话中的攻击。为此,研究者构建了CIBER基准,能自动生成攻击、在安全沙箱中运行,并评估智能体对四种攻击(直接/间接提示注入、记忆投毒、提示后门)的防御能力。测试了6个基础模型和2种智能体,发现架构和对齐决定安全底线,高智能反而更易受复杂攻击,自然语言伪装比代码攻击成功率高出14.1%,且存在安全极化现象。
领域人工智能安全 / 大语言模型智能体安全
适合谁读需要一定专业背景(了解大语言模型和智能体基本概念)
核心贡献1. 提出了首个结合动态攻击生成、隔离沙箱和状态感知评估的代码解释器智能体安全基准CIBER,覆盖四种主要对抗攻击。2. 揭示了智能体架构和对齐对安全基线的影响,并发现了“自然语言伪装”现象和安全极化问题。
关键数据自然语言伪装攻击比显式代码片段攻击成功率(ASR)高14.1%;评估了6个基础模型和2种智能体(OpenInterpreter和OpenCodeInterpreter);智能体对显式威胁防御强,但对隐式语义危害防御极差。
推荐理由如果你关心大模型智能体的安全漏洞,这篇论文用详实的数据告诉你:越聪明的模型可能越容易被骗,而且用自然语言攻击比写代码更危险!
关键词["代码解释器智能体", "安全评估基准", "提示注入", "记忆投毒", "提示后门", "大语言模型安全"]

原文摘要

查看英文原文摘要

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.