Brief · Both
An AI coding agent committed Together AI's key, and reverting the commit didn't save it
Together AI, which sells AI inference and hosts open models, said on Nov 21 that someone downloaded stored samples of customer prompts after "an AI coding agent committed a credential" to one of its public GitHub repositories. Together's scanner caught the key and the commit was reverted. That didn't help, because the unauthorized party had already taken the key during the exposure window and used it. The lesson for anyone letting an agent commit code is short: once a key has been pushed, rotate it first and clean up second.
What Together says happened
Together kept prompt samples for routine software testing in a private Hugging Face repository. They came from requests to its serverless inference service for three models, MiniMax M3, GLM-5.2 and Kimi K2.6, mostly on June 24 and July 4, 8 and 14. While working on xorl, a public Together repo on GitHub, a coding agent committed a credential that could read that private repository.
During the exposure window, which Together doesn't put a length on, an unauthorized party got the credential and downloaded the samples. Then it searched them for credentials to other services and tested whether they worked. Five of the credentials it tested were canaries from a Dragos security experiment. Dragos also comes up in OpenRouter's own Nov 22 incident post, which thanks Dragos for its report and lists Together's notice among the provider announcements (more in the OpenRouter brief).
Together says it has worked with an outside forensics firm and law enforcement, hasn't found evidence of other prompt leakage, and is still reviewing the samples to see whether personal information or other customer data was in them. It'll contact affected customers directly as needed.
Why the revert didn't count
A revert adds a new commit on top. The old one, with the key in it, is still in the history, and anyone who fetched or cached the repo before the revert already has it. GitHub's own guide to removing sensitive data says that for a password, token or credential, "as a first step you need to revoke and/or rotate that secret," and that once it's rotated, rewriting history may not even be needed.
None of this is new. Keys leaked to public GitHub get found and used fast, as the ARTEX case showed. And a key you handed to someone else's system is only as safe as that system, which is the story of the OpenCode legacy-system leak. The new part here is who made the commit. I'd assume a coding agent will commit whatever is in its reach unless something stops it at the commit.
Together says it has moved to scoped or short-lived credentials (and keyless access where supported), checks every pull request for credentials, made zero data retention (ZDR) the default for new accounts, and updated its rules for using AI coding agents.
What to do
-
If you're a Together customer, turn on ZDR yourself.
- Why: Together made ZDR the default for new accounts only. Its advice to customers handling sensitive prompt data is to enable it in account settings.
- How: Turn on zero data retention in your Together account settings, and email security@together.ai if you have questions about your exposure.
-
Rotate any secret you sent to those three models in June or July.
- Why: My advice, not Together's: the party that took the samples went looking for credentials inside them and tried them. If a key was in a prompt, assume someone tried it.
- How: If your apps or agents sent requests to MiniMax M3, GLM-5.2 or Kimi K2.6 on Together's serverless service in June or July, rotate every API key, token or password that could have been in those prompts, then check those accounts for activity you don't recognize. This is the same advice as item 1 of the Builder's Checklist: keep keys out of prompts in the first place.
-
When a key gets committed, rotate it before you revert.
- Why: Reverting or deleting the line leaves the key in the history and in every copy already pulled. Rotating is the only step that makes it useless.
- How: Revoke or rotate the key first, then clean up the repo. After that, look at the service's logs for anything the key did while it was out. Item 1 says the same: if a key ever touched a commit, rotate it.
-
Stop agent commits at the push, and give agents short-lived keys.
- Why: The agent committed what was in its reach. A scanner that catches the key after it's public is already too late.
- How: Turn on GitHub push protection for your repos and add a pre-commit secret scanner like gitleaks, and make sure both apply to commits your agent makes. Give agents scoped, short-lived tokens of their own instead of a long-lived key that reaches your storage (item 2 of the Builder's Checklist, and item 8 of the Business Checklist).
-
Ask your AI providers where test copies of your prompts live.
- Why: These samples sat in a separate repository for testing, outside the serving path, and that's where they leaked from.
- How: In vendor reviews, ask whether prompts are kept for testing or debugging, where those copies are stored and who can reach them, and whether ZDR covers them. Item 6 of the Business Checklist has the rest of the question list.
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.