AI agent security · an interactive guide

Contain the AI insider. Secure agents without slowing people down.

BusinessAI agents can now read your email, open your files and act inside your business apps. That makes them a new kind of insider. Securing AI means you can see every agent, limit what it can do, and react when it misbehaves, without locking out the person who uses it.

TechnicalTreat each agent as its own identity, grant task-scoped and time-bound permissions, evaluate risk continuously at the point of action, and enforce controls outside the model: on the endpoint, on the network, on the data path and in a sandboxed runtime.

8layers where an agent can be contained
0standing access an agent should start with
5graduated responses, not one kill switch
24/7agents never clock off, so oversight can’t either

Layered containment · select a layer

Controls you can use today

An agent can be contained at every layer it touches. Seven layers sit outside the AI model; guardrails inside the model help but are not enough alone. Select a layer for details.

Contain the agent, not the employee.

01 · Why it matters

AI agents are the new insider risk

Teams adopt AI agents faster than anyone can keep track of them. Agents run in the cloud and on laptops with real access to business data, and even an agent doing an approved job can go off course halfway through.

See every agent

You need to know which agents run, who owns them and what they can reach, in cloud apps and on local devices.

Limit what it can do

An agent should not inherit everything its user can access. It should get only what the task needs, only while the task runs.

Respond at machine speed

No team can manually review thousands of agent actions. Protection has to adjust as quickly as the agents act.

Never ask an AI model to police itself. Keep the rules about access, actions and when to stop outside the model, where the agent cannot argue its way past them.The core idea: the safest agent setup is the one that trusts the model the least.

With guardrails: the agent is a separate actor

The agent gets its own ID and only what its task needs. A risky agent is held back while the employee keeps working.

Employee
Agent
One shared identityall of the user’s standing access
Employee
User identityunchanged
Agent
Agent IDown identity · named owner

No checkpoint between the agent and your data

Policy gatetask scope · live risk check
Email
Files
Customer data
Source code
Cloud apps
write blocked

2separate identities on one device
Task-scopedtime-limited access
Graduatedresponse, employee unaffected

02 · The approach

Know, protect, adapt: around the clock

Securing agents is not a one-off project. It is a loop of three outcomes that keeps running, using the identity, device, data and network tools you probably already have. Select a step.

Agent defencespeed · scale · 24/7

Steps advance on their own. Select one to pause on it.

03 · Discover and identify

Find every agent. Give each one an identity.

Identity is the foundation. Once an agent has its own identity, separate from the employee, you can give it permissions, review it, and remove it without touching the person it works for.

Discovery · device and network signals

approved local agentfound, not managedhigh riskcloud agent
Managed

Acts for a signed-in person

Works on behalf of one user but carries its own ID, so every action is recorded as the agent’s, not the person’s.

Managed

Local session identity

Command-line and desktop agents get a fresh identity for each session on the device.

Managed

Autonomous service identity

Runs on its own like a digital team member, with its own account and an accountable human owner.

Unmanaged

Found, not yet managed

Spotted through device or network signals. Register it, give it an ID and an owner, or remove it.

Agents built on approved platforms
Created on the platform→ID assigned automatically
Agents found in the wild
Device + network signals→Registered and given an ID

The lifecycle of an agent identity

Ongoing audit& reporting
  1. Identity created · owner assigned
  2. Access requested
  3. Access approved for the task
  4. Access reviewed for least privilege
  5. Access expires automatically
  6. Identity retired when no longer needed

04 · Live agent risk

One risk level per agent, updated as it acts

Good agent security combines signals from your identity, device, data and network tools into a single risk level for each agent. Instead of a kill switch, the response then steps up gradually. Play the scenario to see how.

Signals → context → risk

Agent risk: 0

Behaviour at runtimeLow
Exposure (what it can reach)Low
Blast radius (possible damage)Low

Scenario: the expense-checking agent

EmployeeWorking normally
Expense agentWaiting to start

Graduated responses

Select Next signal to start the scenario.

Illustrative model for learning only. Real products weigh signals differently, and these numbers do not come from any specific vendor.

05 · Least privilege per task

Give agents just enough access, just in time

