Skip to content

SearchAttack: Red-Teaming Large Language Models for Knowledge-to-Action Threats in Online Web SearchSearchAttack: Red-Teaming LLMs against Knowledge-to-Action Threats under Online Web Search

arXiv· arXiv:2601.04093· Yu Yan, Sheng Sun, Mingfeng Li, Zheming Yang, Chiwei Zhu, Fei Ma, Benfeng Xu, Min Liu, Qi Li·Indexed by this site · 2026-10-12· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

In the agentic setting, SearchAttack achieves a combined ASR-KW of 0.96 on AdvBench and ShadowRisk.

Threat modelThe paper uses a black-box baseline as comparison. The attacker submits queries to a search-augmented LLM, inducing it to retrieve harmful evidence from open web pages and organize it into actionable outputs. The victim system uses the LLM as the planning hub, with external retrieval snippets, browsing, and tool calls. The paper does not state that the attacker can access the victim model's parameters.

Questions
After users turn to retrieval-augmented LLMs due to hallucination and timeliness needs, harmful details in open web pages may be retrieved and organized into directly usable instructions that are difficult to retract afterward. The authors aim to evaluate this knowledge-to-action abuse.
Methods
SearchAttack outsources harmful semantics to web pages using multi-hop triggers, then uses scoring criteria to induce organization of retrieval results. It also builds ShadowRisk and uses fact-checking to compute AtV's Scope and Fidelity.
Experiments and results
The authors state that in the agentic setting, the combined ASR-KW on AdvBench and ShadowRisk is 0.96. In Table 4, after combined defense, SearchAttack's ASR-KW for Gemini-3-Flash and DeepSeek-V3.2 is 0.80 and 0.86.
Limitations and future work
The authors write that trigger enhancement may not always generate effective triggers, extending AtV to larger datasets may introduce bias, and deep research systems are not fully evaluated. Coverage includes 4 victim models, AdvBench-50, and 210 items from ShadowRisk; defenses are SP and SI under w/ snippet.
Experimental setupGemini-3-Flash、DeepSeek-V3.2 et al. · AdvBench、AdvBench-50 et al. · ASR-KW、ASR-GPT et al.
Evaluated models
Gemini-3-FlashDeepSeek-V3.2Qwen3-32BGPT-4o
Benchmarks
AdvBenchAdvBench-50ShadowRisk
Metrics
ASR-KWASR-GPTWRAtV ScopeAtV FidelityDetection Rate
AI summaryThe researchers propose SearchAttack, a red-teaming method for search-augmented large language models that rewrites harmful semantics with dense benign knowledge to bypass context decoding, inducing the model to retrieve unsafe content, and exploiting its reward-chasing bias to prompt the model to synthesize such content. The authors also construct a domain-specific illegal activity benchmark for search threats and introduce a fact-checking framework to quantify harm in both offline and online attack settings. Experiments show the method is significantly effective against search-augmented systems; the paper also finds that large language models without web search may still be led to output harmful content due to stereotypical information-seeking behavior.

