An AI Coding Agent Leaked the Keys: Inside the Together AI Prompt Leak
The credential was not stolen from a vault. It was not guessed, and it was not bought. According to Together AI, it was committed to a public code repository by an AI coding agent doing the job it had been given. An unauthorized party picked it up, used it to download stored prompt samples from the company's serverless inference service, and then searched those samples for other credentials to try. That is the story Together AI disclosed on 21 November 2026, and it is a story about a new kind of security failure: one in which the tool that writes the code becomes the way the secret gets out.
Key Takeaways
- Together AI disclosed on 21 November 2026 that an unauthorized party downloaded stored prompt samples from its serverless inference service.
- The samples came from requests to MiniMax M3, GLM-5.2, and Kimi K2.6, mainly on 24 June and 4, 8, and 14 July 2026.
- An AI coding agent committed a credential for a private repository while working on the public GitHub repository xorl.
- The intruder searched the downloaded prompts for credentials to other services and tested them; five of the credentials tested were canaries from a Dragos security experiment.
- Together AI has made zero data retention the default for new accounts and is working with an external forensic firm and law enforcement.
What Actually Leaked
The first thing to get right is what was taken, because the word "leak" can mean many things. Together AI says that, as part of routine software testing, it collected prompt samples that were authorized for that use and stored them in a private Hugging Face repository. The samples came from requests to three models on its serverless inference service: MiniMax M3, GLM-5.2, and Kimi K2.6. They were mainly from four days: 24 June and 4, 8, and 14 July 2026. A prompt is the text a customer sends to a model. It can be an ordinary question, a piece of code, a draft document, or an instruction that contains a password, an API key, or a piece of confidential business information. That is why prompt samples are sensitive even when they were collected for testing. They are not random text. They are real requests from real customers, and the people who wrote them did not expect them to be downloaded by a stranger. Together AI says it is still reviewing the affected prompt contents to determine whether sensitive personal information or other customer data was exposed, and which customers need direct notification. That review is ongoing, and this article does not guess at its outcome. What is known is the mechanism, the models involved, and the dates. Those facts are enough to understand why the incident matters, and they are also enough to show why the next question — what the intruder did with the prompts — is the one that turns a leak into a risk.
How the Credential Got Out
The mechanism is the part of this story that will be quoted for years, because it is so plain. During development of Together AI's public GitHub repository, xorl, an AI coding agent committed a credential that provided access to the private Hugging Face repository where the prompt samples were stored. Together AI says its automated scanning detected the exposed credential, and the commit was reverted. But the exposure window was long enough: during it, an unauthorized party obtained the credential and used it to download the stored prompt samples. There is a temptation to treat this as a familiar story — a secret committed to a public repository — with one new detail. That would miss the point. A human developer who pastes a secret into a public repository makes a mistake, and the mistake can be caught by training, by review, and by scanning. An AI coding agent that commits a secret is doing something different. It is an autonomous system, given access to repositories, files, and tools, and told to complete a task. It can move faster than a human reviewer, it can touch more files in a single session, and it can make a mistake that no human ever sees, because no human was watching that particular step. Together AI lists its fixes in the notice, and the list is worth reading carefully, because it names the failure it is trying to prevent. The company says it has moved to scoped or short-lived credentials, and keyless access where supported, so that a single exposed credential does less damage. It says it is now checking all pull requests for credentials. It says it has made zero data retention the default setting for new accounts. And it says it has updated its rules for AI coding agents. The fourth fix is the one that names the actual failure. The credential did not leak because someone pasted a secret into a public repository by hand. It leaked because an autonomous agent, given enough access to do useful work, did something a human would have been expected not to do [check].
The Canaries That Caught the Intruder
The most remarkable part of this incident is not the leak itself. It is how the leak was detected, and by whom. The intruder did not simply download the prompt samples and leave. According to Together AI, the party searched those samples for credentials to other services and tested whether those credentials were valid. Five of the credentials it tested were canary credentials associated with a Dragos security experiment. A canary credential is a tripwire. It is a fake secret, planted where it should never be used, so that if anyone tries to use it, the experimenters know that someone has been where they should not have been. Dragos, the industrial cybersecurity company, seeded about two million prompts with unique web links and canary-token credentials between July and November 2026, then watched to see where those secrets surfaced. The study was published on 19 November 2026, two days before Together AI's disclosure. The canaries did their job. They proved that the downloaded prompts were not just copied, but searched and tested. They also proved something larger: that the prompts of AI inference services are being treated as a source of credentials by attackers. That is a serious finding, because prompts are where users put their secrets. A developer who pastes an API key into a prompt to test a model, a business user who pastes a password into a document summary, a researcher who pastes a private key into a debugging session — all of them are trusting the inference provider to keep that text safe. The Dragos experiment suggests that trust is being tested in the wild, and not only by the providers themselves. Whether the intruder found any real credentials among the Together AI samples is still under review. Together AI says it has no reason to believe the data went further, and understands the data has now been deleted. It also says it has not identified evidence of additional prompt leakage beyond this incident. Those statements should be read as they are written: as the company's current assessment, not as a final verdict. The review of the affected prompt contents is ongoing, and the company says it will contact affected customers directly.
OpenRouter Removes Three Providers
The Together AI disclosure did not arrive alone. It followed the Dragos study, and it was followed in turn by action from OpenRouter, the service that routes customer AI requests to a pool of third-party inference providers. On 22 November 2026, OpenRouter said it had removed three providers from its platform, removed 125 endpoints from eligibility for Zero Data Retention, and notified all potentially affected customers. The three providers Dragos caught and the three providers OpenRouter removed have not been confirmed to be the same three. Dragos has not named the providers it found breached, and OpenRouter has not named the providers it removed. Three providers have posted public notices of their own — Phala, Together AI, and Novita — and those notices are worth reading in full if you used any of them. OpenRouter said its own findings did not show any breach or unauthorized access of OpenRouter itself. The distinction matters, because it shows how the AI supply chain actually works. A customer who sends a request through OpenRouter does not know, in most cases, which provider will handle it. The request may be routed to one of hundreds of hosts, each with its own security practices, its own data retention policy, and its own logging. The customer trusts OpenRouter to choose well, and trusts the provider to keep the prompt safe. The Dragos experiment tested that trust at scale, and the result was that at least some providers were not keeping it. For users, the practical advice that followed was direct: if you used DeepSeek V4 Flash 0731 through OpenRouter, or sent requests to one of the three models at Together AI, replace every API key, token, and password included in a request [check]. That is not advice to take lightly. Rotating a credential is easy to postpone and expensive to do at scale, which is why it is also the advice most likely to be ignored. But it is the only way to be sure that a secret that was in a prompt is no longer useful to anyone who read it. The lesson is simple, and it applies to every team that lets an AI agent touch code: treat the agent like a privileged user, with scoped credentials, checks on every change, and no default storage of other people's words. The agent that leaked the keys was not malicious. It was trusted, and it was unsupervised in the one place where that mattered most.
Frequently Asked Questions
What happened in the Together AI prompt leak?
Together AI disclosed on 21 November 2026 that an unauthorized party downloaded stored prompt samples from its serverless inference service, after an AI coding agent committed a credential for a private repository to the public GitHub repository xorl.
Which models and dates were involved?
The samples came from requests to MiniMax M3, GLM-5.2, and Kimi K2.6, mainly on 24 June and 4, 8, and 14 July 2026.
What should users do now?
If you sent a request to one of those models through Together AI, or used the affected services through OpenRouter, replace any API key, token, or password that was included in a request, and enable zero data retention in your account settings [check].
Sources: Together AI security notice, 21 November 2026; Dragos canary-token study, 19 November 2026; OpenRouter data processing notice, 22 November 2026.
Key takeaway: Read the full context above, check the source links in the article, and follow Tech World Daily for the next update on this story.

Join the discussion on this article