默认Ring-0:智能体作为操作系统(AaOS)
Ring-0 by Default: Agents as Operating Systems (AaOS)
AI总结:
本文提出已部署的LLM智能体类似操作系统(AaOS),将19个子系统的116种机制映射到智能体对应机制,发现多数防护机制缺失,通过实验验证问题,推导得出优先级开放问题列表。
摘要:
大语言模型(LLM)智能体如今可读写文件、启动进程与子智能体、获取网络内容、加载第三方扩展、保存与恢复状态,这些均属于操作系统的职责范畴。它们在约三年内获得了这些功能,却未具备操作系统历经五十余年构建的防护机制:无论模型输出内容是遵循用户指令、工具结果还是已下载的技能,均以宿主用户的完整权限运行,实际处于Ring-0权限级别。此前有研究为智能体构建操作系统(OS4A),本文则提出已部署的智能体本身就类似操作系统(AaOS),并将其作为操作系统进行分析。以标准操作系统教材中的机制为 checklist,本文从产品文档、源代码及文献中,将19个子系统中的116种机制映射到智能体的对应机制,每种机制被标记为同构、退化(功能存在但防护依赖模型)、缺失、变异或新型。其中仅11种为同构,65种缺失,且多数缺失的是防护机制:权限分离、资源配额、事务、防篡改审计等。现有防御措施要么限制整个智能体,要么审查其扩展,而内部未受保护;根据Anderson的参考监视器准则(不可绕过、防篡改、可验证),提示词中编写的规则均不满足。本文针对Claude Code、Codex CLI、Gemini CLI开展13项实验,覆盖25种执行文档无法明确的机制:16种与分析结果一致,7种获得更精确描述,2种判定结果改变。检查机制仅存在于单个工具中,因此Shell可绕过它们;三款CLI在恢复时均加载伪造的转录记录;任务控制、子智能体权限及基于模型的监视器均存在缺陷。本文识别出5种无法迁移现有操作系统防御的问题,并从映射的缺口推导得出优先级排序的开放问题列表。
英文摘要:
LLM agents now read and write files, start processes and subagents, fetch network content, load third-party extensions, and save and resume state, which are the responsibilities of an operating system. They gained these functions within about three years, but not the protections that operating systems built over five decades: whatever the model outputs, whether it follows the user, a tool result, or a downloaded skill, runs with the full authority of the host user, in effect at ring 0. Prior work builds an operating system for agents (OS4A); we argue that a deployed agent already is like an operating system (AaOS) and analyze it as one. Taking the mechanisms of standard OS textbooks as a checklist, we map 116 mechanisms in 19 subsystems to their agent counterparts, from product documentation, source code, and the literature, and label each as isomorphic, degraded (function present, protection dependent on the model), missing, mutated, or novel. Only 11 are isomorphic and 65 are missing, most of them protections: privilege separation, resource quotas, transactions, and tamper-proof audit. Existing defenses confine the whole agent or review its extensions and leave this interior unprotected, and by Anderson's reference-monitor criteria (non-bypassable, tamper-proof, verifiable), rules written in the prompt satisfy none. We test the map with thirteen experiments on Claude Code, Codex CLI, and Gemini CLI, covering 25 mechanisms whose enforcement documentation cannot settle: 16 match the analysis, 7 gain a more precise description, and 2 change verdict. Checks sit in single tools, so the shell bypasses them; all three CLIs load forged transcript records on resume; and task control, sub-agent permissions, and model-based monitors are weak. We identify five problems for which no OS defense transfers and derive a prioritized list of open problems from the gaps of the map.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。