Most engineering teams now let AI coding agents write and commit code. That saves time, and it also means a piece of software is now making decisions about what goes into your repositories. A security notice from Together AI, an AI inference provider, shows what can follow when one of those decisions is wrong.

What happened

Together AI runs open-weight AI models for other companies through a serverless inference service. In a notice published in November 2026, titled "Security event: Prompt leakage for requests in June and July of 2026", the company described the following chain of events. Trade press, including Unite.ai, reported the same details.

  • An AI coding agent working on xorl, one of Together AI's public GitHub repositories, committed a credential to that repository.
  • The credential gave access to a private repository on Hugging Face. That private repository held samples of prompts sent to its service, collected for routine software testing.
  • The samples came from requests to three models, MiniMax M3, GLM-5.2 and Kimi K2.6, mainly on 24 June, 4 July, 8 July and 14 July 2026.
  • Together AI's automated scanning caught the exposed credential and the commit was reverted. Even so, an unauthorised party used it to download the stored prompt samples.
  • The intruder searched the samples for credentials to other services and tested whether they worked. Five of the credentials tested were canaries planted by the security firm Dragos as part of a research experiment.

Together AI said it worked with an external forensic firm and law enforcement, and that it had found no evidence of other prompt leakage beyond this incident. Its review of whether sensitive personal information was exposed was still running when it published the notice.

The company listed its fixes: scoped or short-lived credentials and keyless access where supported, credential checks on every pull request, zero data retention as the default for new accounts, and updated development processes for AI coding agents. It advised customers who handle sensitive data to turn zero data retention on.

The canaries came from wider research. The Hacker News reported that Dragos sent prompts containing unique links and fake credentials to AI providers over several months and watched for anyone using them. It reported that this found three breached providers and prompts that were copied even when marked zero data retention, and that the AI router OpenRouter removed three providers in response. Dragos and OpenRouter have not named those providers, and I am not linking them to Together AI.

What it means for leadership teams at mid-size companies

The cause here was not a clever attack. It was an ordinary mistake, a secret in a commit, made by an AI agent instead of a person. Three points apply well beyond Together AI.

Coding agents make the same mistakes as people, faster. An agent with access to your environment and your repositories can read a key from a config file and write it into code, a test or a log. If your secret checks only run at the end, or only on code a person wrote, the agent can get around them without meaning to.

Prompts carry secrets. The intruder went straight for credentials inside the prompts. People paste API keys, connection strings, customer records and contract text into AI tools every day. A store of prompts is a store of whatever your staff and customers typed, and it should be protected like one.

Test data copied from production is still production data. The prompts here were kept for testing. Copying real requests into a test set or a shared repository is common, and it creates a second copy with weaker protection than the first.

What to do this quarter

None of this needs new tools for most teams. It needs the rules you already have to cover agents.

  1. Write down what your coding agents may touch. Decide which repositories, environments and credentials each agent can reach, and give it its own narrowly scoped, short-lived credentials rather than a developer's.
  2. Scan every commit and pull request for secrets. Run secret scanning before code reaches a shared or public repository, block the merge when it finds something, and treat agent commits exactly like human ones.
  3. Keep real secrets out of agent context. Use a secrets manager and environment injection so keys are not sitting in files an agent will read and copy.
  4. Treat prompts as sensitive data. Decide where prompts and outputs are stored, for how long, and who can read them. Tell staff not to paste credentials into AI tools, and rotate any key that has been pasted.
  5. Stop copying raw production prompts into test sets. Use synthetic or masked data for testing and evaluation. If you need real samples, keep them in systems you control with the same access rules as production.
  6. Check your providers' retention settings. Confirm zero data retention is switched on where you need it and ask what it covers. Then review keys and the incident plan as you would for any AI supplier.

Where I can help

Setting rules for AI agents in an engineering team is a normal part of my Fractional AI Lead and Advisory service, where I review architecture, tooling and vendors with your team on a monthly retainer. If you are building agent systems of your own, Production AI Delivery covers how they handle credentials and data from the first release. For the supplier side of the same problem, see my notes on the Fireworks AI breach and AI vendor risk.

Sources