acceptodds
Published as a conference paper at NeurIPS 2026

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

Abstract

Large language models (LLMs)-based multi-agent systems (MAS) coordinate specialized agents through prompts, tools, and communication topologies, making their hidden workflows valuable intellectual property and security-critical assets. Existing black-box MAS extraction methods implicitly assume that adversarial queries can traverse all agents, which holds for static workflows but breaks down in dynamic workflows whose execution paths depend on input semantics and intermediate states. We identify two key challenges in dynamic workflows: **branch overfitting**, where fully adversarial queries overfit to the same branch and extract only a subset of agents, and **stealthy coverage exploration**, where the adversary needs to achieve complete branch coverage with few redundant queries while not exposing the extraction task. To address these challenges, we propose *FlowLeak* that combines **Task-Preserving Payload Template**, which preserves legitimate task semantics while eliciting workflow information to mitigate branch overfitting, with **Coverage-Guided Branch Exploration**, which uses previously extracted workflow fragments to generate branch-targeted tasks and constrains workflow extraction as an auxiliary task requirement, thereby reducing exploration queries and making extraction harder to identify. Experiments on 102 MAS show that *FlowLeak* addresses both challenges and substantially improves dynamic workflow extraction (2.68 improvement). Furthermore, we show that the extracted workflow information from *FlowLeak* enhances downstream attacks, highlighting the security risks of MAS workflow extraction and our method.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 4 reviews, above 17% of the others.
Reviewer_tQjUOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper focus on the black-box Multi-Agent Systems (MAS) extraction problem, which aims to extract in dynamic workflows from final outputs. The paper argues that prior workflow extraction methods, such as MASLeak, implicitly assume that a single adversarial query can traverse all agents, which works for static workflows such as chaining or parallelization but fails for dynamic workfolows. They identify two key challenges in dynamic workfolows: branch overfitting and stealthy coverage exploration.

To address this issue, the paper proposes FlowLeak, a coverage-guided extraction framework, which includes Task-Preserving Payload Template (TPPT) and Coverage-Guided Branch Exploration (CGBE). To reduce branch overfitting, TPPT embeds workflow elicitation into a legitimate user task to preserve normal execution semantics; meanwhile, to reduce exploration queries and make extraction harder to identify, CGBE uses previously extracted workflow fragments to infer uncovered branches and generate new tasks targeting them.

Experiments on synthetic and real-world MAS show that FlowLeak improves workflow extraction, agent coverage, and downstream attack effectiveness.

Strengths and weaknesses

Strengths:

  1. The paper is well-written, easy to follow;
  2. The problem is important, and the motivation is clear and make-sense; TPPT is a simple but effective idea, which embeds the extraction request inside a legitimate user task, so that the query preserves normal task semantics while still eliciting workflow information from activated agents. Thus, it reduces branch overfitting, where purely adversarial queries repeatedly trigger the same default branch. Meanwhile, CGBE uses workflow fragments extracted in previous rounds to infer uncovered branches and generate new task inputs that are likely to activate those branches, which turns workflow extraction into an iterative, task-diverse, feedback-driven exploration process.
  3. The paper evaluates FlowLeak on 102 multi-agent systems, including synthetic systems covering five common workflow patterns and two real-world deployments. The results show that FlowLeak substantially improves extraction performance on dynamic workflows compared with previous works

Weakness:

  1. Results in Tab1 and Tab3 shows that FlowLeak does not consistently improve over MASLeak on static workflows, like Chain and Parallel. This makes the method appear specialized to dynamic workflows rather than a general improvement for MAS workflow extraction.
Questions
  1. Why FlowLeak does not consistently improve over MASLeak on static workflows? For example, as shown in Tab.1, for GPT-4o-mini on Chain flow setup, MASLeak obtain 0.945 ER v.s. FlowLeak obtains 0.837 ER. The results show that it can perform worse than MASLeak on static workflows such as chainin. Please explain this.
Limitations

yes

Paper formatting concerns

No

Final justification

Thanks for the detailed rebuttal. This rebuttal has already addressed my concerns, thus I maintain my original score. I think this paper should be accepted by nips.

1 comment

Q1:Why FlowLeak does not consistently improve over MASLeak on static workflows? For example, as shown in Tab.1, for GPT-4o-mini on Chain flow setup, MASLeak obtain 0.945 ER v.s. FlowLeak obtains 0.837 ER. The results show that it can perform worse than MASLeak on static workflows such as chainin. Please explain this.

A1: Thank you for this question. We want to claim that FlowLeak is designed to address branch overfitting and stealthy coverage exploration challenges specific to dynamic workflows. In static workflows such as chaining and parallelization, a single query traverses all agents by construction, so neither problem arises, and FlowLeak has no additional headroom over MASLeak.

The decreasing performance on some backbones may come from the design of TPPT. Because TPPT requires the MAS to actually complete the legitimate user task while extracting, each agent must produce both a normal task response and its workflow record within the same output, whereas MASLeak overrides the task entirely and devotes the full response to the record. This is a strictly harder generation requirement, and on backbones with weaker instruction-following it yields slightly lower per-agent extraction fidelity.

Nevertheless, as shown in Tab. R1, our method remains comparable to MASLeak over the six backbones. Given FlowLeak's improvements on dynamic workflows and its robustness to defenses, particularly task-alignment defenses, we consider the minor fluctuation on static workflows for some backbones acceptable, and we will state this explicitly in the revised version.

Table R1: Average ERMASER_\text{MAS} (↑\uparrow) on static workflows across the six backbones.

