Adversarial Search Engine Optimization for Large Language Models
Fredrik Nestaas, Edoardo Debenedetti, Florian Tramèr
TL;DR
This paper identifies Preference Manipulation Attacks, a class of adversarial, content-level attacks that steer LLMs to prefer attacker-owned pages or plugins in black-box settings. It demonstrates these attacks on production LLM search engines and plugin APIs, showing that attacker content can be promoted and competitors discredited, potentially triggering a prisoner's dilemma where universal deployment degrades overall quality. The work analyzes threat models, executes extensive experiments across multiple systems, and discusses defenses, attribution, and ethical considerations to mitigate real-world risks. Overall, it highlights practical vulnerabilities in LLM-powered ranking and tool-use and emphasizes the need for robust defenses to preserve the integrity of search and plugin ecosystems.
Abstract
Large Language Models (LLMs) are increasingly used in applications where the model selects from competing third-party content, such as in LLM-powered search engines or chatbot plugins. In this paper, we introduce Preference Manipulation Attacks, a new class of attacks that manipulate an LLM's selections to favor the attacker. We demonstrate that carefully crafted website content or plugin documentations can trick an LLM to promote the attacker products and discredit competitors, thereby increasing user traffic and monetization. We show this leads to a prisoner's dilemma, where all parties are incentivized to launch attacks, but the collective effect degrades the LLM's outputs for everyone. We demonstrate our attacks on production LLM search engines (Bing and Perplexity) and plugin APIs (for GPT-4 and Claude). As LLMs are increasingly used to rank third-party content, we expect Preference Manipulation Attacks to emerge as a significant threat.