The employee keeps their normal access. The agent starts with none. Each task gets a narrow, time-limited permission based on what it needs and how risky it is, and that permission disappears when the task ends. Pick a task for the agent.

Employeestanding access
mail.read✓ standing
mail.send✓ standing
data.read✓ standing
data.write✓ standing
Mailbox
Shared files
Customer database
Code repository
Other cloud apps
Agentstarts at zero
mail.readno access
mail.sendno access
data.readno access
data.writeno access
# decision log · pick a task above
How just-in-time permissions and risk-based access checks differ
AspectJust-in-time permissionsRisk-based access checks
Question it answersWhat access does this task need?Given the risk right now, may this action go ahead?
WhenBefore and during the task: grant, re-check, removeAt the moment of each action, not only at sign-in
Typical toolingIdentity governance and privileged access toolsConditional access policies extended to agents
ResponseNarrow, time-limited grantsGraduated: allow, limit, ask a human, restrict, stop

06 · Layers of defence for local agents

Contain agents on the device, network and data path

A local agent, such as a coding assistant running on a laptop, gets its own ID. Then every layer can act on the agent alone: device protection, a sandbox around the agent, a network filter and data loss rules. Send the agent a request.

Device protectionendpoint security
Agent with its own IDSandbox · runtime limits
Network filterall agent traffic
Data rulesall data leaving
Resources
Email & filesAccounting appCode repositoryAI model APIsTool servers
# local agent terminal · send a request above

These layers work independently, so if one is missing the others still help. No setup gives perfect isolation, and some actions can’t be traced to a specific agent yet, so combine layers rather than relying on one.

07 · Automation with people in charge

A team of guardian agents

Security tools increasingly use their own AI agents to watch over your AI agents. They work best as a team, following playbooks, with people setting the limits and approving big changes.

Not sure where you stand?Our free AI Agent Maturity Assessment scores your agent governance in about 10 minutes.

Take the assessment →

Red team

Test: try to break your agents before attackers do.

Blue team

Watch: spot risky agent behaviour and triage it.

Green team

Fix: close the gaps that testing and monitoring find.

Guardian agentsContinuous, automated help that works inside limits you set
People

Set the policy, the approval limits and who may delegate what.

Playbooks

Describe the outcome and coordinate actions across your security tools.

Guardian agents

Investigate, explain and act quickly, but only within those limits.

Security session · you are the IT lead

Example playbooks for illustration. Nothing here changes any real system.

08 · Roadmap

A practical 90-day plan

You don’t need every control on day one. Start with visibility and ownership, then tighten access, then add automatic responses.

  1. Weeks 1-2See

    List every AI tool and agent in use, including browser extensions and desktop apps.

  2. Weeks 3-4Own

    Give each agent an owner and its own identity. Turn on multi-factor sign-in everywhere.

  3. Month 2Limit

    Remove standing access, grant per task, and add data rules for customer and payment details.

  4. Month 3Respond

    Add risk-based checks, a few simple playbooks and a monthly access review.

Common starting point versus a 90-day target for each control
CapabilityCommon starting point90-day target
Inventory of agentsMissingIn place
Named owner per agentMissingIn place
Separate agent identitiesPartialIn place
Task-scoped permissionsMissingStarted
Data loss rules for AIMissingStarted
Risk-based responsesMissingStarted

The starting point is a common pattern for small teams, not survey data. Yours may differ.

Are you ready to let AI agents act for you?

Do you know which AI tools your team uses?

Does every agent have a named owner?

Is multi-factor sign-in on for every account?

Can agents reach customer or payment data?

Answer the four questions to see where you stand.

09 · An honest view

Pros, cons and watch-outs

Treating agents as separate, contained identities is a strong approach. It also takes effort, and the tooling is still young, so lay foundations now and expand as products mature.

10 · Check your understanding

Six-question quiz

A quick way to check the key ideas stuck before you talk to your team or IT provider.

0/6

6 to go.

11 · Next steps

What to do this quarter

Tick items off as you go. Your progress is saved in this browser only.

This page explains general security concepts with illustrative simulations. It does not describe any single vendor’s product. Check controls against your own tools before relying on them.