Skip to content

LoginTrap: Task-Agnostic Phishing-Style Indirect Prompt Injection Attack Against LLM Web AgentsLoginTrap: Uncovering Task-Agnostic Phishing-Style Indirect Prompt Injection Attacks against LLM-based Web Agents

Paper Tracker· arXiv:2608.04741· Longtao Guo, Zelin Zhang, Kaifeng Huang, Yang Shi·Indexed by this site · 2026-10-08· Originally publishedSelected AttacksSelectedAttention38

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

The researchers propose the task-agnostic attack LoginTrap, achieving 86% average ASR across 4 LLM backbones in tests on 80 webpages and 1175 tasks.

Threat modelBlack-box phishing setting: the attacker controls a cloned webpage and embeds an inducing login pop-up in it, and controls the login page that the fake entry redirects to; the attacker does not know the user's task, the agent architecture, the underlying LLM, the system prompt, or the safety policy, and cannot modify the runtime or observe internal reasoning; the goal is to induce the agent to treat login as a legitimate prerequisite and submit sensitive information to the controlled page.

Questions
LLM web agents often encounter login boundaries when performing everyday tasks. Existing manipulation research has not sufficiently examined whether malicious webpage content can, without knowledge of the user's task and the agent's internal mechanisms, induce agents to treat login as a prerequisite step and leak private data.
Methods
Proposes a task-agnostic black-box attack LoginTrap, placing pop-up induction areas in cloned webpages, generating page-specific prompts through a fuzzing heuristic process combined with webpage context, guiding agents to controlled login pages and submit background private information.
Experiments and results
On 80 webpages and 1175 tasks built from Mind2Web, LoginTrap achieves 93% average LER and 86% average ASR across 4 LLM backbones, and 79% average ASR with 84%–94% LER across 3 agent architectures under fixed GPT-4o.
Limitations and future work
The paper does not set up an independent limitations section; in the conclusion it points out that future defenses should reason about the necessity of login and sensitive input for the task; the experiments cover 4 LLM backbones, 3 agent architectures, and 80 webpages across 5 domains with 1,175 tasks within a 5-step interaction limit.
Experimental setupGPT-4o、Gemini 3 Flash et al. · Mind2Web · LER、ASR et al.
Evaluated models
GPT-4oGemini 3 FlashClaude Sonnet 4DeepSeek-V3.2
Benchmarks
Mind2Web
Metrics
LERASRPERAvg. Attempts Consumed
AI summaryand selection rationaleThe researchers propose LoginTrap, a task-agnostic login induction attack against LLM web agents, generating page-specific indirect injection through webpage context to make login appear as a necessary prerequisite for continuing the task, and directing the agent to an attacker-controlled login page to steal sensitive information. The attacker only controls webpage content and the login flow, without knowing the user task, agent architecture, underlying model, or system prompt. On 80 cloned webpages and 1175 task instances built from Mind2Web, the attack achieves an average login entry rate of 93% and an end-to-end attack success rate of 86% across four models: GPT-4o, Gemini 3 Flash, Claude Sonnet 4, and DeepSeek-V3.2; and an average attack success rate of 79% across three agent architectures: Browser-Use, LiteWebAgent, and Skyvern. Page-level results show that all tested webpages are exploitable within the evaluation budget, and existing defenses at the levels of task instructions, system prompts, and action supervision can only reduce but not eliminate sensitive information leakage.

The researchers propose LoginTrap, a task-agnostic login induction attack against LLM web agents, generating page-specific indirect injection through webpage context to make login appear as a necessary prerequisite for continuing the task, and directing the agent to an attacker-controlled login page to steal sensitive information. The attacker only controls webpage content and the login flow, without knowing the user task, agent architecture, underlying model, or system prompt. On 80 cloned webpages and 1175 task instances built from Mind2Web, the attack achieves an average login entry rate of 93% and an end-to-end attack success rate of 86% across four models: GPT-4o, Gemini 3 Flash, Claude Sonnet 4, and DeepSeek-V3.2; and an average attack success rate of 79% across three agent architectures: Browser-Use, LiteWebAgent, and Skyvern. Page-level results show that all tested webpages are exploitable within the evaluation budget, and existing defenses at the levels of task instructions, system prompts, and action supervision can only reduce but not eliminate sensitive information leakage.

