TL;DR
- Ten risks, one question: The OWASP Top 10 for Agentic Applications 2026 is easier to map to controls when you ask each risk which credential is at stake and where it lives.
- 24,008 secrets in public MCP configs: The State of Secrets Sprawl 2026 report found them in 2025, with 2,117 still valid, which makes MCP servers the concrete face of agentic supply chain risk.
- Five controls shrink most risks: Keep secrets out of the agent's context, give agents scoped identities, inventory agents and MCP servers, find leaked credentials, and attach an owner to every credential.
An AI agent is a piece of software that decides, on its own, what to do to reach a goal. Any keys it finds along the way will likely be used in its attempt to reach that prompted goal. That is one takeaway from the OWASP Top 10 for Agentic Applications 2026.
Every agent that takes an action is doing so with granted permissions. This can look like opening a pull request, querying a database, or calling a Model Context Protocol (MCP) server. It does any of those actions, or more, with an API key, a token, or an identity someone handed it. When the agent gets tricked, confused, or compromised, that credential lets it cause damage.
Attackers are already logging in, rather than breaking in. CrowdStrike's 2026 Global Threat Report found that 82% of detections in 2025 were malware-free, with adversaries using valid credentials and trusted identity flows to move around. Agents add a new kind of user to those flows, along with many new credentials.
Most teams have been asked to map the OWASP agentic AI top 10 to controls. The fastest path is to ask each risk the same question: which credential is at stake, and where does it live?
What is the OWASP Top 10 for Agentic Applications 2026?
The OWASP Top 10 for Agentic Applications 2026 lists the most critical security risks facing autonomous and agentic AI systems. The OWASP GenAI Security Project's Agentic Security Initiative published it in late 2025. The list is a reaction to teams needing to secure software that plans, keeps memory, calls tools, and takes actions with delegated authority. That covers coding agents in a developer's terminal, internal agents wired into ticketing and cloud systems, and multi-agent workflows that hand tasks to one another.
The publication really rests on two major but straightforward design principles. The first is least agency, which means giving an identity, an agent in this case, only the autonomy it needs to finish a bounded task. The second is observability, which means being able to see what an agent did and why. Both are easier said than done when the agent is running on a laptop with a developer's full set of credentials.
How it differs from the OWASP Top 10 for LLM Applications
OWASP publishes many Top 10 lists, including the original Top 10, which it has been revising for over 20 years.
One list the organization previously published was the OWASP GenAI LLM Top 10, covering what can go wrong with a model and the application wrapped around it. Prompt injection, sensitive information disclosure, and improper output handling all describe a model that says the wrong thing.
The Top 10 for Agentic Applications list starts by addressing a different set of concerns: what security is needed when an identity driven by a large language model (LLM) can act on real-world systems. Agents read files, run shell commands, and call APIs or other agents, so that any bad output can lead to harmful actions.
All the LLM risks still apply, but most teams are not building their own LLMs these days. They are leveraging agents to write code, handle inbound ticket requests, and update and process through logs, just to name a few examples. The agentic list adds the risks that come from autonomy, tools, and delegated identity.
Put another way, the agentic list is about what the agent can touch. What an agent can touch is defined by its credentials.
What is the lethal trifecta?
Simon Willison described the lethal trifecta for AI agents: access to private data, exposure to untrusted content, and the ability to communicate externally. Combine all three, and an attacker can trick the agent into sending your data somewhere it shouldn't go. Every leg of that trifecta runs on a credential, whether that is the database token that grants access, the API key that fetches outside content, or the webhook secret that sends data out.

