AIDEFEND in Action AIA-0154 Incident

Together AI Prompt Leak: A Coding Agent Committed a Credential, Then Customer Prompt Samples Were Downloaded

Together AI, a provider of hosted model inference, disclosed on November 21, 2026 that an unauthorized party downloaded stored samples of customer prompts. An AI coding agent had committed a credential to xorl, the company's public GitHub repository, and that credential gave access to a private repository on Hugging Face, the model and dataset hosting platform, where the samples were kept for software testing. While the credential was exposed, the party obtained it, downloaded the samples, searched them for credentials to other services and tested those; five were canary credentials from a Dragos security experiment. Together AI has given no counts, and its review of what the samples contain is still under way.

Credential ExposureCredential GovernanceData GovernanceAI Coding AgentAI Infrastructure
8 applicable AIDEFEND defenses
Source: Security event: Prompt leakage for requests in June and July of 2026 
Author: Vipul Ved Prakash (Together AI)
Original article: Nov 21, 2026

Threat Analysis

  • What was stored, and where. For routine software testing, Together AI collected samples of customer prompts, which it says were authorized for that use, and kept them in a private repository on Hugging Face. The samples came from requests to MiniMax M3, GLM-5.2 and Kimi K2.6 on its serverless inference service, primarily on June 24, July 4, July 8 and July 14, 2026.
  • How the credential became public. xorl is Together AI's public GitHub repository for a distributed training framework for large language models. During its development, an AI coding agent (a tool that writes code for a developer and can commit the changes itself) committed a credential that gave access to the private repository. Automated scanning detected the exposed credential, and Together AI reverted the commit. The notice does not name the agent, explain how the credential got into the commit, or say how long it was exposed.
  • What the unauthorized party did. While the credential was exposed, a party that Together AI does not identify obtained it and downloaded the samples. It then searched them for credentials to other services and tested whether those credentials were valid. Five were canary credentials from a Dragos security experiment: fake credentials placed in prompts so that any use of them shows the prompt has leaked. The notice does not say whether any real credential worked.
  • What is still open. Together AI reports no evidence of prompt leakage beyond this incident, but it gives no counts and is still reviewing whether the samples contain personal or other customer data. Dragos, whose report of November 19, 2026 describes about two million prompts with canary URLs and canary credentials sent to AI services, does not name the providers in its findings. OpenRouter, a service that routes customer requests to many model providers, lists Together AI's notice and says the findings showed no breach or unauthorized access of OpenRouter. It also removed three providers from its platform and withdrew zero data retention (ZDR) eligibility from 125 endpoints, without naming those providers.

Applicable AIDEFEND Defenses (8)

AID-H-031.002
Static Admission Gates for AI-Generated Artifacts
High
Changes written by a coding agent should pass a static check, one that inspects the change without running it, before they reach any branch of the public repository. The check includes a secret scanner's signed result for that exact change and blocks when the result is missing or reports a secret. Together AI's scanner did recognize this credential, but only after the commit was public. On a public repository the check must therefore come before publication: the agent works in a private staging repository and only commits that passed are pushed out. A check at merge time stops the merge, not the exposure.
AID-H-004.002
Service & API Authentication
High
The download worked because one reusable credential could read the private repository from anywhere. Where the store that holds the samples supports it, test jobs should read them with a workload identity, so no static token exists for an agent to write into a commit. Together AI lists keyless access where supported among its changes. The framework example uses AWS EKS Pod Identity; if the store only accepts long-lived tokens, the samples first have to move to storage that supports workload identity. A short-lived credential that leaks still works until it expires.
AID-E-001.001
Root & Long-Lived Credential Object Eviction
High
Reverting the commit removes the credential from the branch, but the credential stays valid and anyone who copied the commit still holds it. Exposure ends only when Together AI revokes the credential at Hugging Face, the service that accepts it, and confirms the old value is rejected. The notice reports the revert and does not say when the credential was revoked. Revocation stops further downloads, not one that has already been completed. Customers have their own part of this work. Any credential that appeared in a prompt sent to MiniMax M3, GLM-5.2 or Kimi K2.6 on Together AI's serverless inference service in June or July 2026 should be revoked at its own issuer and replaced, without waiting for a notification. After that, a test of the old credential fails. Any use before revocation has to be investigated separately.
AID-H-033.003
Region / Data-Zone / Residency / Retention-Constrained Routing
High
A customer cannot control how a provider stores test samples, but it can control which of its requests may be retained. At its own AI gateway, the customer labels request classes that carry sensitive data as zero retention and does not route them to an account or endpoint whose retention profile does not match. Together AI advises customers handling sensitive prompt data to enable zero data retention (ZDR). The control holds only if the provider honors the setting, and the notice does not state outright that requests under ZDR were excluded from this sampling.
AID-H-018.005
Value-Level Capability Metadata & Data Flow Sink Enforcement
High
The party found credentials in the samples because the prompts customers sent already carried them. A customer can add a check at its own model gateway, just before each call to an external provider, that reads the sensitivity label of every part of the prompt and refuses the call when any part is labelled as a secret. A later leak of prompts stored at the provider then contains no usable credential from that customer. The check only recognizes labelled values: a key pasted by a user, or one that sits in an unlabelled file, is still sent.
AID-DV-002
Honey Data, Decoy Artifacts & Canary Tokens for AI
High
Five of the credentials the party tested were Dragos canary credentials. That is clear evidence that prompts stored at the provider had been taken and that someone was trying the credentials inside them. A customer can place its own canary credential, one with no permissions, in the content its agents already send to model providers and treat any use as a security incident. The provider can do the same in its sample stores. This control only detects. If the party never tries the canary, it stays silent.
AID-H-002.001
Training, Fine-Tuning & Evaluation Data Sanitization
Medium
Before sampled prompts are written to a test store, the provider's data pipeline can detect sensitive values and replace them, so the stored samples hold fewer usable credentials. The guidance is written for personal data in training, fine-tuning and evaluation data. Credential formats have to be added as custom recognizers, and the notice says only that these samples were used for routine software testing. Formats the recognizers do not know stay in the samples.
AID-I-004.007
Task-Bounded Context Segmentation & Secret Demotion
Medium
The notice does not say how the credential got into the commit. If the agent could read the raw value at the time, the credential should be kept in a broker outside the agent's session, with the agent receiving only a single-use handle that is useless once consumed. The broker performs the approved download, so the agent holds no usable credential to write into a commit. A raw copy left in a file in the working directory bypasses this control.

