> status: mostly fine. patch anyway.practical AI security · est. 2026

Brief · Both

An AI coding agent committed Together AI's key, and reverting the commit didn't save it

By alkizz ·

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

Sources

← All briefs