ThreatIntelligence-IncidentResponse

AI Prompt Leaks: Lessons from the Dragos Canary Study



Executive Summary


To evaluate the security of the AI supply chain, Dragos seeded approximately two million AI prompts with canary URLs and credentials. The investigation revealed that prompt data was stolen from at least three AI hosting providers and from the system of a Chinese AI lab, which accessed secret URLs from prompts marked for zero data retention. No security team can audit the providers its prompts pass through, whether they are foreign or domestic. Every team can test its own side: the models it calls and what goes into each prompt. Qualys TotalAI maps the models and AI services in use, red-teams any model with a chat completion endpoint (including foreign models), and detects secrets before they reach a prompt.


Inside the Canary Experiment

In a study published on November 19, 2026, a team from Dragos, led by Chief Research Officer HD Moore, sent approximately two million prompts to popular AI services from July through November, tracing around 2,000 request routes. Each prompt carried canary tokens: unique URLs and live AWS keys linked to empty accounts that were fully monitored. If a URL was accessed, it indicated that the system had read the prompt; if a key was used, it showed that someone had stolen a credential. 

What the Dragos Canary Study Exposed

Breached Providers

Attackers have stolen prompt data from at least three AI hosting providers, and Dragos reports that these providers were unaware of the breaches until they were notified. In the largest breach, every canary request Dragos sent during several late-October windows was stolen. This included requests that the provider had rejected before any models had a chance to run. Attackers tested the AWS keys, listed S3 buckets, searched Secrets Manager and Parameter Store, attempted to enable Amazon Bedrock models, create Bedrock API keys, and add IAM users. One adversary later used ARTEX, an LLM-driven penetration testing framework, to confirm that the keys were active.

Leaky Routes

AI routers forward requests to pools of hosting providers, and every hop can access the full prompt. A Zero Data Retention (ZDR) setting is intended to ensure that the service an application calls does not retain prompts or responses, yet Dragos found ZDR-marked requests stolen or scraped further down the route. They also discovered instances of marketplace sellers logging prompts and a router quietly forwarding some traffic to these marketplaces.

A Foreign Lab Reading Flagged Prompts

A Chinese AI lab’s systems fetched secret URLs from more than half of the prompts sent to its models, including about two-thirds of those marked ZDR; U.S. resellers of its models triggered the same scraper. In a later statement, the lab said an internal security monitoring process extracted and probed the URLs, and that it has disabled that process for forwarded API traffic.

Providers Cannot Be Audited. The Customer Side Can Be Tested. 

Every finding turned on one fact: whatever sits in a prompt, from a live credential to customer data or source code, can be seen by every hop on the route. A credential turns that exposure into an intrusion. No model test can show what a provider’s infrastructure does with a request. Security teams can only test their own systems, and Qualys TotalAI answers four questions about this.

1. Which Models and Routes Are in Use?

Qualys TotalAI leverages existing Qualys sensors. Cloud Agents and scanners can fingerprint AI software and GPUs, cloud connectors map managed AI services, Container Security covers AI workloads, and a browser plug-in shows workforce AI  usage.

Qualys Container Runtime Security adds evidence about where containerized AI applications connect. Security teams can correlate DNS and outbound TCP events from monitored workloads to track direct connections to AI routers or provider endpoints outside their approved list. For requests routed through a provider, they can use router or gateway records to identify the reported inference provider. Qualys TotalAI enhances this visibility by testing supported model endpoints for sensitive information disclosures.

Self-hosting, which Dragos recommends where affordable, takes third parties off the route but makes the model server the target. Qualys detects known vulnerabilities and default credentials in servers such as Ollama, vLLM and LiteLLM, and AI detection and response (AI-DR)¹, an extension of Qualys EDR to AI assets, is designed to catch attacks on that infrastructure as they happen.

2. Do The AI Models In Use Leak Their Context?

Red-team tests show what a model gives away under attack. TotalAI evaluates any model with a chat completion endpoint, including foreign models, against 300+ attack scenarios mapped to OWASP, MITRE ATLAS, and the EU AI Act, including 21 sensitive information disclosure checks. A model that discloses a real credential from its system prompt, retrieved documents or tool output proves it sat in the model’s context, where every hop could see it. When a test fails, automated guardrail remediation¹ is designed to push the fix into Amazon Bedrock Guardrails.