AI is just one category of non-human identities (NHIs). NHIs already overwhelmingly outnumber the humans touching your systems.
Palo Alto Networks estimates a ratio of 109 non-human identities for every human, and agents are now adding to that count every day. The GitGuardian State of Secrets Sprawl 2026 report found 1.27 million secrets tied to AI services exposed in 2025, up 81% year over year. Those are the keys agents use to do their jobs, sitting in public code where anyone can pick them up.
Our earlier look at the OWASP Top 10 for non-human identities made the same point from the identity side. Agents are non-human identities with a lot more initiative.
The OWASP agentic top 10 risks, mapped to the credential at stake
Here is the whole list at a glance before going risk by risk.
| Entry | Risk | Credential at stake |
|---|---|---|
| ASI01 | Agent goal hijack | Any secret the agent can read or send |
| ASI02 | Tool misuse and exploitation | The valid token behind each tool |
| ASI03 | Identity and privilege abuse | Inherited, cached, and over-scoped credentials |
| ASI04 | Agentic supply chain vulnerabilities | Keys held in MCP server configs |
| ASI05 | Unexpected code execution | Every credential on the host machine |
| ASI06 | Memory and context poisoning | Secrets in prompts, transcripts, and memory |
| ASI07 | Insecure inter-agent communication | Tokens passed between agents |
| ASI08 | Cascading failures | One shared key across many systems |
| ASI09 | Human-agent trust exploitation | The secret a human hands over on request |
| ASI10 | Rogue agents | Credentials nobody can attribute or revoke |
ASI01 Agent goal hijack: injected instructions that go after secrets
Agent goal hijacking happens when malicious content, such as prompt injection, changes an agent's stated instructions. Agents struggle to tell the difference between valid directions and text that only looks like instructions, so a hidden line in a README, a ticket, or a web page can redirect the whole task.
One valuable redirect from attackers is "go find the keys." An injected instruction can ask a coding agent to print environment variables, read ~/.aws/credentials, or post the contents of a .env file into a pull request comment. The agent is simply following instructions it already had access to. This is exactly what happened in the Nx 's1ngularity' attack.
The fewer secrets an agent can see, the less damage a hijacked goal can do.
ASI02 Tool misuse and exploitation: valid credentials, harmful actions
Tool misuse is what we call it when an agent uses a tool, like Bash or an MCP server, in a way nobody intended. Untrusted input gets passed straight into a shell command or a database query, or a cleanup tool deletes records it was only meant to read. Unpredictability is a value of these agents, as they can find their own path. Having access to affect real systems in unexpected ways is the real danger.
Credentials behind the tool are perfectly valid, and we are used to leveraging them at human speed in all sorts of fields and terminal prompts. That is what makes this risk hard to spot. Every log line shows an authorized identity making an authorized call, and the damage hides inside the request itself.
Following the principle of least privilege makes sure unexpected actions do not cause unintended harm. A tool backed by a read-only token cannot delete anything, no matter how confused the agent gets.
ASI03 Identity and privilege abuse: inherited, cached, and over-scoped credentials
Credentials, such as API keys, passwords, and session tokens, are the real issue in this entry. Agents inherit or share credentials and delegated authority, and attackers exploit those paths to reach systems the agent was never meant to touch.
Picture a coding agent running in a developer's terminal. It inherits that developer's cloud CLI session, their GitHub token, and whatever is cached in their shell. Nobody issued the agent its own identity, so it simply borrows access from anyone with the right permissions, assuming their identity in the process. The token was scoped for a human doing a dozen different jobs, and now an automated process with far less judgment holds it.
Short, scoped, task-specific credentials are the fix OWASP points toward. GitGuardian has published a guide to short-lived credentials in agentic systems, walking you through the trade-offs. Long-lived tokens are still the norm, though. GitGuardian's State of Secrets Sprawl report found that 64% of credentials valid in 2022 were still valid in January 2026. An over-scoped key handed to an agent today will probably still work years from now.
ASI04 Agentic supply chain vulnerabilities: MCP servers and the keys they hold
Agents load third-party models, plugins, tool descriptors, and MCP servers at runtime. If any of those are malicious or tampered with, the agent's behavior changes with them.
MCP servers are where this gets concrete. Each server usually needs its own credentials to reach the system it wraps, and those credentials often sit in plaintext in a JSON config file on the developer's machine. The State of Secrets Sprawl 2026 report found 24,008 unique secrets in public MCP configuration files in 2025, and 2,117 of them were still valid. That is just what made it to public GitHub. Our research into secrets exposed in MCP servers goes deeper into how this happens.
A malicious MCP server gets handed the keys as part of normal setup.
ASI05 Unexpected code execution: shell access to every credential on the machine
Agent-generated or externally influenced code can run in ways nobody planned. When an agent can run, as part of a normal workflow, an unvalidated script on the host machine, that means it can execute an attacker's payload.
On the developer's laptop, those payloads are often crafted to access every credential on the machine. Cloud CLI profiles, SSH keys, and .env files from every project a developer has ever worked on, all sit within reach of a single shell command. The developer's own access is already everything an attacker wants, with no privilege escalation required.
This is why the endpoint matters so much in agentic security. The machine an agent runs on is part of its blast radius.
ASI06 Memory and context poisoning: secrets in prompts, transcripts, and memory
Memory and context poisoning involve corrupting an agent's long-term memory, retrieval-augmented generation (RAG) indices, or shared context so that future reasoning goes wrong. This can push stern rules like "don't delete the database" or "never share a password" out of the context window, removing any security suggestions the developer has made.
There is a credential side to this as well. Attackers know that developers often paste keys into prompts, mostly in an effort to debug something. Agents read config files to finish tasks, and any secrets end up in transcripts, history files, and memory stores that persist long after the session ends. In one analysis of developer machines, around 40% of high and critical secrets surfaced in AI tool directories and log files.
Anything in an agent's memory can be recalled, summarized, or leaked later by anyone who gains access. Often the agents themselves will be happy to print their full memory or make it downloadable. A secret that never enters the context can never be manipulated out of it.
ASI07 Insecure inter-agent communication: tokens passed between agents
Multi-agent systems require coordination and communication between these non-human identities. They will pass messages, tasks, and often credentials between themselves and any sub-agents they spin up. Weak authentication, encryption, or validation lets attackers intercept, spoof, or replay those messages.
When one agent delegates to another, it often passes along as much context as it thinks would be helpful. Tokens and keys often come along for the call. If that token is long-lived and broadly scoped, anyone who eventually scrapes or reads that containing message can use it. If the receiving agent does not verify who sent the request, a spoofed message can trigger real actions with real credentials.
Every hop is another place a token can be copied.
ASI08 Cascading failures: one leaked key, many systems
Cascading failures happen when a single fault spreads across connected agents and services. One poisoned input leads several agents to repeat the same mistake. In our interconnected systems, any issues rarely stay isolated. Credentials further increase the blast radius.
Imagine five agents and three pipelines using the same API key. One leak compromises all of them, and rotating that key breaks all of them at once. Teams know this, which is exactly why the shared key never gets rotated. Attackers know this and are counting on the fact that when they find a valid key, it will likely stay valid for a long while. Read more about the blast radius of an AI agent in more depth; it almost always comes back to what one credential can actually reach.
ASI09 Human-agent trust exploitation: when the agent asks for the key
People trust confidence. This is the heart of what allows "confidence men," also known as "con men," to succeed in their scams. Agents always sound confident, and we end up trusting them as we might a trusted colleague. This is a mistake. The fear with credentials is that an agentic copilot can talk a user into sharing keys they shouldn't hold.
One agent stuck on an authentication error will happily suggest that the developer paste the API key into the chat, and the developer, wanting to get on with their day, will do it. The temptation is strong because it works. The key now lives in the model provider's systems and in the local transcript.
Nobody in that story is a villain or an adversary. The process made the easy path the risky one, and the risk to the business is still very real.
ASI10 Rogue agents: credentials nobody can attribute or revoke
Rogue agents drift from their intended purpose through compromise, misalignment, or emergent behavior. An agent keeps acting after its task ends, or fakes an approval to get something done.
When you find an agent doing something it should not, can you tell which credential it is using, who owns it, and what else depends on it? If the answer is no, you cannot shut it down without breaking something else, and you cannot be sure you shut it down at all.
A credential nobody can attribute is a credential nobody will revoke.
Where do AI agent credentials live?
Mapping the risks is actually the easy part for security teams. After all, OWASP makes the case for these risks very clearly. Finding and remediating the credentials that underpin these risks is the real work.
Agent credentials live in a few predictable places on the developer machine, such as MCP configuration files, which too often hold keys for every server an agent is wired into. Many teams think agent transcripts and history files hold whatever was pasted into a prompt or read during a task. Environment variables, .env files, and cloud CLI caches hold the credentials an agent inherits from the developer who launched it.
Credentials also escape into places no one intended, and no one is watching. This includes commits and config. Those commits land in repositories and CI/CD pipelines. Agents also post into tickets and chat threads, where a key pasted for debugging stays readable for years.
All of that is part of the credential layer: the full accounting for where the total set of credentials that let code, machines, developers, and AI agents access systems connect. Agents have made the credential layer bigger, busier, and much harder to see.
How to reduce credential risk across the agentic top 10

