Two million canary prompts show where your RAG context really goes

Dragos seeded about two million prompts with canary credentials and found three breached inference providers, resellers reading prompts and ignored retention flags. Here is what that changes for teams shipping RAG and agents.

Written by
Baraqix Engineering
Published
Read
5 min
Points of light travel along a chain of thin lines through several relay nodes. A few faint side branches split off from the middle nodes and fade into the dark.

On 19 November, Dragos published research on AI inference supply chains. Between July and November 2026 it sent approximately two million prompts that carried unique URLs and canary credentials to widely used AI services, then watched where those secrets showed up. Dragos reports three kinds of finding. Data from at least three AI providers was exposed to attackers. Resellers on an inference marketplace could view and keep customer prompts through ordinary request logging. Several providers appeared not to honor privacy settings or published policies.

On 22 November, OpenRouter responded. It removed three providers from its platform, took 125 endpoints out of Zero Data Retention (ZDR) eligibility and notified potentially affected customers. It also says the findings showed no breach of OpenRouter itself.

01

What the primary sources say

  • Dragos says none of the three breached providers knew about the breach until Dragos told them. The earliest incident dates to the middle of July.
  • In the largest breach, attackers took a couple hundred of the bait AWS keys. Each key went into a single request to one provider within a few short windows in late October, and every request Dragos sent during those windows was stolen. Some of the stolen keys came from requests the provider rejected before any model ran, so Dragos concludes the copying happened at the provider's front door.
  • Attackers sometimes tested the keys within a few hours. They then listed S3 buckets, searched Secrets Manager and Parameter Store, tried to enable Bedrock models and create Bedrock API keys, and tried to add their own IAM users. The bait keys drew tens of thousands of AWS API calls.
  • In the other two breaches, some of the stolen requests were marked ZDR.
  • One Chinese AI lab's systems fetched the secret URLs from more than half of the prompts Dragos sent to its models between July and October. That included roughly two thirds of the requests marked ZDR or no data collection. Prompts sent to US hosts that resell this lab's models triggered the same scraper.
02

The provider reports do not describe one failure

Dragos does not name the breached providers, and we will not try to match its anonymous cases to named companies. OpenRouter links to the statements providers have posted. Two of those statements, from Together AI and Phala, describe intrusions in detail, and the causes are very different.

Together AI wrote on 21 November that it had saved prompt samples from June and July for software testing and stored them in a private Hugging Face repository. An AI coding agent committed a credential for that repository to a public GitHub repository. An unauthorized party used the credential to download the samples, searched them for credentials and tested some of them. Five of those were Dragos canaries. Together says it has found no evidence of other prompt leakage beyond this incident.

Phala's preliminary report of 10 November describes a live intrusion. An attacker took control of an inference VM on a new GPU server that was serving production traffic without full production hardening. That made request data visible while it was being processed. Phala tells users whose DeepSeek V4 Flash 0731 requests OpenRouter sent to Phala between 21 October and 8 November to treat the request contents as exposed. The canary evidence confirms misuse only for requests sent on 21 and 22 October.

So the phrase "provider breach" covers at least two different things: a stored copy of prompts kept for testing, and a compromised inference machine. Neither needed a new kind of AI attack. Both are ordinary backend hygiene failures, and they happened at companies whose product is handling your context.

03

What this means for RAG and agent systems

In a RAG system, the prompt holds the retrieved passages. Every answer sends those passages to a model, and in a document or support system they can include contract text, internal reports and customer messages. In an agent, the prompt holds whatever the tools returned, and that can include config files and tokens. Dragos makes the point directly: a privacy flag only binds the first hop.

Our position is that ZDR is a promise written in a contract and gives you no technical guarantee. Plan as if every hop on the route can read every prompt and might keep a copy. We would also rather pay more per token for a short route to a named provider than send traffic through the cheapest pool. A lower token price does not make up for not knowing who reads your prompts.

04

What we would do

  1. Keep credentials out of context. Tools authenticate on the server, and the model only sees handles. Scan tool output for credential formats before it goes back into context.
  2. Pin the route. Name the provider, turn off fallback to shared pools and log which provider served each request. For sensitive workloads, go direct to one provider under one contract.
  3. Send less. Send only the passages that answer the question, and mask identifiers the answer does not need before the call.
  4. Treat eval sets as production data. In Together's incident, the data that leaked was a set of prompt samples saved for testing, reached through one exposed credential. Together's scanning caught the credential and the commit was reverted, but the samples were downloaded during the exposure window. Prompts saved from production for testing need scoped, short lived credentials and secret scanning on every pull request.
  5. Seed canaries on every route. Put a unique fake credential or URL in each route's system prompt and treat any use of it as an incident.
  6. Write the rotation plan now. Phala told affected users to rotate every secret their requests contained. You should already know which secrets your prompts can contain.

Seeding canaries takes very little code. Dragos started with free Thinkst Canarytokens. The pattern looks like this:

LST/01Python
import secrets

def seed_canary(route: str, registry: dict) -> str:
    # One unique token per provider route, never reused anywhere else
    token = secrets.token_hex(8)
    url = f"https://{token}.canary.example.com/q3-contract.pdf"
    registry[token] = {"route": route}
    return f"Internal reference (not for customers): {url}"

# Append the line to the system prompt for that route.
# Any DNS or HTTP hit on the token hostname means a copy of the prompt was read.

None of this means you should stop using hosted inference. It means you should choose where your context goes and keep checking that it goes there. If you want help reviewing what your RAG pipeline or agent sends to which provider, see our AI integration work. We would map those routes with you before we change anything.

Baraqix Engineering. Written by the engineers who did the work.

NOTE/18. First published .

Where this work fits

The services behind this note.

  • SVC/AI-01

    AI integration

    RAG, agents, MCP servers and voice, built into the product you already have.

  • ENG/SPRINT

    Discovery Sprint

    A fixed price Discovery Sprint. The architecture document and a working spike on your real data, in a repository you own.

If something in this note looks like your problem, the reply comes from the engineers who built it.