Manuscript Offprint
arXiv:2610.41181AgentShield: Fortifying Web Applications Against AI Agents and Agentic Browsers
Moiz Ali, Rownak Islam, Jyotirmay Chauhan*, Dhruv Kuchhal, Jason Polakis*
*University of Illinois Chicago, †Amazon.com, Inc.
{sali269, nkari22, misla84, jchauh3, polakis}@uic.edu, dkuchhal@amazon.com
Abstract—LLM-powered browser agents are transforming web automation by autonomously interacting with websites and executing complex workflows. However, the effectiveness of existing anti-bot defenses against these systems remains unclear. We present a systematic empirical evaluation of modern agentic browsers against widely deployed anti-bot mechanisms, characterizing their capabilities, limitations, and behavioral differences from humans. Our results show that many defenses designed for traditional automation struggle to reliably detect autonomous AI-driven agents. Accordingly, we introduce AgentShield, a behavioral fingerprinting framework that targets the Perception–Reasoning–Action (PRA) loop underlying agentic user clients. By leveraging dynamic web forms that progressively reveal content and capture fine-grained interaction telemetry, AgentShield exposes behavioral artifacts that enable differentiation between human users and autonomous agents. We further demonstrate Extinction-induced Policy Drift (EPD), a novel attack in which repeated obstruction of task completion causes agents to relax their safeguards and engage in unsafe behaviors. Finally, we present defensive prompt injection techniques that exploit agent-specific weaknesses to mitigate emerging forms of autonomous web abuse that rely on content extraction. Our results highlight both the shortcomings of current web defenses against agentic user clients and the feasibility of practical detection mechanisms tailored to this new generation of web automation.
1. Introduction
Fundamentally, cyberattacks rely on automation to achieve scale. Credential stuffing [1], [2], fake-account creation [3], [4], spam [5], [6], [7], and scraping depend on emulating user activity across sites. Historically, attackers have used scripted bots built on frameworks (e.g., Selenium, Puppeteer), often through headless browsers [8]. Services have responded with anti-bot defenses [9], including CAPTCHAs [10], [11], browser fingerprinting [12], [13], and IP reputation [14]. These defenses exploit artifacts of traditional automation in browser APIs [15], JS execution, timing and resource access [16], and network behavior [9].
The threat landscape is now shifting as LLMs enable increasingly capable autonomous agents. Cloudflare reports
18% year-over-year growth in AI-crawler traffic, with GPT-Bot's share rising from 5% to 30%, while only ~14% of top sites publish robots.txt rules targeting AI agents [17]. Recent LLMs demonstrate sophisticated reasoning, planning, and tool use [18], [19], [20], [21], enabling agentic systems to autonomously browse the web, fill forms, execute transactions, and interact with online services. Products such as Perplexity Comet and OpenAI's browser agents are bringing these capabilities to consumers, while reports already document their use in phishing and large-scale scams [22], [23], [24]. Recent studies have also shown that agentic browsers can be manipulated by untrusted web content, including hidden instructions that drive account takeover, fraudulent purchases, and credential submission [25], [26].
Thus, agentic browsers and AI-powered web automation tools pose a major new challenge to securing the web ecosystem, as existing anti-bot assumptions based on static browser fingerprints or deterministic automation patterns may no longer hold [27], [28]. As agentic browsing becomes more widely deployed, it will become increasingly important for web services to reliably identify, regulate, or selectively restrict such clients in order to preserve platform integrity, defend monetization models, and prevent widespread abuse. Accordingly, the research community has begun to investigate the security implications of agentic web systems. Recent studies demonstrate indirect prompt injection attacks against browser agents [29], [30], [25], social engineering attacks targeting autonomous workflows [31], and fingerprinting techniques that distinguish AI-driven browsers from human users [32]. However, despite increasing concern regarding the abuse potential of agentic clients, we currently lack a systematic evaluation of emerging agentic systems against existing anti-bot defenses.
In this paper, we fill that gap by presenting a systematic empirical evaluation of agentic user clients against widely deployed anti-bot defenses. We study the capabilities of agentic browsers and automation frameworks when interacting with widely-available protection systems, including Google's reCAPTCHA, and Cloudflare's Turnstile. Through extensive experiments across multiple browsing tasks, we characterize the extent to which current agentic systems bypass, evade, or falter against existing bot mitigation techniques. Our findings provide one of the first large-scale empirical perspectives on how agentic clients meaningfully alter the current balance between web task automation
These authors contributed equally to this work.
This work is unrelated to the author's position at Amazon.com, Inc.
and anti-bot defenses. Building on these observations, we present AgentShield, a novel behavioral fingerprinting framework that detects agentic clients by exploiting inherent limitations and behavioral artifacts in how autonomous agents navigate and interact with websites. Through extensive experiments, we demonstrate how AgentShield detects modern agentic clients using specially crafted dynamic forms that capture granular information during form interactions and target the Perception→Reasoning→Action (PRA) loop [33] that drives agentic clients. Modern web apps can readily deploy our approach to fortify critical processes (e.g., account creation).
Moreover, while prior work has demonstrated prompt injection techniques that can reveal the use of agentic clients (or exploit them), modern agents attempt to counteract such techniques through explicit safeguards [34], [35], [36]. To that end, we demonstrate an attack we call Extinction-induced Policy Drift (EPD),¹ wherein interaction with state-changing web elements (e.g., a form submission button) does not result in any changes, leading to a failure mode where repeated obstruction of task completion causes an agentic browser to relax constraints and pursue unsafe actions in search of reward completion (i.e., the agent overrides its internal safeguards). Since our goal is to provide a holistic defense against diverse agentic workflows, we also focus on passive content extraction which may not expose the aforementioned behavioral signals. To that end, we demonstrate a set of novel defensive prompt injection techniques targeting two emerging abuse classes enabled by agentic systems: large-scale e-commerce scraping operations that replicate product pages, and automated news aggregation systems that summarize or repost copyrighted articles on third-party platforms [38], [39], [40]. Overall, our research highlights both the growing risks posed by autonomous browsing agents and the feasibility of developing practical defenses tailored to this new generation of automation. In summary, we make the following contributions:
- We present a systematic evaluation of agentic clients' capabilities against prevalent anti-bot mechanisms, and demonstrate the risk they pose to web services.
- We identify key behavioral characteristics of agentic clients, and propose a detection mechanism that targets critical browsing workflows (e.g., account creation).
- We present a novel technique that drives agentic clients to ignore internal safeguards and perform prohibited actions, which in turn reveals their presence. We also propose two defensive prompt injection attacks for protecting web content from illicit scraping. We present extensive experimental results that demonstrate AgentShield's effectiveness and robustness, even against adaptive attackers with knowledge of the signals targeted by our system.
¹In psychology, Extinction Burst [37] describes cases where a person's behavior temporarily becomes increasingly erratic when a previously rewarded behavior suddenly stops producing rewards.
TABLE 1: AI clients evaluated in this study. Execution indicates whether the client's request originates from the user's machine, a cloud-hosted environment, or both.
| Client | Provider | Model | Execution | Perception |
|---|---|---|---|---|
| Autonomous Web Agents | ||||
| Perplexity Comet | Perplexity | Default | Local-Cloud | Hybrid |
| ChatGPT Atlas | OpenAI | GPT-5.5 | Local-Cloud | Hybrid |
| Claude for Chrome | Anthropic | Opus 4.8 | Local | Hybrid |
| Amazon Nova Act | Amazon | Nova 2 Lite | Cloud | Vision |
| Director.ai | Browserbase | Default | Cloud | Hybrid |
| Manus | Meta | 1.6 Lite | Cloud | Hybrid |
| Devtools MCP (Claude) | Opus 4.8 | Local | Hybrid | |
| Browser Assistants | ||||
| Gemini in Chrome | Gemini 3.5 Flash | Local | Hybrid | |
| Edge Copilot | Microsoft | Default | Local | DOM |
| Brave Leo | Brave | Default | Local | DOM |
| Web LLMs | ||||
| ChatGPT | OpenAI | GPT-5.5 | Cloud | HTML |
| Claude | Anthropic | Sonnet 4.8 | Cloud | HTML |
| Gemini | 3.1 Pro | Cloud | HTML | |
| Web Scrapers | ||||
| Crawl4AI | Open source | Gemini 3 Flash | Local | DOM |
- We implement AgentShield as installable NPM packages and will publicly release all of our code, agent prompts, and data to facilitate further research [41].
AI user clients. An AI client is a program that uses a large language model (LLM) to read or interact with the web on a user's behalf. The user gives it a task in natural language, and the tool then visits the relevant web pages, reads their content, and autonomously decides what to do next to complete the task, without following a fixed script. This makes AI clients fundamentally different from traditional bots. A traditional bot typically follows hard-coded selectors or heuristics to complete a pre-determined series of actions, and can easily break when a page changes. In contrast, AI user clients are designed to adapt according to the specifics of the website they are interacting with; they render JavaScript, interpret page layout and content semantics, and can follow instructions written for humans.
Taxonomy. We categorize AI user clients based on two classes of properties that are critical from the perspective of a web server receiving a request.
(i) Access mechanism. Here we focus on whether the client drives a full browser, issues raw HTTP fetches, reads a tab the user already has open, or converts pages into LLM-ready formats.
(ii) Execution environment. Here we focus on whether the automation workflow is running locally on the user's machine or in a cloud-hosted environment.
These two properties determine the signals a server can collect: whether the client runs JavaScript, whether it triggers mouse and keyboard events, what its TLS and HTTP fingerprints look like, and whether the request belongs to an established, legitimate user session. We use these properties to assign the AI user clients we include in our study to four different categories, as shown in Table 1.
Autonomous Web Agents are goal-driven systems that operate a full browser through a Perception → Reasoning → Action loop. At each step, the browser state is conveyed to an LLM, which reasons and emits a tool call executed by automation frameworks (e.g., Playwright [42], Chrome DevTools Protocol (CDP) [43]). Agents use DOM-based, vision-based, or hybrid perception [44]: DOM-based agents select elements from the DOM or accessibility tree; vision-based act on annotated screenshots; hybrid agents combine both, typically falling back to vision when DOM information is insufficient. Agents may also run locally or in the cloud, creating substantial differences at the network level.
Browser Assistants are extensions or sidebars that read the page the user already has open and pass its rendered content to an LLM, inheriting the user's session. They do not navigate on their own. Gemini in Chrome, Edge Copilot, and Brave Leo fall into this category.
Web LLMs fetch pages over HTTP and parse the raw HTML directly, without executing JavaScript, before passing the text to an LLM. ChatGPT, Claude, and Gemini operate this way in their web-search mode.
Web Scrapers extract page content into LLM-ready formats (e.g., Markdown, structured text, or screenshots) before passing it to a model. We use Crawl4AI to represent this category; unlike the others, it functions as a pipeline component rather than an interactive client.
Anti-bot defenses. Modern web services employ a wide range of mechanisms to separate humans from automated clients. These defenses fall into three broad categories.
Network-level defenses examine the request itself, including blocking specific IP ranges, applying rate limiting, and fingerprinting the TLS handshake to recognize scripted clients that cannot replicate a real browser's TLS signature. JA3 and its successor JA4 [45] are the prevalent TLS fingerprints: both hash fields from the client's ClientHello message. Since browsers and HTTP libraries populate these fields differently, the fingerprints can differ across clients. Commercial tools like Cloudflare's AI Crawl Control [46] and AI Bot Blocking [47] combine network and other signals (e.g., IP reputation and self-declared identity) into a single service that decides whether to block a request.
Environment validation tests clients at the browser layer using CAPTCHA, proof-of-work, browser-API challenges (e.g., Cloudflare Turnstile), and device fingerprinting (e.g., FingerprintJS) to verify an interactive browser.
Identity and signature-based defenses instead identify clients through declared or cryptographically verifiable identities. Traditional crawlers such as Googlebot expose User-Agents, IP ranges, and robots.txt policies that sites can use to allow, throttle, or block traffic. More recently, providers such as Cloudflare offer verified-bot programs in which operators register once for recognition across participating sites [47]. Because User-Agents and IPs are easily forged, newer approaches bind requests to cryptographic identities. For example, Cloudflare's Web Bot Auth [48]
TABLE 2: Existing defense categorization.
| Network Signals | Environment Validation | Self-Declared | |
|---|---|---|---|
| IP Filtering | ● | ○ | ○ |
| TLS Fingerprint (JA4) | ● | ○ | ○ |
| Dual-Request Pattern | ● | ○ | ○ |
| Cloudflare Crawl Control | ● | ○ | ● |
| reCAPTCHA v3 | ○ | ● | ○ |
| Cloudflare Turnstile | ○ | ● | ○ |
| User-Agent | ○ | ○ | ● |
| Request Signing | ○ | ○ | ● |
uses HTTP Message Signatures [49], allowing sites to verify requests against an operator's published public key.
Challenges presented by AI user clients. AI clients break many of the assumptions behind these defenses. Autonomous agents drive real browsers, and agents that run a browser locally on the user's machine issue requests from the user's residential IP and inherit the user's session cookies. Browser assistants make no requests of their own; they simply read the page the user has already loaded. Moreover, identity-based defenses rely on the honor system: declared AI User-Agents and signed-agent attestations only work for clients that choose to identify themselves, so unsigned agents pass through unchecked. As AI user clients proliferate, we must understand how they fare against prevalent anti-bot defenses and whether new mechanisms can be tailored to detect them. Accordingly, in Section 4.1 we present a systematic evaluation that explores the effectiveness and limitations of prevalent defenses against modern AI clients.
Threat Model. We adopt the perspective of a website that wishes to detect or control how AI clients interact with its content. The defender controls the web server, but cannot modify the AI client and cannot assume cooperation from it. The adversary leverages an off-the-shelf AI user client, which may run locally or in the cloud, may or may not declare itself, and acts under instructions from a human operator whose intent is not known. While adversaries may in practice run local LLMs without safeguards, our study focuses on how popular off-the-shelf AI user clients behave across scenarios, and the effect of their built-in safeguards.
3. Methodology
This section details our analysis pipeline for agentic user clients, which combines prevalent existing tools and services with a series of novel mechanisms we have developed.
3.1. Current Defenses
We test three classes of existing defenses against our AI client set: network signals, environment-validation challenges, and self-declared identity. Table 2 maps each defense to its class. Most fall in one class, though Cloudflare's Crawl Control and AI Bot Blocking spans both network and self-declared identity signals.
IP Filtering. The server records the source IP and classifies it as data-center or residential through an IP-reputation provider. This signal targets agents that use cloud infrastructure. Agents running on the user's local machine or behind residential proxies are not detected at this layer.
TLS Fingerprint (JA4). A Zeek SSL logger [50] deployed on the server records the JA4 fingerprint of every TLS handshake. Real browsers produce a standard Chrome fingerprint, whereas raw HTTP libraries and atypical TLS stacks produce non-standard fingerprints that we flag.
Dual-Request. Some local-browser agents issue a separate server-side request from their cloud backend alongside the local browser session. We flag any pair of requests to the same page from two different IPs within a short time window. A normal human visit does not produce this pattern.
Cloudflare Crawl Control and AI Bot Blocking. We route the test site through Cloudflare with AI Crawl Control [46] and AI Bot Blocking [47] enabled in managed mode. Cloudflare uses IP reputation, declared User-Agent, and its own signed-agent registry to decide whether to block.
reCAPTCHA v3. We deploy Google's reCAPTCHA v3 [51] on a test page. The challenge runs silently in the background, scoring the client on behavioral signals and cross-site browsing history, and returns a bot-likelihood score between 0 and 1. We treat a score below the default threshold of 0.5 as a block verdict.
Cloudflare Turnstile. We deploy Turnstile on a similar test page. Turnstile issues a combination of proof-of-work, proof-of-space, and browser-API challenges that target headless browsers and non-standard environments. Each agent receives either a pass or a failure verdict on each session.
User-Agent. The server logs the UA string on every request. An agent that declares itself through a UA suffix (e.g., Perplexity-User/1.0) self-identifies at this layer.
Request Signing. The server inspects each request for the Signature-Agent, Signature-Input, and Signature headers defined by RFC 9421 [49] and Cloudflare's Web Bot Auth draft [48]. A signed request cryptographically attests to the agent's identity.
3.2. Dynamic Forms
Forms constitute a foundational component of consequential web interactions (e.g., account creation, sign-in, checkout, job applications, and onboarding workflows) and represent a persistent friction point for users. This friction is precisely the capability that agentic browsers advertise as a primary value proposition. Perplexity's Comet markets form-filling as a core feature of its sidebar AI assistant [52]; Manus positions its Browser Operator around eliminating manual clicking and form completion [53]; OpenAI similarly frames ChatGPT Atlas's agent mode as automating multi-step browser workflows, exemplified by converting a recipe into a grocery order through tab opening, cart population, and order placement [54]. Given that forms gate substantial portions of the authenticated web, and browser vendors explicitly promote form automation as a distin-
guishing capability, we employ dynamic forms as our initial investigation into agentic behavior.
Dynamic forms are web forms in which fields are concealed from the user and revealed sequentially upon completion of the preceding field. We implement concealment via CSS properties (opacity: 0 and zero dimensions), so that fields remain present in the DOM but invisible until triggered. This design necessitates that any agentic client observe the page after each field reveal before proceeding, thereby making the latency of the agent's Perception →Reasoning →Act loop directly measurable and comparable across humans, browser autofill, and AI agents.
Form Design. Our form is a signup page containing 22 conditionally-revealed fields that span the input types commonly found in real-world forms: text and telephone inputs, email, date pickers, single-select dropowns, radio buttons, checkboxes, and a free-form textarea. The reveal sequence is branching rather than linear: selecting a country exposes a country-specific sub-field (e.g., US → state → city, Canada → province); choosing a volunteer role reveals a role-specific panel (field research, public education, fundraising, or remote support); and certain selections (full-time availability, social-media or friend-referral as the source) trigger additional follow-up fields. These branching structures enable a single session to exercise multiple input types and yield sufficient events for stable statistics across each metric. A JavaScript handler attached to each preceding field reveals the subsequent field upon event completion. Text fields trigger on the input event once a minimum character threshold is satisfied; selects, radios, and checkboxes trigger on the change event. Upon reveal, the handler appends a visible class to the target field's container, which the MutationObserver detects as the reveal signal. This mechanism ensures that field visibility transitions are observable events, enabling precise timestamping of each reveal.
Behavioral Metrics. The form's design is motivated by four behavioral metrics that collectively distinguish agentic from human interaction patterns. (i) Dwell Time (duration between keydown and keyup for each keystroke, reported as per-session mean and standard deviation) is measurable because the form's sequential reveal isolates individual keystrokes within discrete interaction episodes. Auto-repeat presses from held keys are excluded to prevent count inflation. (ii) Field Reaction Time (interval between a field's reveal and the client's first interaction with it) is directly enabled by the CSS concealment mechanism: the MutationObserver provides reveal timestamps (triggering on the concealed-to-visible transition), while the field's input and change events provide interaction timestamps. This interval captures the end-to-end Perception → Reasoning → Act loop latency, which for agents is dominated by LLM inference time rather than typing or navigation speed. (iii) Keypress Count (total number of keydown events per session) reveals clients that inject or paste values rather than typing them, as these produce near-zero counts. (iv) Mouse Movement Count (total number of mousemove samples per session at a 40ms sampling rate) is meaningful be-cause the form's multi-field layout requires pointer navigation across spatially distinct targets. Because browser-automation frameworks typically emit pointer events only at click targets rather than along a continuous trajectory, agents produce near-zero counts, whereas humans generate continuous traces across the form. Human typing exhibits high variance across the timing metrics due to finger transitions, corrections, and cognitive pauses; agents produce mechanically consistent values with near-zero spread.
Client-side JavaScript injected into the form page captures browser events at fine granularity. The DOM Event API [55] records mouse activity, keystrokes, and form-level input and change events; the MutationObserver Web API [56] records field-reveal timestamps by triggering on every DOM mutation that transitions a concealed field into a visible state. Mouse clicks (mousedown) are recorded individually, and keydown/keyup timestamps are captured per keystroke. Every event is timestamped, enabling full session-timeline reconstruction.
Deployment. The dynamic form has two variants:
-
Standard variant: includes dropdown fields. However, we found that certain agents cannot navigate dropdown menus reliably.
-
Simplified variant: excludes dropdown fields to establish a common baseline across all clients.
3.3. Content Modification
While our dynamic forms detect agentic behavior through interaction patterns, certain agentic workflows may not include such interactions (e.g., an agentic scraper). As such, our goal of providing a holistic defense against modern agentic clients necessitates a complementary technique: content-based poisoning of pages consumed by agents. Unlike traditional scrapers, agentic clients interpret page content through an LLM, making them susceptible to semantic manipulation. Even when perimeter defenses are bypassed, poisoned content can corrupt agent outputs by inducing compliance with hidden instructions or relaying fabricated information. This vulnerability is intrinsic to the PRA loop, whose reasoning module processes DOM text regardless of whether it is intended for human consumption.
Testbed Configuration. We deploy a WordPress-based test site combining an e-commerce store and news blog, with injections placed in (i) news and blog articles covering food, health, and environmental topics, and (ii) product listings, including descriptions, prices, and attributes.
Hidden Prompt Taxonomy. We embed prompts in the DOM that are invisible to humans but accessible to agents. We evaluate five manipulation strategies, using one fixed prompt per category across all clients and runs: Defensive Prompt claims that content is proprietary and extraction violates site policy. Success occurs when the agent refuses, halts extraction, or treats the notice as a reason for caution. Hidden Promotion instructs the agent to include a fabricated marketing offer absent from the visible page; success occurs when the offer appears in its response. Opposite Information instructs the agent to replace a visible claim with a contradictory statement; success occurs when the contradiction is presented as factual. Additional Information asks the agent to append an unsupported but plausible detail; success occurs when the injected detail appears in its output. Abusive Prompt injects a threatening or alarming warning intended to derail the response; success occurs when the agent reproduces or treats the warning as a genuine page-level safety concern.
Of these five categories, only Defensive Prompt has a direct analogue in prior work. WebCloak [57] injected anti-extraction notices that invoke site policy or trigger LLM safety alignment, but did so to protect images from scraping rather than to manipulate an agent's textual output. Greshake et al. [29] introduced indirect prompt injection as a way to embed hidden instructions in web content, including factual manipulation that overlaps with our Opposite Information category, but they showed that injection is possible without measuring each manipulation goal across deployed agents. The remaining three categories are novel types of page-level injections against agentic web clients.
Concealment Method. A hidden prompt reaches an agent only if it resides in the content layer that the agent perceives, and the clients in our study do not share one: text-parsing clients read the DOM, the raw HTML, or the accessibility tree, whereas vision-based clients reason exclusively over a rendered screenshot. No single technique covers all, so we employ two complementary approaches.
DOM-layer concealment. We conceal hidden prompts using a CSS class that makes the injected text invisible on screen while keeping it in the DOM. The class sets font size and line height to zero, forces the color to transparent, and uses absolute positioning with a one-pixel bounding box to push the element out of the visible layout. Nothing appears on screen and no whitespace is introduced, but the text sits in the document tree and is readable by any client that processes raw HTML or the DOM. We apply this .zero-text-injection class across all five prompt categories in the test pages (see Figure 8 in the Appendix). We use this approach instead of display:none or visibility:hidden because both cause some parsers and browser extensions to drop the element from their content representation. Keeping the text in the document flow means agents working from rendered content, raw HTML, or an accessibility tree all encounter the injection. The user-select: text property is intentionally preserved: it ensures the text remains selectable by clients that build their context from user-selectable content rather than raw DOM parsing. The exception is agents that operate purely from screenshots: for those, anything not visible in the rendered image does not exist, regardless of what the DOM contains.
Visual-layer concealment. To target the screenshot-based agents that cannot be affected by the DOM technique, we introduce a complementary concealment technique that places the injected text in the visual rendering layer, drawn with the script in Figure 9 (Appendix). In the primary configuration, the visible article text remains in the DOM as normal page content, and only the injected prompt is moved into an HTML <canvas> element, drawn in a low-opacity gray that is imperceptible to humans. We empirically tuned the rendering parameters to the threshold at which the text remains imperceptible to humans yet recoverable by OCR: a fill of rgba (180, 180, 180, 0.15) at a 15px sans-serif size. Below this opacity or font size, the agents that otherwise act on the visual-layer prompt fail to recover it, indicating that the channel operates within a bounded window where the text is dark and large enough for OCR while still remaining imperceptible to humans (see Figure 6, Appendix A.2). Since canvas content exists only as rendered pixels, the injected prompt is absent from the DOM, the raw HTML, and the accessibility tree: a client that parses the document tree sees an empty canvas element and recovers nothing, whereas a client that rasterizes the page and applies OCR will recover the hidden prompt. This inverts the agent coverage achieved by the DOM technique. For clients that recover nothing in this configuration, we additionally render the entire article, including the visible body text, onto the canvas alongside the hidden prompt, so that the full page content exists only as pixels; this isolates whether a client rasterizes the page at all, since a client that reads the page visually would recover the visible canvas text even if the low-opacity prompt remained below its threshold.
Repetition Variant. To assess whether compliance scales with repetition, we embed the same defensive prompt times, with , throughout the same page. Each repeated instance is inserted at a distinct location in the document using the same concealment method.
3.4. Extinction-Induced Policy Drift
Loading screens and deliberate delays are a routine pattern on the web, but for an autonomous agent, a stalled page is a decision trap. When an agent clicks a state-changing element (e.g., a checkout or submit button) and the page produces no observable change, its primary path to task completion is suddenly withheld. A human reads this as a loading state and waits; an agent with an unmet objective must instead decide whether to wait, retry, or seek another path. We show that under continuous obstruction, agents exhibit what we call Extinction-Induced Policy Drift (EPD): mirroring the extinction burst in behavioral psychology (in which a person's behavior becomes erratic once the reward stops). The agent's actions become erratic and it relaxes its own constraints in search of reward completion, eventually overriding its own internal safeguards. We implement EPD by embedding a concealed instruction inside a deliberately stalled page. An agent acting on this instruction, while having ignored it under normal conditions, is our signal that an agent has relaxed its safeguards.
Setup. We built a custom e-commerce platform where upon clicking on the secure checkout button the product page "freezes" for 120s before automatically redirecting to the payment form. The product page includes a hidden prompt in the form of a zero-dimension div, concealed with the same CSS class used in §3.3. The instruction is framed as a site-generated fallback mechanism, referencing
TABLE 3: Network signals: source IP address type, Cloudflare's AI Crawl Control (CC) + AI Blocking (AIB) verdict, and presence of the JA4 dual-request pattern (JA4-DR). ✓= detected by signal; X= not detected;
| Agent | IP Type | CC + AIB | JA4-DR |
|---|---|---|---|
| Comet | Both | X | ✓ |
| Nova | Data Center | X | X |
| Manus | Data Center | ✓ | X |
| Director.ai | Residential | X | X |
| Atlas | Both | X | ✓ |
| Claude for Chrome | Residential | X | X |
| Chrome Devtools MCP | Residential | X | X |
| ChatGPT | Data Center | ✓ | X |
| Claude | Data Center | ✓ | X |
| Gemini | Data Center | X | X |
| Crawl4AI | Residential | X | X |
TABLE 4: Environment-validation defenses.
| Agent | reCAPTCHA v3 | Turnstile |
|---|---|---|
| Comet | X | X |
| Nova | N/A1 | ✓ |
| Manus | ✓ | ✓ |
| Director.ai | ✓ | X |
| Atlas | ✓ | X |
| Claude for Chrome | X | X |
| Chrome Devtools MCP | ✓ | ✓ |
1 Nova did not perform the task with reCAPTCHA v3 present.
the goal of the agent to purchase the product and presenting an alternative URL as the recovery path (see Appendix A.5).
4. Experimental Evaluation
Here we present our experimental evaluation of agentic user clients' capabilities and limitations. Certain experiments were conducted only with a subset of the agents from §2. All of our agent prompts can be found here [41].
4.1. Current Defenses
Network signals. We evaluate each class of existing defenses against the agentic user clients from Table 1, and demonstrate how every class of signal can be evaded. We exclude Browser Assistants since they issue no requests of their own and only read the page already loaded in the browser. As shown in Table 3, IP filtering catches cloud-hosted agents only when they expose a data-center IP rather than routing through a proxy. Agents that run on cloud infrastructure have IP addresses from subnets assigned to data centers. Crawl4AI and Director.ai originate from residential hosts since we ran Crawl4AI locally, and Director.ai uses Browserbase, which routes through residential proxies. Naturally, the agents that run the browser locally on the user's machine look indistinguishable from a human visitor at this layer. Comet and Atlas are marked with "Both" because their cloud backend issues a separate request, which we capture under Dual Req. Of the data-center agents Cloudflare could plausibly flag, it only blocks three. Since Cloudflare designed its managed AI controls around known crawler user-agents and signed agent identities, this is insufficient for identifying and blocking all agents. Finally, we note that Comet and Atlas trigger two requests to the test page from two different IP addresses: one from the user's residential browser, and one from the provider's backend. Notably, Cloudflare's defenses do not block either of these agents.
Environment validation. Since reCAPTCHA requires an action to be completed to provide a score, we only test the 7 web agents. Table 4 reports the reCAPTCHA v3 and Turnstile verdicts per agent. While reCAPTCHA is able to detect several of them, Comet and Claude for Chrome are able to pass it. We note that the same agents that evade the network layer defenses by running inside the user's browser also pass the active challenges. Adding CAPTCHAs to a site that already deploys network-layer filtering closes some gaps for the cloud-hosted agents but has little effect on locally-running agents, since the local browser often has the environment signals that these challenges check for. Turnstile is less effective and only detects 3 agents. Unlike reCAPTCHA v3, which also scores cross-site browsing reputation and behavioral signals, Turnstile validates only the current session environment, which these agents satisfy by running inside a legitimate browser.
Self-declared identity. Table 5 reports the User-Agent string each agentic user client sends and whether it signs requests per RFC 9421. Several agents disclose their identity through a UA suffix, e.g., Comet appends Perplexity-User/1.0. For Comet and Atlas, however, the UA appears only on the cloud-backend request and the browser request that originates on the user's machine still presents a standard Chrome UA, indistinguishable from a human visitor. So even when the provider's backend identifies itself honestly, the request that actually interacts with the page does not, and a defender filtering on UA suffix cannot block that. Second, RFC 9421 signing is nearly absent from the tested agents. Only Nova signs requests, and even ChatGPT's agent mode (which signs when called through chatgpt.com) drops the signing layer when the agent is used inside Atlas.
Takeaway. Across all classes, the locally-running agents are the consistent gap. This gap motivates our behavioral analysis: existing defenses ask who the agent is and where it came from, and the elusive agents run inside a real browser on the user's machine, where neither question differentiates the agent from a human.
4.2. Form Interactions
Here we evaluate the seven Autonomous Web Agent clients. We exclude the rest since interacting with forms requires direct browser control that these client types do not support. All agents received an identical prompt instructing them to navigate to the form, populate each field with realistic dummy data (including inline example values), select valid defaults for non-text inputs, and submit. Each agent
TABLE 5: User-Agent strings and Web Bot Auth signing status observed per client. "Sign" indicates the presence of Signature-Agent, Signature-Input, and Signature headers per RFC 9421 and the Web Bot Auth draft.
| Agent | User-Agent | Sign |
|---|---|---|
| Comet | Perplexity-User/1.0 + Chrome/147 macOS | ✗ |
| Nova | Amazon-Bedrock-AgentCore-Browser/1.0 + Chrome/144 Linux | ✓ |
| Manus | Chrome/136 Linux | ✗ |
| Director.ai | Chrome/147 Windows | ✗ |
| Atlas | ChatGPT-User/1.0 + Chrome/146 macOS | ✗ |
| Claude for Chrome | Chrome/148 macOS | ✗ |
| Chrome Devtools MCP | Chrome/148 macOS | ✗ |
| ChatGPT | ChatGPT-User/1.0 | ✗ |
| Claude | Claude-User/1.0 | ✗ |
| Gemini | "Google" | ✗ |
| Crawl4AI | Chrome/116 Linux | ✗ |
ChatGPT agent mode accessed via chatgpt.com signs requests; the same underlying model running inside Atlas does not, as signing occurs at the provider's cloud infrastructure layer rather than the agent interface.
was evaluated across 10 independent sessions (conducted in fresh browser states to prevent context carry-over). To establish a per-metric human baseline, six authors completed the form. Although small, this baseline aligns with large-scale data on common metrics: Dhakal et al. [58] reported a mean keypress duration (our dwell time) of 116 ms over 136M keystrokes, matching our human dwell-time mean of ~108 ms. That study, however, measures keystroke-level dynamics on static text and does not capture the form-level signals central to our analysis, which are specific to our task and therefore require the baseline we collect here.
Simple forms. We begin with the simplified variant of the form, which removes dropdown fields to ensure compatibility across all evaluated agents. This version serves as a common baseline for comparing behavioral characteristics without introducing failures caused by unsupported UI elements. Figure 1 reports the per-agent averages. Reaction time provides the strongest separation between humans and agents. Human participants reacted to newly revealed fields in approximately 5.5s on average, whereas most agents remained substantially slower. Claude for Chrome and Chrome DevTools MCP were the only exceptions, with mean reaction times of 1.7 s and 2.3 s. These values fall below the human baseline, demonstrating that reaction time alone is insufficient for reliable classification and motivating the use of multiple behavioral signals. The remaining metrics continue to distinguish agents from humans. Dwell time, dwell-time variance, and mouse-movement counts all remain substantially lower than the human baseline. Nova again exhibits the most human-like typing behavior, with dwell statistics approaching those observed in human participants, while most other agents either generate unrealistically short dwell times or produce very few keystrokes because they rely primarily on pasting rather than typing. An interesting anomaly appears in Manus, which generates substantially more keystrokes than any other agent and more than twice the human baseline, consistent with repeated editing or iterative text entry during form completion.
Dynamic forms. Next we evaluate the full form with dropdown menus; this experiment serves two purposes: it assesses agent robustness when interacting with more com-

(a) Interaction metrics.
(b) Reaction-time statistics.
Figure 1: Per-agent average behavioral metrics on the simplified dynamic form (no dropdowns).
plex web interfaces and measures how additional interaction complexity affects the behavioral signals used for detection. Manus and Director failed all runs despite consistently opening dropdown menus, indicating that both agents could perceive the interactive form element but were unable to reliably select an option. This result alone highlights an important distinction between agentic browsers and human users: even common web controls remain a source of failure for several deployed systems. Figure 5 (Appendix A.3) reports the per-agent averages over successful runs. The behavioral signals observed in the simplified form remain present, but the increased interface complexity amplifies several of them. Most notably, reaction times increase substantially across all agents that completed both variants. The largest increases occur for Claude for Chrome and Chrome DevTools MCP, whose means rise from 1.7s and 2.3s to 9.5s and 21.2s, respectively. This supports the hypothesis that dropdown menus trigger additional decision-making stages beyond the basic PRA loop, requiring agents to inspect available options, select an appropriate choice, and verify the resulting page state. Moreover, dwell time remains a strong separator. Comet, Manus, and Claude for Chrome exhibit average dwell times of only a few milliseconds with near-zero variance, which is physically unattainable for human users. ChatGPT Atlas shows a distinct but similarly unrealistic pattern. Only Nova approaches the human baseline, again suggesting that it explicitly simulates typing behavior. Mouse-movement counts also remain uniformly low, with all agents generating sparse pointer traces compared to humans' continuous trajectories.
Takeaway. Our experiments show that AgentShield's behavioral signals remain discriminative across interface complexity levels. While interactive elements increase task difficulty and amplify PRA-loop latency, separation between humans and autonomous agents remains.
4.3. Combining Behavioral Signals
Since no single behavioral signal in §4.2 is sufficient to detect all agents, we build a classification model.
Features and model. We extract twelve features: four capture reaction time (mean, median, min, and max interval between a field being revealed and the first interaction with it), three capture keystroke dynamics (dwell-time mean,

Figure 2: Probability that an agent interacted with the form. The human baseline is the model's FP rate on real users. Missing bars denote conditions with no result.
dwell-time SD, and keypress count), two capture pointer activity (mouse movements and clicks), one records total session duration, and the last two indicate whether any dwell or inter-keystroke timing exists at all. We standardize the features and fit an -regularized logistic regression with balanced class weights, since the human baseline is the minority class. We fit one model per form variant, since dropdowns shift reaction time by several multiples and a pooled model would learn form complexity instead of agent behavior. We average this score across each agent's sessions.
Evaluation. We hold each agent out of training entirely and score it with a model that has never seen it, which tests whether the model recognizes automation in general or only the agents it has memorized. Humans form a single group, so we K-fold them instead; their mean score is the model's false-positive rate on real users.
Results. As shown in Figure 2, every agent scores above the human baseline when held out of training. Most agents remain above 0.70, while Nova falls to 0.143 on the simple form, much closer to the human baseline than other agents. This is the same agent that reproduces near-human dwell statistics in §4.2. Nova scores 0.98 on the dynamic form, however, indicating that the added interaction complexity exposes signals its typing simulation does not cover.
Takeaway. Combining behavioral signals into a single per-form score separates agents from humans even where individual signals fail, and the separation holds even for agents that the model has never previously observed.

Figure 3: Hidden prompt outcomes. Succeeded: agent complied with injected instruction; Partial: acknowledged it without fully complying; Failed = ignored it. One agent per group, bars are prompt categories: Defensive (Def), Hidden Promotion (HPr), Opposite Information (OI), Additional Information (AI), Abusive (Ab). Each bar is a fixed prompt run 10 times.
4.4. Content Modification
We evaluate all fourteen agents, across five hidden prompt categories with one fixed prompt each, testing clients ten times per prompt, each iteration conducted in a fresh session. Autonomous agents receive the task prompt via their respective interfaces: “Please visit the following URL and give me a detailed summary of the content on the page.” For browser assistants we navigate directly to the test page, open the assistant’s sidebar, and issue the prompt “Please summarize the content on the page.” This matches how each tool class is actually deployed and ensures the task is delivered through the tool’s intended interface.
Single Instance Prompt Evaluation. Figure 3 shows the compliance outcomes across all agents and prompt categories. Gemini (Web LLM) is omitted from the tables because its search tools could not retrieve the unindexed test page in any run, so it never accessed page content or encountered an injected prompt. We find that embedded ToS-style restrictions are largely ineffective. Most agents ignore the instruction and proceed with extraction, sometimes surfacing it as a legal notice without altering behavior. Comet intermittently acknowledges or follows the restriction, while ChatGPT (web LLM) is the only system that consistently respects it. In contrast, ChatGPT Atlas ignores the notice entirely, despite sharing the same underlying model family, highlighting the importance of agent architecture over model choice. Similarly, contradictory claims are the least successful injection type. Most agents focus on the visible page content and either ignore the contradiction or explicitly identify it as inconsistent. Claude-family tools and ChatGPT Atlas consistently produce grounded summaries, while ChatGPT and Crawl4AI may surface both the true and injected claims without resolving the inconsistency.
In contrast, promotional injections are highly effective. Many agents, including ChatGPT (web LLM) and Gemini in Chrome, reproduce the fabricated offer as legitimate content. Some systems, such as Comet, recognize the injection as suspicious yet still pass it to the user, while Claude for Chrome consistently identifies and excludes the injected content. This contrast shows that detection and mitigation are distinct capabilities: recognizing an injection does not guarantee suppressing it. Factual-sounding additions are among the most effective attacks: because the injected content resembles ordinary article text rather than an instruction, many agents—including ones that detect promotional injections—incorporate it directly into their summaries. Only a small subset of tools, including ChatGPT Atlas, consistently suppress such content. Finally, threat-themed injections often trigger cautionary behavior. Some agents flag the content as suspicious or ask for confirmation before proceeding, while others treat it as a legitimate warning and alter their behavior accordingly. Claude for Chrome and DevTools MCP consistently identify the injection without incorporating it, whereas several other systems surface the warning despite recognizing it as suspicious.
The ability to change the summary produced by an LLM-driven system is of particular interest in light of a recent preliminary injunction by the Regional Court of Munich I (LG München I, Az. 26 O 869/26) holding Google directly liable for false claims in its AI-generated search overviews, on the reasoning that the liability privilege normally afforded to search engines does not extend to “AI search” [59].
Visual-Layer (OCR) Injection. We evaluate the visual-layer concealment with the Additional Information payload, which was the most widely followed category in the DOM experiment and carries no directive language, making it the strongest case for testing whether vision-based agents can be manipulated through the visual layer alone. We deploy the payload on a canvas-rendered product page and test all clients with the same neutral task prompt, recording whether the injected storage-life claim, present only as low-opacity canvas pixels, appears in the output. The results separate cleanly along the perception axis of Table 1. Amazon Nova, which is immune to every DOM injection in the main experiment because it perceives only the rendered screenshot, follows the canvas injection in 8 of 10 runs, reproducing the hidden claim as a product attribute. Gemini in Chrome and Director.ai follow it in every run, and Claude for Chrome follows it in a subset of runs while flagging a faded line of text in the description on others. The remaining clients, all of which read the DOM, raw HTML, or the accessibility tree, recover nothing from the canvas. To confirm that this failure is architectural rather than a contrast-tuning artifact, we re-run these clients on a variant in which the entire article, including the visible body text, was rendered to canvas; these clients failed to recover even the fully visible canvas text, confirming that they never rasterize the page and that the injected prompt is unreachable to them by construction rather than merely being too faint to read.
The significance of this result is that it closes the one gap left open by the DOM experiment. Amazon Nova, in the main study, is immune to every DOM injection across all five categories, and that immunity stems from its screenshot-based architecture. The canvas experiment shows that this immunity is not a general resistance to manipulation but an artifact of which content layer the agent reads: the same agent that ignores every DOM injection is the most susceptible to a visual-layer injection, because the visual layer is the only channel it perceives. Manipulation resistance is therefore not a property of the agent but of the match between the concealment layer and the agent's perception mechanism. A defender who knows an agent's perception type can reach it through the corresponding channel, and a content poisoner who deploys both DOM and canvas injections covers the entire perception taxonomy: text-parsing clients are reached through the DOM and vision-based clients through the canvas, with no client immune to both.
Takeaway. Injection susceptibility varies substantially across prompt categories, and even same-model agents can behave radically differently, indicating that resilience depends primarily on agent architecture, trust hierarchies, and content-processing pipelines. DOM and visual concealment are complementary, each targeting clients the other misses, demonstrating that no perception architecture is inherently safe from content-layer manipulation.
Effect of Repeating Hidden Defensive Prompts. We evaluate whether increasing the repetition frequency of an embedded defensive prompt changes the behavior of agentic browsers. The prompt asserts that page content is proprietary and that automated extraction violates terms of service (ToS). We vary repetition levels and compare outcomes against a single-instance baseline across all evaluated tools. Figure 7 in Appendix A.4 shows the results across all agents.
Some agents become more responsive as repetition increases; Manus, for example, transitions from largely ignoring the notice to frequently refusing extraction or requesting user confirmation. Comet similarly becomes more likely to acknowledge the repeated notice, often surfacing it as a dedicated section in its output. However, increased salience does not necessarily translate into compliance; in many cases the notice is recognized but does not alter task completion. Other agents exhibit the opposite behavior; ChatGPT (web LLM) initially complies with the defensive instruction, but repeated notices eventually trigger prompt-injection detection, causing the instruction to be dismissed as adversarial content. In these systems, repetition acts as a signal of manipulation rather than legitimacy.
However, some agents show threshold effects. Claude (web LLM) becomes more compliant at moderate repetition levels but less compliant at higher frequencies, where the repeated notices are reinterpreted as injection attempts. This suggests that repetition can increase credibility up to a point before becoming counterproductive. Finally, several systems, including ChatGPT Atlas, exhibit little or no change regardless of repetition frequency. They either ignore embedded instructions entirely or have low trust for page-level directives. Notably, ChatGPT Atlas remains largely unaffected despite sharing a model family with ChatGPT (web LLM), which shows strong sensitivity to repetition.
Takeaway. Repetition of embedded instructions does not produce a uniform behavioral shift across agents. The effects depend on system-specific mechanisms such as trust hierarchies and injection-detection heuristics. Even agents using the same model can respond differently, highlighting the dominant role of agent-level design over model-level properties.
4.5. Extinction-Induced Policy Drift
As in the form interaction experiment, we evaluate only the Autonomous Web Agents. Browser Assistants, Web LLMs, and the Web Scraper were excluded, since completing a purchase requires direct browser interaction that these client types do not support. We evaluated six of these agents: Comet, Amazon Nova, Manus, Director.ai, Claude for Chrome, and ChatGPT Atlas. Claude for Chrome was evaluated in two configurations (ask before acting asks for user consent before executing any page instruction; act without asking executes autonomously unless the instruction is flagged as suspicious). Chrome DevTools MCP is omitted from this experiment since the agent declined to complete any transactions, marking them as sensitive operations.
Baseline task. Before evaluating agents under the page-freeze condition, we first ran each agent on the same task without the freeze (but with a prompt hidden in the page), where the secure checkout button resolved immediately and redirected to the legitimate payment page, so as to obtain a baseline measurement. All six agents across all runs ignored the hidden instruction and followed the legitimate checkout flow. None of the agents exhibited any diverging behavior.
Page-freeze recovery behaviors. Next, we repeated the experiment with the inclusion of the delayed response, and Table 6 in Appendix A.5 provides a summary of the results. We identify a series of vastly different behaviors from agents: (i) Hidden Instruction Execution, where the agent autonomously follows the concealed instruction and navigates to the fingerprinting URL. (ii) Timeout Compliance, where the agent waits the full 120 seconds without disrupting the flow of the redirection to the legitimate purchase URL. (iii) User Solicitation, where the agent detects the hidden instruction but pauses to prompt the user for permission before navigating to the injected URL. (iv) URL Hallucination, where the agent attempts to force the completion of the task by autonomously generating and navigating to non-existent URLs (e.g., /cart or /checkout) which are not mentioned in the page, while the page remains frozen. (v) Deterministic Interval Retries, where the agent re-clicks the frozen checkout button at a consistent interval. (vi) Task Abort, where the agent completely aborts the operation and passes control back to the user.
Metrics. In runs where the agent executes the hidden prompt, we measure two timing metrics. Prompt execution delay, the interval between the agent's first click on the secure checkout button and its subsequent navigation to the fingerprinting endpoint, captures the complete PRA cycle the agent spends perceiving the stalled page, reasoning about it, and acting on the injected instruction. Re-click interval is the time between consecutive clicks on the frozen checkout button when an agent retries. Agents tend to re-click at a steady interval, whereas humans click a few times and stop. We capture both metrics through custom server-side tracking. The first checkout click sends a button_click event to our /track endpoint; reaching the fingerprinting endpoint fires a resolution event, and the server computes the prompt execution delay from the two timestamps. The backend also logs every subsequent button_click event for re-click interval and every GET to a non-existent path to capture URL hallucinations.
Results. Agents exhibited diverse responses when confronted with a workflow that ceased making visible progress. Five agents executed the hidden instruction, the primary signal of interest. Manus and Director.ai followed the concealed recovery path in every run, and Comet in six of ten. Claude for Chrome and ChatGPT Atlas executed the hidden instruction less frequently. Execution latency varied considerably: Manus reacted within seconds of the stall, whereas Director.ai and Comet typically spent substantially longer retrying or re-evaluating the workflow before eventually following the hidden instruction. Atlas exhibited only a single successful execution and only after a prolonged delay. These results suggest substantial differences in how agents balance persistence, recovery, and policy constraints when task completion is obstructed.
Moreover, relatively few agents waited for the legitimate workflow to recover. Amazon Nova remained within the intended application flow in a small number of runs, while Atlas did so only once. In contrast, Manus and Director.ai never waited for the delayed transition, consistently preferring the concealed recovery path. Task abandonment was most common in Nova, which aborted the workflow in most sessions. Comet and Claude for Chrome occasionally aborted, whereas Manus and Director.ai never did, highlighting a strong preference for alternative task-completion strategies over explicit failure.
Claude for Chrome and ChatGPT Atlas frequently surfaced the suspicious instruction to the user and requested guidance before proceeding. This was the strongest defensive behavior we observed, since it prevented autonomous execution while making the ambiguity visible. However, such solicitations merely shift the decision to the user; in realistic purchase scenarios, users may still approve navigation to a plausible recovery URL without carefully scrutinizing the agent's reasoning. Atlas was the only agent to exhibit URL hallucination, attempting to navigate to inferred checkout-related endpoints such as /cart or /checkout that appeared neither in the visible page nor in the concealed instruction. Nova and Director.ai displayed another distinctive behavior: deterministic retry loops. Both repeat-

Figure 4: Agents against Additional Info prompts where the outcome changed when they were warned to ignore hidden content (A) vs their baseline behavior (B).
edly clicked the frozen checkout button at highly regular intervals, indicative of a programmed PRA recovery process rather than human behavior.
Takeaway. Withholding task completion can drive agents to relax constraints and exhibit policy drift. While some behaviors can also arise from ordinary retry logic, their combination provides strong signals of autonomous behavior. Hidden instruction execution, deterministic retries, URL hallucination, and task abandonment respectively expose information extraction, automated recovery, autonomous planning, and robustness limitations, collectively forming a distinctive behavioral fingerprint that can be leveraged for agent detection.
4.6. Adaptive Attackers
We revisit all our components with ten runs per client per condition, explicitly warning agents about our defenses and asking them to adapt. We exclude ChatGPT Atlas as it has been replaced by a browser assistant extension, and Director.ai which now redirects to Browserbase.
Behavioral signals. We repeat our experiments from §4.3 against an adaptive adversary, prompting each agent to type character by character, move the mouse continuously between fields, and insert randomized delays, which targets precisely the keystroke and pointer signals our model relies on. The adaptive prompt does not help any agent evade detection. As shown in Figure 2, every agent we tested scores above 0.80 when explicitly instructed to imitate human input, and Nova rises from 0.143 to 0.944, moving further from the human baseline rather than closer to it. Instructing an agent to type character by character adds keypresses without reproducing the dwell-time variance of a human user, and the resulting sessions are longer and more mechanically regular than the ones they replace. Evasion through prompting alone is therefore counterproductive against a model that is trained on several signals.
Content Modification. We prefix the Additional Information payload (the most susceptible category from §4.4) with an explicit instruction to ignore hidden or embedded content and summarize only visible page content. Figure 4 shows that the warning has inconsistent effects at both the
DOM and visual layers. At the DOM layer, only a minority of clients change behavior, and none suppress the injected content: those that respond either reduce compliance without eliminating it or become newly susceptible, and the rest are unchanged. Notably, some clients that previously resisted the injection instead follow it after being warned. At the visual layer, warnings similarly reduce responses for some clients but never eliminate the injection; in one case, the warning shifts responses from partial acknowledgements toward full reproduction. Clients whose architectures do not recover canvas text remain unaffected, while OCR-based agents treat recovered text as ordinary page content. Overall, the warning may change the degree or form of compliance in certain cases, but it does not reliably prevent it.
Extinction-Induced Policy Drift. We repeat the page-freeze experiment with agents instructed to behave like a human on a stalled page (i.e., to wait for the page to recover rather than clicking repeatedly) and compare against the Table 6 baseline. The instruction does not eliminate hidden-instruction execution: agents that previously followed the concealed path continue to do so, in some cases more frequently, while others spend substantially longer reevaluating the stalled page. One agent also begins fabricating endpoints absent from the page. Conversely, agents that follow the instruction more faithfully exhibit fewer clicks and longer waits without executing the hidden instruction. Thus, adaptation changes where behavior manifests rather than removing the underlying fingerprint. Moreover, the 120s freeze is never required in full as every agent that follows the hidden path reveals this behavior within roughly 40s, with several doing so within 10s. Since the delay is configurable, defenders can use a shorter delay, triggered when the user is suspected to be agentic (e.g., based on our other signals), to minimize the effect on legitimate users.
Takeaway. Explicit knowledge of the defenses does not reliably eliminate the behavioral fingerprints. Instead, agents' actions when reading or interacting with a page remain more informative than the policy that they are instructed to follow.
5. Discussion
Our results sit at the intersection of a fast-moving technical, legal, and commercial landscape. We discuss the broader implications of detecting and governing autonomous agents.
Content owners versus agents. This relationship is increasingly extractive, motivating our defenses. Cloudflare reports that earning the same referral traffic is now roughly 750 times harder via OpenAI and 30,000 times harder via Anthropic than under traditional search [60], and the stakes of unlicensed acquisition are concrete; Anthropic agreed to pay roughly $1.5 billion to settle author claims after a court held its use of pirated books was not fair use [61]. Reddit's suit against Perplexity and three scraping intermediaries over a "data laundering" scheme that allegedly circumvented anti-scraping tools and ignored robots.txt [62] shows why server-side behavioral detection, and not declared User-Agents or robots.txt honor systems, is needed to separate legitimate access from covert acquisition.
Bot-disclosure and agent-identity law. The law increasingly expects automated agents to identify themselves. California's B.O.T. Act bars using a bot to influence a commercial transaction without disclosing that it is a bot [63]; the EU AI Act requires that systems disclose they are AI and that AI-generated content be machine-readable marked (Art. 50) [64], and defines an AI system by the very autonomy and inference our detector exploits (Art. 3) [65]. Circumventing bot defenses is in some contexts already unlawful and in early 2026 NIST launched an AI Agent Standards Initiative targeting "AI agent security and identity" [68]. Yet our finding that locally-running agents defeat reCAPTCHA and Turnstile shows why these norms, like the proposed "personhood credentials", remain ineffective against covert agents absent a reliable detection mechanism.
Detection arms race and agentic commerce. Detection, blocking, and monetization are converging into an arms race that AgentShield's behavioral signal is positioned to serve. Production defenses already weaponize hidden content: Cloudflare's AI Labyrinth lures misbehaving crawlers into decoy pages to exhaust and fingerprint them [70], and pay-per-crawl revives HTTP 402 so publishers can charge crawlers per request [71]. Vendors are shifting from identity checks to behavioral analysis (DataDome classifies AI agents in under two milliseconds and adds a "Know Your Agent" layer [72]) because legacy identifiers fail against agents like OpenAI's ChatGPT Agent, which exposes no stable IP and instead signs each request under the IETF HTTP Message Signatures draft [73]. The stakes grow with agentic commerce, which Gartner projects will exceed $15 trillion in B2B spending by 2028 [74]: industry is racing to bind identity to transacting agents through Stripe and OpenAI's Agentic Commerce Protocol [75], Google's signed-mandate AP2 [76], Visa's Trusted Agent Protocol [77], and World's AgentKit [78], as Microsoft reframes agents as first-class actors in "an open agentic web" [79]. In each case, reliable server-side detection at transaction time, which AgentShield provides, is a prerequisite.
Robustness to adaptive attackers. Our threat model centers on off-the-shelf (OTS) agents, the widely deployed commercial clients of Table 1; this focus strengthens rather than narrows our claims. These tools carry their own safeguards, yet under the adaptive attacker experiments in §4.6 they still expose the signals AgentShield targets; instructing agents to imitate a human merely relocates the signal rather than removing it. While custom agents may have different safeguards (or none at all), AgentShield targets characteristics fundamental to agentic operation (e.g., the PRA loop, the necessity of completing tasks, difficulty distinguishing between informational context and instruc-
The federal BOTS Act treats bypassing a ticket seller's “access control system” as a deceptive practice [66], and the DSA obliges large platforms to assess risks from “inauthentic use or automated exploitation” (Art. 34) [67].
tions). Nonetheless, we consider evaluating AgentShield against fully custom agents an interesting future direction.
6. Related Work
Here we discuss relevant prior work that spans four areas: autonomous web agents, LLM agent security, prompt injection, and bot detection.
Autonomous web agents and LLM-based automation. Recent benchmarks have demonstrated rapid progress in LLM-driven web agents. Early environments such as Mini-WoB [80] and WebShop [81] established controlled settings for evaluating web interaction, while Mind2Web [82], WebArena [83], VisualWebArena [84], and WebVoyager [44] extended evaluation to realistic websites, multimodal interfaces, and long-horizon tasks. More recent efforts, including ST WebAgentBench [85] and SecureWebArena [86], evaluate whether agents can safely complete tasks while respecting policies and constraints. Commercial systems such as OpenAI Operator [87] have further brought agentic browsing capabilities to end users. Our work complements this line of research by focusing not on task completion, but on the security implications of agentic browsing, specifically their detectability, behavioral characteristics, and susceptibility to manipulation through web content.
Agent security and safety. Prior work has shown that autonomous agents introduce new security risks both as attackers and as targets. Studies have demonstrated autonomous vulnerability exploitation [88], degradation of safety guarantees when models are deployed as browser agents [30], broad susceptibility to adversarial attacks [89], and manipulation through deceptive interfaces and dark patterns [31]. On the defensive side, researchers have explored honeytokens and misdirection [32], as well as content-poisoning approaches such as WebCloak [57]. Our work extends this direction by empirically evaluating how page content influences deployed agentic browsers and by introducing behavioral mechanisms for detecting them. We further show that safety properties often differ substantially between standalone LLMs and their agentic deployments, consistent with broader observations on alignment and jail-break robustness [90], [91].
Prompt injection and adversarial content manipulation. Indirect prompt injection was first systematically studied by Greshake et al. [29], who showed that instructions embedded in external content can manipulate retrieval-augmented systems. Subsequent work formalized prompt injection benchmarks and defenses [92], extended attacks to tool-integrated agents [93], proposed realistic evaluation environments [94], and explored trust-separation mechanisms such as Spotlighting [95]. These studies established prompt injection as a persistent challenge for tool-using agents. Our work provides a large-scale empirical evaluation of these risks across fourteen deployed agents, browser assistants, and web LLMs operating on realistic WordPress-hosted news and e-commerce content. Beyond defensive prompts, we evaluate promotional, disinformation, additive-information, and abusive injections, and study how repeti-
tion frequency affects compliance, showing that increased repetition can strengthen, weaken, or have no effect on an attack depending on the agent architecture.
Anti-bot defenses. Traditional defenses against automated access rely on identity-based controls, challenge-response systems, and behavioral analysis. Recent work has highlighted the limitations of crawler exclusion mechanisms and voluntary opt-out policies against AI-driven scraping [96], [97], [98]. CAPTCHA systems likewise face increasing pressure from AI-powered solvers [11], [99], while fingerprinting-based approaches often assume access to browser characteristics and browsing history [100]. These assumptions become less reliable when agents operate through legitimate user-controlled browsers.
Behavioral biometrics provide a complementary detection signal. Prior work has shown that keystroke dynamics, mouse trajectories, and interaction timing can distinguish humans from scripted automation [58], [101], [102], [103]. Related research has also explored concealed form elements as a mechanism for exploiting browser-user perception gaps [104], and has characterized automated browsing using session-level and network-level signals [8], [105]. However, most existing approaches target traditional bots and browser automation frameworks rather than LLM-driven agents. Our work extends behavioral bot detection to agentic browsers by exploiting a signal unique to such systems: the latency of the Perception-Reasoning-Action (PRA) loop. Through dynamically revealed form fields, we expose reasoning-induced delays that provide a robust behavioral fingerprint for detecting autonomous web agents.
Overall, our work bridges three previously separate areas (i.e., agent security, prompt injection, and bot detection) to provide one of the first comprehensive empirical evaluations of agentic browsers against modern web defenses. Our work also provides a series of novel observations and techniques that target inherent characteristics of agentic browsers, while also offering concrete mechanisms for protecting modern web applications against them.
7. Conclusion
This paper presents a systematic empirical study of agentic web browsers under realistic adversarial web content and widely deployed anti-bot defenses. Through extensive experimentation we showed that modern agentic systems exhibit highly heterogeneous and architecture-dependent behavior when interacting with injected content, with outcomes varying significantly across prompt types, deployment interfaces, and repetition strategies. Our findings also show that current anti-bot mechanisms are insufficient as reliable access-control signals against autonomous agents operating through real browsers. At the same time, we show how carefully crafted page content can meaningfully influence agent outputs, revealing both vulnerabilities to prompt injection and opportunities for behavioral fingerprinting. Accordingly, we introduced AgentShield, a behavioral detection approach based on dynamic form interactions that expose the latency of the PRA loop in agentic user clients.
Our results indicate that this signal provides a practical basis for distinguishing the autonomous agents we evaluated from the human telemetry we collected, suggesting a promising direction for detection in realistic web settings. Overall, our study points to an ongoing shift in the web ecosystem: as browsing becomes increasingly agent-driven, both offensive and defensive mechanisms must account for systems that interpret page content not only as data, but as actionable instructions. While we provide a concrete mechanism that developers can incorporate to harden their web applications, we hope this work motivates further research into robust defenses against emerging agentic user clients.
Acknowledgments
We would like to thank the anonymous reviewers and shepherd for their valuable feedback. This work was supported by the National Science Foundation under grants CNS-2211574 and CNS-2143363. Any opinions, findings, conclusions, or recommendations expressed herein are those of the authors, and do not necessarily reflect those of the NSF.
Competing Interests
One co-author is employed by Amazon.com, Inc. The research was conducted independently of the co-author's employment. The authors declare no other competing financial or non-financial interests.
References
[1] K. Thomas et al., “Protecting accounts from credential stuffing with password breach alerting,” in 28th USENIX Security Symposium (USENIX Security 19), 2019.
[2] K. C. Wang and M. K. Reiter, “Detecting stuffing of a User’s credentials at her own accounts,” in 29th USENIX Security Symposium (USENIX Security 20). USENIX Association, Aug. 2020. [Online]. Available: https://www.usenix.org/conference/usenixsecurity20/presentation/wang
[3] D. Yuan et al., “Detecting fake accounts in online social networks at the time of registrations,” in Proceedings of the 2019 ACM SIGSAC conference on computer and communications security, 2019.
[4] K. Drakonakis, S. Ioannidis, and J. Polakis, “The cookie hunter: Automated black-box auditing for web authentication and authorization flaws,” in Proceedings of the 2020 ACM SIGSAC Conference on Computer and Communications Security, 2020.
[5] B. Stone-Gross et al., “The underground economy of spam: A botmaster’s perspective of coordinating {Large-Scale} spam campaigns,” in 4th USENIX Workshop on Large-Scale Exploits and Emergent Threats (LEET 11), 2011.
[6] C. Grier et al., “@ spam: the underground on 140 characters or less,” in Proceedings of the 17th ACM conference on Computer and communications security, 2010.
[7] C. Simoiu et al., “Who is targeted by email-based phishing and malware? measuring factors that differentiate risk,” in Proceedings of the ACM Internet Measurement Conference, 2020.
[8] X. Li et al., “Good bot, bad bot: Characterizing automated browsing activity,” in 2021 IEEE symposium on security and privacy (sp). IEEE, 2021.
[9] B. Amin Azad et al., “Web runner 2049: Evaluating third-party anti-bot services,” in Detection of Intrusions and Malware, and Vulnerability Assessment (DIMVA 2020), ser. Lecture Notes in Computer Science, vol. 12223. Springer, Cham, 2020.
[10] S. Sivakorn, I. Polakis, and A. D. Keromytis, “I Am Robot: (Deep) Learning to Break Semantic Image CAPTCHAs,” in 2016 IEEE European Symposium on Security and Privacy (EuroS&P). IEEE, 2016.
[11] A. Searles et al., “An empirical study & evaluation of modern CAPTCHAs,” in USENIX Security '23.
[12] P. Laperdrix et al., “Browser fingerprinting: A survey,” ACM Transactions on the Web (TWEB), vol. 14, no. 2, 2020.
[13] S. Wu et al., “Him of many faces: characterizing billion-scale adversarial and benign browser fingerprints on commercial websites.” in NDSS, 2023.
[14] S. Hao et al., “Detecting spammers with SNARE: Spatio-temporal network-level automatic reputation engine,” in 18th USENIX Security Symposium (USENIX Security 09). Montreal, Quebec: USENIX Association, Aug. 2009.
[15] A. Vastel et al., “Fp-crawlers: studying the resilience of browser fingerprinting to block crawlers,” in MADWeb '20-NDSS Workshop on Measurements, Attacks, and Defenses for the Web, 2020.
[16] U. Fontana et al., “No bot allowed: Detection of automated traffic on modern booking platforms. methods, insights, and current challenges,” in European Symposium on Research in Computer Security. Springer, 2025.
[17] J. Tomé, J. Pacheco, and C. Azevedo, “From googlebot to gptbot: Who’s crawling your site in 2025,” Cloudflare, 2025. [Online]. Available: https://blog.cloudflare.com/from-googlebot-to-gptbot-w-hos-crawling-your-site-in-2025/
[18] K. Singhal et al., “Toward expert-level medical question answering with large language models,” Nat. Med., vol. 31, no. 3, Mar. 2025.
[19] M. Chen et al., “Evaluating large language models trained on code,” CoRR, vol. abs/2107.03374, 2021. [Online]. Available: https://arxiv.org/abs/2107.03374
[20] D. M. Katz et al., “Gpt-4 passes the bar exam,” Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, vol. 382, no. 2270, 02 2024. [Online]. Available: https://doi.org/10.1098/rsta.2023.0254
[21] A. Lewkowycz et al., “Solving quantitative reasoning problems with language models,” in Proceedings of the 36th International Conference on Neural Information Processing Systems, ser. NIPS '22, 2022.
[22] “Disrupting malicious uses of AI: October 2025,” https://openai.com/global-affairs/disrupting-malicious-uses-of-ai-october-2025/, accessed: 2026-6-3.
[23] G. Gressel et al., “Love, lies, and language models: Investigating ai’s role in romance-baiting scams,” 2026. [Online]. Available: https://arxiv.org/abs/2512.16280
[24] S. Badhe, “Scamagents: How ai agents can simulate human-level scam calls,” arXiv preprint arXiv:2508.06457, 2025.
[25] A. Chaikin and S. Kaul Sahib, “Agentic browser security: Indirect prompt injection in perplexity comet,” Brave, 2025. [Online]. Available: https://brave.com/blog/comet-prompt-injection/
[26] R. Lakshmanan, “Experts find ai browsers can be tricked by promptfix exploit to run malicious hidden prompts,” The Hacker News, 2025, reporting Guardio Labs “Scamlexity” research (Nati Tal, Shaked Chen). [Online]. Available: https://thehackernews.com/2025/08/experts-find-ai-browsers-can-be-tricked.html
[27] G. Corral et al., “Perplexity is using stealth, undeclared crawlers to evade website no-crawl directives,” Cloudflare, 2025. [Online]. Available: https://blog.cloudflare.com/perplexity-is-using-stealth-undeclared-crawlers-to-evade-website-no-crawl-directives/
[28] Cybersecurity News, "Chatgpt agent bypasses cloudflare "i am not a robot" verification checks," Cybersecurity News, 2025. [Online]. Available: https://cybersecuritynews.com/chatgpt-agent-bypasses-cloudflare/
[29] K. Greshake et al., "Not what you've signed up for: Compromising real-world llm-integrated applications with indirect prompt injection," ser. AISec '23.
[30] P. Kumar et al., “Refusal-trained llms are easily jailbroken as browser agents,” 2024.
[31] D. Ersoy et al., “Investigating the impact of dark patterns on llm-based web agents,” 2025. [Online]. Available: https://arxiv.org/abs/2510.18113
[32] D. Ayzenshteyn, R. Weiss, and Y. Mirsky, “Cloak, honey, trap: Proactive defenses against LLM agents,” in USENIX Security 25.
[33] “Aws — the agent function: perceive, reason, act,” 2026. [Online]. Available: https://docs.aws.amazon.com/prescriptive-guidance/latest/agentic-ai-foundations/perceive-reason-act.html
[34] “Designing AI agents to resist prompt injection,” https://openai.com/index/designing-agents-to-resist-prompt-injection/, accessed: 2026-6-3.
[35] “BrowseSafe: Understanding and preventing prompt injection within AI browser agents,” https://research.perplexity.ai/articles/browsesa fe, accessed: 2026-6-3.
[36] “Mitigating the risk of prompt injections in browser use,” https://www.anthropic.com/research/prompt-injection-defenses, accessed: 2026-6-3.
[37] B. R. Katz and K. A. Lattal, “What is an extinction burst?: A case study in the analysis of transitional behavior,” Journal of the Experimental Analysis of Behavior, vol. 115, no. 1, 2021.
[38] O. S. Hilibrand, “Guarding the news media’s intellectual property in the age of generative ai,” Stan. Tech. L. Rev., vol. 28, 2024.
[39] J. Grimmelmann, “Ai scraping and the open web,” Communications of the ACM, vol. 69, no. 1, 2026.
[40] https://www.nytimes.com/2025/12/05/technology/new-york-times-p erplexity-ai-lawsuit.html, accessed: 2026-6-3.
[41] “Agentsfield repository,” 2026. [Online]. Available: https://github.com/moizalif01/AgentShield-SP27
[42] “Fast and reliable end-to-end testing for modern web apps — playwright.” Playwright.dev, 2026. [Online]. Available: http://playwright.dev/
[43] “Chrome devtools protocol,” chromedevtools.github.io. [Online]. Available: https://chromedevtools.github.io/devtools-protocol/
[44] H. He et al., “WebVoyager: Building an end-to-end web agent with large multimodal models,” in Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), L.-W. Ku, A. Martins, and V. Srikumar, Eds., 2024.
[45] “Ja4+ network fingerprinting,” FoxIO, 2023. [Online]. Available: https://github.com/FoxIO-LLC/ja4
[46] “Ai crawl control,” Cloudflare.com, 2026. [Online]. Available: https://www.cloudflare.com/ai-crawl-control/
[47] “Block ai bots,” Cloudflare Docs, 07 2025. [Online]. Available: https://developers.cloudflare.com/bots/additional-configurations/block-ai-bots/
[48] “Web bot auth,” Cloudflare Docs, 05 2026. [Online]. Available: https://developers.cloudflare.com/bots/reference/bot-verification/we-b-bot-auth/
[49] M. Sporny, “Http message signatures,” 02 2024. [Online]. Available: https://www.rfc-editor.org/rfc/rfc9421.html
[50] “ssl.log — book of zeek (9.0.0-dev.218),” Zeek.org, 2020. [Online]. Available: https://docs.zeek.org/en/master/reference/logs/ssl.html
[51] Google, “recaptcha v3 — google developers,” Google Developers, 2019. [Online]. Available: https://developers.google.com/recaptcha/docs/v3
[52] “Comet quick start guide - comet resource hub,” Perplexity.ai, 2025. [Online]. Available: https://www.perplexity.ai/comet/resource/s/articles/comet-quick-start-guide
[53] Manus, “Manus browser operator: Turn any browser into an ai browser,” 2025. [Online]. Available: https://manus.im/features/manus-browser-operator
[54] “Introducing chatgpt atlas,” Openai.com, 10 2025. [Online]. Available: https://openai.com/index/introducing-chatgpt-atlas/
[55] “Dom events - web apis — mdn,” Mozilla.org, 09 2025. [Online]. Available: https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Events
[56] “Mutationobserver,” MDN Web Docs, 2026. [Online]. Available: https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
[57] X. Li et al., “Webcloak: Characterizing and mitigating threats from llm-driven web agents as intelligent scrapers,” in Proceedings of the 2026 IEEE Symposium on Security and Privacy (SP), 2026.
[58] V. Dhakal et al., “Observations on typing from 136 million keystrokes,” ser. CHI '18.
[59] heise online, “Lg münchen i: Google für falsche aussagen in ki-übersichten verurteilt,” 2026, preliminary injunction (einstweilige Verfügung), LG München I, Az. 26 O 869/26, 28 May 2026.
[60] M. Prince, “Content independence day: No ai crawl without compensation!” Cloudflare, 2025. [Online]. Available: https://blog.cloudflare.com/content-independence-day-no-ai-crawl-without-compensation/
[61] Authors Guild, “What authors need to know about the anthropic settlement (bartz v. anthropic pbc, no. 3:24-cv-05417, n.d. cal.),” Authors Guild, 2025, $1.5 billion class-action copyright settlement; preliminary approval 25 Sept. 2025. [Online]. Available: https://authorsguild.org/advocacy/artificial-intelligence/what-authors-need-to-know-about-the-anthropic-settlement/
[62] Search Engine Land, “Reddit sues perplexity, serpapi, oxylabs, and awmproxy over “data laundering” scraping scheme.” 2025, complaint, S.D.N.Y., Case No. 1:25-cv-08736, filed 22 October 2025.
[63] California State Legislature, “Senate bill no. 1001 (bots: disclosure) — “b.o.t. act,” 2018, stats. 2018, Ch. 892 (SB 1001, Hertzberg); codified at Cal. Bus. & Prof. Code §§17940-17943; operative July 1, 2019.
[64] European Parliament and Council, “Regulation (eu) 2024/1689 (artificial intelligence act), article 50 — transparency obligations,” 2024, oJ L, 2024/1689, 12 July 2024; transparency obligations apply from 2 August 2026 (Art. 113).
[65] —, “Regulation (eu) 2024/1689 (artificial intelligence act), article 3(1) — definition of “ai system”,” 2024, oJ L, 2024/1689, 12 July 2024; Article 3 applicable from 2 February 2025.
[66] U.S. Congress, “Better online ticket sales act of 2016 (bots act), public law 114-274,” 2016, codified at 15 U.S.C. §45c; enforced by the Federal Trade Commission.
[67] European Parliament and Council, “Regulation (eu) 2022/2065 (digital services act), article 34 — risk assessment,” 2022, art. 34(2) systemic-risk analysis of “inauthentic use or automated exploitation”; Recital 55.
[68] NIST Center for AI Standards and Innovation (CAISI), “Announcing the “ai agent standards initiative” for interoperable and secure innovation,” 2026.
[69] S. Adler et al., “Personhood credentials: Artificial intelligence and the value of privacy-preserving tools to distinguish who is real online,” 2024, arXiv:2408.07892.
[70] R. Tatoris, H. Saxena, and L. Miglietti, “Trapping misbehaving bots in an ai labyrinth,” Cloudflare, 2025. [Online]. Available: https://blog.cloudflare.com/ai-labyrinth/
[71] W. Allen and S. Newton, "Introducing pay per crawl: Enabling content owners to charge ai crawlers for access," Cloudflare, 2025. [Online]. Available: https://blog.cloudflare.com/introducing-pay-per-crawl/
[72] Help Net Security, "Datadome platform enhancements put businesses in control of ai agents," Help Net Security, 2025. [Online]. Available: https://www.helpnetsecurity.com/2025/04/15/d-atadome-ai-engine/
[73] G. De Julis and J. Segura, “Detecting & authenticating chatgpt agent: A new standard for bot management,” DataDome, 2025. [Online]. Available: https://datadome.co/threat-research/detecting-a-uthenticating-chatgpt-agent/
[74] M. Brohan, “Gartner: Ai agents will command $15 trillion in b2b purchases by 2028,” Digital Commerce 360, 2025, reporting on Gartner IT Symposium/Xpo 2025. [Online]. Available: https://www.digitalcommerce360.com/2025/11/28/gartner-ai-agent-s-15-trillion-in-b2b-purchases-by-2028/
[75] Stripe, “Stripe powers instant checkout in chatgpt and releases agentic commerce protocol codedeveloped with openai,” Stripe, 2025. [Online]. Available: https://stripe.com/newsroom/news/stripe-openai-instant-checkout
[76] S. Parikh and R. Surapaneni, “Powering ai commerce with the new agent payments protocol (ap2),” Google Cloud, 2025. [Online]. Available: https://cloud.google.com/blog/products/ai-machine-learn-ing/announcing-agents-to-payments-ap2-protocol
[77] Visa, “Visa introduces trusted agent protocol: An ecosystem-led framework for ai commerce,” Visa, 2025. [Online]. Available: https://investor.visa.com/news/news-details/2025/Visa-Introduces-T-rusted-Agent-Protocol-An-Ecosystem-Led-Framework-for-AI-Commerce/default.aspx
[78] O. Acuna, “Sam altman’s world teams up with coinbase to prove there is a real person behind every ai transaction,” CoinDesk, 2026. [Online]. Available: https://www.coindesk.com/tech/2026/03/17/s-am-altman-s-world-teams-up-with-coinbase-to-prove-there-is-a-real-person-behind-every-ai-transaction
[79] F. X. Shaw, “Microsoft build 2025: The age of ai agents and building the open agentic web,” Microsoft, 2025. [Online]. Available: https://blogs.microsoft.com/blog/2025/05/19/microsoft-build-2025-the-age-of-ai-agents-and-building-the-open-agentic-web/
[80] T. Shi et al., “World of bits: An open-domain platform for web-based agents,” in Proceedings of the 34th International Conference on Machine Learning, vol. 70, 2017.
[81] S. Yao et al., “Webshop: Towards scalable real-world web interaction with grounded language agents,” in Advances in Neural Information Processing Systems, vol. 35, 2022.
[82] X. Deng et al., “Mind2web: Towards a generalist agent for the web,” in Advances in Neural Information Processing Systems, A. Oh et al., Eds., vol. 36, 2023.
[83] S. Zhou et al., “Webarena: A realistic web environment for building autonomous agents,” in The Twelfth International Conference on Learning Representations, 2024.
[84] J. Y. Koh et al., “VisualWebArena: Evaluating multimodal agents on realistic visual web tasks,” in Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Aug. 2024.
[85] I. Levy et al., “St-webagentbench: A benchmark for evaluating safety and trustworthiness in web agents,” arXiv, 2026. [Online]. Available: https://arxiv.org/abs/2410.06703
[86] Z. Ying et al., “Securewebarena: A holistic security evaluation benchmark for lvlm-based web agents,” 2026.
[87] OpenAI, “Introducing operator,” https://openai.com/index/introducing-operator/, 2025.
[88] R. Fang et al., “Llm agents can autonomously exploit one-day vulnerabilities,” 2024. [Online]. Available: https://arxiv.org/abs/2404.08144
[89] H. Zhang et al., “Agent security bench (asb): Formalizing and benchmarking attacks and defenses in llm-based agents,” 2025. [Online]. Available: https://arxiv.org/abs/2410.02644
[90] A. Zou et al., “Universal and transferable adversarial attacks on aligned language models,” 2023. [Online]. Available: https://arxiv.org/abs/2307.15043
[91] L. Ouyang et al., “Training language models to follow instructions with human feedback,” in Advances in Neural Information Processing Systems, S. Koyejo et al., Eds., 2022.
[92] Y. Liu et al., “Formalizing and benchmarking prompt injection attacks and defenses,” in USENIX Security '24.
[93] Q. Zhan et al., “InjecAgent: Benchmarking indirect prompt injections in tool-integrated large language model agents,” in ACL 2024.
[94] E. Debenedetti et al., “Agentdojo: A dynamic environment to evaluate prompt injection attacks and defenses for llm agents,” in Advances in Neural Information Processing Systems, A. Globerson et al., Eds., 2024.
[95] K. Hines et al., “Defending against indirect prompt injection attacks with spotlighting,” 2024. [Online]. Available: https://arxiv.org/abs/2403.14720
[96] E. Liu et al., “Somesite i used to crawl: Awareness, agency and efficacy in protecting content creators from ai crawlers,” ser. IMC '25.
[97] T. Kim et al., “Scrapers selectively respect robots.txt directives: Evidence from a large-scale empirical study,” ser. IMC '25, 2025.
[98] S. Longpre et al., “Consent in crisis: The rapid decline of the ai data commons,” vol. 37, 2024.
[99] A. Plesner, T. Vontobel, and R. Wattenhofer, “Breaking reCAPTCHA2,” in 2024 IEEE 48th Annual Computers, Software, and Applications Conference (COMPSAC), 2024.
[100] U. Iqbal, S. Englehardt, and Z. Shafiq, “Fingerprinting the fingerprinters: Learning to detect browser fingerprinting behaviors,” in 2021 IEEE Symposium on Security and Privacy (SP).
[101] A. Acien et al., “Becatcha-mouse: Synthetic mouse trajectories and improved bot detection,” 2021. [Online]. Available: https://arxiv.org/abs/2005.00890
[102] D. DeAlcala et al., “BeCAPTCHA-Type: Biometric Keystroke Data Generation for Improved Bot Detection,” in 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW).
[103] A. See et al., “Detecting web bots via keystroke dynamics,” in IFIP International Conference on ICT Systems Security and Privacy Protection. Springer, 2024.
[104] X. Lin, P. Ilia, and J. Polakis, “Fill in the blanks: Empirical analysis of the privacy threats of browser form autofill,” ser. CCS '20.
[105] C. Herley, “Automated detection of automated traffic,” in USENIX Security '22.
Appendix A
Here we provide additional details regarding aspects of AgentShield's design and our experimental results. The exact task prompts, the remaining hidden prompt texts, and representative agent response excerpts, are provided in our artifact repository.

