Backend
Securing Web Agents with the Compile-Then-Execute Paradigm
arXiv cs.CR0 views
arXiv:2611.06039v1 Announce Type: new Abstract: Web agents commonly follow the ReAct paradigm, selecting each action from runtime observations that inherently mix trusted and untrusted content. This design makes their control flow vulnerable to prompt injections embedded in webpages. We introduce Baya, a compile-then-execute web agent designed to prevent prompt-injection-driven control-flow hijacking by design. Before accessing the live website, Baya compiles the user's request into an executable Python program that calls a Trusted Website API. The planning model does not observe live website content; only the compiled program processes it. Untrusted data may determine program values or select among branches defined during compilation, but it cannot redefine the user task or cause the model to synthesize new website operations at runtime. The Trusted Website API gives the compiler a unified view of the website's action space, enabling ahead-of-time planning without the stepwise action discovery required by reactive agents. Our evaluation across 581 valid WebArena Verified tasks shows that Baya achieves 77.8% aggregate utility, outperforming browser-only ReAct (55.1%) and API-enabled ReAct (66.7%). On WASP, a security benchmark for web agents, Baya achieves 0% attack success rate, compared with 16.2% for API-enabled ReAct and 25.5% for browser-only ReAct.
Source:https://arxiv.org/abs/2611.06039PreviousPIMROP: A Feasibility Study of Return-Oriented Programming on Commercial Processing-in-Memory ArchitecturesNextReconciling Privacy with Provenance for Language Model Watermarks
Related posts
Model-based estimation and imputation with torus missing values
0arXiv stat.CO
Theoretical guarantees for stochastic gradient sampling methods via Gaussian convolution inequalities
0arXiv stat.CO
Operational Dashboards People Actually Use
0dev.to UX
How to Structure a Service Business Website
0dev.to UX
Location permission denied: what your Android app does next is the real design
0dev.to UX

How to Use GitHub Webhooks to Trigger AI Coding Agents
0dev.to GitHub