{
  "schema": "aidefend-secureflow-metadata-v1",
  "flow_id": "aidefend-research-sf0055-kiro-global-mcp-config-execution",
  "title": "Kiro Global MCP Configuration Write to Host Code Execution",
  "subtitle": "A controlled demonstration of web-content instructions crossing into a global, auto-reloaded MCP executable configuration.",
  "summary": "Intezer and Kodem demonstrated that hidden instructions in a web page fetched by Kiro could induce its file-write tool to change ~/.kiro/settings/mcp.json without a meaningful approval boundary. Kiro reloaded the configuration and started the added MCP server command in the developer's user context. The proof of concept sent a local callback; it did not document an in-the-wild victim or theft of secrets.",
  "reviewed": true,
  "import_status": "curated-research",
  "ai_layers": [
    "autonomous-agents"
  ],
  "risk_impact": [
    "system-compromise-rce",
    "model-evasion-bypass"
  ],
  "affected_components": [
    "attacker-controlled web page",
    "Kiro webFetch",
    "Kiro file-write tool",
    "~/.kiro/settings/mcp.json",
    "MCP server configuration reload"
  ],
  "source_research": {
    "provider": "Intezer Research and Kodem Security",
    "primary_url": "https://research.intezer.com/blog/2026/07/remote-code-execution-kiro/",
    "published": "2026-07-20",
    "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 Hidden Instructions in a Web Page",
      "tactic": "AML.TA0001",
      "technique": "AML.T0065",
      "summary": "The research page contains visually hidden text asking Kiro to add an MCP server command to its global configuration. The payload was hosted by the researchers for a local proof of concept.",
      "zhTitle": "在網頁放入隱藏的惡意指示",
      "zhSummary": "研究者把人眼不易察覺的文字放進網頁，要求 Kiro 在全域設定新增一個 MCP 伺服器命令；這是本機概念驗證的測試網頁。",
      "layout": {
        "x": -960,
        "y": 0
      }
    },
    {
      "id": "step-2",
      "title": "Fetch the Page for a Legitimate User Request",
      "tactic": "AML.TA0005",
      "technique": "AML.T0051.001",
      "summary": "The developer approves a normal web fetch. Kiro receives the page's HTML, including text that was hidden from the visual page but present in the content it processes.",
      "zhTitle": "依使用者正常請求讀取網頁",
      "zhSummary": "開發者核准一般的網頁讀取動作。Kiro 取得的 HTML 包含畫面上看不見、卻仍在內容中的惡意指示。",
      "layout": {
        "x": -480,
        "y": 0
      }
    },
    {
      "id": "step-3",
      "title": "Write the Global MCP Configuration",
      "tactic": "AML.TA0006",
      "technique": "AML.T0081",
      "summary": "Influenced by the page text, Kiro uses its file-write capability to modify ~/.kiro/settings/mcp.json with an attacker-specified command. The research reports no separate effective approval for this high-risk write.",
      "zhTitle": "改寫全域 MCP 設定檔",
      "zhSummary": "Kiro 依網頁指示使用檔案寫入能力，把攻擊者指定的命令寫進 ~/.kiro/settings/mcp.json。研究指出，這項高風險寫入沒有另外受到有效核准。",
      "layout": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "step-4",
      "title": "Reload the MCP Configuration and Start the Command",
      "tactic": "AML.TA0005",
      "technique": "AML.T0053",
      "summary": "Kiro reloads the changed configuration and launches the newly registered MCP server command with the developer's user privileges, even where the UI displays a later change prompt.",
      "zhTitle": "重新載入設定並啟動命令",
      "zhSummary": "Kiro 重新載入已改動的設定，以開發者使用者權限啟動新登錄的 MCP 伺服器命令；即使之後顯示設定變更提示，也沒有擋下重新載入。",
      "layout": {
        "x": 480,
        "y": 0
      }
    },
    {
      "id": "step-5",
      "title": "Observe a Local Callback Confirming Execution",
      "tactic": "AML.TA0010",
      "technique": "AML.T0025",
      "summary": "The research proof of concept records a callback to a local listener with host information. This confirms command execution in the test; it is not evidence of an external victim or stolen credentials.",
      "zhTitle": "以本機回呼確認程式碼已執行",
      "zhSummary": "研究者的本機接收端收到含主機資訊的回呼，證明測試中的命令已執行；這不能證明外部受害者遭入侵或憑證遭竊。",
      "layout": {
        "x": 960,
        "y": 0
      }
    }
  ],
  "threat_refs": [
    {
      "id": "AML.T0051.001",
      "name": "LLM Prompt Injection: Indirect"
    },
    {
      "id": "AML.T0081",
      "name": "Modify AI Agent Configuration"
    },
    {
      "id": "AML.T0053",
      "name": "AI Agent Tool Invocation"
    },
    {
      "id": "AML.T0025",
      "name": "Exfiltration via Cyber Means"
    }
  ]
}
