CREST-Search: Comprehensive Red-teaming for Evaluating Safety Threats in Large Language Models Powered by Web Search
Haoran Ou, Kangjie Chen, Xingshuo Han, Gelei Deng, Jie Zhang, Han Qiu, Tianwei Zhang
TL;DR
The paper addresses safety risks in large language models augmented with web search, with emphasis on citation and combined risks arising from retrieval of external sources. It introduces CREST-Search, a three-stage red-teaming framework that generates adversarial queries, executes web searches, and iteratively refines prompts to expose vulnerabilities. Key contributions include the WebSearch-Harm dataset for fine-tuning a dedicated red-teaming model and experimental results showing CREST-Search achieving about 80.5% risk detection across four commercial web-search LLMs, primarily via citation risks. The work highlights the need for targeted defenses, such as source filtering and continuous red-teaming, to enable robust and trustworthy deployment of web-enabled LLMs.
Abstract
Large Language Models (LLMs) excel at tasks such as dialogue, summarization, and question answering, yet they struggle to adapt to specialized domains and evolving facts. To overcome this, web search has been integrated into LLMs, allowing real-time access to online content. However, this connection magnifies safety risks, as adversarial prompts combined with untrusted sources can cause severe vulnerabilities. We investigate red teaming for LLMs with web search and present CREST-Search, a framework that systematically exposes risks in such systems. Unlike existing methods for standalone LLMs, CREST-Search addresses the complex workflow of search-enabled models by generating adversarial queries with in-context learning and refining them through iterative feedback. We further construct WebSearch-Harm, a search-specific dataset to fine-tune LLMs into efficient red-teaming agents. Experiments show that CREST-Search effectively bypasses safety filters and reveals vulnerabilities in modern web-augmented LLMs, underscoring the need for specialized defenses to ensure trustworthy deployment.