BackboneMASLeakFlowLeakDifference
GPT-4o-mini0.8250.770-0.055
GPT-4o0.6110.856+0.245
GPT-4.1-mini0.0160.618+0.602
GPT-4.10.5900.685+0.095
DeepSeek-V30.8640.779-0.085
Gemini-2.5-Pro0.8100.828+0.018
Reviewer_yrZ9OpenReview ↗
Rating
4
Clarity
3
Confidence
2
Originality
2
Quality
3
Significance
2
Read review
Summary

This paper addresses the failure of existing black-box MAS workflow extraction methods in dynamic systems, where execution paths vary with input semantics. The proposed method, FlowLeak, embeds legitimate task queries into extraction payloads to diversify branch activation and uses previously extracted workflow fragments to guide subsequent queries toward uncovered branches. Experiments on 102 MAS show a roughly 2.68x improvement in extraction rate over the prior baseline MASLeak, with the extracted information further amplifying downstream attacks.

Strengths and weaknesses

Strengths

  • Clear problem identification. The two failure modes, branch overfitting and inefficient stealthy coverage exploration, are well-motivated and cleanly formalized, making the paper easy to follow.
  • Strong empirical results. The improvement over MASLeak is consistent across six LLM families and two real-world deployments, giving reasonable confidence that the gains are not model-specific.
  • Practical threat model. The strictly black-box, API-only adversary assumption is realistic and well-scoped.

Weaknesses

  • Static topology assumption. FlowLeak assumes a fixed agent graph. The paper acknowledges it cannot handle systems where agents, roles, or tools are dynamically instantiated per task, which limits applicability to more adaptive real-world deployments.
  • Thin defense analysis. The five defenses tested are all input-side prompt-injection defenses. Output-side defenses, such as filtering structured audit blocks from final responses, are a straightforward countermeasure not addressed. This is a notable blind spot given the paper frames itself partly around stealthiness.
  • ERMAS metric design. ERMAS averages seven sub-metrics equally. No justification is given for equal weighting, and the metric conflates static and dynamic workflow performance. Since the paper's central contribution is on dynamic workflows, reporting dynamic-only averages separately would be more informative.
  • Limited real-world scope. Only two real-world systems are tested, both open-source and relatively well-documented. Performance on proprietary commercial MAS, where routing logic is less predictable, remains unknown.
Questions
  1. Output-side defenses. The defense evaluation covers only prompt-level injection defenses. A simple output filter that strips structured audit blocks from final responses would appear to directly neutralize qforward. How would FlowLeak respond?
  2. Branch Analyst reliability. CGBE relies on GPT-5.4 to correctly infer branch structure from partial extractions. How often does the Branch Analyst misidentify or miss branches, and how does this error propagate into coverage failures?
  3. ERMAS weighting. ERMAS equally averages seven sub-metrics. Would conclusions change if dynamic-workflow metrics were reported separately or if topology reconstruction were weighted more heavily, given its direct relevance to downstream attacks?
Limitations

yes

Paper formatting concerns

None

Final justification

The rebuttal has addressed most of my concerns. I have raised my score to a positive rating.

1 comment

Q1: Static topology assumption

A1: Thanks. FlowLeak assumes that the agent set, topology, and configurations remain relatively stable across extraction rounds. It therefore cannot directly recover systems where sub-agents, roles, or tools are instantiated per task, since different queries then correspond to different workflow instances rather than one progressively mergeable workflow.

Importantly, this assumption does not restrict FlowLeak to static execution. The studied systems may still exhibit highly dynamic, input-dependent control flows, including routing, iterative evaluator-optimizer loops, and orchestrator-driven worker selection. Recovering such hidden execution structures remains practically important because the attacker must explore multiple task-dependent paths even when the underlying set of agents and connections is stable. This setting already exposes the central limitation of prior attacks, namely that a single query cannot traverse all task-dependent paths, and it is broad rather than narrow: besides the five canonical patterns and two real-world deployments in our evaluation, it characterizes a large share of deployed MAS, including those in healthcare, finance, law, and software engineering [9-16].

We will revise the paper to state this scope more explicitly and avoid implying applicability to dynamically instantiated MAS. Extending FlowLeak to recover per-query workflow snapshots or recurring structures across dynamically generated executions is an important direction for future work.

Q2: Output-side defenses

A2: Thanks and we agree that output-side defenses should be discussed; therefore, we implemented two output-level defenses on GPT-4o-mini. The keyword filter removes any block in the final response matching audit-trail keywords, and thus targets the wording of the elicitation instruction; the format filter removes structured tabular record blocks regardless of their header, and thus targets the structure of the accumulated record. Besides the default payload, we evaluate two substitutions: renaming the audit-trail framing to another auxiliary task (e.g., a compliance ledger), and replacing the structured table with a natural-language enumeration.

Tab. R1 shows that when the defender knows TPPT's details in advance, output-level filtering blocks the attack almost completely: both filters reduce the default payload to 0.000. However, the instruction wording and the record format used by TPPT are flexible, and each filter is evaded by the substitution matched to the dimension it inspects. Renaming the marker evades the keyword filter (0.745 vs. 0.000), and switching to a natural-language enumeration evades the format filter (0.791 vs. 0.000), in both cases without any loss relative to the undefended setting. The two substitutions are independent and compose within a single payload, so a defender deploying both filters would still face the full space of possible instantiations along both dimensions.

Since the defender cannot know the TPPT design in advance, we believe that output-level defense cannot provide reliable protection against FlowLeak. We will add a discussion of output-level defenses to the revised version.

Tab. R1: Average ERMASER_\text{MAS} (↑\uparrow) of FlowLeak payload variants under two output-side defenses on GPT-4o-mini.

Payload variantNo defenseKeyword FilterFormat Filter
Default0.7960.0000.000
Renamed marker0.7550.7450.000
NL enumeration0.8050.0000.791

Q3: Branch Analyst reliability

