If you sent secrets in prompts to MiniMax M3, GLM-5.2 or Kimi K2.6 on Together AI in June or July 2026, rotate them, and turn on zero data retention

Together AI: an AI coding agent committed a Hugging Face credential, and stored customer prompt samples were downloaded · Security incident · Together AI blog · togethercompute · Nov 21, 2026

What happened

On 21 Nov 2026 Together AI disclosed that, while developing its public GitHub repo xorl, an AI coding agent committed a credential for a private Hugging Face repository. That repository held prompt samples from serverless requests to MiniMax M3, GLM-5.2 and Kimi K2.6, mainly from 24 June and 4, 8 and 14 July 2026. Automated scanning caught the commit and it was reverted, but during the exposure window someone took the credential, downloaded the samples, searched them for credentials to other services and tested them. Five of those were Dragos canary credentials. Together AI says it now uses scoped or short-lived credentials, checks every pull request for credentials and makes zero data retention the default for new accounts.

How to prevent it

Run a secret scanner as a pre-commit hook and in CI so an agent's commit is blocked before it reaches a public repo, give agents scoped short-lived tokens instead of long-lived ones, and never paste real keys or passwords into prompts.

Fix prompt for your own AI tool

Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.

I'm a beginner and want to make sure my API keys are safe in my Together AI project. 1) Search the code for hardcoded keys or tokens and for secrets in variables that ship to the browser (NEXT_PUBLIC_, VITE_, REACT_APP_). List the file and line, but don't print the values. 2) For each one, tell me whether it's meant to be public (like a Supabase anon key) or secret. 3) For secret ones, show me how to move them to server-side env vars and call the provider through a server route. 4) Give me the steps to rotate each exposed key in the provider's dashboard and set a spending limit. 5) Make sure .env is in .gitignore and in my AI tool's ignore file. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.

Why this keeps happening: leaked secrets & api keys

Secret keys placed in front-end code, mobile bundles or public repositories can be found by automated scanners and abused, often running up large bills on AI or cloud accounts before anyone notices.

A quick checklist before you ship

More on this: every leaked secrets & api keys story and our related guide.

Tools involved

Together AI stories, Hugging Face stories

Related stories

Source: original post on Together AI blog ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.