Skip to content
IAM Insights

Briefing · Paper · source · updated · Boston Identity

AgentGuardian's learned rules caught 18 of 20 misuse cases; its sample rule, as printed, allows any text file

Researchers at Ben-Gurion University of the Negev propose AgentGuardian, which watches an AI agent through a trial run assumed to be attack-free and turns what it sees into rules for each tool: allowed input patterns, limits on size and timing, and the order tools may be called in. On two multi-agent apps it caught 18 of the authors' own 20 misuse cases. Their own conclusion is that rules learned from free text cannot reliably tell a benign instruction from an adversarial one.

arXiv · Nadya Abaev, Denis Klimov, Gerard Levinov, David Mimran, Yuval Elovici, Asaf Shabtai · January 15, 2026 · read

share
2 findings4 sectionsAI trustAgentic identity
9,352 words.
01

What's happening

Finding2
BI-FIND-2026-1206Lead finding

AgentGuardian's learned tool rules caught 18 of the authors' 20 misleading test inputs and wrongly blocked a tenth of 80 benign runs.

AgentGuardian writes an agent's tool rules from a controlled trial run instead of by hand. For each agent role and tool it learns input patterns, limits on tokens and hours, and the order tools may be called in, then raises an alert or stops the agent when a call falls outside them. On two multi-agent apps running gpt-4.1, it caught 18 of the authors' 20 misleading test inputs (all 10 in the Knowledge Assistant app, eight of 10 in the IT Support app) and wrongly blocked a tenth of the 80 benign runs. It also flagged all six benign runs where the model hallucinated a file name or an irrelevant tool. There was no public benchmark and no comparison with another defense.

medium confidencebest source: independent researchobserved Jan 2026EvidenceAgentGuardian designEvaluation on two multi-agent applications
flag a problem with BI-FIND-2026-1206
Fig. 1

One learned rule for one agent's Read File tool: its limits come from the staging runs, and the last branch of its path pattern, as printed, lets any .txt file through.

Values from the paper's figure 3; the path check is oursSource dated January 15, 2026Passage: AgentGuardian design

Swipe for the full figure →

BI-FIND-2026-1207

The authors write that regex rules over free text cannot reliably tell benign from adversarial instructions.

The rules learned from free-text inputs are the weak point, by the authors' account and in their own example. They write that regex rules over free text "cannot reliably distinguish between benign and adversarial instructions," that policies built from only 10 samples gave patterns that effectively matched any input, and that the method assumes nothing misleading happens during staging. The sample rule they print for the Read File tool is captioned as limiting reads to two folders; when we ran the pattern as printed, its last branch accepted any .txt path without spaces, including ./HR/salaries.txt.

medium confidencebest source: independent researchobserved Jan 2026EvidenceLimitations and conclusionAgentGuardian designEvaluation on two multi-agent applications
flag a problem with BI-FIND-2026-1207
02

Section by section

4

showing 4 of 4

[1]

Problem, related work and threat model

Agentic identityAI trust

The authors start from the observation that per-tool attribute rules work against prompt injection when someone writes them, and that writing them means listing every allowed input by hand. Control-flow defenses fix the allowed sequence of tool calls before deployment and cannot adapt. Their threat model is an agent pushed by injected text into misusing a tool it is trusted to call, through bad inputs or an unexpected order of calls.

opinionfrom published text

[2]

AgentGuardian design: staging traces, CFG and generalized policies

Agentic identityAI trust

AgentGuardian logs every model event and tool call while the agent runs benign tasks in a staging phase, assumed free of misleading activity. From those traces it builds, per agent role and tool, a graph of allowed tool orders and rules on inputs: clusters of embedded inputs become regular expressions (merged by Claude Sonnet 4.5) and numeric limits on tokens, hours and durations. At run time it hooks LiteLLM and alerts or stops the agent on a violation.

technical artifactfrom published text + figures

[3]

Evaluation on two multi-agent applications

AI trustAgentic identity

Two publicly available multi-agent apps, a research assistant and an IT support tool, ran on gpt-4.1. Each got 60 benign runs for staging, then 40 benign and 10 misleading inputs for testing. AgentGuardian caught 18 of the 20 misleading cases and wrongly blocked a tenth of the benign runs. Policies built from 10 samples produced regexes that matched anything; 60 samples gave tight ones. The authors chose their own scenarios over AgentDojo and report no baseline.

technical artifactfrom published text + figures

[4]

Limitations and conclusion

AI trust

The authors name automatic policy generation as the main bottleneck. Rare valid inputs fall outside what was learned, and regex rules over free text "cannot reliably distinguish between benign and adversarial instructions." Smaller orchestrating models put planning errors into the traces and produced weaker policies. With a strong model, they say, the tool-order graph also catches calls the model hallucinated.

opinionfrom published text

Terms used

AI agent
Software that uses an AI model to decide its own next steps and then acts through tools and APIs, rather than answering a single prompt. Because it acts, it needs an identity of its own.
Prompt injection
Hiding instructions in text an AI model reads, such as an email or a web page, so the model does something its operator never asked for.
Threat modeling
Working out, before building, what could go wrong with a system and who might attack it.
AgentDojo
A benchmark environment for testing whether a large language model (LLM) agent completes its task while resisting prompt-injection attacks in tool outputs and external content.

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity