Skip to content
IAM Insights

Briefing · Paper · source · published · Boston Identity

A guide to securing agent plans has the planner choose each step's tools and leaves out agent identity

Ron F. Del Rosario of SAP and two co-authors, one at the University of Oxford, wrote a working guide to Plan-then-Execute, an agent design in which a planner fixes the steps before any tool output is read. They map it onto LangGraph, CrewAI and AutoGen, with the planner choosing the tools each step may use. The paper reports no tests, and two of its sections disagree on where human review belongs.

arXiv · Ron F. Del Rosario, Klaudia Krawiecka, Christian Schroeder de Witt · September 10, 2025 · read

share
3 findings6 sectionsAgentic identity
18,155 words.
01

What's happening

Finding3
BI-FIND-2025-0361Lead finding

The guide limits each plan step to the tools it needs, but in the authors' own code the Planner picks that tool, so the limit rests on the Planner's output.

The guide's answer to tool misuse is to give each step of the plan only the tools it needs. The Planner may need no tools at all, and the Executor gets only the tool or tools the current step needs, so that reaching the email tool during a calculation step is meant to be "architecturally impossible". In the authors' own LangGraph code, the planner model names the single tool for each step and the Executor runs only that tool, so the limit comes from the Planner's own output, and the paper does not say what stops an injected or mistaken Planner from naming a broader tool. The authors' own threat table says Plan-then-Execute does not scope tools by itself, so the scoping comes from the frameworks: coded by hand per node in LangGraph, declared per task in CrewAI, where Task.tools overrides Agent.tools (a rule they cite to a community forum post), and set through agent capabilities or custom logic in AutoGen. On top of that they propose RBAC roles as a ceiling, assigned by the Planner at plan time and checked against a predefined permission map, and say CrewAI does not implement this yet; nothing says what limits the role the Planner picks. The paper does not say how an agent authenticates to a tool or which user's access it acts under; credentials appear only as placeholder API keys in its code examples.

medium confidencebest source: independent researchobserved Sep 2025EvidenceSection 3Framework guidesSecurity-first design
flag a problem with BI-FIND-2025-0361
BI-FIND-2025-0362

Del Rosario and co-authors say a plan fixed before any tool output is read keeps injected text from altering its actions, and concede it leaves data unsecured.

Del Rosario and his co-authors argue that fixing the plan before any tool output is read gives the agent control-flow integrity: "A malicious instruction embedded in a tool's output cannot alter the pre-approved sequence of planned actions." They concede the plan does not secure the data passed between its steps. In their example, a plan that searches the web for a company report and emails a summary to the CEO can still carry malicious text from a hostile page into that email, which the authors say could set up a phishing attack on the CEO. They add sanitization, output filtering, a dual-LLM split and human approval, and test none of these against an attack. Their own re-planning loop also hands the re-planner "The history of all previously executed steps and their outcomes", and the paper does not say whether that reopens the route the fixed plan was meant to close.

medium confidencebest source: independent researchobserved Jun 2025 – Sep 2025EvidenceSecurity-first designAdvanced patterns
Also reported in +1 briefing
flag a problem with BI-FIND-2025-0362
BI-FIND-2025-0363

The guide reads a 2025 study by He and colleagues two ways, once favouring human review of the plan and once favouring human involvement during execution.

On where a person should approve an agent's work, the guide reads one 2025 study, by He and colleagues on user trust and team performance, two ways. Section 3 says the study shows a "critical flaw" in approving individual execution steps, because users can be talked into approving a convincingly wrong plan, and, for mission-critical systems, puts the vital review after the plan is written and before any action. Section 7.3 says involving users in planning "does not consistently lead to better plans", that "HITL is far more beneficial during the execution phase", and recommends automatic planning with user-involved execution, keeping plan approval for the highest-risk cases. The closing blueprint asks for plan approval in high-stakes systems, and no security test backs either reading.

