AIDEFEND in Action AIA-0153 Incident

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.

Credential TheftPrivilege EscalationCredential GovernanceRuntime IsolationAgentic AI
12 applicable AIDEFEND defenses
Source: Composio May 2026 security incident update 
Author: Composio
Original article: May 21, 2026

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)

AID-I-001.003
Ephemeral Single-Use Sandboxes for Tools
High
Arbitrary code in a tool-execution runtime is dangerous in proportion to what that runtime holds and how long it lives. Composio, as the operator, should run every tool call in a fresh sandbox that is created for that call, receives only that call’s credential, and is destroyed when the call returns. Code an attacker runs there cannot wait for other customers’ calls or keep a foothold. Composio now describes its runtime this way. The control does not stop the code from running, and it contains the leak only if credentials for other connections cannot be requested from inside the sandbox.
AID-H-021.002
Runtime Integrity Enforcement (Signed Configurations)
High
Composio places the registration of malicious tool definitions directly before code execution in the sandbox. If the runtime verifies every tool file against a manifest signed in the trusted build before it loads or hot-reloads anything, and refuses unexpected or changed files, a definition registered from a compromised internal system never becomes running code. The signing key has to sit outside the reach of the remediation automation and the sandbox. Where automated repair is allowed to produce signed releases, this check is only as strong as the protection of that path.
AID-H-024.004
Approved Tool Contract Semantics & Change Admission
High
Registering a tool definition changes what the platform will execute, so it should be treated as a release and not as routine repair output. The tool platform owner can require a signed, expiring approval that binds each definition’s exact descriptor and declared behavior, issued by reviewers outside the automated remediation path, and keep any definition without that approval unresolved. Elevated access to the remediation systems would then not be enough to make a new definition callable. The control governs what a definition declares; the code it carries still needs the load-time check and the sandbox.
AID-H-017.002
Least-Privilege Tool Architecture
High
An agent that watches infrastructure and reports connector failures needs to read monitoring data and file a report. It does not need to operate the systems that change connectors. Composio’s engineering team can give the internal agent only narrow, single-purpose tools, and check that the backend permissions behind those tools cannot start, alter or approve a remediation job. A foothold in the agent then yields monitoring data and a report queue. Composio has not said whether the elevated access came through the agent’s tools, its credentials or another weakness, so this closes one of the possible routes.
AID-H-004.002
Service & API Authentication
High
Composio reports that it replaced shared static secrets with OIDC, so build, hosting and monitoring services no longer authenticate to each other with a common secret. It does not say a shared secret was the route used in the attack, but the control sits at the boundary of this step: the remediation systems should accept a request only when it carries a short-lived token issued to one named workload, and should check issuer, audience and scope before any handler runs. A monitoring identity then cannot pass as a build or remediation component. What that caller may do still needs its own authorization rules. Composio’s own API keys were also at risk. An auxiliary cache service held 5,241 of them during the breach window, and Composio treats those keys as potentially exposed. It now stores API keys and session keys only as hashes and shows a key once at creation. With only a digest stored, reading the cache or the database yields nothing that authenticates. Customers own the other half: a scoped key for each workload and regular rotation. A key captured in transit or leaked from the customer’s side still works until it is revoked.
AID-E-001.002
Issued Token, Authentication Session & Lease Revocation
High
Once connection tokens have left the platform, the only way to end their use is at the provider that issued them. Composio, which holds the affected tokens, revoked access tokens across about 100 toolkits through the providers’ revocation endpoints and revoked every user’s GitHub token, including those without direct evidence of compromise. The useful test is on the provider side: a revoked token must be refused when presented again. Composio says under 5% of connections cannot be revoked through standard provider APIs, and revocation does not undo anything done with a token before it was revoked. For the magic-link vector, Composio revoked the Gmail tokens of the affected employees, which ends the attacker’s ability to read sign-in links sent to those mailboxes. This comes after the tokens were taken, and Composio does not say how that happened.
AID-E-001.004
Delegated Grant & Connected-App Authorization Revocation
High
Deleting a connection inside Composio removes Composio’s record of it. It does not withdraw the authorization the user gave at GitHub or Google, and Composio says deletion alone does not guarantee provider-side revocation. Customers, their end users and workspace administrators should remove the connected application’s grant in the provider itself, starting with the cases Composio cannot revoke, such as Google tokens for Workspace admin-consented apps. The check is that the app no longer appears among the account’s authorized applications and that a new token cannot be obtained without fresh consent. Reconnecting creates a new grant, which is the moment to review its scopes.
AID-E-001.001
Root & Long-Lived Credential Object Eviction
High
Long-lived keys need rotation, since there is no grant to withdraw. Composio deleted every API key created before 11:00 PM PST on May 22, 2026 and required customers to create new ones. Each customer then has to replace the key in every workload that uses it and confirm the old value is rejected. Connections that use the API_KEY scheme hold keys issued by third-party providers, which Composio mostly cannot revoke, so their owners must rotate them at the provider. A key that is replaced in Composio but left valid at the provider is still exposed.
AID-H-004.001
User & Privileged Access Management
High
A magic link makes the mailbox the only sign-in factor, so a stolen Gmail OAuth token was enough to enter Composio’s auxiliary systems. The owners of those systems, and customers with similar internal or staging tools, should require a session from the identity provider backed by phishing-resistant MFA and switch off email-link sign-in. Composio’s own recommendation is to disable magic-link sign-in for auxiliary systems. A token that can read mail then no longer opens the application. The notice does not name the auxiliary systems, so whether each of them can enforce this is not established.
AID-D-011.004
Non-Human Identity & Delegated Token Abuse Detection
Medium
A leaked connection token authenticates correctly, so the provider sees a valid request. What differs is where it comes from and what it does. Customers who can read provider audit logs, for example a GitHub organization’s audit log, can compare token activity for the Composio integration with the addresses Composio normally calls from, and alert on other sources, on use after revocation and on unusually broad repository access. Composio published 24 IP addresses associated with attacker activity and the window of 1:05 AM to 9:15 AM PT on May 21 for this kind of review. This finds misuse after the leak and depends on the provider recording the token and the source address.
AID-E-005
Compromised Durable Application Session & Agent State Teardown
Medium
The definitions the attacker registered remain an execution path until they are removed from the registry and from every cache or replica that can resolve them. During response, the tool platform team should disable and delete exactly those registrations, record a tombstone so a later sync cannot restore them, and prove through the normal dispatcher that none of them resolves. Composio reports retiring and rebuilding its tool-building service; removal of the registrations themselves is not described. Cleanup ends this path and does not address credentials already taken.
AID-DV-006
Synthetic System-Information Decoy Routes
Medium
Composio describes extensive probing before the foothold. Decoy routes that no legitimate client calls give that phase a reliable signal, since a request to one is strong evidence that someone is probing. After detecting the attacker, Composio set up honeypot routes to trap automated attacks. The decoy must be isolated from production configuration and wired to an alert that someone handles. It reports probing only when the attacker touches it and does nothing to the exploit that eventually works.

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

