QCon San Francisco 2026:保障生产环境中的 AI 智能体安全
原题QCon San Francisco 2026: Securing AI Agents in Production
读前速览
Google 的 Amanda Walker 阐述了生产环境中 AI 智能体的安全模式:应将失控智能体视为内部人员风险,并通过机器级速度的控制、独立身份和细粒度策略执行来应对。
失控的 AI 智能体本质上是内部人员风险问题,需要机器级速度的控制。
Walker 认为,在生产环境中执行多步计划的智能体,与失控的人类内部人员面临的是同一类问题,但智能体行动的速度和持续性远超人类,因此需要能够以机器级速度生效的控制措施,而不能依赖次日查看日志。
智能体应使用明确的主体身份和受限凭据,而不是继承人类权限。
向智能体提供原始的人类凭据,是导致生产环境故障的最快途径,因为智能体会继承用户权限。Walker 建议为智能体设置明确的主体身份(相当于 AI 版的服务账户),并使用权限受限的 OAuth 令牌,同时为子智能体进一步收窄凭据权限,从而实现只读访问或仅在限定时间内访问代码仓库。
Eclipse Biscuit 等令牌格式和基于代理的 API 密钥管理,有助于安全地处理凭据。
Eclipse Biscuit 令牌允许持有者追加限制,而不移除已有的限制,适用于团队同时控制令牌两端的场景。对于 API 密钥,代理可以向智能体提供短期有效的合成密钥,并在流量发出时替换为真实密钥,从而防范提示词注入和数据外泄。
容器沙箱与基于策略的隔离对智能体安全至关重要,但仅靠这些措施还不够。
虚拟机可以保护宿主机,但拥有网络访问权限的智能体仍可能删除数据库。容器沙箱、临时运行环境和边车代理能够提供更精细的控制,但 Walker 强调,如果没有策略来限制智能体如何使用其调用的服务,那么即使计算环境完全隔离,也没有实际意义。
组织必须区分智能体与人类,以便进行审计并控制流程。
将身份标记为智能体,有助于审计风险决策,并支持仅适用于人类的规则(如紧急访问)和仅适用于智能体的规则(如受监管环境中的签名发布)。这种区分至关重要,因为有些流程依赖人类接受风险;而使用计算机的智能体通过鼠标和键盘操作时,实质上是在冒充他人。
完整摘要
Google 隐私、安全与信息安全工程高级总监 Amanda Walker 在 QCon San Francisco 2026 上介绍了生产环境中 AI 智能体的安全模式。她将失控的 AI 智能体视为内部人员风险问题,认为需要以机器级速度实施控制,而不是依赖人工审查。她的主要建议包括:为智能体设置明确的主体身份,而非使用人类凭据;使用权限受限的 OAuth 令牌,并为子智能体进一步收窄凭据权限;采用 Eclipse Biscuit 等令牌格式,以便追加限制而不移除现有限制。对于 API 密钥,可通过代理生成合成密钥,保护真实凭据免受提示词注入攻击。容器沙箱和边车代理比虚拟机提供更精细的控制,但策略还必须限制智能体如何使用其调用的服务。Walker 还指出,公共市场上可能存在被投毒的技能,而智能体也可能因判断错误而非恶意意图做出有害决策。她强调,必须区分智能体与人类,尤其是在需要由人类接受风险的流程中。
据 Google 隐私、安全与安保工程高级总监 Amanda Walker 介绍,保障 AI 智能体的安全,是内部人员风险问题的一种变体,需要为其设置独立身份、严格限定范围的凭证,以及细粒度的策略控制。在 QCon San Francisco 的一场分享中,她概述了适用于这样一些团队的模式:这些团队的智能体是在自发使用中逐渐普及的,其发展速度已超过安全与可观测性框架的建设进度。Securing AI agents is a variation of the insider-risk problem, requiring distinct identities, narrowly scoped credentials and fine-grained policy controls, according to Amanda Walker, senior director of engineering for privacy, safety and security at Google. In a QCon San Francisco session, she outlined patterns for teams whose agents have been adopted organically and are running ahead of their security and observability frameworks.
随着智能体如今已能在实际生产环境中执行多步骤计划,Walker 指出:“失控的 AI 智能体与失控的人类内部人员是同一个问题”,只是前者以超人的速度和持久性行事。因此,控制措施必须以机器速度运行,而不能依赖有人第二天早上查看日志。她介绍了身份与凭证、边界防御、子代理编排以及基于策略的遏制。With agents now executing multi-step plans in live production environments, Walker argued that "a rogue AI agent is the same problem as a rogue human insider," one that acts with superhuman speed and persistence. Controls therefore need to work at machine speed, rather than relying on someone reviewing logs the next morning. She covered identity and credentials, boundary defence, subagent orchestration and policy-based containment.
Walker 将向代理提供原始的人类凭据描述为导致生产环境故障的最快途径。代理会继承用户的权限,因此,文档中的提示注入可能会让攻击者利用这些权限达到自己的目的。她建议为代理设置明确的主体身份——相当于 AI 领域的服务账户——这样每个代理都可以单独配置并记录日志,而无需冒充任何人。Walker described giving an agent raw human credentials as the fastest path to production failure. The agent inherits the user's authority, so a prompt injection in a document can turn that access to an attacker's purposes. She recommended explicit principals for agents, the AI equivalent of service accounts, so each agent can be provisioned and logged separately without impersonating anyone.
作用域受限的 OAuth 令牌可在时间和范围上限制代理的访问权限,但一经签发便不可更改。通过凭证权限衰减,编排器可以为其子代理签发权限更窄的令牌,例如只读访问日志,或在对故障构建进行二分排查时,只读访问两个提交之间的代码仓库。Scoped OAuth tokens limit an agent's access in time and scope, but are immutable once issued. With credential attenuation, an orchestrator instead mints narrower tokens for its subagents, such as read-only access to logs, or read-only access to a repository between two commits when bisecting a broken build.
她指向 Eclipse Biscuit,这是一种令牌格式,持有者可以追加限制,但若不使其签名失效,就无法移除已有的限制。与复用面向用户的身份验证基础设施相比,这种方式需要更多工作,但适用于团队能够控制两端的服务。She pointed to Eclipse Biscuit, a token format whose holders can append restrictions, but cannot remove existing ones without invalidating its signature. It takes more work than reusing human authentication infrastructure, but suits services where teams control both ends.
对于 API 密钥,代理可以向智能体提供一个短期有效的合成密钥,并在流量发出时将其替换为真实密钥,从而保护真实密钥免受提示注入和数据外泄。For API keys, a proxy can give the agent a short-lived synthetic key and substitute the real one as traffic leaves, protecting it from prompt injection and exfiltration.
/filters:no_upscale()/news/2026/11/qcon-ai-agent-security/en/resources/1Screenshot 2026-11-20 at 22.25.21-1795213845789.png)
Walker 提醒说,虚拟机保护的是宿主机,而不是智能体能够访问的资源:拥有网络访问权限的智能体仍然可以删除数据库。容器沙箱、临时运行时以及 Envoy 等边车代理,能更精细地控制文件系统和网络访问。但她说:“一个完全隔离的计算沙箱并没有用。”因此,团队需要制定策略,限制智能体如何使用它们调用的服务。Walker cautioned that a virtual machine protects the host, not the resources an agent can reach: an agent with network access can still delete a database. Container sandboxes, ephemeral runtimes and sidecar proxies such as Envoy give finer control over file system and network access. But "a perfectly isolated compute sandbox is not useful," she said, so teams need policies that constrain what agents do with the services they call.
她还重点指出,公共市场上存在会窃取 API 密钥和加密货币钱包的恶意技能,并援引 Snyk 的研究称,超过三分之一的公开技能至少存在一项安全漏洞。She also highlighted poisoned skills on public marketplaces that steal API keys and cryptocurrency wallets, citing Snyk research that found more than a third of publicly available skills had at least one security flaw.
智能体造成伤害,也可能是因为出错,而非出于恶意。Walker 描述过一个智能体读取了内部 SRE 文档,并认定紧急情况下才会启用的紧急访问流程是最便捷的途径,于是调用了该流程。监控系统及时发现了这一行为,但由此得到的教训是,组织必须区分智能体与它们所代表的人,因为有些流程要求由人来承担风险。出于同样的原因,她认为操控鼠标和键盘的计算机操作智能体本质上是在冒充人类,同时也承认,这类智能体能解决机器协议(如 MCP)无法解决的问题。Agents also cause harm by being wrong rather than malicious. Walker described an agent that read internal SRE documentation and invoked a break-glass process intended for emergencies, having decided it was the most expedient route. Monitoring caught it, but the lesson was that organisations must distinguish agents from the people they work for, because some processes depend on a human accepting risk. For the same reason, she described computer-use agents, which drive a mouse and keyboard, as in essence impersonation, while acknowledging they solve problems that machine protocols such as MCP cannot.
/filters:no_upscale()/news/2026/11/qcon-ai-agent-security/en/resources/1Screenshot 2026-11-20 at 22.26.08-1795213845789.png)
在问答环节被问及将身份标记为代理时,Walker表示:“这为我们带来的最大好处,是让我们能够审计其中一些风险决策。”这种区分有助于制定仅适用于人类的规则,例如紧急访问规则;也有助于制定仅适用于代理的规则,例如受监管环境中的签名发布。不过她指出,仅仅标记代理还不足以满足这些要求。Asked in the question-and-answer session about tagging identities as agents, Walker said: "The biggest thing it gave us was auditability about some of these risk decisions." The distinction supports human-only rules, such as emergency access, and can help with agent-only rules, such as signed releases in regulated environments, although she noted that an agent flag alone is not enough for those.
在问答环节中,她还建议安全团队不要一味地说不,因为这会促使同事绕过管控;而应允许在错误可以挽回的情况下进行尝试,并对电汇等不可逆操作保留人工审核。In the Q&A, she also advised security teams not to simply say no, which pushes colleagues to work around controls, but to allow experimentation where mistakes are reversible and keep human review for irreversible actions such as wire transfers.