3. Can a Secret Reach the Prompt?

Guardrails control what a model repeats, not what it was sent: in the largest breach, attackers stole some requests rejected before any model ran. The test that matters is whether a secret can reach the prompt at all, and that starts where secrets live. Qualys scanning detects exposed secrets in container images, CI/CD pipelines, and code repositories. This leak class was responsible for a provider notice in November, where an AI coding agent committed a credential to a public repository. TotalAI MCP scans test the servers that agents source context from for credential exposure. Additionally, MCP tool-call tracing¹ is designed to show what each tool call passes into an agent’s context. Secrets also enter at run time, pasted by users or returned by tools, where static scans cannot see them. Policy-based runtime controls with inline blocking¹ are designed to block or redact secrets before a request exits the organization. A key that never reaches the first hop cannot be stolen further down the route.

4. What Can a Stolen Key Reach?

Qualys analysis of a 2026 intrusion traced an exposed AWS key to a complete cloud takeover in under ten minutes. TotalCloud CIEM shows what each cloud identity can access and flags excess privileges. Its posture checks cover AI services such as Amazon Bedrock, SageMaker, and Azure OpenAI. TruRisk Insights AI attack paths¹ are designed to connect exposed endpoints, excess permissions, and sensitive data into one prioritized path.

What to Do This Week

  1. Map the models and routes in use. Flag any connection to a router or provider that no one approved, as well as any self-hosted model server that can be reached without authentication.
  2. Test the models in use, including foreign ones, after every change to a model or prompt.
  3. Find secrets in code, images, and agent context. Remove them before an agent can load them.
  4. Rotate secrets in prompts covered by any provider or router notice, and give agents short-lived, least-privilege keys.
  5. Hunt for the indicators. Search CloudTrail for ARTEX user agents artex-agent and artex-judge-r121, Bedrock enablement, new Bedrock API keys, and new IAM users.

Dragos also recommends pinning providers and verifying Zero Data Retention on every hop.

Test the Models No One Can Audit

The Dragos study found no new class of vulnerability: exposed credentials and broken privacy promises, moving through a supply chain customers can barely see. No team can audit the provider side. Every team can test the models it calls and keep secrets out of the prompt.


Learn how to map your AI in use, test its models, and catch secrets before they reach a prompt.


Organizations already running Qualys Cloud Agents have a first AI inventory waiting, with no separate AI security agent to deploy.

Key Takeaways

  1. Treat any secret that has appeared in a prompt as exposed.
  2. A privacy flag is a promise from one hop, but a prompt crosses several.
  3. Providers cannot be audited from outside, but models can be tested and the first hop mapped.
  4. Test whether a secret can reach the prompt.

Frequently Asked Questions (FAQs)

What did the Dragos canary study find?

From July through November 2026, Dragos sent about two million prompts carrying canary URLs and AWS keys to AI services. It found prompt data stolen from at least three AI hosting providers, marketplace sellers logging prompts, and a Chinese AI lab’s systems fetching secret URLs from prompts marked for zero data retention.

Can security teams test AI models they do not host?

Yes, for model behavior: TotalAI tests any model with a chat completion endpoint, including foreign models. What a provider’s infrastructure does with a request is outside what any model test can see.

Does Zero Data Retention protect AI prompts?

Zero Data Retention (ZDR) protects a prompt only at the hop that honors it. In the Dragos study, ZDR-flagged requests were stolen inside breached providers, and their secret URLs fetched downstream. Security teams should verify the route as well as the settings, including what each hop’s retention terms exempt from.

What is AI supply chain security?

AI supply chain security means controlling every service that handles an organization’s AI traffic: models, routers, inference providers, and the agents that build each prompt.

How should organizations secure self-hosted AI models?

Treat model servers such as Ollama, vLLM and LiteLLM like any other exposed service: patch known vulnerabilities, remove default credentials and require authentication on every API. Qualys publishes detections for specific issues with Ollama, vLLM, and LiteLLM.



Source link