Together AI: An AI coding agent committed a secret to public GitHub and leaked customer prompts
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.
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.
Receipt 1, in their wordsConfirmedRead CEO Vipul Ved Prakash’s exact disclosure of the xorl agent commit and Dragos canariesOpenClose
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.
Receipt 2, in public codeObservedInspect the three public xorl files showing PEM-only hooks and PR-only lintingOpenClose
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 1Inferred
Fits these factsAmbient HF token passed PEM-only hooks and check_public_tree.py
An AI coding agent debugging training or calibration code inside a developer shell copied an ambient
Why we think soCloseHF_orTOKEN ~/into a committed config or helper file. Because. cache/ huggingface/ token .only checks PEM headers (pre- commit- config. yaml detect-) andprivate- key check_checks path names rather than token prefixes, local checks went green.public_ tree. py .enablespre- commit- config. yaml detect-(PEM headers only) with noprivate- key gitleaks,trufflehog, ordetect-hook. Receipt 2secrets scripts/explicitly mentionscheck_ public_ tree. py /and AI assistant names (shared/ huggingface claude,anthropic,copilot), proving coding agents worked on this exact tree without API-token scanning. Receipt 2- Together AI’s post-incident fixes specifically added pull-request credential checks and new AI coding agent rules. Receipt 1
What an investigator inside would checkWould prove itGit commit reflog or GitHub secret-scanning alert showing an
hf_token committed inside a helper script or config file authored during an agent session onxorl.Would rule it outForensic confirmation that the committed secret was a PEM key bypassed with
-rather than an API token that passed- no- verify pre-cleanly.commit Theory 2Inferred
Fits these factsGit revert left the blob live until issuer-side Hugging Face revocation
Together AI’s notice says automated scanning detected the credential and the team "reverted the commit." In Git,
Why we think soClosegit revertadds 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.- Together AI explicitly describes detecting the secret, reverting the commit, and an unauthorized party still obtaining the credential during the exposure window. Receipt 1
.triggers only ongithub/ workflows/ lint. yml pull_, meaning direct pushes or branch pushes hit public GitHub before PR checks ran. Receipt 2request
What an investigator inside would checkWould prove itTimestamps 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 outLogs proving Hugging Face auto-revoked the token within seconds of push and the attacker instead pulled the dataset before the commit ever reached GitHub.
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.
AI coding agentPublic GitHub repoAutomated 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.
Public GitHub repoPrivate HF repoThe 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.
Private HF repoPrompts minedTesting 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.
Prompts mined5 Dragos canaries
Figure 1. How the attack unfolded, and what stayed isolated. Select any step or box for details.
What they took
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.
Receipt 3, in their wordsConfirmedRead Dragos’s observed post-theft playbook on credentials mined from AI promptsOpenClose
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.
Hit or went downProbablyPart of the setupStayed safeNot known yet
Top: what people use. Lower down: what it runs on.
Stored customer prompt samples
Downloaded & minedConfirmedPrompt 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.
- Private Hugging Face repository holding authorized serverless inference prompt samples (Together AI notice, Nov 21).
- Models in scope:
MiniMax M3,GLM-, and5. 2 Kimi K2.; primary dates6 2026-,06- 24 2026-,07- 04 2026-, and07- 08 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 committedConfirmedDuring 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
- Public Python RL/SFT training repo
github.(createdcom/ togethercomputer/ xorl 2026-, last push03- 12 2026-).09- 05 .enablespre- commit- config. yaml detect-(PEM headers only) +private- key scripts/(blockscheck_public_tree. py /,shared/ huggingface team: shaping, andclaude|anthropic|copilotstrings, with zero API-token rules). Observed.runs ongithub/ workflows/ lint. yml pull_requestandworkflow_dispatchonly, with nogitleaksortrufflehogscanner. Observed
- Public Python RL/SFT training repo
External hosting, identity, and inference edge
Public recordsObservedTogether 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.
- GitHub
- Hugging Face
- Cloudflare
- AWS
- Google Workspace
Public records show Together AI uses these services. That does not mean any of them were breached.
- GitHub: Public repositories including
togethercomputer/,xorl xorl-, andclient 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.edge (together. ai 104.,18. 37. 81 172.), and DMARC report receiver.64. 150. 175 - AWS: Observed
zitadel.onaccess. together. ai elb.andus- west- 2. amazonaws. com shaping-in CT logs.eks- prod. cloud. together. ai - Google Workspace: Corporate mail MX (
aspmx.) withl. google. com _dmarc.attogether. ai p=quarantine.
Wider inference platform and new accounts
No wider leakConfirmedTogether 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.
- 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
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. How we checked: Inspecting xorl’s public guardrails and Together AI’s cloud footprint.
Inspecting xorl’s public guardrails and Together AI’s cloud footprint
Together AI withheld which AI coding agent wrote the commit, what token format leaked, and how it slipped past local development controls. Passive inspection of the public xorl repository alongside Certificate Transparency and DNS records for together.ai on December 4 reveals how xorl’s leak-prevention hooks actually work and how Together AI separates its API, identity, and model-shaping planes.
Exact leaking commit, agent identity, and revocation delay: Withheld by vendor. Inspecting current files on xorl main and public CT logs shows observable guardrails and architecture as of December 4, not the deleted commit or internal runner logs.
Passive queries against Public GitHub API, Certspotter CT & DNS for togethercomputer/xorl + together.ai on Dec 4, 2026 returned 113 CT hostnames unique names Observed. Probing: none, passive only.
Reading the naming and routing structure shows how the infrastructure is laid out. Here is one example:
prometheus.
prometheus- telemetry
shaping-eks-prod- RL cluster
cloud.together.ai- cloud plane
InferredObserved in Certspotter CT logs on December 4, 2026; mirrors the team: shaping pattern inside xorl/scripts/check_public_tree.py and documents engineering context, not a compromised cluster.
Five core hosting and engineering planes observed across together.ai and togethercomputer/xorl on December 4, 2026.
Observed hosting and infrastructure tokens across 113 CT hostnames names. Pulled Dec 4, 2026.
None of these public records identify which provider or server was breached, and an incident could involve infrastructure that never issued a public certificate under this domain. A few hostnames are still worth a closer look:
github. com/togethercomputer/xorl- What the name says
- Public distributed RL/SFT framework whose pre-commit hooks check PEM keys and internal paths, not API tokens
- What this does not prove
- Which specific commit or AI coding agent leaked the Hugging Face credential
zitadel. access. together. ai- What the name says
- Identity access endpoint CNAME to AWS us-west-2 ELB paired with scim.1password.together.ai
- What this does not prove
- That corporate SSO or Zitadel was involved in the incident
shaping- eks- prod. cloud. together. ai- What the name says
- Production model-shaping Kubernetes cluster matching team shaping rules in xorl
- What this does not prove
- That live EKS training or inference clusters were breached
Reproduce this yourself
Every observation above comes from passive queries against Public GitHub API, Certspotter CT & DNS. No internal host was probed or scanned.
audit-xorl-hooks.shcurl -sS https://raw.githubusercontent.com/togethercomputer/xorl/main/.pre-commit-config.yamlcurl -sS https://raw.githubusercontent.com/togethercomputer/xorl/main/scripts/check_public_tree.pypull-together-ct.shcurl -sS "https://api.certspotter.com/v1/issuances?domain=together.ai&include_subdomains=true&expand=dns_names" \ | jq -r '.[].dns_names[]' | sort -u | wc -l # 113 unique names on Dec 4, 2026dig +short A api.together.ai && dig +short CNAME zitadel.access.together.aiThe public record ends here.
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’re 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.
Showing the plain view
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.
Switch to Responder view for the first hour and what to hunt for.
In the first hour
Hunt for it
- Look in
- AWS CloudTrail (
ListBuckets,SecretsManager,SSM,Bedrock, andIAM) - Signal
GetCallerIdentityfollowed rapidly byListBuckets,secretsmanager:GetSecretValue,ssm:GetParameters*,bedrock:PutFoundationModelEntitlement, oriam:CreateUserfrom an unrecognized ASN. Receipt 3- 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.
Dragos observed prompt-mined AWS keys replayed from rented servers within hours and still firing months later across July-seeded tokens.
audit-agent-env-and-zdr.shFrom the story’s code. Swap in your own values before you run it.
- Look in
- Git repository pre-commit configs and GitHub Actions workflows
- Signal
- Repos relying solely on
detect-withoutprivate- key gitleaks/trufflehog, CI secret scans scoped only topull_, or orgs without blocking GitHub Push Protection. Receipt 2request - 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
.or mock unit-test tokens.gitleaksignore
block-agent-secret-commits.yamlFrom the story’s code. Swap in your own values before you run it.
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.
Appendix
Evidence log and all 4 receipts
| Claim and source | How sure |
|---|---|
| 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 |
| 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 Public files in github.com/togethercomputer/xorl (checked Dec 4, 2026) | Observed |
| 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 Git version-control behavior, xorl pre-commit config, and Together AI remediation summary | Inferred |
| 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 |
| 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 |
| 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) Together AI security notice (Nov 21, 2026) and Dragos canary research (Nov 19, 2026) | Confirmed |
| 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 |
| 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 |
| 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 Certspotter CT logs and passive DNS (Dec 4, 2026) | Observed |
All 4 receipts
Receipt 1, in their wordsConfirmedRead CEO Vipul Ved Prakash’s exact disclosure of the xorl agent commit and Dragos canariesOpenClose
Receipt 2, in public codeObservedInspect the three public xorl files showing PEM-only hooks and PR-only lintingOpenClose
Receipt 3, in their wordsConfirmedRead Dragos’s observed post-theft playbook on credentials mined from AI promptsOpenClose
Receipt 4, what we ranObservedInspect public CT records separating Together AI’s API, identity, and RL shaping planesOpenClose
Indicators of compromise
https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026Official 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.
https://github.com/togethercomputer/xorl/blob/main/.pre-commit-config.yamlPublic xorl pre-commit configuration inspected Dec 4 showing PEM-only detect-private-key and custom check_public_tree.py without API-token scanning.
https://github.com/togethercomputer/xorl/blob/main/scripts/check_public_tree.pyPublic xorl internal-reference scrubber explicitly blocking /shared/huggingface and AI assistant strings (claude, anthropic, copilot) while omitting credential-prefix rules.
https://www.dragos.com/blog/ai-supply-chain-security-canary-tokensNovember 19, 2026 Dragos canary-token study documenting attacker validation of stolen AWS keys, S3 listing, and Secrets Manager enumeration from leaked inference prompts.
Reproduction lab
Verifies locally that your AI coding agent shell does not inherit ambient Hugging Face tokens and that your .pre-commit-config.yaml includes a real token scanner instead of PEM-only checks.
# Confirm no persistent Hugging Face token file sits in an AI coding agent workspace
test ! -f "$HOME/.cache/huggingface/token" && echo "PASS: no cached HF token"
# Verify .pre-commit-config.yaml includes token scanning (not just PEM detect-private-key)
grep -qE 'gitleaks|trufflehog|detect-secrets' .pre-commit-config.yaml \
&& echo "PASS: token scanner configured" || echo "WARN: add gitleaks or trufflehog hook"