What Defenders Should Do Now

  • Customers: revoke the credentials your prompts carried. If your applications or agents sent requests to MiniMax M3, GLM-5.2 or Kimi K2.6 on Together AI's serverless inference service in June or July 2026, list the credentials those prompts may have contained, using gateway logs or the secrets the agent could read at the time. Revoke each one at its issuer, issue a replacement, confirm the old value is rejected, and check the issuer's logs for use from sources you do not recognize. Do this without waiting for an individual notification.
  • Customers: control retention and keep secrets out of prompts. Enable zero data retention on provider accounts that handle sensitive prompts, including existing accounts, because the new default applies only to new ones. Then run two tests on your own gateway. When only an endpoint that retains data is available, a test request labelled sensitive must be refused. When the agent's working directory contains a fake test secret, the model call that would carry it must be blocked.
  • Customers: plant a canary credential. Add a canary credential with no permissions to the content your agents normally send, run a drill that uses it, and confirm the security team receives the alert.
  • Providers, and teams whose coding agents work on public repositories. From the agent's identity, try to push a commit that contains a fake test credential. The test passes only if the commit never reaches the public repository. Also search repositories, images and development environments for static credentials to data stores, move to workload identity or short-lived access where the store supports it, and rehearse revocation so that reverting a commit is never mistaken for revoking a credential.

2 additional considerations

Block secrets at push time on the Git host

The Git hosting platform can inspect a push before it accepts it. For a public repository, this is the last point at which a credential in a known format can be stopped before everyone can see it.
Recommendation: Repository administrators can enable the host's push-time secret blocking for all of the organization's public repositories and for the identities that coding agents use, without letting those identities skip the check on their own. It requires that the host recognizes the credential format, so custom or unusual secrets still pass. To verify it, push a commit that contains a seeded test credential from an agent identity and confirm the host rejects the push.

Give test prompt samples a retention period

Samples of customer prompts kept for software testing are useful to an intruder for as long as they exist. The team that manages the test data decides how long that is.
Recommendation: The provider's data owners can set a retention period for each sample set, delete it from the test store when the test cycle ends, and keep the store's access records for investigation. It requires that tests can draw a fresh sample when they need one. This narrows what a later credential leak can reach. It has no effect while the samples are still within their retention period.

Conclusion

One commit by a coding agent gave an outsider access to a store of customer prompts, and those prompts carried credentials for other services, so the leak extended from data to access. AIDEFEND  maps this chain to defensive techniques for both the provider and the customer. For the provider: a static check on agent-written changes before they become public, keyless access to data stores, and revoking an exposed credential instead of only removing it from the repository. For the customer: routing that respects retention requirements, a check for secrets before each model call, and canary credentials that reveal a prompt leak.

Last updated: