{"slug": "securing-ai-agents-requires-more-than-a-gateway", "title": "Securing AI Agents Requires More Than a Gateway", "summary": "Securing AI agents requires defense-in-depth controls at both the application and runtime layers, because an AI gateway alone cannot enforce every action an agent performs inside its execution environment, according to an analysis of how engineering and platform teams are deploying agents. The piece argues that gateways can authenticate agents and enforce policy on model and tool calls, but actions such as reading a local file, executing a binary, accessing a credential, or spawning a process happen entirely within the workload and bypass the gateway. It points to the Linux kernel, which Kubernetes security has long relied on for controls operating below the application layer, as the place to enforce those runtime decisions.", "body_md": "Over the past year, I’ve spent a lot of time talking with engineering and platform teams about how they’re deploying AI agents. The conversations are changing. Six months ago, most were focused on getting agents into production. Now, increasingly, the question is how to secure them once they’re there.\n\nIt’s a familiar transition. We’ve seen it with containers, Kubernetes, microservices, and cloud infrastructure. New technology gets adopted, architectures evolve, and security has to catch up with how systems actually operate.\n\nAI agents introduce some interesting challenges, though. Unlike traditional applications, agents make decisions about what to do next. They interact with models, invoke tools, communicate with other agents, access data, and execute code. A single user request can trigger a sequence of actions across multiple systems, sometimes with very little human involvement.\n\nThat changes the security problem.\n\nAn agent can be properly authenticated, operate within its assigned permissions, and still be led into doing something nobody intended.\n\nIt’s one of the reasons I believe securing agentic AI requires a defense-in-depth architecture, with controls operating at both the application and runtime layers.\n\n## The gateway is an important part of the architecture\n\nAI gateways have become a natural place to introduce security controls.\n\nThey sit in the path between agents, models, and tools, providing a central point for authentication, authorization, policy enforcement, and observability.\n\nAt this layer, we can start answering questions that traditional infrastructure security was never designed to address.\n\nWhich agent is making this request? Which model is it accessing? Is it permitted to invoke this particular tool? Is it acting on behalf of an authorized user? Does the request contain sensitive information?\n\nThese are application-level questions. They require an understanding of agents, identities, tools, and the protocols connecting them.\n\nA network policy that allows a workload to communicate with a particular IP address cannot distinguish between an agent retrieving information from an approved tool and the same agent invoking a destructive operation through that tool.\n\nAn AI gateway can make that distinction, provided the interaction passes through it and the necessary context is available.\n\nThis is a significant step forward, but it is only one part of the security architecture.\n\n## What happens outside the gateway?\n\nConsider a coding agent running inside a Kubernetes workload.\n\nThe agent sends a request to a model through a gateway. The request is authenticated, evaluated against policy, and permitted.\n\nThe model responds with a suggested course of action. Perhaps it asks the agent to inspect a configuration file, execute a command, or retrieve information from another system.\n\nThe agent then carries out that action.\n\nSome of those operations might involve another request through the gateway. Others happen entirely within the workload.\n\nReading a local file, executing a binary, accessing a credential, or spawning another process doesn’t necessarily involve a gateway at all.\n\nAnd this is where the distinction between application-layer and runtime security becomes important.\n\nThe gateway can authorize the agent’s interaction with a model or tool. It cannot, by itself, enforce every action the agent subsequently performs inside its execution environment.\n\nAn agent might have legitimate permission to call a model but no legitimate reason to read a sensitive credential file. It might be authorized to execute diagnostic commands but should not be able to launch an arbitrary binary or establish a connection to an unknown external destination.\n\nThese are different security decisions, made at different enforcement points.\n\nWe need both.\n\n## Bringing runtime security into the picture\n\nThis is where the Linux kernel becomes particularly useful.\n\nFor years, Kubernetes security has relied on controls operating below the application. Network policy, workload isolation, and runtime security all take advantage of the fact that applications ultimately depend on operating system resources.\n\nAI agents are no different.\n\nRegardless of which framework an agent uses, or which model it communicates with, its runtime operations eventually interact with the operating system.\n\nFiles are opened. Processes are executed. Network connections are established.\n\nTechnologies such as eBPF and Linux Security Modules give us mechanisms to observe and constrain those operations without requiring every agent framework to implement its own security controls.\n\nFor example, runtime policy can restrict which files a workload may access, which executables it may launch, and which network destinations it may contact.\n\nThis is particularly valuable when an agent encounters an unexpected or malicious instruction.\n\nA prompt injection might convince an agent to attempt an operation outside its intended responsibilities. The agent may consider that operation a perfectly reasonable next step. But a runtime policy can still prevent it from accessing a protected file or executing an unauthorized program.\n\nOf course, kernel enforcement doesn’t understand the intent behind an agent’s actions. It knows about files, processes, sockets, and workloads, not whether a particular instruction makes sense in the context of a user’s original request.\n\nThat’s precisely why these layers need to work together.\n\nApplication-layer security understands the interactions between agents, models, and tools. Runtime security constrains what the underlying workload is capable of doing.\n\nNeither replaces the other.\n\n## The agents you don’t know about\n\nThere’s another problem that comes up regularly in conversations with platform teams: not every agent is necessarily using the infrastructure you’ve put in place to secure it.\n\nA developer might introduce an agent framework into an existing application. Another team might deploy a service that communicates directly with a model provider. A third might be experimenting with autonomous coding agents inside development environments.\n\nNot all of these will appear in a central agent registry, and not all will be configured to use an approved gateway.\n\nThis creates a visibility problem before we even get to enforcement.\n\nYou cannot apply meaningful policy to agents you don’t know exist.\n\nRuntime discovery provides another layer of defense here. By observing workload behaviour and network activity, we can identify potential AI-related activity independently of whether an application has been registered or instrumented.\n\nThat doesn’t mean every connection to a model provider identifies an autonomous agent. A conventional application making an LLM API call can look similar at the network layer.\n\nDiscovery needs to combine signals and provide enough context for teams to distinguish genuine agents from other AI-enabled workloads.\n\nBut the architectural principle is important: security shouldn’t depend entirely on applications volunteering to participate in it.\n\nThe same principle has guided much of our work in Kubernetes security over the years.\n\n## Identity has to follow the agent\n\nAs agents begin communicating with other agents, identity becomes another important part of the architecture.\n\nIn a traditional application, we can often make authorization decisions based on the identity of the workload making a request.\n\nWith agentic systems, that’s no longer sufficient.\n\nImagine a user asks an agent to investigate a production issue. That agent delegates part of the investigation to another agent, which invokes a tool to retrieve diagnostic information.\n\nBy the time the tool is called, we need to understand more than which Kubernetes workload originated the connection.\n\nWe need to know which agent is acting, on whose behalf, and what authority has been delegated to it.\n\nThose are distinct identities and permissions.\n\nStandards such as SPIFFE, OIDC, and OAuth 2.0 Token Exchange provide useful building blocks for workload identity and delegated authorization. The challenge is connecting those identities to the agent interactions and policy decisions happening at the application layer.\n\nWe also need to preserve the distinction between an agent’s identity and the identity of the workload running it. Multiple logical agents can execute within the same process or container, and the operating system cannot inherently distinguish between them.\n\nThis is another reason a layered architecture matters.\n\nThe gateway can reason about logical agent identity and delegated authority. The runtime layer can enforce boundaries around the workloads and processes executing those agents.\n\nTogether, they provide a more complete security model.\n\n## We’ve seen this architectural pattern before\n\nOne of the reasons this approach feels natural to me is that we’ve spent years solving a similar class of problem in Kubernetes networking and security.\n\nKubernetes NetworkPolicy introduced a declarative way to express which workloads should be allowed to communicate. The policy is written in terms of workload identities and selectors, while enforcement happens through the underlying networking infrastructure.\n\nWe separated the language used to describe security intent from the mechanisms responsible for enforcing it.\n\nAgentic AI needs a similar separation, but with a richer understanding of identity and behaviour.\n\nAt the application layer, policies should describe which agents can interact with which models, tools, data, and other agents, and under what conditions.\n\nAt the runtime layer, policies should constrain the underlying capabilities available to those workloads.\n\nAnd across both layers, we need observability that connects the decisions and actions into a coherent picture.\n\nIt’s not enough to know that an agent called a model. We also want to understand which identity authorized the interaction, which tools were invoked, and what happened in the runtime as a consequence.\n\nThat correlation is what turns a collection of individual security controls into something much more useful.\n\n## Defense in depth has to be practical\n\nThere’s a temptation with any new security architecture to start with an ideal end state: every agent registered, every interaction authorized, every workload restricted, and every action recorded.\n\nThat’s a reasonable destination, but it isn’t how most production environments look today.\n\nOrganizations already have applications using models, teams experimenting with agent frameworks, and increasingly autonomous workloads running across their infrastructure.\n\nIntroducing security cannot mean stopping everything until every agent has been rewritten to integrate with a new control plane.\n\nA more practical approach is to start with visibility.\n\nDiscover what is running. Understand which models and tools are being accessed. Observe agent behaviour and establish a baseline.\n\nFrom there, introduce policies in observation mode, understand their impact, and progressively move towards enforcement.\n\nThe same applies to runtime controls. Begin by understanding which files, processes, and network destinations workloads actually need, then constrain those capabilities as confidence grows.\n\nThis approach also makes security less dependent on individual agent frameworks.\n\nThe ecosystem is moving quickly. Frameworks, protocols, and models will continue to change. Security architecture should be able to accommodate those changes without requiring every application to be redesigned.\n\n## How we’re approaching this with Lynx\n\nThese principles are shaping how we’re building [Lynx](https://www.tigera.io/tigera-products/lynx/) at Tigera.\n\nWe’re bringing together agent discovery, identity, application-layer policy, observability, and kernel-level runtime enforcement into a layered architecture.\n\nThe gateway provides policy enforcement for agent, model, and tool interactions. Runtime controls use eBPF and Linux security mechanisms to constrain workload behaviour independently of the agent framework.\n\nDiscovery helps identify AI activity that hasn’t been explicitly registered, while the identity and observability layers provide context across interactions.\n\nThere’s still engineering work to do, particularly around transparently bringing unmanaged agent traffic under application-layer enforcement and maintaining identity context across increasingly complex workflows.\n\nBut the direction is clear.\n\nWe don’t believe securing AI agents should require choosing between a gateway and runtime security.\n\nThe gateway understands what the agent is trying to do at the application layer. The runtime layer controls what the workload is capable of doing underneath it.\n\nBoth are necessary, and neither should depend entirely on the cooperation of the agent being secured.\n\n## Security has to follow the execution\n\nAs AI agents become more autonomous, the security boundary is moving.\n\nTraditional application security was largely concerned with controlling access to services and data. Agentic systems add another dimension: software that can independently decide which actions to take using the access it has been given.\n\nThat doesn’t make our existing security principles obsolete. If anything, it makes them more important.\n\nLeast privilege, strong identity, policy enforcement, workload isolation, and defense in depth are all familiar concepts.\n\nWhat changes is where and how we apply them.\n\nA gateway is an important enforcement point, but it isn’t the entire execution environment. An agent’s actions extend beyond the requests it sends to models and tools, and our security architecture needs to extend with them.\n\n**The goal isn’t simply to authorize what an agent asks to do. It’s to establish boundaries around what that agent can actually do.**\n\nThat’s the foundation I believe we need as agentic AI moves from experimentation into production.", "url": "https://wpnews.pro/news/securing-ai-agents-requires-more-than-a-gateway", "canonical_source": "https://www.tigera.io/blog/securing-ai-agents-requires-more-than-a-gateway/", "published_at": "2026-11-09 19:38:21+00:00", "updated_at": "2026-11-24 15:44:01.826507+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-infrastructure", "mlops"], "entities": ["Kubernetes", "Linux"], "also_reported_by": [], "takeaway": "Pair an AI gateway's application-layer authorization of model and tool calls with kernel-level runtime controls, since actions like reading credential files or spawning processes inside the workload never pass through the gateway.", "recommendation": {"advice": "Enforce agent actions at two layers: authorize model and tool calls at the AI gateway, and use Linux kernel runtime controls to block in-workload actions such as reading credential files or spawning arbitrary binaries.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/securing-ai-agents-requires-more-than-a-gateway", "markdown": "https://wpnews.pro/news/securing-ai-agents-requires-more-than-a-gateway.md", "text": "https://wpnews.pro/news/securing-ai-agents-requires-more-than-a-gateway.txt", "jsonld": "https://wpnews.pro/news/securing-ai-agents-requires-more-than-a-gateway.jsonld"}}