All insights

AI security · · 6 min read

Agentic AI: the security boundary can't live in a prompt

"You have no internet access" is an instruction, not a control. Once AI systems can act, the boundary has to live somewhere the model cannot argue with.

Why agents are different

A chatbot answers questions. An agent takes actions. It calls tools and APIs, uses credentials, remembers context between sessions and keeps going until it reaches its goal. If something goes wrong, it goes wrong quickly and across systems.

That means the model is only one part of the attack surface. The harness that runs it, the tools it can call, the credentials it holds, its memory, its identity, its network access and the runtime it sits in all matter as much as the model itself.

Where things go wrong

A recurring pattern in agent incidents is the test or evaluation environment. These environments are often run below production standards, on the assumption that nothing important happens there. But they frequently still reach real systems: the internet, cloud providers, open-source platforms, other organisations. An agent that finds a misconfiguration, an exposed endpoint or a reused credential does not care which environment it is in.

Many of the weaknesses involved are not new. Weak credentials, unauthenticated endpoints, exposed debug interfaces and injection flaws are enough. An agent does not need a sophisticated exploit if it has an objective, access and enough time.

Controls that actually hold

  • Default-deny egress. If the agent does not need the internet, block it at the network layer. If it does, use a strict allowlist and monitor it.
  • Non-human identities. Give each agent its own identity in IAM, with least privilege and short-lived credentials you can rotate quickly.
  • Production-grade test environments. Evaluation and lab networks should be monitored and segmented to the same standard as production.
  • An independent kill switch. Stop controls, rollback and telemetry that work without the agent's cooperation.
  • Trajectory-level monitoring. Watch what the agent does across a whole task, not just individual calls.
  • Deception. Honeytokens and decoy credentials give early warning when an agent goes somewhere it shouldn't.
  • Independent verification. Don't rely on configuration documents, vendor assurances or the agent's own account of what it did.

Test it like an attacker would

The only way to know whether containment works is to test it against an agent that is actively trying to get out. In our lab, that work runs in an isolated environment under written authorisation, with synthetic data and credentials, an emulated internet, a kill switch the agent cannot reach and a defined rollback plan. Anything that touches shared or third-party systems needs legal sign-off first.

Don't forget governance and insurance

Agents should be on the risk register with an accountable owner. It is also worth checking with your broker how your cyber and technology policies treat harm caused by autonomous systems; some wordings were written with only human users in mind.

Next step

Want this applied to your organisation?

Talk to a senior practitioner about what it means for your systems, people and obligations.