WebMaze: Deceiving LLM-driven web scanners with functional couplingWebMaze: Defending Against LLM-Powered Web Scanners with Functionality-Coupled Deception
The authors propose WebMaze, which uses functionality-coupled traps and a view-customized decoy world to divert LLM web scanners; across 12 applications, decoy pages account for an average of 93.0% of requested pages.
The defender is the website operator controlling the protected application, who can modify pages and deploy decoy functionality but cannot control the scanner's internal reasoning, prompts, or tools. The attacker uses an LLM-based scanner to discover and exploit vulnerabilities, is assumed to know of the defense's existence and mechanism and to be able to instruct the scanner to avoid decoys; the scanner operates under limited request, execution-time, and LLM-interaction budgets.
- LLM-driven web scanners lower the barrier to automated attacks, and websites need to defend against them without affecting normal functionality. The authors argue that existing request-pattern detection is easily bypassed, while existing deceptive defenses' traps are easily identified and filtered, and decoy environments struggle to sustain exploration.
- The authors study six LLM scanners and summarize a three-stage perceive–decide–feedback loop, on this basis proposing WebMaze: embedding functionality-coupled traps isomorphic to normal components into real pages, and generating an interactive, view-customized decoy world from the application's existing views, together with routing and data isolation.
- Across 12 applications, 3 scanners, and 2 backbone models, decoy pages account for an average of 93.0% of distinct requested URLs; under WebMaze, the three scanners' vulnerability-page coverage on DVWA drops to 0.00%, and at most 1.00% on OWASP. Even when the scanner is told about the decoy mechanism and instructed to avoid it, coverage remains mostly above 85%.
- The authors do not specifically discuss limitations in a Limitations-style section. The experiments cover 3 scanners, 2 backbone models, and 12 applications, with each combination repeated 3 times; the impact on normal browsing was only manually experienced by one author on four versions, and the paper reports no statistical significance tests.
- Evaluated models
- DeepSeek V4.1 FlashGLM-5.3
- Benchmarks
- DVWAMutillidaeOWASP BenchmarkDVGAWebGoatJuice ShopJoomlaNimbusFXWebsiteAcmeWordPressXVWA
- Metrics
- decoy-page coveragevulnerability-page coverage
The researchers propose WebMaze, a defense method that, while preserving the real functionality of a web application, directs LLM-based malicious scanners toward generated decoy worlds. The method is designed based on a systematic study of how six LLM scanners collect information and select actions; it embeds functionally coupled traps in real pages and builds per-view customized interactive decoy worlds from the application's existing views, with traps integrated into real components that expose entrances to the decoy worlds without changing real functionality. In tests on 12 web applications and three LLM scanners under a default non-disclosure setting, decoy pages accounted on average for 93.0% of the distinct pages requested per run; even when scanners were explicitly told about the decoy mechanism and asked to avoid decoy pages, they still mainly explored decoy pages.
Paper analysis
What problem does this paper attempt to solve?
How to divert LLM-driven malicious web scanners from the real application to a decoy world while preserving normal functionality.
Core problem: how to divert LLM-driven malicious web scanners from real web applications to a decoy environment without affecting normal users and real functionality.
- Scenario and importance: The authors state that combining LLMs with browsers, HTTP requests, and security testing tools improves vulnerability scanning capability and also lowers the barrier to automated attacks, and that attackers have begun using LLM agents to attack at scale (§1).
- Shortcomings of existing methods: The authors state that request-pattern detection has been shown to be easily bypassed or evaded and causes friction for normal users; existing deceptive defenses (such as hidden-link traps and CHeaT's HTML comment misdirection) can be filtered once scanners know their patterns, and decoy environments have limited functionality and shallow interaction, so scanners easily give up exploring (§1, §2.2).
- Core observation: The authors study six LLM scanners and summarize a common three-stage perceive–decide–feedback loop (§2.3), and on this basis propose two requirements: decoy entry points must be hard to identify and filter, and the decoy environment must sustain continued exploration. The authors' key view is that deception is more robust when coupled with real functionality: filtering patterns isomorphic to normal components would cause scanners to miss real functionality, which the authors call the evasion-coverage tradeoff.
- What the paper proposes: The WebMaze defense framework, which embeds functionality-coupled traps into real pages and builds an interactive, view-customized decoy world from the application's existing views (§3).
- Threat model (§2.4):
- Defender: The website operator controlling the protected application, who can modify pages and deploy decoy functionality.
- What the defender cannot control: The scanner's internal reasoning, prompts, or tools.
- Attacker: Uses an LLM-based scanner to discover and exploit vulnerabilities; the authors assume the attacker knows the defense exists and how it works, and can instruct the scanner to avoid decoys.
- Constraints: The scanner operates under limited requests, execution time, and LLM interaction budget.
What related research exists?
Related work falls into three categories: LLM scanners, request detection/CAPTCHA, and deceptive defenses; the authors use CHeaT as the comparison baseline.
LLM-driven web scanning and penetration testing
- YuraScanner (2025), HackingBuddyGPT (2023), AWE (2026)—representing three paradigms: browser-driven, tool-driven, and modular security testing, respectively; they are three of the six scanners studied in this paper and the three target scanners used in the experiments.
- PentestGPT (2024), Cochise (2026), PentestAgent (2025)—human-in-the-loop, tool-based, and multi-agent penetration testing systems; together with the previous three, they form the objects of the three-stage loop analysis in §2.3.
- Traditional scanners and crawlers (Black Widow 2021, jäk 2015, etc.)—rely on predefined rules or exploration strategies; the authors state they struggle to reach deep application states that require multi-step flows.
Request-pattern detection and CAPTCHA
- Web Runner 2049 (2020), PathMarker (2019), etc.—identify and block suspicious clients via access frequency, paths, and timing; the authors state such methods have been shown to be easily bypassed and also harm normal users.
- CAPTCHA research (Searles et al. 2023, Oedipus 2025, Teoh et al. 2025)—the authors state CAPTCHAs create friction for normal users and can be solved by automated systems.
Deceptive defenses and decoy environments
- CHeaT (2025)—embeds misleading information (such as fake vulnerability reports) in HTML comments to divert LLM agents; the authors note that a scanner aware of its strategy can remove HTML comments before analysis. This paper uses it as the comparison baseline.
- Parallax (2025), WebCloak (2026), AgentSnare (2026), GenPot (2026)—respectively deploy honeypot clones, perform semantic interference against LLM crawling, build consistent decoy environments based on interaction history, and generate consistent web/API responses; the authors state WebMaze is complementary to these methods.
- LLM honeypot research (Sladić et al. 2024)—the authors cite its view that existing honeypots suffer from insufficient realism, limited adaptability, and shallow interaction.
Baseline and benchmarks: The comparison baseline is CHeaT; vulnerability-page coverage evaluation uses DVWA, Mutillidae, and OWASP Benchmark with ground truth, and the other 9 applications are taken from prior web scanning work (§4.1).
The authors position this paper as: defending against the observation–action loop that all scanners commonly rely on, independent of specific scanner architecture, and addressing two shortcomings of existing deceptive defenses through functionally coupled entry points and a view-customized decoy world.
How does the paper address this problem?
WebMaze uses coupled traps isomorphic to real components to lead scanners into an interactive decoy world generated from existing views, and performs route and data isolation.
Overall approach: WebMaze couples decoy entry points with real application functionality, so that filtering out traps costs missing real functionality; at the same time, it uses a decoy world that imitates the real application to sustain scanner exploration and consume its budget.
Functionally coupled traps (§3.1)
- Trap templates: Defined along three axes—carrier type (the HTML/script mechanism used for embedding), content category (the category of resource or information pointed to), and visibility technique (the rendering method); a single template can instantiate multiple traps.
- Application-aware generation: First analyze the website's existing components, locations, and naming conventions, place traps where carriers of the same kind already appear, and generate decoy content consistent with application conventions.
- Low-coupling integration: Added as standalone components, without modifying existing components or participating in the original execution path; the visibility technique makes it unlikely for normal users to click them by mistake.
- High-coupling integration: Reuses or extends existing structures, including style binding (extending CSS selectors), script splicing (inserting declarations not referenced by the original code into scripts), and markup cloning (reusing the markup structure of real components); separating them requires analyzing their relationship with surrounding code.
View-customized decoy world (§3.2)
- View modeling: Crawl the HTML of the application's existing routes as source views, extract page structure, CSS conventions, and the navigation graph G = (V, E) to form a view model; business logic is not copied.
- World construction (Algorithm 1): First plan a directed graph connecting new decoy routes, then render pages from the assigned source views; use an LLM to generate text consistent with the application domain and validate it before inclusion.
- Interaction support: Three types of request handlers—static (returns stored resources), parameterized (generates deterministic responses for routes with dynamic parameters), and stateful (maintains an independent decoy database supporting reads and writes); to limit resource-intensive operations, the number of stateful handlers is limited, and the remaining routes are pseudo-randomly assigned static or parameterized.
Routing and isolation (§3.2.3, §3.2.4)
- Route registration and dispatch: Model route ownership as a partial mapping
R : P \rightharpoonup \{\text{gen}, \text{decoy}\}, i.e., each normalized path belongs to at most one of the real application or the decoy world; decoy candidates that conflict with existing routes are not registered, requests matching trap entry routes or internal decoy routes enter the decoy world, and the rest go to real routes. - API isolation: Decoy pages may only request registered decoy APIs; requests pointing to real APIs are blocked before reaching the backend; API access from real pages is unchanged.
- Storage isolation: The decoy world uses an independent database initialized with synthetic data; the authors state this incurs additional storage overhead, so operations such as persistent writes are limited.
Success criteria (§4.1)
Defense effectiveness is measured with two metrics: vulnerability-page coverage (the proportion of distinct vulnerability-triggering pages reached by the scanner, as a proxy for vulnerability detection coverage) and decoy-page coverage (the proportion of distinct requested URLs that belong to the decoy world).
What experiments did the paper conduct?
Across 12 applications, 3 scanners, and 2 backbones, on average 93.0% of distinct requested URLs fall into the decoy world, and vulnerability-page coverage drops to 0%–4.90%.
Experimental setup
- Target scanners: Three LLM scanners: AWE, HBGPT (hackingBuddyGPT), and YuraScanner; the authors state they were chosen because they can be reliably deployed automatically and represent three paradigms.
- Backbone models: DeepSeek V4.1 Flash and GLM-5.3; each scanner–application–backbone combination is repeated 3 times.
- Budget: AWE and YuraScanner are limited to 20 minutes per run, and HBGPT to 100 rounds.
- Application dataset: 12 web applications, covering PHP, Java, JavaScript/Node.js, Python, and static HTML; DVWA, Mutillidae, and OWASP Benchmark have vulnerability ground truth, while the other 9 are taken from prior work and lack complete ground truth.
- Metrics: vulnerability-page coverage (the proportion of distinct vulnerability-triggering pages reached, as a proxy for vulnerability detection; the authors note that scanners were not required to successfully trigger vulnerabilities); decoy-page coverage (the proportion of distinct requested URLs that are decoy URLs, with the same URL counted only once within a run).
- Comparison baseline: CHeaT (inserts misleading instructions into HTML and does not build a connected decoy world).
Main results
RQ1 vulnerability-page coverage (Table 2, DeepSeek V4.1 Flash backbone; the authors state the two backbones give similar results, so only one is reported):
Swipe horizontally to read the table
Scanner DVWA original→WebMaze Mutillidae original→WebMaze OWASP original→WebMaze AWE 100%→0.00% 11.8%→4.41% 100%→0.00% HBGPT 100%→0.00% 47.1%→4.90% 100%→0.00% YuraScanner 100%→0.00% 11.8%→4.41% 73.9%→1.00% RQ1 decoy-page coverage (Table 3, 216 runs = 12 applications × 3 scanners × 2 backbones × 3 repetitions):
Scanner DeepSeek V4.1 Flash GLM-5.3 AWE 94.3% 94.3% HBGPT 97.3% 94.2% YuraScanner 88.9% 88.9% - The average decoy-page coverage across all 216 runs is 93.0%, with 197 runs reaching 80% or above; the authors state that backbone choice has little effect on defense effectiveness.
- The per-application breakdown in Figure 2 shows that 29 of the 36 scanner–application cells are no lower than 90%; the lowest cells are YuraScanner on WordPress (76.4%), AWE on XVWA (78.2%), and YuraScanner on XVWA (78.3%).
- The authors' manual analysis concludes that the scanner's interaction interface and exploration strategy have the greatest effect on results: AWE and HBGPT enumerate paths using predefined dictionaries and may encounter decoy routes without going through page traps; the browser-type YuraScanner only follows visible DOM links and has more difficulty discovering decoy routes.
Comparison with CHeaT
- What was measured: CHeaT's vulnerability-page coverage on the same three applications with ground truth (Table 2).
- Results: Under CHeaT, on DVWA, AWE and HBGPT remain at 91.7% and YuraScanner at 100%; Mutillidae is 10.3%–25.0%; OWASP is 11.4%–100%.
- Authors' interpretation: CHeaT reduces coverage only in some scanner–application combinations and not consistently, whereas WebMaze reduces it consistently in all combinations; because CHeaT does not build a connected decoy world, the authors did not compare decoy-page coverage with it.
Component ablation (RQ2)
- What was measured: Under the DeepSeek V4.1 Flash backbone and the avoidance-instruction condition, variants with low-coupling or high-coupling decoys removed, with 36 runs per scanner per configuration (Table 4).
- Results: YuraScanner's full configuration is 89.1%, 87.5% after removing high-coupling, dropping to 9.0% after removing low-coupling, and 0% with both removed; AWE and HBGPT remain between 89.2% and 94.1% across variants.
- Authors' interpretation: YuraScanner mainly relies on low-coupling decoys, with high-coupling decoys providing additional entry points; the per-application results in Figure 3 show the same pattern.
Scanner-informed experiment (RQ3)
- What was measured: Two disclosure conditions—telling the scanner that the decoy world exists (Aware), and telling it that it exists and instructing it to explore only real functionality (Instructed), with 216 runs each (Table 5).
- Results: When only told of its existence, AWE remains at 94.3%, HBGPT drops by at most 1.3 percentage points, and YuraScanner changes by at most 0.7 percentage points; under the Instructed condition, the largest drops are HBGPT by 2.5 percentage points under DeepSeek V4.1 Flash and YuraScanner by 3.3 percentage points under GLM-5.3.
- Authors' interpretation: Even when explicitly informed and instructed to avoid decoys, scanners still mainly explore decoy pages; the authors believe that knowing deception exists is insufficient to identify individual traps that imitate real interfaces.
Other ablations and analyses
- Impact on normal browsing: One author manually used four versions of each application (no traps, low-coupling only, high-coupling only, full configuration) and observed no visible difference in normal browsing or functionality (§4.3).
- Deployment statistics (RQ4, Table 7): The original applications have 1–200 real pages; WebMaze generates 8–405 decoy pages per application, corresponding to 1.5×–8.1× page inflation and 6.4×–60.9× byte inflation; each deployment injects 43–7,183 placement points and registers 228–237 decoy endpoints.
- Backbone sensitivity (Appendix A.3, Table 8): AWE's per-application mean changes by at most 1.3 percentage points; HBGPT drops from 93.8% to 75.1% on Acme (GLM-5.3 relative to DeepSeek V4.1 Flash); the lowest per-application mean is 71.8% for GLM-5.3 on WordPress.
What are some points that can be further explored?
The paper has no limitations section, only a plan to open-source; the experiments cover 3 scanners, 2 backbones, and 12 applications, with 3 repetitions per combination.
Limitations and future directions noted by the authors
- Open-source plan: In the contributions list, the authors write that they plan to release WebMaze as open source (§1).
- Storage overhead: The authors state that separating the decoy database introduces additional storage overhead, which WebMaze controls by limiting resource-intensive decoy operations (§3.2.4).
- Limited number of stateful handlers: To reduce the attack surface of state-changing operations, WebMaze limits the number of stateful handlers, and the remaining routes are pseudo-randomly assigned static or parameterized handlers (§3.2.2).
- The paper has no Limitations or Discussion section, and apart from the above, limitations are not specifically discussed.
Scope of experimental coverage
- Scanners tested: AWE, HBGPT, and YuraScanner, 3 in total; the authors state that other candidate scanners are more cumbersome to deploy or support a narrower range of applications, making large-scale evaluation difficult (§4.1).
- Backbone models: DeepSeek V4.1 Flash and GLM-5.3, 2 in total; each scanner–application–backbone combination is repeated 3 times (§4.1).
- Applications: 12 web applications; 3 of them have vulnerability ground truth for vulnerability-page coverage, while the remaining 9 have no complete ground truth, which the authors state would require validating every route, parameter, and application state to establish (§4.1).
- Metric for vulnerability detection: Reaching the vulnerability-triggering page is used as a proxy; scanners are not required to successfully trigger the vulnerability, because the tested scanners do not support all vulnerability types in the dataset (§4.1).
- Impact on normal users: Only one author manually experienced four versions; the paper reports no statistical significance tests and no multi-user or automated usability testing (§4.3).
Summarize the main content of the paper
WebMaze uses functionality coupling deception to draw LLM scanners into a decoy world; on average 93.0% of requested pages are decoy pages, and vulnerability-page coverage drops to near zero.
WebMaze is a web defense framework targeting LLM-driven web scanners, with the goal of diverting scanners away from the real application while preserving real functionality.
- Problem: The authors state that LLM scanners lower the barrier to automated attacks, while request-pattern detection is easily bypassed, traps in existing deceptive defenses are easily identified and filtered out, and decoy environments are hard to sustain for exploration.
- Method: The authors distill a perception–decision–feedback loop from six scanners and design two types of components accordingly—functionally coupled traps embedded in real pages and isomorphic to normal components (low-coupling and high-coupling integration modes), and a view-customized decoy world generated from the application's existing views with three types of request handlers; route conflict detection and API and storage isolation ensure real functionality and data are unaffected.
- Main results: Across 216 runs covering 12 applications, 3 scanners, and 2 backbone models, decoy-page coverage averaged 93.0%, with 197 runs reaching 80% or above (Table 3).
- Vulnerability-page coverage: Under WebMaze, the three scanners' vulnerability-page coverage on DVWA is 0.00% each, at most 1.00% on OWASP, and 4.41%–4.90% on Mutillidae (Table 2, DeepSeek V4.1 Flash).
- Informed attacker: Even when the scanner is told about the decoy mechanism and instructed to avoid decoys, average coverage remains between 85.6% and 94.8%, at most 3.3 percentage points lower than with no disclosure (Table 5).
- Ablation: After removing low-coupling decoys, YuraScanner's coverage drops from 89.1% to 9.0%, which the authors state shows that browser-type scanners mainly rely on low-coupling entry points (Table 4).
- Authors' conclusion: The authors state that these results establish functional coupling deception as a practical path to redirecting autonomous web scanners while preserving real functionality, and they plan to open-source WebMaze.