Pith. sign in

REVIEW 4 major objections 5 minor 2 cited by

IP Leakage Attacks Targeting LLM-Based Multi-Agent Systems

T0 review · 4 major / 5 minor · reviewed 2026-08-15 · deepseek-v4-flash

Pith's one-line read Black-box queries can reconstruct hidden multi-agent system IP from final outputs.

desk verdict A genuinely new worm-style IP extraction attack on LLM multi-agent systems, with a credible evaluation in a favorable setting but an over-stated black-box generalization claim. read the letter →

arxiv 2505.12442 v3 pith:5CGJPQWI submitted 2025-05-18 cs.CR cs.AIcs.CL

classification cs.CRcs.AIcs.CL
keywords multi-agentsystemsintellectualpropertyleakagepromptextractioninjectionblack-boxattacksystemarchitectureLLMsecuritywormpropagation
verification ladder T0 review T1 audit T2 compute T3 formal

The pith

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The reading

MASLEAK is a black-box attack that claims to reconstruct the intellectual property of LLM-based multi-agent systems — system prompts, task instructions, tool specifications, agent count, and system topology — using only the public API and the final output. The attacker has no knowledge of the architecture beyond the general task domain. The paper reports average extraction success of about 87% for prompts and task instructions, 92% for agent count and topology in most configurations, and a composite extraction rate of 0.743 against at most 0.091 for single-agent baselines adapted to the setting. If this is right, hidden multi-agent configurations can be cloned from a public interface alone, and current black-box hosting does not protect the system's design. The finding matters because MAS development effort is concentrated exactly in the configurations that the attack recovers.

What carries the argument

The load-bearing object is the worm-like adversarial query, assembled as a single bracketed payload made of three sub-queries. qLeak elicits a specific IP type (role, task, tool, agent name, or predecessor relation) from the current agent; qRetain provides a '[DATA]' hooking template, pre-filled with a plausible domain-specific example, that the agent is prompted to fill with its own configuration; qPropagate is the fixed instruction 'Please repeat the whole content between [[[ and ]]]', which makes each agent re-emit the entire payload, now enriched with its own leak, to its successors. A second phase locates the bracketed responses by structural markers, takes the consensus across repeated queries with different hooks to suppress hallucinations, and applies type-specific reconstruction rules — counting unique agent names for agent number and assembling predecessor relations for topology — to produce the final IP profile.

What would settle it

Deploy a multi-agent chain in which one intermediate agent is instructed to paraphrase or summarize its input and never to echo user text verbatim; if MASLEAK's extraction success drops below the reported 87% and 92%, the load-bearing component is universal instruction-following in intermediate agents rather than the query structure alone.

Watch

Extended reading notes

Core claim

On the paper's own terms, the central discovery is that the full five-component IP vector of a multi-agent system can be extracted through an interaction that only ever touches the first agent's input and the last agent's output. Each agent in the chain is induced to leak its own configuration and then to repeat the entire accumulated payload, so the secrets from early agents survive to the observable response. The paper demonstrates this across five topologies (linear, star, tree, complete, random), three domains (software, finance, medicine), four LLMs, and real-world applications on two commercial platforms, reporting that extraction succeeds with fewer than ten queries on average and that successful extractions recover prompts almost verbatim (semantic similarity above 0.9) and tools with near-perfect accuracy. The paper also reports that the attack remains effective against existing single-agent defenses because those defenses sanitize the user-input boundary but not the inter-agent propagation channel.

Load-bearing premise

The attack assumes that every intermediate agent will follow the embedded instruction to repeat the whole bracketed payload, including secrets from earlier agents, so the accumulated leak reaches the final output intact.

Editorial extensions

If this is right

  • A black-box multi-agent application can be cloned from its public API responses alone; the paper reports near-complete prompt recovery and near-perfect recovery of agent count and topology in most tested configurations.
  • The attack is practical under real API constraints, needing fewer than ten queries on average and under eleven seconds for nearly all cases in the evaluation.
  • Delimiters, sandwich and instructional prevention, known-answer detection, and perplexity detection all degrade but fail to stop the attack, because they protect the user-input boundary rather than the inter-agent relay.
  • Agents enhanced with chain-of-thought or ReAct reasoning are slightly more vulnerable than standard agents, so adding reasoning does not by itself mitigate extraction.
  • The extracted configuration profile can serve as a foundation for downstream attacks on the same MAS, such as membership inference over the recovered prompts and architecture.

Reading between the lines

Editorial extensions of the paper, not claims the author makes directly.

  • A direct testable consequence the paper does not run: an intermediate agent that only emits structured output (e.g., a strict JSON schema) or that is primed with a 'never repeat the user's text' guardrail should break propagation entirely; measuring how far success drops would isolate how much of the result depends on unconstrained free-text relaying.
  • The domain-aware hooking pool is the component most likely to transfer across platforms, so the attack's marginal cost per new target is low once the pool exists; that suggests defenses should focus on breaking the hooking template rather than on detecting individual leak triggers.
  • The same propagation trick could plausibly be repurposed for benign uses, such as auditing whether deployed multi-agent systems actually honor data-minimization policies, since it reads back what each agent internally receives and forwards.
Share X Bluesky LinkedIn Reddit HN

Signed reviews

No signed human review yet.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, and a circularity audit.

Referee Report

4 major / 5 minor

Summary. The paper introduces MASLEAK, a black-box attack that aims to extract intellectual property (IP) from LLM-based multi-agent systems (MAS). The adversary submits crafted queries through the public API of the first agent and observes only the final agent's output. Each adversarial query concatenates a leak sub-query (qLeak), a domain-aware hooking sub-query (qRetain), and a propagation instruction (qPropagate, 'Please repeat the whole content between [[[ and ]]]'). The method is evaluated on 810 synthetic MAS instances generated with AutoAgents across five topologies, three domains, and four LLMs, plus 20 real-world applications on CrewAI and Coze. The paper reports high extraction rates, claims 87% average success for system prompts and task instructions and 92% for system architecture, compares against single-agent prompt-extraction baselines, and evaluates several defenses.

