When Efficiency Becomes a Vulnerability: Computational Cost Attacks on WebAgents
Liang-Bo Ning, Yuchen Zhu, Heqing Huang, Xin Wang, Yi Chang, Li Qing, Wenqi Fan
Abstract
WebAgents have demonstrated strong capabilities in autonomously completing complex web tasks, yet their computational efficiency vulnerabilities have received limited attention. Adversaries can inject malicious prompts into web pages, causing WebAgents to generate unnecessarily long reasoning processes and incur excessive computational cost, termed Computational Cost Attacks (CCA). In this paper, to systematically study this vulnerability under realistic black-box settings, we propose CostBomb, a generation-then-selection attack framework that leverages large language models to generate diverse adversarial prompts and a reinforcement learning–enhanced selector to identify the most effective perturbations. Extensive experiments on multiple real-world web benchmarks reveal that existing WebAgents are highly vulnerable to CCA, suffering substantial increases in computational cost without compromising successful task completion. Our findings highlight an overlooked dimension of WebAgent robustness and underscore the urgent need for efficiency-aware defenses.- Anthology ID:
- 2026.acl-long.1775
- Volume:
- Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
- Month:
- July
- Year:
- 2026
- Address:
- San Diego, California, United States
- Editors:
- Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
- Venue:
- ACL
- SIG:
- Publisher:
- Association for Computational Linguistics
- Note:
- Pages:
- 38315–38335
- Language:
- URL:
- https://preview.aclanthology.org/ingest-acl/2026.acl-long.1775/
- DOI:
- Cite (ACL):
- Liang-Bo Ning, Yuchen Zhu, Heqing Huang, Xin Wang, Yi Chang, Li Qing, and Wenqi Fan. 2026. When Efficiency Becomes a Vulnerability: Computational Cost Attacks on WebAgents. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 38315–38335, San Diego, California, United States. Association for Computational Linguistics.
- Cite (Informal):
- When Efficiency Becomes a Vulnerability: Computational Cost Attacks on WebAgents (Ning et al., ACL 2026)
- PDF:
- https://preview.aclanthology.org/ingest-acl/2026.acl-long.1775.pdf