cd /news/ai-agents/securing-ai-agents-and-apis-at-runti… Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-179372] src=konghq.com β†— pub= topic=ai-agents verified=true sentiment=Β· neutral

Securing AI Agents and APIs at Runtime With Harness and Kong

Harness's Runtime Protection Agent uses eBPF sensors on Kong gateways to discover shadow APIs and shadow AI, test agents and MCP servers in the development pipeline, and block malicious requests at runtime, according to Sudhir Patametti, Harness's Head of Product for API and AI Security. Patametti cited a 43% increase in actively exploited API-related vulnerabilities, 270% growth in MCP-related vulnerabilities, a doubling of API attacks over the previous 12 months, and an average enterprise patching period of about 55 days. He also cited a reported OpenAI and Hugging Face incident in which agents performed about 17,600 actions autonomously over four and a half days without human involvement.

recommendation

Deploy eBPF sensors alongside your gateway and diff their traffic against what Kong sees to find shadow APIs and MCP servers, and test agents in the pipeline before deployment.

more in playbook: Securing agents and AI tools
read17 min views1 publishedDec 1, 2026
Securing AI Agents and APIs at Runtime With Harness and Kong
Image: Konghq (auto-discovered)

Sudhir Patametti, Head of Product for API and AI Security at Harness, explains why agent security starts with API security, and how Harness plugins on Kong gateways discover, test, and protect APIs, MCP servers, and agents.

Kong

Key takeaways

  • Every AI agent depends on APIs, so securing agents starts with securing the APIs, MCP servers, and models they call.

  • A gateway only sees the traffic that passes through it. Harness adds eBPF sensors and compares what they see with what Kong sees, which exposes shadow APIs and shadow AI.

  • Harness plugins run on Kong gateways to collect telemetry and block malicious requests, and discovered assets can sync into Kong Konnect Catalog.

  • Testing agents and MCP servers in the development pipeline catch issues before deployment, and runtime protection covers the weeks before a patch ships.

This content contains a video which can not be displayed in Agent mode

Most enterprises can describe the API traffic that passes through their gateways. Far fewer can describe what moves around them. AI agents widen that blind spot, because an agent calls APIs, MCP servers, and models on its own, and each connection is one more thing to find, test, and protect. Attackers now use agents too, and they work faster than a patch cycle.

So how do you find every API, agent, and MCP server you run? How do you protect them while a fix is still weeks away? And what can your gateway do about both?

One Kong partner works on exactly those problems: HarnessHarness. Harness builds software delivery and security tools that use AI agents to ship code, test it for risk, and protect it in production. According to its website, it handles about 5.7 million deployments and protects more than 250 billion API calls every month, for customers such as Citi, United Airlines, Morningstar, and The Home Depot. This post is about one piece of that platform, the Runtime Protection AgentRuntime Protection Agent, which protects APIs, AI agents, and apps from attacks while they run.

That premise is a dependency most agent demos hide. "Behind the scenes, there is no AI without APIs," he says. An agent is made of tools, memory, and large language models, and those parts communicate with one another through APIs. That makes API security more important as agents move into production.

The risk grows because attackers use the same technology.

*"We're seeing a significant acceleration in vulnerability discovery and exploitation," *Patametti says.

Agents can find vulnerabilities in weeks that once took years to discover, and attackers can then exploit them within hours. That compresses the window an organization has to respond. Patametti backed the point with figures from his presentation. He cited a 43% increase in actively exploited API-related vulnerabilities and 270% growth in MCP-related vulnerabilities, as agents increasingly use MCP to reach tools and retrieve information. He also cited a reported incident involving OpenAI and Hugging Face, in which agents performed about 17,600 actions autonomously over four and a half days without human involvement.

  • API attacks are increasing. The presentation cites a doubling of API attacks over the previous 12 months.

  • Agents are a new attack surface. An agent links models, APIs, MCP servers, tools, and memory systems, and each one adds security considerations.

  • AI-powered attacks persist. An agent can be given an objective and a set of constraints, then plan and act on its own. If an action fails, it may retry repeatedly instead of stopping.

  • Runtime protection matters more. As the time between discovery and exploitation shrinks, enterprises may struggle to patch quickly enough. The presentation cites an average enterprise patching period of about 55 days.

The last trend is the one Harness builds around. If attackers move in hours and patches take weeks, something has to detect and block attacks while remediation is under way.

How does Harness protect applications, APIs, and agents? #