A3: Thanks. To assess CGBE's reliability directly rather than only through its end effect on ERMASER_\text{MAS}, we introduce four diagnostic metrics and evaluate them on the two multi-branch patterns, where branch inference is the operative factor. RIA (Router/Orchestrator Identification Accuracy) is the fraction of instances in which the controller agent named by Branch Analyst matches the true entry or orchestrator agent. BR/BP (Branch Recall/Precision) are the recall and precision of the recovered branch set against the ground-truth workflow. TTR (Targeted-Task Trigger Rate) is the fraction of rounds in which the intended branch actually appears in the next round's execution. Results in Tab. R2 are for a GPT-4o-mini target MAS with GPT-5.4 as the CGBE model.

Both modules are reliable, and errors are infrequent. The controller agent is identified correctly in every instance, branch recall and precision are at or above 0.900, and targeted tasks reach their intended branch in the large majority of rounds. This is consistent with the Agent Coverage Rate in Tab. 2b, where CGBE brings coverage to 0.970 and 0.953 and thus explores nearly all branches within the query budget. Both error types also degrade gracefully rather than causing coverage failure: a missed branch simply leaves the loop with no target and terminates it early, while a hallucinated branch or a mistargeted task only costs one round of budget, since the merge operator discards records for agents that were never activated. To verify that this does not depend on GPT-5.4, we also varied the LLM behind CGBE across a weaker model, the target's own model, and GPT-5.4; see A4 for Reviewer BRbw for results and discussion.

In the revised version, we will report these reliability metrics and the CGBE-model ablation.

Table R2: CGBE reliability diagnostics on a GPT-4o-mini target MAS with GPT-5.4 as the CGBE model.

MetricRoutingOrchestrator-Worker
RIA1.0001.000
BR1.0000.900
BP0.9480.971
TTR0.9640.857

Q4: ERMAS weighting

A4: Thanks. The equal weighting is inherited rather than chosen: we follow the protocol of Wang et al. [6] without modification, so that our results are directly comparable to the baseline and our gains do not depend on a weighting scheme of our own design.

We would also want to clarify that dynamic-workflow performance is not captured only by F1numF1_\text{num} and GStopoGS_\text{topo}. Because workflow information can only be extracted from activated agents, incomplete branch coverage propagates into all seven sub-metrics: an agent that is never reached contributes no system prompt, task instruction, or tool description, so the prompt-similarity and tool metrics degrade together with agent count and topology.

That said, we agree that agent number and topology recovery are of more direct relevance to downstream attacks. Following your suggestion, we recompute ERMASER_\text{MAS} with F1numF1_\text{num} and GStopoGS_\text{topo} assigned twice the weight of the other five sub-metrics. Tab. R3 reports both variants averaged over the three dynamic workflow patterns on GPT-4o-mini and GPT-4o. Both variants leave our conclusions unchanged: MASLeak fails on dynamic workflows, TPPT mitigates branch overfitting, and CGBE further improves coverage on routing and orchestrator-worker.

Table R3: Average ERMASER_\text{MAS} (↑\uparrow) over the three dynamic workflow patterns, under equal weighting and under double weighting of F1$\text{num}$ and GS$\text{topo}$.

ModelMethodERMASER_\text{MAS} (equal)ERMASER_\text{MAS} (weighted)
GPT-4o-miniMASLeak0.2250.247
GPT-4o-miniTPPT-Random0.7490.743
GPT-4o-miniFlowLeak0.8180.806
GPT-4oMASLeak0.2740.312
GPT-4oTPPT-Random0.6550.673
GPT-4oFlowLeak0.8240.807

Q5: Real-world scope and proprietary commercial MAS

A5: Thanks. Our choice of open-source real-world systems was driven by two constraints. The first is ethical: consistent with the Code of Ethics, we do not target deployed third-party systems without authorization, which rules out proprietary commercial MAS. The second is methodological: evaluating extraction quality requires the ground-truth workflow as a reference, which is unavailable for a black-box system without code and documentation, so results there could be reported but not scored.

We would also clarify that the attack itself is strictly black-box: the adversary obtains information only from the MAS's final outputs, with no access to source code, documentation, execution logs, or intermediate agent messages, so the fact that these systems are open-source does not confer any advantage on the attacker. The two systems are furthermore not trivially predictable targets. Magentic-One is a generalist system released by Microsoft whose orchestrator comprises four coordinating LLM agents dispatching to specialized workers, and Healthcare Agent combines routing over four doctor branches, parallel review, and a long downstream processing chain across medical specialists. Together they span four workflow patterns and two distinct domains, and their difficulty shows in the baseline, where MASLeak reaches ERMASER_\text{MAS} of 0.000 on Healthcare Agent and only 0.404 on Magentic-One.

To address the reviewer's concern about open-source targets more directly, we additionally conducted an experiment on Coze (https://coze.com/), a commercial agent platform on which agent systems are hosted in the cloud and their configurations are kept confidential. We constructed a financial advisor MAS covering all three dynamic workflow patterns, deployed it on the platform, and ran the experiment on GPT-4o. Because we designed the system ourselves, we retain the ground-truth workflow for scoring, while the attack side remains strictly black-box and faces the same hosted, confidential deployment as a genuine commercial target. Here MASLeak reaches ERMASER_\text{MAS} of 0.220, whereas FlowLeak reaches 0.660, indicating that FlowLeak retains its advantage on a commercially hosted deployment.

That said, we agree that generalization to proprietary commercial MAS remains open. In the revised version, we will scope the real-world claim explicitly to open-source systems whose code and documentation are available for establishing ground truth, add this to our limitations, and leave evaluation through authorized collaboration with providers to future work.