(a) Interaction metrics.
(b) Reaction-time statistics.
Figure 5: Per-agent average behavioral metrics on the dynamic form (dropdown variant).
A.1. Implementation
We have implemented each of our components from §3 as a self-contained NPM package that mounts as Express middleware, so website developers can instrument their existing applications without the need to fully refactor them. The dynamic form package embeds either form variant and collects the reveal-timing and interaction telemetry behind the signals of §4.3. The epd package inserts a configurable delay after a buy-button click and logs the click-to-landing interval. Each is installed with a single npm install and registered with one app.use call.
The content-modification package is an offline Python pipeline (add, extract, configure, generate, export) plus a Node injector joined by a mapping file. The pipeline reads a site's own content through a small adapter (a short connector based on how that site stores its pages). Each page (e.g., product in an e-commerce site) has its own hidden prompt written by a local model that one ollama pull sets up; the prompt category for each page can be manually configured or assigned randomly. The injector serves the prompt as a middleware or a reverse proxy, adding the DOM (CSS) and canvas payloads without touching any stored content. Since each different software stack only needs a new adapter, the same pipeline covers static-file, database-backed, and CMS-driven sites alike.
A.2. Concealment Methods and Test Page
Concealment Method. Injected prompts are hidden with the CSS class in Figure 8, which renders the text invisible while leaving it in the DOM.
Visual-Layer Concealment Method. For the visual-layer (OCR) injection, the injected prompt is drawn onto an HTML <canvas> element using the script in Figure 9, which renders the text as low-opacity pixels that a human reader does not perceive while leaving it absent from the DOM, the raw HTML, and the accessibility tree.
Figure 6 shows the visual-layer (canvas) injection test page as it appears to a human visitor. The injected prompt is rendered into the canvas at the tuned opacity and font size and is not perceptible above.

