Skip to content

When the Robot Takes the Bait: Revealing and Mitigating Emerging Social Engineering Attacks in Web Automation AgentsWhen Bots Take the Bait: Exposing and Mitigating the Emerging Social Engineering Attack in Web Automation Agent

arXiv· arXiv:2601.07263· Xinyi Wu, Geng Hong, Yueyue Chen, MingXuan Liu, Feier Jin, Xudong Pan, Jiarun Dai, Baojun LiuFudan University; Zhongguancun Laboratory; Shanghai Innovation Institute; Tsinghua UniversityIndexed by this site · 25 days ago· Originally publishedSelected AttacksSelectedAttention39

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors propose the social engineering attack AGENTBAIT against Web agents and the runtime defense plugin SUPERVISOR, stating that the average ASR across five open-source frameworks reaches 67.5%, and SUPERVISOR reduces ASR by an average relative 78.1%.

Threat modelThe attacker controls the web page content rendered to the agent: hosting malicious sites that embed deceptive elements (text, pop-ups, form fields), or injecting content into benign pages through compromised components/ads; no prompt injection or code exploitation is used, but rather induced context is used to manipulate the agent's reasoning so that it performs high-risk operations deviating from the user's goal. The victim systems are five open-source Web agent frameworks (default configuration, driven by GPT-4o): Browser Use, Skyvern-AI, Agent-E, LiteWebAgent, and SeeAct.

Questions
Web agents autonomously execute tasks on open web pages, but existing security research concentrates on model threats such as prompt injection and backdoors; social engineering attacks against agents (deceiving their reasoning with induced context) have largely not been systematically studied.
Methods
The authors propose the AGENTBAIT attack paradigm, formalizing attacks with two metrics, environment consistency α and intent consistency γ, and combining 5 types of inducing context with 4 types of attack goals to construct 500 tasks; on the defense side, they propose the SUPERVISOR runtime plugin, which jointly verifies environment and intent consistency before execution.
Experiments and results
Average ASR is 67.5% across the five frameworks Browser Use, Skyvern-AI, Agent-E, LiteWebAgent, and SeeAct, with none immune; on real web pages ASR drops only 12.4%, and the authors state the drop stems from insufficient capability rather than defense. SUPERVISOR reduces ASR by an average relative 78.1%, with 7.7% runtime overhead, and benign task completion rate drops from 81.7% to 79.0%.
Limitations and future work
Limitations noted by the authors: only open-source frameworks are covered, and commercial agents are not evaluated; social engineering strategies are difficult to exhaust, and robustness against adaptive attackers is not verified; SUPERVISOR is affected by LLM reasoning uncertainty and introduces a small amount of latency. Attack tasks are executed by a GPT-4o-driven agent, and the paper does not report the number of repetitions of the attacks.
Experimental setupBrowser Use、Skyvern-AI et al. · 自建 500 个 Web 任务(5 场景 × 20 攻击向量 × 5 种 (α, γ) 模式)、WebVoyager(26 个真实网站克隆页、500 个良性任务) · ASR、任务完成率 et al.
Evaluated models
Browser UseSkyvern-AIAgent-ELiteWebAgentSeeActGPT-4oGPT-5Qwen3-8BQwen3-32BQwen3-235BDeepSeek-V3DeepSeek-V3.1
Benchmarks
自建 500 个 Web 任务(5 场景 × 20 攻击向量 × 5 种 (α, γ) 模式)WebVoyager(26 个真实网站克隆页、500 个良性任务)
Metrics
ASR任务完成率相对运行时开销拒答率
AI summaryand selection rationaleResearchers from Fudan University and other institutions propose the AGENTBAIT social engineering attack paradigm, which uses deceptive web content such as forged identities, urgency, and rewards to manipulate the reasoning of web automation agents, achieving an average attack success rate of 67.5% across five mainstream frameworks, with some strategies exceeding 80%. They tested Browser Use, Skyvern-AI, Agent-E, SeeAct, and LiteWebAgent with GPT-4o, finding the highest success rate for privilege-abuse-type goals (80.9%) and the lowest for sensitive information leakage (56.4%). The authors also propose a pluggable runtime defense module, Supervisor, which jointly checks environment consistency and intent consistency, reducing the average attack success rate by 78.1% relative, with a runtime overhead of 7.7%, while the normal task completion rate dropped from 81.7% to 79.0%.

