By NHI Mgmt Group Editorial TeamBased on Lasso Security: “How Lasso Secures AI Gateway Traffic Across Kong, Portkey, LiteLLM, Envoy, and More” (June 8, 2026)

TL;DR: AI gateways now route enterprise model access, but they do not inspect prompt content, response content, or tool calls, leaving organisations blind to prompt injection, jailbreaks, and sensitive data leakage, according to Lasso Security. The practical shift is that AI traffic inspection is becoming an identity and policy control, not just an observability add-on.


At a glance

What this is: This is an analysis of AI gateway traffic inspection as an identity and policy control for enterprise AI, with the key finding that routing without content inspection leaves prompt and tool-use risks ungoverned.

Why it matters: IAM, PAM, and NHI teams need to treat AI gateway telemetry as part of access governance, because model traffic now carries sensitive data, policy decisions, and agent actions that need control.


Context

AI gateway traffic inspection is the practice of examining prompts, responses, and tool calls as they move through the layer that brokers access to models. In this article, the governance gap is that many teams can route AI traffic, but cannot see the content or policy effect of what passes through it. For IAM programmes, that turns the gateway into a control point for access, usage, and data handling rather than a simple plumbing layer.

The article frames Lasso Security as a layer that sits on top of existing gateways rather than replacing them. That matters because the identity problem is not just who can reach the model, but what those identities send, receive, and trigger once the interaction starts. As model use expands across many vendors and agents, the security model has to follow the interaction, not just the connection.


Key questions

Q: How should teams govern AI gateways that route model and tool traffic?

A: Teams should treat the gateway as the control boundary for identity, spend, logging, and policy enforcement. That means registering each AI workload or agent, attaching a clear owner, and ensuring every significant model or tool call is traceable. The goal is not to slow AI down, but to make it accountable in production.

Q: Why are AI gateways not enough to stop prompt injection and data leakage?

A: AI gateways control where traffic goes, but they do not understand what the traffic means. Prompt injection, jailbreaks, and sensitive data leakage happen inside the content layer, so teams need inspection and policy enforcement that can evaluate the interaction itself, not only the network path.

Q: What are the signs that AI traffic inspection is not working?

A: The clearest warning signs are traffic logs that show routing but not content, policies that cannot explain why a prompt was blocked or allowed, and audit trails that miss the returned output or any downstream tool action. If your team cannot reconstruct the interaction, the control is too shallow for governance or incident review.

Q: What happens when AI gateway controls are limited to rate limits and API keys?

A: The gateway still manages access, but the organisation remains blind to what the model receives and returns. That leaves prompt injection, jailbreak attempts, sensitive-data leakage, and unsafe tool actions outside the control boundary. The result is a visible network flow with an invisible security decision.


Technical breakdown

Why AI gateways are becoming policy enforcement points

AI gateways centralise model routing, key handling, and access controls, which makes them an obvious place to apply security inspection. But the gateway’s native job is to move traffic and manage policy around that traffic, not to interpret prompt content or infer whether an interaction is safe. Once organisations use the gateway to broker access across many models and agents, the gateway becomes a governance layer. That creates a control boundary where identity, data, and behaviour intersect. The practical question is no longer only whether a client is authenticated, but whether the interaction itself is permitted, safe, and consistent with policy.

Practical implication: treat the AI gateway as part of access governance, not just model transport.

Prompt inspection, response inspection, and tool-call control

The article distinguishes between traffic flow and traffic content. Prompt injection, jailbreak attempts, and sensitive-data leakage are content-level threats that survive even when network access is properly brokered. Tool calls add a second layer of risk because the model can trigger actions that move beyond text generation into external systems. Content inspection therefore has to cover prompts, responses, and tool-calling events as separate decision points. In governance terms, the control is closer to inline policy enforcement than passive observability. Without that distinction, organisations can prove traffic moved but not whether the interaction stayed inside acceptable boundaries.

Practical implication: inspect prompts, responses, and tool calls separately so policy can act on each phase.

Audit trails for AI interactions need identity context

A useful audit trail for AI traffic must preserve what was sent, what was returned, which policy applied, and what action was taken. That is materially different from basic request logging, because identity teams need evidence that can support investigations, recertification, and policy tuning. In AI environments, a log that records only gateway routing is incomplete. The control value comes from preserving the interaction context that explains why a request was allowed, masked, blocked, or escalated. For regulated or sensitive environments, that context becomes the bridge between security monitoring and governance accountability.

Practical implication: retain interaction context that ties AI activity to policy decisions and response actions.


NHI Mgmt Group analysis

