Lune

S&P2026Top-tier venue

WebCloak: Characterizing and Mitigating Threats From LLM-Driven Web Agents as Intelligent Scrapers

Xinfeng Li, Tianze Qiu, Yingbin Jin, Lixu Wang, Hanqing Guo, Xiaojun Jia, Xiaofeng Wang, Wei Dong

Abstract

The rise of web agents powered by large language models (LLMs) is reshaping the landscape of human-computer interaction, enabling users to automate complex web tasks with natural language commands. However, this progress introduces significant, yet largely unexplored security concerns: adversaries can employ such web agents to conduct largescale web scraping, particularly of visual content. This paper presents the first systematic characterization of the danger represented by such LLM-driven web agents as intelligent scrapers. We develop LLMCrawlBench, a large test set of 237 extracted real-world webpages (10,895 images) from 50 popular high-traffic websites in 5 critical categories, designed specifically for adversarial image extraction evaluation. Our metrics across over 32 scraper implementations, including LLMto-Script (L2S), LLM-Native crawlers (LNC), and LLM-based web agents (LWA), demonstrate that while some tools exhibit working issues, advanced LLM-powered frameworks lower the bar for effective scraping.

Such new agent-as-attacker threats motivate us to introduce WebCloak, an effective, lightweight defense that specifically targets the main weakness of LLM crawler agents' fundamental "Parse-then-Interpret" mechanism. Our key idea is dual-layered: (1) Dynamic Structural Obfuscation, which not only randomizes structural cues but also restores visual content client-side using non-traditional methods less amenable to direct LLM exploitation, and (2) Optimized Semantic Labyrinth to mislead the central LLM interpretation of the agent through added harmless-yetmisleading contextual clues, all while not sacrificing visual quality for legitimate users. Our evaluations demonstrate that WebCloak significantly reduces scraping recall rates from 88.7% to 0% against leading LLM-driven scraping agents, offering a robust and practical countermeasure.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • WebArena: A Realistic Web Environment for Building Autonomous Agents cites A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesis
  • GPT-4V(ision) is a Generalist Web Agent, if Grounded cites A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesis
  • WebVoyager: Building an End-to-End Web Agent with Large Multimodal Models cites WebArena: A Realistic Web Environment for Building Autonomous Agents
  • WebVoyager: Building an End-to-End Web Agent with Large Multimodal Models cites A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesis
  • WebVoyager: Building an End-to-End Web Agent with Large Multimodal Models cites GPT-4V(ision) is a Generalist Web Agent, if Grounded
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. A Large-scale Measurement of In-Page Prompt Injections Against LLM Web AgentsSoheil Khodayari, Xuenan Zhang, Bhupendra Acharya, Giancarlo PellegrinoCCS 2026

Builds on13

  1. WebArena: A Realistic Web Environment for Building Autonomous AgentsShuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou et al.ICLR 2024 · 1,197 citations
  2. Tree of Attacks: Jailbreaking Black-Box LLMs AutomaticallyAnay Mehrotra, Manolis Zampetakis, Paul Kassianik, Blaine Nelson et al.NeurIPS 2024 · 835 citations
  3. GPT-4V(ision) is a Generalist Web Agent, if GroundedBoyuan Zheng, Boyu Gou, Jihyung Kil, Huan Sun et al.ICML 2024 · 496 citations
  4. A Real-World WebAgent with Planning, Long Context Understanding, and Program SynthesisIzzeddin Gur, Hiroki Furuta, Austin V. Huang, Mustafa Safdari et al.ICLR 2024 · 359 citations
  5. WebVoyager: Building an End-to-End Web Agent with Large Multimodal ModelsHongliang He, Wenlin Yao, Kaixin Ma, Wenhao Yu et al.ACL 2024 · 30 citations

Related papers

  1. MalURLBench: A Benchmark Evaluating Agents' Vulnerabilities When Processing Web URLsDezhang Kong, Zhuxi Wu, Shiqi Liu, Zhicheng Tan et al.ACL Findings 2026
  2. SecureWebArena: A Holistic Security Evaluation Benchmark for LVLM-based Web AgentsZonghao Ying, Yangguang Shao, Jianle Gan, Gan Xu et al.ACL Findings 2026 · 1 citation
  3. AutoScraper: A Progressive Understanding Web Agent for Web Scraper GenerationWenhao Huang, Zhouhong Gu, Chenghao Peng, Jiaqing Liang et al.EMNLP 2024 · 6 citations
  4. AgentBreaker: Evaluating Context-Aware Indirect Prompt Injection Risks in Modern Web AgentsYongbi Son, Changoo Lee, Dongwon Shin, Byoungyoung Lee et al.ISSTA 2026
  5. Imperceptible Content Poisoning in LLM-Powered ApplicationsQuan Zhang, Chijin Zhou, Gwihwan Go, Binqi Zeng et al.ASE 2024 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines