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

Together AI CEO security notice (Nov 21, 2026)

How the credential leaked
During development of our public GitHub repository, xorl, an AI coding agent committed a credential that provided access to the private Hugging Face repository. Our automated scanning detected the exposed credential, and we reverted the commit.
What happened during the exposure window
During the exposure window, an unauthorized party obtained the credential and used it to download the stored prompt samples. The party subsequently searched those samples for credentials to other services and tested whether those credentials were valid. Five of the credentials tested were canary credentials associated with a Dragos security experiment.

ShowsAn 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 outWhich 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.

together.aiTogether AI BlogSaved Dec 4, 2026, 07:34 UTC

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

Public xorl pre-commit, scrubber, and CI workflow (commit 4d8c620b)

default_stages: [pre-commit, pre-push, manual]
exclude: ^(submodules/|\.venv/|src/xorl/ops/quack/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-symlinks
- id: destroyed-symlinks
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: detect-private-keyPEM and SSH private-key headers only; blind to hf_ API tokens
- id: debug-statements
- id: no-commit-to-branch
- repo: https://github.com/astral-sh/ruff-pre-commit
- repo: local
hooks:
- id: check-public-tree
name: check public tree for private references
entry: python scripts/check_public_tree.pyCustom path scrubber, not gitleaks or trufflehog
language: system
pass_filenames: false
49 lines in this file

Showstogethercomputer/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 outWhether the leaking commit occurred on main or a separate branch before commit 4d8c620b, or what GitHub-side secret scanning alerts fired out of band.

github.com/togethercomputer/xorlGitHub (togethercomputer/xorl)Saved Dec 4, 2026, 08:41 UTCStaff usernames redacted by breachidents

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.

  1. Theory 1Inferred

    Ambient 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 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.

    Why we think soClose
    Fits these facts
    • .pre-commit-config.yaml enables detect-private-key (PEM headers only) with no gitleaks, trufflehog, or detect-secrets hook. Receipt 2
    • 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 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 check

    Would 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 on xorl.

    Would rule it outForensic confirmation that the committed secret was a PEM key bypassed with --no-verify rather than an API token that passed pre-commit cleanly.

  2. Theory 2Inferred

    Git 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, 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.

    Why we think soClose
    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 1
    • .github/workflows/lint.yml triggers only on pull_request, meaning direct pushes or branch pushes hit public GitHub before PR checks ran. Receipt 2
    What an investigator inside would check

    Would 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.

Developer workflowExternal repositoriesStayed safeSecret miningAI coding agentCommits key to xorlPublic GitHub repotogethercomputer/xorlPrivate HF repoJun-Jul prompt samplesScoped datasetNo other prompt leaksZDR now defaultOn for new accountsPrompts minedThird-party keys pulled5 Dragos canariesLive key tests tripped1234
1After Jul 14, 2026

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.

ConfirmedWhere to stop it: sandbox agent secrets
  1. After Jul 14, 2026

    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 agenttoPublic GitHub repo
  2. Exposure window

    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.

    Public GitHub repotoPrivate HF repo
  3. Jul–Nov 2026

    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.

    Private HF repotoPrompts mined
  4. Nov 19–21, 2026

    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.

    Prompts minedto5 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

Dragos inference-provider canary study (Nov 19, 2026)

What attackers did with harvested AWS canary keys
Once the attacker had our credentials, they followed a predictable path. First, they tested each key to see if it was live, in some cases within a few hours of our request. Next, they went looking for data, listing S3 buckets and searching Secrets Manager and Parameter Store. Finally, they tried enabling hosted models in AWS Bedrock, creating Bedrock API keys, and adding their own IAM users to keep access.

ShowsAttackers mining leaked inference prompts move straight from testing stolen keys to S3 listing, Secrets Manager/Parameter Store sweeps, Bedrock abuse, and IAM persistence.

Leaves outWhich 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.

dragos.comDragos Research BlogSaved Dec 4, 2026, 08:38 UTC

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.

Showing the plain view

Hit or went downProbablyPart of the setupStayed safeNot known yet

Top: what people use. Lower down: what it runs on.

  1. Stored customer prompt samples

    Downloaded & minedConfirmed

    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.

    • 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).
  2. Public developer repository (xorl)

    Key committedConfirmed

    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

    • 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
  3. External hosting, identity, and inference edge

    Public recordsObserved

    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.

    • 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-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.
  4. Wider inference platform and new accounts

    No wider leakConfirmed

    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.

    • 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.
  5. 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.shaping-eks-prod.cloud.together.aitelemetryRL clustercloud plane

prometheus.shaping-eks-prod.cloud.together.ai

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.

  • aws-eks14
  • internal-o11y35
  • cloudflare3
  • identity4
  • github-hf4

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 yourself2 shell commands

Every observation above comes from passive queries against Public GitHub API, Certspotter CT & DNS. No internal host was probed or scanned.

audit-xorl-hooks.sh
curl -sS https://raw.githubusercontent.com/togethercomputer/xorl/main/.pre-commit-config.yamlcurl -sS https://raw.githubusercontent.com/togethercomputer/xorl/main/scripts/check_public_tree.py
pull-together-ct.sh
curl -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.ai

