ThisCalculator

Everyday

AI Agent Security: Why Agentic Systems Need a New Model

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

AI Agent Security: Why Agentic Systems Need a New Model

AI agent security is the practice of protecting autonomous systems that can take actions on their own, and it needs a new security model because traditional perimeter-based and permission-based defenses cannot handle the unique risks of agents that plan, use tools, and act across multiple systems. This article explains why agentic systems break current security assumptions, what the new model looks like, and how to approach securing them.

Formula

Expected risky actions per hour = (Number of agents) × (Actions per agent per hour) × (Risk per action).

Where:

  • Number of agents – count of active autonomous agents (dimensionless).
  • Actions per agent per hour – average rate of actions (1/hour).
  • Risk per action – probability that a single action is harmful or violates policy (0 to 1).

The result is the expected number of risky actions per hour, and per 8-hour day.

Worked Example

Using the defaults: 10 agents, 20 actions per hour each, risk 0.05.

Expected risky actions per hour = 10 × 20 × 0.05 = 10 actions/hour.

Over an 8-hour day: 10 × 8 = 80 risky actions/day.

This matches the calculator output (10.00 actions/h and 80.00 actions/day).

Background: Why Traditional Security Fails

Classic security models assume a clear boundary: users authenticate, get permissions, and then act within a defined scope. Firewalls, access control lists, and role-based access control (RBAC) all rely on this. An agent breaks that assumption because it is not a user with fixed permissions; it is a program that can chain actions, invoke tools, and change its own context. For example, an email agent that can read messages and also send replies could, if compromised, exfiltrate data or send phishing emails. The agent’s actions are not pre-scripted, so you cannot simply enumerate what it is allowed to do.

Another core issue is the confused deputy problem: an agent with high privileges can be tricked into performing actions on behalf of an attacker. A classic example is a web crawler that follows a malicious link and performs a state-changing request. In agentic systems, this is amplified because agents use tools like web search, code execution, and API calls, and each tool call is a potential attack surface.

How Agentic Systems Change the Threat Model

Agentic systems introduce several new attack vectors:

  • Prompt injection – an attacker embeds instructions in data the agent reads (e.g., a webpage or email) that override the user’s original goal.
  • Tool misuse – an agent calls a tool with unexpected arguments, such as deleting files or sending money, because it misinterpreted a request.
  • Action chaining – a single harmful action may be split into many innocuous steps, making detection harder.
  • Indirect exfiltration – an agent might leak data through a tool that appears benign, like a search query or a log entry.

Unlike traditional malware, these attacks do not require exploiting a memory bug; they exploit the agent’s own reasoning. The agent is the vulnerability.

What a New Security Model Looks Like

The new model shifts from prevention to containment and verification. Key principles:

  • Least privilege with dynamic scoping – give agents the minimum permissions for a specific task, and expire them after the task.
  • Human-in-the-loop for high-impact actions – require approval for irreversible actions like sending money, deleting data, or changing access.
  • Continuous monitoring and anomaly detection – log every action and flag deviations from expected patterns.
  • Tool-level sandboxing – run tools in isolated environments with network and file system restrictions.
  • Input validation for agent prompts – treat all external content as untrusted and sanitize it before it reaches the agent’s reasoning.

For example, a customer-support agent might be allowed to read order history but not change shipping addresses without a manager’s approval. The system enforces this not by blocking the agent’s code, but by wrapping the tool call with a policy check.

Common Problems and Misconceptions

One common misconception is that adding more AI safety training will solve security. Training makes the agent less likely to be tricked, but it does not guarantee safety against a determined attacker. Another is that traditional logging is enough – but agents generate hundreds of actions per minute, and correlating them into a coherent attack story is difficult.

Another problem is over-privileged agents. Developers often give agents broad permissions to avoid breaking workflows, but this increases blast radius. For instance, an agent with access to a production database could accidentally drop a table. The fix is to use scoped credentials that expire and to require explicit authorization for each sensitive operation.

How to Choose a Security Approach

When evaluating security models for agentic systems, consider:

  • Action criticality – classify actions as read-only, reversible, or irreversible. Irreversible actions need the highest scrutiny.
  • Agent autonomy level – how much human oversight is acceptable? Fully autonomous systems need stronger technical controls.
  • Tool surface – fewer tools means fewer attack vectors. Remove unused tools.
  • Monitoring capability – can you detect a compromised agent quickly? If not, you need more restrictions.
  • Compliance requirements – some industries mandate audit trails and human approval for certain actions.

There is no one-size-fits-all; the right model depends on the risk tolerance of the application.

Costs and Trade-offs

Implementing a new security model has costs: increased latency from human approvals, more infrastructure for sandboxing, and more engineering time for policy definition. But the cost of a breach is often higher. For example, a financial agent that sends a payment to the wrong account could cause a loss that far exceeds the cost of a human review step. The trade-off is between security and convenience, and the balance must be deliberate.

Alternatives and Future Directions

Some alternatives to a full new model include:

  • Using a limited action set – restrict agents to a small, predefined set of actions, reducing the need for complex monitoring.
  • Formal verification – mathematically prove that an agent’s code cannot violate certain invariants, but this is hard for learning-based agents.
  • Decentralized identity and capability tokens – give agents short-lived tokens that can be revoked instantly.

Research is also exploring agent firewalls that inspect every tool call and block malicious patterns, similar to a web application firewall but for agent actions.

Frequently Asked Questions

What is the biggest security risk with AI agents?

The biggest risk is prompt injection combined with excessive permissions. An attacker can manipulate the agent’s input to make it perform harmful actions, and if the agent has broad access, the damage is amplified.

Can traditional antivirus protect agentic systems?

No. Antivirus detects known malware signatures, but agent attacks are logical, not code-based. They exploit the agent’s reasoning, so you need behavioral monitoring and policy enforcement, not signature scanning.

Do we need human approval for every agent action?

Not every action, only high-impact or irreversible ones. Read-only actions like searching or reading can be automated, but sending money, deleting data, or changing permissions should require human sign-off.

How do you detect a compromised agent?

Look for unusual patterns: actions outside the agent’s typical scope, repeated failures, tool calls with unexpected arguments, or data leaving the network. Anomaly detection systems can flag these in real time.

Is a new security model only for large enterprises?

No. Even a small business using an AI assistant that can access email and calendars faces the same risks. The scale of controls may differ, but the principles of least privilege and monitoring apply universally.

Can we rely on AI vendors to secure agents?

Vendors provide some safeguards, but security is the responsibility of the organization deploying the agent. You must configure permissions, monitor activity, and define policies that fit your own risk profile.

Related

Formula used
in t | Number of agents | - | 10 | 1
in a | Actions per agent per hour | - | 20 | 1
in r | Risk per action (0-1) | - | 0.05 | 0
out exp | Expected risky actions per hour | actions/h | t * a * r | 2
out exp_day | Expected risky actions per day (8h) | actions | t * a * r * 8 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.