{
  "@context": "https://schema.org",
  "@type": "Report",
  "url": "https://optimuslabs.io/research/briefings/together-ai-coding-agent-prompt-leak-2026",
  "identifier": "together-ai-coding-agent-prompt-leak-2026",
  "headline": "An AI Coding Agent Leaked Together AI's Stored Customer Prompts",
  "name": "An AI Coding Agent Leaked Together AI's Stored Customer Prompts",
  "abstract": "Together AI kept samples of real June and July inference prompts in a private Hugging Face repo. Its own AI coding agent committed the key to that repo in public code, and an attacker downloaded the samples and hunted them for secrets.",
  "description": "Two lessons sit inside one incident. First, inference is not a stateless pipe: Together AI kept samples of real customer prompts for software testing. Second, the key to those samples leaked through an AI coding agent, which committed it to the company's public xorl repository. An attacker used it to download the prompts, search them for credentials and test what it found, including five Dragos canary keys. **Our view:** your coding agents hold credentials and push code, and your inference providers hold your prompts. Both are part of your attack surface, and most inventories list neither. For the wider router story, see our companion briefing on OpenRouter and Zero Data Retention.",
  "datePublished": "2026-11-25",
  "dateModified": "2026-11-25",
  "inLanguage": "en",
  "isAccessibleForFree": true,
  "author": {
    "@type": "Organization",
    "name": "Optimus Labs · Civilizations",
    "url": "https://optimuslabs.io/research/briefings"
  },
  "publisher": {
    "@type": "Organization",
    "name": "Optimus Labs",
    "url": "https://optimuslabs.io"
  },
  "keywords": [
    "Together AI",
    "Hugging Face",
    "GitHub",
    "Dragos",
    "Agent",
    "Credential",
    "Inference",
    "agentic AI security",
    "AI agent supply chain"
  ],
  "about": [
    {
      "@type": "Thing",
      "name": "Together AI"
    },
    {
      "@type": "Thing",
      "name": "Hugging Face"
    },
    {
      "@type": "Thing",
      "name": "GitHub"
    },
    {
      "@type": "Thing",
      "name": "Dragos"
    }
  ],
  "citation": [
    {
      "@type": "CreativeWork",
      "name": "Together AI: Security event: Prompt leakage for requests in June and July of 2026 (Nov 21, 2026)",
      "url": "https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026"
    },
    {
      "@type": "CreativeWork",
      "name": "Dragos: Three breaches, endless leaks: Your AI supply chain needs canaries (Nov 19, 2026)",
      "url": "https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens"
    },
    {
      "@type": "CreativeWork",
      "name": "SC Media: OpenRouter removes three AI providers following data exposure incidents (Nov 24, 2026)",
      "url": "https://www.scworld.com/brief/openrouter-removes-three-ai-providers-following-data-exposure-incidents"
    },
    {
      "@type": "CreativeWork",
      "name": "SecurityWeek: AI Inference Providers Failed to Detect Hacking and Prompt Theft, Says Dragos (Nov 24, 2026)",
      "url": "https://www.securityweek.com/ai-inference-providers-failed-to-detect-hacking-and-prompt-theft-says-dragos/"
    },
    {
      "@type": "CreativeWork",
      "name": "Hugging Face: Enterprise Nightwatch documentation",
      "url": "https://huggingface.co/docs/hub/en/enterprise-nightwatch"
    },
    {
      "@type": "CreativeWork",
      "name": "GitHub: Push protection (GitHub Secret Protection)",
      "url": "https://docs.github.com/en/code-security/concepts/secret-security/push-protection"
    },
    {
      "@type": "CreativeWork",
      "name": "Optimus Labs: Zero Data Retention Is a Routing Promise (Nov 25, 2026)",
      "url": "https://optimuslabs.io/research/briefings/ai-inference-prompt-leakage-openrouter-together-2026"
    }
  ],
  "encoding": [
    {
      "@type": "MediaObject",
      "encodingFormat": "text/markdown",
      "contentUrl": "https://optimuslabs.io/research/briefings/together-ai-coding-agent-prompt-leak-2026.md"
    },
    {
      "@type": "MediaObject",
      "encodingFormat": "application/json",
      "contentUrl": "https://optimuslabs.io/research/briefings/together-ai-coding-agent-prompt-leak-2026.json"
    }
  ],
  "additionalProperty": [
    {
      "@type": "PropertyValue",
      "name": "severity",
      "value": "CRITICAL · AGENT CREDENTIAL LEAK"
    },
    {
      "@type": "PropertyValue",
      "name": "blastRadius",
      "value": "Every customer whose prompts to Together AI serverless inference for MiniMax M3, GLM-5.2 or Kimi K2.6 landed in the June and July samples. Any secret, source code or customer record inside those prompts should be treated as read by the attacker. Together AI has not yet said which customers are affected, so the known exposure is a floor, not the total."
    }
  ],
  "briefing": {
    "slug": "together-ai-coding-agent-prompt-leak-2026",
    "number": 20,
    "title": "An AI Coding Agent Leaked Together AI's Stored Customer Prompts",
    "dek": "Together AI kept samples of real June and July inference prompts in a private Hugging Face repo. Its own AI coding agent committed the key to that repo in public code, and an attacker downloaded the samples and hunted them for secrets.",
    "tldr": "As of Nov 25, 2026. On Nov 21, Together AI disclosed that it had stored prompt samples from its serverless inference service, from requests to MiniMax M3, GLM-5.2 and Kimi K2.6 mostly on June 24, July 4, July 8 and July 14, 2026, in a private Hugging Face repository. While building its public GitHub repo xorl, an AI coding agent committed a credential for that repository. Together AI's scanning caught it and the commit was reverted, but an unauthorized party had already used the key to download the samples, search them for credentials to other services and test them. Five of those credentials were Dragos canaries. Together AI says it has found no prompt leakage beyond this incident; its review of what the prompts contained is ongoing.",
    "date": "2026-11-25",
    "severity": "critical",
    "severityLabel": "CRITICAL · AGENT CREDENTIAL LEAK",
    "types": [
      "agent",
      "credential",
      "inference"
    ],
    "relatedUseCase": [
      "secure-ai-agent-adoption",
      "shadow-agent-discovery",
      "ai-agent-governance"
    ],
    "vendors": [
      "Together AI",
      "Hugging Face",
      "GitHub",
      "Dragos"
    ],
    "liveIncident": {
      "asOf": "2026-11-25",
      "note": "Live incident, as of Nov 25, 2026. Together AI is still reviewing the affected prompts and will contact affected customers directly."
    },
    "blastRadius": "Every customer whose prompts to Together AI serverless inference for MiniMax M3, GLM-5.2 or Kimi K2.6 landed in the June and July samples. Any secret, source code or customer record inside those prompts should be treated as read by the attacker. Together AI has not yet said which customers are affected, so the known exposure is a floor, not the total.",
    "summary": "Two lessons sit inside one incident. First, inference is not a stateless pipe: [Together AI](https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026) kept samples of real customer prompts for software testing. Second, the key to those samples leaked through an AI coding agent, which committed it to the company's public xorl repository. An attacker used it to download the prompts, search them for credentials and test what it found, including five [Dragos](https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens) canary keys. **Our view:** your coding agents hold credentials and push code, and your inference providers hold your prompts. Both are part of your attack surface, and most inventories list neither. For the wider router story, see our companion briefing on [OpenRouter and Zero Data Retention](/research/briefings/ai-inference-prompt-leakage-openrouter-together-2026).",
    "whatHappened": [],
    "whyItMatters": [],
    "whatToDo": [
      "Find every workload that called Together AI serverless inference for MiniMax M3, GLM-5.2 or Kimi K2.6 in June or July 2026, and the team that owns it.",
      "Rotate any AWS key, API token, password or other secret that may have appeared in those prompts. The attacker searched the samples for exactly these.",
      "Turn on Zero Data Retention in your Together AI account settings if you send sensitive prompts, as Together AI now advises.",
      "Map which AI coding agents in your company can commit or push to repositories, and which credentials sit within their reach.",
      "List every Hugging Face and GitHub token your teams and coding agents can read, scope them to read-only for specific repos, set expiry dates, and check access logs on private repos that hold prompts or data.",
      "If your teams store private datasets or evals on Hugging Face, turn on Hugging Face Enterprise Nightwatch so a stolen token used from an unfamiliar place is flagged and revoked.",
      "Turn on GitHub push protection so commits carrying known secret formats are blocked before they land. It is free on public repositories (off by default) and sold as GitHub Secret Protection under GitHub Advanced Security for private and internal repositories.",
      "Scan every pull request for credentials, including commits written by coding agents, and prefer short-lived or keyless credentials.",
      "Block or redact secrets before prompts leave the device, so a provider's stored samples cannot hand out live keys.",
      "Give every coding agent and inference integration an accountable owner, so you can answer customer and regulator questions quickly."
    ],
    "affected": {
      "checks": [
        "Did any workload call Together AI serverless inference for MiniMax M3, GLM-5.2 or Kimi K2.6 in June or July 2026, directly or through a router?",
        "Did those prompts carry AWS keys, API tokens, .env files, source code or regulated customer data?",
        "Do your own AI coding agents have write access to public repositories, and which secrets can they read while they work?",
        "Has Together AI contacted you directly, and is Zero Data Retention turned on for your account?"
      ],
      "notAffected": [
        "Together AI states it has not identified evidence of prompt leakage beyond this incident.",
        "The leaked samples were stored test samples from three models on specific dates, not all Together AI traffic."
      ],
      "note": "These are Together AI's own statements as of Nov 25, 2026. Its review of the prompt contents is ongoing."
    },
    "narrativeSections": [
      {
        "heading": "What happened",
        "lede": "Stored prompts, a coding agent with a key, and a public commit.",
        "paragraphs": [
          "**Prompt samples kept for testing.** [Together AI](https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026) collected prompt samples, which it says were authorized for software testing, and stored them in a private Hugging Face repository. They came from requests to MiniMax M3, GLM-5.2 and Kimi K2.6, primarily on June 24, July 4, July 8 and July 14, 2026.",
          "**The coding agent committed the key.** During development of Together AI's public GitHub repository xorl, an AI coding agent committed a credential that opened the private Hugging Face repository. Together AI's automated scanning detected it and the commit was reverted.",
          "**The attacker was faster.** During the exposure window, an unauthorized party obtained the Hugging Face access token, downloaded the stored prompt samples from Hugging Face, searched them for credentials to other services and tested whether they worked. The cited reports do not show any breach of Hugging Face itself. Five of the credentials tested were canaries from a [Dragos experiment](https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens) that seeded about two million prompts with trap keys.",
          "**Response (Nov 21).** Together AI worked with an external forensic firm and law enforcement. It moved to scoped, short-lived or keyless credentials, now checks all pull requests for credentials, made Zero Data Retention the default for new accounts and updated its rules for using AI coding agents. [SC Media](https://www.scworld.com/brief/openrouter-removes-three-ai-providers-following-data-exposure-incidents) reported that OpenRouter removed Together AI from its provider pool; OpenRouter itself did not name the providers."
        ]
      },
      {
        "heading": "Why this is the agent story inside the inference story",
        "lede": "Your coding agents hold keys and push code. Your inference providers hold your prompts.",
        "paragraphs": [
          "Developers hand coding agents broad access to repositories, terminals and credentials. One routine commit by an agent turned a private store of customer prompts into a public download. The same thing can happen inside any company that runs coding agents, including yours.",
          "Inference providers are also storage. Prompts from coding agents and enterprise apps carry AWS keys, .env files, source code and customer data. Once a provider keeps samples, a single leaked key exposes all of them, and the attacker's first move was to hunt those prompts for more keys.",
          "For regulated industries, a leaked AWS key can be rotated in minutes. Leaked patient, client or trial data cannot be revoked."
        ]
      },
      {
        "heading": "Defense in depth for agentic infrastructure",
        "lede": "Each layer catches a different failure. Only the source layer sees the agent itself.",
        "paragraphs": [
          "This incident crossed five layers of a modern AI stack, and each layer needs its own control:",
          "**1. Source (laptop, IDE, CI):** the coding agent, its SKILLs and MCPs, and the local tokens it can read. Optimus Labs maps and governs this layer, stopping credentials from leaving in commits or prompts.",
          "**2. Code host:** [GitHub push protection](https://docs.github.com/en/code-security/concepts/secret-security/push-protection) blocks commits that contain known secret formats before they land. It is free on public repositories (off by default) and sold as GitHub Secret Protection, part of GitHub Advanced Security, for private and internal repositories.",
          "**3. Data platform:** [Hugging Face Enterprise Nightwatch](https://huggingface.co/docs/hub/en/enterprise-nightwatch) watches Hub activity in real time and flags or revokes a stolen token used from an unfamiliar location or mass-cloning private repos.",
          "**4. Inference provider:** retention and capture settings, including Zero Data Retention controls and whether test captures are stored.",
          "**5. Detection:** canary keys, as Dragos used, catch stolen secrets when an attacker tests them against live services.",
          "**Where the platform tools stop.** Both GitHub and Hugging Face now sell a fix at their own door. Nightwatch sees a stolen token being used on Hugging Face; GitHub blocks a known secret at push time. Neither sees the coding agent on the developer's laptop that read the token, nor a secret pasted into an inference prompt or written in a format the scanner misses. Platform controls belong in your stack, but they do not replace source-side governance of the agents themselves."
        ]
      }
    ],
    "vendorPerspective": {
      "heading": "How Optimus Labs helps",
      "paragraphs": [
        "Optimus Labs maps this attack surface and governs it. We discover every coding agent, SKILL, MCP and plugin on your endpoints and in the cloud, along with the inference providers they send prompts to (Discover). We inspect what each agent can reach, including repository write access and the credentials in its environment (Inspect). We alert on and block secrets leaving in prompts or commits (Defend). And we tie every agent and integration to an accountable owner, so you can answer customers and regulators the same day (Trust)."
      ]
    },
    "sourcing": {
      "confirmed": [
        "Together AI (Nov 21, 2026): prompt samples from MiniMax M3, GLM-5.2 and Kimi K2.6, primarily June 24, July 4, July 8 and July 14, 2026, stored in a private Hugging Face repository.",
        "Together AI (Nov 21, 2026): an AI coding agent committed a credential for that repository to public GitHub repo xorl; scanning detected it and the commit was reverted.",
        "Together AI (Nov 21, 2026): an unauthorized party downloaded the samples, searched them for credentials and tested them; five were Dragos canary credentials.",
        "Together AI (Nov 21, 2026): no evidence of additional prompt leakage found; review of prompt contents ongoing; ZDR now default for new accounts."
      ],
      "assessed": [
        "SC Media (citing BleepingComputer) named Together AI among the three providers OpenRouter removed; OpenRouter itself did not name them.",
        "Which customers' prompts were in the samples has not been disclosed. Treat the known exposure as a floor."
      ]
    },
    "faq": [
      {
        "q": "What happened at Together AI?",
        "a": "Together AI stored samples of June and July 2026 inference prompts in a private Hugging Face repository. An AI coding agent committed the credential for that repository to Together AI's public GitHub repo xorl. An attacker used it to download the samples, search them for credentials and test them, including five Dragos canary keys."
      },
      {
        "q": "Was Hugging Face breached?",
        "a": "No evidence of that. The attacker used a valid Hugging Face credential that leaked into Together AI's public GitHub repository. The weakness was where the key ended up, not Hugging Face's storage."
      },
      {
        "q": "Was this caused by an AI coding agent?",
        "a": "Yes, according to Together AI. An AI coding agent committed the credential during development of the public xorl repository. Together AI's scanning caught it and the commit was reverted, but the key had already been obtained."
      },
      {
        "q": "Could our own coding agents leak a credential like this?",
        "a": "Yes. Coding agents often run with access to repositories, terminals and secrets. Map which agents can push code, which credentials they can read, scan their commits for secrets, and assign each agent an owner."
      },
      {
        "q": "Would Nightwatch or GitHub Advanced Security have stopped this?",
        "a": "It depends. GitHub push protection can block a commit carrying a supported secret format before it lands, and Hugging Face Enterprise Nightwatch can flag and revoke a stolen token once an unfamiliar actor starts reading private repos. Either could have shortened or blocked part of the chain, depending on configuration and token format, but neither governs the coding agent on the developer's machine or stops secrets from leaving in prompts."
      },
      {
        "q": "What should Together AI customers do?",
        "a": "Check whether you called MiniMax M3, GLM-5.2 or Kimi K2.6 on Together AI serverless inference in June or July 2026, rotate any secret that may have been in those prompts, turn on Zero Data Retention, and contact security@together.ai with questions."
      }
    ],
    "timeline": [
      {
        "label": "Prompt samples collected",
        "date": "2026-06-24",
        "note": "Primarily June 24, July 4, July 8 and July 14, 2026."
      },
      {
        "label": "Dragos begins sending canary prompts",
        "date": "2026-07-01",
        "note": "About two million prompts through November."
      },
      {
        "label": "Dragos publishes canary findings",
        "date": "2026-11-19"
      },
      {
        "label": "Together AI discloses the prompt sample leak",
        "date": "2026-11-21",
        "note": "AI coding agent committed the Hugging Face key to public repo xorl."
      },
      {
        "label": "OpenRouter off-boards three providers",
        "date": "2026-11-22",
        "note": "SC Media names Together AI among them."
      }
    ],
    "sources": [
      {
        "label": "Together AI: Security event: Prompt leakage for requests in June and July of 2026 (Nov 21, 2026)",
        "url": "https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026"
      },
      {
        "label": "Dragos: Three breaches, endless leaks: Your AI supply chain needs canaries (Nov 19, 2026)",
        "url": "https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens"
      },
      {
        "label": "SC Media: OpenRouter removes three AI providers following data exposure incidents (Nov 24, 2026)",
        "url": "https://www.scworld.com/brief/openrouter-removes-three-ai-providers-following-data-exposure-incidents"
      },
      {
        "label": "SecurityWeek: AI Inference Providers Failed to Detect Hacking and Prompt Theft, Says Dragos (Nov 24, 2026)",
        "url": "https://www.securityweek.com/ai-inference-providers-failed-to-detect-hacking-and-prompt-theft-says-dragos/"
      },
      {
        "label": "Hugging Face: Enterprise Nightwatch documentation",
        "url": "https://huggingface.co/docs/hub/en/enterprise-nightwatch"
      },
      {
        "label": "GitHub: Push protection (GitHub Secret Protection)",
        "url": "https://docs.github.com/en/code-security/concepts/secret-security/push-protection"
      },
      {
        "label": "Optimus Labs: Zero Data Retention Is a Routing Promise (Nov 25, 2026)",
        "url": "https://optimuslabs.io/research/briefings/ai-inference-prompt-leakage-openrouter-together-2026"
      }
    ],
    "image": "/research/diagrams/together-ai-coding-agent-prompt-leak-2026.png",
    "imageAlt": "Civilizations two-lane threat diagram with defense-in-depth layer labels. Top lane (Inference and Data platform): customer prompts to Together AI serverless inference for MiniMax M3, GLM-5.2 and Kimi K2.6 in June and July 2026 mirrored into a private Hugging Face repository. Bottom lane (Source and Code host): an AI coding agent on a dev environment commits the Hugging Face token to GitHub public repo xorl. Right (Detection): an external attacker scrapes the token, pivots into Hugging Face to download the prompts, hunts for secrets and triggers five Dragos canary keys.",
    "pdfUrl": "/__l5e/assets-v1/d39af15e-d53d-45f1-b112-e1cfe543c809/together-ai-coding-agent-prompt-leak-2026-brief.pdf",
    "featured": true
  }
}