Skip to content

Consulting

Access Keys Leaked Online: What the Together AI Case Teaches Anyone With a Website or an Integration

On November 21, 2026, Together AI, a company that offers AI models through an API, described an incident: an AI coding agent put a credential into a public repository, and someone used it to download samples of customer prompts. You don't need to be a tech company to learn from it: if your website, app or integrations rely on access keys, it is worth knowing who protects them and how.

  • Giuseppe Pinto
  • Published on
  • 6 min read

What happened, according to Together AI

In a post signed by its CEO, Together AI explains that, for routine software testing, it kept some prompt samples authorized for that use in a private Hugging Face repository. While work was going on in a public GitHub project, an AI coding agent committed the credential for that private repository.

The company's automated scanning caught the credential and the commit was reverted. By then, however, someone had already obtained it and used it to download the samples: requests sent to the serverless inference service, on the MiniMax M3, GLM-5.2 and Kimi K2.6 models, mostly from a few days in June and July 2026.

According to the company, whoever downloaded the data then searched it for credentials to other services and tested them; five of the ones tested were decoy credentials from a Dragos security experiment. Together AI says it is working with an external forensic firm and law enforcement, has found no other prompt leakage, and is still reviewing whether personal or sensitive data was exposed. Affected customers will be contacted directly.

The next day OpenRouter, a platform that routes requests to several model providers, published a page about incidents researchers had reported at a number of providers, with a list of their announcements: Together AI's is among them.

What Together AI changed after the incident

The company listed four measures. They are worth a look because they are the same ones you can ask for on your own projects, on a smaller scale.

  • Scoped or short-lived credentials, and keyless access where supported, to limit the damage if a key gets out.
  • A check on every pull request to catch credentials before the code is merged.
  • Zero data retention as the default setting for new accounts.
  • Updated rules on how AI coding agents are used in development.

Why it matters to a small business too

An access key is a password for machines: it connects your website to your management software, your online shop to payments, your contact form to your CRM, an automation to your invoicing tool. Whoever has the key can do whatever that key allows, without going through any login.

AI coding tools are useful and I use them too, but they write fast and don't know on their own what is confidential. A key pasted into a test file, a config file uploaded by mistake, a repository made public: these are simple mistakes, and the Together AI case shows they can happen even with automated checks in place.

The point is not to fear AI, but to remember that responsibility stays with whoever publishes the code. In the case Together AI described, reverting the commit was not enough: the credential had already been seen and used.

Five practical checks

You don't need expensive tools. These are the checks I consider basic for any project with access keys, whether written by hand or with AI help.

  • Automatic secret checks: GitHub looks for credentials in repositories with secret scanning, free on public repositories, and open source tools like Betterleaks, maintained by the people who made Gitleaks, can block them before the commit or in the pipeline.
  • Keys out of the code: they belong in environment variables or a secrets manager, and files like .env should be in .gitignore so they never reach the repository.
  • Minimum permissions and expiry: each key should only do what that integration needs and, where the service allows it, expire after a set period.
  • Rotation after a leak: if a key ended up where it shouldn't, revoke it and replace it right away. Deleting it from the code is not enough, because it stays in the history and someone may already have copied it.
  • Human review of AI-generated code: before it goes live, someone has to read it, paying special attention to configuration, credentials and permissions.
Chain-link gate closed with a chain and padlock

What to ask your developer

You don't have to become a security expert. A few calm questions to whoever looks after your website or integrations are enough:

  • Where are the access keys for connected services stored, and who can see them?
  • Is the project repository private? Is there an automatic secret check?
  • Does each key have only the permissions it needs? Is there any key that never expires?
  • If a key leaked online, what would you do and how fast could you replace it?
  • Is code written with AI tools reviewed by a person before it goes live?

How I can help

Integrations are a big part of my work, and access keys are the most delicate part of them. In the automation for Defined Body by Alebis, for example, the online shop, Zapier and fattureincloud.it talk to each other through access credentials: that is why I treat them as confidential data from day one.

If you want a check of your project, where the keys are, what permissions they have and what would happen if one leaked, write to me through the banner below or the contact form. I'll tell you what to fix, in order of importance.

Sources

References consulted for this article. Always check official sources before making decisions.

Desk with a laptop showing code

Development and design

A website, an app or an idea to bring to life?

Websites, apps, UI/UX design, automations and AI, code review, support and technical consulting.

Message me

Frequently asked questions

Together AI said samples of a subset of prompts sent to its serverless service in June and July 2026 were downloaded. Its review of whether personal or sensitive data was exposed is still ongoing, and the company said it will contact affected customers directly.
No. The key stays in the repository history and someone may already have copied it. Revoke it and replace it with a new one at the service that issued it, then check whether it was used.
According to GitHub's documentation, it runs automatically and for free on public repositories. Private company repositories need a paid plan; open source tools like Betterleaks are an alternative.
No. But generated code should be reviewed by a person, keys should stay out of the code and there should be an automatic secret check. These rules apply to any code, written by hand or not.

More articles you might like