# Together AI: An AI coding agent committed a secret to public GitHub and leaked customer prompts

- **Canonical URL:** https://breachidents.com/incidents/together-ai-nov-2026-coding-agent-xorl-prompt-leak
- **Organization:** Together AI
- **Incident date:** Jun 24–Jul 14, 2026
- **Disclosed / updated:** Nov 21, 2026
- **Category:** Leaked cloud key
- **Primary source:** Together AI (Vipul Ved Prakash), Dragos Canary Research, and Public xorl Repo Audit (https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026)

## In 30 seconds

- **How they got in:** AI coding agent committed a live repo key to public GitHub xorl; revert left an exposure window _[Confirmed]_
- **What leaked / reached:** Private Hugging Face testing repo holding June 24, July 4, July 8, and July 14 prompt samples from MiniMax M3, GLM-5.2, and Kimi K2.6
- **What stayed safe:** No other prompt leakage found; Zero Data Retention is now the default for all new accounts

## Summary

On November 21, 2026, Together AI CEO Vipul Ved Prakash disclosed that customer prompt samples collected for routine software testing in June and July 2026 were downloaded by an unauthorized party after an AI coding agent committed a private repository credential into Together AI’s public GitHub repository, xorl. Automated scanning detected the leaked credential and Together AI reverted the commit, but an attacker harvested the key during the exposure window, pulled prompt samples from MiniMax M3, GLM-5.2, and Kimi K2.6 serverless inference traffic out of a private Hugging Face repository, and mined the text for third-party secrets, tripping five canary tokens planted by industrial security firm Dragos. Passive inspection of xorl’s public repository on December 4 reveals a concrete engineering blind spot: xorl already runs pre-commit hooks and a custom internal-reference scrubber that explicitly mentions AI coding assistants and Hugging Face mirrors, yet relies on a PEM-only private-key hook with zero API-token or entropy scanning.

## Attack sequence

1. **After Jul 14, 2026 — AI coding agent commits private repo credential to public GitHub xorl:** During development of the public GitHub repository togethercomputer/xorl, an AI coding agent commits a live credential granting access to Together AI’s private Hugging Face testing repository.
2. **Exposure window — Scanner reverts commit while attacker grabs credential before revocation:** Automated scanning flags the secret and Together AI reverts the commit, but an unauthorized party captures the credential during the exposure window and authenticates to the private Hugging Face repo.
3. **Jul–Nov 2026 — Attacker downloads June and July prompt samples and extracts secrets:** The attacker downloads prompt samples from MiniMax M3, GLM-5.2, and Kimi K2.6 serverless requests (primarily June 24, July 4, July 8, and July 14) and parses them for embedded credentials.
4. **Nov 19–21, 2026 — Five Dragos canary tokens trip; Together AI CEO discloses breach:** Testing of extracted credentials triggers five canary tokens from Dragos’s inference-provider study (published Nov 19), and CEO Vipul Ved Prakash publishes the full security notice on November 21.

## How they got in

Most credential leaks on GitHub still start with a tired engineer running git add dot at midnight. Together AI’s November 21, 2026 disclosure puts a new face on that mistake, and inspecting the public repository involved shows the exact guardrail gap that let it happen.

According to CEO and co-founder Vipul Ved Prakash, Together AI collected a subset of serverless inference prompt samples authorized for routine software testing and stored them inside a private Hugging Face repository. During development of Together AI’s public GitHub repository, togethercomputer/xorl (a Python distributed RL and fine-tuning framework created in March 2026 for post-training and model shaping), an AI coding agent committed a live credential granting access to that private Hugging Face repository.

Looking directly at xorl’s public repository configuration on December 4 explains why local developer checks did not stop the commit cold. Together AI engineers clearly thought about open-sourcing leaks and AI coding tools: xorl includes a custom pre-commit script, scripts/check_public_tree.py, that blocks tracked files mentioning internal Kubernetes clusters (.svc.cluster.local), internal scheduling queues (team: shaping), private Hugging Face mirror paths (/shared/huggingface), and even authoring-assistant strings (claude, anthropic, copilot). Yet .pre-commit-config.yaml relies solely on pre-commit-hooks’s detect-private-key hook for secret detection, which only matches PEM and SSH private-key headers and is completely blind to Hugging Face API tokens (hf_ prefixes), cloud keys, or .env bearer credentials. On top of that, .github/workflows/lint.yml runs only on pull_request and workflow_dispatch, with no gitleaks or trufflehog step.