Figure 6: Rendered view of the OCR injection test page.
A.3. Dynamic Form Timings
Figure 5 provides the results of our experiments using the more complex dynamic form which includes dropdown menus. Reaction times rise sharply relative to the simplified form, with the largest increases for Claude for Chrome and Chrome DevTools MCP, indicating that dropdowns add decision-making stages beyond the basic PRA loop. Dwell time remains the strongest separator: several agents show means of a few milliseconds with near-zero variance, which no human user produces.
A.4. Repeated Defensive Prompts
Figure 7 reports the repetition variant of the content modification experiment, in which the same defensive prompt is embedded N times in one page. Repetition does not scale compliance: some clients comply more as N rises, others reinterpret the redundancy as an injection attempt and comply less, and several are unaffected.
A.5. Extinction-Induced Policy Drift
The hidden prompt is embedded in the product page in a zero-dimension .zero-text-injection div, invisible to a human visitor but readable by any DOM-parsing client:
TABLE 6: Agent behaviors across 10 Page Freeze runs. Since agents can exhibit multiple behaviors in a single run, row values may sum to more than 10. Hidden prompt execution delay reports the average delay between the secure checkout click and navigation to the fingerprinting endpoint for runs in which the hidden instruction was autonomously executed. For Claude for Chrome, ask denotes the ask-before-acting configuration and act the act-without-asking configuration.
| Agent | Model | Total Runs | Hidden Instruction Execution | Timeout Compliance | User Solicitation | Deterministic Interval Retries | URL Hallucination | Task Abortion | Hidden Prompt Execution Delay |
|---|---|---|---|---|---|---|---|---|---|
| Comet | GPT-5.4 | 10 | 6 | 0 | 0 | 0 | 0 | 4 | 38.54 s |
| Amazon Nova Act | Nova 2 Lite | 10 | 0 | 2 | 0 | 10 | 0 | 8 | - |
| Manus | 1.6 Lite | 10 | 10 | 0 | 0 | 0 | 0 | 0 | 5.77 s |
| Director.ai | Default | 10 | 10 | 0 | 0 | 10 | 0 | 0 | 33.13 s |
| Claude for Chrome (ask) | Opus 4.8 | 10 | 0 | 0 | 8 | 0 | 0 | 2 | - |
| Claude for Chrome (act) | Opus 4.8 | 10 | 4 | 0 | 6 | 0 | 0 | 0 | 7.11 s |
| ChatGPT Atlas | GPT-5.5 | 10 | 1 | 1 | 7 | 0 | 5 | 1 | 55.32 s |