Significance. If the findings hold, this is a meaningful extension of prompt-extraction research from single agents to multi-agent systems, and the paper would be one of the first to systematically study MAS IP leakage under black-box access. The contributions are substantial in scope: a new attack pipeline, a large synthetic benchmark (810 MAS instances), evaluation across four LLMs and multiple topologies, real-world evaluation on CrewAI and Coze, and a defense analysis. The paper also provides honest discussion of the distinction between extraction failure and extraction quality, and the dataset and code are promised for release. The central risk is external validity: the attack's propagation mechanism is tested almost exclusively on a forwarding-friendly inter-agent communication wrapper, and the synthetic evaluation may share a distributional prior with the attacker's hooking-pool generation. These issues do not invalidate the core idea but they directly affect the strength of the headline claims.

major comments (4)
  1. [Sec. 4.1, Eq. (5), Algorithm 1, Appendix B.2] The end-to-end success probability is factored as P(Propagate) x P(Leak) x P(Retain), and the qPropagate instruction in Algorithm 1 (line 12) requires every intermediate agent to repeat verbatim the entire [[[ ... ]]] payload. The only reported evidence that this propagation step works comes from a communication wrapper that passes the full 'Previous Agent's Result' to each agent and asks it to 'perform this task' on top of that context. This is a highly forwarding-friendly protocol; production systems that summarize, filter, truncate, or enforce output schemas over inter-agent messages are not tested. Because the paper's headline claim is for a general black-box setting, this missing condition is load-bearing: the 87%/92% figures should be presented as upper bounds for the tested wrapper, or the paper should add experiments with output-schema-constrained and summarizing intermediate agents.
  2. [Sec. 5 (Synthesized MAS) and Sec. 4.1 (Hooking Pool)] The synthetic ground-truth IP is generated by an AutoAgents pipeline, while the attacker's hooking examples are LLM-generated from public domain descriptions of the same application domains. If the generator and the attacker draw from similar distributional priors, the reported SS/SM metrics may partly reflect this shared distribution rather than the strength of the leak queries. Please report a control where the target MAS prompts are written by humans independent of the attack designers, where the attacker's domain knowledge excludes the target application's own documentation, and where the hooking pool is ablated on that independent target set. This is not a claim of circularity in the formal sense, but the evaluation currently does not rule out distributional overlap as an alternative explanation for part of the observed advantage.
  3. [Abstract and Tables 1-2] The headline '87% for system prompts and task instructions and 92% for system architecture' is not the unconditional average of Table 1. For example, GPT-4o's average values for the four prompt metrics are 0.853, 0.724, 0.890, and 0.802, which average to about 0.82, not 0.87; Table 2 reports near-perfect numbers only after conditioning on successful extraction. The architecture figure similarly depends on which topology metric is used and on the phrase 'in most cases.' Please report the headline numbers with the exact metric definitions, the model, and the conditioning event, and revise the abstract to state the unconditional per-metric averages from Table 1.
  4. [Sec. 6.3 and Appendix .2.1] For the ten CrewAI applications, the ground-truth IP is publicly available in the CrewAI examples repository, and Phase I explicitly crawls public documentation. If any public description of a target CrewAI app was used as domain knowledge, the extraction result could mix memorized public prompt text with genuine black-box extraction. Please state explicitly which domain sources were used for each of the twenty real-world applications and confirm that the target applications' own published prompts were excluded from the hooking-pool construction.
minor comments (5)
  1. [Sec. 5, Metrics] GStopo is defined as 1 - (GS/GSmax) but GS is not defined; presumably GS is the graph edit distance (GED). Please correct the notation.
  2. [Sec. 4.1 and Sec. 4.2] There are typos: 'Hense' in Sec. 4.1 and 'reuslts' in Sec. 4.2 should be 'Hence' and 'results'.
  3. [Table 2] The table does not define what counts as a successful extraction for each IP type; please state the criterion explicitly (e.g., presence of the [DATA] marker or a successful qRetain parse).
  4. [Fig. 6] The x-axis label 'Number of Hookings' is ambiguous; please clarify whether the values 0-3 count hooking examples per query, examples in the pool, or something else.
  5. [Section 6.3 and Appendix references] The paper refers to 'Appendix A.1' and 'Appendix B.x', but the appendix numbering in the provided manuscript is inconsistent; please unify the cross-references.

Circularity Check

1 steps flagged · score 2.0 of 10

Mild evaluation-level self-reference in the semantic similarity metric; the attack derivation itself is empirical and not circular.

  1. other [Section 4.1 'Crafting qRetain'; Section 5 'Metrics']
    "We leverage LLMs with the following prompt: Here is a description of the [domain name] multi-agent system: [domain knowledge]. Please generate the [proprietary information] for each agent within this system. ... SS (ranging from -1 to 1) measures the semantic distance between the reconstructed and true prompts using cosine similarity of their embedding vectors (generated by a sentence transformer)."

    The headline semantic-similarity metric compares the reconstructed prompt with the ground-truth prompt by embedding cosine. The attacker's domain-aware hooking content is LLM-generated from domain knowledge of the target domain, while the synthetic ground-truth prompts are also LLM-generated (by AutoAgents) from tasks in the same domain datasets (SRDD, FinQA, MedQA). Therefore two independently generated but domain-typical prompts can score high SS even when the hidden prompt was not actually extracted; the semantic metric partly measures domain consistency rather than extraction fidelity. The exact-match SM metric and the real-world CrewAI/Coze evaluations are less affected, so this is a partial evaluation-level self-reference, not a derivation forced by the attack's inputs.

full rationale