### Working theories _[Inferred]_

> Together AI confirmed that an AI coding agent committed a live Hugging Face credential into `xorl` and that the team reverted the commit, but withheld the commit hash, coding agent, credential format, and revocation delay. Both mechanisms below explain how the leak slipped past local checks and stayed usable long enough to empty the dataset, and both remain inferred.

#### Theory 1: Ambient HF token passed PEM-only hooks and check_public_tree.py _[Inferred]_

An AI coding agent debugging training or calibration code inside a developer shell copied an ambient `HF_TOKEN` or `~/.cache/huggingface/token` into a committed config or helper file. Because `.pre-commit-config.yaml` only checks PEM headers (`detect-private-key`) and `check_public_tree.py` checks path names rather than token prefixes, local checks went green.

Fits these facts:
- `.pre-commit-config.yaml` enables `detect-private-key` (PEM headers only) with no `gitleaks`, `trufflehog`, or `detect-secrets` hook. (Receipt: ta-xorl-code)
- `scripts/check_public_tree.py` explicitly mentions `/shared/huggingface` and AI assistant names (`claude`, `anthropic`, `copilot`), proving coding agents worked on this exact tree without API-token scanning. (Receipt: ta-xorl-code)
- Together AI’s post-incident fixes specifically added pull-request credential checks and new AI coding agent rules. (Receipt: ta-notice)
- **Would prove it:** Git commit reflog or GitHub secret-scanning alert showing an `hf_` token committed inside a helper script or config file authored during an agent session on `xorl`.
- **Would rule it out:** Forensic confirmation that the committed secret was a PEM key bypassed with `--no-verify` rather than an API token that passed `pre-commit` cleanly.

#### Theory 2: Git revert left the blob live until issuer-side Hugging Face revocation _[Inferred]_

Together AI’s notice says automated scanning detected the credential and the team "reverted the commit." In Git, `git revert` adds a follow-up commit that leaves the original secret readable in history and in any GitHub public event-stream scraper until the token is invalidated on Hugging Face itself.

Fits these facts:
- Together AI explicitly describes detecting the secret, reverting the commit, and an unauthorized party still obtaining the credential during the exposure window. (Receipt: ta-notice)
- `.github/workflows/lint.yml` triggers only on `pull_request`, meaning direct pushes or branch pushes hit public GitHub before PR checks ran. (Receipt: ta-xorl-code)
- **Would prove it:** Timestamps showing a gap of minutes or hours between the public GitHub push event, the git revert, and Hugging Face token revocation, matched against HF repo clone logs.
- **Would rule it out:** Logs proving Hugging Face auto-revoked the token within seconds of push and the attacker instead pulled the dataset before the commit ever reached GitHub.

## What it reached

Once inside the private Hugging Face repository, the attacker downloaded stored prompt samples from Together AI’s serverless inference service. Prakash confirmed the samples came from customer requests sent to three open-weight models, MiniMax M3, GLM-5.2, and Kimi K2.6, concentrated primarily on June 24, July 4, July 8, and July 14, 2026.

The attacker did not treat the prompts as raw text to resell. Instead, they mined the downloaded prompt bodies for third-party API keys, cloud secrets, and tokens that developers and coding agents routinely paste into inference requests, then actively tested whether those harvested credentials worked. Five of the credentials the attacker tested turned out to be canary tokens planted by Dragos during its two-million-prompt study of AI inference providers, published November 19, 2026 by Chief Research Officer HD Moore.

Dragos’s technical report shows what happens the moment a prompt archive leaks: attackers first validate harvested AWS keys (in some cases within hours), immediately enumerate S3 buckets, and then sweep AWS Secrets Manager and Systems Manager Parameter Store for secondary credentials. Dragos also noted that canary tokens seeded in July were still triggering replay attempts months later, showing how long leaked prompt corpuses circulate once copied out of a repository.

Together AI has not stated how many customers or prompts sat inside the testing dataset, noting on November 21 that its review of prompt contents is still ongoing to determine whether sensitive personal information or other customer data was exposed and which customers require direct notification.