Reviewer_KuswOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary
  • The paper identifies a gap in existing black-box extraction attacks against Multi-Agent Systems (MAS) which is that they fail on workflows due to branch overfitting and the inability to explore different execution paths in the MAS.

  • The paper introduces FlowLeak, an attack designed to extract system prompts, and communication topologies from dynamic MAS environments in a black-box setting.

  • It proposes Task-Preserving Payload Template (TPPT) to avoid offerfitting to a branch and encourage exploration, which works by embedding adversarial workflow elicitation requests within diverse, legitimate user tasks to cover different MAS execution paths.

  • The also desings a Coverage-Guided Branch Exploration (CGBE) module that uses an LLM to analyze previously extracted fragments, infer unexplored branches, and generate targeted user tasks to improve efficiency.

  • The paper evaluates the FlowLeak attack across 102 MAS instances (including real-world deployments like Magentic-One) and multiple leading LLMs, proving it improves dynamic workflow extraction by 2.68x and significantly amplifies the success rate of downstream control-flow hijacking attacks.

Strengths and weaknesses

Strengths:

  • The paper identifies that an attack designed for static MAS does not work in dynamic MAS workflows and finds that branch overfitting is the main reason these static black-box attacks fail.
  • The paper adapts the concept of coverage-guided fuzzing from software security and applies it to LLM prompt engineering via the Coverage-Guided Branch Exploration (CGBE) module and is a novel approach.
  • The authors tested FlowLeak across 102 MAS instances and multiple state-of-the-art LLMs (GPT-4o, DeepSeek-V3, Gemini-2.5-Pro), and complex deployment-ready frameworks like Microsoft's Magentic-One and multi-agent healthcare systems proving the framework's broad generalizability.
  • The breakdown of key components clearly isolates the specific contributions of the task-preserving payloads validating the system''s architecture.

Weaknesses

  • The attack works by making the model carry a hidden data table all the way to its final answer. While this sneaks past initial security checks on the way in, a simple filter checking the final output on the way out could easily spot and delete this unusual data.
  • The framework assumes a relatively static communication topology. It cannot effectively map systems where sub-agents, tools, or roles are dynamically evolved on the fly for specific tasks.
  • The Branch Analyst infers routing logic from leaked prompts. If a routing decision is based on an external state, private database query, or hidden tool implementation (rather than LLM reasoning), the framework will struggle to generate a valid task to trigger it.
  • While the paper successfully demonstrates how FlowLeak bypasses current prompt-injection defenses, it offers very little actionable discussion or framework for how developers should build better, session-aware defenses against this new class of attack.
Questions
  • Please discuss whether the framework can adapt to natural-language exfiltration or provide a small-scale pilot experiment (e.g., on 5-10 MAS instances) demonstrating FlowLeak's extraction rate when the structured table format is not allowed.
  • What concrete defense architecture do you recommend multi-agent developers implement to protect their workflow assets?
Limitations

yes

Paper formatting concerns

none

Final justification

I maintain my Borderline Accept score, although the rebuttal does not fully resolve my concerns. The natural-language exfiltration experiment strengthens the claim that the attack is not tied to a particular output format, but it is limited to a small pilot on GPT-4o-mini. Similarly, SDGuard provides a useful concrete defense direction, but the reported results reveal a substantial protection–utility trade-off: stronger configurations incur very high false rejection rates, while usable configurations only partially mitigate FlowLeak. The authors also explicitly acknowledge that dynamic topologies and externally conditioned routing remain outside the current scope. Thus, the rebuttal improves the paper and addresses some of the initial questions, but important limitations in both attack generality and practical defense remain. I nevertheless find the empirical breadth and novelty sufficient for the reasons to accept to slightly outweigh these concerns, making Borderline Accept appropriate.

1 comment

Q1: Please discuss whether the framework can adapt to natural-language exfiltration or provide a small-scale pilot experiment (e.g., on 5-10 MAS instances) demonstrating FlowLeak's extraction rate when the structured table format is not allowed.

A1: Thank you for raising this important defense direction. We would first like to clarify that FlowLeak does not depend on the table format. The requirements on qforwardq_{forward} are functional rather than syntactic: the elicitation instruction must be preserved as the payload passes across agents, each activated agent must be able to append its own record without overwriting earlier ones, and the accumulated content must survive to the final output. A delimited table satisfies these requirements conveniently and makes parsing straightforward, but it is not the only viable surface form. The attacker can switch to an alternative representation through a minor payload modification without increasing the query budget.

To verify this, we replaced the delimited table in qforwardq_{forward} with a natural-language enumeration, in which each activated agent is asked to continue an ordered list (e.g., "A. ..., B. ..., C. ..."). We run this variant on GPT-4o-mini following the same protocol as our main experiments, and report the results in Tab. R1. The results show that the natural-language enumeration retains comparable extraction performance, achieving an average ERMASER_\text{MAS} of 0.785 versus 0.799 for the table variant. This result indicates that FlowLeak is not tied to the delimited-table representation and can vary the record format while retaining similar average extraction performance in this pilot experiment. This confirms that FlowLeak is flexible with respect to the payload format, and that the attacker can freely choose among different record formats without sacrificing extraction quality.

This flexibility has direct implications for the output-level defense the reviewer describes. We implemented such a defense, which inspects the final output and removes records that match the table format before the output is returned. As shown in Tab. R1, this defense is highly effective against the table variant, reducing ERMASER_\text{MAS} to 0.000 on all five workflow patterns. However, it provides no protection against the enumeration variant, which remains fully effective with an average ERMASER_\text{MAS} of 0.791. Because the defender cannot know in advance how the attacker instantiates TPPT, a format-specific output filter is unlikely to provide reliable protection: any such filter can be evaded by a change of surface form that costs the attacker nothing. In the revised version, we will report this pilot experiment, state explicitly that the record format is interchangeable, and add a discussion of output-level defenses along with this result.

