Treat routing as a policy-controlled layer. Define which models and providers can serve which request types, log every route decision, and attach ownership to the credentials used by the gateway. If routing changes affect data handling, approval should include security, privacy, and AI governance review before production rollout.
Why This Matters for Security Teams
llm routing is no longer a convenience feature. In production, it decides which model sees which prompt, where outputs are processed, and which controls apply to data in transit and at rest. That makes routing part of the security boundary, not just an optimisation layer. The risk is not only misconfiguration; it is also policy drift, weak approval discipline, and unclear ownership of the gateway credentials that can change provider behaviour.
For AI governance, routing is where model risk becomes operational. A request can shift from a low-risk internal model to a third-party service, or from a general-purpose model to a more capable one with different retention terms and logging behaviour. The NIST AI Risk Management Framework and the NIST AI 600-1 Generative AI Profile both point toward governance, traceability, and measurable risk treatment rather than ad hoc platform decisions. For agentic systems, routing also intersects with tool use and instruction handling, which is why OWASP’s agentic guidance is relevant here. In practice, many security teams encounter routing failures only after a prompt has already been sent to the wrong model, rather than through intentional control testing.
The core issue is that routing changes can alter data handling without changing the application code path that teams usually review. That means traditional change control often misses the real control point.
How It Works in Practice
Effective governance starts with a routing policy that defines allowed models, approved providers, request classes, data sensitivity tiers, and fallback behaviour. A secure gateway or orchestration layer should enforce those rules before the prompt leaves the trust boundary. Security teams should treat the routing service as a privileged system and the API keys, service accounts, and certificates behind it as managed secrets with explicit ownership and rotation.
At minimum, routing should capture:
- Which request type triggered the decision.
- Which model or provider was selected, and why.
- Whether any data was redacted, summarised, or transformed.
- Which policy version was enforced at the time.
- Which human or system approved exceptions and overrides.
This logging supports incident review, vendor comparison, and compliance evidence. It also helps with model risk review when a provider changes retention terms, training-use terms, or regional processing. NIST’s NIST Cybersecurity Framework 2.0 is useful for mapping routing to governance, protection, detection, and recovery outcomes, while OWASP’s OWASP Agentic AI Top 10 helps teams think about prompt injection, tool abuse, and unsafe autonomy at the orchestration layer. Where routing determines whether a model can act on behalf of a user, the control design should be reviewed like any other privileged workflow.
Practical implementation usually includes policy-as-code, allowlists for providers and regions, exception handling with expiry dates, and periodic tests that verify the gateway does not silently fail open. These controls tend to break down when multiple product teams share a routing service but each team maintains separate data-handling assumptions because policy drift becomes invisible across environments.
Common Variations and Edge Cases
Tighter routing controls often increase latency, administrative overhead, and vendor friction, requiring organisations to balance safer model selection against delivery speed. That tradeoff is real, especially when teams want dynamic model choice for cost, performance, or quality reasons.
Best practice is evolving for adaptive routing. Some organisations use risk-based policies that allow stronger models for higher-risk tasks and cheaper models for low-risk tasks, but there is no universal standard for this yet. The safe pattern is to make the rule explicit, reviewable, and reversible. If routing depends on user prompts, retrieval results, or inferred intent, then prompt injection and context manipulation can influence the selection itself, which is a governance issue as much as a technical one. The MITRE ATLAS adversarial AI threat matrix is useful for threat modelling those abuse paths.
Another edge case is multi-tenant routing, where one gateway serves different business units, each with distinct privacy obligations. In those environments, approval should not stop at the platform team; privacy, legal, and AI governance owners need visibility into provider terms, logging scope, and retention. For autonomous or semi-autonomous agents, routing should also be assessed alongside execution authority, because a model that can call tools or trigger workflows creates higher blast radius than a passive chat interface. The guidance is strongest when routing decisions are deterministic and centrally governed; it becomes less reliable when developers can override policy per request in production.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and MITRE ATLAS address the attack and risk surface, while NIST AI RMF, NIST AI 600-1 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | GOVERN | Routing policy needs accountable AI governance and risk ownership. |
| NIST AI 600-1 | Generative AI profiles map routing to data handling and disclosure risk. | |
| OWASP Agentic AI Top 10 | Agentic routing can expose prompt injection and tool-abuse paths. | |
| NIST CSF 2.0 | GV.OC-01 | Routing governance belongs in organisational context and oversight. |
| MITRE ATLAS | Adversarial AI tactics help model abuse of routing and selection logic. |
Classify routing paths and align them to approved handling, logging, and retention rules.
Related resources from NHI Mgmt Group
- How should security teams govern LLM and agent access in production?
- How should security teams govern LLM outputs in production AI applications?
- How should security teams govern production LLM calls without slowing applications down?
- How should security teams govern AI-generated code in production environments?