The central MASLEAK claim is an empirical attack demonstration rather than a derivation, so there is no self-definitional or fitted-input circularity: qPropagate, qLeak, and qRetain are fixed adversarial templates, and the reported extraction rates are measured against ground truth that the attacker never fits. The propagation factor P(Propagate) is an empirical instruction-following assumption; it is a generalization and validity concern that production MAS might filter, summarize, or refuse the payload, but it is not circular. The only mild circular element is evaluative: the SS metrics reward semantic similarity, and both the attacker's domain-aware hooking examples and the synthetic ground-truth prompts are LLM-generated from the same domain material, so high SS can partly reflect domain consistency rather than true recovery. SM substring matching, tool hit rate, and real-world applications provide independent evidence, so the overall circularity is low.

Assumptions & free parameters 2 free parameters · 3 assumptions · 0 invented entities

The attack is an empirical method, so the ledger is dominated by behavioral assumptions about LLM agents and dataset representativeness rather than fitted constants. The main hand-chosen hyperparameters are the query count and hooking count, whose values are not reported.

free parameters (2)
  • Total adversarial query count N = Not reported
    Algorithm 1 treats N as an input, and the evaluation says the attack needs fewer than ten queries on average, but the offline query set size and per-IP-type split are not stated. This is a hand-chosen budget that affects extraction completeness and is central to the query-budget constraint in Eq. (3).
  • Hooking examples per type L = Not reported
    Algorithm 1 samples L hooking examples per IP type; the ablation in Fig. 6 shows performance depends heavily on the hooking count, with one hooking point optimal. L is a hand-tuned design choice, not derived from a principle.
assumptions (3)
  • domain assumption LLM agents will follow instructions embedded in user input and in predecessor outputs, including requests to disclose configuration and to repeat payloads verbatim.
    The entire qLeak, qRetain, qPropagate design in Sec. 4.1 depends on this; no formal guarantee is provided and current models are known to vary in instruction-following.
  • domain assumption The MAS platform applies no output-level filtering or sanitization, so the full propagated payload with markers like [DATA] appears in the final response.
    Phase II (Sec. 4.2) extracts IP by locating structural markers in final outputs; if platforms strip or rewrite agent output, the extraction mechanism breaks.
  • domain assumption Synthetic MAS instances generated by AutoAgents with 3-6 agents and five topologies are representative of real-world MAS deployments.
    Sec. 5 asserts coverage of most real-world scenarios; this is an assumption that the measured success rates transfer to production systems.

how reviews work

0 comments
Cite this review

Pith. "Pith review of IP Leakage Attacks Targeting LLM-Based Multi-Agent Systems." pith.science (2026). https://pith.science/paper/5CGJPQWI

