twimco.Let’s talk ↗︎
Menu
Field notes / AI in practice

A coding agent leaked the key to Together AI's stored prompts. Check your account, then your own agents

If your product sent prompts to Together AI this summer, a stranger may have downloaded some of them. How it happened is the part every team letting an agent write code should read twice.

A developer's coding assistant arm pins a studio key to a public hallway noticeboard while a colleague reaches to pull it down and a passer-by in the hallway has already copied it.

If you called MiniMax M3, GLM-5.2 or Kimi K2.6 on Together AI's serverless API in June or July 2026, treat any secret that sat in those prompts as exposed: revoke it, turn on zero data retention, and watch for Together's direct notice. Then make sure your own coding agents can't commit a live key.

Two stories in one notice

On Friday, November 21, Together AI posted a security notice that reads like two separate stories.

The first one is about customers. Someone outside the company downloaded a set of stored prompt samples from Together's serverless inference service, taken from requests made in June and July 2026. If your product sends prompts to Together, you need to know whether yours were in that set.

The second one is about how it happened. An AI coding agent, helping build one of Together's public GitHub projects, committed a credential. That credential opened the private store where the samples lived.

The second story applies to far more teams than the first. Plenty of companies have never sent a prompt to Together. Lots of them now have an agent writing code in a repository that holds, or can reach, a live key. So this note covers both: what to check if you're a Together customer, and what to change if you let agents commit code.

What happened, link by link

Here's the chain as Together describes it.

Together collected prompt samples for routine software testing and kept them in a private Hugging Face repository. The samples came from requests to three models, MiniMax M3, GLM-5.2 and Kimi K2.6, mostly from June 24 and July 4, 8 and 14, 2026.

While its engineers were building a public GitHub repository called xorl, an AI coding agent committed a credential that could open that private repository. Together's automated scanning caught it, and the commit was reverted. But in the window between the commit going public and the revert, someone grabbed the credential and used it to download the samples.

Then they did what you'd expect. They searched the prompts for credentials to other services and tested whether those worked. Five of the credentials they tried were canaries planted for a Dragos security experiment. That's how we know the downloader wasn't just curious. They were looking for keys to use.

Together says it has worked with an outside forensic firm and law enforcement, has found no sign of other prompt leaks, and is still reviewing what personal or customer data was in the samples. It says it will contact affected customers directly. The notice doesn't say how long the credential was public before the revert, so nobody outside Together knows yet.

How the work moves

One commit to your prompts, link by link

  1. Agent commits a key

    An AI coding agent working on the public xorl repo commits a credential.

  2. Scanner flags it

    Together's automated scanning catches it and the commit is reverted.

  3. Key is copied

    During the window, an outside party takes the credential.

  4. Store is opened

    They download June and July prompt samples from a private Hugging Face repo.

  5. Prompts are mined

    They search the prompts for other credentials and test them, including five Dragos canaries.

Sequence as described in Together AI's November 21, 2026 notice. How long the key was public was not disclosed.
Reverting a commit hides a key. Only revoking it makes the key useless.

If you send prompts to Together, check four things

1. Did you call those models in those weeks? Look at your Together usage, or your own request logs, filtered by model and date. You're looking for MiniMax M3, GLM-5.2 or Kimi K2.6 on the serverless API around late June and early-to-mid July. If you reach Together through a router or a fallback setting, check which provider actually served each request. Routing hides this more often than people expect, as the OpenRouter MiniMax note covered.

2. Was zero data retention on? Together says the samples were ones it was permitted to keep for testing. That points at your account's data settings, not only the model you called. Zero data retention is now the default for new accounts. If yours is older, open the settings and turn it on today, since Together itself recommends that for anyone with sensitive prompts.

3. What was sitting in those prompts? Think past the user's message. System prompts sometimes carry API keys. Agents paste tool output, and tool output carries tokens. Retrieval pulls in documents. Debugging sessions pull in logs. The downloader went looking for credentials, so any secret that might have been in a prompt back then should be revoked now, not after Together's email shows up. If you need a plan for doing that without breaking production, the rotation cutover note walks through it.

4. What personal data could have been in there? Write down the kinds, such as names, emails, order details or health questions, so you and your counsel aren't starting from zero when the direct notice arrives.

The part that isn't about Together

Nothing in the notice suggests the agent did anything strange. It did what agents do. It worked inside a folder that could reach a live credential, and it committed what was in front of it.

People have committed keys by accident for as long as there's been version control. Agents change the odds in two ways. They commit more often and faster than a person does. And the person reviewing a machine-written diff tends to skim it, because the point of the agent was to not read every line.

Look at the timing, too. Together had scanning, and it worked. It flagged the key, and the team reverted the commit. They still lost the race. On a public repository, people run bots that watch new commits for secrets, and the window that matters is short.

So "we scan for secrets" doesn't answer the question. What matters is whether a live key can get into the agent's commit at all, and what that key opens if it does.

Fence the agent before it touches a repo

None of this needs a new product. It's mostly setup you do once.

  • Keep live keys out of the agent's workspace. Give the agent development-only keys with narrow permissions, or none at all. When a task truly needs a real credential, inject it at run time from a secrets manager instead of leaving it in a file the agent can read. We made the same point in the Claude Code cloud environments review: the tool's value depends on whether secrets stay outside the agent's machine.
  • Block on the way in, not only after. A pre-commit hook that scans for secrets stops the commit on the laptop. Push protection on your Git host stops the push. Scanning after the push is your backup, not your plan.
  • Make keys expire or open one thing. Short-lived or scoped credentials, which Together now says it uses, turn a leaked key into a smaller problem.
  • When a scanner fires, revoke first. Revoke the key where it was issued, then revert the commit, then read the access logs for the window it was public. Reverting alone leaves a working key in someone else's hands.
  • Treat test copies of customer data like production. Together's samples sat in a development store that one developer credential could open. If your team keeps real prompts or real orders around for testing, they need the same access rules as the live system.

Decision guide

After a leaked key: feels done vs is done

ConsiderationFeels doneIs done
The commitCommit revertedKey revoked where it was issued
The alertScanner alert closedAccess logs read for the whole exposure window
The replacementNew key issuedOld key tested and confirmed dead
The vendor's dataVendor says the copy was deletedSecrets that were in your prompts revoked by you
RetentionZero data retention is the default for new accountsZero data retention switched on for your existing account
Decision framework: check each row against your own setup.

If you'd like a second pair of eyes

Most teams can work through the Together checks in an afternoon. The agent setup takes a bit longer, because it means finding every place a key lives and every agent that can see it.

If you're building AI features, or you're giving coding agents more of your codebase and want the guardrails in place first, that's work we do. See AI applications and agents, or get in touch and tell us what your agents can reach today.

twimco.

We build alongside the people doing the work.
Bring us the problem you’re thinking about.