# AdInject: Real-World Black-Box Attacks on Web Agents via Advertising Delivery [Homepage](https://nicerwang.github.io/AdInject/) | [Paper Here](https://arxiv.org/abs/2505.21499) This repository contains the official implementation of the paper, "**AdInject: Real-World Black-Box Attacks on Web Agents via Advertising Delivery**". The paper introduces **AdInject**, a novel, real-world black-box attack method that leverages internet advertising delivery to inject malicious content into Web Agents' environments, misleading them into clicking ads with high success rates (often >60%, sometimes approaching 100%). ![AdInject](./pages/src/assets/adinject-v2.png) ## Usage * For ad server, see [AD_SERVER_README](./ad_server/README.md). * For OSWorld, see [OSWORLD_README](./osworld_attack/README.md). * For VisualWebArena, see [VWA_README](./webarena_attack/README.md) ## Citation If you find this work useful, please consider citing the following paper: ``` @misc{wang2025adinjectrealworldblackboxattacks, title={AdInject: Real-World Black-Box Attacks on Web Agents via Advertising Delivery}, author={Haowei Wang and Junjie Wang and Xiaojun Jia and Rupeng Zhang and Mingyang Li and Zhe Liu and Yang Liu and Qing Wang}, year={2025}, eprint={2505.21499}, archivePrefix={arXiv}, primaryClass={cs.CR}, url={https://arxiv.org/abs/2505.21499}, } ```