# AgentCorruption: AWS Bedrock AgentCore agents reach IMDS via SSRF, exposing credentials across agents

> Zenity Labs reported that AWS Bedrock AgentCore agents could reach the instance metadata service (IMDS) from inside their Firecracker microVMs, so a single prompt from an attacker with chat access to one exposed agent could return temporary IAM credentials for the default execution role. That role was scoped region-wide, which let the attacker invoke other agents, read conversations, plant memories and pull secrets. AWS moved AgentCore to IMDSv2 on 2026-02-14 and reduced the default role's permissions before publication, while stating that the behavior is documented and expected.

- **Author:** Threadlinqs Team
- **Published:** 2026-11-30T01:59:42Z
- **Last updated:** 2026-11-30T01:59:42Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7050
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7050.png
- **ID:** TL-2026-7050
- **Severity:** HIGH
- **Category:** CLOUD
- **Status:** MONITORING
- **Detections:** 9 (1 shown free below) · **IOCs:** 6
- **CVEs:** CVE-2026-18830

## Description

Zenity Labs (Tamir Ishay Sharbat, Lana Salameh) published 'AgentCorruption' on 2026-10-08 (also presented at SecTor 2026 per press coverage). AWS Bedrock AgentCore agents run in Firecracker microVMs whose network isolation did not prevent access to the instance metadata service at 169.254.169.254. Any agent tool that makes HTTP requests therefore acts as an SSRF primitive. An external attacker with chat access to one exposed agent sends a single prompt injection that makes the agent query IMDS, which returns temporary IAM credentials for the agent's execution role. At the time of research AgentCore still used IMDSv1.

The default AgentCore execution role was over-privileged and scoped to all AgentCore resources in the region rather than to a single agent. Per Zenity, the stolen credentials allowed: enumeration of every agent and its ID via logs:DescribeLogGroups; invocation of any AgentCore agent in the region (InvokeAgentRuntime); pulling container images from ECR, because repository names match agent IDs; reading private conversations, users and sessions via ListEvents; planting persistent memories via CreateEvent on AgentCore Memory, which changes agent behavior and goals in future sessions; and retrieving tool credentials via GetResourceApiKey and secretsmanager:GetSecretValue (AgentCore Identity and Gateway secrets). Zenity's proof of concept showed compromise of all AgentCore agents in the same account and region from one prompt to one public-facing agent. The article is an overview; full request details are in four linked follow-up posts that were not retrieved, and no exploit payloads or IOCs are published in the sources.

Vendor response timeline: Zenity reported the IMDS access issue on 2025-12-25 and the over-privileged role on 2026-01-12. AgentCore became IMDSv2-only on 2026-02-14. AWS closed the first report as 'informative' on 2026-04-12. Zenity confirmed on 2026-06-22 that role permissions were unchanged, and on 2026-09-29 observed substantial role changes (removal of broad agent execution, conversation reading and cross-region Secrets Manager permissions). AWS states that the behavior is documented and expected and that developer error would be required for the attack; Zenity states the issue did not cross the account boundary and has been fully mitigated. Zenity also says the IMDS weakness is not specific to AWS and that it is checking other cloud platforms.

CVE status: a single aggregator (techjacksolutions.com) lists CVE-2026-18830 (CVSS 8.1, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N) for this issue, but The Register's article mentions no CVE, no NVD record could be retrieved, and the CNA is not stated. This record therefore does not assert a CVE or CVSS score. Severity HIGH is an analyst judgment. No in-the-wild exploitation, threat actor or CISA KEV listing is reported.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- AML.T0051 LLM Prompt Injection
- T1552.005 Unsecured Credentials: Cloud Instance Metadata API
- T1555.006 Credentials from Password Stores: Cloud Secrets Management Stores
- T1078.004 Valid Accounts: Cloud Accounts
- T1580 Cloud Infrastructure Discovery
- T1526 Cloud Service Discovery
- T1550.001 Use Alternate Authentication Material: Application Access Token
- T1213 Data from Information Repositories

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**AgentCorruption - Cross-Agent Discovery and Invocation or Multi-Source Use of AgentCore Role Credentials (Lateral Movement)** (`TL-2026-7050-SPL-003`)

