BunCosmos AI Research Lab

A Coding Agent Exposed a Credential. An Attacker Used It to Steal Stored AI Prompts.

22 November 2026

Together AI’s disclosure connects an agent’s development mistake with a real data theft—and leaves important questions about permissions and review unanswered.

A security incident disclosed by Together AI on 21 November 2026 shows how an AI coding agent’s development action can create an opening for an outside attacker. The agent did not need to initiate an attack: publishing a credential was enough to expose a separate store of customer prompts.

Together AI says a coding agent publicly exposed a credential. A separate party used the access to download stored prompt samples.

The company reports that the exposed samples also raised concerns about credentials included in prompts.

What was exposed

The affected samples primarily came from requests on 24 June, 4 July, 8 July and 14 July 2026 involving MiniMax M3, GLM-5.2 and Kimi K2.6. These are dates of the underlying prompt requests; 21 November is the disclosure date, not a published date for the intrusion itself.

Together has not disclosed the number of prompts or customers affected. It says the review of sensitive personal information and other customer data in the samples continues, with direct notifications as needed.

The company did not report that the private storage itself had been made public.

The company has not named the coding agent or underlying model. The notice does not explain the task it was performing, how it encountered the credential, whether the particular commit passed human review, the exact exposure duration, or the credential’s full scope.

Those omissions prevent a complete allocation of responsibility among model behavior, development permissions, human review and secrets management. The evidence establishes the credential’s publication and subsequent misuse, without identifying every contributing failure.

An agent error followed by an outside intrusion

The disclosure distinguishes the agent’s mistake from subsequent unauthorized access by another party.

It also does not establish whether the intruder was a human acting manually, a person using scripts or AI tools, or some combination. Describing the later theft as an autonomous AI attack would go beyond the evidence.

The incident is consequential without that claim. Development agents can change files and interact with repositories, so their mistakes can cross real access boundaries. A credential can connect a low-risk coding task to a sensitive system that the task itself never needed to modify.

Why removing a secret does not undo exposure

GitHub’s remediation guidance says a leaked secret should be treated as compromised immediately. Deleting the text or reverting a commit does not invalidate a credential already copied by someone else. Revocation or rotation addresses the credential’s continued usability; cleaning the repository addresses its continued presence.

Together says the exposure was detected and the public change reverted. Reverting a change does not establish that a credential has not been copied.

Treat a publicly exposed secret as compromised and use the provider’s remediation instructions.

The prompts became a second source of credentials

The case also shows why sensitive data should be kept out of prompts where possible and why retained inputs need access controls.

Technical prompts can include logs, configurations, source fragments and debugging output. When those materials contain active credentials, retaining the prompt can create an additional copy of a secret outside the original application. Exposure can therefore arise through storage and infrastructure even if the model itself never acts on the credential.

This does not establish that every prompt in the affected repository contained a secret, or that genuine customer credentials produced a successful secondary compromise. Together’s disclosure confirms testing of credentials found in the samples and identifies five as controlled canaries. It does not publish a quantified account of resulting customer losses.

How the Dragos canaries fit

Dragos published a separate study using markers to detect unauthorized exposure in the inference supply chain.

Its observations concern the monitored providers and do not establish that all input data was retained or exposed.

Dragos reports evidence of exposure at at least three AI providers, alongside reseller access and apparent failures to honor privacy settings or published retention policies. These are several mechanisms across a broader inference supply chain, not a single event with one established cause.

Together’s identification of five Dragos canaries connects its disclosure to that investigation. It does not identify Together as responsible for every other observation in the Dragos report. Nor should overlapping canaries be counted as separate groups of real victims.

What Together says it changed

The company reports working with an external forensic investigation firm and law enforcement. It says it has found no evidence of additional prompt leakage beyond the disclosed incident, while review of the affected contents remains ongoing.

Its announced changes cover several layers: scoped or short-lived credentials, keyless access where supported, credential checks on pull requests, revised development processes for AI coding agents, and zero data retention by default for new accounts. Customers handling sensitive prompts are advised to enable zero data retention in their settings.

These measures address different questions. Credential scope determines what a copied key can reach. Lifetime affects how long it remains useful. Checks before publication can stop a secret crossing into public code. Retention settings affect which historical prompts are stored. None of these controls alone guarantees that another incident cannot occur.

The notice does not confirm that all copies of the stolen samples have been deleted or that the data was never redistributed. It also does not complete the assessment of harm to individual customers. Those conclusions remain unavailable from the published evidence.

The questions that remain

The important unknowns include the affected population, the exact exposure window, the agent’s access to the secret, the review path for its commit and the investigation’s eventual findings about sensitive content. Knowing the model’s name alone would not answer those operational questions.

For agent deployments, the case highlights a concrete design requirement: the authority available during a task determines the consequences of an error. A model may need to edit training code without needing a reusable key to historical customer prompts. Separating those permissions and enforcing checks outside the model can constrain that path.

The disclosed incident connects a development action, a leaked credential and an outside download. Its significance lies in that documented chain. Capable coding agents operate inside existing software and data systems, where ordinary mistakes can have consequences well beyond the file being edited.

Sources

Together AI: original November 21 incident notice and reported mitigations

Source: Together AI development project, as identified in the incident notice.

Source: Dragos November 19 inference supply-chain study.

GitHub Docs — remediating a leaked secret

BunCosmos AI Research LabBack to top ↑