{
  "schema": "aidefend-secureflow-metadata-v1",
  "flow_id": "aidefend-research-sf0103-composio-agentic-tool-sandbox-credential-breach",
  "title": "Composio Breach: Internal Agentic Tool Compromise, Sandbox Code Execution, and Leaked Credentials",
  "subtitle": "Composio traced the intrusion from a monitoring tool to code execution in the tool-execution sandbox. It also reported leaked connection credentials and potential API key exposure, with the acquisition routes undisclosed.",
  "summary": "Composio is a developer platform that gives AI agents tools and managed authentication for other applications. When a user connects GitHub or Gmail, Composio stores the OAuth token or API key for that connection and uses it when an agent calls a tool. In May 2026 an attacker got into Composio’s internal systems. By Composio’s account, the attacker gained a foothold in an internal agentic tool that monitors its infrastructure, obtained elevated access to the automated systems that repair connectors, registered malicious tool definitions, and ran arbitrary code in the tool-execution sandbox. Composio puts the leaked connections at about 0.3% of total active connections, including 5,001 GitHub connections, and separately treats 5,241 Composio API keys as potentially exposed. In a separate notice it reports that compromised Gmail OAuth tokens of certain employees were used to sign in to auxiliary systems through magic links.",
  "reviewed": true,
  "import_status": "curated-research",
  "ai_layers": [
    "tool-integrations-mcp",
    "autonomous-agents",
    "ai-infrastructure"
  ],
  "risk_impact": [
    "credential-identity-theft",
    "system-compromise-rce"
  ],
  "affected_components": [
    "Internal agentic infrastructure-monitoring tool",
    "Automated connector remediation systems",
    "Tool-execution sandbox and the tool definitions registered in it",
    "Stored connection credentials and Composio API keys",
    "Auxiliary systems that accept magic-link sign-in"
  ],
  "source_research": {
    "provider": "Composio",
    "primary_url": "https://composio.dev/blog/composio-may-2026-security-incident",
    "published": "2026-05-21",
    "note": "The attack steps, counts and later hardening come from Composio’s disclosures. Composio describes the main path through sandbox code execution. It does not describe how the attacker obtained the leaked connection credentials or might have reached the API key cache. The magic-link vector comes from a separate notice and its relationship to the main path is unknown."
  },
  "attack_steps": [
    {
      "id": "probe-exploit-combinations",
      "title": "Probe Composio systems with many exploit combinations",
      "zhTitle": "反覆嘗試各種漏洞利用手法，探測 Composio 系統",
      "summary": "Composio says the attacker probed its systems extensively, brute-forcing many combinations of exploits with LLM-generated attack patterns. It does not say which systems or routes were probed.",
      "zhSummary": "Composio 表示，攻擊者對它的系統做了大規模探測，用 LLM 產生的攻擊手法反覆嘗試各種漏洞利用組合。Composio 沒有說明被探測的是哪些系統或路由。",
      "tactic": "AML.TA0002",
      "technique": "AML.T0006",
      "layout": {
        "x": 0,
        "y": -390
      }
    },
    {
      "id": "foothold-agentic-tool",
      "title": "Gain a foothold in an internal agentic monitoring tool",
      "zhTitle": "在監控用的內部 agent 工具取得立足點",
      "summary": "The attempts ended with a foothold in an internal agentic tool that Composio uses to monitor its infrastructure and report connector failures. Composio has not disclosed the weakness that was exploited.",
      "zhSummary": "反覆嘗試之後，攻擊者在 Composio 的一套內部 agent 工具取得立足點；Composio 用這套工具來監控基礎設施，並回報連接器（Composio 與各個第三方應用程式串接的元件）的故障。Composio 沒有公開攻擊者利用的是哪個弱點。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 610,
        "y": -390
      }
    },
    {
      "id": "elevate-remediation",
      "title": "Abuse the agentic tool to obtain elevated access to automated remediation",
      "zhTitle": "濫用內部 agent 工具，取得連接器自動修復系統的更高權限",
      "summary": "From that foothold, the attacker abused the tool to obtain elevated access to the automated remediation systems that fix errors in Composio’s connectors. The calls or credentials involved are not published.",
      "zhSummary": "攻擊者從這個立足點出發，濫用這套工具，取得了自動修復系統的更高權限；這些系統負責自動修復連接器的錯誤。過程中用了哪些呼叫或憑證，Composio 沒有公開。",
      "tactic": "AML.TA0012",
      "technique": "AML.T0053",
      "layout": {
        "x": 1220,
        "y": -390
      }
    },
    {
      "id": "register-tool-definitions",
      "title": "Register malicious tool definitions in the sandboxed execution environment",
      "zhTitle": "在沙箱執行環境裡註冊惡意的工具定義",
      "summary": "The attacker then registered malicious tool definitions inside Composio’s sandboxed execution environment, chaining each step to escalate privileges further. What the definitions contained is not published.",
      "zhSummary": "接著，攻擊者在 Composio 的沙箱執行環境裡註冊了惡意的工具定義，一步接一步把權限往上提升。這些工具定義的內容沒有公開。",
      "tactic": "AML.TA0006",
      "technique": "AML.T0110",
      "layout": {
        "x": 1830,
        "y": -390
      }
    },
    {
      "id": "execute-code-sandbox",
      "title": "Execute arbitrary code in the tool-execution sandbox",
      "zhTitle": "在工具執行沙箱內執行任意程式碼",
      "summary": "According to Composio, the chain ended with the attacker able to execute arbitrary code within its tool-execution sandbox, the environment that runs tool calls for agents.",
      "zhSummary": "依 Composio 的說法，攻擊者最後能在工具執行沙箱內執行任意程式碼；這個沙箱就是替 agent 實際執行工具呼叫的環境。",
      "tactic": "AML.TA0005",
      "technique": "AML.T0050",
      "layout": {
        "x": 2440,
        "y": -390
      }
    },
    {
      "id": "credentials-exposed",
      "title": "Confirmed exposure of connection credentials",
      "zhTitle": "確認外洩的第三方連線憑證",
      "summary": "Composio reports that about 0.3% of active connections leaked, including 5,001 GitHub connections. It did not disclose how the attacker obtained the credentials or whether sandbox access was used to acquire them.",
      "zhSummary": "Composio 通報約 0.3% 的使用中連線外洩，其中包括 5,001 個 GitHub 連線。Composio 沒有說明攻擊者怎麼取得這些憑證，也沒有交代是否曾利用沙箱存取這些憑證。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 1830,
        "y": 390
      }
    },
    {
      "id": "api-keys-potentially-exposed",
      "title": "Potential exposure of 5,241 Composio API keys",
      "zhTitle": "5,241 把 Composio API key 可能暴露",
      "summary": "An auxiliary cache held 5,241 Composio API keys during the breach. Composio says the attacker likely had access to the cache and revoked the keys as a precaution. It did not disclose the access route or confirm that the attacker obtained these keys.",
      "zhSummary": "入侵期間，Composio 的輔助快取服務存有 5,241 把 API key。Composio 認為攻擊者很可能可以存取這個快取，因此預防性撤銷了這批 key。Composio 沒有公布存取路徑，也未確認攻擊者有取得這批 key。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 2440,
        "y": 390
      }
    },
    {
      "id": "compromise-gmail-tokens",
      "title": "Compromise the Gmail OAuth tokens of certain Composio employees",
      "zhTitle": "取得部分 Composio 員工的 Gmail OAuth token",
      "summary": "In a separate notice, Composio says the attacker compromised the Gmail OAuth tokens of certain employees and that the vector was abused from its staging system. How the tokens were obtained is not stated.",
      "zhSummary": "Composio 在另一則通知中表示，攻擊者取得了部分員工的 Gmail OAuth token，而且這個手法是從 Composio 的 staging 環境（上線前用來測試的環境）發動的。攻擊者如何取得這些 token，通知裡沒有說明。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 0,
        "y": 390
      }
    },
    {
      "id": "magic-link-auxiliary",
      "title": "Sign in to auxiliary systems through magic links",
      "zhTitle": "用 magic link 登入 Composio 的輔助系統",
      "summary": "With those tokens the attacker was able to compromise auxiliary systems that use magic-link sign-in, where a link sent by email is enough to sign in. Composio does not name the systems and recommends disabling magic-link sign-in for auxiliary systems.",
      "zhSummary": "有了這些 token，攻擊者就能入侵採用 magic link 登入的輔助系統；這種登入方式只要點開寄到信箱的連結就能登入。Composio 沒有指出是哪些系統，並建議輔助系統停用 magic link 登入。",
      "tactic": "AML.TA0015",
      "technique": "AML.T0091.000",
      "layout": {
        "x": 610,
        "y": 390
      }
    }
  ],
  "threat_refs": [
    {
      "id": "AML.T0006",
      "name": "Active Scanning"
    },
    {
      "id": "AML.T0053",
      "name": "AI Agent Tool Invocation"
    },
    {
      "id": "AML.T0110",
      "name": "AI Agent Tool Poisoning"
    },
    {
      "id": "AML.T0050",
      "name": "Command and Scripting Interpreter"
    },
    {
      "id": "AML.T0091.000",
      "name": "Application Access Token"
    }
  ],
  "reader_narrative": {
    "pathCount": 2,
    "topologyNote": "The main path ends at sandbox code execution. Composio reported the credential exposures and the magic-link path separately, with no disclosed link to the sandbox step.",
    "groups": [
      {
        "id": "internal-chain",
        "kind": "path",
        "eyebrow": "Main path, as reported by Composio",
        "label": "From an internal agentic tool to sandbox code execution",
        "summary": "A foothold in a monitoring tool led through automated connector remediation and tool registration to code execution inside the tool-execution sandbox.",
        "stepIds": [
          "probe-exploit-combinations",
          "foothold-agentic-tool",
          "elevate-remediation",
          "register-tool-definitions",
          "execute-code-sandbox"
        ]
      },
      {
        "id": "credential-exposures",
        "kind": "additional",
        "eyebrow": "Reported impact",
        "label": "Confirmed connection leaks and potential API key exposure",
        "summary": "Composio confirmed the connection leaks and assessed potential exposure for the API keys. The acquisition and cache access routes are undisclosed.",
        "stepIds": [
          "credentials-exposed",
          "api-keys-potentially-exposed"
        ]
      },
      {
        "id": "magic-link-vector",
        "kind": "path",
        "eyebrow": "Separately reported vector",
        "label": "Employee Gmail tokens to magic-link sign-in",
        "summary": "Compromised Gmail OAuth tokens of employees were used to sign in to auxiliary systems. Composio reports this in a separate notice.",
        "stepIds": [
          "compromise-gmail-tokens",
          "magic-link-auxiliary"
        ]
      }
    ]
  }
}
