Agent Security · Updated November 27, 2026

AI inference supply-chain security: routing, retention and provider verification

An inference request can cross a router, marketplace, reseller, model host and subprocessor before a token returns. Security starts by treating that route as a data supply chain—not as one API endpoint with one privacy switch.

15 minute readSecurity architecturePrimary sources

Zero Data Retention is a contractual and routing property, not a cryptographic guarantee. A secure design proves where requests travel, limits what they carry and assumes that any authorized processing hop can become an exposure point.

Provider investigations turned inference routing into an incident boundary

On November 22, 2026, OpenRouter said it had off-boarded three providers, removed 125 endpoints from ZDR eligibility and notified potentially affected customers after reviewing research from Dragos. OpenRouter said the research did not show a breach of OpenRouter itself and that it was adding ongoing tests and technical path verification.

Dragos had sent nearly two million prompts containing unique canary URLs and credentials through AI services. It reported evidence of provider compromises, prompt access by marketplace sellers, undisclosed routing hops and privacy settings that did not hold across the full path. Together AI separately disclosed that an AI coding agent committed a credential to a public repository; an unauthorized party used it to download stored prompt samples from a private repository.

Keep the claims scoped

The disclosures describe different incidents and providers. OpenRouter did not name its three removed providers, and the public evidence does not prove they are the same providers Dragos identified. Treat each provider notice, affected window and customer notification separately.

On November 26, Dragos researcher HD Moore publicly identified MiniMax as the provider through which canary URLs were repeatedly opened after requests were forwarded to its cloud, including requests marked for no retention. MiniMax said an automated security system stored and opened URLs to check threats, that full conversations were not retained, that stored addresses were deleted and that it found no evidence of customer conversations or model responses being disclosed to third parties. Atlas Cloud stopped forwarding requests to MiniMax and told affected customers to treat secrets submitted to the M3, M2.7 and M3.1 Flash models as potentially exposed.

This identification narrows one provider path but does not attribute every access event or prove that MiniMax was one of OpenRouter's three removed providers. The durable operational change is to make provider approval revocable: new incident evidence should automatically suspend a route until the operator can re-establish its upstream path, handling behavior and notification scope.

Put a policy broker before every inference route

Application or agent
    ↓ data classification + secret filtering
Inference policy broker
    ↓ pinned model, provider, region and retention tier
Approved router or direct provider
    ↓ verified upstream path
Model host
    ↓ response filtering + trace evidence
Application audit store

The broker should decide whether a request may leave the trust boundary, which model and provider are allowed, whether a router may select fallbacks, and what evidence must be retained. It should reject unknown provider changes rather than silently optimize for price or availability.

Keep application telemetry independent of provider prompt retention. Record a request identifier, policy decision, route, model version, data class and result status without copying the sensitive prompt into every log system.

Every additional hop creates a different failure mode

Failure modeEngineering consequence
Provider compromiseAttackers can copy prompts before model execution; ZDR cannot protect an already compromised host.
Undisclosed forwardingResidency, retention and subprocessor assumptions may be false even when the first endpoint is compliant.
Marketplace seller loggingA low-cost route may expose complete prompts and responses to an operator with legitimate platform access.
Credential leakage in developmentOne committed token can turn stored prompt samples or evaluation corpora into a secondary breach.
Fallback driftAvailability logic can route sensitive requests to a provider that was never security-approved.
Over-loggingGateways, traces and observability tools can recreate the retention exposure a provider setting was meant to remove.

Reduce both prompt sensitivity and route uncertainty

  1. Classify before inference. Map source code, customer data, credentials, regulated records and internal plans to explicit handling tiers.
  2. Remove secrets. Block known credential formats, replace identifiers with short-lived references and give tools scoped runtime access instead of placing tokens in context.
  3. Pin the route. Select approved provider, model, region and retention policy; disable automatic fallbacks for sensitive workloads.
  4. Bound retention. Record contract terms, abuse-monitoring exceptions, subprocessors, backups and deletion behavior for every hop.
  5. Separate evidence from content. Keep route and policy metadata while minimizing replicated prompt bodies in logs, traces and evaluation stores.
  6. Limit provider credentials. Use scoped, short-lived or workload-bound keys with spend, model and network restrictions where supported.

Test the path without placing real secrets at risk

  • Seed non-production canary URLs or credentials unique to one request, provider and policy state.
  • Compare the advertised route with network, billing and error-envelope evidence.
  • Run the same tests with and without ZDR to confirm that the routing decision actually changes.
  • Re-test after provider, model, region, price, fallback or contract changes.
  • Require providers to publish incident contacts, affected windows and customer-notification criteria.
  • Review the broker's approved-route inventory against production traffic rather than configuration alone.

Canaries establish that data escaped a boundary; they do not automatically identify which hop leaked it. Preserve enough per-request route evidence to investigate without turning the evidence store into another prompt archive.

Treat leaked prompt data as a compound credential and data incident

  1. Freeze affected routes and preserve model, provider, region, account, request and policy metadata.
  2. Rotate every live key, token, password and signed URL that may have appeared in prompts or responses.
  3. Identify source repositories, documents, customer records and tool results included during the affected window.
  4. Ask every hop for access logs, retention state, subprocessors, deletion evidence and notification scope.
  5. Review canary activity, cloud audit logs and downstream authentication attempts for follow-on access.
  6. Restore only to a pinned, verified route; do not rely on the same broad fallback pool during recovery.

Routing flexibility and data assurance pull in opposite directions

  • Direct providers reduce hops and simplify contracts, but can reduce model choice and failover options.
  • Routers centralize billing and portability, but require proof that policy survives upstream selection and fallback.
  • Self-hosting can keep prompts inside the operator boundary, but transfers patching, model serving, abuse control and capacity risk to the team.
  • Rich observability improves debugging, but prompt capture must be minimized and independently governed.
  • ZDR reduces normal retention when honored; it does not prevent compromise, in-memory access or unsafe downstream forwarding.

Before sending sensitive context

  1. Can the team name every organization that may process the request?
  2. Is provider selection pinned for the workload's data class?
  3. Are automatic fallbacks constrained to equally approved routes?
  4. Are secrets removed or replaced with scoped runtime access?
  5. Can routing and retention claims be tested with safe canaries?
  6. Do logs preserve evidence without duplicating prompt content?
  7. Can incident response identify and rotate everything exposed in one request window?
  8. Is route approval revoked automatically when provider evidence or policy changes?

Operational takeaway

A privacy flag is not a chain of custody.Make the route explicit, minimize what crosses it, verify the path continuously and preserve enough evidence to contain a leak quickly.