{
  "schema": "aidefend-secureflow-metadata-v1",
  "flow_id": "aidefend-research-sf0051-google-adk-agent-to-agent-ci-privilege-crossing",
  "title": "Google ADK Repository Agent-to-Agent CI Privilege Crossing",
  "subtitle": "A PR triage bot's collaborator identity became a trigger for a separate privileged Gemini workflow.",
  "summary": "Pillar Security showed that attacker-controlled PR text could make google/adk-python's public triage agent post a first-line @gemini-cli comment. Because the agent used a collaborator account, gemini-dispatch treated that comment as authorized and started gemini-invoke. The initial handoff was reproduced in a research lab; further token and review-manipulation impacts were demonstrated or analyzed, not a confirmed malicious merge. Google hardened the repository.",
  "reviewed": true,
  "import_status": "curated-research",
  "ai_layers": [
    "autonomous-agents"
  ],
  "risk_impact": [
    "credential-identity-theft",
    "data-corruption"
  ],
  "affected_components": [
    "public pull request",
    "ADK PR triage agent",
    "adk-bot collaborator identity",
    "gemini-dispatch / gemini-invoke"
  ],
  "source_research": {
    "provider": "Pillar Security",
    "primary_url": "https://danusminimus.github.io/posts/Ill-Just-Call-You-Agent-To-Agent-Privilege-Boundary-Failures-In-CI-CD-On-Googles-ADK-Repository/",
    "published": "2026-08-03",
    "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": "Place a Handoff Instruction in a Public PR",
      "tactic": "AML.TA0001",
      "technique": "AML.T0065",
      "summary": "A PR description portrays a first-line @gemini-cli comment as the repository's normal triage procedure.",
      "zhTitle": "在公開 PR 放入交接指示",
      "zhSummary": "PR 說明把首行為 @gemini-cli 的留言偽裝成儲存庫正常的分類交接程序。",
      "layout": {
        "x": -960,
        "y": 0
      }
    },
    {
      "id": "step-2",
      "title": "Triage Agent Posts as a Collaborator",
      "tactic": "AML.TA0005",
      "technique": "AML.T0053",
      "summary": "The public-facing ADK triage agent processes the PR text and posts the requested comment using adk-bot, a collaborator user identity rather than a low-trust bot identity.",
      "zhTitle": "分類代理以協作者身分留言",
      "zhSummary": "公開分類代理讀取 PR 後，依指示使用具有協作者權限的 adk-bot 使用者身分發出留言。",
      "layout": {
        "x": -480,
        "y": 0
      }
    },
    {
      "id": "step-3",
      "title": "Comment Triggers Gemini Dispatch",
      "tactic": "AML.TA0012",
      "technique": "AML.T0053",
      "summary": "The dispatch workflow accepts the collaborator's @gemini-cli comment and routes it to gemini-invoke; it has not independently verified the real request origin or delegated task.",
      "zhTitle": "留言觸發 Gemini 分派流程",
      "zhSummary": "分派流程接受協作者帳號發出的 @gemini-cli 留言並轉往 gemini-invoke，卻沒有另行確認原始請求者與授權任務。",
      "layout": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "step-4",
      "title": "Privileged Agent Runs in Its CI Context",
      "tactic": "AML.TA0005",
      "technique": "AML.T0053",
      "summary": "The second workflow receives the attacker-shaped prompt in a stronger CI context. The researcher demonstrated the handoff and investigated token and PR-review operations within its actual scopes.",
      "zhTitle": "高權限代理在 CI 環境接手",
      "zhSummary": "第二個流程在權限較高的 CI 環境處理受攻擊者影響的提示。研究者驗證了代理交接，並依其實際權限調查憑證與 PR 審查操作。",
      "layout": {
        "x": 480,
        "y": 0
      }
    },
    {
      "id": "step-5",
      "title": "Potentially Tamper with Review Signals",
      "tactic": "AML.TA0005",
      "technique": "AML.T0053",
      "summary": "The researcher built a PoC for editing review-related comments, labels, or approval signals. A maintainer still had to merge a PR; no malicious merge was reported.",
      "zhTitle": "可能竄改審查訊號",
      "zhSummary": "研究者製作了修改審查留言、標籤或核准訊號的概念驗證；合併 PR 仍需維護者動作，沒有惡意合併的報告。",
      "layout": {
        "x": 960,
        "y": 0
      }
    }
  ],
  "threat_refs": [
    {
      "id": "AML.T0051.001",
      "name": "LLM Prompt Injection: Indirect"
    },
    {
      "id": "AML.T0053",
      "name": "AI Agent Tool Invocation"
    }
  ]
}
