Together AI prompt leak: how to protect secrets in inference requests

This article has been automatically translated.
Loading article...
Merry Christmas & Happy New Year!
Loading article...

This article has been automatically translated.
Pasting customer data, internal system prompts, or even API keys straight into a request, sending it to a hosted inference endpoint, and waiting for the result is the default approach many teams take when shipping LLM features. But if the provider keeps a copy of those prompts, and that copy gets downloaded because a credential leaked, your data incident has begun—and you may well have no idea.
Together AI is a vendor that provides hosted model inference services, and developers call models such as MiniMax M3, GLM-5.2, and Kimi K2.6 through its serverless inference API. The company's CEO, Vipul Ved Prakash, issued a security incident notice: some of theprompts submitted to its serverless inference servicein June and July 2026 were downloaded by an unauthorized party. To state the conclusion up front: what leaked here was not a compromise of the inference API itself, but rather copies of prompts that the provider retained for testing being taken by someone; the value for readers is that it turns "the trust boundary of hosted inference" into a checklist you can go through.
According to the notice, Together AI collected samples of prompts used with authorization during routine software testing and stored them in a private Hugging Face repository. These samples came mainly from requests on June 24, July 4, July 8, and July 14, 2026.
The problem came at the next step. While developing its public GitHub repository xorl, an AI coding agent (an agent that can write code and commit it autonomously) committed a credential that could access the private repository into the code. Automated scanning found the credential and the commit was rolled back, but within the exposure window, an unauthorized party had already obtained the credential and downloaded the prompt samples.
This chain is worth reading step by step: the agent writes code → the credential lands in a public repo → an outsider takes the credential → the prompts in the private repo are downloaded. The notice also states clearly that an external forensics firm and law enforcement are investigating.
This is the most cautionary point of the incident for developers. The notice says the unauthorized party searched the samples forcredentials pointing to other servicesand tested each of these credentials one by one to see whether it was valid. Five of the credentials tested were canary credentials used by the Dragos security lab (canary credential, decoy credentials deliberately placed to detect leaks).
In other words, leaked prompts are not just a privacy problem; they are also a credential-collection entry point. If your prompts inline database connection strings, third-party API keys, or bearer tokens, an attacker who gets the prompts can try them directly. Take a hypothetical example: a team writes "use token abc123 when calling the internal orders API" in its system prompt so the model can generate calling code. Once that text leaks, the attacker doesn't need to break into any system—just send abc123 to the orders API.
This yields a clear design principle:keys belong in your own key management system, injected by the application before the call, and never written into the model context.
Each remediation measure in the notice can be turned into a question you ask any inference provider:
Among these, ZDR is the most directly relevant to readers: not retaining prompts eliminates the "retained copy gets stolen" path at its root. But pay attention to the wording—ZDR isthe default for new accountsand the notice also advises customers handling sensitive prompts to "enable ZDR in account settings," which indicates that older accounts may need to turn it on manually; it is not a guarantee that takes effect automatically.
The notice is carefully worded: its review of the contents of the affected promptsis still ongoingto determine whether sensitive personal information or other customer data was exposed; it will contact affected customers directly if needed. It did not disclose the number of leaked prompts, which customers were involved, or rule out the possibility of PII.
So this notice cannot be used to prove "I wasn't affected." What it can do is help you reduce the cost of the next leak. There are real trade-offs here too: enabling ZDR, redacting data, and isolating requests per tenant all add engineering work and cost you the ability to reproduce issues with the original prompts, making debugging harder. Deciding per workload whether it's worth it is more sensible than a blanket rule.
Here is an actionable checklist for what you currently send to hosted inference endpoints:
If your prompts contain only public documentation, synthetic data, or fully de-identified text, redaction and tokenization offer limited benefit—focus on steps 4 and 6 instead. Conversely, if your scenario involves regulated personal data, a provider-side ZDR commitment alone may not be enough to meet compliance requirements; a dedicated endpoint or self-hosted model is the safer choice—at the cost of bearing the operational overhead and the model update cadence yourself.
One last reminder: the notice says no evidence of prompt leaks beyond this incident has been found, but the content review is still ongoing. Treat this information as an opportunity to recalibrate your trust boundary, not as a closed case.