OpenRouter Pulled 125 Endpoints From Zero Data Retention. 5 Changes to Make in Your LLM Calls This Week
Three disclosures landed within four days, and together they're the best argument I've seen this year for looking at what actually goes into your LLM prompts. 19 November: Dragos published research in which it sent ab
Three disclosures landed within four days, and together they're the best argument I've seen this year for looking at what actually goes into your LLM prompts.
- 19 November: Dragos published research in which it sent about two million prompts seeded with canary credentials (AWS keys, URLs, git and SSH targets) to AI providers between July and November, then watched what happened to them.
- 21 November: Together AI disclosed that an unauthorized party downloaded stored prompt samples from its serverless inference service, after an AI coding agent committed a credential to a private repository while the team was building a public one.
- 22 November: OpenRouter off-boarded three inference providers, removed 125 endpoints from Zero Data Retention (ZDR) eligibility, and notified affected customers.
Here's what each one found, and the changes worth making in your own code this week.
What Dragos found
The short version: once a prompt leaves your machine, a "no retention" flag doesn't guarantee much.
- Attackers stole request data from three hosting providers. In the largest case, a couple of hundred seeded AWS keys were copied from requests, including some flagged as ZDR.
- The stolen keys were tested within hours. The attackers searched S3 and secrets stores, tried to enable Bedrock models and added their own IAM users.
- Resellers on an open inference marketplace who logged requests could read prompts without any exploit, and leaked URLs and passwords were later used to try logging in to Dragos's canary servers.
- Some providers fetched secret URLs from prompts, including ZDR-flagged ones, and kept crawling them for weeks.
Dragos's key point is that privacy flags may only govern the first hop: a router can forward your request to parties you never chose. As the post puts it, "Zero Data Retention is supposed to mean something."
What Together AI disclosed
Together kept prompt samples for routine software testing in a private Hugging Face repository. While building its public xorl repo, an AI coding agent committed a credential for that private repository. Automated scanning caught it and the commit was reverted, but the credential had already been picked up. The intruder downloaded samples from requests to MiniMax M3, GLM-5.2 and Kimi K2.6, mostly from a handful of days in June and July, and then searched them for other credentials to try.
Together's fixes: scoped or short-lived credentials, credential checks on every pull request, updated rules for AI coding agents, and ZDR on by default for new accounts. It recommends that customers handling sensitive data turn ZDR on in their account settings.
What OpenRouter changed
OpenRouter says the research showed no breach of OpenRouter itself. It removed three providers, took 125 endpoints out of ZDR eligibility (some as a precaution), and won't restore them without further assurances. It also plans to run this kind of testing continuously. If you use OpenRouter, check your email for a notification and read the provider posts it links.
Five changes to make
1. Stop secrets reaching the prompt at all
In both incidents, the first thing attackers did with leaked prompts was look for credentials. Coding agents and "paste the error log" workflows are where .env values slip in. A small scrubber in front of every call catches the common formats:
import re
# Common credential formats. Extend with your own (internal tokens, DB URLs).
PATTERNS = {
"aws_access_key": r"\b(?:AKIA|ASIA)[0-9A-Z]{16}\b",
"github_token": r"\bgh[pousr]_[A-Za-z0-9]{36,}\b",
"openai_style_key": r"\bsk-[A-Za-z0-9_-]{20,}\b",
"slack_token": r"\bxox[abprs]-[A-Za-z0-9-]{10,}\b",
"private_key": r"-----BEGIN [A-Z ]*PRIVATE KEY-----[\s\S]+?-----END [A-Z ]*PRIVATE KEY-----",
}
# KEY=value lines from .env files and configs
ENV_LINE = r"(?im)^(\s*[A-Z0-9_]*(?:SECRET|TOKEN|PASSWORD|API_KEY)[A-Z0-9_]*\s*[=:]\s*)\S+"
def scrub(text: str):
found = {}
for name, pattern in PATTERNS.items():
text, n = re.subn(pattern, f"[REDACTED:{name}]", text)
if n:
found[name] = n
text, n = re.subn(ENV_LINE, r"\1[REDACTED]", text)
if n:
found["env_line"] = n
return text, found
Run against a pasted deploy script, it turns AWS_SECRET_ACCESS_KEY=wJalr... into AWS_SECRET_ACCESS_KEY=[REDACTED] and an AKIA... key into [REDACTED:aws_access_key], and tells you what it removed. Regex won't catch everything (Dragos notes the same about secret filters in general: they miss sensitive data that isn't shaped like a credential), so treat it as a seatbelt, not a guarantee.
2. Put your data policy in the request, not just the dashboard
If you route through OpenRouter, its provider routing options let you state your policy per request. data_collection: "deny" limits routing to providers that don't collect user data, and zdr: true limits it to ZDR endpoints:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key=os.environ["OPENROUTER_API_KEY"],
)
clean, found = scrub(user_prompt)
if found:
print("Redacted before sending:", found)
resp = client.chat.completions.create(
model="your-model-slug",
messages=[{"role": "user", "content": clean}],
extra_body={"provider": {"data_collection": "deny", "zdr": True}},
)
There are account-wide equivalents at openrouter.ai/settings/privacy. Per OpenRouter's docs, the request flag and the account setting combine, so a single request can't switch off ZDR you've enforced account-wide. If you need to know exactly which provider serves you, the only and allow_fallbacks: false options let you pin it.
3. Turn on ZDR where you call providers directly
Together now defaults new accounts to ZDR, but the post doesn't say existing accounts were changed. If you've had an account for a while, check the setting yourself. Do the same with any other provider you call directly.
4. Seed your own canaries
This is Dragos's most practical recommendation: put a fake credential that alerts you when used into your agent and pipeline contexts, and treat any use of it as an incident. It's the only way to find out what happens to your prompts after they leave, rather than taking a provider's word for it.
5. Check what your coding agent commits
Together's leak didn't start at an inference provider. It started with an agent committing a secret. Add a secret scanner as a pre-commit hook, for example gitleaks through the pre-commit framework:
# .pre-commit-config.yaml
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: vX.Y.Z # pin the latest tag from github.com/gitleaks/gitleaks/releases
hooks:
- id: gitleaks
Pair it with short-lived, narrowly scoped tokens for anything an agent can reach, so a leaked credential expires before someone else can use it.
The bigger picture
None of this is a reason to stop using hosted models. Dragos says as much: "None of this means that you should stop using AI services." It is a reason to stop treating "ZDR" as a checkbox and to keep secrets out of prompts in the first place. On the agent side, there's a longer roundup of AI agent guardrails and approval tools if you're tightening what your agents can touch.
Have you changed anything in your own setup after these disclosures? I'd like to hear what's worked.
Sources: Dragos: Three breaches, endless leaks: your AI supply chain needs canaries (19 Nov 2026) ยท Together AI: Security event, prompt leakage for requests in June and July 2026 (21 Nov 2026) ยท OpenRouter: Data processing incidents on inference providers (22 Nov 2026) ยท OpenRouter docs: Provider routing
I used AI to help draft this post and checked every claim against the sources above. I work at Toolbit.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.