Your AI agent is a privileged identity. We audited ours like one.
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.
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:
- External images are stripped from Scout's answers.
- Scout can only open URLs that an analyst typed or a search returned. It can't invent a URL and visit it.
- Server-side request forgery protection is tighter, so "approved URLs" can't be bent into "internal services".
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.
| Area | What Scout does | Guide tier |
|---|---|---|
| Human approval for actions with effects | Any change to a customer environment needs explicit analyst approval; tools that need a human aren't offered on unattended runs | Advanced |
| Permission model | Deny-by-default, per-connection permissions enforced at the data layer for every caller; scheduled queries re-checked when they run | Foundation, with per-execution checks borrowed from Advanced |
| Least agency for data tools | Read-only enforced on every query path, for every caller | Capability restrictions (not tiered in the guide) |
| Agent identity | Unattended runs have a stable owner; watcher hunts moving to a dedicated agent identity | Working toward Foundation |
| Input isolation | Hunt context and tool output fenced as untrusted data | Spotlighting, part of Advanced; no classifier layer claimed |
| Memory isolation | Past-session search and memory off by default for the agent | Memory isolation (not tiered in the guide) |
| Egress | No external images in answers; URLs only from the analyst or a search; tighter SSRF protection | Not 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:
- Egress gets thin treatment. Output filtering is framed around spotting sensitive data in what the agent says. In practice, the leak can be in how an answer is rendered. Images and link previews deserve their own line in the tiers.
- Unattended agents are an afterthought. Escalation and approval assume someone is there to click. For scheduled runs, the questions are whose authority the agent acts under, and what happens to an approval-gated tool when nobody is around. Our answer: give every run a real owner, and remove human-gated tools instead of letting them run or wait silently.
- Tool output should get top billing. The threat section covers indirect injection well, but the input tiers read as if "input" means what a user types. For an agent that reads attacker-written logs all day, tool output is the main attack surface.
- The upper tiers assume you own the hardware. HSMs, attested hosts and confidential computing are hard to map onto a multi-tenant SaaS agent. A profile for SaaS builders would make the tiers easier to apply.
Going beyond the guide
A few things we did aren't asked for anywhere in it:
- One check for every caller. The guide says to enforce controls outside the agent. We'd go further: the same permission and read-only checks on every path to the data, whether UI, API, scheduler or agent. Gaps live in the paths added later.
- Re-check at execution time. Saved and scheduled work is re-authorised when it runs, not when it was created.
- URL provenance. The agent can only visit URLs that came from a person or a search, rather than relying on a filter to spot bad ones.
- No forged boundaries. Fence markers are stripped from the agent's output, so untrusted data can't fake its way out of its fence.
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:
- Take the dedicated agent identity from dry-run to enforcing, across every kind of unattended run.
- Explore how to close the gap to the guide's raised Foundation for identity and service-to-service authentication, including cryptographically rooted agent identity and short-lived, narrowly scoped credentials.
- Build behavioural baselines for Scout itself (which tools it uses, how much it queries, what data it touches) so we'd know within the hour if it drifted. That's the guide's own benchmark.
- Re-run this audit as the guide evolves, and publish again.
Lessons for anyone building agents
- 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.
- Treat tool output as untrusted input. Fence it, label it, and design as if the fence will sometimes fail.
- 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.
- 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.
- 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.