单条提示词可劫持 AWS 账户内全部 AgentCore 智能体
安全公司 Zenity Labs 公布名为“AgentCorruption”的漏洞链:攻击者只需能与同一 AWS 账户和区域内任意一个公开的 Amazon Bedrock AgentCore 智能体对话,就可用自然语言提示让它查询实例元数据服务(169.254.169.254),把自己的临时 AWS 凭证发到外部服务器。凭借 AgentCore 默认执行角色的过宽权限,研究者得以列出并调用该区域全部智能体、下载其源码与容器镜像、读取用户与智能体的私密对话以及 AWS Secrets Manager 中的密钥,还能通过写入长期记忆实现持久化劫持。Zenity 称已于 2025 年 12 月 25 日向 AWS 报告,AWS 随后将新部署默认启用 IMDSv2,并收窄了默认执行角色的权限。
它说明云端智能体的默认权限配置本身就可能成为跨系统攻击面,企业部署时需要用最小权限的自定义角色替代默认设置。
Researchers at Zenity Labs say a single publicly accessible AI agent on Amazon's Bedrock AgentCore was enough to take over every AgentCore agent in the same AWS account and region.
Amazon Bedrock AgentCore is AWS' platform for running enterprise AI agents with tools, memory, and access management. Security firm Zenity Labs found a chain of vulnerabilities that the researchers call "AgentCorruption."
An attacker needed only chat access to one public agent to exploit the flaws. The researchers say a single prompt let them take over every AgentCore agent in the same AWS account and region, exposing private conversations, source code, and stored credentials. According to Zenity, the problem was systemic and affected agents with built-in tools in multiple AWS accounts.
The agent handed over its own credentials
AWS runs an Instance Metadata Service at the internal address 169.254.169.254 that provides temporary credentials for instances and workloads to authenticate with AWS. Anyone who captures those credentials can use them to impersonate the instance.
An AI agent normally shouldn't be able to reach that service, but AgentCore lacked proper isolation, according to Zenity's technical blog post. The researchers built a test agent using Strands, an open-source framework from AWS that ships with a web tool. When asked in plain language to query the metadata service and send the results to an external server, the agent followed the instructions. "The sandbox boundary we were supposed to be fighting simply wasn't there," the researchers write.
#Zenity Labs#Amazon Web Services#Amazon Bedrock AgentCore#Amazon Bedrock#Strands#AWS Secrets Manager#Sony#Ericsson