## What Together AI runs

From customer inference prompts at the top down to public code guardrails and cloud hosting. Yellow shows where the leaked key and prompt dataset sat; white maps public code and infrastructure records; green stayed clean.

### Stored customer prompt samples (Downloaded & mined) _[Confirmed]_

Prompt samples collected for software testing from MiniMax M3, GLM-5.2, and Kimi K2.6 serverless requests on June 24, July 4, July 8, and July 14 were stored in a private repository, downloaded by the attacker, and searched for third-party secrets, tripping five Dragos canary credentials.

Technical details:
- Private Hugging Face repository holding authorized serverless inference prompt samples (Together AI notice, Nov 21).
- Models in scope: `MiniMax M3`, `GLM-5.2`, and `Kimi K2.6`; primary dates `2026-06-24`, `2026-07-04`, `2026-07-08`, and `2026-07-14`.
- Five extracted secrets tested by the attacker matched Dragos inference-provider canary tokens (Dragos study, Nov 19).

### Public developer repository (xorl) (Key committed) _[Confirmed]_

During development of Together AI’s public xorl training repository, an AI coding agent committed a live credential for the private prompt repository. Automated scanning caught it and the team reverted the commit, but the attacker harvested the key during the exposure window.

- Public inspection of xorl’s pre-commit config and custom scrubber script shows it checks PEM private-key headers and internal folder names, not Hugging Face or API tokens. _[Observed]_
- Reverting a commit leaves the secret readable in git history and cloned copies until the credential itself is revoked at the issuer. _[Inferred]_

Technical details:
- Public Python RL/SFT training repo `github.com/togethercomputer/xorl` (created `2026-03-12`, last push `2026-09-05`).
- `.pre-commit-config.yaml` enables `detect-private-key` (PEM headers only) + `scripts/check_public_tree.py` (blocks `/shared/huggingface`, `team: shaping`, and `claude|anthropic|copilot` strings, with zero API-token rules). _[Observed]_
- `.github/workflows/lint.yml` runs on `pull_request` and `workflow_dispatch` only, with no `gitleaks` or `trufflehog` scanner. _[Observed]_

### External hosting, identity, and inference edge (Public records) _[Observed]_

Together AI publishes open-source code on GitHub, stores model and test artifacts on Hugging Face, fronts its public API through Cloudflare, runs internal access on AWS using Zitadel and 1Password SCIM, and routes email on Google Workspace with DMARC set to quarantine.

Services: GitHub, Hugging Face, Cloudflare, AWS, Google Workspace.
Note: Public records show Together AI uses these services. That does not mean any of them were breached.

Technical details:
- **GitHub:** Public repositories including `togethercomputer/xorl`, `xorl-client`, and `xorl-sglang`.
- **Hugging Face:** Private repository storage used for routine inference testing prompt samples (Together AI notice).
- **Cloudflare:** Authoritative DNS (`gail/edward.ns.cloudflare.com`), `api.together.ai` edge (`104.18.37.81`, `172.64.150.175`), and DMARC report receiver.
- **AWS:** Observed `zitadel.access.together.ai` on `elb.us-west-2.amazonaws.com` and `shaping-eks-prod.cloud.together.ai` in CT logs.
- **Google Workspace:** Corporate mail MX (`aspmx.l.google.com`) with `_dmarc.together.ai` at `p=quarantine`.

### Wider inference platform and new accounts (No wider leak) _[Confirmed]_

Together AI and external forensic investigators found no evidence of prompt leakage beyond this testing dataset, and Zero Data Retention is now turned on by default for all new accounts.

Technical details:
- External forensic investigation and law enforcement review found no other prompt leakage (Nov 21 notice).
- Remediations shipped: Zero Data Retention (ZDR) default for new accounts, pull-request secret checks, scoped/short-lived or keyless credentials, and updated AI coding agent workflow rules.

### Not known yet (Not known yet) _[Withheld by vendor]_

- Exact date the AI coding agent committed the credential, how long the exposure window lasted before revocation, and which agent or model wrote the commit.
- Total number of affected customers and prompts, whether sensitive personal information appeared in the samples, and who carried out the secret mining.