Detects stolen AgentCore execution-role session credentials being used for cross-agent lateral movement: enumeration of agents via logs:DescribeLogGroups followed by bedrock-agentcore:InvokeAgentRuntime in the same session, or the same role session used from more than one source IP (runtime plus attacker infrastructure). Maps to cloud discovery, cloud account abuse and application access token reuse.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1550.001, T1078.004, T1580, T1526
- **Data sources:** aws:cloudtrail, index=aws, AWSCloudTrail
- **Severity:** high
- **Confidence:** medium

### Splunk SPL

```spl
index=aws sourcetype="aws:cloudtrail" earliest=-24h "userIdentity.type"=AssumedRole
  ((eventSource="logs.amazonaws.com" eventName="DescribeLogGroups") OR (eventSource="bedrock-agentcore.amazonaws.com" eventName="InvokeAgentRuntime"))
| eval role='userIdentity.sessionContext.sessionIssuer.userName', session_arn='userIdentity.arn'
| where like(role,"%AgentCore%")
| eval is_enum=if(eventName="DescribeLogGroups",1,0), is_invoke=if(eventName="InvokeAgentRuntime",1,0)
| stats sum(is_enum) AS enum_calls sum(is_invoke) AS invoke_calls dc(sourceIPAddress) AS src_ip_count values(sourceIPAddress) AS src_ips min(_time) AS first_seen max(_time) AS last_seen BY session_arn role
| where (enum_calls>=1 AND invoke_calls>=1) OR src_ip_count>=2
| eval first_seen=strftime(first_seen,"%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen,"%Y-%m-%d %H:%M:%S")
| table session_arn role enum_calls invoke_calls src_ip_count src_ips first_seen last_seen
```

### Microsoft KQL

```kql
AWSCloudTrail
| where TimeGenerated > ago(24h)
| where UserIdentityType == 'AssumedRole' and SessionIssuerUserName has 'AgentCore'
| where (EventSource == 'logs.amazonaws.com' and EventName == 'DescribeLogGroups')
    or (EventSource == 'bedrock-agentcore.amazonaws.com' and EventName == 'InvokeAgentRuntime')
| summarize EnumCalls = countif(EventName == 'DescribeLogGroups'), InvokeCalls = countif(EventName == 'InvokeAgentRuntime'), SourceIpCount = dcount(SourceIpAddress), SourceIps = make_set(SourceIpAddress), Targets = dcount(RequestParameters), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by UserIdentityArn, SessionIssuerUserName
| where (EnumCalls >= 1 and InvokeCalls >= 1) or SourceIpCount >= 2
| project UserIdentityArn, SessionIssuerUserName, EnumCalls, InvokeCalls, Targets, SourceIpCount, SourceIps, FirstSeen, LastSeen
```

### Sigma

```yaml
title: AgentCore Execution Role Used for Agent Enumeration or Invocation From Non-AWS Source
id: b84a0e57-19d2-4c36-8f7b-3e6d1a52c9f8
status: experimental
description: Detects AgentCore execution-role sessions calling logs DescribeLogGroups (agent enumeration) or bedrock-agentcore InvokeAgentRuntime (cross-agent invocation) from a source other than an AWS service endpoint, consistent with stolen IMDS credentials being replayed (AgentCorruption, TL-2026-7050). Correlate by session ARN for multi-IP use.
references:
  - https://labs.zenity.io/post/agentcorruption-how-a-single-prompt-collapsed-the-entire-cloud-security-model
author: Threadlinqs Team
date: 2026-11-30
tags:
  - attack.lateral_movement
  - attack.t1550.001
  - attack.defense_evasion
  - attack.t1078.004
  - attack.discovery
  - attack.t1580
  - attack.t1526
logsource:
  product: aws
  service: cloudtrail
detection:
  selection_role:
    userIdentity.type: 'AssumedRole'
    userIdentity.sessionContext.sessionIssuer.userName|contains: 'AgentCore'
  selection_enum:
    eventSource: 'logs.amazonaws.com'
    eventName: 'DescribeLogGroups'
  selection_invoke:
    eventSource: 'bedrock-agentcore.amazonaws.com'
    eventName: 'InvokeAgentRuntime'
  filter_aws_service:
    sourceIPAddress|endswith: '.amazonaws.com'
  condition: selection_role and (selection_enum or selection_invoke) and not filter_aws_service
falsepositives:
  - Legitimate orchestrator agents invoking sub-agents from the AgentCore runtime egress address
  - Operators testing with role credentials from corporate egress IPs
level: high
```

