{
  "schema": "aidefend-secureflow-metadata-v1",
  "flow_id": "aidefend-research-sf0082-framelink-figma-mcp-curl-fallback-command-injection",
  "title": "Framelink Figma MCP: Command Injection in a curl Fallback",
  "subtitle": "Network and local tool calls converge on the unsafe fetch-to-shell fallback; session setup is not authentication.",
  "summary": "Framelink’s third-party Figma MCP server connects AI coding clients to design data. Imperva and the maintainer demonstrated that crafted tool arguments could reach a curl fallback using child_process.exec and execute a command as the server process. Network exposure and local STDIO are separate entry paths. The published direct tool-call tests do not establish an end-to-end indirect prompt-injection attack.",
  "reviewed": true,
  "import_status": "curated-research",
  "ai_layers": [
    "autonomous-agents",
    "ai-infrastructure"
  ],
  "risk_impact": [
    "system-compromise-rce"
  ],
  "affected_components": [
    "Third-party figma-developer-mcp package",
    "Network MCP listener and local STDIO transport",
    "get_figma_data / download_figma_images arguments",
    "fetchWithRetry curl fallback using child_process.exec"
  ],
  "source_research": {
    "provider": "Imperva Threat Research",
    "primary_url": "https://www.imperva.com/blog/another-critical-rce-discovered-in-a-popular-mcp-server/",
    "published": "2025-10-07",
    "note": "Primary controlled validation corroborated by maintainer advisories. Conditional routes and prerequisites remain explicit; no malicious real-world exploitation is established by these sources. ATLAS annotations are analyst curation, not an official ATLAS case."
  },
  "attack_steps": [
    {
      "id": "initialize-network",
      "title": "Initialize a reachable network MCP session",
      "zhTitle": "初始化可連入的網路 MCP 工作階段",
      "summary": "Network route: the caller sends initialize and receives an mcp-session-id. This is session establishment, not proof of authentication.",
      "zhSummary": "網路路徑：呼叫者送出 initialize，取得 mcp-session-id。這是建立工作階段，不是通過身分驗證的證明。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 0,
        "y": -750
      }
    },
    {
      "id": "call-network",
      "title": "Send crafted arguments with tools/call",
      "zhTitle": "以 tools/call 傳送特製參數",
      "summary": "With network reachability, the attacker calls a Figma tool with arguments that influence the constructed API URL. Imperva also identifies a legacy SSE exposure path.",
      "zhSummary": "能連入網路服務時，攻擊者呼叫 Figma 工具，提交可影響 API 網址的參數。Imperva 也指出舊式 SSE 傳輸有相同風險。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 650,
        "y": -750
      }
    },
    {
      "id": "call-stdio",
      "title": "Call get_figma_data over local STDIO",
      "zhTitle": "透過本機 STDIO 呼叫 get_figma_data",
      "summary": "Separate local route: the maintainer’s IDE/Inspector proof of concept sends a malicious fileKey to get_figma_data over the process input/output channel. No injected model prompt is required for this test.",
      "zhSummary": "獨立的本機路徑：維護者使用 IDE／Inspector，經程序的標準輸入輸出通道，向 get_figma_data 提交惡意 fileKey。此測試不需要先注入模型提示詞。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 650,
        "y": 750
      }
    },
    {
      "id": "fail-fetch",
      "title": "Reach a failed native fetch attempt",
      "zhTitle": "使原生 fetch 請求失敗",
      "summary": "The tool reaches fetchWithRetry. A failed fetch enters the fallback path; network, TLS or proxy failures can trigger it.",
      "zhSummary": "工具進入 fetchWithRetry。fetch 失敗時就會改走備援路徑，網路、TLS 或代理失敗都可能觸發。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 1950,
        "y": 0
      }
    },
    {
      "id": "construct-shell",
      "title": "Interpolate request values into a curl shell string",
      "zhTitle": "把請求值插入 curl shell 命令字串",
      "summary": "The vulnerable fallback concatenates URL/header-derived values into a command passed to child_process.exec. Tool data crosses into shell syntax.",
      "zhSummary": "有漏洞的備援把網址或標頭衍生的值，串入交給 child_process.exec 的命令。工具資料因此跨入 shell 語法。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 2600,
        "y": 0
      }
    },
    {
      "id": "execute-command",
      "title": "Execute the injected command as the MCP service",
      "zhTitle": "以 MCP 服務身分執行注入命令",
      "summary": "The shell interprets attacker-controlled syntax and executes the test command under the server’s privileges. Broader theft, persistence and lateral movement remain potential consequences, not demonstrated steps.",
      "zhSummary": "shell 解讀攻擊者控制的語法，並以伺服器權限執行測試命令。更廣泛的竊密、常駐或橫向移動仍是可能後果，不是本流程已證實的步驟。",
      "tactic": "AML.TA0005",
      "technique": "AML.T0050",
      "layout": {
        "x": 3250,
        "y": 0
      }
    }
  ],
  "threat_refs": [
    {
      "id": "AML.T0050",
      "name": "Command and Scripting Interpreter"
    }
  ],
  "reader_narrative": {
    "pathCount": 2,
    "topologyNote": "Two entry transports converge on one fallback. DNS rebinding is a researcher-described additional risk without sufficient procedural detail here for a separate validated branch.",
    "groups": [
      {
        "id": "network",
        "kind": "path",
        "eyebrow": "Network Entry",
        "label": "Initialize and Call",
        "summary": "The session identifier does not authenticate the caller; actual listener reachability is a prerequisite.",
        "stepIds": [
          "initialize-network",
          "call-network"
        ]
      },
      {
        "id": "local",
        "kind": "path",
        "eyebrow": "Local Entry",
        "label": "STDIO Tool Call",
        "summary": "The maintainer validated a direct tool call through an IDE/Inspector; no end-to-end injected prompt is inferred.",
        "stepIds": [
          "call-stdio"
        ]
      },
      {
        "id": "fallback",
        "kind": "converged",
        "eyebrow": "Shared Vulnerable Mechanism",
        "label": "Failed Fetch to Shell Execution",
        "summary": "Both entry paths can reach the fallback when fetch fails. Broader post-execution impacts are outside the demonstrated graph.",
        "stepIds": [
          "fail-fetch",
          "construct-shell",
          "execute-command"
        ]
      }
    ]
  }
}
