AGT Glossary Term

What is AI Agent Security?

A practical guide from TrustML to the threats that come with AI agents—and the controls that stop them.

Definition

AI agent security is the practice of protecting an organization when AI systems can read private data, use tools and take actions on a user's behalf. It covers threats such as prompt injection, poisoned tools and connectors, malicious skills or plugins, privilege escalation, data exfiltration and runaway cost—and the controls that limit what an AI can access, do and send.

Why AI agents changed the security picture

In 2026, AI moved from answering questions to taking actions. The major AI suites now ship agents that drive desktops, browse the web as you, connect to your apps through MCP servers, and install skills from public marketplaces. Several of these agents are switched on by default for business users unless an administrator turns them off.

Every new capability is also a new path for an attacker. A chatbot that gives a bad answer is a quality problem. An agent that follows hidden instructions while holding your credentials is a security incident.

The lethal trifecta

Security researcher Simon Willison coined the term lethal trifecta for the three capabilities that, together, make an AI system exploitable:

Private data

The AI can read your files, email, records or systems.

Untrusted input

The AI processes content an attacker can influence—web pages, emails, documents, tool output.

A way out

The AI can send data somewhere: a link, an email, an API call, a file write.

When all three are present, an attacker can hide instructions in content the AI reads and trick it into leaking your data. Remove any one leg and the attack breaks.

AI agent threats in 2026

ThreatWhat happensReal-world example
Prompt injectionHidden instructions in content make the AI act for the attacker."Claudy Day": chained flaws exfiltrated data from a default AI chat session (Oasis Security, Mar 2026).
Poisoned MCP toolsA connected tool returns or describes itself with malicious instructions."Agentjacking": injection through an MCP server hijacked popular coding agents (Cloud Security Alliance, Jun 2026).
Malicious skillsUsers install plugins or skills that carry hidden behavior.Hundreds of malicious skills found on a public agent skills marketplace (Jan–Feb 2026).
Privilege escalationThe AI is tricked into using permissions the user shouldn't have.Agents running with broad tokens or admin-level connectors.
Data exfiltrationPrivate data leaves through links, images, emails or API calls.The "way out" leg of the lethal trifecta.
Runaway costLong-running agents burn through metered credits.Credit-based agent pricing became standard across major suites in 2026.

AI agent security controls checklist

How TrustML approaches AI agent security

TrustML connects your team's AI to your company's knowledge without handing it the machine:

See the full details on the TrustML Security & Governance page, or read What is an AI Gateway?

Frequently asked questions

What is AI agent security?

AI agent security is the practice of protecting an organization when AI systems can read private data, use tools and take actions on a user's behalf. It focuses on limiting what an AI can access, what it can do, and where it can send data.

What is the lethal trifecta in AI security?

The lethal trifecta is the combination of three capabilities in one AI system: access to private data, exposure to untrusted input, and a way to send data out. When all three are present, an attacker can hide instructions in content the AI reads and trick it into leaking your data. Removing any one leg breaks the attack.

What is prompt injection?

Prompt injection is an attack where instructions are hidden inside content an AI processes, such as a web page, email, document or tool description, so the AI follows the attacker's instructions instead of the user's.

Are MCP servers and AI skills a security risk?

They can be. MCP servers and skills extend what an AI agent can do, which also extends what an attacker can do. In 2026, researchers showed poisoned MCP tool output hijacking coding agents, and public skills marketplaces were found hosting hundreds of malicious skills. Only use servers and skills your organization has vetted and approved.

How does TrustML approach AI agent security?

TrustML connects your team's AI to your company's knowledge without handing it the machine. It never drives desktops, browsers or inboxes, has no public plugin or skills marketplace, limits AI to what each user's role allows, and scans every question and answer against your policies before anyone sees it.

Get AI that answers inside your rules

Five AI providers, one policy, one audit trail—and every answer checked before anyone sees it.

See how TrustML secures AI