AgentFlow recovers richer agent dependencies and finds 238 prompt-to-tool risks
AgentFlow can statically recover more agent entities and dependencies than prior tools and detect prompt-to-tool security risks
Software arXiv 2 Jul 2026 Method Prototype evidence
Published as “AgentFlow: Building Agent Dependency Graphs for Static Analysis of Agent Programs”
Why it matters
The framework enables developers and auditors to automatically discover hidden security exposures and produce more complete supply-chain inventories for LLM-integrated agent applications.
Summary
AgentFlow statically recovers agent dependency graphs from 5,399 real-world agent programs, generating richer Agent BOMs (2,295 components and 1,008 binding relationships) and uncovering 238 projects (4.4%) with prompt-to-tool security risks (4,357 findings). It outperforms prior AST-based tools, recovering a median of 17 nodes and 28 edges per project versus 4 nodes and no edges for AGENT-WIZ. Manual validation shows a precision of 73.0% but also reveals 9 missed risks and 25 false positives due to coarse sink semantics. The analysis runs in a median of 14.17 seconds per project, scaling to thousands of programs.
What they found 4
- AGENTFLOW identifies 238 projects (4.4% of 5,399) with prompt-to-tool risks, totaling 4,357 findings.
“Among 5,399 analyzed projects, AGENTFLOW identifies 238 projects with P2T risks, accounting for 4.4% of the analyzed projects. These projects contain 4,357 P2T findings in total”
- AGENTFLOW recovers a median of 17 nodes and 28 edges per project, far exceeding prior tools.
“AGENTFLOW recovers a median of 17 nodes and 28 edges per project, compared with 4 nodes and no edges for AGENT-WIZ, and 2.5 nodes and 2 edges for AGENTIC RADAR.”
- The generated Agent BOMs contain 2,295 components and 1,008 binding relationships across 98 of 100 projects.
“AGENTFLOW successfully analyzes 98 of 100 projects and generates 2,295 components and 1,008 binding relationships.”
- Manual audit yields a precision of 73.0% for prompt-to-tool risk reports.
“the 100 sampled reports, 73 of them exist prompt-to-tool vulnerabilities, yielding a precision of 73.0%.”
Caveats 4
- 25 of the 27 false positives still contain valid taint propagation paths, indicating that sink-semantic misclassification inflates the false-positive count.
- 9 missed risks were discovered in non-reported agents, showing that the analysis can miss custom command wrappers and dynamic tool bindings.
- These misses are mainly caused by custom command wrappers, dynamic tool binding or custom orchestration, LangGraph-specific state/tool bindings, and custom multi-tool wrappers.
- 25 of the 27 FPs still contain valid taint propagation paths, but are classified as FPs by the incorrect sink semantics rather than incorrect ADG dependencies.
What’s new here 4
- Introduces the Agent Dependency Graph (ADG) as a framework-agnostic IR that models agents, prompts, models, capabilities, memory, and policies.
- Performs alias resolution to capture implicit, framework-level dependencies that AST-based tools miss.
- Generates dependency-aware Agent Bills of Materials with explicit binding relationships.
- Enables taint-style prompt-to-tool risk detection across heterogeneous agent frameworks.