# Your newest insider is an AI agent with an IAM role

> Coding assistants, support bots and internal agents now read untrusted text and hold real credentials. Prompt injection turns that combination into an insider threat. What's been documented, why it can't be fully patched, and how to limit the blast radius.

Published October 30, 2026 by Antivenom · https://antivenom.ai/blog/ai-agents-are-insiders

A year ago, the AI in most companies was a chat window. Today it's an agent. It reads your tickets, your inbox and your repositories, and it can act: open pull requests, query databases, call cloud APIs. To do that, it holds credentials.

That makes it something security teams already know how to think about: **an insider.** A very fast, very helpful insider that can be talked into things by anyone who can put text in front of it.

## How an agent gets turned

The core problem has a name: **prompt injection**. A language model can't reliably tell the difference between instructions from its owner and instructions hidden in the content it's reading. If an agent reads an email, a web page or a GitHub issue that says "ignore your previous task and do this instead", it may comply.

![Diagram: untrusted content such as an issue, email or web page flows into an AI agent, which holds credentials for a repository, a database and a cloud account. The injected instruction is carried out with the agent's own permissions.](/blog/agent-insider.svg)

OWASP ranks prompt injection as the [number one risk for LLM applications](https://genai.owasp.org/llmrisk/llm01-prompt-injection/) and says plainly that it's unclear whether fool-proof prevention exists. That's unusual language for a security standard, and worth taking seriously.

## It's already happened

**A zero-click leak in an office assistant.** In June 2025, Microsoft fixed [CVE-2025-32711](https://cveawg.mitre.org/api/cve/CVE-2025-32711), an AI command injection flaw in Microsoft 365 Copilot rated 9.3 out of 10. Researchers who named it "EchoLeak" [showed](https://thehackernews.com/2025/06/zero-click-ai-vulnerability-exposes.html) that a crafted email could make the assistant leak internal data without the user clicking anything.

**A public issue that leaked private code.** In May 2025, researchers at Invariant Labs [demonstrated](https://invariantlabs.ai/blog/mcp-github-vulnerability) an attack on agents connected to GitHub through MCP. A malicious issue in a public repository instructed the owner's agent to pull data from private repositories and publish it in a public pull request. The researchers stressed that the server code wasn't buggy. The problem was architectural: the agent had access to everything, and it read text from anyone.

**A poisoned coding assistant.** In July 2025, AWS [disclosed](https://aws.amazon.com/security/security-bulletins/AWS-2025-015/) that malicious code had been committed to its Amazon Q Developer extension through an over-scoped token, and shipped in one release before being pulled. It didn't run because of a syntax error. It showed how close an AI tool's supply chain sits to developers' machines and cloud accounts.

## You can't patch the model into safety

The US government's AI standards body, NIST's Center for AI Standards and Innovation, has tested this directly.

- In [agent hijacking evaluations](https://www.nist.gov/node/1872381), new red team techniques raised attack success against a leading model's agent from 11% to 81%. Repeated attempts mattered: success rose with more tries.
- In a [large red-teaming competition](https://www.nist.gov/blogs/caisi-research-blog/insights-ai-agent-security-large-scale-red-teaming-competition) with more than 250,000 attack attempts, participants found at least one successful attack against **every one of the 13 frontier models** tested.

Models are getting better at resisting injection, and that matters. But the evidence says that, given enough attempts, an attacker can steer any of them. So the question isn't "is our model safe?" It's **"what happens when it gets steered?"**

## Treat agents like identities, because they are

The answer is the same one you'd give for any insider: limit what they can do, watch what they do, and make dangerous actions need a second key.

- **Give each agent its own identity.** Not a shared service account and never a human's personal token. You need to know which agent did what, and be able to revoke one without breaking the rest.
- **Scope permissions to the task.** A support bot that answers billing questions doesn't need write access to the billing database. An agent that triages issues doesn't need to read private repositories. Every permission it holds is a permission an injected instruction can use.
- **Separate reading untrusted content from taking powerful actions.** An agent that reads public input should not be the same agent that holds production credentials, or there should be a human approval step between them.
- **Require confirmation for irreversible actions.** Deleting resources, sending data outside the company, changing permissions: these deserve a human click.
- **Log agent actions like admin actions.** If an agent suddenly reads data it never touched before, or calls APIs outside its pattern, that's an anomaly worth an alert.
- **Inventory your MCP servers and tools.** Every tool connected to an agent widens what a single injected sentence can reach. Know what's connected and why.

## Test agents the way attackers will

Agents are new, but the test is old: assume someone can control the input, and see what they can reach. Most teams haven't run that test against their own agents yet, because the agents arrived faster than the security reviews did.

At Antivenom, we treat agents and their credentials as part of the attack surface. An AI red team, working only against your own systems and with your permission, tries to reach sensitive actions through the paths an agent opens up. The AI blue team narrows the agent's permissions and watches for unusual behavior, and the red team retests.

For why the identity behind any credential matters so much, read [your AWS perimeter is a graph of who can become whom](https://antivenom.ai/blog/iam-who-can-become-whom).