AI gateway traffic is becoming an identity control layer, not a network convenience. Once enterprises centralise model access through Kong, Portkey, LiteLLM, Envoy, and similar gateways, the control question shifts from routing to governance. The gateway now decides which identities reach which models, under what policy, and with what logging. That makes it part of identity security architecture, not a separate observability stack. Practitioners should align gateway policy with access governance rather than treating it as an AI operations add-on.

Content inspection is the missing control when model access is already authenticated. Authentication tells you who reached the gateway, but not whether the interaction contains prompt injection, jailbreak logic, or sensitive data. That is a different security boundary. The governance lesson is that identity verification at the edge is insufficient when the risky behaviour happens inside the session. Teams need controls that act on prompts, responses, and tool calls as the unit of enforcement.

AI gateway inspection exposes a new named concept: interaction blast radius. In AI systems, the blast radius is not only the model response, but the downstream tool invocation, data disclosure, or policy violation that follows it. Because a single interaction can span multiple models and agents, the effective control boundary is the full conversational and execution chain. Practitioners should measure how far one inspected or uninspected interaction can propagate across the AI estate.

Autonomous or agentic workflows make gateway governance an execution problem. When models can trigger tools or agent actions, the gateway is no longer filtering text alone. It is mediating machine-triggered behaviour that can affect other systems. That is why policy enforcement, masking, blocking, and alerting must be evaluated as runtime control points. The implication is that AI traffic inspection must be designed for decision-making paths, not just content moderation.

Identity governance for AI will increasingly be judged by evidence, not policy statements. A gateway that can show what was sent, what was returned, which policy applied, and what action was taken creates auditability that IAM and security teams can use. Without that evidence, governance remains declarative. The field is moving toward interaction-level accountability, and practitioners should expect audit requirements to follow.

From our research library:

What this signals

Interaction blast radius: AI teams need a control model that measures how far a single prompt can propagate across models, agents, and tools. If the gateway only governs connection permission, the real security decision still happens downstream, where policy context is often lost.

Gateway inspection will increasingly be treated as part of identity evidence, because auditability now depends on what was sent, what was returned, and which policy changed the outcome. That shifts the operating standard from traffic visibility to decision visibility.


For practitioners

  • Define the AI gateway as a policy enforcement boundary Map gateway routes, model endpoints, and tool-call paths into your access governance model so the control owner is explicit.
  • Inspect prompts, responses, and tool calls inline Apply different policy checks to inbound prompts, model outputs, and any tool invocation so violations are caught at the point of execution.
  • Preserve interaction-level audit records Log the sent content, returned content, applied policy, and enforcement action so incident review and governance review use the same evidence.
  • Separate routing controls from content controls Keep model access routing, key management, and traffic inspection as distinct control functions so a failure in one layer does not conceal a failure in another.

Key takeaways

  • AI gateway routing solves model access coordination, but it does not by itself govern the content or effects of AI interactions.
  • Prompt injection, jailbreaks, and sensitive-data leakage remain live risks when inspection stops at the connection layer.
  • Practitioners should treat gateway inspection as an identity and policy control that produces auditable evidence for model use.

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 OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseGateway inspection governs how AI identities use access and tool paths inside sessions.
ASI02 — Tool MisuseThe article centres on inspecting tool calls that can execute unsafe downstream actions.
Recommendation — Map gateway policy to ASI03 so model access and tool use are constrained by identity-aware controls. Inspect tool calls for ASI02 so agent-triggered actions cannot bypass policy enforcement.
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationAI gateways authenticate access, but the article shows authentication alone is insufficient for safe use.
NHI-10 — Human Use of NHIThe gateway mediates human and machine use of model access keys and policy decisions.
Recommendation — Apply NHI-04 to ensure gateway authentication is paired with content and action controls. Use NHI-10 to govern how people and systems consume shared AI gateway credentials and access paths.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe piece frames AI gateway traffic as an access-control problem with policy enforcement needs.
Recommendation — Apply PR.AA-05 to align model access permissions with inspection and enforcement policies.

Key terms

  • AI Gateway: A control point that sits between AI applications and the models, tools, or data they call. In practice, it can authenticate requests, enforce policy, inspect runtime behaviour, and stop unsafe actions before they spread into connected systems.
  • Prompt Injection (Agentic): An attack where malicious instructions are embedded in content that an AI agent reads, causing the agent to execute unintended actions using its own legitimate credentials. A primary vector for agent goal hijacking and identity abuse.
  • Tool calling: Tool calling is the pattern where a model selects and invokes an external function during runtime. In agent systems this turns text generation into action execution, so the access decision must be constrained, logged, and governed like any other privileged interaction.
  • AI Audit Trail: An AI audit trail is a record of what an AI system did, when it did it, and what information influenced the result. It captures prompts, tool calls, model outputs, decisions, approvals, and changes to configuration, creating evidence for investigation, accountability, compliance, and post-incident review.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on June 9, 2026.
Updated on October 10, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org