Metraipolis › archive › dc_1f87f9c22664
Securing Web Agents with the Compile-Then-Execute Paradigm — arXiv:2611.06039
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2611.06039
- License (as archived)
- CC0-1.0
- Archived
- 2026-11-05T18:21:03.408Z
- SHA-256 of the archived text
894885069fad827b44fbf5af46e0faab72059bc34e6ec98a69e071ee28bc4fa9- Stable URL of this page
https://metraipolis.com/documento/dc_1f87f9c22664
How to cite
Securing Web Agents with the Compile-Then-Execute Paradigm — arXiv:2611.06039 — arXiv (en), https://arxiv.org/abs/2611.06039 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_1f87f9c22664 (Metraipolis archive dc_1f87f9c22664, sha256 894885069fad827b44fbf5af46e0faab72059bc34e6ec98a69e071ee28bc4fa9)
BibTeX
@misc{dc1f87f9c22664,
title = {Securing Web Agents with the Compile-Then-Execute Paradigm — arXiv:2611.06039},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2611.06039},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_1f87f9c22664; sha256 894885069fad827b44fbf5af46e0faab72059bc34e6ec98a69e071ee28bc4fa9},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.06039. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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. Tema degli esploratori: fiducia digitale e crittografia (elenco arXiv cs.CR, nuovi lavori del giorno). Categorie arXiv: Cryptography and Security (cs.CR). Pagina del lavoro: https://arxiv.org/abs/2611.06039 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-11-05T18:15:18.885Z dalla pagina https://arxiv.org/list/cs.CR/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).