arXiv:2610.13886cs.AIOct 2026

Manuscript Offprint

arXiv:2610.13886

X-AgentRed: Red-Teaming Personal Agents in Evolving Multi-Service Ecosystems

Yeonsung Jung, Zhiyuan Wang, Zifan Wang, Vítor Albiero, Benjamin Newman, Edoardo Debenedetti, Ivan Evtimov, Ninareh Mehrabi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yeonsung Jung1,∗^{1,*}, Zhiyuan Wang1^{1}, Zifan Wang2^{2}, Vitor Albiero2^{2}, Benjamin Newman1^{1}, Edoardo Debenedetti3^{3}, Ivan Evtimov4^{4}, Ninareh Mehrabi1^{1}

1^{1}Meta Reality Labs Research, 2^{2}Meta Superintelligence Labs, 3^{3}Meta, 4^{4}FAIR at Meta

*Work done at Meta

Personal agents increasingly connect to services across the web and applications by using tools. As the effects of their actions accumulate and interact across services, unintended or harmful outcomes can arise when agents fulfill benign user requests. Proactively identifying these compositional failures requires systematically exploring diverse cross-service paths. Existing red-teaming methods often simply prompt LLMs to identify potentially harmful paths from task and environment descriptions or decompose harmful objectives specified by humans or LLMs into seemingly benign action combinations. However, generation is biased toward patterns learned during training, potentially favoring familiar tool combinations and leaving novel cross-service interactions underexplored. To address this, we propose X-AgentRed, a self-evolving red-teaming framework that discovers harmful tool call paths through a graph of tool dependencies and expands and refines them using execution feedback. By analyzing each tool's effects, potential harms, and preconditions for execution, the red-teaming agent constructs a directed graph that captures how one tool's effects can satisfy another's execution preconditions. Recipes sampled from this graph are instantiated as realistic scenarios in which agents can produce harmful outcomes. Execution feedback enables self-improvement by diversifying paths that produce harm through tool substitution and refining preconditions at blocked steps in unsuccessful paths to enable further execution. Across four frontier agentic models, X-AgentRed achieves 1.77×1.77\times the harmful path rate of STAC and explores a more diverse set of tools, yielding 2.99×2.99\times the tool coverage on average.

Meta

1 Introduction

Recent advances in personal agents, including ChatGPT (OpenAI, 2026b), Claude (Anthropic, 2026a), and Muse (Meta, 2026), enable users to delegate increasingly complex tasks across services on the web and in applications. Each service, such as GitHub or Notion, provides a set of tools that agents can invoke. Given a user's goal, these agents coordinate actions across services for software development, content creation, commerce, and travel, combining their capabilities into multi-step workflows. These interconnected services form a multi-service ecosystem whose scope continues to expand through service integrations and direct interaction with browser and desktop interfaces (OpenAI, 2025; Anthropic, 2026a). As agents gain access to more services, new capabilities can be combined with existing ones, enabling a broader range of user tasks and increasingly diverse cross-service workflows.

As agents carry out increasingly diverse workflows across new combinations of services, these interactions create new ways to induce behavior that deviates from user intent or bypasses safety guardrails. When agents fulfill benign user requests, the effects of their actions can accumulate and interact across services, leading to unintended or harmful outcomes (Li et al., 2025, 2026). Figure 1(a) illustrates this compositional risk: an agent fulfilling a benign user request can leak information as its actions interact across services. Such failures depend on how information, permissions, and state changes propagate across services. Proactively discovering such failures requires exploring diverse cross-service paths and examining their cumulative effects. As the ecosystem expands, this exploration must also extend to newly possible service combinations beyond previously tested workflows.

(a) Long-horizon tool use is an under-explored failure mode

Figure

(b) Red-teaming agents need broader coverage on every axis

Figure

Figure 1 Compositional harm. (a) A sequence of tool calls can leak a report through a manipulated cross-service dependency. (b) Direct LLM generation and graph-derived recipes explore compositions differently. The coverage and length diagrams are schematic; measurements appear in Section 4.4.

Existing red-teaming methods often search for harmful workflows by prompting LLMs to propose tool-use sequences from task and environment descriptions (Li et al., 2025) or to decompose harmful objectives specified by humans or LLMs into combinations of seemingly benign actions (Kulkarni et al., 2025; Zeng et al., 2026). Although these methods incorporate execution feedback to evaluate and revise candidate workflows, they rely on LLM generation to determine which tools to combine and how to connect them. This reliance on LLMs' prior knowledge introduces a potential source of bias: LLMs are prone to favoring familiar patterns learned during training, which can concentrate exploration on common tool combinations while leaving novel cross-service interactions underexplored. This concern becomes particularly relevant as personal agents gain access to new services whose interactions are poorly represented in training data. Exploring this expanding space therefore calls for a systematic way to identify candidate paths from the capabilities and dependencies of the available tools.

To address this challenge, we propose X-AgentRed, a self-evolving red-teaming framework that discovers potentially harmful scenarios involving multiple services through a graph of tool dependencies and uses execution feedback to expand and refine them. By analyzing each tool's effects, potential harms, and preconditions for execution, the red-teaming agent constructs a directed graph, referred to as the HarmFlow graph, that captures how one tool's effects can satisfy another's execution preconditions. We sample recipes by following these conditions across tools and services, enabling exploration beyond previously observed workflows. Figure 1(b) schematically contrasts LLM-proposed sequences with graph-derived recipes, illustrating how our graph-based exploration can extend coverage across services, tools, harm types, and path lengths.

Each recipe specifies a candidate path and is instantiated as a realistic scenario in which a benign user task can lead to unintended or harmful outcomes. Executing these scenarios against the target agent reveals whether harm occurs and where progress is blocked. Based on this feedback, the red-teaming agent diversifies paths that produce harm by replacing selected tools with adjacent alternatives in the HarmFlow graph while preserving the steps responsible for the harmful outcome. For paths blocked during execution, it refines the preconditions at the blocked step and reconstructs the preceding steps to satisfy them and enable further execution. This process broadens exploration across service combinations while deepening the search around identified vulnerabilities.

We evaluate X-AgentRed across four frontier agentic models in a simulated multi-service ecosystem comprising 30 services and 914 tools. Compared with STAC (Li et al., 2025) and TRACE (Zeng et al., 2026), X-AgentRed achieves 1.77×1.77\times and 10.36×10.36\times the harmful path rate (HPR), respectively, while covering 2.99×2.99\times and 1.84×1.84\times as many distinct tools on average across agents. Its executed workflows contain 2.92×2.92\times and 7.53×7.53\times as many tool calls as STAC and TRACE, respectively, on average across agents, including adaptive follow-up interactions. We further analyze executed-path diversity, cumulative discovery over successive cycles, and the outcomes of feedback-driven diversification and refinement. These analyses assess both the effectiveness of harmful behavior discovery and the breadth of exploration across the ecosystem.

Our contributions are threefold:

• We introduce X-AgentRed, a self-evolving red-teaming framework for discovering potentially harmful cross-service paths in personal-agent ecosystems.

• We develop HarmFlow, a graph of tool dependencies derived from execution preconditions, effects, and potential harms, to guide recipe sampling. Execution feedback diversifies paths that produce harm by replacing selected tools with adjacent alternatives while preserving the steps responsible for harm, and refines blocked paths by refining preconditions and reconstructing preceding steps.

• We evaluate X-AgentRed across four frontier agents in a simulated ecosystem of 30 services and 914 tools, demonstrating higher average HPR and broader tool coverage than two representative baselines. Further analyses characterize generated-path length, executed-path diversity, and cumulative discovery over successive cycles.