Table R1: ERMASER_\text{MAS} (↑\uparrow) of FlowLeak on GPT-4o-mini using a natural-language enumeration (List) and the delimited table (Table) as the record format, without and with the table-format output-level defense.

WorkflowFlowLeak (List)FlowLeak (Table)FlowLeak (List)-DefenseFlowLeak (Table)-Defense
Chain0.8570.8370.8360.000
Parallel0.7210.7040.7290.000
Eval-Opt0.7490.8110.7260.000
Routing0.8140.8390.8540.000
Orch0.7840.8040.8120.000
Avg.0.7850.7990.7910.000

Q2: Dynamic topology and externally conditioned routing

A2: We thank the reviewer for highlighting these two important limitations. FlowLeak currently assumes a relatively fixed agent set, topology, and configuration. It therefore cannot directly reconstruct systems in which agents, roles, or tools are dynamically instantiated for each task, because the target workflow itself changes across queries.

A separate limitation arises when routing conditions depend on external states, private databases, tool implementations, or runtime policies rather than on LLM-visible prompts and instructions. In such cases, FlowLeak may still extract the agents and topology exposed during execution, but CGBE has less information from which to infer the triggering conditions of uncovered branches and may therefore fail to achieve complete coverage.

Our current evaluation is scoped to the five canonical workflow patterns described by Anthropic and LangChain, together with two real-world deployments, all of which have relatively stable agent configurations and primarily text-conditioned control logic. We will revise the paper to state this scope more explicitly, avoid claims of complete extraction in dynamically instantiated or externally conditioned systems, and discuss extending CGBE with state-aware and tool-interaction-based exploration as future work.

Q3: What concrete defense architecture do you recommend multi-agent developers implement to protect their workflow assets?

A3: We thank you for this question. We prototyped a defense, which we call Self-Disclosure Guard (SDGuard). Its guiding idea is to target what the attack fundamentally requires rather than how it is written: whatever marker or record format the payload adopts, extraction always requires an agent to reproduce its own configuration in its output. SDGuard is therefore content-based and format-agnostic. It runs as a per-agent output check: for each agent output and each of that agent's own protected fields (system prompt, task instruction, and tool descriptions), it measures the overlap between the two and replaces the output with a safe placeholder once that overlap exceeds a threshold, so that leakage is contained before it propagates downstream. We considered two ways of measuring this overlap: semantic similarity, computed from embeddings of the output and the agent's own configuration, and the absolute length of the longest contiguous run of identical words shared by the two.

We evaluated both detectors against the FlowLeak on GPT-4o-mini over the three dynamic workflow patterns, and additionally ran the guarded systems on normal tasks with no attack present. For each detector, we report a stricter and a more permissive configuration: thresholds of τ=0.6\tau = 0.6 and τ=0.7\tau = 0.7 for semantic similarity, and 15 and 25 words for the verbatim run length. We report ERMASER_\text{MAS} to quantify defense strength, where lower values indicate stronger protection, together with the false rejection rate (FRR), the fraction of legitimate agent outputs wrongly blocked by the guard on the attack-free tasks, where lower values indicate that normal execution is better preserved.

The results in Tab. R2 expose a clear trade-off between defense strength and utility. The semantic detector suppresses extraction almost entirely, reducing ERMASER_\text{MAS} from 0.818 to 0.006 and 0.089, but its false rejection rate is prohibitive at 0.787 and 0.508. This is because benign agents are already topically close to their own role prompts, so their normal outputs and their extraction responses fall in overlapping similarity ranges and no threshold separates the two. The verbatim run-length detector trades along the same axis but at far more usable operating points: a threshold of 15 words lowers ERMASER_\text{MAS} to 0.280 at the cost of rejecting 19.5% of legitimate outputs, while a threshold of 25 words rejects none at all and still reduces extraction to 0.540. At these usable operating points, however, the detector only mitigates the FlowLeak attack rather than fully preventing workflow leakage.

Our recommendation to developers accordingly has three parts. First, inspect every agent output rather than only the final response, so that leakage is contained at the agent. Second, key detection on verbatim reproduction of an agent's own configuration rather than on payload signatures such as extraction tasks or record formats, since the latter are interchangeable at no cost to the attacker while the former is what extraction fundamentally requires. Third, choose the operating point with the trade-off between protection and utility explicitly, since a detector strong enough to suppress extraction may also block the legitimate agent outputs and thereby break normal execution. In the revised version, we will add this defense and the trade-off above to the discussion section, and we will pursue the design of more effective defenses as future work.

Table R2: ERMASER_\text{MAS} (↓\downarrow) under SDGuard against the full FlowLeak attack, and false rejection rate (FRR, ↓\downarrow) on attack-free normal tasks, on GPT-4o-mini averaged over the three dynamic workflow patterns.

DetectorConfigurationERMASER_\text{MAS} ↓FRR ↓
Semantic similarityτ=0.6\tau = 0.60.0060.787
Semantic similarityτ=0.7\tau = 0.70.0890.508
Verbatim run lengthn=15n = 150.2800.195
Verbatim run lengthn=25n = 250.5400.000
Reviewer_BRbwOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
2
Quality
3
Significance
3
Read review
Summary

This paper proposes a method called FlowLeak for extracting hidden workflow information, including agent configuration, tool descriptions, and communication topology, from black-box LLM multi-agent systems with dynamic workflows where queries typically trigger only partial branches, and previous methods (e.g., MASLeak) lead to branch overfitting and inefficient branch exploration. To address this issue, FlowLeak proposes two core modules: TPPT preserves task semantics by embedding ordinary user tasks, enabling multi-agent systems to naturally enter different execution paths; CGBE infers uncovered branches based on workflow fragments extracted in previous rounds and generates target tasks for the next round for coverage-guided exploration. Experiments show that FlowLeak improves the workflow extraction rate of dynamic workflows by mitigating the default branch problem through TPPT and improving agent coverage through CGBE.