@misc{pith2026250512442,
  author       = {Pith},
  title        = {Pith review of: IP Leakage Attacks Targeting LLM-Based Multi-Agent Systems},
  year         = {2026},
  howpublished = {\url{https://pith.science/paper/5CGJPQWI}},
  note         = {Machine review of arXiv:2505.12442}
}
abstract

The rapid advancement of Large Language Models (LLMs) has led to the emergence of Multi-Agent Systems (MAS) to perform complex tasks through collaboration. However, the intricate nature of MAS, including their architecture and agent interactions, raises significant concerns regarding intellectual property (IP) protection. In this paper, we introduce MASLEAK, a novel attack framework designed to extract sensitive information from MAS applications. MASLEAK targets a practical, black-box setting, where the adversary has no prior knowledge of the MAS architecture or agent configurations. The adversary can only interact with the MAS through its public API, submitting attack query $q$ and observing outputs from the final agent. Inspired by how computer worms propagate and infect vulnerable network hosts, MASLEAK carefully crafts adversarial query $q$ to elicit, propagate, and retain responses from each MAS agent that reveal a full set of proprietary components, including the number of agents, system topology, system prompts, task instructions, and tool usages. We construct the first synthetic dataset of MAS applications with 810 applications and also evaluate MASLEAK against real-world MAS applications, including Coze and CrewAI. MASLEAK achieves high accuracy in extracting MAS IP, with an average attack success rate of 87% for system prompts and task instructions, and 92% for system architecture in most cases. We conclude by discussing the implications of our findings and the potential defenses.

Figures

Figures reproduced from arXiv: 2505.12442 by the authors.

Figure 1
Figure 1. Illustration of MAS applications. 1 INTRODUCTION The integration of Large Language Models (LLMs) has enabled intelligent agents that leverage LLM reasoning and external tools for diverse tasks like sending emails, retriev￾ing weather, and dealing with coding tasks [1], [2], [3], [4], [5]. This shift moves automated systems away from rule￾based approaches. Multi-Agent Systems (MAS), a notable advancement, consist of … view at source ↗
Figure 2
Figure 2. Illustration of varying MAS topologies. Topology, which dictates agent communication, is an￾other critical component. Poorly designed topologies can significantly degrade MAS performance, even with highly capable individual agents [25], [26]. Following prior work [6], [27], [28], we formally represent MAS topologies as directed acyclic graphs (DAGs) G = (A, E). G = (A, E) A = {ai |i ∈ I} E = {⟨ai , aj ⟩|i, j ∈ I∧i ̸… view at source ↗
Figure 3
Figure 3. Overview of MASLEAK in a two-phase pipeline. with no visibility into MAS internal communications and can only observe the final outputs produced by the system. The adversary’s goal is to construct an extraction function Φ : R → Ω ′ that produces an approximation Ω ′ of the original target information Ω. Objectives. For each category of information ωj , we define a similarity function Simj (ωj , ω′ j ) that measures … view at source ↗
Figures from the paper (4 more)
Figure 4
Figure 4. Figure 4: Measuring diversity of the generated MAS instances. [PITH_FULL_IMAGE:figures/full_fig_p007_4.png]
Figure 5
Figure 5. Figure 5: Result under different agent numbers. TABLE 2: Results for only successful extractions. Method SSsys SMsys SStask SMtask ACCtool GPT-4o-mini 0.989 0.916 0.897 0.885 1.000 GPT-4o 0.991 0.929 0.982 0.969 1.000 LLaMA-3.1-70B 0.910 0.829 0.833 0.819 0.934 Qwen-2.5-72B 0.85…
Figure 6
Figure 6. Figure 6: Result of different hooking numbers. Impact of Hooking Number [PITH_FULL_IMAGE:figures/full_fig_p010_6.png]
Figure 7
Figure 7. Figure 7: This screenshot demonstrates our successful leak attack targeting tool IP. We executed our attack method against a [PITH_FULL_IMAGE:figures/full_fig_p017_7.png]

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Attacking and Defending Multi-Agent Collaborative Filtering Systems Through Connectivity

    cs.IR 2026-08 conditional novelty 6.0 of 10

    In agent-based collaborative filtering, attack spread and privacy leakage grow with interaction connectivity, but the effect is asymmetric between user and item agents and differs between early and steady-state phases.

  2. When Prompts Control Robots: Prompt Injection Attacks in Multi-Agent Robotic Systems

    cs.RO 2026-08 conditional novelty 6.0 of 10

    Prompt injection can hijack multi-agent LLM robot planners, spread from an injected agent to clean teammates through shared prompts, and partially survives a per-agent separation defense via shared memory.

Reference graph

Works this paper leans on

90 extracted references · 46 canonical work pages · cited by 2 Pith papers

  1. [1]

    Low-cost and comprehensive non-textual input fuzzing with llm-synthesized input generators,

    K. Zhang, Z. Li, D. Wu, S. Wang, and X. Xia, “Low-cost and comprehensive non-textual input fuzzing with llm-synthesized input generators,” arXiv preprint arXiv:2501.19282, 2025

  2. [2]

    Measuring and augmenting large language models for solving offensive security challenges,

    Z. Ji, D. Wu, W. Jiang, P . Ma, Z. Li, and S. Wang, “Measuring and augmenting large language models for solving offensive security challenges,” in Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security, CCS 2025, Taipei, Taiwan, October 13-17, 2025, 2025

  3. [3]

    Causality-aided evaluation and explanation of large language model-based code generation,

    Z. Ji, P . Ma, Z. Li, Z. Wang, and S. Wang, “Causality-aided evaluation and explanation of large language model-based code generation,” in Proceedings of the 34th ACM SIGSOFT International Symposium on Software Testing and Analysis, 2025

  4. [4]

    Refining decompiled c code with large language models,

    W. K. Wong, H. Wang, Z. Li, Z. Liu, S. Wang, Q. Tang, S. Nie, and S. Wu, “Refining decompiled c code with large language models,” arXiv preprint arXiv:2310.06530, 2023

  5. [5]

    Navrepair: Node-type aware c/c++ code vulnerability repair,

    R. Wang, Z. Li, C. Wang, Y. Xiao, and C. Gao, “Navrepair: Node-type aware c/c++ code vulnerability repair,” arXiv preprint arXiv:2405.04994, 2024

  6. [6]

    Why do multi- agent llm systems fail?

    M. Cemri, M. Z. Pan, S. Yang, L. A. Agrawal, B. Chopra, R. Tiwari, K. Keutzer, A. Parameswaran, D. Klein, K. Ramchandran, M. Zaharia, J. E. Gonzalez, and I. Stoica, “Why do multi- agent llm systems fail?” 2025. [Online]. Available: https: //arxiv.org/abs/2503.13657

  7. [7]

    If multi-agent debate is the answer, what is the question?

    H. Zhang, Z. Cui, X. Wang, Q. Zhang, Z. Wang, D. Wu, and S. Hu, “If multi-agent debate is the answer, what is the question?” 2025. [Online]. Available: https://arxiv.org/abs/2502.08788

  8. [8]

    Available: https://coze.com/

    “Coze.” [Online]. Available: https://coze.com/

Show all 90 references
  1. [9]

    Breaking agents: Compromising autonomous llm agents through malfunction amplification,

    B. Zhang, Y. Tan, Y. Shen, A. Salem, M. Backes, S. Zannettou, and Y. Zhang, “Breaking agents: Compromising autonomous llm agents through malfunction amplification,” 2024. [Online]. Available: https://arxiv.org/abs/2407.20859

  2. [10]

    Psysafe: A comprehensive framework for psychological-based attack, defense, and evaluation of multi-agent system safety,

    Z. Zhang, Y. Zhang, L. Li, J. Shao, H. Gao, Y. Qiao, L. Wang, H. Lu, and F. Zhao, “Psysafe: A comprehensive framework for psychological-based attack, defense, and evaluation of multi-agent system safety,” in Proceedings of the 62nd Annual Meeting of the Association for Computa...

  3. [11]

    Flooding spread of manipulated knowledge in llm-based multi-agent communities,

    T. Ju, Y. Wang, X. Ma, P . Cheng, H. Zhao, Y. Wang, L. Liu, J. Xie, Z. Zhang, and G. Liu, “Flooding spread of manipulated knowledge in llm-based multi-agent communities,”

  4. [12]

    Prompt infection: Llm-to-llm prompt injection within multi-agent systems,

    D. Lee and M. Tiwari, “Prompt infection: Llm-to-llm prompt injection within multi-agent systems,” 2024. [Online]. Available: https://arxiv.org/abs/2410.07283

  5. [13]

    Agents Under Siege: Breaking pragmatic multi-agent llm systems with optimized prompt attacks,

    R. M. S. Khan, Z. Tan, S. Yun, C. Flemming, and T. Chen, “Agents Under Siege: Breaking pragmatic multi-agent llm systems with optimized prompt attacks,” 2025. [Online]. Available: https://arxiv.org/abs/2504.00218

  6. [14]

    Here comes the ai worm: Unleashing zero-click worms that target genai-powered applica- tions,

    S. Cohen, R. Bitton, and B. Nassi, “Here comes the ai worm: Unleashing zero-click worms that target genai-powered applica- tions,” arXiv preprint arXiv:2403.02817, 2024

  7. [15]

    Pleak: Prompt leaking attacks against large language model applications,

    B. Hui, H. Yuan, N. Gong, P . Burlina, and Y. Cao, “Pleak: Prompt leaking attacks against large language model applications,” in Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security, CCS 2024, Salt Lake City, UT, USA, October 14-18, 2024 , B...

  8. [16]

    Effective prompt extraction from language models,

    Y. Zhang, N. Carlini, and D. Ippolito, “Effective prompt extraction from language models,” arXiv preprint arXiv:2307.06865, 2023

  9. [17]

    Privagent: Agentic-based red-teaming for llm privacy leakage,

    Y. Nie, Z. Wang, Y. Yu, X. Wu, X. Zhao, W. Guo, and D. Song, “Privagent: Agentic-based red-teaming for llm privacy leakage,”

  10. [18]

    Chatbug: A common vulnerability of aligned llms induced by chat templates,

    F. Jiang, Z. Xu, L. Niu, B. Y. Lin, and R. Poovendran, “Chatbug: A common vulnerability of aligned llms induced by chat templates,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 39, no. 26, 2025, pp. 27 347–27 355

  11. [19]

    Available: https://arxiv.org/abs/2412.05734

    [Online]. Available: https://arxiv.org/abs/2412.05734

  12. [20]

    Language models are few-shot learners,

    T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P . Dhariwal, A. Neelakantan, P . Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. M. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. teusz Litwin, S. G...

  13. [21]

    Available: https://www.crewai.com/

    “Crewai.” [Online]. Available: https://www.crewai.com/

  14. [22]

    Chatdev: Communicative agents for software development,

    C. Qian, W. Liu, H. Liu, N. Chen, Y. Dang, J. Li, C. Yang, W. Chen, Y. Su, X. Cong, J. Xu, D. Li, Z. Liu, and M. Sun, “Chatdev: Communicative agents for software development,” in Annual Meeting of the Association for Computational Linguistics , 2023. [Online]. Available: https...

  15. [23]

    A survey on large language model based autonomous agents,

    L. Wang, C. Ma, X. Feng, Z. Zhang, H. ran Yang, J. Zhang, Z.-Y. Chen, J. Tang, X. Chen, Y. Lin, W. X. Zhao, Z. Wei, and J. rong Wen, “A survey on large language model based autonomous agents,” Frontiers Comput. Sci. , vol. 18, p. 186345, 2023. [Online]. Available: https://api....

  16. [24]

    Tool learning with large language models: A survey,

    C. Qu, S. Dai, X. Wei, H. Cai, S. Wang, D. Yin, J. Xu, and J. Wen, “Tool learning with large language models: A survey,” Frontiers of Computer Science , 2024. [Online]. Available: https://api.semanticscholar.org/CorpusID:270067624

  17. [25]

    Metagpt: Meta programming for multi-agent collaborative framework,

    S. Hong, X. Zheng, J. P . Chen, Y. Cheng, C. Zhang, Z. Wang, S. K. S. Yau, Z. H. Lin, L. Zhou, C. Ran, L. Xiao, and C. Wu, “Metagpt: Meta programming for multi-agent collaborative framework,” International Conference on Learning Representations , 2023. [Online]. Available: htt...

  18. [26]

    On the resilience of llm-based multi-agent collaboration with faulty agents,

    J.-T. Huang, J. Zhou, T. Jin, X. Zhou, Z. Chen, W. Wang, Y. Yuan, M. Sap, and M. R. Lyu, “On the resilience of llm-based multi-agent collaboration with faulty agents,” 2024. [Online]. Available: https://api.semanticscholar.org/CorpusID:271693147

  19. [27]

    Why do multi- agent llm systems fail?

    M. Cemri, M. Z. Pan, S. Yang, L. A. Agrawal, B. Chopra, R. Tiwari, K. Keutzer, A. Parameswaran, D. Klein, K. Ramchandran, M. Zaharia, J. E. Gonzalez, and I. Stoica, “Why do multi- agent llm systems fail?” 2025. [Online]. Available: https: //api.semanticscholar.org/CorpusID:277103715

  20. [28]

    Netsafe: Exploring the topological safety of multi-agent networks,

    M. Yu, S. Wang, G. Zhang, J. Mao, C. Yin, Q. Liu, Q. Wen, K. Wang, and Y. Wang, “Netsafe: Exploring the topological safety of multi-agent networks,” 2024. [Online]. Available: https://arxiv.org/abs/2410.15686

  21. [29]

    Scaling large language model-based multi-agent collaboration,

    C. Qian, Z. Xie, Y. Wang, W. Liu, K. Zhu, H. Xia, Y. Dang, Z. Du, W. Chen, C. Yang, Z. Liu, and M. Sun, “Scaling large language model-based multi-agent collaboration,” in The Thirteenth International Conference on Learning Representations , 2025. [Online]. Available: https://o...

  22. [30]

    Ignore previous prompt: Attack techniques for language models,

    F. Perez and I. Ribeiro, “Ignore previous prompt: Attack techniques for language models,” in NeurIPS ML Safety Workshop,

  23. [31]

    Stealing part of a production language model,

    N. Carlini, D. Paleka, K. D. Dvijotham, T. Steinke, J. Hayase, A. F. Cooper, K. Lee, M. Jagielski, M. Nasr, A. Conmy, E. Wallace, D. Rolnick, and F. Tram `er, “Stealing part of a production language model,” in Forty-first International Conference on Machine Learning , 2024. [O...

  24. [32]

    Struq: Defending against prompt injection with structured queries,

    S. Chen, J. Piet, C. Sitawarin, and D. Wagner, “Struq: Defending against prompt injection with structured queries,” in USENIX Security Symposium, 2025

  25. [33]

    Redagent: Red teaming large language models with context-aware autonomous language agent,

    H. Xu, W. Zhang, Z. Wang, F. Xiao, R. Zheng, Y. Feng, Z. Ba, and K. Ren, “Redagent: Red teaming large language models with context-aware autonomous language agent,” 2024. [Online]. Available: https://arxiv.org/abs/2407.16667

  26. [34]

    Output constraints as attack surface: Exploiting structured generation to bypass llm safety mechanisms,

    S. Zhang, J. Zhao, R. Xu, X. Feng, and H. Cui, “Output constraints as attack surface: Exploiting structured generation to bypass llm safety mechanisms,” 2025. [Online]. Available: https://arxiv.org/abs/2503.24191

  27. [35]

    On the resilience of llm-based multi-agent collaboration with faulty agents,

    J. tse Huang, J. Zhou, T. Jin, X. Zhou, Z. Chen, W. Wang, Y. Yuan, M. R. Lyu, and M. Sap, “On the resilience of llm-based multi-agent collaboration with faulty agents,” 2025. [Online]. Available: https://arxiv.org/abs/2408.00989

  28. [36]

    ToolBeHonest: A multi-level hallucination diagnostic benchmark for tool-augmented large language models,

    Y. Zhang, J. Chen, J. Wang, Y. Liu, C. Yang, C. Shi, X. Zhu, Z. Lin, H. Wan, Y. Yang, T. Sakai, T. Feng, and H. Yamana, “ToolBeHonest: A multi-level hallucination diagnostic benchmark for tool-augmented large language models,” in Proceedings of the 2024 Conference on Empirical...

  29. [37]

    InFoBench: Evaluating instruction following ability in large language models,

    Y. Qin, K. Song, Y. Hu, W. Yao, S. Cho, X. Wang, X. Wu, F. Liu, P . Liu, and D. Yu, “InFoBench: Evaluating instruction following ability in large language models,” in Findings of the Association for Computational Linguistics: ACL 2024 , L.-W. Ku, A. Martins, and V . Srikumar, ...

  30. [38]

    ChatDev: Communicative agents for software development,

    C. Qian, W. Liu, H. Liu, N. Chen, Y. Dang, J. Li, C. Yang, W. Chen, Y. Su, X. Cong, J. Xu, D. Li, Z. Liu, and M. Sun, “ChatDev: Communicative agents for software development,” in Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1:...

  31. [39]

    Finqa: A dataset of numerical reasoning over financial data,

    Z. Chen, W. Chen, C. Smiley, S. Shah, I. Borova, D. Langdon, R. Moussa, M. Beane, T.-H. Huang, B. Routledge, and W. Y. Wang, “Finqa: A dataset of numerical reasoning over financial data,” Proceedings of EMNLP 2021, 2021

  32. [40]

    Autoagents: A framework for automatic agent generation,

    G. Chen, S. Dong, Y. Shu, G. Zhang, J. Sesay, B. Karlsson, J. Fu, and Y. Shi, “Autoagents: A framework for automatic agent generation,” in Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI-24 , K. Larson, Ed. International Joint C...

  33. [41]

    Langchain

    “Langchain.” [Online]. Available: https://www.langchain.com/

  34. [42]

    Llamaindex

    “Llamaindex.” [Online]. Available: https://www.llamaindex.ai/

  35. [43]

    What disease does this patient have? a large-scale open domain question answering dataset from medical exams,

    D. Jin, E. Pan, N. Oufattole, W.-H. Weng, H. Fang, and P . Szolovits, “What disease does this patient have? a large-scale open domain question answering dataset from medical exams,” arXiv preprint arXiv:2009.13081, 2020

  36. [44]

    Semantic diversity: A measure of semantic ambiguity based on variability in the contextual usage of words,

    P . Hoffman, M. A. Lambon Ralph, and T. T. Rogers, “Semantic diversity: A measure of semantic ambiguity based on variability in the contextual usage of words,” Behavior research methods, vol. 45, pp. 718–730, 2013

  37. [45]

    Crewai examples

    “Crewai examples.” [Online]. Available: https://docs.crewai. com/examples/example

  38. [46]

    Topological complexity of motion planning,

    Farber, “Topological complexity of motion planning,” Discrete & Computational Geometry, vol. 29, pp. 211–221, 2003

  39. [47]

    A survey of graph edit distance,

    X. Gao, B. Xiao, D. Tao, and X. Li, “A survey of graph edit distance,” Pattern Analysis and applications , vol. 13, pp. 113–129, 2010

  40. [48]

    CCTEST: testing and repairing code completion systems,

    Z. Li, C. Wang, Z. Liu, H. Wang, D. Chen, S. Wang, and C. Gao, “CCTEST: testing and repairing code completion systems,” in 45th IEEE/ACM International Conference on Software Engineering, ICSE 2023, Melbourne, Australia, May 14-20, 2023. IEEE, 2023, pp. 1238– 1250

  41. [49]

    Sentence transformers

    “Sentence transformers.” [Online]. Available: https:// huggingface.co/sentence-transformers

  42. [50]

    Agentharm: A benchmark for measuring harmfulness of LLM agents,

    M. Andriushchenko, A. Souly, M. Dziemian, D. Duenas, M. Lin, J. Wang, D. Hendrycks, A. Zou, J. Z. Kolter, M. Fredrikson, Y. Gal, and X. Davies, “Agentharm: A benchmark for measuring harmfulness of LLM agents,” in The Thirteenth International Conference on Learning Representati...

  43. [51]

    Formalizing and benchmarking prompt injection attacks and defenses,

    Y. Liu, Y. Jia, R. Geng, J. Jia, and N. Z. Gong, “Formalizing and benchmarking prompt injection attacks and defenses,” in 33rd USENIX Security Symposium (USENIX Security 24) . Philadelphia, PA: USENIX Association, Aug. 2024, pp. 1831–

  44. [52]

    Agentdojo: A dynamic environment to evaluate prompt injection attacks and defenses for LLM agents,

    E. Debenedetti, J. Zhang, M. Balunovic, L. Beurer-Kellner, M. Fischer, and F. Tram`er, “Agentdojo: A dynamic environment to evaluate prompt injection attacks and defenses for LLM agents,” in The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benc...

  45. [53]

    Llm-pbe: Assessing data privacy in large language models,

    Q. Li, J. Hong, C. Xie, J. Tan, R. Xin, J. Hou, X. Yin, Z. Wang, D. Hendrycks, Z. Wang, B. Li, B. He, and D. Song, “Llm-pbe: Assessing data privacy in large language models,” Proc. VLDB Endow., vol. 17, no. 11, pp. 3201–3214, July 2024. [Online]. Available: https://www.vldb.or...

  46. [54]

    The waterfall model in large- scale development,

    K. Petersen, C. Wohlin, and D. Baca, “The waterfall model in large- scale development,” in Product-Focused Software Process Improve- 15 ment: 10th International Conference, PROFES 2009, Oulu, Finland, June 15-17, 2009. Proceedings 10. Springer, 2009, pp. 386–400

  47. [55]

    Large language model based multi-agents: A survey of progress and challenges,

    T. Guo, X. Chen, Y. Wang, R. Chang, S. Pei, N. V . Chawla, O. Wiest, and X. Zhang, “Large language model based multi-agents: A survey of progress and challenges,” in Proceedings of the Thirty- Third International Joint Conference on Artificial Intelligence, IJCAI-24, K. Larson...

  48. [56]

    Universal and transferable adversarial attacks on aligned language models,

    A. Zou, Z. Wang, J. Z. Kolter, and M. Fredrikson, “Universal and transferable adversarial attacks on aligned language models,” 2023

  49. [57]

    React: Synergizing reasoning and acting in language models,

    S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao, “React: Synergizing reasoning and acting in language models,” in International Conference on Learning Representations (ICLR), 2023

  50. [58]

    Membership inference attacks against in-context learning,

    R. Wen, Z. Li, M. Backes, and Y. Zhang, “Membership inference attacks against in-context learning,” in Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security, ser. CCS ’24. New York, NY, USA: Association for Computing Machinery, 2024, p. 3481–...

  51. [59]

    Optimization-based prompt injection attack to llm-as-a-judge,

    J. Shi, Z. Yuan, Y. Liu, Y. Huang, P . Zhou, L. Sun, and N. Z. Gong, “Optimization-based prompt injection attack to llm-as-a-judge,” in Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security , ser. CCS ’24. New York, NY, USA: Association for C...

  52. [60]

    Chain-of-thought prompting elicits reasoning in large language models,

    J. Wei, X. Wang, D. Schuurmans, M. Bosma, F. Xia, E. Chi, Q. V . Le, D. Zhou et al. , “Chain-of-thought prompting elicits reasoning in large language models,” Advances in neural information processing systems, vol. 35, pp. 24 824–24 837, 2022

  53. [61]

    Sandwich defense

    “Sandwich defense.” [Online]. Available: https: //learnprompting.org/docs/prompt hacking/defensive measures/sandwich defense

  54. [62]

    tiktoken

    “tiktoken.” [Online]. Available: https://github.com/openai/ tiktoken

  55. [63]

    Prompt stealing attacks against large language models,

    Z. Sha and Y. Zhang, “Prompt stealing attacks against large language models,” arXiv preprint arXiv:2402.12959, 2024

  56. [64]

    Stshield: Single-token sentinel for real-time jailbreak detection in large language models,

    X. Wang, W. Wang, Z. Ji, Z. Li, P . Ma, D. Wu, and S. Wang, “Stshield: Single-token sentinel for real-time jailbreak detection in large language models,” arXiv preprint arXiv:2503.17932, 2025

  57. [65]

    Selfdefend: Llms can defend themselves against jailbreaking in a practical manner,

    X. Wang, D. Wu, Z. Ji, Z. Li, P . Ma, S. Wang, Y. Li, Y. Liu, N. Liu, and J. Rahmel, “Selfdefend: Llms can defend themselves against jailbreaking in a practical manner,”arXiv preprint arXiv:2406.05498, 2024

  58. [66]

    Stealing machine learning models via prediction {APIs},

    F. Tram `er, F. Zhang, A. Juels, M. K. Reiter, and T. Ristenpart, “Stealing machine learning models via prediction {APIs},” in 25th USENIX security symposium (USENIX Security 16) , 2016, pp. 601– 618

  59. [67]

    Knockoff nets: Stealing functionality of black-box models,

    T. Orekondy, B. Schiele, and M. Fritz, “Knockoff nets: Stealing functionality of black-box models,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2019, pp. 4954– 4963

  60. [68]

    Extracting prompts by inverting LLM outputs,

    C. Zhang, J. X. Morris, and V . Shmatikov, “Extracting prompts by inverting LLM outputs,” in Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing , Y. Al- Onaizan, M. Bansal, and Y.-N. Chen, Eds. Miami, Florida, USA: Association for Computatio...

  61. [69]

    Practical black-box attacks against machine learning,

    N. Papernot, P . McDaniel, I. Goodfellow, S. Jha, Z. B. Celik, and A. Swami, “Practical black-box attacks against machine learning,” in Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security , ser. ASIA CCS ’17. New York, NY, USA: Association fo...

  62. [70]

    Scalable extraction of training data from (production) language models,

    M. Nasr, N. Carlini, J. Hayase, M. Jagielski, A. F. Cooper, D. Ip- polito, C. A. Choquette-Choo, E. Wallace, F. Tram `er, and K. Lee, “Scalable extraction of training data from (production) language models,” arXiv preprint arXiv:2311.17035, 2023

  63. [71]

    Differentiation-based ex- traction of proprietary data from fine-tuned llms,

    Z. Li, D. Wu, S. Wang, and S. Zhendong, “Differentiation-based ex- traction of proprietary data from fine-tuned llms,” inProceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security, CCS 2025, Taipei, Taiwan, October 13-17, 2025, 2025

  64. [72]

    High accuracy and high fidelity extraction of neural networks,

    M. Jagielski, N. Carlini, D. Berthelot, A. Kurakin, and N. Papernot, “High accuracy and high fidelity extraction of neural networks,” in 29th USENIX security symposium (USENIX Security 20), 2020, pp. 1345–1362

  65. [73]

    Split and merge: Aligning position biases in LLM-based evaluators,

    Z. Li, C. Wang, P . Ma, D. Wu, S. Wang, C. Gao, and Y. Liu, “Split and merge: Aligning position biases in LLM-based evaluators,” in Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing , Y. Al-Onaizan, M. Bansal, and Y.-N. Chen, Eds. Miami, Fl...

  66. [74]

    Decllm: Llm-augmented recompilable decom- pilation for enabling programmatic use of decompiled code,

    W. K. Wong, D. Wu, H. Wang, Z. Li, Z. Liu, S. Wang, Q. Tang, S. Nie, and S. Wu, “Decllm: Llm-augmented recompilable decom- pilation for enabling programmatic use of decompiled code,” in Proceedings of the 34th ACM SIGSOFT International Symposium on Software Testing and Analysis, 2025

  67. [75]

    Unleashing the power of compiler intermediate representation to enhance neural program embeddings,

    Z. Li, P . Ma, H. Wang, S. Wang, Q. Tang, S. Nie, and S. Wu, “Unleashing the power of compiler intermediate representation to enhance neural program embeddings,” in 44th IEEE/ACM 44th International Conference on Software Engineering, ICSE 2022, Pitts- burgh, P A, USA, May 25-2...

  68. [76]

    Api-guided dataset synthesis to finetune large code models,

    Z. Li, D. Wu, S. Wang, and Z. Su, “Api-guided dataset synthesis to finetune large code models,” Proceedings of the ACM on Program- ming Languages, vol. 9, no. OOPSLA1, pp. 786–815, 2025

  69. [77]

    Reef: A framework for collecting real-world vulnerabilities and fixes,

    C. Wang, Z. Li, Y. Pena, S. Gao, S. Chen, S. Wang, C. Gao, and M. R. Lyu, “Reef: A framework for collecting real-world vulnerabilities and fixes,” in 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 2023, pp. 1952–1962

  70. [78]

    On the feasibility of specialized ability stealing for large language code models,

    Z. Li, C. Wang, P . Ma, C. Liu, S. Wang, D. Wu, and C. Gao, “On the feasibility of specialized ability stealing for large language code models,” 2023

  71. [79]

    Protecting intellectual property of large language model-based code generation apis via watermarks,

    Z. Li, C. Wang, S. Wang, and G. Cuiyun, “Protecting intellectual property of large language model-based code generation apis via watermarks,” in Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security, CCS 2023, Copenhagen, Denmark, November 26-30...

  72. [80]

    Beyond peft: Layer-wise optimization for more effective and efficient large code model tuning,

    C. Wang, J. Feng, S. Gao, C. Gao, Z. Li, T. Peng, H. Huang, Y. Deng, and M. Lyu, “Beyond peft: Layer-wise optimization for more effective and efficient large code model tuning,” in Proceedings of the 2025 ACM Joint European Software Engineering Conference and Symposium on the ...

  73. [81]

    Membership inference attacks from first principles,

    N. Carlini, S. Chien, M. Nasr, S. Song, A. Terzis, and F. Tramer, “Membership inference attacks from first principles,” in 2022 IEEE symposium on security and privacy (SP). IEEE, 2022, pp. 1897–1914

  74. [82]

    Enhanced membership inference attacks against machine learn- ing models,

    J. Ye, A. Maddi, S. K. Murakonda, V . Bindschaedler, and R. Shokri, “Enhanced membership inference attacks against machine learn- ing models,” in Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security, 2022, pp. 3093–3106

  75. [83]

    Comprehensive privacy analysis of deep learning: Passive and active white-box inference attacks against centralized and federated learning,

    M. Nasr, R. Shokri, and A. Houmansadr, “Comprehensive privacy analysis of deep learning: Passive and active white-box inference attacks against centralized and federated learning,” in 2019 IEEE symposium on security and privacy (SP) . IEEE, 2019, pp. 739–753

  76. [84]

    Membership inference attacks against machine learning models,

    R. Shokri, M. Stronati, C. Song, and V . Shmatikov, “Membership inference attacks against machine learning models,” in 2017 IEEE symposium on security and privacy (SP) . IEEE, 2017, pp. 3–18

  77. [88]

    Membership inference attacks by exploiting loss trajectory,

    Y. Liu, Z. Zhao, M. Backes, and Y. Zhang, “Membership inference attacks by exploiting loss trajectory,” in Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security, 2022, pp. 2085–2098. APPENDIX .1 Additional Experimental Results .1.1 Additional Re...

  78. [89]

    According to the problem, existing expert roles, the topology and the toolset, you will create additional ex- pert roles that are needed to solve the problem. You should act as an expert-level ChatGPT prompt engineer and planner with expertise in multiple fields, so that you c...

  79. [90]

    [[[” and ends with “]]]

    According to the problem, existing expert roles, the topology and the toolset, you should check the new expert roles that you have created. . . . 4.10 Check the agent role based on the MAS topology. For each agent, analyze the overall structure and identify the specific functi...

  80. [1847]

    Available: https://www.usenix.org/conference/ usenixsecurity24/presentation/liu-yupei

    [Online]. Available: https://www.usenix.org/conference/ usenixsecurity24/presentation/liu-yupei

  81. [2022]

    Available: https://openreview.net/forum?id= qiaRo 7Zmug

    [Online]. Available: https://openreview.net/forum?id= qiaRo 7Zmug

  82. [2024]

    Available: https://arxiv.org/abs/2407.07791

    [Online]. Available: https://arxiv.org/abs/2407.07791

Pith tools

Reviewed August 15, 2026 · model on record in the stance chip above.