Composio Breach: Internal Agentic Tool Compromise, Sandbox Code Execution, and Leaked Credentials
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.
Threat Analysis
- What Composio holds. Composio gives AI agents tools for other applications and manages the sign-in to them. When a user connects an account such as GitHub or Gmail, Composio keeps the OAuth token or API key for that connection and uses it each time an agent calls a tool. A platform like this concentrates credentials that belong to many customers’ users, and part of that store is what leaked in May 2026.
- The main chain, by Composio’s account. The attacker probed Composio’s systems, trying many combinations of exploits with LLM-generated attack patterns, until they gained a foothold in an internal agentic tool that monitors infrastructure and reports connector failures. From there they abused the tool to obtain elevated access to the automated remediation systems that fix connector errors, registered malicious tool definitions inside the sandboxed execution environment, and were finally able to execute arbitrary code in the tool-execution sandbox. A statement on X by Composio’s Karan Vaidya put the activity in a window of about eight hours on May 21. The exploited weakness, the route to elevated access and the content of the tool definitions are not published.
- What leaked, with the source’s qualifiers. Composio’s list of leaked connections covers about 0.3% of total active connections: 5,001 GitHub connections, 12 Gmail connections and one to five each across 24 other apps, many of them internal test accounts. One leaked GitHub token was an internal token with access to Composio’s production codebase. Separately, an auxiliary cache service held 5,241 Composio API keys during the breach window, and Composio says the attacker likely had access to it. Composio says some keys may have been leaked and that it does not know whether specific keys were definitively compromised. It later called the two figures different categories of exposure, not one count of confirmed stolen credentials, and it has not characterized any data exposure.
- A second vector, reported separately. In a “Notice of Threat Vector”, Composio says the attacker compromised auxiliary systems through magic-link sign-in after compromising the Gmail OAuth tokens of certain employees, and that the vector was abused from its staging system. A magic link is a sign-in link sent by email, so whoever can read the mailbox can sign in. Composio does not say how the tokens were obtained, which systems were entered, or how this relates to the main chain. It warns that the vector could be open upstream, asks security and forensics teams to verify that no such breach occurred during the breach window, and recommends disabling magic-link sign-in for auxiliary systems.
- Revocation was the hard part. Composio revoked tokens across about 100 toolkits (its per-application sets of tools), revoked every user’s GitHub token, deleted all API keys created before 11:00 PM PST on May 22 and limited existing keys to IP addresses used in the previous two weeks. It also states the limits: under 5% of connections cannot be revoked through standard provider APIs, most API-key connections must be rotated by their owners at the provider, and deleting a connection in Composio does not guarantee the token is dead at the provider.
- What Composio says it changed. APIs no longer return connection tokens, credentials are decrypted in the execution runtime for each call, single-key encryption was replaced by envelope encryption, API keys are stored only as hashes, the tool-building service was retired and rebuilt with a third-party audit, and shared static secrets between internal services were replaced with OIDC. Composio cites reviews by IntrusionOps, AppSecure Security and Latacora, the last with items still in progress. These are the vendor’s statements, and Composio does not tie each change to a step of the attack.
Applicable AIDEFEND Defenses (12)
What Defenders Should Do Now
- Composio customers: finish revocation at the provider. For every connection that existed in May 2026, check its status with Composio’s connected-account API, then revoke it through Composio’s revoke endpoint or directly in the provider. For API_KEY connections and toolkits missing from Composio’s revoked list, have the owner rotate the key at the provider. The step passes when the old token or key is rejected by the provider itself. A connection deleted in Composio is not that proof.
- Composio customers: review provider logs for the breach window. Search GitHub and other provider audit logs for the 24 IP addresses Composio published and for activity by tokens issued to the Composio integration between 1:05 AM and 9:15 AM PT on May 21, 2026, plus any use after revocation. Every match should be explained or escalated.
- Composio customers: narrow what a future leak can do. Give each workload its own scoped project API key (default keys keep full project access) with an IP allowlist, request only the provider scopes each connection needs, and restrict the tools each session can use. Then test it: a valid key used from an address outside the allowlist should get a 403.
- Teams that run a tool platform or internal agents: test three internal boundaries in staging. Using the monitoring agent’s own identity, call the build, hosting and remediation services; only its reporting operation should succeed. Register a tool definition that skipped approval; the runtime should refuse to load it. From inside one tool execution, try to obtain another connection’s credential; it should fail.
- Everyone: remove email-only sign-in from internal and staging systems. List the auxiliary tools where a link sent by email is enough to sign in, move them behind the identity provider with phishing-resistant MFA, and confirm that a mailbox-only sign-in no longer works. Then review their sign-in logs for the breach window, as Composio advises.
2 additional considerations
Custody of the tokens a platform must keep usable
Limits on where a key works and what a token may do
Conclusion
Last updated: