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.

Muhammad Anwar
· 4 min read

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:

  1. A model that decides what to do next.
  2. Tools it can call: APIs, databases, browsers, email, code execution.
  3. 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.

ControlWhat good looks like
IdentityEach agent has its own non-human identity, not a shared account or a user’s credentials
Least privilegeTools and data scoped to the task; read-only by default
Human approvalPeople confirm high-impact actions: payments, external emails, deletions, permission changes
Untrusted input handlingRetrieved content is treated as data, never as instructions, with filtering where possible
Output controlsOutbound actions checked against policy (destinations, data types, volumes)
LoggingEvery tool call recorded with inputs, outputs, identity and time
Kill switchA tested way to disable the agent’s tools in minutes
Rate limitsCaps 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

  1. What is the worst action this agent could take if fully manipulated?
  2. Does it need every permission it has?
  3. Which actions need a human to approve?
  4. Can we see every action it takes, and for how long are logs kept?
  5. Who can switch it off, and have they practised?
  6. 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.

Muhammad Anwar

Cybersecurity & Compliance Assurance Leader specialising in the ISM, PSPF, NIST SP 800-53, SOCI Act and AI governance (ISO 42001). Views are my own.