Quick Answer

How Secure Are AI Agents?

It depends on access and checks. Here is what our tests showed.

The short answer. AI agents are only as secure as the access they are given and the checks around them. In our tests, the same attack that worked against a default setup was stopped by a hardened one. An agent with broad permissions and no approval step is risky. A narrowly scoped one with independent checks is much safer, but never risk-free.

How secure are AI agents today?

There is no single answer, because "AI agent" covers everything from a read-only assistant to a system that can send email and move money. What matters is what the agent can reach, who can talk to it, and what stops a bad action.

Three things make agents riskier than a plain chatbot:

For the side-by-side, see AI agent vs chatbot security.

What do real tests show?

HexTyx runs attacks against purpose-built test applications, not customer systems. The pattern is consistent: configuration decides the outcome.

In our support-ticket test, an AI worker processed incoming tickets automatically. A ticket with a hidden instruction told it to forward the contents to an outside address. In the naive configuration, the ticket was forwarded immediately with no human involved. In the hardened configuration, the identical ticket was held for review, even when the worker was triggered by hand. The details are in our zero-click test results.

In our Vault test app (synthetic data, live LLM agent), an injected fake confirmation led the agent to move $5,000. These are lab results, not incidents at a real company.

Outside our lab, researchers found "EchoLeak" (CVE-2025-32711) in Microsoft 365 Copilot in 2025, rated 9.3 out of 10. A crafted email could make the assistant expose data without the victim clicking anything. Microsoft has fixed it, and there is no evidence it was exploited in the wild.

What makes an agent more or less secure?

Factor Safer Riskier
Permissions Narrow, read-only where possible One broad key for everything
Approval Human sign-off for risky actions Acts on its own on anything
Untrusted input Treated as data, not commands Obeyed as instructions
Checks Enforced in code outside the model Only a line in the prompt
Logging and stop Every tool call logged, kill switch ready No record, no way to stop it

How do you make an AI agent more secure?

  1. Limit permissions. Give it only what the task needs. See AI agent permissions.
  2. Add approval for risky steps. Payments, deletions, outside sends.
  3. Treat everything it reads as untrusted.
  4. Check actions outside the model. See AI agent credential security.
  5. Log and keep a stop switch. See the kill switch guide.
  6. Test it. Run attacks against the whole workflow before launch. You can try the free playground.

A five-question self-check

Answer yes or no for your own agent.

  1. Can it send, pay, delete or change data without a person approving?
  2. Does it read content from outside your company, such as email, web pages or uploaded files?
  3. Does it hold a credential that reaches more than its task needs?
  4. Is the only rule against misuse written in the prompt?
  5. Would you struggle to say what it did yesterday, or to stop it right now?

Zero or one yes answers suggests a contained setup. Two or three means you should add controls before widening its use. Four or five means the agent can do real damage if it is steered, so narrow its access first. This is a rough screen, not a risk assessment.

Frequently Asked Questions

Are AI agents safe to use?
They can be, for tasks where the agent has narrow access and risky actions need approval. They are a poor fit for broad, unattended access to sensitive systems without those controls.
Are AI agents more risky than chatbots?
Generally yes. A tricked chatbot gives a bad answer. A tricked agent can take a bad action, such as sending data or changing records.
Can an AI agent be tricked by an email or web page?
Yes. Hidden instructions in content the agent reads can steer it. This is called indirect prompt injection.
What is the single best protection?
Limit what the agent can do. Narrow permissions reduce the damage from every other kind of failure.

Sources

Is your AI a chatbot or an agent?

Run the free playground scanner against your AI application and see what an attacker could make it do.

Related Guides

Question Hub
Top AI Security Questions
Quick Answer
Can AI Agents Be Hacked?
Best Practices
AI Agent vs Chatbot Security
Best Practices
AI Agent Token Security
All Topics
AI Security Topic Hub →