low confidencebest source: independent researchobserved Sep 2025EvidenceSection 3Advanced patternsStrategic recommendations
flag a problem with BI-FIND-2025-0363
02

Section by section

6

showing 6 of 6

[1]

Foundational principles: Planner, Executor, Verifier and the comparison with ReAct

The authors define Plan-then-Execute: a Planner LLM writes a structured plan, a cheaper Executor (smaller LLM, ReAct agent or plain code) runs it step by step, and an optional Verifier and Refiner check it first. They claim better predictability, cost and reasoning quality than ReAct, citing LangChain and blog posts; the paper reports no measurements of its own.

opinionfrom published text + figures

[2]

Security-first design: control-flow integrity against indirect prompt injection

Agentic identity

The authors argue Plan-then-Execute gives control-flow integrity against indirect prompt injection: the plan is fixed before untrusted tool output is read, so injected text cannot add a new action. They concede it does not protect data passed between steps (a poisoned report can still be emailed) and add sanitization, output filtering, a dual-LLM split and human approval. The support is reasoning and citations; no attack was run.

opinionfrom published text + figures

[3]

Least privilege, RBAC, sandboxing and architectural containment

Agentic identity

For least privilege, the Planner may need no tools at all, and the Executor gets only the tools its current step needs. The authors propose RBAC roles as an upper bound, which CrewAI does not implement yet, call sandboxed code execution non-negotiable, and prefer architectural containment to prompt-based safety, with a person validating the plan for high-risk work. None of this is tested.

opinionfrom published text

[4]

Framework guides: LangGraph, CrewAI and AutoGen

Agentic identity

The authors map the pattern onto three frameworks. In LangGraph, planner, executor and replan nodes sit in a state graph, and per-step tool scoping is coded by hand. CrewAI's hierarchical manager plays the Planner, and Task.tools overrides Agent.tools, a rule cited to a community forum post. AutoGen uses group-chat speaker selection, with use_docker=True for running code. The appendix gives code but no run results.

technical artifactfrom published text + figures

[5]

Advanced patterns: re-planning, DAGs, human-in-the-loop and the cost of upfront planning

The authors propose re-planning loops, plans laid out as a directed acyclic graph (DAG) so steps run in parallel (LLMCompiler, up to 3.6x faster according to a LangChain post), GraphQL as a tool interface, and fallback branches. Citing He et al. (2025), this section says human review helps more during execution than during planning. The costs they list are planning latency and 3,000 to 4,500 tokens for the planning call (Patten, 2025). They ran no experiments of their own.

opinionfrom published text

[6]

Strategic recommendations: five-point blueprint

Agentic identity

The closing blueprint makes Plan-then-Execute the default for any task with more than one or two tool calls. It layers defenses (sanitization, output filtering, step-level least privilege, and sandboxing, with Docker named as the industry standard), adds a re-planning loop, scales human oversight to risk, and logs the plan, the tool calls and every re-plan.

opinionfrom published text

Terms used

Plan-then-execute pattern
A prompt-injection defense where the agent fixes its list of tool calls before reading any untrusted data, so injected text cannot add new actions, though it can still change what the planned calls carry.
LangGraph
A LangChain framework for building stateful, multi-agent orchestration graphs.
CrewAI
An open-source framework for orchestrating teams of role-based AI agents.
AutoGen
Microsoft's open-source framework for building multi-agent conversational AI applications.
RBAC
Access control in which each user holds one or more roles, and each role carries a fixed set of permissions that grant or deny actions.
API key
A long-lived secret string that lets software call a service; anyone who copies it can use it until someone revokes it.
Control-flow integrity
A guarantee that a program only follows the steps it was meant to follow. For agents, it means injected text cannot add or reorder the tool calls the agent planned.
Dual LLM pattern
A prompt-injection defense that splits a privileged model, which holds the tools, from a quarantined model, which reads untrusted content and never calls tools; proposed by Simon Willison in 2023.

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