{
  "schema": "aidefend-secureflow-metadata-v1",
  "flow_id": "aidefend-research-sf0053-agentcore-starter-iam-cross-agent-memory",
  "title": "AgentCore Starter-Toolkit IAM Exposes Other Agents' Memory",
  "subtitle": "A controlled cross-agent pivot from a broad execution role through ECR image contents to another MemoryID.",
  "summary": "Unit 42 demonstrated that starter-toolkit-created AgentCore execution roles used broad resource wildcards for ECR, AgentCore Memory, runtime, and Code Interpreter actions. After an initial agent is compromised, its role can pull another agent's image, recover a MemoryID from the image, and read that agent's memory records; Unit 42 states the same permission shape would also allow poisoning, which the test did not demonstrate. AWS clarified that generated roles are for development and testing, not production.",
  "reviewed": true,
  "import_status": "curated-research",
  "ai_layers": [
    "autonomous-agents"
  ],
  "risk_impact": [
    "data-exfiltration",
    "data-corruption"
  ],
  "affected_components": [
    "starter-toolkit execution IAM role",
    "Amazon ECR agent image",
    "AgentCore MemoryID",
    "AgentCore Memory APIs"
  ],
  "source_research": {
    "provider": "Palo Alto Networks Unit 42",
    "primary_url": "https://unit42.paloaltonetworks.com/exploit-of-aws-agentcore-iam-god-mode/",
    "published": "2026-04-08",
    "note": "AIDEFEND-curated public SecureFlow based on public reporting and supporting references. This is not a MITRE ATLAS case-study conversion."
  },
  "attack_steps": [
    {
      "id": "step-1",
      "title": "Compromise an Agent Using a Broad Generated Role",
      "tactic": "AML.TA0004",
      "technique": "AML.T0010.001",
      "summary": "The research assumes control of one AgentCore agent deployed with the toolkit's broad execution role; it does not claim to have discovered a particular initial intrusion.",
      "zhTitle": "先控制使用寬鬆角色的代理",
      "zhSummary": "研究以攻擊者已控制一個使用 Starter Toolkit 寬鬆執行角色的代理為前提，沒有聲稱查明某個真實入侵入口。",
      "layout": {
        "x": -960,
        "y": 0
      }
    },
    {
      "id": "step-2",
      "title": "Pull Another Agent's ECR Image",
      "tactic": "AML.TA0008",
      "technique": "AML.T0007",
      "summary": "Wildcard ECR permissions allow the compromised agent's role to authenticate and pull a target agent's container image in the account.",
      "zhTitle": "下載其他代理的 ECR 映像",
      "zhSummary": "受入侵代理的角色可利用 ECR 權限萬用字元，驗證身分並下載同帳號內目標代理的容器映像。",
      "layout": {
        "x": -480,
        "y": 0
      }
    },
    {
      "id": "step-3",
      "title": "Recover the Target MemoryID",
      "tactic": "AML.TA0009",
      "technique": "AML.T0037",
      "summary": "Static inspection of the pulled image exposes a BEDROCK_AGENTCORE_MEMORY_ID value for the target agent.",
      "zhTitle": "從映像找出目標 MemoryID",
      "zhSummary": "靜態檢查下載的映像，找出目標代理設定中的 BEDROCK_AGENTCORE_MEMORY_ID。",
      "layout": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "step-4",
      "title": "Read Another Agent's Memory",
      "tactic": "AML.TA0006",
      "technique": "AML.T0080.000",
      "summary": "Wildcard AgentCore Memory permissions let the compromised agent use the recovered ID to read another agent's memory records. The quoted role grants read actions; Unit 42 describes poisoning as a possible extension that the test did not demonstrate.",
      "zhTitle": "跨代理讀取記憶",
      "zhSummary": "AgentCore Memory 的萬用字元權限，使受入侵代理可用取得的 ID 讀取另一代理的記憶紀錄。引用的角色授予的是讀取 API；Unit 42 把污染記憶列為可能的延伸，測試中沒有示範。",
      "layout": {
        "x": 480,
        "y": 0
      }
    }
  ],
  "threat_refs": [
    {
      "id": "AML.T0080.000",
      "name": "Memory"
    },
    {
      "id": "AML.T0010.001",
      "name": "AI Software"
    }
  ]
}
