By Dileep Solanki · Published and last updated: 30 November 2026 · Based on the original research and the responses published so far.
If you use AI through an API, you may have ticked a "Zero Data Retention" box and assumed your prompts were safe. A study published on 19 November by security firm Dragos suggests that assumption can fail. The researchers planted fake secrets in nearly two million prompts and then watched where they turned up. This article explains what they found, what it does and doesn't prove, and what you can do about it. It ends with a small tool I wrote and tested for catching secrets before they leave your machine.
What Dragos did
Dragos's Chief Research Officer, HD Moore, describes the method in the report. Over five months, from July through November 2026, the team submitted approximately two million prompts containing unique URLs and canary token credentials to widely used AI services and monitored what happened after inference. A canary token is a secret that exists in only one place, so if anyone ever uses it, you know that place has been exposed. Each prompt carried different bait, which let the team trace any use back to the exact prompt, model, router and privacy setting involved.
What they found
Three providers were breached
The most serious finding was direct. The report says Dragos found attackers actively stealing data from three different hosting providers, and none of the three knew about their breach until Dragos notified them. The earliest incident dates back to mid-July. The largest involved a couple of hundred fake AWS keys, each sent once to one provider during a few short windows in late October, and every request sent during those windows was stolen. Some stolen keys came from requests the provider had rejected before any model ran, which suggests the attacker copied requests at the provider's front door. In the other two breaches, some of the stolen requests were marked as Zero Data Retention.
Attackers then behaved like attackers. They tested the keys, in some cases within hours, then listed storage buckets and searched for more secrets, and the bait keys were used for tens of thousands of AWS API calls.
Dragos adds an important point: the prompts were bait, but they were processed alongside real customer requests, which were almost certainly copied too.
Resellers could simply read prompts
The second finding didn't need a hack. In some AI marketplaces, sellers compete on price. A seller only had to list a model at the lowest price, enable request logging, and wait. Dragos saw individuals on what looked like home internet connections opening the bait links and trying to log in to the fake servers by hand. The leak followed the seller, not the whole marketplace: prompts sent through a different seller for the same model were never touched.
Privacy settings were ignored
The third finding involves data sharing. A Chinese AI lab, which Dragos does not name, fetched the secret URLs from more than half of the prompts sent to its models between July and October, including roughly two-thirds of requests marked "no data collection" or Zero Data Retention. U.S. providers that resell the lab's models triggered the same scraper. In one case, a secret link appeared in a company chat channel 24 days after the original request.
Because Dragos doesn't name the lab, avoid guessing which company it is. Some outlets have linked specific names to the story, but those links come from provider notices, not from Dragos's own report.
Why a privacy flag protects less than you think
The report's core point is about hops. AI routers offer one endpoint that forwards your request to a pool of models, sometimes through several intermediaries. The report says every hop can see the entire prompt and response, and that a privacy flag only binds the first hop. Providers, it says, often ignore these settings either deliberately or because of bugs, and Dragos's route tracing found hidden hops that the advertised path never mentioned.
In other words, a Zero Data Retention label describes a promise by one party. It says nothing about the next party in the chain.
What OpenRouter did
OpenRouter, a widely used AI router, responded on 22 November. It says the findings did not show any breach or unauthorized access of OpenRouter. It reports that it has off-boarded three providers, removed 125 endpoints from Zero Data Retention eligibility, and notified all potentially affected customers. It also says it is adapting the researchers' testing approach for ongoing checks and requiring appropriate assurances and validation before restoring Zero Data Retention eligibility to any endpoint removed in this review. Its page links to security notices from several providers, and says not all affected providers have posted publicly.
What you can do
Dragos's own advice, summarised: host models yourself if you can afford it, go directly to a first-tier provider, use routers with care and avoid reseller marketplaces, seed your own canaries, and enable secret filtering. Based on that, here is a practical order of actions. The prioritisation is my own.
- Stop putting secrets in prompts. This is the one step that works whatever the route. AI agents will send whatever they can read, including credentials, so keep keys, passwords and tokens out of files and context your tools can see.
- Know the path. Find out which providers and routers your requests really use. Pick upstream providers yourself instead of accepting a default pool.
- Be wary of unusually cheap inference. The report notes that some marketplace capacity comes from questionable sources. A price far below the market is a warning sign.
- Rotate anything you have sent. If you ever pasted a real key or password into a prompt sent through a cheap or unknown route, treat it as exposed and replace it. This is my advice, not a finding of the study.
- Plant your own canaries. Add a fake credential to the context your agents already send, and treat any use of it as an incident. Dragos notes a free Thinkst Canarytoken is enough to start.
- Filter before sending. See the tool below.
- Match the data to the risk. For customer records or regulated data, check your legal obligations and your provider contracts. This article isn't legal advice.
A tested starter: scan prompts for secrets before they leave
Dragos recommends secret filtering and also warns it isn't a cure-all, since there is plenty of sensitive data in prompts that isn't shaped like an API key. I wanted to see what that looks like in practice, so I wrote a small scanner using only Python's standard library and tested it on ten prompts. All keys and passwords below are fake or taken from public documentation.
import re
PATTERNS = {
"aws_access_key_id": re.compile(r"\b(?:AKIA|ASIA)[0-9A-Z]{16}\b"),
"aws_secret_like": re.compile(r"\b[A-Za-z0-9/+=]{40}\b"),
"private_key_block": re.compile(r"-----BEGIN [A-Z ]*PRIVATE KEY-----"),
"credential_assign": re.compile(r"(?i)\b(?:password|passwd|pwd|secret|api[_-]?key|token)\b\s*[:=]\s*\S+"),
"bearer_token": re.compile(r"(?i)\bbearer\s+[A-Za-z0-9._\-]{20,}"),
"url_with_credentials": re.compile(r"\b[a-z][a-z0-9+.\-]*://[^/\s:@]+:[^/\s@]+@"),
}
def scan(text):
"""Return the names of all patterns that match."""
return [name for name, rx in PATTERNS.items() if rx.search(text)]
def redact(text):
"""Replace every match with a labelled placeholder."""
for name, rx in PATTERNS.items():
text = rx.sub(f"[REDACTED:{name}]", text)
return text
The full script, including the ten labelled test prompts, is [add your Gist link here]. I ran it on Python 3.12.3 and this is the real output:
caught ['aws_access_key_id', 'aws_secret_like'] <- 'Why is S3 denied? Key AKIAIOSFODNN7EXAMPLE secret wJalrXUtnF'
caught ['url_with_credentials'] <- 'Connect with postgres://admin:S3cretPass@db.internal:5432/ap'
caught ['credential_assign'] <- 'password = hunter2 for the staging box'
MISSED [] <- 'my root password is hunter2, can you fix the ssh config'
caught ['private_key_block'] <- '-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEA...'
caught ['bearer_token'] <- 'Authorization: Bearer abcdefghijklmnopqrstuvwxyz123456'
FALSE POSITIVE ['aws_secret_like'] <- 'Commit 3f786850e387550fdab836ed7e6dc881de23001b broke the build'
clean (correct) [] <- 'Summarize this meeting about Q3 pricing.'
MISSED [] <- 'The staging API token is sk-live-ABCDEF1234567890ABCDEF'
MISSED [] <- 'Customer Priya Sharma, priya@example.com, +91 98290 00000 asked for a refund'
caught=5 missed=3 false_positives=1 correctly_clean=1
What the test shows
- It catches well-formatted secrets: AWS keys, connection strings with embedded passwords, private key headers, bearer tokens, and
password = ...assignments. - It misses natural language. "My root password is hunter2" slipped through because my pattern needs a colon or equals sign. People write secrets in sentences.
- It misses unfamiliar formats. The
sk-live-...style key wasn't recognised because I didn't write a pattern for it. - It misses personal data. A customer's name, email and phone number is sensitive but doesn't look like a credential. This is the gap Dragos warns about.
- It over-flags. A 40-character git commit hash looks just like a 40-character secret, so it was flagged by mistake. Too many false alarms make people switch tools off.
That makes five caught, three missed and one false positive out of ten. With ten hand-written prompts, treat this as an illustration, not an accuracy rate. Mature scanners add many more patterns, entropy checks and verification of whether a key is live. Use this as a teaching baseline, not as your only defence.
Limits of the evidence
- This is one security firm's experiment. Dragos sells security products and its post ends with a product promotion, so read its recommendations with that in mind. I'm not aware of independent replication yet.
- Dragos doesn't name most providers. Reported names come from other sources and I haven't verified them.
- The findings show that data was exposed in specific cases. They don't show that every provider, or even most of them, behave this way. Several large providers may be fine.
- I haven't verified the providers' own incident notices, beyond OpenRouter's statement that it lists them.
- Things are moving quickly, with more disclosures likely.
Final assessment
The practical lesson isn't "never use AI APIs". It's that privacy promises apply to one hop, and the lowest price may decide your route for you. Treat every prompt as something that might be read by someone you never chose, keep secrets out of it, and know where your requests go. A checkbox is a promise. A canary is evidence.
Sources and Further Reading
- Dragos, HD Moore, "Three breaches, endless leaks: Your AI supply chain needs canaries" (19 November 2026): https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens
- OpenRouter, "Data Processing Incidents on Inference Providers" (22 November 2026): https://openrouter.ai/blog/announcements/data-processing-incidents-on-inference-providers/
- The Hacker News, coverage of OpenRouter's response: https://thehackernews.com/2026/11/openrouter-drops-3-providers-after.html