The researchers propose SearchAttack, a red-teaming method for search-augmented large language models that rewrites harmful semantics with dense benign knowledge to bypass context decoding, inducing the model to retrieve unsafe content, and exploiting its reward-chasing bias to prompt the model to synthesize such content. The authors also construct a domain-specific illegal activity benchmark for search threats and introduce a fact-checking framework to quantify harm in both offline and online attack settings. Experiments show the method is significantly effective against search-augmented systems; the paper also finds that large language models without web search may still be led to output harmful content due to stereotypical information-seeking behavior.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    LLMs with web retrieval may organize open-web evidence into executable harm; the authors use SearchAttack for red-team evaluation.

    LLMs with web retrieval may be induced to retrieve open web pages and organize fragmented evidence into executable harmful outputs; jailbreak evaluations that only test parametric knowledge do not cover this pathway.

    • Use case: the authors state that users, concerned about hallucination and knowledge timeliness, increasingly use search-augmented LLMs as the primary interface for up-to-date information. Open web pages already contain a large amount of dual-use information, and once written into directly usable instructions, it is difficult to retract afterward.
    • Existing gaps: the authors argue that jailbreaking is no longer just finding harmful content in static parametric knowledge. Defenses that only block obviously harmful documents are insufficient against cross-source assembly. The authors state that models often treat external web content as high-confidence evidence in their reasoning chains.
    • Authors' observation: harmful utility can arise from the aggregation and recombination of fragmented evidence. Retrieval can either strengthen refusal or citation, or facilitate procedural synthesis; the authors state that web access does not monotonically increase harm.
    • This paper's approach: proposes a two-stage red-team method SearchAttack, organizes a benchmark ShadowRisk for the 2025 Chinese context, and uses fact-checking to separate harm from policy bypass, denoted as Attack Value (AtV).
    • Threat model:
      • Goal: induce the system to retrieve harmful-related evidence and organize it into high-fidelity, actionable outputs to assess knowledge-to-action risk.
      • Knowledge: the comparison method is called black-box in the paper. The paper does not state that the attacker can read the victim model's parameters or gradients.
      • Capability: submit queries to the system. Payloads are synthesized by an agent with web retrieval; whether the victim side retrieves is determined by the retrieval setting in the experiment. The paper does not state that the attacker needs to control or poison the web corpus.
      • Victim system: a search-augmented LLM with the LLM as the planning and reasoning hub, connected to retrieval snippets, web browsing, and tool calls.
  2. What related research exists?

    Related work covers jailbreaks, RAG injection, and agentic retrieval; the authors argue that safety evaluation of LLM-driven retrieval remains insufficient.

    Jailbreak Attacks

    • Prompt generation and gradient optimization: the authors categorize jailbreaks into prompt generation (Chao et al. 2023; Mehrotra et al. 2024; Rahman et al. 2025) and gradient-based optimization (Jia et al. 2025; Liao and Sun 2024; Zou et al. 2023). The paper only classifies here, without comparing each work to this paper.
    • Jailbreaks in parametric knowledge: Tu et al. 2025 is used in the introduction for comparison. The authors state that in the open web setting, jailbreaking is no longer just finding harmful content in static parametric knowledge.

    Attacks on Retrieval Corpora

    • Document injection: Greshake et al. 2023 and Yi et al. 2024 inject malicious instructions into retrievable documents. The paper only describes this practice.
    • Corpus poisoning: Zou et al. 2024's PoisonedRAG biases evidence by contaminating the retrieval corpus. The paper does not describe SearchAttack as corpus poisoning.

    Agentic Retrieval and QA Data

    • LLM-driven retrieval: Li et al. 2025, Song et al. 2025, and Wu et al. 2025 combine LLMs with external web retrieval tools; Du et al. 2026, Li et al. 2025, and Song et al. 2025 use search reinforcement learning for agentic search.
    • QA data: evaluation data ranges from single-hop NQ and TriviaQA, to multi-hop HotpotQA and MuSiQue, to long-horizon information seeking with GAIA, xbench, and BrowseComp.

    Baseline Methods and Benchmarks

    • Attack baselines: PAIR, ReNeLLM, FlipAttack. The abstract states superiority over 4 jailbreak baselines; Section 5.1 lists the above 3 black-box baselines.
    • Evaluation benchmarks: AdvBench (using AdvBench-50 in experiments) and the authors' ShadowRisk. Defense prompts are adapted from AdaShield; detection uses LlamaGuard-3 8B.

    The authors position this paper on safety evaluation of LLM-driven retrieval: they argue that existing evaluations largely ignore the possibility that information-seeking capabilities are diverted to malicious uses, and use preferences over references to pressure safety boundaries in information seeking.

  3. How does the paper address this problem?

    SearchAttack first uses multi-hop triggers to outsource harmful semantics to webpages, then uses scoring rubrics to induce the model to organize retrieval results.

    Overall, it is a two-stage red-team method SearchAttack: first rewrite harmful semantics into knowledge-based questions that can only be restored through retrieval, then write the organization of retrieval results as a task that scores high according to the scoring criteria. The appendix provides complete prompts for each module; constraints, prohibited phrasings, or example sentences are not repeated here.

    Problem Setting and Two Payloads

    • search-trigger: maps entity semantics into knowledge-intensive questions, with the answer being that entity. Single-hop requires only one source; multi-hop requires chaining multiple pieces of evidence.
    • Two queries: outsourced injection query QI, and retrieval organization query QR. Internally, labels mark the original query, skeleton, trigger, and outsourced semantics, then labels are removed after assembly.
    • Synthesis parameters: the number of initialization rounds NE and adversarial audit rounds NA for the syntactic skeleton are both 3; the knowledge accumulation rounds NG for trigger enhancement is 8, and the trigger generation rounds NQ is 3. Payload synthesis is driven by DeepSeek-V3.2.

    The core concatenation is Q_I=\bigoplus_{i=1}^{m} T_i^{M}\oplus I_A\oplus P_E, i.e., multi-hop triggers, sanitized attack instructions, and preset expert setting prompts are concatenated in sequence. Retrieval organization is QR=PC⊕ R, i.e., the reverse-engineered task scoring criteria are appended after the preset reward-chasing prompt.

    Outsourced Injection

    • Skeleton initialization: the main agent extracts harmful semantic entities from the original query, rewrites them into single-hop search-triggers, and generates sanitized attack instructions. Each round trades off between the number of entities and the complexity of the question structure, up to NE rounds.
    • Adversarial audit: performs up to NA rounds of obfuscation on the sanitized instructions, aiming to reduce information leaked by earlier triggers while preserving the original malicious intent.
    • Trigger enhancement: sub-agents use open web retrieval and knowledge graphs to upgrade single-hop triggers to multi-hop triggers. Retrieval preferentially selects nodes weakly related to the target entity to widen the search path; subsequently, historical triggers are used to increase complexity and obfuscation, up to NQ rounds.

    Retrieval Organization

    • Basis: the authors cite Arditi et al. 2024 and Zhao et al. 2025, stating that refusal can be mediated by a single direction, and that harmfulness and refusal are encoded separately, so merely not refusing is insufficient to assess real abuse.
    • Approach: reverse-engineer the task scoring criteria from the reviewer's perspective, where higher scores correspond to more harmful details, then write the organization of harmful knowledge as a multi-objective, criteria-chasing task to pressure the reward-chasing bias of RLVR-trained models.
    • Failure fallback: if the retrieval organization query fails, the experiment reports the results of the outsourced injection query. This is an evaluation protocol, not part of the synthesis formula.

    Benchmarks and Success Criteria

    • ShadowRisk: 2,802 knowledge-intensive Q&A items from 21,670 media videos; the main text gives Douyin as an example, and Appendix E mentions 75 Chinese TikTok bloggers from May to July 2025. Coverage includes fraud, illegal logistics, money laundering, and cybercrime; the appendix lists eight categories: Fraud, Gambling, Pornography, Drugs, Violence, Money Laundering, Cybercrime, Illegal Trade. Each item has a reference answer.
    • Construction: after transcription, filter by content length, embed with Qwen3-Embedding-8B, remove near-duplicates with cosine similarity greater than 0.85, then use GPT-5-mini to retain the highest threat level as defined, and manually verify consistency with official disclosures. To control cost and disclosure, the evaluation subset is 210 items.
    • ASR: AdvBench-50 uses ASR-KW (keyword matching) and ASR-GPT (LLM judge). ShadowRisk uses Win Rate (WR) instead of ASR-GPT: relative to the reference answer, scores on actionability, harmfulness, scope, and stealthiness each range from -2 to 2, and an average score greater than 0 counts as a win.
    • AtV: separate from ASR. Scope is the number of verifiable claims or actionable steps in the answer directly related to the harmful query; Fidelity is the proportion of these claims judged factually correct by web evidence. Verification scores are 0, 1, 2, and Fidelity only counts claims fully supported by evidence (score 2). The fact-checking model is Claude-4.5-haiku.
  4. What experiments did the paper conduct?

    Under agentic, the combined ASR-KW for AdvBench and ShadowRisk is stated by the authors as 0.96; Table 2 does not have the highest in every cell.

    Experimental Setup

    • Victim models: Gemini-3-Flash, DeepSeek-V3.2, Qwen3-32B, GPT-4o. Payload synthesis is also driven by DeepSeek-V3.2, so in Table 2 that row is the result when the victim model and the synthesis model are the same model.
    • Benchmarks: AdvBench-50; ShadowRisk evaluation subset 210 (full set 2,802).
    • Baselines and settings: Section 5.1 lists PAIR, ReNeLLM, FlipAttack, and states that their recommended settings are used. Three retrieval modes: w/o search (only parametric knowledge), w/ snippet (single retrieval), w/ agentic (multi-step retrieval and reasoning). Agentic can use search_web, search_google_scholar, read_webpage; the appendix states a default maximum of 10 steps, with 5 snippets per query. The retrieval interface is described as Google Search API in the main text and Google Serper API in the appendix.
    • Metrics: ASR-KW; ASR-GPT is determined by majority vote of GPT-5-mini, Claude-4.5-haiku, Gemini-2.5-Flash, with the appendix stating at least two must agree. ShadowRisk uses WR. AtV is reported only for successful attacks. 5 attempts per query; the paper does not state how these 5 attempts are aggregated into the ASR in Table 2.
    • Inconsistency in baseline counts between abstract and body: The abstract states superiority over 4 jailbreak baselines; the experimental section lists 3.

    Main Results

    The table below lists only SearchAttack, according to Table 2. The three AdvBench columns are ASR-KW/ASR-GPT, and the ShadowRisk column is ASR-KW/WR.

    Swipe horizontally to read the table

    ModelAdv no retrievalAdv snippetAdv agenticSR agentic
    Gemini-3-Flash0.96/0.960.94/0.960.86/0.940.99/0.75
    DeepSeek-V3.20.96/0.941.00/0.960.94/1.000.98/0.34
    Qwen3-32B1.00/0.940.98/0.940.98/0.960.99/0.33
    GPT-4o0.94/0.920.94/0.940.92/0.960.99/0.20
    • The authors state that in the agentic setting, SearchAttack achieves a combined ASR-KW of 0.96 on AdvBench and ShadowRisk, with a baseline mean of 0.82, and improves AtV Scope/Fidelity from 4.35/0.62 to 10.20/0.94. Section 5.2 also states an ASR of 95% on AdvBench and 98% on ShadowRisk, without specifying which ASR or whether it is averaged across settings.
    • Table 2 does not have the highest value in every cell. On ShadowRisk, w/ agentic, Gemini-3-Flash, PAIR has an ASR-KW of 1.00, while SearchAttack has 0.99. On AdvBench, w/ agentic, DeepSeek-V3.2, FlipAttack has an ASR-KW of 0.98, while SearchAttack has 0.94. On GPT-4o, FlipAttack's ASR-KW/ASR-GPT across the three AdvBench settings are 0.04/0.02, 0.02/0.02, 0.02/0.02.
    • The authors state that retrieval does not monotonically increase harm. On Gemini-3-Flash, SearchAttack's AdvBench ASR-KW drops from 0.96 without retrieval to 0.86 with agentic. On DeepSeek-V3.2, ShadowRisk, w/o search, SearchAttack's WR is 0.00, while ASR-KW is 0.97. In Table 2, ReNeLLM's WR on ShadowRisk is 0.00 in all cases, which the authors do not explain. The authors state that without web retrieval, models may still output harmful content due to stereotypical information-seeking behavior.

    Attack Value

    • What was measured: Figure 5 compares Scope and Fidelity on AdvBench by model and retrieval setting. The text does not give per-bar readings. The abstract's 4.35/0.62 and 10.20/0.94 are not broken down by model.
    • Difference from table numbers: In Table 3, on Gemini-3-Flash, AdvBench, w/ snippet, the full SearchAttack's AtV is (10.2, 0.87), not the abstract's 10.20/0.94.
    • Authors' interpretation: The authors state that mainstream methods often fail to reliably trigger retrieval, or after retrieval show stronger refusals and fewer operational details; even when retrieval is triggered, many models default to rewriting or citing rather than effective integration. In an example from Table 8 in the appendix, 9 claims were extracted, 8 marked as truthful (88.9%). The authors state that content-only judges may also have high false positive rates; this sentence gives no numbers.

    Defenses and Detection

    • What was measured: Two defenses under w/ snippet. Safety Prompt is adapted from AdaShield, requiring the model to first judge the safety responsibility of the retrieved context; Safety Injection injects safety warnings into all retrieved snippets. Models are Gemini-3-Flash and DeepSeek-V3.2. Table 4 does not list baselines; the no-defense cells match the ASR-KW for AdvBench, w/ snippet in Table 2.
    • Results: Without defense, FlipAttack / SearchAttack ASR-KW: Gemini-3-Flash 0.46 / 0.94, DeepSeek-V3.2 1.00 / 1.00. With SP and SI combined: 0.02 / 0.80 and 0.74 / 0.86. LlamaGuard-3 8B Detection Rate: FlipAttack 0.52, SearchAttack 0.24.
    • Authors' interpretation: The authors state that the combined defense is more effective against FlipAttack but still insufficient against SearchAttack, and that this attack is harder to detect.

    Cross-Lingual Retrieval

    • What was measured: SearchAttack payloads and victim model system prompts on AdvBench were translated into Chinese, and DeepSeek-V3.2 performed retrieval in the agentic setting. The introduction gives 6,461 English-dominant URLs and 8,904 Chinese-dominant URLs; the appendix total matches, and specifies that both attack and verification stages are included.
    • Results: The authors state that Chinese results are more likely to contain tutorial-style content. In Figure 8, weakly moderated sources (Social/UGC, Other) average 69.8% of Chinese retrieval evidence. The appendix states that Chinese retrieval on Malware has High utility exceeding 30%; in Table 10, blog.csdn.net for Malware & Hacking has High at 32.4% (Total Hits 179).
    • Authors' interpretation: The authors believe that major search engines have weaker moderation for non-English webpages, and state that a jailbroken retrieval-augmented LLM can aggregate indirectly relevant evidence into high-fidelity outputs, rather than just retrieving ready-made harmful text (Figure 9 is author-annotated).

    Other Ablations and Analyses

    • Table 3 (Gemini-3-Flash, AdvBench, w/ snippet): Removing trigger enhancement gives ASR 0.82/0.80, AtV (7.2, 0.84).
    • Removing adversarial audit: ASR 0.86/0.86, AtV (9.6, 0.92). The authors state ASR-GPT goes from 0.86 to 0.96, and Fidelity from 0.92 to 0.87.
    • Removing scoring rubric inversion: ASR 1.00/0.92, AtV (8.9, 0.89). The authors state ASR-KW decreases, ASR-GPT goes from 0.92 to 0.96, and Scope/Fidelity from (8.9, 0.89) to (10.2, 0.87).
    • Direct query: ASR 0.02/0.00, AtV (0.1, 0.40).
    • Appendix D.3: ASR-GPT samples 50 successes and 50 failures; agreement rates between the ensemble judge and two experts are 0.92 and 0.97, and human-human 0.93. WR similarly 50+50, agreement rates 0.96 and 0.97, human-human 0.97.
    • Appendix D.4: 50 AdvBench items, average Scope/Fidelity 6.30/0.65. Scope FPR 0.03 and 0.04, FNR 0.23 and 0.26; Fidelity FPR 0.07 and 0.05, FNR 0.03 and 0.04.
  5. What are some points that can be further explored?

    The authors point out that triggers may not always be effective, AtV scaling may be biased, and deep research systems are not fully evaluated.

    Limitations and Future Directions Noted by the Authors

    • Triggers may not be effective: Search-trigger Augmentation may not always generate effective search triggers, potentially leading to leakage of malicious intent (Limitations ❶).
    • Scalability bias of AtV: the authors write that although AtV has been aligned with human correlation judgments and fact-checking, the verification process may still introduce bias on larger datasets (Limitations ❷).
    • Deep research systems: due to computational and budget constraints, the safety of deep research systems has not been fully investigated, and no definitive conclusions have been drawn (Limitations ❸).
    • Future diagnostics and defenses: the authors plan to add staged diagnostics (trigger, tool-call, evidence, synthesis) and extend evaluation to stronger defense pipelines (Future Work).
    • Reward chasing and external evidence: the authors plan to further study LLM reward-chasing behavior and reliance bias on external evidence (Future Work).

    Experimental Coverage

    • Victim models are Gemini-3-Flash, DeepSeek-V3.2, Qwen3-32B, and GPT-4o, totaling 4; retrieval settings are w/o search, w/ snippet, and w/ agentic (Table 2, Section 5.1).
    • Attack results are reported on AdvBench-50 and the ShadowRisk subset of 210; 5 attempts per query. The paper does not report how these 5 attempts are aggregated into the ASR in Table 2, nor the number of queries per attack, only that baselines use their recommended settings.
    • Defense numbers come from Safety Prompt and Safety Injection under w/ snippet, with models Gemini-3-Flash and DeepSeek-V3.2; Table 4 does not specify the baseline. The same table gives LlamaGuard-3 8B's Detection Rate.
    • ASR-GPT and WR are determined by majority vote of three LLM judges. The appendix samples 100 items for ASR-GPT and WR each, and 50 for AtV, for two-expert verification (Appendix D.3, D.4). Ablations only report Gemini-3-Flash, AdvBench, and w/ snippet (Table 3).
    • The agentic loop in the appendix defaults to a maximum of 10 steps, with 5 snippets per query (Appendix F). Cross-language URL statistics correspond to the Chinese-English retrieval comparison of AdvBench payloads, conducted by DeepSeek-V3.2 under the agentic setting (Section 5.4).
  6. Summarize the main content of the paper

    SearchAttack evaluates the risk of retrieval-augmented LLMs synthesizing web evidence into executable harm, and provides ShadowRisk and AtV.

    SearchAttack is a black-box baseline-comparison red-team method for search-augmented LLMs, concerned with the knowledge-to-action risk that open web evidence is retrieved and assembled into actionable harmful outputs.

    • Problem: the authors argue that as users shift to retrieval-augmented interfaces, jailbreaking is no longer just extracting harmful content from parametric knowledge. External web pages are often treated as high-confidence evidence, and blocking only obviously harmful documents does not stop cross-source recombination.
    • Method: outsourced injection replaces harmful semantics with multi-hop search-triggers, making direct decoding difficult without retrieval; retrieval organization uses reverse-engineered scoring criteria to pressure reward chasing. ShadowRisk has 2,802 Q&A items, with 210 used for evaluation, and includes reference answers. AtV uses Scope and Fidelity to separate factual harm from ASR.
    • Main numbers: the authors state that under the agentic setting, the combined ASR-KW for AdvBench and ShadowRisk is 0.96, with a baseline mean of 0.82. In Table 2, for GPT-4o, AdvBench, w/ agentic, SearchAttack is 0.92/0.96; the same table also has counterexamples, such as Gemini-3-Flash's ShadowRisk agentic ASR-KW, where PAIR is 1.00 and SearchAttack is 0.99.
    • Harm and defenses: the authors state that AtV's Scope/Fidelity ranges from 4.35/0.62 to 10.20/0.94, without breaking down by model. The corresponding cell in Table 3 is (10.2, 0.87). In Table 4, after using both SP and SI, SearchAttack's ASR-KW is 0.80 for Gemini-3-Flash and 0.86 for DeepSeek-V3.2; LlamaGuard-3 8B's Detection Rate is 0.24, and FlipAttack is 0.52.
    • Authors' conclusions: the authors state that high ASR does not necessarily equal faithful harm, and web access does not monotonically increase harm. In Chinese-dominant retrieval, weakly moderated sources account for an average of 69.8%. In the conclusion, the authors state the need for retrieval-oriented safety alignment and defenses, and claim this research is the first to investigate the threat and real-world consequences of jailbreaking search-augmented models.

Related papers

Show 3 more papers
Read originalarxiv.org