A tool platform has to present provider tokens in plaintext when it makes a call, so it keeps a recoverable copy. How that copy is encrypted and where it is decrypted decides how many tokens one compromised component can read.
Recommendation: Platform operators can add envelope encryption with a per-organization data key wrapped by a separately rotated KMS key, decrypt only inside the per-call runtime, and keep tokens out of API responses. Composio reports all three. Customers who need to control decryption can ask Composio for the customer-managed KMS deployment, where a credential proxy in their own cloud handles plaintext. It needs setup with Composio and does not limit what an agent does with permissions it legitimately holds.

Limits on where a key works and what a token may do

A leaked Composio API key or provider token is worth what it is allowed to do, from wherever it can be used.
Recommendation: Customers can allowlist the outbound IP addresses of their workloads for each Composio API key and request only the provider scopes a connection needs, for example selected repositories. Composio notes that IP allowlisting does not revoke a provider token that has already leaked, and workloads without stable outbound addresses need another arrangement.

Conclusion

AIDEFEND  maps the documented intrusion to narrowly scoped tools and per-workload identity for the internal agent, signed approval and load-time verification for tool definitions, and a single-use sandbox for each tool call. Composio also reported leaked connection credentials and possible API key exposure, with the acquisition routes undisclosed. Customers can revoke exposed credentials at the issuing provider, scope replacement keys and review audit logs. Deleting a connection in Composio does not guarantee revocation at the provider.

Last updated: