---
title: "Shadow AI agents"
source: "https://www.tigera.io/learn/guides/ai-agent-security/shadow-ai-agents/"
description: "What shadow AI agents are, why registries and gateways miss them, the runtime signals that reveal one, four detection methods and a five-step discovery loop"
---

## Guides: Shadow AI agents

# Shadow AI: how to find the AI agents already running in your environment

By [Veronika Smolik](https://www.tigera.io/blog/author/veronika-smolik/), Technical Marketing Manager at Tigera | Published: Dec 03, 2026 | Last updated: Dec 03, 2026 | 11 min read

- [AI Agent Security](https://www.tigera.io/learn/guides/ai-agent-security/)

- [eBPF for AI agent security](https://www.tigera.io/learn/guides/ai-agent-security/ebpf-ai-agent-security/)

- [Shadow AI agents](https://www.tigera.io/learn/guides/ai-agent-security/shadow-ai-agents/)

- [Agent gateway vs AI gateway vs MCP gateway](https://www.tigera.io/learn/guides/ai-agent-security/agent-gateway-vs-ai-gateway-vs-mcp-gateway/)

- [MCP security](https://www.tigera.io/learn/guides/ai-agent-security/mcp-security/)

- [Cedar policy for AI agents](https://www.tigera.io/learn/guides/ai-agent-security/cedar-policy-ai-agents/)

- [AI Agent Security Platforms for Cloud-native Deployments](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-security-platforms-for-cloud-native-deployments/)

- [AI Agent Security Platforms for Kubernetes](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-security-platforms-for-kubernetes/)

- [AI Agent Observability](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-observability/)

- [AI Agent Governance](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-governance/)

- [Agentic AI Security](https://www.tigera.io/learn/guides/ai-agent-security/agentic-ai-security/)

- [AI Gateway](https://www.tigera.io/learn/guides/ai-agent-security/ai-gateway/)

- [AI Agent Security Providers](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-security-providers/)

**Shadow AI is any AI tool, model or agent used inside an organization without the knowledge or approval of the teams responsible for security and the platform. Its fastest-growing form is the shadow AI agent: a workload that calls models, invokes tools and talks to other agents without being registered anywhere. You find one by observing what workloads do at runtime and comparing that with what was declared, not by asking who registered.**

## Key takeaways

- In a Cloud Security Alliance survey published in April 2026, 82 percent of organizations had found an AI agent their security or IT team did not know about

- Registries, gateways and shared credentials each miss shadow agents for a structural reason: they know only what was declared, routed or issued a credential

- Discovery is a loop, not a one-time scan: baseline, match signals, cross-reference the registry, assign an owner, then register, contain or remove

**In this article:**

- What is shadow AI?

- What is a shadow AI agent, and why is it riskier?

- Why do registries and gateways miss shadow AI agents?

- What does an AI agent look like at runtime?

- How can you detect shadow AI agents?

- How do you run a shadow AI agent discovery process?

- What should you do with the agents you find?

- Frequently asked questions

- How Lynx approaches this

- Related guides

## What is shadow AI?

Shadow AI is the use of artificial intelligence inside an organization without the knowledge, approval or oversight of the teams accountable for security, data and the platform. The term comes from shadow IT, and the pattern has arrived in three waves.

- **Shadow IT:** employees adopting SaaS tools and personal devices faster than IT could evaluate them

- **Shadow AI**: employees pasting customer records and source code into public chatbots, and teams wiring models into products through personal API keys

- **Shadow AI agents:** software that runs continuously, decides which tools to call, holds its own credentials and delegates to other agents, deployed by a team that never told the platform or security organization

The second wave is already measured. 43 percent of breached organizations in [IBM’s Cost of a Data Breach Report 2026](https://www.ibm.com/reports/data-breach) reported a breach involving shadow AI, up from 20 percent a year earlier.

## What is a shadow AI agent, and why is it riskier?

A shadow AI agent is a workload that behaves as an AI agent while being absent from the inventory, policy and gateway the organization uses to govern agents. It usually arrives by promotion, not intent: a notebook gains a scheduler, or a proof of concept starts handling real tickets.

Three properties make it riskier than an employee using a chatbot:

- **It holds credentials:** typically a provider API key, a Kubernetes service account and the tokens its tools require

- **It acts without a human in the loop:** an agent that receives a poisoned document in a tool result may follow the instruction inside it

- **It chains:** an agent that can call tools and other agents turns one compromised input into a sequence of actions across systems

[The OWASP Top 10 for Agentic Applications](https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/) lists goal hijack, tool misuse, identity and privilege abuse, and rogue agents as separate risks.

Survey data suggests this is common. In a [Cloud Security Alliance survey](https://cloudsecurityalliance.org/press-releases/2026/04/21/new-cloud-security-alliance-survey-reveals-82-of-enterprises-have-unknown-ai-agents-in-their-environments) published in April 2026, 82 percent had discovered unknown agents and 65 percent had an agent-related incident in the previous twelve months. [Gravitee’s State of AI Agent Security 2026](https://www.gravitee.io/state-of-ai-agent-security) found that 45 percent of organizations running agents rely mainly on shared accounts, borrowed human credentials or static API keys.

## Why do registries and gateways miss shadow AI agents?

Each control most organizations already run knows only about agents that cooperated with it. Three gaps overlap.

- The registration gap: a registry, CMDB entry or catalog tag records what someone declared, and a shadow agent by definition was not declared

- The gateway gap: a gateway governs the calls routed through it. An agent with a provider key calls the provider directly, and [an MCP server launched over stdio is a subprocess](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports) with no network call to intercept

- The identity gap: when several agents share one API key or service account, logs keyed on the credential show a single principal, and the shadow agent hides inside the usage of a legitimate one

The registry is still essential, because it holds owners, purposes and policy attributes. It is not a discovery mechanism. The gateway gap is covered in depth in [What is eBPF, and how does it secure AI agents at runtime?](https://www.tigera.io/learn/guides/ai-agent-security/ebpf-ai-agent-security/)

![Three gaps hide shadow AI agents: unregistered agents, calls that bypass the gateway, and agents sharing one credential](https://www.tigera.io/app/uploads/2026/12/where-shadow-ai-agents-hide-three-gaps.png)Figure 1. The three gaps. A registry lists only what registered, a gateway sees only what was routed through it, and a shared credential collapses several agents into one principal.

## What does an AI agent look like at runtime?

Whatever a team called the deployment, an agent has to open connections, load libraries, read its environment and start processes, and each leaves a signature. Five families of signal, taken together, separate an agent from an ordinary application.

- **Network:** TLS sessions to model endpoints, MCP tool servers and other agents. The destination and server name are visible even though the payload is encrypted

- **Process:** agent framework libraries such as LangChain, LangGraph, CrewAI, AutoGen, the OpenAI Agents SDK or Google ADK mapped into memory

- **Environment:** variables that name a model provider or carry a provider API key

- **Protocol:** [MCP traffic follows a fixed shape](https://modelcontextprotocol.io/specification/2026-07-28/server/tools), with methods such as `tools/list` and `tools/call`, and [A2A agents publish an Agent Card](https://a2a-protocol.org/latest/topics/agent-discovery/) at `/.well-known/agent-card.json`

- Subprocess and file: MCP servers launched over stdio, shells and package installs, plus reads of service account tokens and configuration files

No single signal is conclusive. A data pipeline might call a model once a day, and a notebook might import LangChain without running an agent loop, so discovery systems weight the signals into a verdict and should show the evidence behind it.

## How can you detect shadow AI agents?

There are four places to look, and each sees a different slice. Most organizations need more than one, with kernel observation as the floor because it does not depend on the agent being registered, instrumented or routed.

Method
What it sees
What it misses
Effort

Image scanning and admission control
Agent frameworks and SDKs in images and manifests at deploy time
Anything installed after the pod starts, hosts outside Kubernetes, runtime behavior
Low if you already scan images

Application hooks and SDKs
Prompts, tool calls and decisions in instrumented agents
Agents nobody instrumented, which are the ones you are looking for
High: a code change per agent

Network flow and DNS logs
Destinations, volumes and timing
Which process made the call, MCP over stdio, attribution when a key is shared
Low to medium; noisy without workload context

Kernel observation with eBPF
Connections, process starts, library loads and file access for workloads on the node, registered or not
Prompt content, tool arguments and the user an agent acts for
Medium: one agent per node, no workload changes, needs a modern Linux kernel

Network logs are a good first pass, but they attribute activity to IP addresses and credentials, which is where the identity gap bites.

## How do you run a shadow AI agent discovery process?

Run discovery as a loop, because a new agent can arrive with the next deployment. The last step feeds the first.

- **Baseline what is running:** for each node and Linux host, record workloads, outbound destinations, loaded libraries and child processes. Include virtual machines and CI runners

- **Match signals and group by workload:** score each workload against the five signal families, so one agent with fifty model calls appears once

- **Cross-reference the registry:** anything that behaves like an agent and is not registered is a shadow agent. Anything registered that shows no agent behavior is a stale entry

- **Assign an owner:** use the namespace, deploying identity, image repository and Git history. Do this before blocking anything

- **Decide:** register the agents that should exist, contain the ones whose risk is unclear, and remove the ones nobody claims

![Five-step shadow agent discovery loop: baseline, match signals, cross-reference the registry, assign an owner, decide](https://www.tigera.io/app/uploads/2026/12/shadow-ai-agent-discovery-loop.png)Figure 2. The discovery loop. Baseline, match, cross-reference, assign an owner, decide, and repeat. Each unregistered workload leaves the loop with an owner and one of three outcomes.

The useful metric is not how many agents the first pass finds. It is how long a new shadow agent runs before it has an owner.

## What should you do with the agents you find?

Register, sandbox, route, then write policy, in that order. The sequence turns a shadow agent into a governed one without breaking the team that built it.

- Register it with an owner, a purpose and a version, so policy has attributes to reason about later

- Put a baseline sandbox in force that declares what a discovered workload may write, launch and reach. This bounds the blast radius before fine-grained policy exists

- Give it its own credential, retire the shared key and route its model and tool calls through a gateway

- Write detailed policy last, once you know who the agent is, what it calls and on whose behalf

Do not start by deleting the pod. Deletion destroys the evidence of what the agent did, and if a Deployment or CI job created it, it returns on the next reconcile with the same credentials.

## Frequently asked questions

### Can a service mesh find shadow AI agents?

Partly. A mesh sees pod-to-pod connections and can authenticate workloads with mTLS, so it shows a pod talking to a model service in the cluster. It does not see calls to providers outside the mesh, MCP servers running over stdio, or the libraries and environment variables that mark a workload as an agent.

### Does discovering AI agents require changing agent code?

Not if you observe from outside the agent. Network logs, image scanning and kernel-level observation with eBPF work without touching the agent. Application hooks and SDKs require a code change, which is why they see only the agents a team chose to instrument.

### How often should AI agent discovery run?

Continuously. A new agent can appear with any deployment, so a scheduled scan is out of date as soon as the next pipeline runs. Mature programs automate the baseline and matching steps and treat the owner and decision steps as a daily operational task.

### What is the difference between an AI agent registry and an AI agent inventory?

A registry records what teams declared: the agents that should exist, their owners and their attributes. An inventory records what is actually running. The gap between the two is the shadow agent population.

### Can network traffic alone identify an AI agent?

It can identify candidates. Repeated TLS connections to a model provider are a strong hint, but network data attributes activity to IP addresses and credentials, not processes, and misses tool servers that run over stdio. Confirm with process-level signals before you act.

## How Lynx approaches this

Lynx by Tigera finds unregistered agents with an optional agent detector that runs as a DaemonSet and uses eBPF on each node. It reads the server name in outbound TLS handshakes (or the address of an in-cluster model), the agent framework libraries a process has loaded, and the names of environment variables that point to a model provider.

The signals are weighted into a score, and the web console shows the evidence behind each verdict. A container that only holds an API key is reported as observed, not as an agent.

Each workload is compared with the Lynx registry, and the Discover page lists the ones no registered agent claims, each marked Agent or Observed with a confidence score. With events turned on, a newly discovered agentic workload also raises an event. Discovery reflects live traffic, so a workload that made no model calls in the selected window does not appear.

An administrator can quarantine a Shadow workload before it is registered, or bound the discovered workloads with one global sandbox policy, without restarting pods. Registration gives the agent an OIDC, SPIFFE or pod-owner identity, and calls routed to the Lynx gateway are checked against Cedar policy.

[Explore the AI agent security guides](https://www.tigera.io/learn/guides/ai-agent-security/) or [learn more about Lynx by Tigera](https://www.tigera.io/tigera-products/lynx/).

## Related guides

- [AI agent security: the complete guide (hub)](https://www.tigera.io/learn/guides/ai-agent-security/)

- [What is eBPF, and how does it secure AI agents at runtime?](https://www.tigera.io/learn/guides/ai-agent-security/ebpf-ai-agent-security/)

- [AI agent governance: a working framework for platform teams](https://www.tigera.io/learn/guides/ai-agent-security/ai-agent-governance/)

[Previous: What is eBPF, and how does it secure AI agents at runtime?](https://www.tigera.io/learn/guides/ai-agent-security/ebpf-ai-agent-security/) | [Next: Agent gateway vs AI gateway vs MCP gateway: what is the difference?](https://www.tigera.io/learn/guides/ai-agent-security/agent-gateway-vs-ai-gateway-vs-mcp-gateway/)

Add Tigera as a preferred source on Google to see more of our content in your search results.

[![Add as a preferred source on Google](https://www.tigera.io/app/themes/tigera2021/dist/img/google-preferred-source-light.png)](https://www.google.com/preferences/source?q=tigera.io)

<!-- plugin=object-cache-pro client=phpredis metric#hits=6883 metric#misses=52 metric#hit-ratio=99.3 metric#bytes=3695345 metric#prefetches=418 metric#store-reads=29 metric#store-writes=34 metric#store-hits=425 metric#store-misses=41 metric#sql-queries=34 metric#ms-total=440.63 metric#ms-cache=16.12 metric#ms-cache-avg=0.2601 metric#ms-cache-ratio=3.7 -->