Harness answers with a unified platform built on three capabilities: discover, protect during runtime, and secure agents wherever they run. Discovery comes first because shadow APIs and shadow AI are significant challenges: organizations may not know which assets are running, a problem Kong's post on managing shadow AI and riskmanaging shadow AI and risk also covers. Harness builds a live inventory that can be kept in a catalog, scores each asset's risk, and tests for vulnerabilities and misconfigurations in preproduction. Runtime protection covers the OWASP Web Top 10, API Top 10, LLM Top 10, and MCP security risks (Kong's documentation on MCP traffic in AI GatewayMCP traffic in AI Gateway covers the gateway side of that last category), and Harness can be instrumented on Kong API and AI gateways to detect and block threats in real time. The third capability extends the same checks to agents wherever they operate, through gateways, infrastructure nodes, application environments, and edge locations.

All of that runs on one shared data layer. A traffic monitoring layer collects HTTP traffic from edge CDNs, API gateways, Kubernetes nodes using eBPF, and language agents inside applications. It sends the traffic to a data lake that, according to Patametti, stores requests and responses for seven days. Two suites sit on top of it. API Security covers API discovery, API testing, API protection, web application firewall capabilities, and bot and abuse protection. AI Security covers AI discovery, AI red teaming, and an AI firewall. Both are managed through one control plane and user interface, and Harness also exposes its capabilities through an MCP server, so users can work from the AI-enabled tools they already use.

Within that platform, agent security gets three checks of its own:

  • Automatic agent discovery. Harness finds agents running in public clouds, private clouds, data centers, SaaS environments, and endpoints, and evaluates their security posture: authentication, authorization, encryption, vulnerabilities, and misconfigurations.

  • AI red teaming. Harness tests agents and APIs dynamically, taking into account the context each agent operates in.

  • AI detection and response. Harness collects agent traces, rebuilds an agent's execution path, including its tool calls and its interactions with LLMs, and uses that to guard against prompt injection, sensitive-data leakage, and toxic content.

The same approach starts before production. Teams can scan MCP servers and AI agents in their development pipelines, so vulnerabilities and configuration issues surface before deployment. Harness delivers the runtime half of this picture through plugins on Kong gateways.

How do the Harness plugins work on Kong gateways? #

Kong's Plugin Hub lists two Harness integrations, an API security plugin and an AI security plugin, and both run directly on Kong gatewaysKong gateways. As traffic flows from consumers through Kong, the plugins collect telemetry and enforce security decisions, including blocking malicious traffic. Patametti sums up the fit in one sentence: "Harness complements Kong by adding broader API and AI discovery, security testing, and runtime threat protection."

A plugin can only act on traffic that passes through the gateway, which raises the question Patametti hears from customers.

How do you find the traffic that never touches your gateway? #

Customers put the question this way, Patametti says:

*"We have gateways and governance policies, but how do we know whether all of our API and AI traffic is actually going through those gateways?" β€” *Customer question relayed by Sudhir Patametti, Harness

Harness answers it by looking outside the gateway. An eBPF sensor runs on nodes in the organization's infrastructure and collects traffic directly from the environment where applications run. Harness then compares what the sensors observe with what flows through Kong. Anything that appears in the first set and not the second is a shadow API or shadow AI asset operating outside gateway controls. The same approach gives visibility into first-party and third-party interactions, and into north-south and east-west traffic.

Finding those assets only helps if the results land somewhere teams already look.

How does discovery feed Kong Konnect Catalog? #

Harness's discovery results flow back into Kong. Patametti described a direct integration with Kong KonnectKong Konnect Catalog, and he tied it to the AI registry capabilities Kong recently announced. Harness identifies APIs, AI agents, MCP servers, and related assets through traffic analysis, then synchronizes them with Catalog, so teams keep one central view of their API and AI environments. That matters because a manually maintained registry goes out of date quickly. Traffic-based discovery spots new assets and changes to existing ones, so the inventory updates continuously and does not depend on periodic manual reviews. Harness can also discover APIs through code analysis and specification files, which gives a broader view than traffic alone.

The integration has grown with the AI market. Patametti says it began with traditional API security and, over the past year, expanded to AI assets. Teams can now see which traffic flows through Kong, which bypasses it, and what risks sit across all of it. On the Kong side, CatalogCatalog now treats APIs, AI models, MCP servers, and agents as first-class entities.

On login, users see a central inventory of discovered assets: APIs, AI agents, MCP tools, backends, domains, and related services and dependencies. Harness calculates a risk score for each asset from several factors, and teams can customize the score. It also identifies the types of data moving through APIs and AI interactions, including prompts and responses, using predefined data classifications and custom data types. For each asset, the console shows whether it is internet-facing, which vulnerabilities and misconfigurations it has, and how severe they are. Active attacks appear in the same interface. A security team can see which assets exist, what is wrong with them, and whether anyone is exploiting those weaknesses right now.

A separate view covers agents. The agent context graph shows how users, agents, MCP servers, gateways, and connected services relate. In Patametti's example, a user works with a code review agent. The agent talks to an MCP server, which connects through Kong Gateway to an internal login service. The graph can also reveal third-party connections, such as Twilio, Marketo, and Salesforce. That gives teams a blueprint of how an agent interacts with enterprise systems and external services. With it, they can examine the data flowing between those connections, find security issues, and apply protections. Kong's pages on governing agent-to-agent trafficagent-to-agent traffic and MCP workflowsMCP workflows cover how the gateway enforces protections of that kind.

The demo showed what the product does. The remaining question is how it performed in testing.

How were the Harness results measured? #

Patametti cited an evaluation published by Secure IQ Lab, which he described as an independent testing organization. According to the presentation, Harness was recognized as a leader for two consecutive years. The evaluation scored two dimensions. Security efficacy measures how well a product detects attacks while minimizing false positives, and Harness reported 99.8%. Operational efficiency measures how easy a product is to deploy, manage, and operate, and Harness reported about 98%. Harness also reported 100% scores in selected criteria, including prompt injection coverage, OWASP API Top 10 coverage, LLM traffic observability, and advanced threat protection.

These figures are evaluation results. They do not come from a specific customer deployment, and the session shared no customer outcome numbers.

Can discovery keep up with Kubernetes workloads that come and go? #

The first question concerned a high-volume production environment where Kubernetes creates and removes containers or MCP services based on demand. Harness supports Kubernetes through an operator. As workloads scale, Harness can deploy its agents and collect telemetry. A central component, called the platform agent, receives that telemetry inside the customer's environment and forwards it to the Harness SaaS platform. Asked how long a new workload takes to appear, Patametti described the process as real time, with updates potentially appearing within a few minutes, and said users don't wait hours or days. The speed depends on how the environment is instrumented.

The second question was about network visibility. Harness can monitor ingress and egress traffic for services. With eBPF instrumentation, it can visualize first-party and third-party connections, and traffic between containers, which feeds a more complete map of the agent architecture. The level of visibility depends on where Harness is instrumented. If sensors are deployed in the relevant infrastructure, Harness can observe that traffic and show the connections in the platform.

Taken together, the keynote and the Q&A leave a short list of lessons.

Five lessons from the session #

  • Start with API security. Agents reach models, tools, enterprise applications, and external services through APIs, so securing those connections comes first.

  • Don't trust gateway visibility alone. Work out which API and AI interactions pass through your gateways and which bypass them, and combine gateway telemetry with infrastructure monitoring to find shadow assets.

  • Keep discovery continuous. Agents and MCP services change constantly, so a static inventory goes stale.

  • Add runtime protection. Vulnerabilities can be exploited before a patch ships, and detection and blocking cover that period.

  • Test from code to production. Scan agents, APIs, and MCP servers in the development pipeline, then protect the deployed workloads at runtime.

Six questions to answer before your agents reach production #

  • Which APIs, agents, and MCP servers are running in your environment, and how do you know?

  • Which of their connections bypass your gateways?

  • Is your inventory updated by traffic, or by someone remembering to update a registry?

  • Can you test agents and MCP servers in the pipeline before they deploy?

  • Which attacks could you detect and block at runtime while a patch is still pending?

  • Can you see which assets are internet-facing, which data types they carry, and whether anyone is attacking them now?

Shreya Venkat, Product Manager, and Kapil Mirchandani, Platform Engineer, of Spotify's Hendrix AI/ML platform team explain how they chose a shared observability and evaluation platform for agents, and why Kong AI Gateway feeds it.

Type a prompt i Kong

What is unified AI governance? Unified AI governance is a single runtime control layer that enforces identity, access, policy, and audit across every AI call β€” LLM requests, MCP tool calls, agent-to-agent traffic, and traditional APIs β€” using the s

An AI coding agent is software that writes, tests, and ships code independently. This level of autonomy earlier tools never had. It doesn't wait for you to accept a suggestion line by line. It takes a goal, breaks it into steps, and executes. To do

Kong

This post is based on Kong's webinar on token cost management. Watch it below, or keep reading for the breakdown. Token cost management is how a business tracks, controls, and governs what it spends on AI model usage, the same way it already track

Kong

AI adoption is outpacing the speed at which many organizations can establish standardized oversight. In fact, Stanford HAI reported that 78% of surveyed organizations were using AI in 2024, a significant jump from 55% the previous year ( AI Index Re

Kong

An AI agent isn't magic. It's a reasoning engine that makes decisions based on what it knows at a given moment. That "what it knows" is its context β€” the information available to it right now. Context is everything. Give an agent the wrong context,

Hugo Guerrero

You Can't Govern What You Can't See AI spending will reach $2.59 trillion in 2026. I regularly like to share what we're seeing in production at Kong. Not projections or analyst forecasts, but actual traffic flowing through Kong AI Gateway from

Augusto Marietti

Shreya Venkat, Product Manager, and Kapil Mirchandani, Platform Engineer, of Spotify's Hendrix AI/ML platform team explain how they chose a shared observability and evaluation platform for agents, and why Kong AI Gateway feeds it.

Type a prompt i Kong

What is unified AI governance? Unified AI governance is a single runtime control layer that enforces identity, access, policy, and audit across every AI call β€” LLM requests, MCP tool calls, agent-to-agent traffic, and traditional APIs β€” using the s

An AI coding agent is software that writes, tests, and ships code independently. This level of autonomy earlier tools never had. It doesn't wait for you to accept a suggestion line by line. It takes a goal, breaks it into steps, and executes. To do

Kong

This post is based on Kong's webinar on token cost management. Watch it below, or keep reading for the breakdown. Token cost management is how a business tracks, controls, and governs what it spends on AI model usage, the same way it already track

Kong

AI adoption is outpacing the speed at which many organizations can establish standardized oversight. In fact, Stanford HAI reported that 78% of surveyed organizations were using AI in 2024, a significant jump from 55% the previous year ( AI Index Re

Kong

An AI agent isn't magic. It's a reasoning engine that makes decisions based on what it knows at a given moment. That "what it knows" is its context β€” the information available to it right now. Context is everything. Give an agent the wrong context,

Hugo Guerrero

You Can't Govern What You Can't See AI spending will reach $2.59 trillion in 2026. I regularly like to share what we're seeing in production at Kong. Not projections or analyst forecasts, but actual traffic flowing through Kong AI Gateway from

Augusto Marietti

Shreya Venkat, Product Manager, and Kapil Mirchandani, Platform Engineer, of Spotify's Hendrix AI/ML platform team explain how they chose a shared observability and evaluation platform for agents, and why Kong AI Gateway feeds it.

Type a prompt i Kong

What is unified AI governance? Unified AI governance is a single runtime control layer that enforces identity, access, policy, and audit across every AI call β€” LLM requests, MCP tool calls, agent-to-agent traffic, and traditional APIs β€” using the s

An AI coding agent is software that writes, tests, and ships code independently. This level of autonomy earlier tools never had. It doesn't wait for you to accept a suggestion line by line. It takes a goal, breaks it into steps, and executes. To do

Kong

This post is based on Kong's webinar on token cost management. Watch it below, or keep reading for the breakdown. Token cost management is how a business tracks, controls, and governs what it spends on AI model usage, the same way it already track

Kong

AI adoption is outpacing the speed at which many organizations can establish standardized oversight. In fact, Stanford HAI reported that 78% of surveyed organizations were using AI in 2024, a significant jump from 55% the previous year ( AI Index Re

Kong

An AI agent isn't magic. It's a reasoning engine that makes decisions based on what it knows at a given moment. That "what it knows" is its context β€” the information available to it right now. Context is everything. Give an agent the wrong context,

Hugo Guerrero

You Can't Govern What You Can't See AI spending will reach $2.59 trillion in 2026. I regularly like to share what we're seeing in production at Kong. Not projections or analyst forecasts, but actual traffic flowing through Kong AI Gateway from

Augusto Marietti

Ready to see Kong in action? #

Get a personalized walkthrough of Kong's platform tailored to your architecture, use cases, and scale requirements.

── more in #ai-agents 4 stories Β· sorted by recency
── more on @harness 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/securing-ai-agents-a…] indexed:0 read:17min 2026-12-01 Β· β€”