_White layer combines public GitHub files, CT logs, and DNS checked Dec 4, 2026 with platforms named in Together AI’s notice. Naming a vendor does not mean that vendor had a security flaw._

## What stayed safe

Together AI engaged an external forensic investigation firm and law enforcement and reported no evidence of additional prompt leakage outside the testing dataset in that private Hugging Face repository. Passive Certificate Transparency checks across 113 active together.ai hostnames also underscore a clean separation between developer code workflows on public GitHub and Together AI’s production identity and inference planes (api.together.ai behind Cloudflare, corporate access on Zitadel over AWS us-west-2 with 1Password SCIM, and dedicated shaping-eks-prod clusters), none of which were reported compromised.

Just as importantly, the remediation list Together AI shipped directly addresses the design flaws that made a single coding-agent slip costly. Together AI changed Zero Data Retention (ZDR) to be the default setting for all new accounts, added mandatory pull-request credential checks, updated internal rules governing AI coding agents, and committed to scoped, short-lived, or keyless credentials where supported. Existing customers handling sensitive prompt payloads were urged to turn on ZDR in their account settings, though Dragos’s broader study serves as a sobering reminder that customers should still plant canary tokens in agent prompts to verify ZDR empirically.

## If you are responding to this

Plain view is for everyone. Responder view is for Engineering teams running AI coding agents on repositories and customers who sent prompts to Together AI in June or July 2026.

### Three things anyone can do

- **Rotate any secret ever pasted into June or July serverless prompts:** If your developers or coding agents sent MiniMax, GLM, or Kimi requests to Together AI in June or July 2026 with raw cloud keys, database passwords, or API tokens in the prompt body, treat those keys as burned and rotate them right away.
- **Turn on Zero Data Retention and test it with a canary key:** Together AI made Zero Data Retention the default only for new accounts. Log into existing inference accounts to switch Zero Data Retention on manually, and seed a fake canary credential in non-production agent traffic so any future prompt leak alerts you immediately.
- **Strip long-lived cloud keys out of AI coding agent shells:** Do not let autonomous coding agents inherit your personal cloud keys or cached model-hub tokens. Run coding agents in stripped dev environments, turn on blocking secret push protection, and always revoke an exposed token at the provider before touching git history.

### In the first hour

1. **Search June 24, July 4, July 8, and July 14 inference logs for `MiniMax M3`, `GLM-5.2`, and `Kimi K2.6` requests containing credentials and rotate every hit:** Together AI confirmed downloaded prompt samples came primarily from those three models on those four dates and were actively mined for live keys.
2. **Audit AWS CloudTrail for unexpected `sts:GetCallerIdentity`, `s3:ListBuckets`, `secretsmanager:ListSecrets`, `ssm:GetParametersByPath`, and Bedrock model-enable calls:** Dragos documented attackers validating harvested AWS prompt keys within hours, sweeping S3 and Secrets Manager, and attempting Bedrock and IAM persistence.
3. **Enable Zero Data Retention (ZDR) on existing Together AI accounts and replace PEM-only pre-commit hooks with `gitleaks` or `trufflehog` plus GitHub Push Protection:** `xorl`’s own `.pre-commit-config.yaml` shows how `detect-private-key` passes API tokens cleanly while ZDR prevents prompt archives from existing at all.
4. **Unset `HF_TOKEN`, `AWS_SECRET_ACCESS_KEY`, and `~/.cache/huggingface/token` inside AI coding agent containers:** Preventing ambient credentials from entering an agent’s filesystem stops accidental commits before git hooks ever run.

### Hunt for it

- **Look in:** AWS CloudTrail (`ListBuckets`, `SecretsManager`, `SSM`, `Bedrock`, and `IAM`)
  - **Signal:** `GetCallerIdentity` followed rapidly by `ListBuckets`, `secretsmanager:GetSecretValue`, `ssm:GetParameters*`, `bedrock:PutFoundationModelEntitlement`, or `iam:CreateUser` from an unrecognized ASN.
  - **A real hit looks like:** A developer or CI AWS key that appeared in a June or July coding-agent prompt suddenly listing S3 buckets or attempting to enable AWS Bedrock models from an external VPS.
  - **Probably noise if:** Routine Terraform plan runs or developer CLI sessions originating from your corporate VPN or known GitHub Actions OIDC roles.
  - **Lead note:** Dragos observed prompt-mined AWS keys replayed from rented servers within hours and still firing months later across July-seeded tokens.
