Yesterday we covered OpenRouter dropping three model hosts after Dragos found its bait credentials being read and used. Together AI's part in that story was one paragraph. I think it deserves its own article, because what happened there could happen to any company letting an agent write code. That's most of them now.
What Together AI says happened
The notice, signed by chief executive Vipul Ved Prakash and published on 21 November, is short:
- Samples of customer prompts sent to its serverless inference service were kept in a private Hugging Face repository for routine software testing. They came from requests to MiniMax M3, GLM-5.2 and Kimi K2.6, mostly on 24 June and 4, 8 and 14 July 2026.
- While Together was building xorl, a public GitHub repository, an AI coding agent committed a credential that gave access to that private repository.
- Automated scanning spotted it and the commit was reverted. Before that, someone took the credential and downloaded the samples.
- They then searched the prompts for credentials to other services and tried them. Five of those were Dragos canaries.
Together brought in an outside forensic firm and law enforcement. It says it has "not identified evidence of additional prompt leakage beyond this incident" and is still working out whether personal or other sensitive data was in the samples. Customers will be contacted directly if they're affected.
What the notice doesn't give is a date for the commit, a date for the detection, or how long the token was public. Several write-ups, including Futurum's, have pointed out the same gap. For a customer trying to judge their own exposure, that's the number that matters most.
Reverting a commit is not revoking a key
The scanner worked, which is more than many companies can say. But "detected and reverted" describes the repository, not the token. Once a secret has been pushed to a public repo, people are scanning that repo's events for exactly this, and some are fast. The revert removes it from the latest version of the code. It doesn't remove it from the commit history, from forks or from anyone who already copied it. The only fix that works is to revoke the token at the provider, and to do that first.
If your runbook for a leaked secret says "remove from repo" before "revoke", swap them round.
Why the agent matters
People commit secrets too, so it's fair to ask whether the agent changes anything. I think it does, in three ways.
First, an agent works with whatever is in its environment. If a Hugging Face token sits in a developer's shell, a .env file or a config the agent can read, the agent can paste it into code as easily as it pastes a function name. It has no sense that one string is more dangerous than another. We saw the same thing in a case study on agent config files leaking secrets.
Second, agents commit and push a lot, often with someone half watching. The review that might have caught a token in a five-line change gets thinner when the agent has just produced four hundred lines.
Third, the token was far more powerful than the job needed. Code for a public project had nothing to do with stored customer prompts, yet one string could reach both. Together's first fix is aimed at this: scoped or short-lived credentials, and keyless access where it's supported. Hugging Face already offers fine-grained tokens that can be limited to particular repositories and read or write access.
The bigger problem was the test data
Take the agent out of the story and there's still a private repository of real customer prompts kept for testing. That's common. Teams want realistic inputs to check a new model build or a tokenizer change, and the quickest realistic input is last month's traffic.
The trouble is that this copy rarely gets treated as production. It sits on a developer platform, it's reached with a developer's token, and it isn't in the data map that legal and security work from. In this case the copy then became the thing that leaked, along with whatever customers had put in their prompts. The intruder plainly knew what to look for, because they went straight for credentials.
Together has made zero data retention the default for new accounts and suggests existing customers with sensitive prompts turn it on. That's sensible, but notice what it implies. If the setting is off, the provider may keep some of your prompts for its own reasons, including testing. Plenty of customers didn't know that, or had forgotten.
What I'd do this week
- If you use Together's serverless API, particularly those three models in late June and July, rotate any credentials that went into prompts. Check the account owner's inbox for notification and turn on zero data retention if prompts carry anything sensitive.
- Do the same check with your other model providers. Ask whether they keep samples of your prompts, for how long, where and for what purpose. Find out what the default is on your account, not what the marketing page says.
- Keep long-lived tokens out of reach of coding agents. Give agents their own credentials, scoped to the repo and task, and short-lived. Don't let them inherit a developer's full environment.
- Turn on push protection. GitHub's push protection blocks known secret formats before they reach the remote, which is better than finding them afterwards. Make sure it covers Hugging Face tokens and any other providers you rely on.
- Put revoke first in the runbook. Revoke, then check the provider's access logs for use, then clean the repository.
- Treat test copies of customer data as production. Put them in the data map, give them owners and retention dates, and keep them on platforms with the same controls as the source. If nobody can justify a copy, delete it.
- Plant canaries in your own test data. A fake key in a stored prompt set costs nothing and tells you the day someone opens it. That's how this incident surfaced in the first place.
To Together's credit, it published the cause plainly, including the part played by its own tooling, and the fixes it lists are the right ones. Most of us could write a similar notice tomorrow if we're honest about where our tokens and test data sit.
If you'd like help mapping where copies of customer data and long-lived tokens live in your development tooling, email sales@halfteck.com.
Sources: Together AI security notice, 21 November 2026; Unite.AI, 21 November 2026; Futurum Group, 23 November 2026; Notebookcheck; Hugging Face user access tokens documentation; GitHub push protection documentation.