分析开源AI代理框架的470个安全漏洞,揭示远程代码执行风险。
A Security Analysis of the OpenClaw AI Agent Framework
- 按架构层与攻击类型建立漏洞分类体系
- 发现网关和节点宿主系统可实现未认证远程代码执行
- 插件通道缺乏运行时策略,易被恶意技能绕过
连接大语言模型推理与主机执行环境(如外壳、文件系统、容器、消息系统)的AI代理框架,引入了与传统软件截然不同的安全挑战。本文对开源AI代理运行时OpenClaw的470个安全通告进行系统性分类,按架构层与信任违规类型组织。漏洞集中在两个正交轴上:(1) 系统轴,反映架构层(执行策略、网关、通道、沙箱、浏览器、插件、代理/提示);(2) 攻击轴,反映对抗技术(身份伪造、策略绕过、跨层组合、提示注入、供应链提升)。修补差异证据得出三个主要发现:第一,在网关和节点宿主子系统中,三个中高危漏洞可组合成完整的未经认证的远程代码执行(RCE)路径——涵盖投递、利用与命令控制——从LLM工具调用直达宿主进程。第二,执行白名单作为主要命令过滤机制,依赖于命令身份可通过词法解析恢复的闭世界假设,但该假设因壳行续接、busybox多路复用和GNU选项缩写而失效。第三,通过插件通道分发的恶意技能在LLM上下文中执行两阶段下载器,绕过执行管道,证明技能分发面缺乏运行时策略强制。主导结构性弱点是逐层信任强制而非统一策略边界,使跨层攻击对局部修复具有韧性。
原文摘要 · Abstract (English)
AI agent frameworks connecting large language model (LLM) reasoning to host execution surfaces -- shell, filesystem, containers, and messaging -- introduce security challenges structurally distinct from conventional software. We present a systematic taxonomy of 470 advisories filed against OpenClaw, an open-source AI agent runtime, organized by architectural layer and trust-violation type. Vulnerabilities cluster along two orthogonal axes: (1) the system axis, reflecting the architectural layer (exec policy, gateway, channel, sandbox, browser, plugin, agent/prompt); and (2) the attack axis, reflecting adversarial techniques (identity spoofing, policy bypass, cross-layer composition, prompt injection, supply-chain escalation). Patch-differential evidence yields three principal findings. First, three Moderate- or High-severity advisories in the Gateway and Node-Host subsystems compose into a complete unauthenticated remote code execution (RCE) path -- spanning delivery, exploitation, and command-and-control -- from an LLM tool call to the host process. Second, the exec allowlist, the primary command-filtering mechanism, relies on a closed-world assumption that command identity is recoverable via lexical parsing. This is invalidated by shell line continuation, busybox multiplexing, and GNU option abbreviation. Third, a malicious skill distributed via the plugin channel executed a two-stage dropper within the LLM context, bypassing the exec pipeline and demonstrating that the skill distribution surface lacks runtime policy enforcement. The dominant structural weakness is per-layer trust enforcement rather than unified policy boundaries, making cross-layer attacks resilient to local remediation.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。