Why it was selectedThe paper presents a task-agnostic login-inducing injection method and success rate data across models and agent architectures, which can help teams deploying Web Agents assess authentication boundary risks.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Explores the risk of inducing agents to perform fake logins and leak privacy through webpage content under a black-box threat model where the user's task is unknown.

    This paper attempts to address whether an attacker, without knowing the user's specific task, can induce an LLM web agent through a controlled webpage to enter a fake login flow and leak sensitive private information.

    • Decision conflict at the login boundary: Web agents browse webpages and perform actions on behalf of users. Login is both a routine channel for accessing account features and a security boundary involving credentials and sensitive information; because webpage observations are untrusted input, agents find it difficult to determine whether login is necessary for the current task.
    • Shortcomings of existing manipulation research: Existing research on prompt injection, visual injection, and deceptive interfaces mainly measures whether agents follow injected instructions and trigger target actions; it does not sufficiently study attacks that cross the sensitive login boundary and lead to end-to-end private data leakage; moreover, existing attacks often presuppose knowledge of the user's task or the agent's internal configuration.
    • Core observation and hypothesis: Login prompts are widespread on modern websites, but most user tasks do not actually require authentication; injected login prompts may cause agents to mistake authentication for a legitimate preparatory step for completing the original task, thereby proactively entering a sensitive input flow.
    • Proposed attack scheme: The authors propose LoginTrap, a task-agnostic login-inducing attack that relies only on webpage context and uses a fuzzing-inspired process to generate page-specific indirect injection prompts, inducing agents to visit a controlled login page and submit sensitive information.
    • Threat model:
      • Attack goal: induce the agent to treat login as a legitimate prerequisite for continuing to browse, and then fill the user's background sensitive information into a controlled login flow.
      • Attacker knowledge: a conservative black-box setting is adopted, without knowing the task assigned to the agent, the agent architecture, the underlying LLM, the system prompt, or any safety policy, and without being able to modify the runtime or observe internal reasoning.
      • Attacker capability: controls a cloned webpage that resembles a normal webpage, can insert a pop-up containing inducing statements into the page, and controls the login page that the fake entry redirects to.
      • Victim system: an LLM web agent that performs everyday tasks on behalf of the user and interacts with webpages through observation and actions (clicking, typing, navigation).
  2. What related research exists?

    Reviews work on agent safety manipulation, web agent injection, and credential phishing, pointing out that this paper focuses on login induction paths that do not require task priors.

    Safety risks and manipulation of LLM agents

    • Multi-step agent harm and environment manipulation evaluation: AgentHarm (Andriushchenko et al., 2025), AgentDojo (Debenedetti et al., 2024), and ASB (Zhang et al., 2025) evaluate agents' ability to complete harmful multi-step tasks or their vulnerability in diverse attack scenarios.
    • Tool use and multi-source injection hijacking: Shi et al. (2026), ObliInjection (Wang et al., 2026), and Mind your server (Zhao et al., 2025) studied manipulation of tool selection decisions and downstream actions via untrusted tool outputs, malicious tool descriptions, and multi-source inputs.
    • Memory and retrieval poisoning: Topic-FlipRAG (Gong et al., 2025), Les Dissonances (Li et al., 2026), and PoisonedRAG (Zou et al., 2025) inject adversarial records into persistent memory or retrieval stores, using early observations to influence subsequent actions in longer contexts.

    Prompt injection and interface manipulation of web agents

    • Text and structured injection: Johnson et al. (2025), EIA (Liao et al., 2025), and Genesis (Zhang et al., 2025) embed adversarial instructions in webpage text, HTML, DOM nodes, or accessibility trees for manipulation.
    • Visual and interface-level injection: VPI-Bench (Cao et al., 2025), Zhang et al. (2025), and AdInject (Wang et al., 2025) place adversarial content in rendered images and interface areas such as pop-ups, banners, and ads; Decepticon (Cuvin et al., 2025) and Ersoy et al. (2025) studied the impact of deceptive interface designs like dark patterns on agents.
    • Web agent benchmark evaluation: WASP (Evtimov et al., 2026) and WAInjectBench (Liu et al., 2025) systematically evaluate web agents' end-to-end security and detection robustness under prompt injection.

    Credential leakage risks in authentication flows

    • Password login and phishing: Tan et al. (2022) modeled password login as a key security boundary for phishing redirects; Liu et al. (2022) inferred phishing intent from webpage appearance and dynamic behavior; Peng et al. (2019) measured the ecosystem spread of stolen credentials submitted to phishing sites.
    • Autofill and password manager risks: Silver et al. (2014) analyzed autofill risks in password managers without explicit user interaction; Lin et al. (2020) revealed risks of form autofill releasing sensitive data to hidden or obscured fields; Gautam et al. (2024) found that filled passwords can be accessed by malicious client-side scripts or extensions.

    Evaluation benchmarks and experimental environments

    • The paper does not introduce external existing attacks as numerical comparison baselines; measurements are mainly conducted in a controlled test environment built from Mind2Web (Deng et al., 2023) tasks and cloned webpages.

    Positioning differences of this paper

    • The authors note that existing agent attacks mainly target tool outputs, memory, or specific interaction paths requiring known tasks, whereas this paper focuses on delegated execution during normal web browsing; existing credential security research focuses on how to prevent credential leakage once the login interface appears, whereas this paper explores how attackers can use webpage context to induce agents to treat login as a necessary prerequisite before entering the authentication interface.
  3. How does the paper address this problem?

    By cloning webpage pop-ups to present task-irrelevant induction prompts, combined with fuzzing iterative optimization generation and controlled login flows, induces agents to leak sensitive information.

    LoginTrap overall adopts a two-stage inducing attack approach: first, it embeds page-specific task-agnostic inducing statements in a cloned webpage to prompt the agent to change its original plan and prioritize clicking the fake login entry; then it guides the agent to a controlled login page, inducing it to submit background sensitive information.

    Problem setting and formalization

    • Agent decision loop: The agent selects browser actions based on the user task T, background information B, and history H_t, with its policy formalized as: at = Π(st, T, B, Ht) where the action includes a triple of operation type, operation parameters, and target element (o_t, r_t, e_t).
    • Injection manipulation goal: The attacker, with fixed task, background, and history, manipulates the next action selection by changing the webpage observation state to \tilde{s}_t: ãt = Π(s̃t, T, B, Ht) causing the agent to believe that login is a prerequisite for continuing the current task, thereby triggering a click on the login entry and a redirect to the attacker-controlled login page.

    Construction of the controlled attack environment

    • Webpage cloning and injection surface: The attacker clones the original webpage to preserve text content and visual layout, and implements the injection surface as a controlled pop-up container on the webpage. This container contains the inducing login statement, a fake login entry, and a close button; the rest of the webpage remains unchanged to isolate the effect of the injection.
    • Context-aligned controlled login flow: After the agent clicks the fake entry, it is redirected to the controlled login page. The system uses an LLM to summarize the main content and service purpose of the cloned page, and combines this with a login template to generate a description consistent with the cloned page, making the login request appear consistent with the current page's service.
    • Standardized data collection form: The controlled login page uses a fixed line-separated form layout to request sensitive fields, enabling unified parsing and comparison of sensitive data submissions across different webpages, tasks, and agents.

    Fuzzing-inspired inducing prompt generation

    • Context construction and initialization: For each webpage, an LLM (GPT-4o in experiments) is used to extract a compact page summary, potential supported tasks, and one benign probe task that does not mention login. The generator instantiates candidate inducing statements for the current page based on multiple semantic strategies.
    • Shadow model joint action evaluation: Each candidate statement, after being embedded in the webpage, is evaluated by two shadow LLMs under the benign probe task: one serves as a basic evaluator, and the other adds a prompt to guard against suspicious webpage instructions. A candidate is accepted only if both predict an action toward the login entry; those that fail are retained for mutation.
    • MCTS-based seed selection and mutation: If initialization does not produce a qualified candidate, failed candidates enter the seed pool. An MCTS-based strategy balances exploration with partial inducing signals to select seeds (in experiments, the top 3 candidates by reward ranking are selected), and crossover, expansion, rewriting, or compression are applied for mutation.
    • Attack deployment: Once a qualifying statement is generated within the generation budget, it is output and inserted into the pop-up container of the cloned webpage, and then tested in a full browser environment.
  4. What experiments did the paper conduct?

    Testing 4 LLM backbones and 3 architectures on 80 webpages and 1175 tasks across 5 domains, LoginTrap achieves 86% average ASR.

    Experimental setup

    • Tested models: 4 LLM backbones from different model families were tested: GPT-4o, Gemini 3 Flash, Claude Sonnet 4, and DeepSeek-V3.2; plus 3 web agent architectures: Browser-Use, LiteWebAgent, and Skyvern (all with GPT-4o as backbone). Only GPT-4o was used for elicitation-statement generation.
    • Dataset and scale: Built on Mind2Web, covering 5 domains—Travel (24 webpages, 309 tasks), Service (16 webpages, 281 tasks), Information (16 webpages, 276 tasks), Shopping (13 webpages, 173 tasks), and Entertainment (11 webpages, 136 tasks)—for a total of 80 cloned webpages and 1,175 task instances.
    • Comparison baselines: The paper does not introduce existing external attack baselines and mainly conducts cross-model comparisons across different backbone models and different agent architectures.
    • Metric definitions: Login entry rate (LER, the proportion of tasks that click the fake login entry), end-to-end attack success rate (ASR, the proportion of tasks that enter the controlled login flow and input background-sensitive information), page exploitability rate (PER, the proportion of webpages with at least one successful attack within budget C), and average attempts consumed (Avg. Attempts Consumed).
    • Execution and review protocol: Each task starts from a fresh Chrome instance with browser state reset; all experiments fix the maximum number of interaction steps per task at 5; action labeling is based on observable browser operation logs (clicking the entry is recorded as entry, filling in synthetic private information is recorded as success), with no need for a human scoring model or LLM-judge scoring.
    • Sample size and repetitions: For page-level exploitability, N=3 benign tasks are randomly sampled per webpage, each task is repeated K=3 times, for a total of C=N×K=9 attempts.

    Main results

    Number of exploitable pages per domain (exploitable/total webpages) and average attempts consumed (in parentheses, per Figure 4) under different LLM backbones:

    Swipe horizontally to read the table

    LLM backboneTravel (24 pages)Service (16 pages)Information (16 pages)Shopping (13 pages)Entertainment (11 pages)
    GPT-4o24/24 (1.38)16/16 (1.31)16/16 (1.50)13/13 (1.00)11/11 (1.55)
    Gemini 3 Flash24/24 (1.00)16/16 (1.06)16/16 (1.00)13/13 (1.00)11/11 (1.00)
    Claude Sonnet 424/24 (1.00)16/16 (1.19)16/16 (1.00)13/13 (1.00)11/11 (1.09)
    DeepSeek-V3.224/24 (1.12)16/16 (1.00)16/16 (1.19)13/13 (1.08)11/11 (1.00)
    • Overall effectiveness: The authors report that across tested models and domains, LoginTrap achieves an average LER of 93% and an average ASR of 86%; under the C=9 budget, the PER reaches 100% for all 80 webpages.
    • Differences in conversion stability across backbone models: Gemini 3 Flash and Claude Sonnet 4 show the most stable conversion from LER to ASR, with most webpages exploited on the first attempt; the authors consider that a stronger tendency to complete tasks amplifies the attack effect, as agents are more inclined to treat filling in the controlled form as a coherent continuation of the flow.
    • Interruption phenomena and domain differences: GPT-4o and DeepSeek-V3.2 show a larger LER-ASR gap at high LER; the authors point out that this gap is mainly caused by interruptions after entering the login path (incomplete form filling, early termination, returning to the original task), and that the shopping, travel, and entertainment domains make agents more likely to accept the login rationale than the service and information domains.

    Generalization evaluation across web agent architectures

    • What was tested: With a fixed GPT-4o backbone, the performance of 3 different architectures against LoginTrap was evaluated: Browser-Use (direct tool loop), LiteWebAgent (modular grounding separation), and Skyvern (planner/executor/validator multi-agent workflow) (Figure 5 and Figure 6).
    • Experimental results: The overall LER of the 3 architectures remains between 84% and 94%, and the overall ASR is between 68% and 89%, with an average ASR of 79%; at the page level (per Figure 6), Browser-Use achieves exploitability on all 80/80 webpages, Skyvern exploits 79 of 80 webpages (Service domain 15/16), and LiteWebAgent exploits 75 (Service 15/16, Information 15/16, Shopping 11/13, Entertainment 10/11), with LiteWebAgent consuming more attempts on average (1.67 to 2.54 per domain).
    • Authors' interpretation: The authors consider that all tested architectures can be induced into the fake login path, and that architectural differences mainly change the stability with which the agent completes the subsequent form filling rather than eliminating the induction risk; LiteWebAgent's separation of action generation from concrete webpage element operations introduces more possibilities for execution mismatch, whereas Skyvern's workflow persistence mechanism helps it continue completing the form after accepting the login premise.

    Other ablations and analyses

    • Mutation-stage seed selection: crossover, extension, rewriting, or compression is applied to the top-3 reward-ranked failure candidates (Section 4.1).
    • Page-level budget parameters: N=3 tasks are sampled per webpage, each task is repeated K=3 times, for a total attempt budget of C=9 (Section 4.1).
    • Interaction step cap: all experiments uniformly set the maximum number of interaction steps per task to 5 (Section 4.1).
    • Failure cases and interruption behavior: failures after entering the login path manifest as incomplete form filling, early termination, and returning to the original task (Section 4.2).
    • Cases where architectures did not exploit webpages: under the C=9 budget, LiteWebAgent had 5 webpages not successfully exploited, and Skyvern had 1 webpage not successfully exploited (Figure 6).
  5. What are some points that can be further explored?

    The paper does not set up a dedicated section to discuss limitations; it points out future defense directions in the conclusion. The experiments cover 4 LLMs and 3 architectures on 80 webpages and 1175 tasks.

    Limitations and future directions noted by the authors

    • The paper does not set up a separate section to discuss limitations; it only proposes future defense directions in Section 6: future web agent defenses should not only judge whether webpage content is suspicious, but also reason about whether login and sensitive input are necessary for the original user task.

    Experimental coverage

    • Models and agent architectures tested: The tested LLM backbones are GPT-4o, Gemini 3 Flash, Claude Sonnet 4, and DeepSeek-V3.2, 4 in total; the agent architectures are Browser-Use, LiteWebAgent, and Skyvern, 3 in total (Sections 4.2 and 4.3).
    • Benchmark and domain distribution: The tests are based on the Mind2Web dataset, covering 5 domains: Travel (24 webpages), Service (16), Information (16), Shopping (13), and Entertainment (11), with 80 cloned webpages and 1,175 task instances in total (Table 1).
    • Interaction step and page-level budget: The maximum number of interaction steps for all task executions is uniformly set to 5 steps; the page-level exploitability evaluation samples N=3 tasks per webpage, repeats each task K=3 times, with a total budget of C=9 attempts (Section 4.1).
    • Injection generation configuration: Only GPT-4o is used for webpage context construction, initial candidate generation, mutation, and candidate evaluation; the mutation stage uses the top 3 failed candidates by reward ranking as seeds (Section 4.1).
    • Information not reported in the paper: The introduction and conclusion mention that existing defenses reduce but do not eliminate leakage, but the paper does not report specific defense evaluation settings, baselines, or experimental data in the experimental section; the paper does not report the specific iteration budget and query consumption for generating inducing statements.
  6. Summarize the main content of the paper

    Reveals the login induction risk of web agents on black-box webpages, using fuzzing to generate prompts and validating privacy leakage threats across backbones and architectures.
    • Research positioning: Focusing on the authentication boundary of large language model web agents in everyday browsing, this paper explores the risk of task-agnostic phishing-style indirect prompt injection.
    • Core question: Existing attacks mostly focus on instruction execution or action deviation; this paper studies whether, under the strict constraint of a black-box setting without knowledge of the user's task and the agent's internal mechanisms, an agent can be induced solely through webpage context to treat login as a legitimate prerequisite and submit sensitive data.
    • Method design: Proposes the LoginTrap attack framework, which implants a pop-up inducing region in a cloned webpage, generates page-specific prompts through a fuzzing process that combines page summaries and semantic strategies, evaluates and mutates candidates through dual shadow models, and finally uses an LLM to generate an aligned controlled login page to capture sensitive data.
    • Key experimental results: In evaluations covering 80 cloned webpages and 1,175 task instances across 5 domains, LoginTrap achieves 93% average LER and 86% average ASR across 4 LLM backbones; with GPT-4o as the backbone, it achieves 79% average ASR across 3 agent architectures (LER 84%–94%); under the C=9 attempt budget, all 4 backbone models achieve 100% page exploitability across all 80 webpages.
    • Authors' conclusions and implications: The authors point out that inducing login constitutes a systematic authentication boundary risk for web agents; a stronger tendency toward task completion may instead prompt agents to fill in forms coherently and exacerbate leakage; future defenses must not only detect suspicious webpage content, but must reason about the task necessity of login and sensitive input.

Related papers

Show 2 more papers
Read originalarxiv.org