Strengths and weaknesses

Strengths:

  • This paper investigates an important and pressing problem: extracting black-box workflows, particularly dynamic workflows, from multi-agent systems.
  • The motivation is clear. This paper points out a key limitation of MASLeak: a single adversarial query may not be able to traverse all agents in routing, evaluator-optimizer, or coordinator-worker workflows, leading to branch overfitting and incomplete extraction.
  • The proposed approach is technically reasonable at a high level. TPPT introduces legitimate task semantics to guide the MAS toward different execution paths, while CGBE uses previously extracted workflow fragments to guide future branch exploration.
  • This work provides a new insight: for dynamic MAS workflow extraction, the bottleneck is not only how to elicit and propagate leaked information, but also how to achieve sufficient branch and agent coverage across multiple rounds.

Weaknesses:

  • Potential novelty overclaim in the contribution of TPPT: The experimental results show an improvement from 0.000 to 0.8-0.9 on the eval-opt task. The improvement on evaluator-optimizer workflows may mainly come from task-compatible prompt adaptation rather than a fundamentally new extraction mechanism.
  • In Table 1, TPPT-Random already improves and even outperforms full FlowLeak on few workflows. This suggests that MASLeak’s failure on evaluator-optimizer may be due to its adversarial payload disrupting the scoring-optimization loop, rather than a lack of branch coverage. The paper seems to conflate different failure modes under the umbrella of dynamic workflow extraction. For evaluator-optimizer workflows, the main issue appears to be task-compatibility of the payload, not branch coverage.
  • The reliability of CGBE is under-justified: FlowLeak’s propagation/coverage mechanism appears less reliable than presented. The actual coverage gain relies on CGBE, which infers uncovered branches from incomplete leaked fragments rather than a robust protocol of propagation. Thus, the method may degrade to heuristic task sampling when branch-triggering logic is not explicitly exposed.
  • Possible violation of the black-box setting in implementation: The paper does not sufficiently justify why CGBE can accurately infer uncovered branches from previously extracted workflow fragments. The paper claims a black-box threat model where only final outputs are observable, but the released code appears to feed execution_order returned by the local MAS simulator into the Branch Analyst. If so, CGBE may benefit from privileged execution-path information unavailable in real black-box settings, potentially inflating the reported coverage and extraction gains.
Questions
  1. Clarify whether TPPT is a new mechanism or mainly a task-compatible adaptation of MASLeak

The large improvement on evaluator-optimizer workflows may mainly come from making the payload task-compatible, rather than from a fundamentally new extraction mechanism. Could the authors compare FlowLeak with a stronger MASLeak variant that preserves the original user task and wraps MASLeak’s leak/retain/propagate instructions as an auxiliary audit/logging requirement, but does not use CGBE?

This comparison would help determine whether TPPT introduces a genuinely new mechanism, or whether the gains mainly come from adapting MASLeak-style prompts to evaluator-optimizer and routing-style workflows.

My score would increase if the authors show that FlowLeak still outperforms this stronger MASLeak-style task-compatible baseline, or revise the claim to clearly state that TPPT is mainly a task-compatible adaptation of MASLeak for dynamic workflows. My score would decrease if the paper keeps claiming a substantially new extraction mechanism without controlling for this stronger baseline.


  1. Separate different failure modes across dynamic workflows

The paper groups evaluator-optimizer, routing, and orchestrator-worker workflows under the same umbrella of dynamic workflow extraction. However, the failure modes may be different. For evaluator-optimizer workflows, the main issue seems to be task-completion compatibility, while for routing and orchestrator-worker workflows, the issue seems closer to branch coverage.

Could the authors provide a more explicit analysis separating these cases? In particular, TPPT-Random already improves and even outperforms full FlowLeak on some evaluator-optimizer settings, suggesting that CGBE may not be the key factor there.

My score would increase if the authors provide a clearer taxonomy of failure modes and align each module’s contribution with the corresponding workflow type. My score would decrease if all dynamic workflows continue to be explained uniformly as branch-coverage problems despite the ablation results suggesting otherwise.


  1. Re-run CGBE without execution-order information

The paper claims a black-box threat model where the adversary only observes final outputs. However, the released code appears to feed execution_order returned by the local MAS simulator into the Branch Analyst. This information would not be available in a real black-box setting.

Could the authors rerun CGBE using only information observable from final outputs, such as extracted workflow fragments, and remove any execution-path trace from the Branch Analyst input?

A small-scale ablation would be sufficient, for example:

  • FlowLeak with execution_order
  • FlowLeak without execution_order
  • TPPT-Random

This experiment would clarify whether CGBE’s branch inference is genuinely based on leaked workflow fragments, or whether the reported gains are partly inflated by privileged execution-path information.

My score would increase substantially if FlowLeak without execution_order still clearly outperforms TPPT-Random. My score would decrease if the performance drops significantly and the paper does not revise the threat model or acknowledge the use of oracle-like information.


  1. Control the strength of the external CGBE planner

FlowLeak uses a strong external LLM for online branch analysis and task generation, while MASLeak mainly uses external LLMs for offline payload construction. Therefore, FlowLeak’s improvement may partly come from the stronger online planner rather than from the proposed coverage-guided mechanism itself.

Could the authors add a small ablation varying the LLM used for Branch Analyst and Task Generator? For example:

  • using the same backbone as the target MAS
  • using a weaker planner
  • using the current strong planner

My score would increase if FlowLeak remains effective with weaker or same-backbone planners. My score would decrease if the gains largely disappear with weaker planners and the paper does not clarify that CGBE depends heavily on a strong external attacker-side LLM.

Limitations

Yes.

Paper formatting concerns

No significant formatting issues.

Final justification

