New IntentFlow layer secures LLM agents against unauthorized tool use
Researchers have introduced IntentFlow, a mediation layer that prevents AI agents from executing unauthorized tool arguments by checking user intent.
Source: Grafy Research LabLarge Language Model (LLM) agents are increasingly capable of using external tools to complete complex tasks, but this capability introduces a significant security vulnerability where agents may execute commands using unauthorized or untrusted arguments. A new research paper introduces IntentFlow, a mediation layer designed to prevent agents from performing actions that deviate from a user's original intent.
What is the security risk in LLM tool use?
When an LLM agent processes a user request, it often retrieves external data to inform its actions. According to the research by Yulliwas Ameur, Miqeas Pedro Mendes, and Samia Bouzefrane from CEDRIC - ROC, this process creates a vector for attacks. An agent might turn a user's request and retrieved content into tool calls, but those calls can inadvertently reach the wrong recipient, endpoint, file, or participant.
While existing methods use argument-level provenance to block values originating from untrusted content, they suffer from a specific weakness. They may successfully block an untrusted value but still allow a "trusted" value to be used if that value was never actually requested by the user. This means an agent could technically follow provenance rules while still performing an action that contradicts the user's actual instructions.
How does IntentFlow work?
To address this gap, the researchers developed IntentFlow. This system acts as a mediation layer positioned between an unmodified planner (the LLM agent) and the tools it intends to use. Instead of just looking at where a piece of data came from, IntentFlow evaluates whether the proposed action aligns with the user's goal.
According to the paper, the system checks every authority-bearing argument against two specific components: an intent contract and a provenance policy. The intent contract ensures the argument is consistent with what the user actually asked for, while the provenance policy tracks the origin of the data. By combining these, the system can block arguments that are either untrusted or simply unauthorized by the user's intent.
How effective is this new mediation layer?
To test the efficacy of IntentFlow, the researchers utilized a synthetic benchmark consisting of 200 attacks. This benchmark included oracle intent labels, injection labels, and declared roles to simulate realistic adversarial scenarios.
The results demonstrated a significant improvement in security. The authors report that when using provenance-based blocking alone, the attack success rate was 50.5%. By implementing the IntentFlow mediation layer, the researchers were able to substantially reduce this success rate, providing a more robust defense against agents that might otherwise be manipulated into executing unintended commands.
Why does intent-conditioned mediation matter?
As AI agents move from simple chat interfaces to autonomous operators capable of managing files, browsing the web, and executing code, the stakes for "argument injection" increase. If an agent can be tricked into changing a recipient in an email or a destination in a file transfer, the damage can be substantial.
IntentFlow represents a shift toward "intent-conditioned" security. Rather than treating security as a simple check of data origin, it treats security as a validation of the agent's logic against the user's mandate. This ensures that even if an agent has access to "trusted" data, it cannot use that data to perform an action that the user did not authorize.
How to explore AI agent research with Grafy
While IntentFlow is a specialized research framework for agent security, the underlying challenges of managing complex AI outputs and verifying information are highly relevant to anyone working with multimodal models.
Researchers and developers can use Reader to upload and analyze technical papers like this one, using AI to query specific mathematical proofs or experimental results. For those interested in the practical implementation of various models, Chat allows for side-by-side comparisons of different LLMs to observe how they handle complex instructions or potential tool-use scenarios.
Frequently asked questions
What is the primary goal of IntentFlow?
IntentFlow aims to prevent LLM agents from executing tool calls that use unauthorized arguments. It does this by acting as a mediation layer that checks whether the arguments an agent intends to use match the user's original intent and follow established provenance policies, blocking any calls that deviate from the user's instructions.
How does IntentFlow differ from standard provenance blocking?
Standard provenance blocking only checks if an argument comes from an untrusted source. IntentFlow goes further by checking the argument against an intent contract. This allows it to block "trusted" values that an agent might try to use even if they were not part of the user's original request, closing a loophole in traditional security.
What was the success rate of attacks using only provenance blocking?
According to the research, when agents relied solely on provenance-based blocking without the IntentFlow mediation layer, the success rate for attacks was 50.5%. The introduction of IntentFlow was designed to lower this success rate by adding an extra layer of validation based on user intent.


