AI Security
Agentic AI Security: How to Secure AI Agents Before They Act
AI agents read, decide and act on their own. The real risks of agentic AI, and the controls that matter: identity, least privilege, approvals and logging.
The shift from AI that talks to AI that acts is the biggest change in enterprise technology this year. Agents now book meetings, triage tickets, write and run code, update records and send emails. Each of those actions used to need a person with an account and a reason.
That is exactly why agentic AI security deserves its own attention. A chatbot that is manipulated says something wrong. An agent that is manipulated does something wrong, at machine speed, with real credentials.
What makes agents different
An AI agent combines three things:
- A model that decides what to do next.
- Tools it can call: APIs, databases, browsers, email, code execution.
- Autonomy: the ability to chain several steps without a person approving each one.
Risk grows with each. A model with no tools and a human reading every answer is low risk. A model with broad tools, long-running memory and no approvals is a privileged insider that anyone can talk to.
The five risks that matter most
1. Prompt injection turns into action
Any content the agent reads can carry instructions: a web page, an email, a calendar invite, a support ticket. If the agent treats that content as commands, an attacker can direct it without ever touching your systems. OWASP calls the result excessive agency: the agent does more than it should because it can. See prompt injection explained.
2. Over-privileged identities
Agents are often deployed quickly with a broad service account so the proof of concept “just works”. Those permissions rarely get reviewed. The agent becomes the most privileged and least monitored identity in the environment.
3. Invisible actions
If you cannot see every tool call the agent made, you cannot investigate an incident, prove what data left, or meet notification deadlines.
4. Memory and context poisoning
Agents that remember previous interactions can be manipulated slowly. A poisoned note today can steer a decision next week.
5. Agent-to-agent trust
As agents call other agents, accountability fragments. Who authorised the action when Agent A asked Agent B to do something on behalf of a user?
The controls that actually work
Prompts are not a security boundary. Telling the model to “ignore malicious instructions” does not hold up against a determined attacker. Effective controls sit outside the model.
| Control | What good looks like |
|---|---|
| Identity | Each agent has its own non-human identity, not a shared account or a user’s credentials |
| Least privilege | Tools and data scoped to the task; read-only by default |
| Human approval | People confirm high-impact actions: payments, external emails, deletions, permission changes |
| Untrusted input handling | Retrieved content is treated as data, never as instructions, with filtering where possible |
| Output controls | Outbound actions checked against policy (destinations, data types, volumes) |
| Logging | Every tool call recorded with inputs, outputs, identity and time |
| Kill switch | A tested way to disable the agent’s tools in minutes |
| Rate limits | Caps on actions per period to limit the blast radius |
How this fits Australian frameworks
You do not need to wait for agent-specific rules. Existing frameworks apply if you treat agents as non-human principals with a job description:
- The Essential Eight strategies on admin privileges, application control and MFA map directly to agents. I cover this in Essential Eight in the age of AI agents.
- The ISM controls on access, logging and event monitoring apply to agent identities as much as user accounts.
- ASD’s guidance on engaging with AI, and the joint international guidance on deploying AI systems securely, both stress least privilege, monitoring and treating AI inputs as untrusted.
- ISO/IEC 42001 expects you to assess and treat AI risks across the lifecycle.
Questions to ask before an agent goes live
- What is the worst action this agent could take if fully manipulated?
- Does it need every permission it has?
- Which actions need a human to approve?
- Can we see every action it takes, and for how long are logs kept?
- Who can switch it off, and have they practised?
- What content does it read that someone outside the business could influence?
If the answer to the first question is “send our customer data anywhere” or “move money”, the agent is not ready.
Practise the response
Controls fail. When an agent misbehaves, your team needs to stop it, scope the damage, decide whether the incident is notifiable and fix the design, usually in the same afternoon. The free Rogue AI Agent tabletop exercise walks you through those decisions in about three minutes.
For an independent review of an agent before or after deployment, see my AI security assessment guide or talk to Sentinel.