# FlowLeak: Coverage-Guided Extraction of Dynamic Workflows in LLM-Based Multi-Agent Systems

*Zhiyao Ren, Siyuan Liang, Yibing Zhan, Jun L Tan, Xiaobing Sun, Liangli Zhen, Baosheng Yu, Dacheng Tao*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151230) · [OpenReview](https://openreview.net/forum?id=bwOADsslTR) · [Open on the map](../papers.html#p151230)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Multi-Agent Security Evaluation](../pgroup/474.md) · Type: new method · Keywords: dynamic workflow extraction, multi-agent systems, LLM security, coverage-guided, task-preserving

Areas: [AI Agents](../areas/agents.md) › Agent Robustness › Agent Security Vulnerabilities; [Safety & Security](../areas/safety.md) › Language Model Security › LLM Agent Security

## Summary
FlowLeak is a coverage-guided method that extracts dynamic workflows in LLM-based multi-agent systems by preserving task semantics and exploring branches efficiently, achieving a 2.68× improvement over existing extraction techniques.

## Explained to a 5-year-old
In some computer programs, many little helpers work together to do tasks. Sometimes how they work changes depending on what they see. The researchers found a way to watch these helpers without making it obvious they are being watched. They use a special trick to keep the helpers doing their normal job while asking questions that reveal how they are connected. This helps them understand the hidden steps and makes it easier to protect the system.

## Explained to a 5-year-old, longer
In computer programs, many small helpers called agents work together to finish big jobs. They talk to each other using words and can use tools to help them. Sometimes the way they act changes based on what they see or what has already happened. This makes it hard to see the whole plan they follow, which is called a workflow. Some people try to look at these workflows by asking the agents questions, but they can be caught. The new study points out two problems: one is that the questions often only get the same part of the story, and the other is that you need many questions to see everything without being noticed. To solve this, the researchers created a method that keeps the agents doing their normal tasks while still learning about how they are linked. They use a special template that makes the questions look like real work requests. They also guide the questions so they target the parts that haven't been seen yet. This way, fewer questions are needed, and it is harder for the system to know someone is trying to spy. The method was tested on many different groups of agents and worked much better than before. Knowing how these agents work can help build better security and stop bad actors from misusing them.

## For a technical reader
The paper looks at systems where many AI agents cooperate by sending prompts and using tools. Their workflows can change depending on what they see, making it hard to map out how they work. Existing methods that try to discover these workflows often ask the same kind of questions, so they only see part of the picture and need many attempts. The authors propose a technique that disguises the discovery questions as normal work tasks and then uses the information already learned to ask smarter questions, reducing the number of attempts and hiding the discovery process. Experiments show this approach finds workflows much more efficiently and can be used to improve security testing of such agent systems.

## Problem
Extracting dynamic workflows in multi-agent systems where execution paths depend on input semantics and intermediate states is challenging because adversarial queries can overfit to specific branches and achieving full branch coverage without revealing the extraction task is difficult.

## Method
The approach uses a task-preserving payload template to keep legitimate task semantics while eliciting workflow information, and a coverage-guided branch exploration that leverages previously extracted fragments to generate branch-targeted tasks and constrains extraction as an auxiliary requirement, reducing the number of queries needed and hiding the extraction activity.

## Results
The approach achieves a 2.68× improvement in dynamic workflow extraction compared to prior methods, and the extracted workflows enable more effective downstream attacks.

## Contributions
It identifies branch overfitting and stealthy coverage exploration challenges in dynamic workflow extraction and proposes techniques to mitigate them, demonstrating substantial gains on a diverse set of multi-agent systems.

## Practical relevance
The findings underscore security risks in LLM-based multi-agent systems and provide insights for defending against workflow extraction attacks.

## Research questions this paper is counted under

- [How can we design scalable and adaptable workflow topologies for multi-agent systems?](../q/504.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151230)