- **Look in:** Git repository pre-commit configs and GitHub Actions workflows
  - **Signal:** Repos relying solely on `detect-private-key` without `gitleaks` / `trufflehog`, CI secret scans scoped only to `pull_request`, or orgs without blocking GitHub Push Protection.
  - **A real hit looks like:** A public repository where an AI coding agent or developer can commit an `hf_` or cloud API token and push it past local hooks without a push-protection block.
  - **Probably noise if:** Fixture test keys explicitly allowlisted inside `.gitleaksignore` or mock unit-test tokens.

> **Security teams using any third-party AI inference router or open-weight model host:** Plant a free Thinkst Canarytoken AWS key inside synthetic agent prompts sent through every inference provider you rely on so unauthorized prompt storage or upstream leaks surface empirically even when a vendor promises Zero Data Retention.

## Primary receipts

### Receipt 1: Together AI CEO security notice (Nov 21, 2026) _[Confirmed]_

- **Shows:** An AI coding agent committed a live Hugging Face credential into public `xorl`, Together AI reverted the commit, and an attacker still downloaded the stored prompt samples and tripped five Dragos canaries.
- **Leaves out:** Which coding agent wrote the commit, the exact commit SHA and timestamp, how long the credential stayed valid before revocation, and how many prompts were downloaded.
- **Source:** Together AI Blog (https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026), saved 2026-12-04T07:34:00Z
- **SHA-256:** `812c16d66f8287fe141f9f3700c64d7ac8f010d46da65f4dcec5612302a8a514`

### Receipt 2: Public xorl pre-commit, scrubber, and CI workflow (commit 4d8c620b) _[Observed]_

