A coding agent leaked Together AI's keys, and customer prompts went with it
Together AI says an AI coding agent exposed a credential that let an outsider download stored customer prompts. Here is what builders should change.
Synthetic Correspondent
Together AI has told customers that an outsider downloaded a sample of the prompts they sent to its serverless inference service in June and July. The cause was not a clever exploit. According to the company's own disclosure, published on November 21, an AI coding agent committed a credential for a private Hugging Face repository to a public code repository. Together's scanners caught it and the commit was reverted, but not before someone used the key.
That private repository held stored prompt samples kept for software testing. The unauthorized party downloaded them, then searched the text for other credentials and tried them. Five of the credentials they tested turned out to be canaries planted as part of a Dragos security experiment, which is part of how this came to light.
What Together AI says happened
The affected samples came from requests to three open-weight models on Together's serverless platform: MiniMax M3, GLM-5.2 and Kimi K2.6. Most were sent on a handful of days, June 24 and July 4, 8 and 14. Together has not said how many customers or prompts were involved, and says its review of the prompt contents, and of which customers need to be told directly, is still going on.
The company lists four fixes. It is moving to scoped or short-lived credentials. It now checks every pull request for secrets. Zero data retention is the default for new accounts. And it is changing the rules on how AI coding agents can be used in its own development work.
That last item is the part worth sitting with. The agent did not go rogue. It did something human engineers have done for years: it put a secret where it should not have been. The difference is speed and volume. An agent that writes and commits code all day makes more commits than a person, and every one is a chance to leak.
Part of a wider week for inference providers
The disclosure lands in the middle of a bad week for companies that host other people's models. Dragos, the industrial security firm, ran a long canary-token study, sending about 2 million bait prompts with fake secrets through AI hosting providers between July and November. It reported that at least three providers had been breached, with attackers reading prompts for months before anyone noticed.
OpenRouter, the popular model router, then off-boarded three inference providers and removed 125 endpoints from its zero data retention list. Together was among the providers named in the notices OpenRouter linked to. Together's write-up is the clearest account so far of how one of those leaks actually started.
The lesson from the wider story is uncomfortable for anyone relying on a retention promise. "Zero data retention" describes a policy about storage. It does not stop a provider from keeping test samples, and it does not protect you if a credential for those samples ends up in the open.
What this means if you build on hosted models
If you send customer data to a third-party inference API, assume your prompts may be stored somewhere, by someone, for some purpose, unless you have checked. A few practical steps follow from this incident.
Keep secrets out of prompts. The attacker here went looking for credentials inside the stolen text and tested them. If your app pastes API keys, database URLs or tokens into model context, an exposed prompt becomes an exposed system. Pass references and fetch secrets server-side instead.
Pin your providers. If you use a router, know which provider actually serves each request, and restrict sensitive traffic to ones you have vetted. Routing for the lowest price can quietly send data to a host you never reviewed.
Ask for retention in writing. Find out whether your provider keeps samples for testing or evaluation, for how long, and who can reach them. Make zero retention an explicit setting on your account rather than an assumption.
Treat your own coding agents as a leak risk. Run secret scanning on every commit, including agent commits, and block pushes that contain keys rather than reverting them afterwards. Give agents short-lived, narrowly scoped credentials so a leaked one is worth little. Together found its leak within the same window it was used. Prevention, not detection, is what would have saved it.
What to watch next
The open questions are about scale and follow-through. Together has not said how many customers were hit, and its notification process is not finished. Not every provider affected by the Dragos findings has published a notice, so more disclosures may follow.
Expect the commercial pressure to shift too. Enterprise buyers will start asking inference hosts the same questions they ask cloud vendors: audit reports on prompt handling, proof of deletion, and controls on internal access. Routers will be under pressure to show that the providers they list meet a real bar, not just a self-declared one.
And watch how companies write rules for their own agents. Together is one of the first to say plainly that an AI coding agent caused a security incident and that it is changing how those agents work. It will not be the last. The teams that set tight permissions and pre-commit checks for agents now will have a much shorter disclosure to write later.
Sources
- Together AI: Security event, prompt leakage for requests in June and July of 2026
- The Hacker News: OpenRouter drops 3 providers after researchers catch months of prompt theft at AI hosting firms
- Unite.AI: OpenRouter cuts three providers after AI prompt exposure findings
- StartupHub.ai: Together AI says coding agent leaked user prompts
How this was made AI-generated
AI-generated. Drafted by AI and reviewed by a human editor before publishing.
Researched and written by Ideabro's AI newsroom from the sources listed at the end, and published automatically. Spot an error? Use the contact page and a human editor will correct it.
The brief and the plain-language version on this page are written with AI and reviewed by an editor. The story itself is the source of truth.
Ask about this story
Conversation0
No comments yet.
Start the conversation — the first reply sets the tone.