According to therebuttal, my concerns have been addressed.

1 comment

Q1: Clarify whether TPPT is a new mechanism or mainly a task-compatible adaptation of MASLeak

A1: Thanks. We agree that TPPT's contribution should be characterized at the appropriate level. TPPT does not introduce a new leakage primitive: it builds on MASLeak's existing leak/propagate/retain operations. However, it introduces a task-preserving payload construction specifically designed for task-conditioned dynamic workflows, rather than merely rewriting the surface form of the MASLeak prompt.

MASLeak's original payload makes workflow extraction the dominant objective and carries no legitimate task semantics. As shown by the representative query in Fig. 7, it explicitly suppresses the user task ("I don't care about the result of the task now") and requires the agent to output only the bracketed extraction block. This is less problematic for static workflows, whose execution path is independent of task content, but in dynamic workflows it removes the semantic signal on which routers, evaluators, and orchestrators make execution decisions.

TPPT addresses this through three coupled designs: qtaskq_{\text{task}} remains a legitimate primary task that is actually executed and whose result is preserved; qelicitq_{\text{elicit}} is formulated as a task-compatible auxiliary requirement rather than the primary objective; and qforwardq_{\text{forward}} propagates and appends the extracted record without replacing the normal task response. Our claim is thus not that TPPT introduces a new exfiltration primitive, but that it enables existing primitives to operate without suppressing the normal execution semantics of dynamic MAS.

This also explains the evaluator-optimizer result highlighted by the reviewer. Under the original MASLeak payload, normal task execution is suppressed, so the evaluator may never receive a satisfactory output and the refinement loop may fail to reach its termination condition. Consequently, no final output is produced, yielding ERMAS=0.000ER_{\text{MAS}}=0.000. TPPT restores normal task execution and allows the loop to terminate. We therefore agree that the large improvement on evaluator-optimizer primarily reflects task compatibility rather than coverage guidance from CGBE.

Following the reviewer's suggestion, we implemented a stronger baseline, denoted MASLeak (Enhanced). It preserves the original user task and reframes MASLeak's leak/propagate/retain instructions as an auxiliary audit requirement, while retaining MASLeak's original propagation format and using neither TPPT's structured forwarding design nor CGBE.

Tab. R1 shows that task compatibility improves the average ERMASER_\text{MAS} from 0.224 to 0.408. The improvement is most evident on evaluator-optimizer, where the score increases from 0.000 to 0.277, and on routing, where it increases from 0.180 to 0.532. However, MASLeak (Enhanced) still remains substantially below TPPT-Random, which achieves an average ERMASER_{\text{MAS}} of 0.749. This indicates that task compatibility is necessary but insufficient: TPPT's coupled task preservation, auxiliary elicitation, and non-substitutive forwarding design provide additional benefits.

In the revised version, we will clarify that TPPT is not a new leakage primitive, distinguish task-compatibility failures from branch-coverage failures, and include MASLeak (Enhanced) as a stronger baseline.

Table R1: ERMASER_\text{MAS} (↑\uparrow) of the task-compatible MASLeak variant on GPT-4o-mini.

MethodEval-OptRoutingOrchAvg.
MASLeak0.0000.1800.4930.224
MASLeak (Enhanced)0.2770.5320.4160.408
TPPT-Random0.8510.6630.7320.749

Q2: Separate different failure modes across dynamic workflows

A2: Thanks and we agree that the two cases should be separated rather than explained uniformly as branch coverage, and distinguish two failure modes. We distinguish two failure modes. The first is task-completion incompatibility, which characterizes evaluator-optimizer. The obstacle is not which agents are reached but whether the run terminates at all: a fully adversarial query never satisfies the evaluator's exit condition, so no final output is emitted and the accumulated records are never exfiltrated. The failure is total rather than partial, hence MASLeak's exact 0.000. TPPT resolves it because qtaskq_\text{task} supplies a genuinely executable task whose output the evaluator can score and accept, while qforwardq_\text{forward} appends the record to that output rather than replacing it, so the record survives to the final output. Branch coverage plays no role here, since an evaluator-optimizer loop has no mutually exclusive branches to cover.

The second mode is branch non-coverage, which characterizes routing and orchestrator-worker. These patterns contain mutually exclusive branches whose activation is decided by a router or orchestrator from task semantics, so semantically similar queries repeatedly reach the same default branch and leave other agents unreached. This bounds the coverage term in Eq. (4) regardless of per-agent extraction quality. TPPT alone only partially mitigates it, because randomly sampled tasks tend to revisit already-covered branches; CGBE addresses it directly by inferring branch trigger conditions and coverage status from previously extracted fragments and generating tasks targeted at uncovered branches.

The ablation in Table 1 aligns with this taxonomy rather than contradicting it. On evaluator-optimizer, the entire gain comes from TPPT (0.000 to 0.851) and CGBE adds nothing; the small TPPT-Random and FlowLeak difference reflects run-to-run variation, since Branch Analyst identifies no uncovered branches in this pattern and the loop terminates early, leaving FlowLeak essentially equivalent to TPPT-Random. We therefore agree that CGBE is not the key factor here. On routing and orchestrator-worker, the pattern is the opposite: TPPT recovers part of the gap (0.180 to 0.663 and 0.493 to 0.732) and CGBE contributes a further substantial gain (to 0.839 and 0.804), and the Agent Coverage Rate in Tab. 2b provides independent evidence that coverage is the binding constraint in these two patterns, rising from 0.712 to 0.953 when CGBE is added. In short, TPPT addresses task-completion incompatibility and CGBE branch non-coverage, each decisive only for its corresponding mode.

In the revised version, we will introduce this failure-mode taxonomy in Section 5 and state explicitly that the evaluator-optimizer improvement is attributable to TPPT's task preservation rather than to branch coverage.

