Unsafe LLM-Based Search: Quantitative Analysis and Mitigation of Safety Risks in AI Web Search
Not on the map. Why?
Abstract (arXiv)
Recent advancements in Large Language Models (LLMs) have significantly enhanced the capabilities of AI-Powered Search Engines (AIPSEs), offering precise and efficient responses by integrating external databases with pre-existing knowledge. However, we observe that these AIPSEs raise risks such as quoting malicious content or citing malicious websites, leading to harmful or unverified information dissemination. In this study, we conduct the first safety risk quantification on seven production AIPSEs by systematically defining the threat model, risk type, and evaluating responses to various query types. With data collected from PhishTank, ThreatBook, and LevelBlue, our findings reveal that AIPSEs frequently generate harmful content that contains malicious URLs even with benign queries (e.g., with benign keywords). We also observe that directly querying a URL will increase the number of main risk-inclusive responses, while querying with natural language will slightly mitigate such risk. Compared to traditional search engines, AIPSEs outperform in both utility and safety. We further perform two case studies on online document spoofing and phishing to show the ease of deceiving AIPSEs in the real-world setting. To mitigate these risks, we develop an agent-based defense with a GPT-4.1-based content refinement tool and a URL detector. Our evaluation shows that our defense can effectively reduce the risk, with only a minor cost of reducing available information by approximately 10.7%. Our research highlights the urgent need for robust safety measures in AIPSEs.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 25 of its 68 references that are in the map. First posted on arXiv 7 Feb 2025.
Builds on
25 of 68 references.
References · 25
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
13 more
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Surveycited by 230
- 2024Automatic and Universal Prompt Injection Attacks against Large Language Modelscited by 119
- 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Modelscited by 106
- 2024TrojanRAG: Retrieval-Augmented Generation Can Be Backdoor Driver in Large Language Modelscited by 67
- 2024"Glue pizza and eat rocks" -- Exploiting Vulnerabilities in Retrieval-Augmented Generative Modelscited by 60
- 2024Adversarial Search Engine Optimization for Large Language Modelscited by 40
- 2023Comparing Traditional and LLM-based Search for Consumer Choice: A Randomized Experimentcited by 36
- 2018URLNet: Learning a URL Representation with Deep Learning for Malicious URL Detectioncited by 34
- 2024PEFTGuard: Detecting Backdoor Attacks Against Parameter-Efficient Fine-Tuningcited by 26
- 2024Quantized Delta Weight Is Safety Keepercited by 12
- 2024CL-Attack: Textual Backdoor Attacks via Cross-Lingual Triggerscited by 8
- 2024Investigating LLM Applications in E-Commercecited by 7
Built on by
Citing papers per year: 2025: 7; 2026: 9.
16 papers.
Sort:
By area:
- 2025Open Deep Search: Democratizing Search with Open-source Reasoning Agentscited by 49
- 2025Deep Research with Open-Domain Evaluation and Multi-Stage Guardrails for Safetycited by 7
- 2025Source Coverage and Citation Bias in LLM-based vs. Traditional Search Enginescited by 6
- 2025SafeSearch: Automated Red-Teaming of LLM-Based Search Agentscited by 4
- 2026EcoGEO: Trajectory-Aware Evidence Ecosystems for Web-Enabled LLM Search Agentscited by 3
- 2026FAVA: Formal Authorization for Verified Agents with Evidence-Backed Permission Graphscited by 3
- 2025DP-GTR: Differentially Private Prompt Protection via Group Text Rewritingcited by 2
- 2026Lingua-SafetyBench: A Benchmark for Safety Evaluation of Multilingual Vision-Language Modelscited by 2
- 2026"What Did It Actually Do?": Understanding Risk Awareness and Traceability for Computer-Use Agentscited by 2
- 2026What Your Posts Reveal: A Benchmark and Agentic Framework for User-Level Privacy Leakage on Social Mediacited by 2
- 2025When Search Goes Wrong: Red-Teaming Web-Augmented Large Language Modelscited by 1
- 2025TxSum: User-Centered Ethereum Transaction Understanding with Micro-Level Semantic Groundingcited by 1
4 more
- 2026PIIGuard: Mitigating PII Harvesting under Adversarial Sanitizationcited by 0
- 2026Breadcrumbing Search Agentscited by 0
- 2026Counter-GEO-Bench: Evaluating Defenses Against Information-Distorting Generative Engine Optimizationcited by 0
- 2026Separating Prompt Harmfulness from Interaction Safety via Partial Generationcited by 0
- 2026Separating Prompt Harmfulness from Interaction Safety via Partial Generation12 Oct 2026
- 2026Counter-GEO-Bench: Evaluating Defenses Against Information-Distorting Generative Engine Optimization2 Sep 2026
- 2026Breadcrumbing Search Agents5 Aug 2026
- 2026FAVA: Formal Authorization for Verified Agents with Evidence-Backed Permission Graphs29 Jul 2026
- 2026What Your Posts Reveal: A Benchmark and Agentic Framework for User-Level Privacy Leakage on Social Media5 Jun 2026
- 2026EcoGEO: Trajectory-Aware Evidence Ecosystems for Web-Enabled LLM Search Agents13 May 2026
- 2026PIIGuard: Mitigating PII Harvesting under Adversarial Sanitization4 May 2026
- 2026"What Did It Actually Do?": Understanding Risk Awareness and Traceability for Computer-Use Agents30 Mar 2026
- 2026Lingua-SafetyBench: A Benchmark for Safety Evaluation of Multilingual Vision-Language Models30 Jan 2026
- 2025Source Coverage and Citation Bias in LLM-based vs. Traditional Search Engines10 Dec 2025
- 2025TxSum: User-Centered Ethereum Transaction Understanding with Micro-Level Semantic Grounding7 Dec 2025
- 2025Deep Research with Open-Domain Evaluation and Multi-Stage Guardrails for Safety13 Oct 2025
4 more
- 2025When Search Goes Wrong: Red-Teaming Web-Augmented Large Language Models9 Oct 2025
- 2025SafeSearch: Automated Red-Teaming of LLM-Based Search Agents28 Sep 2025
- 2025Open Deep Search: Democratizing Search with Open-source Reasoning Agents26 Mar 2025
- 2025DP-GTR: Differentially Private Prompt Protection via Group Text Rewriting6 Mar 2025
- 2025SafeSearch: Automated Red-Teaming of LLM-Based Search Agentscited by 4
- 2026EcoGEO: Trajectory-Aware Evidence Ecosystems for Web-Enabled LLM Search Agentscited by 3
- 2026"What Did It Actually Do?": Understanding Risk Awareness and Traceability for Computer-Use Agentscited by 2
- 2026Breadcrumbing Search Agentscited by 0
- 2026Breadcrumbing Search Agents5 Aug 2026
- 2026EcoGEO: Trajectory-Aware Evidence Ecosystems for Web-Enabled LLM Search Agents13 May 2026
- 2026"What Did It Actually Do?": Understanding Risk Awareness and Traceability for Computer-Use Agents30 Mar 2026
- 2025SafeSearch: Automated Red-Teaming of LLM-Based Search Agents28 Sep 2025
- 2025Source Coverage and Citation Bias in LLM-based vs. Traditional Search Enginescited by 6
- 2025DP-GTR: Differentially Private Prompt Protection via Group Text Rewritingcited by 2
- 2026What Your Posts Reveal: A Benchmark and Agentic Framework for User-Level Privacy Leakage on Social Mediacited by 2
- 2025TxSum: User-Centered Ethereum Transaction Understanding with Micro-Level Semantic Groundingcited by 1
- 2026PIIGuard: Mitigating PII Harvesting under Adversarial Sanitizationcited by 0
- 2026Counter-GEO-Bench: Evaluating Defenses Against Information-Distorting Generative Engine Optimizationcited by 0
- 2026Counter-GEO-Bench: Evaluating Defenses Against Information-Distorting Generative Engine Optimization2 Sep 2026
- 2026What Your Posts Reveal: A Benchmark and Agentic Framework for User-Level Privacy Leakage on Social Media5 Jun 2026
- 2026PIIGuard: Mitigating PII Harvesting under Adversarial Sanitization4 May 2026
- 2025Source Coverage and Citation Bias in LLM-based vs. Traditional Search Engines10 Dec 2025
- 2025TxSum: User-Centered Ethereum Transaction Understanding with Micro-Level Semantic Grounding7 Dec 2025
- 2025DP-GTR: Differentially Private Prompt Protection via Group Text Rewriting6 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2026SearchAttack: Red-Teaming LLMs against Knowledge-to-Action Threats under Online Web Search
- 2025Exploiting Instruction-Following Retrievers for Malicious Information Retrieval
- 2026RAG-Safety-Bench: Reliable Evaluation of Retrieval-Augmented LLM Safety
- 2024Risk and Response in Large Language Models: Evaluating Key Threat Categories
- 2025Analysing Safety Risks in LLMs Fine-Tuned with Pseudo-Malicious Cyber Security Data
- 2024When LLMs Go Online: The Emerging Threat of Web-Enabled LLMs
- 2025Evaluating the efficacy of LLM Safety Solutions : The Palit Benchmark Dataset
- 2024AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Experts