Your AI agent is a privileged identity. We audited ours like one. Back to Blog
Security

Your AI agent is a privileged identity. We audited ours like one.

Rakesh Mukherjee November 26, 2026 ~10 mins

We held Scout, our threat-hunting agent, up to Anthropic's Zero Trust for AI Agents guide, control by control. What held, what didn't, what we changed, and where the guide could go further.

TL;DR — Scout, the AI agent inside Huntbase, reads some of the most sensitive data a company has, often with nobody watching. So we audited it like any other privileged identity, against Anthropic's Zero Trust for AI Agents guide. Actions with effects were already gated by an analyst. The gaps were in the quieter plumbing: agent identity, permission checks between services, and egress. We fixed them in one hardening pass, and this post covers what we found, what we changed and where we think the guide could go further.

→ Try Huntbase


Scout, the AI agent inside Huntbase, does what a good threat hunter does. It plans a hunt, writes queries against a customer's SIEM, EDR and cloud logs, reads what comes back, checks threat intel on the web and writes up what it found. Sometimes an analyst is chatting with it. Often nobody is: automated hunts and watchers run on their own, with no human in the loop.

Described that way, Scout is a privileged identity with read access to some of the most sensitive data a company has, and a habit of working nights. We would never let a human in that job skip identity checks and access reviews. So when Anthropic published Zero Trust for AI Agents, we did the obvious thing: held Scout up to it, control by control, and fixed what didn't measure up.

This post covers what the guide says, how we ran the audit, what we found, what we changed and where we think the guide could go further. We've kept it candid, because a security vendor that only publishes its wins isn't worth reading.

The guide in two minutes

Anthropic's guide takes the classic Zero Trust principles (never trust, always verify; assume breach; least privilege) and applies them to agents that choose their own tools and run multi-step work on their own. It leans on OWASP's idea of least agency: limit not just what an agent can reach, but what each tool can do, how often and where.

The controls come in three tiers. Foundation is the floor, Enterprise is where most organisations should aim, and Advanced is for deployments where a breach would be severe. The guide is blunt that the floor has moved: AI-assisted attackers have shrunk exploit timelines, so friction-only controls no longer count, even at Foundation. Short-lived tokens, cryptographically rooted identity and identity-based isolation are now entry requirements.

The idea we liked most is a single design-review question: does this control make the attack impossible, or just tedious? An agentic attacker has unlimited patience and pays almost nothing per attempt. Rate limits, extra hops and obscure ports just give it something to grind through. When in doubt, the guide says, remove the capability rather than throttle it. That question became the lens for our whole audit.

How we ran the audit

We took the guide's tier tables and implementation workflow and asked three things of every control. What does Scout do today? Which tier is that? Does it still hold if the model misbehaves? The third question did most of the work. A control that depends on the model following its system prompt is a polite request, not a control.

This was an internal review of code and configuration, not a response to an incident. We traced every path by which Scout can read data, call a tool, reach the network or carry context from one run to the next, and checked each against what the guide expects.

The result was lopsided. Where Scout's actions have effects, it was already strong: anything that changes something in a customer environment needs an analyst's explicit approval, which is the guide's Advanced tier for high-risk actions. The weak spots were in the quieter plumbing: how the agent is identified, how its access is checked between services, and what it can send out. Some of that sat below Foundation. We addressed what we found in a single hardening pass before writing this.

What we found, and what we changed

Identity: an unattended agent needs a name of its own

In a chat, Scout acts for the analyst it's talking to. Unattended runs were the problem. Some ran without a meaningful user identity, and watcher hunts borrowed an org admin's. An empty identity makes "who did this?" hard to answer. A borrowed admin identity gives a watcher far more reach than it needs. That's the guide's attribution gap and its unscoped privilege inheritance, in one go.

Unattended runs now have a stable owner: the person who created the hunt, or a per-tenant system identity. Watcher hunts are moving to a dedicated agent identity with its own, narrower permissions. We're rolling that out carefully. It starts in dry-run, and once switched on, a person approves each step until we trust how it behaves.

Authorisation: enforce it where the data is

The UI and API checked a user's permission on each data connection. The agent's query tool took a different route that didn't apply the same check. No model misbehaviour was needed for this to matter; it was a plumbing gap.

