mlsanityData to 14 Oct 2026

Unsafe LLM-Based Search: Quantitative Analysis and Mitigation of Safety Risks in AI Web Search

arXiv 2502.04951 ↗First posted 7 Feb 2025cs.CR cs.AI cs.LGcited by 16

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  5. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  6. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  7. 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
  8. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  9. 2022Survey of Hallucination in Natural Language Generationcited by 2,075
  10. 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
  11. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
  12. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
13 more
  1. 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
  2. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Surveycited by 230
  3. 2024Automatic and Universal Prompt Injection Attacks against Large Language Modelscited by 119
  4. 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Modelscited by 106
  5. 2024TrojanRAG: Retrieval-Augmented Generation Can Be Backdoor Driver in Large Language Modelscited by 67
  6. 2024"Glue pizza and eat rocks" -- Exploiting Vulnerabilities in Retrieval-Augmented Generative Modelscited by 60
  7. 2024Adversarial Search Engine Optimization for Large Language Modelscited by 40
  8. 2023Comparing Traditional and LLM-based Search for Consumer Choice: A Randomized Experimentcited by 36
  9. 2018URLNet: Learning a URL Representation with Deep Learning for Malicious URL Detectioncited by 34
  10. 2024PEFTGuard: Detecting Backdoor Attacks Against Parameter-Efficient Fine-Tuningcited by 26
  11. 2024Quantized Delta Weight Is Safety Keepercited by 12
  12. 2024CL-Attack: Textual Backdoor Attacks via Cross-Lingual Triggerscited by 8
  13. 2024Investigating LLM Applications in E-Commercecited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 7; 2026: 9.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026SearchAttack: Red-Teaming LLMs against Knowledge-to-Action Threats under Online Web Search
  2. 2025Exploiting Instruction-Following Retrievers for Malicious Information Retrieval
  3. 2026RAG-Safety-Bench: Reliable Evaluation of Retrieval-Augmented LLM Safety
  4. 2024Risk and Response in Large Language Models: Evaluating Key Threat Categories
  5. 2025Analysing Safety Risks in LLMs Fine-Tuned with Pseudo-Malicious Cyber Security Data
  6. 2024When LLMs Go Online: The Emerging Threat of Web-Enabled LLMs
  7. 2025Evaluating the efficacy of LLM Safety Solutions : The Palit Benchmark Dataset
  8. 2024AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Experts