The 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, and IAM)
Signal
GetCallerIdentity followed rapidly by ListBuckets, secretsmanager:GetSecretValue, ssm:GetParameters*, bedrock:PutFoundationModelEntitlement, or iam:CreateUser from 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.sh
#!/usr/bin/env bash set -euo pipefail # 1. Fail if ambient dataset/model tokens are exposed in an AI coding agent shell for var in HF_TOKEN HUGGING_FACE_HUB_TOKEN TOGETHER_API_KEY AWS_SECRET_ACCESS_KEY; do if [[ -n "${!var:-}" ]]; then echo "FAIL: $var is set in agent environment; unset before launching coding agents" exit 1 fi done if [[ -f "${HOME}/.cache/huggingface/token" ]]; then echo "FAIL: persistent Hugging Face token file exists at ~/.cache/huggingface/token" exit 1 fi if [[ -f .pre-commit-config.yaml ]] && ! grep -qE 'gitleaks|trufflehog|detect-secrets' .pre-commit-config.yaml; then echo "WARN: .pre-commit-config.yaml lacks a token/entropy scanner (detect-private-key only catches PEM headers)" fi echo "PASS: no ambient Hugging Face or inference keys found in agent sandbox"

From 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-private-key without gitleaks / trufflehog, CI secret scans scoped only to pull_request, or orgs without blocking GitHub Push Protection. Receipt 2
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.
block-agent-secret-commits.yaml
# .github/workflows/secret-gate.yml name: Block Credentials on PR and Push on: pull_request: push: jobs: gitleaks: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Scan commits for HF and cloud tokens uses: gitleaks/gitleaks-action@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Pair with GitHub Push Protection (org-wide, blocking) and run AI coding agents # inside containers with HF_TOKEN, AWS_SECRET_ACCESS_KEY, and ~/.cache/huggingface unset.

From the story’s code. Swap in your own values before you run it.

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.

Appendix

Evidence log and all 4 receipts9 claims
Claim and sourceHow 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

Together AI CEO security notice (Nov 21, 2026)

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 Together AI

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

Together AI CEO security notice (Nov 21, 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)

Together AI security notice (Nov 21, 2026)

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

Together AI CEO security notice (Nov 21, 2026)

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

Together AI CEO security notice (Nov 21, 2026)

How the credential leaked
During development of our public GitHub repository, xorl, an AI coding agent committed a credential that provided access to the private Hugging Face repository. Our automated scanning detected the exposed credential, and we reverted the commit.
What happened during the exposure window
During the exposure window, an unauthorized party obtained the credential and used it to download the stored prompt samples. The party subsequently searched those samples for credentials to other services and tested whether those credentials were valid. Five of the credentials tested were canary credentials associated with a Dragos security experiment.

ShowsAn 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 outWhich 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.

together.aiTogether AI BlogSaved Dec 4, 2026, 07:34 UTC
Receipt 2, in public codeObservedInspect the three public xorl files showing PEM-only hooks and PR-only lintingOpenClose

Public xorl pre-commit, scrubber, and CI workflow (commit 4d8c620b)

default_stages: [pre-commit, pre-push, manual]
exclude: ^(submodules/|\.venv/|src/xorl/ops/quack/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-symlinks
- id: destroyed-symlinks
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: detect-private-keyPEM and SSH private-key headers only; blind to hf_ API tokens
- id: debug-statements
- id: no-commit-to-branch
- repo: https://github.com/astral-sh/ruff-pre-commit
- repo: local
hooks:
- id: check-public-tree
name: check public tree for private references
entry: python scripts/check_public_tree.pyCustom path scrubber, not gitleaks or trufflehog
language: system
pass_filenames: false
49 lines in this file

Showstogethercomputer/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 outWhether the leaking commit occurred on main or a separate branch before commit 4d8c620b, or what GitHub-side secret scanning alerts fired out of band.

github.com/togethercomputer/xorlGitHub (togethercomputer/xorl)Saved Dec 4, 2026, 08:41 UTCStaff usernames redacted by breachidents
Receipt 3, in their wordsConfirmedRead Dragos’s observed post-theft playbook on credentials mined from AI promptsOpenClose

Dragos inference-provider canary study (Nov 19, 2026)

What attackers did with harvested AWS canary keys
Once the attacker had our credentials, they followed a predictable path. First, they tested each key to see if it was live, in some cases within a few hours of our request. Next, they went looking for data, listing S3 buckets and searching Secrets Manager and Parameter Store. Finally, they tried enabling hosted models in AWS Bedrock, creating Bedrock API keys, and adding their own IAM users to keep access.

ShowsAttackers mining leaked inference prompts move straight from testing stolen keys to S3 listing, Secrets Manager/Parameter Store sweeps, Bedrock abuse, and IAM persistence.

Leaves outWhich 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.

dragos.comDragos Research BlogSaved Dec 4, 2026, 08:38 UTC
Receipt 4, what we ranObservedInspect public CT records separating Together AI’s API, identity, and RL shaping planesOpenClose

Certspotter CT hostnames across together.ai (113 names)

Command, read-only
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)'
OutputRaw output saved
api.together.ai datacatalog.prod.cloud.together.ai prometheus.shaping-eks-prod.cloud.together.ai scim.1password.together.ai vault.dev.internal.together.ai zitadel.access.together.ai

Core plane separation across 113 CT names

api.together.ai (Cloudflare public inference edge) zitadel.access.together.ai / scim.1password (corporate identity plane) prometheus.shaping-eks-prod.cloud.together.ai (RL model-shaping cluster)

ShowsTogether AI’s production API, corporate identity, and model-shaping clusters sit on separate planes from the public GitHub xorl code workflow.

Leaves outInternal IAM bindings between developer workstations and private Hugging Face repositories.

api.certspotter.comCertspotter CT APISaved Dec 4, 2026, 08:38 UTC
Indicators of compromise4 indicators
  • 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.

  • 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.

  • 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.

  • 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.

Reproduction labLocal sandbox hygiene check, MIT license

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.

Safety note: Run only inside your own local development repositories and sandboxes.

# 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"
Together AI: An AI coding agent committed a secret to public GitHub and leaked customer prompts | breachidents