Agents Act, So Attackers Will Too: Securing the Agentic AI Frontier

Agents Act, So Attackers Will Too: Securing the Agentic AI Frontier

From answering to acting

Traditional AI applications are largely stateless. They take an input and return text or embeddings. Agentic AI works differently. Agents run an iterative loop of perception, reasoning, planning, memory and tool execution.

Agents can now orchestrate multi-step workflows, call external APIs, edit source repositories and connect through open protocols such as the Model Context Protocol (MCP). That delivers real efficiency. It also changes the security model. Prompt filtering and input validation are no longer enough. Defence now depends on runtime containment, dynamic identity boundaries and behavioural telemetry.

The anatomy of the agentic attack surface

To defend an agent, model threats against each stage of its execution loop: memory, reasoning, tools and inter-agent communication.

1. Goal hijacking

  • What it is: Classic jailbreaks try to make a model produce forbidden text. Goal hijacking goes further and replaces the agent’s objective.
  • Why it matters: An agent reading a customer email with hidden instructions can be switched from “summarise this file” to “send database keys to an external endpoint.”

2. Memory poisoning

  • What it is: Malicious data planted in short-term working memory or long-term vector memory.
  • Why it matters: The payload carries into later reasoning cycles. A one-off prompt injection becomes a persistent, multi-session weakness that skews decisions and can trigger unauthorised actions.

3. Tool misuse and excessive agency

  • What it is: Agents get broad read/write permissions tied to a human operator’s identity instead of a narrowly scoped technical role.
  • Why it matters: Attackers can exploit tool descriptions. A compromised or hallucinating agent that believes it may run administrative scripts can trigger unexpected code execution or destructive deletions.

4. Cascade and handoff failures

  • What it is: In multi-agent systems, agents pass tasks and state to one another.
  • Why it matters: If an upstream agent accepts corrupted data, the flaw spreads downstream at machine speed. Without cryptographic signing of inter-agent messages, rogue sub-agents can intercept handoffs, collude across tenant boundaries and aggregate enterprise data.

Defensive architecture: treat agents as untrusted runtimes

The guiding principle is to treat every agent as untrusted software operating inside tightly restricted limits.

1. Harden the action runtime with micro-sandboxing

  • Treat tool execution as untrusted code deployment. Standard containers often fall short for high-risk agents.
  • Use minimal virtualisation runtimes such as gVisor, Kata Containers or Firecracker MicroVMs to enforce strict CPU, memory and disk isolation.
  • Apply default-deny egress. Agents should never reach cloud metadata endpoints, where they could lease infrastructure credentials.
  • Route all tool-driven network traffic through allow-listed proxies that inspect application-layer requests.

2. Apply Zero Trust to non-human identities (NHI)

  • Micro-segmentation: Confine each agent to an explicit project boundary, not a broad user role. For example, an engineering agent should live in a single signed enclave, with everything outside it absent from its view of the network and tools.
  • Just-in-time credentials: Agents should never hold static database credentials or permanent OAuth tokens. Issue short-lived, single-use tokens scoped to the sub-task, and revoke them once the call returns. This limits the blast radius of any compromise.

3. Add behavioural brakes and telemetry

  • Circuit breakers run at the API gateway and stop an agent automatically if tool calls, data volumes or costs cross a set threshold within a given window.
  • Kill switches give humans a global override that ends active execution and invalidates all distributed bearer tokens at once.
  • Immutable logging: Stream planning steps, selected tool schemas and final function calls into write-once logs for anomaly detection and compliance review.

Rolling out safely

Start with single-purpose agents. Move to multi-agent designs only when isolated tasks truly require them. With hard sandboxing, zero-trust identities and behavioural guardrails in place, enterprises can scale agentic automation while sharply reducing risk.

Key takeaways for CISOs

  1. Redefine the perimeter. For agents, the control point is the runtime, not the prompt. Budget for containment and telemetry, not only input filters.
  2. Treat agents as identities. Give each one a scoped, owned and auditable non-human identity, never a borrowed human credential.
  3. Remove standing access. Use just-in-time, single-use tokens so a compromised agent has little to steal.
  4. Assume untrusted content will reach your agents. Emails, documents and web pages are attack vectors. Design for the case where the agent is already manipulated.
  5. Build the off switch before launch. Circuit breakers, kill switches and token revocation should be tested before an agent touches production.
  6. Log the reasoning, not just the result. Immutable records of plans and tool calls are your forensic trail and your compliance evidence.
  7. Scale slowly. Start with single-purpose agents and add multi-agent complexity only when it is justified.

Questions to ask your team this week:

  • How many agents do we run, and who owns each one?
  • What can each agent reach that it doesn’t need?
  • Can we stop an agent within seconds, and can we prove what it did?
Dr. Jassim Haji
+ posts

President, International Group of Artificial Intelligence

Share:

Author

Dr. Jassim Haji

President, International Group of Artificial Intelligence

Chat with CISONow.in