Researchers from Fudan University and other institutions propose the AGENTBAIT social engineering attack paradigm, which uses deceptive web content such as forged identities, urgency, and rewards to manipulate the reasoning of web automation agents, achieving an average attack success rate of 67.5% across five mainstream frameworks, with some strategies exceeding 80%. They tested Browser Use, Skyvern-AI, Agent-E, SeeAct, and LiteWebAgent with GPT-4o, finding the highest success rate for privilege-abuse-type goals (80.9%) and the lowest for sensitive information leakage (56.4%). The authors also propose a pluggable runtime defense module, Supervisor, which jointly checks environment consistency and intent consistency, reducing the average attack success rate by 78.1% relative, with a runtime overhead of 7.7%, while the normal task completion rate dropped from 81.7% to 79.0%.

Why it was selectedThe paper evaluates social engineering attacks on five open-source Web automation agent frameworks and presents a pluggable runtime defense, providing deployers with a reproducible testing baseline and interception approach.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study social engineering attacks against Web agents and propose a runtime consistency checking plugin SUPERVISOR for defense.

    Core question: whether Web agents can be deceived by social engineering induced content on web pages into performing high-risk operations deviating from the user's goal, and how to defend against it.

    • Problem scenario: Web agents (such as Browser Use, Skyvern-AI) perceive and make decisions based on unverified web page content; attackers can embed induced context such as "urgent verification" or "official confirmation" to make them leak user PII, grant permissions, or download malicious files (example in Figure 1). The authors believe agents automate trust, and a single malicious page can induce a large number of identical unsafe operations.
    • Gaps in existing research: the authors state that existing work concentrates on model threats such as prompt injection and training backdoors and framework vulnerabilities such as DoS and privilege escalation, while social engineering risks have largely not been explored; research on dark patterns only records cases without explaining why agents are vulnerable, and mitigation means are limited.
    • Core observation: the authors believe the essence of the attack lies in the conflict between user-side input (background, goal) and web page-side elements (induced context, attack goal), which can be characterized by environment consistency α and intent consistency γ.
    • Paper contributions: propose the AGENTBAIT attack paradigm and construct 500 standardized tasks; test on five open-source frameworks; propose a pluggable runtime defense module SUPERVISOR, with plans to open-source it.
    • Threat model:
      • Goal: induce the agent to perform high-risk operations preset by the attacker (permission abuse, malicious download, personal/sensitive information disclosure).
      • Knowledge and capability: the attacker controls the web page content rendered to the agent—hosting malicious sites, or injecting content into benign pages through compromised components/ads; no prompt injection or code exploitation is used.
      • Victim systems: Web automation agents driven by LLMs and interacting in natural language, in the experiments five open-source frameworks (default configuration, driven by GPT-4o).
      • Scope: focuses on behavior manipulation during task execution; network-layer protections such as blacklists are regarded by the authors as an orthogonal problem.
  2. What related research exists?

    Related work falls into two categories, Web agent security (model-side/system-side threats) and social engineering; the authors state this paper is the first systematic study of social engineering against Web agents.

    Web agent security—model-side threats

    • WASP benchmark (Evtimov et al.)—evaluates prompt injection attacks; the authors relay that it reports ASR of mainstream Web agents between 16%–86%.
    • WIPI and EIA—manipulate web content to induce privacy leakage; the authors relay a leakage rate of up to 70%.
    • Backdoor direction: Yang et al. reveal mid-stage triggers, and AgentPoison reports memory poisoning can reach over 80% success rate.

    Web agent security—system-side threats

    • DoS poisoning attacks can trap agents in infinite loops and exhaust resources; Prompt Flow Integrity mitigates privilege escalation through least-privilege execution and isolation of malicious flows.
    • Survey works discuss protocol abuse and tool misuse risks; MAESTRO provides a risk analysis framework for agentic AI.
    • Ersoy et al. analyze the impact of dark patterns on Web agents; the authors criticize such work for remaining at heuristic documentation of cases, not explaining the causes of vulnerability, and offering limited mitigation, whereas this paper formalizes this risk with AGENTBAIT and provides systematic defenses.

    Social engineering (SE)

    • SE attacks: the survey by Salahdine and Kaabouch notes that SE exploits trust, social proof, and urgency to bypass technical defenses; common forms include phishing, pretexting (impersonating authority), and baiting (incentive lures).
    • SE defenses: human-oriented awareness training, and technical detection (Fette et al.'s phishing email feature learning, CANTINA phishing website detection, and subsequent work combining deep learning with HTML structure).
    • The authors argue that agents lack human psychological weaknesses but expose structural flaws, requiring new attack surface analysis and defenses.

    Baselines and benchmarks: the defense comparison baselines are four lightweight schemes—Task-Specific (adding warnings at the user instruction layer), Safety-Prompt (injecting safety constraints into the planning prompt), AGrail (action-layer permission checklist), and ATHENA (contrastive learning action classifier); the authors explicitly exclude full-stack isolation systems such as IsolateGPT and ACE, on the grounds that development and runtime overhead are unrealistic for the new framework. Benign task evaluation uses WebVoyager.

    The authors position this paper as the first systematic study of social engineering attacks against Web agents ("We present the first systematic study"), distinct from model threat research and heuristic dark pattern analysis.

  3. How does the paper address this problem?

    Formalize the AGENTBAIT attack with two consistency metrics, α and γ, and construct 500 tasks; SUPERVISOR jointly checks environment and intent consistency before execution.

    Overall approach: first formalize social engineering attacks as a consistency problem between the user side and the web page side (AGENTBAIT), and systematically construct attack tasks for evaluation accordingly; on the defense side, propose SUPERVISOR, which intercepts candidate actions between the agent's reasoning core and the execution layer, jointly verifying environment consistency and intent consistency.

    Attack Formalization

    • The attack workflow is represented as a four-tuple Q = (background, goal, inducement contexts, attack objectives): the first two items come from the user side, the latter two from the web page side; the agent combines LLM reasoning with browser automation to produce observed behavior, which may be induced to deviate from the user's goal.
    • Environment consistency α ∈ {0, 1}: whether the inducement context conflicts with the background (α=0 conflict, e.g., a forged domain; α=1 no conflict but unverifiable, e.g., a seemingly legitimate promotion).
    • Intent consistency γ ∈ {−1, 0, +1}: the relationship between the attack objective and the user's goal (conflict / superficially consistent but over-privileged / fully consistent).
    • AGENTBAIT is defined as AGENTBAIT = {attack objectives ⊆ observed behavior}, which holds when α=0 or γ≤0, corresponding to five (α, γ) attack patterns; when (α, γ)=(1, +1) it does not count as AGENTBAIT, because the risk comes from the task itself rather than social engineering manipulation.

    Attack Vectors and Task Construction

    • Five types of inducement contexts (drawing on Cialdini's principles): Trusted Entity, Urgency, Social Proof, Reward, Contextual Integration; four types of attack objectives: Permission Abuse, Malicious Download, Personal Disclosure, Sensitive Disclosure.
    • The Cartesian product yields 20 attack vector types, each instantiated under five (α, γ) patterns, for a total of 100 input four-tuples; these are then embedded in five scenarios (online shopping, job hunting, travel planning, questionnaire filling, email reply), 100 per scenario, for a total of 500 Web tasks.
    • Each scenario has a template page with placeholders (e.g., modal pop-ups, form footers), and Gemini-2.0-Flash is used to batch-generate attack vectors injected into the placeholders; the web pages are hosted by a Flask backend. The authors state that using simplified pages rather than cloning real sites is for experimental control and causal attribution.
    • Success determination: each task pre-annotates target web page elements, and the planner's action log is analyzed to see whether the action type, target attribute or input value hits the annotated element (e.g., Sensitive Disclosure checks whether the input value of a fill action equals the test card number).

    SUPERVISOR Design

    • Environment consistency verification: key entities are extracted from the background to build a task specification; when the agent encounters an interactive element, the surrounding HTML is trimmed and semantic features extracted, and an LLM reasons to compare whether there is a semantic conflict (e.g., the background is [email protected] while the page is [email protected]); optionally an external link safety tool can be invoked (disabled by default for locally hosted pages).
    • Intent consistency verification: at task initialization, an access control list (ACL) is derived from the user prompt—the permission policy has three levels: L0 navigation / L1 risky click / L2 writable, and the sensitivity policy has three levels: S0 general / S1 personal information / S2 sensitive identifiers; at execution time, it first checks whether the action type is allowed, then uses an LLM classifier to infer the true intent of click actions (e.g., identifying a link with a download attribute as a file download), and another LLM classifier assesses input sensitivity, blocking any over-privileged action.
    • Decision engine: fuses the outputs of the two verifiers to decide EXECUTE or WARN; when blocking, it suspends the action and generates a structured warning (background conflict / permission overreach / sensitivity violation), and all decisions are recorded in an audit log.

    Implementation

    • Event-driven: verification is triggered only when the agent's decision space changes (a new interactive element appears or a sensitive operation is triggered), avoiding the overhead of continuous monitoring; decoupled from the agent's reasoning model, requiring no retraining.
    • Two hook strategies: function-level hooks for Agent-E, SeeAct, LiteWebAgent (overriding methods such as agent.execute() to pass through safety_check() first); process-level hooks for Browser Use, Skyvern-AI (verifying planned actions and page context via callbacks such as on_step_start(), and monitoring intermediate plan files).
    • SUPERVISOR's internal model defaults to GPT-4o; Appendix D gives the complete prompts for the four LLM modules (environment consistency verification, task policy generation, action semantic classification, input sensitivity classification).
  4. What experiments did the paper conduct?

    The five open-source frameworks have an average ASR of 67.5%, still above 70% on real web pages (excluding capability failures); SUPERVISOR reduces ASR by an average relative 78.1%, with 7.7% overhead.

    Experimental Setup

    • Frameworks tested: Browser Use, Skyvern-AI, Agent-E, LiteWebAgent, SeeAct, all in default configuration, uniformly using GPT-4o as the default LLM, with full logging enabled.
    • Attack tasks: 500 self-built Web tasks (5 scenarios × 20 attack vectors × 5 (α, γ) modes); attack vectors were batch-generated by Gemini-2.0-Flash.
    • Real web page validation: 26 websites stratified-sampled from WebVoyager and cloned locally, injected with 4 groups of high-ASR attack vector combinations (Context Integration / Trusted Entity × Personal Disclosure / Permission Abuse), 104 pages in total, with (α=1, γ=0) fixed.
    • Defense baselines: four lightweight schemes, Task-Specific, Safety-Prompt, AGrail, ATHENA; SUPERVISOR's internal model defaults to GPT-4o.
    • Metrics and judgment: ASR (judged by matching action logs against pre-annotated elements); benign task completion rate by WebVoyager reference string matching; refusals identified by rule-based string matching plus an auxiliary LLM judge.
    • Sample sizes: benign task evaluation randomly selected 500 tasks from WebVoyager; model-dependence experiments randomly sampled 100 tasks × 7 internal models; defense failure analysis took 50 bypassed cases. The paper does not report the number of repetitions for attack experiments.

    Main Results

    According to Table 3, the ASR of each framework under five consistency modes:

    Swipe horizontally to read the table

    Web Agentα=0,γ=−1α=0,γ=0α=0,γ=+1α=1,γ=−1α=1,γ=0Average
    Agent-E58%77%79%68%71%70.6%
    Browser Use46%71%87%51%78%66.6%
    LiteWebAgent52%77%84%60%87%72.0%
    SeeAct59%75%81%49%64%65.6%
    Skyvern-AI52%62%74%49%76%62.6%
    Average53.4%72.4%81.0%55.4%75.2%67.5%
    • The authors state that no framework is immune: LiteWebAgent and Agent-E have the highest average ASR, and the safety constraints in their prompts (limiting task scope, being wary of login/captcha) did not take effect; SeeAct's "terminate upon harmful action" constraint also did not create a gap.
    • The authors believe abstract warnings cannot make the LLM accurately map "harmful actions" to specific web page contexts, and ASR is highest when γ=+1 (surface goal consistency).

    Mechanism Analysis: Induced Context and Attack Goals

    • Induced context (Table 4): the highest average ASR is Context Integration (76.0%) and Trusted Entity (75.8%), the lowest is Urgency (62.6%). A controlled ablation on the course registration task (Table 5) shows: the Aligned Continuation condition has an average ASR of 78.4% (+23% vs. control), Semantic Drift drops to 48.4% (−7%), based on which the authors propose the "context consistency illusion"—the agent treats semantically coherent inducements as legitimate steps.
    • Authority trust bias: after removing authority words (such as official, government, bank) from Trusted Entity pages, average ASR drops from 75.8% to 61.5% (Figure 4), with Agent-E showing the largest drop (−30.8%); the authors state that logs show the agent's reasoning changes from "comply with government regulations" to "should not disclose personal information" before and after removal.
    • Attack goals (Table 6): Permission Abuse has the highest average ASR (80.9%), Sensitive Disclosure the lowest (56.4%). Failure case analysis (Table 7, n=824) shows 72.4% of failures come from refusals by intrinsic safety mechanisms; Figure 5 shows Sensitive Disclosure has the highest refusal rate (67.7% on LiteWebAgent), Permission Abuse the lowest (3.1% on LiteWebAgent), and the authors believe intrinsic safety alignment is biased toward explicit sensitive information disclosure and neglects seemingly benign permission and download actions.

    Real Web Page Validation

    • On real pages, raw ASR drops 12.4% compared with synthetic pages (Figure 6: Browser Use 87.5%, Skyvern-AI 80.8%, Agent-E 46.2%, SeeAct 49.0%, LiteWebAgent 38.5%).
    • The authors attribute the failures to capability limitations rather than defenses: Agent-E has 4.8% Misnavigate failures, SeeAct has 9.6% Mismatch failures, LiteWebAgent has 6.7% Misencoding crashes; after excluding capability-type failures, the success rate (Success/(Success+Refusal)) "consistently exceeds 70%", consistent with the synthetic benchmark.
    • Cost comparison: the latency of executing attacks on real pages is 1.8 times that of the controlled environment, which the authors use to justify the necessity of the controlled dataset.

    Defense Evaluation

    • Defense effectiveness (Figure 8): after deploying SUPERVISOR, the ASR of each framework is Browser Use 19.6%, Skyvern-AI 15.4%, Agent-E 14.8%, SeeAct 12.2%, LiteWebAgent 11.8% (no-defense baseline 62.6%–72.0%), an average relative reduction of 78.1%; AGrail is second (−63.9%), Safety-Prompt is weakest. The authors state the advantage comes from consistency checking rather than prompt-layer constraints.
    • Model dependence (Table 8): on 100 tasks, replacing the SUPERVISOR internal model with GPT-4, GPT-5, Qwen3-8B/32B/235B, DeepSeek-V3/V3.1, average ASR is 16.6%–18.2%; chi-square test (df=6) p-values are all greater than 0.95, and the authors state defense effectiveness is independent of internal model capability.
    • Usability (Table 9, Figure 9): on 500 benign WebVoyager tasks, average completion rate drops from 81.7% to 79.0% (−2.7%), a smaller drop than action-layer interception AGrail (72.4%) and ATHENA (74.7%); average relative runtime overhead is 7.7%, lower than AGrail (35.5%) and ATHENA (49.5%), higher than Task-Specific and Safety-Prompt.
    • Defense failure analysis: from 50 bypassed cases, three types of failure are summarized—ignoring subtle semantic conflicts in text-dense pages, incorrect permission inference when the user goal is under-specified, and ambiguous sensitivity boundaries (e.g., "my office address" misjudged as a generic string); the authors attribute these to the inherent uncertainty of LLM context reasoning.

    Other Ablations and Analyses

    • Attack timing (Table 12): appearing at page load (T0) average ASR 54.4%, triggered after interaction (T1) 36.0%; Skyvern-AI drops from 72% to 8% under T1.
    • Injection position (Table 12): malicious field at the end of the form (P1) average ASR 56.0%, at the beginning (P0) 48.8%.
    • The authors state that building real pages requires handling engineering work such as cross-domain restrictions and script dependencies; the paper does not report specific time figures.
  5. What are some points that can be further explored?

    The authors list three limitations: only open-source frameworks were tested, social engineering strategy coverage is incomplete, and SUPERVISOR is affected by LLM uncertainty.

    Limitations and Future Directions Noted by the Authors

    • Only open-source frameworks covered (Section 6.2): experiments are limited to relatively mature open-source frameworks; the authors state their survey shows commercial Web agents are scarce and mostly experimental, relying on closed pipelines, and evaluating their susceptibility to AGENTBAIT is a future direction.
    • Social engineering risks are hard to exhaust (Section 6.2): real attacker strategies are diverse and adaptive, and the task design can only provide conservative coverage based on manipulation tactics that have been studied; robustness against adaptive attackers remains an open problem.
    • SUPERVISOR is affected by LLM reasoning uncertainty (Section 6.2): strong models may also hallucinate on ambiguous tasks, reducing checking reliability; as a runtime plugin it also introduces a small amount of latency, and large-scale or latency-sensitive deployments require further optimization.
    • Future improvement directions (Section 6.2): improve LLM stability and checking efficiency through hybrid rule filtering or context caching; Section 5.3.3 also proposes refining permission classification and incorporating humans' implicit cognition of social engineering into consistency checking.

    Experimental Coverage

    • The subjects tested are five open-source Web agent frameworks, uniformly run with GPT-4o as the default LLM and default configuration; no other driver models were used for attack experiments.
    • Attack evaluation consists of 500 synthetic tasks (5 scenarios × 20 attack vectors × 5 (α, γ) modes) plus 104 real cloned pages (fixed α=1, γ=0, only 4 groups of attack vector combinations).
    • Defense comparison covers four lightweight baselines (Task-Specific, Safety-Prompt, AGrail, ATHENA); full-stack isolation systems such as IsolateGPT and ACE are explicitly excluded by the authors, on the grounds that development and runtime overhead are unrealistic for new frameworks.
    • The SUPERVISOR internal model was changed across 7 models (GPT-4, GPT-5, Qwen3-8B/32B/235B, DeepSeek-V3/V3.1) for dependence analysis, with 100 tasks per configuration.
    • The paper does not report the number of repetitions for attack and defense experiments, nor does it report consistency data between the auxiliary LLM judge and manual verification in refusal judgment.
  6. Summarize the main content of the paper

    The authors systematically study the social engineering attack AGENTBAIT against Web agents, with an average ASR of 67.5% across five open-source frameworks, and propose a runtime consistency checking plugin SUPERVISOR.

    A study on attack and defense against social engineering risks in Web agents, which the authors call the first systematic study in this direction.

    • Problem: existing Web agent safety research focuses on prompt injection and backdoors, while social engineering—deceiving agent reasoning with inducement-laden web content—is largely unexplored; agents automate trust, so a single malicious page can induce unsafe operations at scale.
    • Method: AGENTBAIT is formalized with environment consistency α and intent consistency γ (it holds when α=0 or γ≤0 and the attack objective appears in the behavior), combining 5 types of inducement contexts and 4 types of attack objectives to construct 500 tasks across 5 scenarios; on the defense side, SUPERVISOR jointly verifies the two consistencies before execution in an event-driven manner, integrated into different frameworks via function-level/process-level hooks.
    • Attack results: across the five frameworks Browser Use, Skyvern-AI, Agent-E, LiteWebAgent and SeeAct, the average ASR is 67.5%, with none immune; under the (α=0, γ=+1) pattern the average ASR reaches 81.0% (Table 3). Context Integration and Trusted Entity are the two most effective inducement types (average 76.0%, 75.8%, Table 4); after removing authority words, the average ASR drops from 75.8% to 61.5% (Figure 4).
    • Realism and mechanism: on real cloned pages the original ASR drops by only 12.4%, and the authors state the drop comes from insufficient capability rather than defense; after excluding capability-type failures, the success rate remains above 70%; among failure cases, 72.4% are caused by intrinsic safety refusals, but refusals skew toward sensitive information disclosure, with Permission Abuse having the lowest refusal rate (3.1% on LiteWebAgent).
    • Defense results: SUPERVISOR reduces ASR by an average of 78.1% relative, outperforming AGrail (−63.9%); benign task completion drops from 81.7% to 79.0%, with runtime overhead of 7.7%; results are stable when swapping in 7 internal models (chi-square test p>0.95).
    • Authors' conclusion: Web agent frameworks need safety primitives beyond task completion, such as inducement detection, trust verification and runtime consistency enforcement; the authors have disclosed to the maintainers of affected frameworks and received confirmation, and plan to open-source SUPERVISOR (without releasing the original attack payloads).
Read originalarxiv.org