transition2.aiStart a project

News · Software Factories & AI-Assisted Engineering · AI Reliability & Operations

Together AI: coding agent's leaked credential exposed prompt samples

Together AI says a credential committed by an AI coding agent to a public repository let an unauthorized party download stored samples of customer prompts.

Eric MacDougall ·

Diagram of five labelled boxes in a row: AI coding agent, Public GitHub repo, Exposed credential, Private HF repo, Prompt samples

Together AI disclosed on November 21, 2026, that an unauthorized party downloaded stored samples of a subset of prompts sent to its serverless inference service. The root cause was an AI coding agent that committed a credential to a public GitHub repository. Automated scanning caught the exposure and the commit was reverted, but the credential was still used during the exposure window. Five of the credentials the attacker then tested from the downloaded prompts were Dragos canaries.

What happened

Unite.AI reports Together AI's disclosure. Its byline is an AI research agent with editorial review. According to that report, the downloaded samples came mainly from requests on June 24, July 4, July 8 and July 14, 2026. The affected models were MiniMax M3, GLM-5.2 and Kimi K2.6.

Together traced the root cause to an AI coding agent working on its public GitHub repository "xorl." The agent committed a credential to that repository. According to Unite.AI, the credential granted access to a private Hugging Face repository holding the prompt samples, which had been collected for software testing.

Together's automated scanning caught the exposure and the commit was reverted. The credential was still used during the exposure window, per Unite.AI.

The attacker then searched the downloaded prompts for other credentials and tested them. Five of the credentials tested were canaries planted by Dragos, as reported by Unite.AI and consistent with the canary research Dragos published on November 19.

Together brought in an external forensic firm and law enforcement. It says it found no other prompt leakage and that its review of sensitive-data exposure is still under way. Affected customers will be contacted directly, according to Unite.AI.

Together, Phala and Novita have all published reports connected to the Dragos findings, according to The Decoder and The Hacker News. The Transition2 desk's separate report on OpenRouter's provider removals covers the wider Dragos research.

Why it matters

The chain of events here is short:

Each link is ordinary on its own. Together they turned one bad commit into a customer data exposure.

The detail that matters most for engineering teams is that the revert did not end the exposure. The commit was rolled back once scanning flagged it, yet the credential was still used, per Unite.AI. Removing a secret from the current code is not the same as making it stop working. Once a credential has been public, revocation is the step that closes the door.

The incident also shows the value of planted canaries. Some of the secrets the attacker tested were Dragos canaries, which gave outside researchers a way to see misuse downstream of the original leak. For teams building with coding agents at scale, Software Factories covers the surrounding practices.

What the Transition2 desk tested

The desk ran a local simulation to show two things. First, reverting a commit does not remove a leaked secret from git history or revoke it. Second, a pre-commit scanner can block an agent's commit.

The spec called for real git 2.40 or later and the gitleaks v8.21.2 release binary. Neither could be installed or downloaded in the sandbox. The run instead used:

  • Python 3.9 or later, standard library only, no third-party packages.
  • A pure-Python model of git's content-addressed history, written for the experiment.
  • A scanner whose regex approximates gitleaks' huggingface-access-token rule. It is not gitleaks.
  • Synthetic Hugging Face-format tokens generated locally.

Results. All 11 checks passed.

  • The history scan found exactly one finding, on the original agent commit, while the HEAD tree had zero findings after the revert.
  • The simulated credential stayed valid after the revert and after a history rewrite. It became invalid only after explicit revocation.
  • The pre-commit hook refused a staged token with exit code 1, HEAD did not move, and the hook output was redacted.

The controls also passed:

  • A clean file committed successfully.
  • A near-miss token produced 0 findings while a positive produced 1.
  • A rewritten history without the bad commit scanned clean.
  • No raw token appeared in any results file.
CHECK history_finding_on_original_commit: PASS n=1 commit=572149df5fe3cb48c2388432b27952cff83899cc expected=572149df5fe3cb48c2388432b27952cff83899cc
CHECK head_tree_clean_after_revert: PASS findings=0 raw_in_head=False
CHECK reverted_secret_retained_in_object_store: PASS retained=True
CHECK credential_still_valid_after_revert_and_rewrite: PASS revert=True rewrite=True
CHECK credential_invalid_after_revoke: PASS valid=False
CHECK precommit_hook_blocks_staged_token: PASS refused=True exit=1 head_unchanged=True
CHECK precommit_output_redacted: PASS raw_in_output=False
CHECK control_clean_commit_succeeds: PASS ok=True
CHECK control_near_miss_not_flagged_positive_flagged: PASS near=0 positive=1
CHECK control_rewritten_history_clean: PASS findings=0
CHECK results_files_contain_no_raw_token: PASS regex_hits=0
CHECKS 11/11

What this does not show: anything about Together AI's systems, the "xorl" repository, or how the actual credential was used. It does not measure gitleaks' real detection rate, and the commit hashes were not verified against a real git binary. It also does not show that pre-commit hooks stop every agent leak. Hooks can be skipped, so server-side scanning and scoped or short-lived credentials still matter.

What it means for businesses

Code written by an agent carries the same risks as code written by a person, and it can produce more commits in less time. The Together case shows that a test dataset built from real customer prompts can become a target in its own right. It was reachable with a single credential, per The Hacker News. Data kept for testing deserves the same access scoping and review as production data. A leaked credential calls for revocation, not only a code rollback.

What it means for AI users

Prompts sent to a hosted inference service may be retained in some form, in this case as samples collected for software testing. The attacker's next step was to search those prompts for credentials. Keeping passwords, API keys and other secrets out of prompts limits what any downstream exposure can reveal. Together says affected customers will be contacted directly.

What it means for developers

Three practical points follow from the facts and the desk's simulation:

  • Revert is not revocation. A secret that reached a public repository stays in history after a revert and keeps working until it is revoked at the issuing service.
  • Scan before the commit lands. A pre-commit scanner with redacted output can stop an agent's commit locally. It works best alongside server-side scanning, because local hooks can be bypassed.
  • Use scoped or short-lived credentials. They narrow what any single leaked token can reach, which matters when an agent has write access to a public repository.

Dragos's canary approach, described in its report, adds a detection layer for the cases where prevention fails.

Copyright Eric MacDougall.

Sources

  1. Together AI discloses prompt leak after coding agent exposed credential (accessed 2026-11-22)
  2. OpenRouter Drops 3 Providers After Researchers Catch Months of Prompt Theft at AI Hosting Firms (accessed 2026-11-22)
  3. Security researchers show how cheap AI inference providers steal keys and snoop on users (accessed 2026-11-22)
  4. Three breaches, endless leaks: Your AI supply chain needs canaries (accessed 2026-11-22)

← All posts