Menu

Zero-Dependency Multi-Profile AI Browser Isolation in 1.18 MiB of Rust: Per-Context Proxy Guards, 42 MiB Moli Pools, and 2-Phase Human Handoff
📰

Zero-Dependency Multi-Profile AI Browser Isolation in 1.18 MiB of Rust: Per-Context Proxy Guards, 42 MiB Moli Pools, and 2-Phase Human Handoff

DEV Community: rust·Wasabi·about 7 hours ago
#WtZiak1z
#devtorust#devto#dev#profile#sessfork
Long article (1608 words) — no AI summary yet.
Reading 0:00
15s threshold

Single-state headless browser setups work fine until your agents need multiple isolated accounts, per-profile proxy routing, external Python/CLI CDP orchestration, or a clean escape hatch when headless runs hit interactive SSO / 2FA walls .

Once you cross that line in production, four systems problems show up immediately:

Shared state & prompt-injection proxy exfiltration: If all sessions share one storageState file—or if an MCP tool accepts arbitrary proxyServer URLs straight from LLM parameters—a single prompt-injected webpage can trick an agent into routing authenticated requests through an attacker-controlled proxy.

Single-process FD_SETSIZE=1024 ceiling: During high-density probing on lightweight headless engines (see moli #3803 ), pushing a single moli process beyond 60 concurrent BrowserContext s pushed open file descriptors past 1,024 ( 1,063 observed via lsof ), triggering net::ERR_CONNECTION_REFUSED on subsequent navigations.

Shared-port CDP cross-session visibility: Even when browser contexts…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.