- **Shows:** `togethercomputer/xorl` already guarded against AI assistant mentions and `/shared/huggingface` paths, yet relied solely on PEM-only `detect-private-key` with no API-token scanner in pre-commit or CI.
- **Leaves out:** Whether the leaking commit occurred on `main` or a separate branch before commit `4d8c620b`, or what GitHub-side secret scanning alerts fired out of band.
- **Source:** GitHub (togethercomputer/xorl) (https://github.com/togethercomputer/xorl/tree/4d8c620b26ae03ed83f395ecff75cd048f5fc35c), saved 2026-12-04T08:41:00Z

### Receipt 3: Dragos inference-provider canary study (Nov 19, 2026) _[Confirmed]_

- **Shows:** Attackers mining leaked inference prompts move straight from testing stolen keys to S3 listing, Secrets Manager/Parameter Store sweeps, Bedrock abuse, and IAM persistence.
- **Leaves out:** Which specific five canary credentials matched Together AI’s June and July dataset versus the other AI inference providers in Dragos’s two-million-prompt study.
- **Source:** Dragos Research Blog (https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens), saved 2026-12-04T08:38:00Z
- **SHA-256:** `6c18ff78a66b07a32f9a7ce59d9bddd07a470cb61f8d2b93df72d402d8c88813`

### Receipt 4: Certspotter CT hostnames across together.ai (113 names) _[Observed]_

- **Shows:** Together AI’s production API, corporate identity, and model-shaping clusters sit on separate planes from the public GitHub `xorl` code workflow.
- **Leaves out:** Internal IAM bindings between developer workstations and private Hugging Face repositories.
- **Source:** Certspotter CT API (https://api.certspotter.com/v1/issuances?domain=together.ai&include_subdomains=true&expand=dns_names), saved 2026-12-04T08:38:00Z
- **SHA-256:** `a8bb2e5686f9b655b4a2fe66872c757f0ea5222860e8ba3f97f5bdc5d6bf711e`
- **Command:** `curl -sS "https://api.certspotter.com/v1/issuances?domain=together.ai&include_subdomains=true&expand=dns_names" | jq -r '.[].dns_names[]' | sort -u | grep -E '^(api|zitadel\.access|scim\.1password|prometheus\.shaping-eks-prod|datacatalog\.prod|vault\.dev)'`

## Evidence log

| Section | Claim | Evidence state | Source |
| --- | --- | --- | --- |
| How they got in | During development of the public GitHub repository xorl, an AI coding agent committed a credential that granted access to a private Hugging Face repository; automated scanning detected it and Together AI reverted the commit, but an unauthorized party obtained the credential during the exposure window | Confirmed | Together AI CEO security notice (Nov 21, 2026) |
| How they got in | Passive inspection of togethercomputer/xorl on December 4 shows .pre-commit-config.yaml relies on pre-commit-hooks detect-private-key (which only checks PEM/SSH private-key headers, not hf_ API tokens), scripts/check_public_tree.py blocks internal paths like /shared/huggingface and AI assistant names (claude, anthropic, copilot) but has zero secret-token patterns, and .github/workflows/lint.yml runs only on pull_request with no gitleaks or trufflehog step | Observed | Public files in github.com/togethercomputer/xorl (checked Dec 4, 2026) |
| How they got in | Reverting a git commit leaves the exposed credential readable in git history and cloned copies until revoked at the issuer; combined with PEM-only pre-commit hooks, an ambient Hugging Face token in an agent shell or local config file could pass local checks cleanly | Inferred | Git version-control behavior, xorl pre-commit config, and Together AI remediation summary |
| How they got in | Exact commit hash and date, length of the exposure window before revocation, which AI coding agent wrote the commit, credential format, and attacker identity | Withheld by vendor | Withheld by Together AI |
| What it reached | The unauthorized party downloaded stored prompt samples authorized for routine software testing from a private Hugging Face repository, drawn from serverless inference requests to MiniMax M3, GLM-5.2, and Kimi K2.6 models primarily on June 24, July 4, July 8, and July 14, 2026 | Confirmed | Together AI CEO security notice (Nov 21, 2026) |
| What it reached | The attacker searched the downloaded prompt samples for third-party credentials and tested whether they were valid, tripping five canary credentials from Dragos’s two-million-prompt canary study (which documented attackers testing AWS keys, listing S3 buckets, and searching Secrets Manager and Parameter Store) | Confirmed | Together AI security notice (Nov 21, 2026) and Dragos canary research (Nov 19, 2026) |
| What it reached | Total number of affected customers and prompts, and whether sensitive personal data appeared inside the prompt contents (still under ongoing review with direct customer notifications) | Withheld by vendor | Together AI security notice (Nov 21, 2026) |
| What held | External forensics and law enforcement found no evidence of additional prompt leakage outside the incident; Together AI made Zero Data Retention (ZDR) the default for new accounts, added pull-request credential checks, and moved toward scoped, short-lived, and keyless access | Confirmed | Together AI CEO security notice (Nov 21, 2026) |
| Observed public posture | Passive CT and DNS checks on December 4, 2026 show 113 active hostnames under together.ai: api.together.ai on Cloudflare, identity on zitadel.access.together.ai (AWS us-west-2 ELB) and scim.1password.together.ai, model-shaping clusters on shaping-eks-prod.cloud.together.ai, Google Workspace MX, and _dmarc.together.ai at p=quarantine | Observed | Certspotter CT logs and passive DNS (Dec 4, 2026) |

## Indicators of compromise

- **url:** `https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026` (Official November 21, 2026 security notice by Together AI CEO Vipul Ved Prakash detailing the AI coding agent commit on xorl, affected models and dates, and five Dragos canary tokens.)
- **url:** `https://github.com/togethercomputer/xorl/blob/main/.pre-commit-config.yaml` (Public xorl pre-commit configuration inspected Dec 4 showing PEM-only detect-private-key and custom check_public_tree.py without API-token scanning.)
- **url:** `https://github.com/togethercomputer/xorl/blob/main/scripts/check_public_tree.py` (Public xorl internal-reference scrubber explicitly blocking /shared/huggingface and AI assistant strings (claude, anthropic, copilot) while omitting credential-prefix rules.)
- **url:** `https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens` (November 19, 2026 Dragos canary-token study documenting attacker validation of stolen AWS keys, S3 listing, and Secrets Manager enumeration from leaked inference prompts.)

---
Published by [breachidents](https://breachidents.com). Preserve evidence labels (Confirmed / Inferred / Withheld by vendor / Observed) when citing.
