arXiv:2610.41181cs.CROct 2026

Manuscript Offprint

arXiv:2610.41181

AgentShield: Fortifying Web Applications Against AI Agents and Agentic Browsers

Moiz Ali, Nafis Karim, Rownak Islam, Jyotirmay Chauhan, Dhruv Kuchhal, Jason Polakis

Moiz Ali∗,NafisKarim*, Nafis Karim, Rownak Islam, Jyotirmay Chauhan*, Dhruv Kuchhal†^\dagger, 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

§^{\S}These authors contributed equally to this work.

†^{\dagger}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.

ClientProviderModelExecutionPerception
Autonomous Web Agents
Perplexity CometPerplexityDefaultLocal-CloudHybrid
ChatGPT AtlasOpenAIGPT-5.5Local-CloudHybrid
Claude for ChromeAnthropicOpus 4.8LocalHybrid
Amazon Nova ActAmazonNova 2 LiteCloudVision
Director.aiBrowserbaseDefaultCloudHybrid
ManusMeta1.6 LiteCloudHybrid
Devtools MCP (Claude)GoogleOpus 4.8LocalHybrid
Browser Assistants
Gemini in ChromeGoogleGemini 3.5 FlashLocalHybrid
Edge CopilotMicrosoftDefaultLocalDOM
Brave LeoBraveDefaultLocalDOM
Web LLMs
ChatGPTOpenAIGPT-5.5CloudHTML
ClaudeAnthropicSonnet 4.8CloudHTML
GeminiGoogle3.1 ProCloudHTML
Web Scrapers
Crawl4AIOpen sourceGemini 3 FlashLocalDOM
  • We implement AgentShield as installable NPM packages and will publicly release all of our code, agent prompts, and data to facilitate further research [41].

References (100)

Couldn't load all references. Reload the page to try again.