Most risks in this, and other OWASP Top 10 lists, get smaller when you control what any identity can reach and what credentials it can use. A practical program looks something like this.
- Keep secrets out of the agent's context. Scan every prompt, tool call, and tool output on the developer machine every time. Use those scan findings to block secrets before they reach the model. This shrinks risks from ASI01, ASI06, and ASI09 all at once.
- Give agents their own scoped identities. Stop lending agents your full developer permissions and keys. Issue task-specific, short-lived tokens wherever the target system supports them. This addresses ASI03 and ASI07.
- Inventory agents and MCP servers. Know which agents run on which machines, which MCP servers they are configured to use, and what those servers can reach. This addresses ASI04 and ASI10.
- Find the credentials that have already leaked. Scan developer machines and repositories, along with CI/CD and collaboration tools, for secrets agents and humans left behind. This directly applies to the risks from ASI05 and ASI06.
- Attach an owner to every credential. Security teams need to know who owns each key, what it can reach, and where else it lives, so revocation is fast and safe, addressing ASI08 and ASI10.
The first step does a lot of work for AI agents. If the secret never enters the context, a hijacked or confused agent has nothing to send. The GitGuardian guide on AI agent security for developers covers the day-to-day habits that support the rest.
How GitGuardian fits into agentic AI security
GitGuardian is a credential-layer security platform, and for agentic AI, work starts with stopping secrets at the source.
Scan prompts and tool calls with AI hooks
Securing agentic workflows requires deterministic security controls at the points where agents interact with credentials. GitGuardian brings these controls directly into the agentic workflow through Agentic AI hooks. By integrating with coding agents such as Claude Code, Cursor, and GitHub Copilot, GitGuardian can inspect prompts, tool calls, and tool outputs for secrets. GitGuardian can block secrets in prompts and tool calls before they reach the model, and block or alert on secrets in tool outputs, depending on the assistant's capabilities.
AI hooks give organizations a way to enforce consistent credential security policies across their growing population of AI users. This is especially important as citizen developers adopt coding agents without necessarily understanding the security implications of handing an agent a credential. Security teams can establish automated checkpoints that operate at the speed of the agent and independently of the model's decision-making process.
See what agents can reach with Developer Endpoint Protection
The next priority is understanding what credentials are already within reach of those agents. GitGuardian Developer Endpoint Protection gives security teams visibility into the agents and MCP servers installed across their fleet of developer machines. It also discovers hardcoded secrets sitting in local configuration files, shell histories, agent transcripts, and other locations that traditional repository scanning would miss. Security teams can identify which machines pose the greatest credential-exposure risk and centrally deploy preventive controls through their existing mobile device management (MDM) infrastructure.
Detect and remediate exposure beyond the endpoint
Beyond the endpoint, the GitGuardian Platform provides continuous detection across source control, CI/CD pipelines, and collaboration platforms. Teams can quickly surface the context needed for any secret's validity, permissions, ownership, and dependencies; GitGuardian helps teams prioritize and safely remediate existing exposures.
We are ready to help every organization start reducing their exposure to the OWASP Top 10 for Agentic Applications today.
Where agentic AI security is heading
The OWASP Top 10 for Agentic Applications will evolve just as other OWASP lists have, reflecting new threat data, documented incidents, and our collective understanding of emerging security risks. As agents become more capable, we should expect the security challenges surrounding them to evolve as well. Securing agentic AI will require an ongoing effort from the entire security and developer community.
We cannot expect advances in AI models alone to make agentic workflows inherently secure. Thankfully, resources like the OWASP AI Testing Guide and the OWASP MCP Governance and Risk Framework are helping organizations establish more structured approaches to securing these systems. The principles of least privilege and zero trust must remain at the heart of every architectural decision involving agents and the systems they can access.
Every organization is at a different point in its agentic AI security journey. Some teams want to immediately put preventive controls in place by installing GitGuardian AI hooks across their developer machines. Others want to start by assessing their organization's overall exposure to secrets that AI agents could discover and abuse.
Wherever you are in your journey, GitGuardian is here to help. Book a demo, and we'll help you determine the best path forward for securing your credential layer in an increasingly agentic world.
FAQ
What is the difference between the OWASP LLM Top 10 and the agentic top 10?
The OWASP LLM Top 10 covers risks in large language models and the applications built around them, such as prompt injection and sensitive information disclosure. The OWASP Top 10 for Agentic Applications 2026 covers risks that appear when AI systems act on their own with tools, memory, and delegated credentials. Examples include goal hijack, tool misuse, and identity and privilege abuse.
What are the OWASP Top 10 risks for agentic applications?
The OWASP Top 10 for Agentic Applications 2026 lists ten risks: ASI01 agent goal hijack, ASI02 tool misuse and exploitation, ASI03 identity and privilege abuse, ASI04 agentic supply chain vulnerabilities, ASI05 unexpected code execution, ASI06 memory and context poisoning, ASI07 insecure inter-agent communication, ASI08 cascading failures, ASI09 human-agent trust exploitation, and ASI10 rogue agents.
What are the main lessons from OWASP Top 10 for Agentic Applications 2026?
Give agents the least autonomy they need, make their actions observable, and treat their credentials as a first-class risk. Most of the ten risks shrink when agents cannot see secrets they don't need and when every credential an agent uses is scoped, short-lived, and owned.
Which OWASP agentic risks involve credentials?
Nearly all of them. ASI03, identity and privilege abuse, is directly about credentials, and ASI04 covers the keys held in MCP server configurations. Goal hijacking, code execution, memory poisoning, and rogue agents all become far more damaging when the agent can reach valid API keys, tokens, or cloud credentials.