{"incident":{"slug":"together-ai-nov-2026-coding-agent-xorl-prompt-leak","caseId":"BI-2026-041","organization":"Together AI","title":"Together AI: An AI coding agent committed a secret to public GitHub and leaked customer prompts","shortSummary":"An AI coding agent committed a live credential for a private Hugging Face testing repo into Together AI’s public xorl repository. Public inspection of xorl’s own pre-commit and leak-check scripts shows why PEM-only scanners miss API tokens, leaving customer prompts open to secret mining that tripped five Dragos canaries.","lede":"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.","incidentDate":"Jun 24–Jul 14, 2026","incidentDateIso":"2026-06-24","incidentEndIso":"2026-07-14","disclosedDate":"Nov 21, 2026","sourceUrl":"https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026","sourceAuthor":"Together AI (Vipul Ved Prakash), Dragos Canary Research, and Public xorl Repo Audit","vectorFilter":"Leaked cloud key","timeToDetect":"Automated secret scanner flagged xorl commit; Dragos canaries confirmed abuse","detectedBy":"Together AI automated secret scanning and Dragos canary experiment","initialAccess":{"label":"Agent committed secret","detail":"AI coding agent committed a live repo key to public GitHub xorl; revert left an exposure window","evidence":"confirmed"},"secondaryVectorMeta":{"term":"Prompt mining signal","label":"5 Dragos canaries tested","evidence":"confirmed"},"blastRadius":"June and July 2026 MiniMax M3, GLM-5.2, and Kimi K2.6 serverless prompt samples downloaded and mined for secrets","whatItReachedShort":"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","whatHeldShort":"No other prompt leakage found; Zero Data Retention is now the default for all new accounts","revisions":[{"id":"Rev C","date":"Dec 4, 2026","note":"Added archived primary receipts (Together AI Nov 21 notice, Dragos Nov 19 canary report, pinned togethercomputer/xorl commit 4d8c620b across .pre-commit-config.yaml, redacted scripts/check_public_tree.py, and .github/workflows/lint.yml, plus passive CT logs), structured working theories, and the Plain/Responder response chapter."},{"id":"Rev B","date":"Dec 4, 2026","note":"Added investigative code-level analysis of togethercomputer/xorl’s public pre-commit config, custom check_public_tree.py scrubber, and PR-only lint workflow showing how API tokens bypass PEM-only hooks; expanded Dragos’s observed post-theft AWS credential playbook and added a passive infrastructure recon map of together.ai’s 113 CT hostnames."},{"id":"Rev A","date":"Dec 4, 2026","note":"First published from Together AI CEO Vipul Ved Prakash’s November 21, 2026 security notice, Dragos’s November 19 canary-token research, and passive public GitHub and DNS records checked December 4, 2026."}],"bodyMarkdown":"## How they got in\n\nMost 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.\n\nAccording 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. [[ta-notice]]\n\nLooking 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. [[ta-xorl-code]]\n\n## What it reached\n\nOnce 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.\n\nThe 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.\n\nDragos’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. [[ta-dragos]]\n\nTogether 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.\n\n## What held\n\nTogether 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.\n\nJust 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.\n\n> **PEM-only hooks and git revert fail against AI coding agents**\n>\n> xorl’s public configuration is a warning for every engineering org adopting coding agents: you can write a thoughtful internal-reference scrubber that even blocks the word \"claude\" or \"/shared/huggingface\" and still leak a live Hugging Face token if your only secret hook is detect-private-key.\n>\n> Teams running coding agents should isolate agent shells from ambient HF_TOKEN, AWS, and cached CLI files, replace PEM-only hooks with blocking gitleaks or trufflehog checks on every push and pull request plus GitHub Push Protection, revoke any exposed key at the issuer before touching git history, and keep Zero Data Retention enabled so no prompt archive exists to steal in the first place.","narrative":{"howTheyGotIn":["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. [[ta-notice]]","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. [[ta-xorl-code]]"],"whatItReached":["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. [[ta-dragos]]","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."],"whatHeld":["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."],"sideNoteTitle":"PEM-only hooks and git revert fail against AI coding agents","sideNoteParagraphs":["xorl’s public configuration is a warning for every engineering org adopting coding agents: you can write a thoughtful internal-reference scrubber that even blocks the word \"claude\" or \"/shared/huggingface\" and still leak a live Hugging Face token if your only secret hook is detect-private-key.","Teams running coding agents should isolate agent shells from ambient HF_TOKEN, AWS, and cached CLI files, replace PEM-only hooks with blocking gitleaks or trufflehog checks on every push and pull request plus GitHub Push Protection, revoke any exposed key at the issuer before touching git history, and keep Zero Data Retention enabled so no prompt archive exists to steal in the first place."]},"claims":[{"group":"How they got in","claim":"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","evidence":"confirmed","source":"Together AI CEO security notice (Nov 21, 2026)","sourceUrl":"https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026","receiptIds":["ta-notice"]},{"group":"How they got in","claim":"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","evidence":"observed","source":"Public files in github.com/togethercomputer/xorl (checked Dec 4, 2026)","sourceUrl":"https://github.com/togethercomputer/xorl/blob/4d8c620b26ae03ed83f395ecff75cd048f5fc35c/.pre-commit-config.yaml","receiptIds":["ta-xorl-code"]},{"group":"How they got in","claim":"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","evidence":"inferred","source":"Git version-control behavior, xorl pre-commit config, and Together AI remediation summary","receiptIds":["ta-notice","ta-xorl-code"]},{"group":"How they got in","claim":"Exact commit hash and date, length of the exposure window before revocation, which AI coding agent wrote the commit, credential format, and attacker identity","evidence":"withheld","source":"Withheld by Together AI","sourceUrl":"https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026","receiptIds":["ta-notice"]},{"group":"What it reached","claim":"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","evidence":"confirmed","source":"Together AI CEO security notice (Nov 21, 2026)","sourceUrl":"https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026","receiptIds":["ta-notice"]},{"group":"What it reached","claim":"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)","evidence":"confirmed","source":"Together AI security notice (Nov 21, 2026) and Dragos canary research (Nov 19, 2026)","sourceUrl":"https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens","receiptIds":["ta-notice","ta-dragos"]},{"group":"What it reached","claim":"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)","evidence":"withheld","source":"Together AI security notice (Nov 21, 2026)","sourceUrl":"https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026","receiptIds":["ta-notice"]},{"group":"What held","claim":"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","evidence":"confirmed","source":"Together AI CEO security notice (Nov 21, 2026)","sourceUrl":"https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026","receiptIds":["ta-notice"]},{"group":"Observed public posture","claim":"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","evidence":"observed","source":"Certspotter CT logs and passive DNS (Dec 4, 2026)","receiptIds":["ta-ct-plane"]}],"receipts":[{"id":"ta-notice","kind":"quote","evidence":"confirmed","title":"Together AI CEO security notice (Nov 21, 2026)","stub":"Read CEO Vipul Ved Prakash’s exact disclosure of the xorl agent commit and Dragos canaries","source":{"name":"Together AI Blog","host":"together.ai","url":"https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026","date":"Nov 21, 2026"},"saved":"proofs/together-ai-nov-2026-coding-agent-xorl-prompt-leak/ta-notice.html","savedAt":"2026-12-04T07:34:00Z","sha256":"812c16d66f8287fe141f9f3700c64d7ac8f010d46da65f4dcec5612302a8a514","quote":[{"label":"How the credential leaked","lines":["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==."]},{"label":"What happened during the exposure window","lines":["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.=="]}],"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.","leavesOut":"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.","point":"Confirms both the coding-agent commit on `togethercomputer/xorl` and the revert-window sequence that let an attacker pull June and July serverless prompt samples."},{"id":"ta-xorl-code","kind":"code","evidence":"observed","title":"Public xorl pre-commit, scrubber, and CI workflow (commit 4d8c620b)","stub":"Inspect the three public xorl files showing PEM-only hooks and PR-only linting","source":{"name":"GitHub (togethercomputer/xorl)","host":"github.com/togethercomputer/xorl","url":"https://github.com/togethercomputer/xorl/tree/4d8c620b26ae03ed83f395ecff75cd048f5fc35c","date":"Dec 4, 2026"},"repo":"togethercomputer/xorl","ref":"main","commit":"4d8c620b26ae03ed83f395ecff75cd048f5fc35c","savedAt":"2026-12-04T08:41:00Z","redactNote":"Staff usernames redacted by breachidents","files":[{"path":".pre-commit-config.yaml","saved":"proofs/together-ai-nov-2026-coding-agent-xorl-prompt-leak/xorl-precommit.yaml","sha256":"17eb2867703cc4f541621613affd0ef8bcb4cc81021e373d1dac5f1ad7d05ac3","show":[[1,9],[20,25],[43,49]],"marks":{"22":"PEM and SSH private-key headers only; blind to hf_ API tokens","47":"Custom path scrubber, not gitleaks or trufflehog"},"content":"default_stages: [pre-commit, pre-push, manual]\nexclude: ^(submodules/|\\.venv/|src/xorl/ops/quack/)\n\nrepos:\n  - repo: https://github.com/pre-commit/pre-commit-hooks\n    rev: v5.0.0\n    hooks:\n      - id: check-symlinks\n      - id: destroyed-symlinks\n      - id: trailing-whitespace\n      - id: end-of-file-fixer\n      - id: check-yaml\n        args: [--allow-multiple-documents]\n      - id: check-toml\n      - id: check-ast\n      - id: check-added-large-files\n        # The semantic audit ledger intentionally retains evidence for every\n        # reviewed scope. Keep the size guard for all other additions.\n        exclude: ^test_audit_decisions\\.json$\n      - id: check-merge-conflict\n      - id: check-shebang-scripts-are-executable\n      - id: detect-private-key\n      - id: debug-statements\n      - id: no-commit-to-branch\n  - repo: https://github.com/astral-sh/ruff-pre-commit\n    rev: v0.11.4\n    hooks:\n      - id: ruff\n        args: [--fix-only]\n      - id: ruff-format\n        # bi_families_v2.py is vendored byte-identical into the serving engine\n        # and both copies are sha256-gated, so it carries that engine's\n        # formatting (black, 88 columns). Reformatting it here at 120 would\n        # break the byte-equality the contract depends on. Lint still runs.\n        exclude: ^src/xorl/ops/bi_families_v2\\.py$\n  - repo: https://github.com/codespell-project/codespell\n    rev: v2.4.1\n    hooks:\n      - id: codespell\n        args: [\"--config\", \".codespellrc\"]\n        additional_dependencies:\n          - tomli\n  - repo: local\n    hooks:\n      - id: check-public-tree\n        name: check public tree for private references\n        entry: python scripts/check_public_tree.py\n        language: system\n        pass_filenames: false\n"},{"path":"scripts/check_public_tree.py","saved":"proofs/together-ai-nov-2026-coding-agent-xorl-prompt-leak/xorl-check-public-tree.py","sha256":"420bd39a2a6cdff7881772d6afb5856e0fd7e698459cf61f733b7a76f6b701d2","show":[[13,27]],"marks":{"16":"Blocks /shared/huggingface path names, not hf_ credentials","26":"Explicitly guards against claude, anthropic, and copilot strings"},"content":"#!/usr/bin/env python3\n\"\"\"Reject private identifiers and environment-specific references in tracked files.\"\"\"\n\nfrom __future__ import annotations\n\nimport re\nimport subprocess\nfrom pathlib import Path\n\n\nREPO_ROOT = Path(__file__).resolve().parents[1]\n\nPATTERNS = {\n    \"home directory\": re.compile(r\"/(?:home|Users)/[A-Za-z0-9._-]+\"),\n    \"personal data workspace\": re.compile(r\"/data/[A-Za-z0-9._-]+/(?:WorkingProjects|outputs|miniconda3)/\"),\n    \"user or mirror under /shared\": re.compile(r\"/shared/(?:██████|████|huggingface)\\b\"),\n    \"internal repository name\": re.compile(r\"\\bxorl(?:-sglang|-client)?-internal\\b\"),\n    \"kubectl invocation\": re.compile(r\"\\bkubectl\\b\", re.IGNORECASE),\n    \"cluster service address\": re.compile(r\"\\.svc\\.cluster\\.local\\b\"),\n    \"scheduling queue label\": re.compile(r\"\\bteam:\\s*(?:turbo|shaping)\\b\", re.IGNORECASE),\n    \"volcano scheduler key\": re.compile(r\"scheduling\\.volcano\\.sh\"),\n    \"pointer to an internal-only note\": re.compile(r\"\\bdocs/notes/\"),\n    \"internal account name\": re.compile(r\"\\b██████\\b\"),\n    \"internal branch name\": re.compile(r\"\\b██████-dev\\b\"),\n    \"internal tracker ticket\": re.compile(r\"\\bXORL-\\d+\\b\"),\n    \"authoring-assistant attribution\": re.compile(r\"(?i)\\b(?:claude|anthropic|copilot)\\b\"),\n}\n\n# Pattern definitions necessarily contain the forbidden strings. The gitignore\n# names authoring-tool files only to keep them untracked, which is not a leak.\nEXEMPT = {\n    \"scripts/check_public_tree.py\",\n    \"src/xorl/sim/calibration_packs.py\",\n    \".gitignore\",\n}\n\n\ndef _tracked_files() -> list[str]:\n    listing = subprocess.run(\n        [\"git\", \"ls-files\"],\n        cwd=REPO_ROOT,\n        capture_output=True,\n        text=True,\n        check=True,\n    )\n    return [name for name in listing.stdout.splitlines() if name and name not in EXEMPT]\n\n\ndef main() -> int:\n    violations: list[str] = []\n    for name in _tracked_files():\n        path = REPO_ROOT / name\n        if not path.is_file():\n            continue\n        try:\n            text = path.read_text(encoding=\"utf-8\")\n        except (UnicodeDecodeError, OSError):\n            continue\n        for label, pattern in PATTERNS.items():\n            match = pattern.search(text)\n            if match:\n                violations.append(f\"{name}: {label}: {match.group(0)!r}\")\n\n    if violations:\n        print(\"Internal references in tracked files:\")\n        print(\"\\n\".join(sorted(violations)))\n        return 1\n    return 0\n\n\nif __name__ == \"__main__\":\n    raise SystemExit(main())\n"},{"path":".github/workflows/lint.yml","saved":"proofs/together-ai-nov-2026-coding-agent-xorl-prompt-leak/xorl-lint.yml","sha256":"0bc510ca33da0fe3e3f188e28becf4b87c3c735b8fbbd23c60dfb5e88ea30252","show":[[3,10],[29,31]],"marks":{"7":"Runs on pull_request only, skipping direct push events","31":"Runs pre-commit only, with no gitleaks or trufflehog scanner"},"content":"name: Lint\n\n# Pull requests only. A merge to main lands the exact tree that already went\n# green on the PR, so a push-triggered rerun burns runner time to re-prove a\n# known result. Use workflow_dispatch to run main on demand.\non:\n  pull_request:\n    branches: [main]\n  workflow_dispatch:\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n      - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0\n\n      - name: Install pre-commit\n        run: uv tool install \"pre-commit~=4.5\"\n\n      - name: Cache pre-commit envs\n        uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n        with:\n          path: ~/.cache/pre-commit\n          key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}\n          restore-keys: |\n            pre-commit-\n\n      - name: Run pre-commit checks\n        run: SKIP=no-commit-to-branch pre-commit run --all-files --show-diff-on-failure\n"}],"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.","leavesOut":"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.","point":"Shows the exact engineering blind spot: PEM-only hooks and path-string scrubbers pass a live Hugging Face API token cleanly without raising a single error."},{"id":"ta-dragos","kind":"quote","evidence":"confirmed","title":"Dragos inference-provider canary study (Nov 19, 2026)","stub":"Read Dragos’s observed post-theft playbook on credentials mined from AI prompts","source":{"name":"Dragos Research Blog","host":"dragos.com","url":"https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens","date":"Nov 19, 2026"},"saved":"proofs/together-ai-nov-2026-coding-agent-xorl-prompt-leak/ta-dragos.html","savedAt":"2026-12-04T08:38:00Z","sha256":"6c18ff78a66b07a32f9a7ce59d9bddd07a470cb61f8d2b93df72d402d8c88813","quote":[{"label":"What attackers did with harvested AWS canary keys","lines":["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."]}],"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.","leavesOut":"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.","point":"Proves why leaked prompt archives act as credential-harvesting pipelines rather than passive text dumps."},{"id":"ta-ct-plane","kind":"output","evidence":"observed","title":"Certspotter CT hostnames across together.ai (113 names)","stub":"Inspect public CT records separating Together AI’s API, identity, and RL shaping planes","source":{"name":"Certspotter CT API","host":"api.certspotter.com","url":"https://api.certspotter.com/v1/issuances?domain=together.ai&include_subdomains=true&expand=dns_names","date":"Dec 4, 2026"},"saved":"proofs/together-ai-nov-2026-coding-agent-xorl-prompt-leak/ta-ct.json","savedAt":"2026-12-04T08:38:00Z","sha256":"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)'","output":"api.together.ai\ndatacatalog.prod.cloud.together.ai\nprometheus.shaping-eks-prod.cloud.together.ai\nscim.1password.together.ai\nvault.dev.internal.together.ai\nzitadel.access.together.ai","picked":{"caption":"Core plane separation across 113 CT names","lines":["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)"]},"shows":"Together AI’s production API, corporate identity, and model-shaping clusters sit on separate planes from the public GitHub `xorl` code workflow.","leavesOut":"Internal IAM bindings between developer workstations and private Hugging Face repositories."}],"theories":{"boundary":"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.","items":[{"title":"Ambient HF token passed PEM-only hooks and check_public_tree.py","summary":"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":[{"text":"`.pre-commit-config.yaml` enables `detect-private-key` (PEM headers only) with no `gitleaks`, `trufflehog`, or `detect-secrets` hook.","receipt":"ta-xorl-code"},{"text":"`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"},{"text":"Together AI’s post-incident fixes specifically added pull-request credential checks and new AI coding agent rules.","receipt":"ta-notice"}],"wouldProve":"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`.","wouldRuleOut":"Forensic confirmation that the committed secret was a PEM key bypassed with `--no-verify` rather than an API token that passed `pre-commit` cleanly."},{"title":"Git revert left the blob live until issuer-side Hugging Face revocation","summary":"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":[{"text":"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"},{"text":"`.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"}],"wouldProve":"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.","wouldRuleOut":"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."}]},"response":{"audience":"Engineering teams running AI coding agents on repositories and customers who sent prompts to Together AI in June or July 2026","plain":[{"title":"Rotate any secret ever pasted into June or July serverless prompts","text":"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."},{"title":"Turn on Zero Data Retention and test it with a canary key","text":"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."},{"title":"Strip long-lived cloud keys out of AI coding agent shells","text":"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."}],"firstHour":[{"do":"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","why":"Together AI confirmed downloaded prompt samples came primarily from those three models on those four dates and were actively mined for live keys.","receipt":"ta-notice"},{"do":"Audit AWS CloudTrail for unexpected `sts:GetCallerIdentity`, `s3:ListBuckets`, `secretsmanager:ListSecrets`, `ssm:GetParametersByPath`, and Bedrock model-enable calls","why":"Dragos documented attackers validating harvested AWS prompt keys within hours, sweeping S3 and Secrets Manager, and attempting Bedrock and IAM persistence.","receipt":"ta-dragos"},{"do":"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","why":"`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.","receipt":"ta-xorl-code"},{"do":"Unset `HF_TOKEN`, `AWS_SECRET_ACCESS_KEY`, and `~/.cache/huggingface/token` inside AI coding agent containers","why":"Preventing ambient credentials from entering an agent’s filesystem stops accidental commits before git hooks ever run."}],"hunt":[{"lookIn":"AWS CloudTrail (`ListBuckets`, `SecretsManager`, `SSM`, `Bedrock`, and `IAM`)","lead":"Dragos observed prompt-mined AWS keys replayed from rented servers within hours and still firing months later across July-seeded tokens.","signal":"`GetCallerIdentity` followed rapidly by `ListBuckets`, `secretsmanager:GetSecretValue`, `ssm:GetParameters*`, `bedrock:PutFoundationModelEntitlement`, or `iam:CreateUser` from an unrecognized ASN.","realHit":"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.","noise":"Routine Terraform plan runs or developer CLI sessions originating from your corporate VPN or known GitHub Actions OIDC roles.","receipt":"ta-dragos","receiptOn":"signal","code":"ta-revoke-not-revert"},{"lookIn":"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.","realHit":"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.","noise":"Fixture test keys explicitly allowlisted inside `.gitleaksignore` or mock unit-test tokens.","receipt":"ta-xorl-code","receiptOn":"signal","code":"ta-agent-secret-guard"}],"also":{"who":"Security teams using any third-party AI inference router or open-weight model host","text":"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."}},"stack":{"observedOn":"Dec 4, 2026","intro":"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.","layers":[{"label":"Stored customer prompt samples","status":"hit","statusText":"Downloaded & mined","evidence":"confirmed","plain":"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":["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)."]},{"label":"Public developer repository (xorl)","status":"hit","statusText":"Key committed","evidence":"confirmed","plain":"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.","also":[{"text":"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.","evidence":"observed"},{"text":"Reverting a commit leaves the secret readable in git history and cloned copies until the credential itself is revoked at the issuer.","evidence":"inferred"}],"technical":["Public Python RL/SFT training repo `github.com/togethercomputer/xorl` (created `2026-03-12`, last push `2026-09-05`).",{"text":"`.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).","evidence":"observed"},{"text":"`.github/workflows/lint.yml` runs on `pull_request` and `workflow_dispatch` only, with no `gitleaks` or `trufflehog` scanner.","evidence":"observed"}]},{"label":"External hosting, identity, and inference edge","status":"context","statusText":"Public records","evidence":"observed","plain":"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.","vendors":[{"name":"GitHub","logo":"github","technical":"Public repositories including `togethercomputer/xorl`, `xorl-client`, and `xorl-sglang`."},{"name":"Hugging Face","initial":"H","technical":"Private repository storage used for routine inference testing prompt samples (Together AI notice)."},{"name":"Cloudflare","logo":"cloudflare","technical":"Authoritative DNS (`gail/edward.ns.cloudflare.com`), `api.together.ai` edge (`104.18.37.81`, `172.64.150.175`), and DMARC report receiver."},{"name":"AWS","initial":"A","technical":"Observed `zitadel.access.together.ai` on `elb.us-west-2.amazonaws.com` and `shaping-eks-prod.cloud.together.ai` in CT logs."},{"name":"Google Workspace","initial":"G","technical":"Corporate mail MX (`aspmx.l.google.com`) with `_dmarc.together.ai` at `p=quarantine`."}]},{"label":"Wider inference platform and new accounts","status":"safe","statusText":"No wider leak","evidence":"confirmed","plain":"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":["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."]},{"label":"Not known yet","status":"unknown","statusText":"Not known yet","evidence":"withheld","items":["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."]}],"foot":"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."},"infraRecon":{"title":"Inspecting xorl’s public guardrails and Together AI’s cloud footprint","lede":"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.","boundaryLead":"Exact leaking commit, agent identity, and revocation delay: Withheld by vendor.","boundaryText":"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.","pullMeta":{"source":"Public GitHub API, Certspotter CT & DNS","query":"togethercomputer/xorl + together.ai","pulled":"Dec 4, 2026","uniqueNames":"113 CT hostnames","cloudTokens":"5 observed planes","probing":"None, passive only"},"steps":[{"n":1,"title":"Audit xorl’s public pre-commit hooks and custom leak scrubber","state":"done","resultEvidence":"observed","resultText":".pre-commit-config.yaml enables detect-private-key (PEM headers only) plus a local hook scripts/check_public_tree.py that explicitly blocks /shared/huggingface, team: shaping, xorl-internal, and AI assistant strings (claude, anthropic, copilot), but contains zero patterns for Hugging Face tokens (hf_) or high-entropy API keys.","commandFilename":"audit-xorl-hooks.sh","commandCode":"curl -sS https://raw.githubusercontent.com/togethercomputer/xorl/main/.pre-commit-config.yaml\ncurl -sS https://raw.githubusercontent.com/togethercomputer/xorl/main/scripts/check_public_tree.py","feedsStep":2},{"n":2,"title":"Check xorl’s GitHub Actions lint workflow trigger and scanners","state":"done","resultEvidence":"observed","resultText":".github/workflows/lint.yml triggers only on pull_request and workflow_dispatch (skipping direct push) and runs pre-commit without gitleaks or trufflehog.","feedsStep":3},{"n":3,"title":"Pull Certificate Transparency and DNS records for together.ai","state":"done","resultEvidence":"observed","resultText":"113 unique active hostnames show api.together.ai behind 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, and datacatalog.prod.cloud.together.ai.","commandFilename":"pull-together-ct.sh","commandCode":"curl -sS \"https://api.certspotter.com/v1/issuances?domain=together.ai&include_subdomains=true&expand=dns_names\" \\\n  | jq -r '.[].dns_names[]' | sort -u | wc -l  # 113 unique names on Dec 4, 2026\ndig +short A api.together.ai && dig +short CNAME zitadel.access.together.ai","feedsStep":4},{"n":4,"title":"Stop at the boundary","state":"stop","resultEvidence":"withheld","resultText":"Public git history on main does not identify the reverted secret commit, which AI coding agent authored it, or how many minutes elapsed between commit, revert, and token revocation."}],"dimensionedHost":{"segments":[{"text":"prometheus","separatorAfter":".","label":"telemetry"},{"text":"shaping-eks-prod","separatorAfter":".","label":"RL cluster"},{"text":"cloud.together.ai","label":"cloud plane"}],"caveat":"Observed 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."},"cloudTokensNote":"Five core hosting and engineering planes observed across together.ai and togethercomputer/xorl on December 4, 2026.","cloudTokens":[{"token":"aws-eks","provider":"AWS us-west-1 / us-west-2 (inference edge, Zitadel ELB, shaping-eks-prod)","count":14},{"token":"internal-o11y","provider":"Internal observability & infra (ClickHouse, Grafana, Prometheus, Atlantis, AWX, Vault dev)","count":35},{"token":"cloudflare","provider":"Cloudflare edge & authoritative DNS (api.together.ai, gail/edward.ns.cloudflare.com)","count":3},{"token":"identity","provider":"Zitadel & 1Password SCIM (zitadel.access.together.ai, scim.1password.together.ai)","count":4},{"token":"github-hf","provider":"GitHub public training repos (xorl stack) & Hugging Face private dataset repo","count":4}],"notableNames":[{"hostname":"github.com/togethercomputer/xorl","whatItSays":"Public distributed RL/SFT framework whose pre-commit hooks check PEM keys and internal paths, not API tokens","whatItDoesNotShow":"Which specific commit or AI coding agent leaked the Hugging Face credential","whyShown":"Confirmed repository where the credential exposure occurred"},{"hostname":"zitadel.access.together.ai","whatItSays":"Identity access endpoint CNAME to AWS us-west-2 ELB paired with scim.1password.together.ai","whatItDoesNotShow":"That corporate SSO or Zitadel was involved in the incident","whyShown":"Shows identity separation from developer git tokens"},{"hostname":"shaping-eks-prod.cloud.together.ai","whatItSays":"Production model-shaping Kubernetes cluster matching team shaping rules in xorl","whatItDoesNotShow":"That live EKS training or inference clusters were breached","whyShown":"Connects xorl’s public training codebase to Together AI’s model-shaping stack"}],"endCaption":"The public record ends here."},"diagram":{"label":"How an AI coding agent commit on public GitHub xorl leaked June and July customer prompts from a private Hugging Face repo","zones":[{"id":"dev","label":"Developer workflow","kind":"boundary","lane":0},{"id":"cloud","label":"External repositories","kind":"boundary","lane":1},{"id":"impact","label":"Secret mining","kind":"boundary","lane":2},{"id":"safe","label":"What held","kind":"isolated","lane":1}],"nodes":[{"id":"ta-agent","zone":"dev","name":"AI coding agent","detail":"Commits key to xorl","kind":"compromised","ev":"confirmed","at":0,"story":"During development of Together AI’s public distributed RL training repository togethercomputer/xorl, an AI coding agent committed a live credential that granted access to an internal private Hugging Face repository. Passive inspection of xorl’s public .pre-commit-config.yaml and scripts/check_public_tree.py shows the repo explicitly planned around AI coding assistants and private /shared/huggingface paths, yet only enabled detect-private-key (PEM headers only) with no API-token scanner.","when":"Post-Jul 14, 2026","steps":[1],"ctl":["ta-k1"]},{"id":"ta-gh","zone":"cloud","name":"Public GitHub repo","detail":"togethercomputer/xorl","kind":"compromised","ev":"confirmed","at":1,"story":"Together AI’s automated scanner flagged the exposed credential on public GitHub and the team reverted the commit. Reverting a git commit leaves the original blob readable in commit history and in any public GitHub event-stream scraper that fetched the push within seconds, keeping the exposure window open until issuer-side revocation.","when":"Exposure window","steps":[1,2],"ctl":["ta-k2"]},{"id":"ta-hf","zone":"cloud","name":"Private HF repo","detail":"Jun-Jul prompt samples","kind":"compromised","ev":"confirmed","at":2,"story":"Using the harvested credential, an unauthorized party accessed Together AI’s private Hugging Face repository and downloaded stored prompt samples collected for routine software testing from MiniMax M3, GLM-5.2, and Kimi K2.6 serverless inference traffic, primarily from June 24, July 4, July 8, and July 14, 2026.","when":"Jul–Nov 2026","steps":[2,3],"ctl":["ta-k3"]},{"id":"ta-mine","zone":"impact","name":"Prompts mined","detail":"Third-party keys pulled","kind":"compromised","ev":"confirmed","at":3,"story":"The attacker systematically parsed downloaded customer prompt bodies for third-party API keys and cloud secrets and tested whether those credentials worked. In Dragos’s broader inference-provider canary study, attackers validated harvested AWS keys, enumerated S3 buckets, and searched AWS Secrets Manager and SSM Parameter Store.","when":"Jul–Nov 2026","steps":[3,4]},{"id":"ta-canary","zone":"impact","name":"5 Dragos canaries","detail":"Live key tests tripped","kind":"compromised","ev":"confirmed","at":4,"story":"Five of the credentials tested by the attacker were canary tokens seeded by Dragos during a two-million-prompt study across AI inference providers, independently confirming that stolen prompts were actively mined and replayed. Dragos noted July canary tokens were still firing months later.","when":"Nov 19–21, 2026","steps":[4],"ctl":["ta-d1"]},{"id":"ta-safe1","zone":"safe","name":"Scoped dataset","detail":"No other prompt leaks","kind":"isolated","ev":"confirmed","at":0,"story":"Together AI’s investigation with an external forensic firm and law enforcement found no evidence of additional prompt leakage outside the testing samples in that private Hugging Face repository.","when":"Confirmed Nov 21"},{"id":"ta-safe2","zone":"safe","name":"ZDR now default","detail":"On for new accounts","kind":"isolated","ev":"confirmed","at":0,"story":"Following the incident, Together AI changed Zero Data Retention (ZDR) to be the default setting for all new accounts and urged existing customers handling sensitive prompts to enable ZDR in account settings.","when":"Shipped Nov 21"}],"edges":[{"id":"tae1","from":"ta-agent","to":"ta-gh","kind":"attack","step":1},{"id":"tae2","from":"ta-gh","to":"ta-hf","kind":"attack","step":2},{"id":"tae3","from":"ta-hf","to":"ta-mine","kind":"attack","step":3},{"id":"tae4","from":"ta-mine","to":"ta-canary","kind":"attack","step":4}],"steps":[{"n":1,"time":"After Jul 14, 2026","short":"Agent commit","text":"AI coding agent commits private repo credential to public GitHub xorl","say":"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."},{"n":2,"time":"Exposure window","short":"Key harvested","text":"Scanner reverts commit while attacker grabs credential before revocation","say":"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."},{"n":3,"time":"Jul–Nov 2026","short":"Prompts pulled","text":"Attacker downloads June and July prompt samples and extracts secrets","say":"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."},{"n":4,"time":"Nov 19–21, 2026","short":"Nov 19–21","text":"Five Dragos canary tokens trip; Together AI CEO discloses breach","say":"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."}],"controls":[{"id":"ta-k1","step":1,"kind":"control","name":"Sandbox agent secrets","tag":"Limits step 1","long":"Run AI coding agents in isolated dev environments stripped of long-lived cloud and Hugging Face tokens so an automated commit cannot accidentally package production or dataset keys.","nodeId":"ta-agent"},{"id":"ta-k2","step":2,"kind":"control","name":"Push-block & revoke first","tag":"Limits step 2","long":"Pair GitHub Push Protection with gitleaks or trufflehog in pre-commit and CI (not PEM-only detect-private-key hooks), and always revoke exposed credentials at the issuer before reverting git history.","nodeId":"ta-gh"},{"id":"ta-k3","step":3,"kind":"control","name":"Default ZDR & scrub PII","tag":"Limits step 3","long":"Keep Zero Data Retention enabled by default on inference APIs, scrub credentials before storing authorized evaluation samples, and protect dataset repos with expiring IP-restricted tokens.","nodeId":"ta-hf"},{"id":"ta-d1","step":4,"kind":"fired","name":"Dragos canaries fired","tag":null,"long":"Canary credentials seeded inside inference traffic alerted Dragos when the attacker replayed secrets mined from downloaded prompt datasets.","nodeId":"ta-canary"}],"detectedAt":{"time":"Automated secret scanner flagged xorl commit; disclosed Nov 21, 2026","short":"Scanner + canaries","text":"Together AI’s automated scanning caught the committed credential in togethercomputer/xorl, while five Dragos canary tokens later confirmed downstream secret mining and live replay."}},"plate":{"W":924,"H":382,"label":"How an AI coding agent commit on public GitHub xorl leaked June and July customer prompts from a private Hugging Face repo","zones":[{"id":"dev","label":"Developer workflow","kind":"boundary","x":8,"y":16,"w":193,"h":110},{"id":"cloud","label":"External repositories","kind":"boundary","x":239,"y":16,"w":421,"h":212},{"id":"safe","label":"What held","kind":"isolated","x":239,"y":248,"w":421,"h":110},{"id":"impact","label":"Secret mining","kind":"boundary","x":698,"y":16,"w":218,"h":212}],"nodes":[{"id":"ta-agent","name":"AI coding agent","detail":"Commits key to xorl","kind":"compromised","ev":"confirmed","x":20,"y":52,"w":169,"at":0,"story":"During development of Together AI’s public distributed RL training repository togethercomputer/xorl, an AI coding agent committed a live credential that granted access to an internal private Hugging Face repository. Passive inspection of xorl’s public .pre-commit-config.yaml and scripts/check_public_tree.py shows the repo explicitly planned around AI coding assistants and private /shared/huggingface paths, yet only enabled detect-private-key (PEM headers only) with no API-token scanner.","when":"Post-Jul 14, 2026","steps":[1],"ctl":["ta-k1"]},{"id":"ta-gh","name":"Public GitHub repo","detail":"togethercomputer/xorl","kind":"compromised","ev":"confirmed","x":352,"y":52,"w":194,"at":1,"story":"Together AI’s automated scanner flagged the exposed credential on public GitHub and the team reverted the commit. Reverting a git commit leaves the original blob readable in commit history and in any public GitHub event-stream scraper that fetched the push within seconds, keeping the exposure window open until issuer-side revocation.","when":"Exposure window","steps":[1,2],"ctl":["ta-k2"]},{"id":"ta-hf","name":"Private HF repo","detail":"Jun-Jul prompt samples","kind":"compromised","ev":"confirmed","x":352,"y":154,"w":194,"at":2,"story":"Using the harvested credential, an unauthorized party accessed Together AI’s private Hugging Face repository and downloaded stored prompt samples collected for routine software testing from MiniMax M3, GLM-5.2, and Kimi K2.6 serverless inference traffic, primarily from June 24, July 4, July 8, and July 14, 2026.","when":"Jul–Nov 2026","steps":[2,3],"ctl":["ta-k3"]},{"id":"ta-safe1","name":"Scoped dataset","detail":"No other prompt leaks","kind":"isolated","ev":"confirmed","x":251,"y":284,"w":183,"at":0,"story":"Together AI’s investigation with an external forensic firm and law enforcement found no evidence of additional prompt leakage outside the testing samples in that private Hugging Face repository.","when":"Confirmed Nov 21"},{"id":"ta-safe2","name":"ZDR now default","detail":"On for new accounts","kind":"isolated","ev":"confirmed","x":478,"y":284,"w":170,"at":0,"story":"Following the incident, Together AI changed Zero Data Retention (ZDR) to be the default setting for all new accounts and urged existing customers handling sensitive prompts to enable ZDR in account settings.","when":"Shipped Nov 21"},{"id":"ta-mine","name":"Prompts mined","detail":"Third-party keys pulled","kind":"compromised","ev":"confirmed","x":710,"y":52,"w":194,"at":3,"story":"The attacker systematically parsed downloaded customer prompt bodies for third-party API keys and cloud secrets and tested whether those credentials worked. In Dragos’s broader inference-provider canary study, attackers validated harvested AWS keys, enumerated S3 buckets, and searched AWS Secrets Manager and SSM Parameter Store.","when":"Jul–Nov 2026","steps":[3,4]},{"id":"ta-canary","name":"5 Dragos canaries","detail":"Live key tests tripped","kind":"compromised","ev":"confirmed","x":710,"y":154,"w":194,"at":4,"story":"Five of the credentials tested by the attacker were canary tokens seeded by Dragos during a two-million-prompt study across AI inference providers, independently confirming that stolen prompts were actively mined and replayed. Dragos noted July canary tokens were still firing months later.","when":"Nov 19–21, 2026","steps":[4],"ctl":["ta-d1"]}],"edges":[{"id":"tae1","kind":"attack","step":1,"pts":[[189,81],[352,81]]},{"id":"tae2","kind":"attack","step":2,"pts":[[449,110],[449,154]]},{"id":"tae3","kind":"attack","step":3,"pts":[[546,183],[628,183],[628,81],[710,81]]},{"id":"tae4","kind":"attack","step":4,"pts":[[807,110],[807,154]]}],"balloons":{"1":[271,81],"2":[449,132],"3":[628,132],"4":[807,132]},"noroute":[{"x1":201,"x2":239,"y":278,"label":"No route"}],"bps":[{"id":"ta-k1","step":1,"kind":"control","at":[271,81],"name":"Sandbox agent secrets","tag":"Limits step 1","lead":[[271,70],[271,53],[283,53]],"lx":289,"ly":57,"anchor":"start","long":"Run AI coding agents in isolated dev environments stripped of long-lived cloud and Hugging Face tokens so an automated commit cannot accidentally package production or dataset keys.","nodeId":"ta-agent"},{"id":"ta-k2","step":2,"kind":"control","at":[449,132],"name":"Push-block & revoke first","tag":"Limits step 2","lead":[[449,143],[449,154],[461,154]],"lx":467,"ly":158,"anchor":"start","long":"Pair GitHub Push Protection with gitleaks or trufflehog in pre-commit and CI (not PEM-only detect-private-key hooks), and always revoke exposed credentials at the issuer before reverting git history.","nodeId":"ta-gh"},{"id":"ta-k3","step":3,"kind":"control","at":[628,132],"name":"Default ZDR & scrub PII","tag":"Limits step 3","lead":[[628,121],[628,104],[616,104]],"lx":610,"ly":108,"anchor":"end","long":"Keep Zero Data Retention enabled by default on inference APIs, scrub credentials before storing authorized evaluation samples, and protect dataset repos with expiring IP-restricted tokens.","nodeId":"ta-hf"},{"id":"ta-d1","step":4,"kind":"fired","at":[807,160],"name":"Dragos canaries fired","tag":null,"lead":[[807,171],[807,182],[795,182]],"lx":789,"ly":186,"anchor":"end","long":"Canary credentials seeded inside inference traffic alerted Dragos when the attacker replayed secrets mined from downloaded prompt datasets.","nodeId":"ta-canary"}],"steps":[{"n":1,"time":"After Jul 14, 2026","short":"Agent commit","text":"AI coding agent commits private repo credential to public GitHub xorl","say":"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."},{"n":2,"time":"Exposure window","short":"Key harvested","text":"Scanner reverts commit while attacker grabs credential before revocation","say":"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."},{"n":3,"time":"Jul–Nov 2026","short":"Prompts pulled","text":"Attacker downloads June and July prompt samples and extracts secrets","say":"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."},{"n":4,"time":"Nov 19–21, 2026","short":"Nov 19–21","text":"Five Dragos canary tokens trip; Together AI CEO discloses breach","say":"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."}],"stripRows":[{"id":"sr-step-1","nodeId":"ta-gh","step":1,"lineStyle":"solid","bpIds":["ta-k1"]},{"id":"sr-step-2","nodeId":"ta-hf","step":2,"lineStyle":"solid","bpIds":["ta-k2"]},{"id":"sr-step-3","nodeId":"ta-mine","step":3,"lineStyle":"solid","bpIds":["ta-k3"]},{"id":"sr-step-4","nodeId":"ta-canary","step":4,"lineStyle":"none","bpIds":["ta-d1"]}],"detectedAt":{"time":"Automated secret scanner flagged xorl commit; disclosed Nov 21, 2026","short":"Scanner + canaries","text":"Together AI’s automated scanning caught the committed credential in togethercomputer/xorl, while five Dragos canary tokens later confirmed downstream secret mining and live replay."}},"codeArtifacts":[{"id":"ta-agent-secret-guard","filename":"block-agent-secret-commits.yaml","language":"yaml","description":"Replaces PEM-only pre-commit checks with gitleaks secret scanning on both push and pull_request, catching Hugging Face tokens (hf_) before code ever leaves a workstation or lands on main. Limits steps 1 and 2.","code":"# .github/workflows/secret-gate.yml\nname: Block Credentials on PR and Push\non:\n  pull_request:\n  push:\njobs:\n  gitleaks:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n        with:\n          fetch-depth: 0\n      - name: Scan commits for HF and cloud tokens\n        uses: gitleaks/gitleaks-action@v2\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n# Pair with GitHub Push Protection (org-wide, blocking) and run AI coding agents\n# inside containers with HF_TOKEN, AWS_SECRET_ACCESS_KEY, and ~/.cache/huggingface unset."},{"id":"ta-revoke-not-revert","filename":"audit-agent-env-and-zdr.sh","language":"sh","description":"Checks local developer or AI-agent sandboxes for ambient Hugging Face tokens before running autonomous edits and verifies pre-commit does not rely solely on PEM-only detect-private-key. Limits steps 1 and 3.","code":"#!/usr/bin/env bash\nset -euo pipefail\n\n# 1. Fail if ambient dataset/model tokens are exposed in an AI coding agent shell\nfor var in HF_TOKEN HUGGING_FACE_HUB_TOKEN TOGETHER_API_KEY AWS_SECRET_ACCESS_KEY; do\n  if [[ -n \"${!var:-}\" ]]; then\n    echo \"FAIL: $var is set in agent environment; unset before launching coding agents\"\n    exit 1\n  fi\ndone\nif [[ -f \"${HOME}/.cache/huggingface/token\" ]]; then\n  echo \"FAIL: persistent Hugging Face token file exists at ~/.cache/huggingface/token\"\n  exit 1\nfi\nif [[ -f .pre-commit-config.yaml ]] && ! grep -qE 'gitleaks|trufflehog|detect-secrets' .pre-commit-config.yaml; then\n  echo \"WARN: .pre-commit-config.yaml lacks a token/entropy scanner (detect-private-key only catches PEM headers)\"\nfi\necho \"PASS: no ambient Hugging Face or inference keys found in agent sandbox\""}],"reproductionLab":{"title":"Reproduction lab","summary":"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.","bundleMeta":"Local sandbox hygiene check, MIT license","safetyNote":"Run only inside your own local development repositories and sandboxes.","commands":"# Confirm no persistent Hugging Face token file sits in an AI coding agent workspace\ntest ! -f \"$HOME/.cache/huggingface/token\" && echo \"PASS: no cached HF token\"\n\n# Verify .pre-commit-config.yaml includes token scanning (not just PEM detect-private-key)\ngrep -qE 'gitleaks|trufflehog|detect-secrets' .pre-commit-config.yaml \\\n  && echo \"PASS: token scanner configured\" || echo \"WARN: add gitleaks or trufflehog hook\""},"iocs":[{"type":"url","value":"https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026","context":"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."},{"type":"url","value":"https://github.com/togethercomputer/xorl/blob/main/.pre-commit-config.yaml","context":"Public xorl pre-commit configuration inspected Dec 4 showing PEM-only detect-private-key and custom check_public_tree.py without API-token scanning."},{"type":"url","value":"https://github.com/togethercomputer/xorl/blob/main/scripts/check_public_tree.py","context":"Public xorl internal-reference scrubber explicitly blocking /shared/huggingface and AI assistant strings (claude, anthropic, copilot) while omitting credential-prefix rules."},{"type":"url","value":"https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens","context":"November 19, 2026 Dragos canary-token study documenting attacker validation of stolen AWS keys, S3 listing, and Secrets Manager enumeration from leaked inference prompts."}],"publishedAt":"2026-12-04T08:00:00Z","origin":"editorial"}}