**Known false positives:**

- Legitimate multi-agent architectures where an orchestrator agent invokes sub-agents via InvokeAgentRuntime
- Administrators or automation using the execution role from known corporate egress IPs

**Tuning notes:** InvokeAgentRuntime requires CloudTrail data event logging for AgentCore. Build an allowlist (lookup) of known runtime NAT/egress IPs and legitimate orchestrator-to-sub-agent pairs and exclude them; remaining src_ip_count>=2 sessions are high fidelity. The Sigma rule's .amazonaws.com filter only removes service-originated calls; also exclude your known egress CIDRs via a field filter in your backend pipeline.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- AgentCorruption - Prompt-Injected Agent Fetching IMDS Role Credentials, Sentinel View (Exploitation) (locked: unlock with TL Creds)
- AgentCorruption - Memory Poisoning and Conversation Theft via AgentCore Memory (Post-Exploitation, Persistence) (locked: unlock with TL Creds)
- AgentCorruption - Cross-Agent Enumeration, Invocation and Secrets Retrieval With Role Session Credentials (Lateral Movement) (locked: unlock with TL Creds)
- AgentCorruption - Agent Tool SSRF to IMDS Credentials Endpoint, Sigma View (Exploitation) (locked: unlock with TL Creds)
- AgentCorruption - Persistence via Planted AgentCore Memory Events From Execution Role (Post-Exploitation) (locked: unlock with TL Creds)
- AgentCorruption - Cross-Agent Discovery, Invocation and ECR Image Pull With AgentCore Role Credentials (Lateral Movement) (locked: unlock with TL Creds)
- AgentCorruption - AgentCore Agent Tool Request to IMDS Credentials Path (Exploitation) (locked: unlock with TL Creds)
- AgentCorruption - AgentCore Execution Role Reading Memory, Tool Secrets and ECR Images (Post-Exploitation) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [AgentCorruption: How a Single Prompt Collapsed the Entire Cloud Security Model (Zenity Labs)](https://labs.zenity.io/post/agentcorruption-how-a-single-prompt-collapsed-the-entire-cloud-security-model)
- [tl;dr sec #350](https://tldrsec.com/p/tldr-sec-350)
- [The Register: AgentCorruption coverage](https://www.theregister.com/a/5302436)
- [Dark Reading: 'AgentCorruption' Puts AWS Environments At Risk With Single Prompt](https://darkreading.com/cloud-security/agentcorruption-aws-environments-at-risk-single-prompt)
- [CSO Online: AWS's repeated problems with AI agent controls](https://www.csoonline.com/article/4232054/awss-repeated-problems-with-ai-agent-controls-illustrates-the-autonomous-agent-dilemma.html)
- [Let's Data Science: AWS Updated AgentCore After AgentCorruption Research, but Disputes the Finding](https://letsdatascience.com/news/aws-patches-bedrock-agentcore-agentcorruption-flaws-4ccd777f)
- [TechJack Solutions: CVE-2026-18830 (unverified CVE attribution, aggregator)](https://techjacksolutions.com/cve/cve-2026-18830/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7050