Q3: Possible violation of the black-box setting in implementation and Re-run CGBE without execution-order information

A3: Thanks for the careful code inspection. The execution_order input comes from an outdated version of the code that was mistakenly included when we prepared the release code. During development, we ablated this input and found that it did not affect CGBE's results and removed it. The reported results were produced with the version that does not use it, and the final method operates strictly under the black-box threat model stated in the paper.

To make this explicit, we reran FlowLeak with execution_order on GPT-4o-mini across the three dynamic workflows. Tab. R2 shows that the two configurations are indistinguishable (0.818 vs. 0.817 on average) and both outperform TPPT-Random by a clear margin. Removing the execution order causes no drop at all, so the gain attributed to CGBE does not depend on privileged execution-path information. The reason is that the decisive signal for Branch Analyst comes from the leaked system prompts, task instructions, and topology clues, which already reveal the controller agent, the number and roles of candidate branches, and their triggering conditions. We will replace the released code with the correct version.

Table R2: ERMASER_\text{MAS} (↑\uparrow) of FlowLeak with and without execution_order on GPT-4o-mini.

MethodEval-OptRoutingOrchAvg.
TPPT-Random0.8510.6630.7320.749
FlowLeak w/ execution_order0.8130.8350.8040.817
FlowLeak w/o execution_order0.8110.8390.8040.818

Q4: Control the strength of the external CGBE planner

A4: Thank you for raising this ablation control, which we agree is important. On the three dynamic workflows with a GPT-4o-mini target backbone, we varied the LLM used for Branch Analyst and Task Generator across a weaker model (GPT-3.5-turbo), the same model as the target MAS (GPT-4o-mini), and the strong model used in the paper (GPT-5.4).

Tab. R3 shows that a stronger planner does yield a consistent but modest gain on routing and orchestrator-worker, and the ordering across the three planners is monotonic. The effect is nevertheless small relative to the gap over TPPT-Random: even GPT-3.5-turbo recovers most of the improvement, and using the same backbone as the target MAS is nearly on par with GPT-5.4. The dependence is weak because neither module performs open-ended reasoning about a hidden system. Triggering conditions and branch roles are stated explicitly in the leaked system prompts and task instructions, so branch-state inference reduces to reading them off and checking which agents have already appeared in the accumulated records, and task generation reduces to writing a short domain-appropriate request that matches a given condition. Both are within reach of small models.

In the revised version, we will report this ablation and state explicitly that CGBE does not depend on a strong LLM. More discussion of CGBE's reliability can be found in A3 for Reviewer yrZ9.

Table R3: ERMASER_\text{MAS} (↑\uparrow) under different LLMs for Branch Analyst and Task Generator on GPT-4o-mini target backbone.

CGBE ModelEval-OptRoutingOrchAvg.
GPT-3.5-turbo0.8180.7930.7680.793
GPT-4o-mini0.8240.8110.7940.810
GPT-5.40.8110.8390.8040.818

Comments on the paper

1 comment
Meta-review

(a) Summary: The paper proposes FlowLeak, a black-box extraction attack against LLM-based multi-agent systems (MAS) with dynamic workflows, where execution paths depend on input semantics. It identifies two failure modes of prior work (MASLeak): branch overfitting and inefficient/stealthy coverage exploration. FlowLeak addresses these via a Task-Preserving Payload Template (TPPT), which embeds extraction payloads in legitimate tasks to avoid overfitting to a single branch, and Coverage-Guided Branch Exploration (CGBE), which uses previously leaked fragments to target unexplored branches. Experiments across 102 MAS and six LLM families report a 2.68× improvement in dynamic workflow extraction and show that leaked workflows amplify downstream attacks.

(b) Strengths: Reviewers agree the problem is well-motivated and important (BRbw, Kusw, yrZ9, tQjU all note this). The adaptation of coverage-guided fuzzing concepts to prompt-based extraction is seen as a genuinely novel angle (Kusw). The empirical scope is broad lending confidence that gains generalize (yrZ9, Kusw). The paper is clearly written (tQjU, yrZ9).

(c) Weaknesses: The most serious concern, raised by BRbw, is a possible violation of the black-box threat model: the released code appears to feed execution_order (a privileged, simulator-only signal) into the Branch Analyst, which could inflate reported coverage/extraction gains beyond what a real black-box adversary could achieve. Reviewers also question whether TPPT's large gains on evaluator-optimizer workflows reflect a fundamentally new mechanism or simply task-compatible prompt adaptation, since TPPT-Random alone sometimes matches or beats full FlowLeak (BRbw). tQjU notes FlowLeak does not consistently beat MASLeak on static (Chain/Parallel) workflows, undercutting claims of general improvement. yrZ9 and Kusw both flag that the defense evaluation only covers input-side prompt-injection defenses, leaving an obvious output-side countermeasure (filtering structured audit blocks) unaddressed despite the paper's stealthiness framing. yrZ9 also questions the unjustified equal-weighting in the ERMAS metric, which conflates static and dynamic performance.

(d) What could shift the decision: The execution_order/black-box validity issue is the most decision-relevant weakness. A rebuttal that provides a clean re-run of CGBE using only genuinely observable outputs (no execution-path leakage) and shows FlowLeak still meaningfully outperforms TPPT-Random would substantially strengthen the paper. Or, the paper revise its threat model and claims. Clarifying whether TPPT's evaluator-optimizer gains are a new mechanism vs. task-compatible adaptation (ideally via the stronger MASLeak baseline BRbw proposes), and providing a taxonomy separating failure modes across workflow types, would also help. Addressing output-side defenses and justifying (or reweighting) the ERMAS metric would further support acceptance.

(e, f) All reviewers in their final justification mentioned positive attitude towards accept the paper, based on the new results and clarifications in the rebuttal.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.