NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Investigating the Impact of Dark Patterns on LLM-Based Web Agents

Devin Ersoy, Brandon Lee, Ananth Shreekumar, Arjun Arunasalam, Muhammad Ibrahim, Antonio Bianchi, Z. Berkay Celik

TL;DR

This paper presents the first systematic evaluation of how "dark patterns"—deceptive user interface designs intended to mislead humans—impact LLM-based web agents. By introducing a novel testing framework (LiteAgent) and a controlled web environment (TrickyArena), the authors reveal that popular web agents fall victim to these deceptive designs an average of 41% of the time, with the most capable agents often being the most vulnerable.

What Problem Does This Paper Address?

Large Language Model (LLM) based web agents are rapidly evolving to automate complex online tasks like booking flights, purchasing products, or summarizing news. To navigate websites, these agents use an "observe-plan-act" cycle, processing HTML, accessibility trees, and screenshots to decide on their next action (e.g., clicking a button or typing text).

However, the modern web is riddled with dark patterns—deceptive UI designs (like pre-checked boxes, hidden cancellation buttons, or manipulative text) designed to trick users into making unintended decisions. While substantial security research has focused on adversarial threats like prompt injection, the impact of everyday web deception on autonomous agents has remained completely unexplored. If an agent cannot recognize a dark pattern, it might inadvertently sign a user up for an expensive recurring subscription or compromise their data privacy without their knowledge.

Methods

The authors built a comprehensive evaluation pipeline consisting of two main components:

  1. TrickyArena: A custom, React-based testbed featuring four realistic web applications: E-Commerce, News, Streaming, and a Health Portal. Crucially, TrickyArena allows researchers to programmatically toggle 14 distinct dark patterns on or off, creating controlled "scenarios" to isolate how specific deceptive designs affect agent behavior.
  2. LiteAgent: An agent-agnostic, automated logging framework. Unlike existing evaluation tools that hard-code specific agent implementations, LiteAgent can interface with diverse agent architectures (both desktop apps and browser extensions). It uses the Chrome DevTools Protocol (CDP) and Playwright to inject JavaScript event listeners directly into the browser context. This captures every click, scroll, and keystrokes without altering the webpage's visual presentation.
Methodology overview for evaluating web agent susceptibility to dark patterns.

An Agent Action Validator then evaluates the captured action logs against strict logical conditions to determine two metrics: Task Success Rate (TSR) and Dark Pattern Susceptibility Rate (DPSR).

Datasets

The primary benchmark introduced is TrickyArena, which contains:

  • 4 web application domains (E-Commerce, News, Streaming, Health Portal).
  • 32 site-specific tasks instantiated from generalized task templates (e.g., "Search for {product} and buy me the {metric} one").
  • 14 implemented dark patterns mapped to established regulatory and academic ontologies (Obstruction, Sneaking, Interface Interference, Forced Action, and Social Engineering).

Key Insights and Ideas

  • The Capability Paradox: Surprisingly, the most effective and highest-performing agents (those best at navigating complex UIs to complete tasks, like BrowserUse and Skyvern) are also the most vulnerable to dark patterns. Because these agents are highly optimized to overcome interface barriers, they aggressively attempt to clear obstacles (like pop-ups) by clicking the most prominent option, inadvertently falling into the dark pattern's trap.
  • Compounding Barriers: When multiple dark patterns are stacked together, they act as compounding obstacles. The authors found that dark patterns which were completely ineffective against an agent in isolation suddenly became successful when combined with other modals, as the increased visual/HTML noise confuses the agent's planning phase.
  • Vision is a Double-Edged Sword: Enabling computer vision capabilities (Multimodal LLMs/VLMs) did not protect agents. In fact, for a majority of agents, turning on vision decreased task success rates and increased dark pattern susceptibility, suggesting current vision models are easily misled by human-centric visual hierarchies.
  • Prompt Defenses are Weak: Appending "postscripts" to prompts warning the agent to avoid dark patterns had limited success. Even highly specific, step-by-step instructions only reduced susceptibility by an average of 32%, leaving agents heavily exposed.

Key Results

The authors evaluated six popular web agents across three state-of-the-art LLMs (GPT-4o, Claude 3.7 Sonnet, and Gemini 2.5 Pro).

  • High Susceptibility: When a single dark pattern was present, agents fell for it 41.1% of the time on average.
  • Performance Degradation: The introduction of even a single dark pattern caused task success rates to plummet across the board.
Overall Task Success Rate (TSR) comparison of no dark pattern vs. one dark pattern enabled.
  • Agent Breakdown: Skyvern and BrowserUse achieved the highest task completion rates but suffered the highest vulnerability, with overall susceptibility rates of 72.3% and 69.3% respectively.
  • Pattern Effectiveness: Obstruction (e.g., hiding a "Reject All" option behind multiple menus) was the most effective strategy against agents, achieving a 52.2% aggregate susceptibility rate.
Standardized Chi-Square residual heatmap of task completion outcomes.

Limitations and Future Work

  • Lack of Human Baseline: The study does not directly compare agent susceptibility rates to a human control group within the same environment, making it hard to definitively state whether agents are more or less gullible than humans.
  • Integration Overhead: Interfacing LiteAgent with certain browser extensions still requires minor manual workarounds (like coordinate-based clicking via pyautogui).
  • Future Directions: The authors emphasize that prompt engineering alone cannot solve this issue. Future work must explore architectural defenses, such as integrating dedicated "dark pattern handlers" into the LLM planning phase or utilizing pre-processing tools (like advanced ad-blockers) to strip out deceptive UI elements before the agent ever sees them.

Summary updated

BibTeX
@inproceedings{ersoy2026investigating,
  author = {Devin Ersoy and Brandon Lee and Ananth Shreekumar and Arjun Arunasalam and Muhammad Ibrahim and Antonio Bianchi and Z. Berkay Celik},
  title = {{Investigating the Impact of Dark Patterns on LLM-Based Web Agents}},
  booktitle = {SP},
  year = {2026},
  doi = {10.1109/sp63933.2026.00042},
}
Figure