Manuscript Offprint

arXiv:2611.03754

The Web Doesn't Sit Still: Adversarial Self-Evolving Attacks on Search Agents

Geyuan Wang, Shunyu Liu, Siyuan Liang, Chenyang Lyu, Dacheng Tao

Abstract

Large Language Models (LLMs) have shown promise for empowering search agents to tackle complex information-seeking tasks. However, since acquiring external information necessitates web search, these agents are highly susceptible to various adversarial attacks (e.g., malicious information injection or stealthy context manipulation). Existing attack strategies inevitably rely on static and human-crafted templates, failing to emulate the dynamic and complex nature of real-world threats. In this paper, we propose an adversarial self-evolution framework that integrates bi-level optimization between the attacker's strategy evolution and the defender's adaptive mitigation, to expose the vulnerabilities of search agents. Specifically, we introduce the Contrastive Rollout Evolutionary Optimization (CREO) method to drive the directional evolution of the attack strategy population via contrastive evolutionary signals. To provide a stable environment for this continuous evolution, we further construct a controlled sandbox and design fine-grained metrics to quantify internal vulnerabilities. Extensive experiments across various multi-hop QA benchmarks and frontier LLMs demonstrate that the proposed framework yields attack efficacy superior to static baselines, underscoring the urgent need to develop more robust defense frameworks.

1 Introduction

The paradigm of Large Language Models (LLMs) is rapidly shifting from static knowledge bases toward highly autonomous search agents [1–4]. By deeply integrating web search and tool invocation, these agents can perform complex multi-hop reasoning in real-world scenarios [5–11]. However, this deep reliance on web search also exposes these agents to RAG poisoning [12–15], a targeted attack that corrupts external knowledge retrieval via malicious information injection. To evaluate this vulnerability, testing environments have continuously evolved. Early multi-hop QA benchmarks [16–18] primarily relied on highly structured and homogeneous corpora. In contrast, recent evaluations [19–21] introduce cross-domain noise and complex tool invocations. However, an inherent limitation of these advanced evaluation environments is their static threat landscape. By relying on manually predefined and rigidly injected noise, they struggle to emulate the dynamic evolution of real-world adversarial information. Consequently, static testing alone is insufficient to reveal these underlying vulnerabilities, making it necessary to examine advanced attack paradigms [22, 23].

However, existing attack paradigms suffer from fundamental structural flaws across two dimensions: First, strategy generation is severely bounded by human bias, as current mainstream attack methods [12–14] rely heavily on static, heuristic-based generation rules. Such rigid templates not only constrain the exploration of the adversarial search space but also yield attacks with poor stealthiness. For instance, existing techniques often require injecting multiple malicious documents [12, 24]

*Corresponding author.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

to maintain attack efficacy. This conspicuous pattern is easily filtered by an agent's multi-step verification process, preventing deep adversarial penetration. Second, attack execution remains fundamentally feedback-agnostic. Existing paradigms [12–14] deploy predefined attack logics that are entirely blind to the agent's countermeasures. This blindness ignores the continuous adaptation of real-world threats. Furthermore, without a feedback mechanism, these static approaches quickly become obsolete against upgraded defenses [25, 26]. They therefore fail to probe the agent's dynamic defensive boundaries.

To overcome these bottlenecks, we propose framing the security evaluation of search agents as a process of adversarial self-evolution, formalized as a bi-level optimization problem. The inner loop models the defender's adaptive mitigation against the current attack pool, while the outer loop drives the attacker's continuous strategy evolution. To efficiently solve the outer optimization, we introduce the Contrastive Rollout Evolutionary Optimization (CREO) method as the core solver. CREO completely eliminates the reliance on human-crafted templates. Operating as a derivative-free evolutionary optimization solver within the discrete natural language space, CREO leverages contrastive evolutionary signals to drive the directional mutation, crossover, and selection of the attack strategy population. By continuously evolving the attack strategy pool, it exposes the vulnerabilities of search agents under dynamic attacks. To ensure rigorous experimental control and internal validity, we constructed a terabyte-scale controlled sandbox, enabling the noise-free capture of reasoning pathways within a realistic, high-noise environment. Finally, we introduce fine-grained cognitive metrics. Utilizing adversarial success rate and adversarial paralysis rate, they precisely quantify the depth to which the agent falls into "logic hijacking" and "denial of service" when facing adversarial induction. In summary, our main contributions are as follows:

  • We propose the first adversarial self-evolution framework for search agents, formalizing the adversarial interaction as a bi-level optimization problem. At its core, the CREO method employs contrastive evolutionary signals to drive the autonomous, directional mutation and selection of the attack strategy population. This mechanism breaks free from the reliance on human-crafted heuristics, enabling the continuous self-evolution of adversarial strategies.

  • We construct a controlled and rigorous evaluation system. A controlled sandbox is deployed to provide a stable, noise-free environment for the continuous evolution of attack strategies. Furthermore, we introduce fine-grained cognitive metrics that overcome traditional outcome-oriented limitations, precisely quantifying the internal vulnerabilities of reasoning agents.

  • Extensive experiments on diverse benchmarks and frontier LLMs demonstrate that our framework consistently outperforms existing static baselines. Notably, it achieves superior attack efficacy across various state-of-the-art LLMs, successfully exposing the deep vulnerabilities of search agents under dynamic and adaptive attacks.

References (67)