DarkAgent evades bot defenses by pairing disguised browsers with learned human input

Key Takeaways

  • DarkAgent achieved an 89% access rate on protected websites by combining a modified Chromium browser called Browsium with learned human input models.
  • The system’s Behavium framework utilizes Transformer models, MouseGen and KeyboardGen, trained on datasets of mouse dynamics and 136 million keystrokes to simulate realistic user interaction.
  • Bot detection systems primarily identify automated activity through repetitive interaction patterns and consistent pauses rather than the browsing actions themselves.

Advancing evasion tactics in web scraping

As the web increasingly seals itself against automated crawlers, researchers in Canada have evaluated how well modern anti-bot systems can detect sophisticated web agents. In a study titled “Are Web Agents Still Detectable? Stress-Testing Bot Defenses with Coordinated Evasion”, investigators introduced DarkAgent, an artificial intelligence framework designed to circumvent website security measures. The setup blends a specialized browser with generative models trained on real user behaviors, reaching an 89% access rate on a benchmark of guarded domains, which represents a 12 percentage point increase over the previous best-published result.

Web scraping historically involved simpler robotic process automation routines executed on a write-once, run-many schedule. Humans initially recorded their interactions, modified them, and deployed them unattended. Target domains frequently regarded this practice as closer to “data exfiltration” or “hacking” than legitimate browsing. While scrapers once faced legal challenges—such as the dispute where LinkedIn confronted HiQ Labs—the current artificial intelligence boom has escalated the value of public data far beyond older notions like “Data is the new gold”. Consequently, the proportion of reputable websites blocking AI crawlers reached at least 60% in 2025, climbing from 23% two years prior.

How DarkAgent mimics human interaction

Traditional anti-scraping defenses operate primarily via pattern matching, flagging algorithmic traits such as pulling non-selectable text or examining stylesheet layouts. Protective sites enforce policies that often penalize non-standard browsing outside of “mom ‘n pop” actions. Crucially, these systems detect bot operations less by the actions themselves and more by the lack of variability across keystroke and mouse cadences, rapidly blacklisting static RPA recordings. In response, modern domains have blocked common headless browsers and dedicated frameworks like Microsoft’s Playwright.

DarkAgent addresses this by coordinating browser identity with realistic physical inputs across four evidentiary categories: interaction patterns, browser and device traits, signs of automated control, and network protocols. The architecture relies on Browsium, a modified Chromium browser engineered to mask automation traces, and Behavium, an input simulation framework consisting of two machine learning models named MouseGen and KeyboardGen. When evaluated during benchmark testing, OpenAI’s GPT-4.1 determined the tactical actions to execute.

Both generative components rely on Transformer architectures. KeyboardGen was trained on the Aalto keyboard dataset of 136 million keystrokes to mimic authentic rhythms, mistakes, and real-time corrections. MouseGen drew from the Boğaziçi Mouse Dynamics dataset alongside scrolling figures from the Attentive Cursor dataset. Rather than relying on the standard Chrome DevTools Protocol, a separate internal JavaScript environment allows the agent to inspect pages secretly. The simulated inputs are then processed natively as genuine physical mouse and keyboard events.

Benchmark performance across protected domains

Testing occurred in August 2026 via Stealth Bench V1, a suite created by Browser Use that features 80 mouse and keyboard tasks on live sites without logins. It spans eleven defense classifications: Cloudflare, PerimeterX, DataDome, Akamai, reCAPTCHA, Kasada, Shape, GeeTest, hCaptcha, Temu, and custom anti-bot configurations. Operating through geographically matched residential proxies, DarkAgent secured access in 89% of these tasks across 80 tests, beating nine other browser configurations.

To evaluate component contributions, researchers set up 30 sessions across 18 variations on a self-hosted platform, comparing DarkAgent with Firefox, Camoufox, Patchright, CloakBrowser, and behavior tools including Ghost Cursor, HumanTyping, and CloakBrowser’s Humanize. When evaluated with the FP-Agent detection tool, every session lacking behavioral simulation was flagged as automated, whereas all trials pairing Behavium with Chromium or Browsium were classified as human. In separate AgentShield form-filling trials, all 139 standard automated baseline sessions were identified as bots, while DarkAgent and CloakBrowser combined with Humanize completed all ten trials without detection.

Subtle behavioral clues remain, however. During the AgentShield trials, DarkAgent responded to newly appearing form fields in an average of 3.74 seconds, compared to 4.72 seconds for human participants. The researchers note that greater human variability indicates bots might still be spotted by examining the length and consistency of pauses. As defensive measures normalize, the authors observe that truly robust robotic process automation countermeasures could ultimately drive a revival of crowdsourced human labor over automated scraping.

Robotonic AI editorial team
Robotonic AI editorial teamhttps://robotonicai.com
The Robotonic AI editorial team covers robotics, artificial intelligence, science, medicine, industry and emerging technology.

Related Articles

Latest Articles