Now every query path fails closed on connection permissions, whoever is asking. Scheduled queries are re-checked against their creator when they fire, not just when they were set up, so revoked access stays revoked.

We moved read-only enforcement down a level too. Write-capable SIEM commands used to be blocked only when the agent wrote the query. A read-only guard now checks every query, whether it comes from an analyst, the REST API or the agent. Scout is a hunter. It has no business writing to your SIEM, and nor does anything else going through our query layer.

Untrusted input: tool output is attacker-controlled

A threat hunter reads hostile content for a living. Log lines, file names, command lines, web pages and threat intel can all be written by an attacker, and a model can't reliably tell data from instructions. We already handled what analysts type with care. What we hadn't done consistently was mark hunt seed context and tool output as data.

All of it now reaches the model inside clearly delimited untrusted-data fences, the spotlighting technique the guide recommends. We also strip any fence markers the model echoes back, so nobody can use the agent's own answer to forge a boundary. Spotlighting lowers the odds of a successful injection. It doesn't make injection impossible, which is why the next section matters.

Egress: the exfiltration path people forget

Assume an injection succeeds. What can the attacker take? Reading data is only half of an exfiltration; the other half is getting it out. An agent that can fetch arbitrary URLs, or put markdown images in its answers, has an outbound channel. Images are the nasty one: data rides out in the image URL, and the browser fetches it as soon as the answer renders. No click required.

We closed this by removing capabilities rather than filtering them:

This is the impossible-versus-tedious test at its clearest. A filter hunting for suspicious URLs is tedious for an attacker. An agent that cannot visit a URL it made up is much closer to impossible.

Where Scout sits against the guide

Scout lands at different tiers in different areas, which is normal: the guide tiers each capability separately. The rows below cover the areas this post discusses.

AreaWhat Scout doesGuide tier
Human approval for actions with effectsAny change to a customer environment needs explicit analyst approval; tools that need a human aren't offered on unattended runsAdvanced
Permission modelDeny-by-default, per-connection permissions enforced at the data layer for every caller; scheduled queries re-checked when they runFoundation, with per-execution checks borrowed from Advanced
Least agency for data toolsRead-only enforced on every query path, for every callerCapability restrictions (not tiered in the guide)
Agent identityUnattended runs have a stable owner; watcher hunts moving to a dedicated agent identityWorking toward Foundation
Input isolationHunt context and tool output fenced as untrusted dataSpotlighting, part of Advanced; no classifier layer claimed
Memory isolationPast-session search and memory off by default for the agentMemory isolation (not tiered in the guide)
EgressNo external images in answers; URLs only from the analyst or a search; tighter SSRF protectionNot covered by the tiers

What the guide gets right, and where it stops short

What it gets right. The impossible-versus-tedious test is the most useful idea in it, and it travels well beyond AI. Raising the Foundation floor is honest about how fast attackers now move. Least agency gives teams a word for something they've been fumbling to describe. And its section on defensive operations, a model with read-only access at the front of the alert queue, with humans making the decisions while the model does the bookkeeping, reads a lot like a description of how we built Scout.

Where it stops short. Holding a real product up to it surfaced a few gaps:

Going beyond the guide

A few things we did aren't asked for anywhere in it:

What's next

The tiers are a roadmap, not a finish line, and the guide expects today's Advanced to become tomorrow's Enterprise. Our next steps:

Lessons for anyone building agents

  1. Give unattended agents a real identity of their own. Not an empty one, not a borrowed admin's. If you can't say who a run acted as, you can't scope it or audit it.
  2. Treat tool output as untrusted input. Fence it, label it, and design as if the fence will sometimes fail.
  3. Close egress, especially rendering. Markdown images are a zero-click channel. Decide which URLs your agent may touch, and where they're allowed to come from.
  4. Enforce permissions at the data layer, for every caller. The UI isn't a security boundary. The agent's tools, the scheduler and the API should all hit the same check and fail closed.
  5. Run the impossible-or-tedious test on every control. If it only works because the model behaves, it isn't a control yet.

Anthropic's guide gave us a sharp yardstick, and holding our own agent up to it made Scout better. If you're building agents that touch sensitive data, we'd recommend doing the same, and publishing what you find.

#AI #Security
More Articles