An AI coding agent at Together AI made a classic developer mistake: it put a secret key in code anyone could read. Someone found the key and used it to download stored customer prompts. Together disclosed the incident on 21 November in a security notice signed by chief executive Vipul Ved Prakash.

Together runs open AI models in its cloud for developers. Its leak is now part of a wider cleanup of services that promised not to keep your prompts.

What happened at Together AI

Together kept prompt samples for software testing. It says they were authorized for that use and stored them in a private repository on Hugging Face, a site for sharing AI models and data. They came from requests to MiniMax M3, GLM-5.2 and Kimi K2.6, mostly sent on 24 June and 4, 8 and 14 July 2026.

While Together was building xorl, a public project on GitHub, an AI coding agent committed a credential that opened that repository. Automated scanning caught it and the commit was reverted. The notice does not say when this happened or how long the key was visible.

It was long enough. The intruder downloaded the samples, searched them for keys to other services and tested whether those worked. How much access a coding agent gets is a question we raised when DeepSeek released a coding agent that runs with full access.

The bait in the prompts

Five of the keys the intruder tried were canaries, fake credentials that alert their owner the moment anyone uses them. They belonged to an experiment by the security company Dragos.

In a report published on 19 November, Dragos research chief HD Moore says his team sent about two million prompts laced with canaries to AI services. The test ran from July through November 2026. It saw evidence that data from at least three AI providers was exposed.

In two of those breaches, some stolen requests carried the zero data retention flag, a setting that promises the prompt and answer are not stored. Dragos’s point is blunt: a privacy flag does not help once an attacker is inside. It also warns that AI agents “will happily send whatever they can read, including credentials.” Earlier this month, an intruder swapped a hosted DeepSeek model at Prime Intellect for 53 hours.

What changed after

Together says it now uses short-lived credentials, checks every pull request for secrets and has new rules for AI coding agents. Zero data retention is now the default for new accounts. It is working with a forensic firm and law enforcement and will contact affected customers directly where needed.

The notice does not say how many customers were affected, or whether the sampled requests had zero data retention switched on.

OpenRouter passes each request to one of many providers hosting a model. On 22 November it said it had removed three providers and pulled 125 endpoints from its zero data retention list. Some removals were a precaution. It names none of the three and says its own systems were not breached.

Together told BleepingComputer it was not removed and that “OpenRouter had forgotten to turn on ZDR for their traffic.” OpenRouter’s post does not address that, and we could not confirm it independently.

Another provider, Novita, says a routing mistake sent some MiniMax requests to MiniMax’s own API between 28 May and 11 November, including traffic from OpenRouter. It suspended the affected models.

What to do this week

Start with your secrets. If you used those three models on Together in June or July, or MiniMax on Novita between 28 May and 11 November, rotate any key or password that sat in your prompts. Then check that zero data retention is on, and which providers your router actually uses.

Before customer data goes in, run through our checklist for customer data in AI tools. If your team uses coding agents, scan every commit for secrets.

Sources

Martin Scott

Martin Scott is the editor for business and policy at AI Observer, covering startups and deals, regulation, health and science, and AI agency profiles. He follows the money and the legal text, and separates what a rule says from what people claim it says. His style is analytical and plain-spoken.

Spotted a mistake? Tell us on the corrections page.

Conversation

Every comment is reviewed before it appears, so there can be a short delay.