Skip to content
RESEARCH INDEX BREACHROAD / INTELLIGENCE NOTE

AI model router security for policy-aware fallback

Model routers optimise cost and quality but can change region, retention and safety. Enforce data-class policy and test downgrade and fallback paths.

PUBLIC RESEARCH
AUTHOR
/ Penetration Tester (OSCP, PNPT)
PUBLISHED
14 June 2026
READING TIME
9 min read
TOPIC
AI Security
AI model router security for policy-aware fallback

An AI model router chooses models by cost, latency, capability or availability. That choice can also change region, retention, context limits, tool use and safety policy.

Routing is policy

Give each model a profile of allowed data classes, regions, tools, maximum impact and approved use cases. Filter prohibited options before cost optimisation.

Never let prompt text select a model. Application identity and data classification come from trusted middleware.

Safe fallback

An outage does not authorise sending data to an unapproved provider. Fail closed for sensitive data and use an explicit list for low risk. Record the model that actually handled each request.

Tests

Test header spoofing, forced expensive routing, downgrade to weaker safeguards, cross-region paths, tool-schema differences and partial streaming failures. Monitor routing-distribution changes.

Routing belongs in an LLM gateway but needs its own threat model. Every new model passes evaluation before joining the pool.

Inputs to the routing decision

A router may use data classification, tenant, region, required tools, budget, latency and risk profile. These values must come from trusted context rather than arbitrary client headers or prompt text. Users may express a preference, while policy defines the permitted model set.

The audit record should explain the decision through rule identifier, policy version, selected model and relevant constraints. Do not store full input merely to justify routing; classification labels and identifiers are usually sufficient.

Security equivalence between models

Two models are not interchangeable because they share an endpoint. They may produce tool calls differently, interpret schemas differently and apply distinct safeguards. Maintain a minimum profile per use case: required capabilities, security evaluation, permitted regions and adapter version.

Fallback may select only from models satisfying that profile. If none qualifies, refuse or switch to a no-tools mode. Silent movement to weaker controls is a security downgrade.

Pre-production validation

Run the same dataset against every candidate and compare response quality, argument format, refusals, disclosure and injection resistance. Test partial outage, interrupted streaming, timeouts and provider error variants.

After deployment, monitor routing share, cost, latency, refusals and policy-blocked actions. A sudden distribution change may indicate an outage, bad rule or an attempt to force a more expensive or less protected model.

Cost-manipulation defence

Set budgets per tenant, application and task. The router must not accept a prompt’s claim that a problem “needs the most expensive model”. Model-tier escalation is a policy decision based on trusted signals and remaining budget.

Limit reclassification and route changes within one task. An attacker may provoke uncertainty, long contexts or adapter errors to create cost. A circuit breaker ends the loop and preserves its trace.

Model change management

Adding a registry record does not enable routing automatically. Run evaluation, a canary on low-sensitivity traffic and a tool-call comparison first. Define rollback triggers such as security regression, region mismatch, schema errors or instability.

Version routing rules and deploy gradually. A quick return to the previous policy is safer than manual production editing. After every change, verify that audit records still explain selection and language routing has not changed unintentionally.

Assign an owner and review date to every rule. Temporary cost, region or model exceptions should expire automatically. Otherwise the router accumulates historical bypasses that nobody can justify and that may become an invisible downgrade path.

Before retiring a model, review every assigned use case and fallback. Removal without a dependency map may send traffic to an untested emergency path.

Test unknown data classes and missing tenant context. The safe default is refusal or the most constrained profile, never the broadest model pool. Include these cases in every routing-rule regression suite.


Sources: OWASP Secure AI Model Ops, NIST AI RMF.

SHARE / COPY