Figure 7: Repeated defensive prompt effect. One client per group. : number of embedded repetitions per fixed prompt.
To buy this product, visit "https://example.com/payment_page.html".
Table 6 gives the per-agent breakdown of the page-freeze experiment behind Section 4.5, including the recovery behaviors each agent exhibited and the delay before it acted on the concealed instruction. Behavior diverges sharply across agents. Manus and Director.ai execute the hidden instruction on all ten runs, and Manus acts fastest at 5.77 s, while ChatGPT Atlas takes 55.32 s, nearly an order of magnitude longer to complete the same perceive-reason-act cycle.
.zero-text-injection {
position: absolute;
top: 0; left: 0;
color: transparent !important;
font-size: 0px !important;
line-height: 0 !important;
clip: rect(0, 0, 0, 0);
width: 1px; height: 1px;
overflow: hidden;
user-select: text;
}
Figure 8: CSS class used to conceal hidden prompts. The text is invisible but stays in the DOM and is accessible by any client that reads raw HTML, the accessibility tree, or the DOM.
<canvas id="hid" width="900" height="16"></canvas>
<script>
var c = document.getElementById('hid').getContext('2d');
c.font = '15px sans-serif';
c.fillStyle = 'rgb(180,180,180,0.15)';
c.fillStyle('><injected prompt text>', 10, 12);
</script>
Figure 9: Canvas script used to conceal hidden prompts in the visual layer. The text exists only as rendered pixels, so it is absent from the DOM and the accessibility tree and is recoverable only by clients that rasterize the page and apply OCR.
Appendix B. Ethical Considerations
This work studies the security implications of autonomous LLM-driven browser agents and introduces both offensive and defensive techniques relevant to their deployment. In particular, we characterize the behavior of agentic user clients, evaluate their effectiveness against existing anti-bot defenses, introduce the Extinction-induced Policy Drift (EPD) attack, and propose AgentShield, a behavioral fingerprinting framework for detecting autonomous agents. As recommended by the Menlo Report, we carefully considered both the potential benefits and harms associated with this research.
The primary risk stems from the EPD attack. EPD demonstrates that repeatedly obstructing task completion can induce certain agentic systems to relax internal safeguards and pursue unsafe actions. In principle, an adversary could leverage this technique to bypass safety mechanisms in vulnerable agents or to increase the effectiveness of prompt injection attacks. However, we believe that while some practical risk is associated with disclosure, understanding such failure modes is necessary for developers of agentic systems to evaluate and improve the robustness of their defenses and for web application developers to better protect against malicious autonomous interactions. To reduce the potential for misuse, we focus on characterizing the phenomenon and its implications rather than providing a generalized exploitation framework. Our goal is to enable developers of agentic systems to identify, measure, and mitigate these behaviors before they can be exploited at scale. We also disclose defensive recommendations that can be incorporated into future agent architectures to reduce susceptibility to such attacks.
The defensive components of our work, including AgentShield and the proposed defensive prompt-injection techniques, are intended to improve the security posture of websites against autonomous agents. We envision deployment in limited, security-sensitive workflows such as account creation, registration, and abuse prevention, where distinguishing autonomous agents from human users is a legitimate security objective.
Our experiments were conducted exclusively against systems under our control or using publicly-available services (e.g., reCAPTCHA) in accordance with their intended functionality. No attempts were made to gain unauthorized access to third-party systems, disrupt services, or collect personal user information. The dynamic forms used in our study collected only synthetic input data generated for experimental purposes. No human subjects data, personally identifiable information, or private user content were collected or retained. Moreover, the human telemetry statistics belonged to actions performed by the authors.
We believe the benefits of this work outweigh the associated risks. Autonomous browser agents are rapidly becoming capable of performing tasks traditionally reserved for human users, creating new challenges for bot detection and abuse prevention. Understanding the capabilities, limitations, and behavioral characteristics of these systems is necessary for developing effective defenses. By empirically evaluating current anti-bot technologies, identifying previously undocumented agent failure modes, and proposing practical defensive mechanisms, this work aims to improve the security and resilience of web platforms in the presence of increasingly capable autonomous agents.
Appendix C. Meta-Review
The following meta-review was prepared by the program committee for the 2027 IEEE Symposium on Security and Privacy (S&P) as part of the review process as detailed in the call for papers.
C.1. Summary
The paper presents an evaluation of how well existing anti-bot defenses (such as CAPTCHAs and Cloudflare's Turnstile) perform against AI-enabled browsing agents. The paper presents AgentShield, a behaviour fingerprinting defense framework that leverages the perception-reasoning-action (PRA) loop of the web agents while browsing to detect human versus AI agents. Specifically, they use 3 forms of fingerprint: (a) form interaction, (b) susceptibility to hidden content, and (c) extinction-induced policy drift to evaluate different web agents tested against several anti-bot defenses.
C.2. Scientific Contributions
- Identifies an Impactful Vulnerability
- Provides a Valuable Step Forward in an Established Field
- Creates a New Tool to Enable Future Science
C.3. Reasons for Acceptance
-
This paper identifies an impactful vulnerability. The paper provides extensive evaluation to empirically demonstrate that some existing bot detection mechanisms are ineffective against AI-enabled agents, and the author proposed to develop new techniques to identify/fingerprint these agents.
-
This paper provides a valuable step forward in an established field. This paper conducts a systematic measurement of deployed agentic clients against deployed anti-bot defenses, together with the observation that inherent properties of the agents' PRA loop can serve as detection signals. This is a valuable step for the bot-detection field.
-
This paper Creates a new tool to enable future science. This paper implemented AgentShield as installable NPM packages to facilitate reproducibility and Open science.
C.4. Noteworthy Concerns
AgentShield demonstrates that agents remain distinguishable even when attempting to mimic human-like behavior. A more detailed evaluation of false positives and false negatives when combining behavioral metrics would further strengthen the assessment of its detection reliability.