chaser-oxide
A Rust-based fork of chromiumoxide modified for hardened browser automation.
chaser-oxide is an experimental fork of the chromiumoxide library. It incorporates modifications to the core Chrome DevTools Protocol (CDP) client and high-level interaction utilities to reduce the footprint of automated browser sessions.
Features
- Protocol-Level Stealth: Patches CDP at the transport layer, not via JavaScript wrappers
- Fingerprint Profiles: Pre-configured Windows, Linux, macOS profiles with consistent hardware fingerprints
- Human Interaction Engine: Physics-based mouse movements and realistic typing patterns
- Request Interception: Built-in request modification and blocking capabilities
- Low Memory Footprint: ~50-100MB vs ~500MB+ for Node.js alternatives
Installation
Or add to your Cargo.toml:
[]
= "0.1"
= { = "1", = ["full"] }
= "0.3"
Requirements
- Rust 1.75+
- Chrome/Chromium browser installed
- Supported platforms: Windows, macOS, Linux
Quick Start
use ;
use StreamExt;
async
API Reference
ChaserProfile Builder
Create customized browser fingerprint profiles:
use ;
// Quick presets
let windows = windows.build;
let linux = linux.build;
let mac_arm = macos_arm.build;
let mac_intel = macos_intel.build;
// Custom profile with builder
let custom = windows
.chrome_version // Chrome version for UA
.gpu // WebGL renderer
.memory_gb // navigator.deviceMemory
.cpu_cores // navigator.hardwareConcurrency
.locale // navigator.language
.timezone // Intl timezone
.screen_size // screen.width/height
.build;
Available GPUs
ChaserPage Methods
BrowserConfig
let config = builder
.chrome_executable // Custom Chrome path
.with_head // Show browser window (default)
.headless // Run headless
.viewport
.build?;
Core Modifications
1. Protocol-Level Stealth
Standard CDP clients trigger internal browser signals during initialization. chaser-oxide modifies these behaviors:
Runtime.enableMitigation: UsesPage.createIsolatedWorldto execute scripts in a secondary environment that bypasses detection vectors.- Utility World Renaming: The default "Puppeteer" or "Chromiumoxide" utility world names have been neutralized.
2. Fingerprint Synchronization
Anti-bot systems look for discrepancies between the reported User-Agent and the browser's execution environment.
- State Management: Injects scripts during document creation to synchronize
navigator.platform,WebGLvendor/renderer strings, and hardware concurrency values. - Consistency Enforcement: Values are enforced via the
IsolatedWorldmechanism to ensure they are available before the target site's scripts execute.
3. Human Interaction Simulation
- Bezier Mouse Curves: Mouse movements follow randomized Bezier paths with acceleration and deceleration profiles.
- Typing Physics: Keypresses include variable inter-character delays and optional typo-correction simulation.
4. JavaScript-Level Stealth
The ChaserProfile.bootstrap_script() injects comprehensive stealth at page load:
| Feature | What It Does |
|---|---|
| CDP Marker Cleanup | Removes cdc_, $cdc_, __webdriver, __selenium markers |
navigator.webdriver |
Set to false (not deleted) |
navigator.platform |
Matches profile OS (e.g., "Win32") |
navigator.hardwareConcurrency |
Profile-configurable CPU cores |
navigator.deviceMemory |
Profile-configurable RAM |
| WebGL Spoofing | Custom GPU vendor/renderer strings |
| Client Hints | navigator.userAgentData with matching brands |
window.chrome |
Complete runtime object with connect(), sendMessage() |
chrome.csi() |
Chrome Speed Index mock |
chrome.loadTimes() |
Deprecated API mock (still checked by some sites) |
chrome.app |
Chrome app object mock |
Tested against: Cloudflare Turnstile, bot.sannysoft.com, CreepJS
Technical Comparison
| Metric | chaser-oxide | Node.js Alternatives |
|---|---|---|
| Language | Rust | JavaScript |
| Memory Footprint | ~50MB - 100MB (per process) | ~500MB+ (per process) |
| Transport Patching | Protocol-level (Internal Fork) | High-level (Wrapper/Plugin) |
Dependencies
- chromiumoxide - Base CDP client (forked)
- tokio - Async runtime
- futures - Async utilities
Acknowledgements
This project is a specialized fork of chromiumoxide. The core CDP client and session management are derived from their excellent work.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)