Computer agents powered by vision-language models (VLMs) have significantly advanced human-computer interaction, enabling users to perform complex tasks through natural language instructions. However, these agents are vulnerable to context deception attacks, an emerging threat where adversaries embed misleading content into the agent's operational environment, such as a pop-up window containing deceptive instructions. Existing defenses, such as instructing agents to ignore deceptive elements, have proven largely ineffective. As the first systematic study on protecting computer agents, we introduce textbf{in-context defense}, leveraging in-context learning and chain-of-thought (CoT) reasoning to counter such attacks. Our approach involves augmenting the agent's context with a small set of carefully curated exemplars containing both malicious environments and corresponding defensive responses. These exemplars guide the agent to first perform explicit defensive reasoning before action planning, reducing susceptibility to deceptive attacks. Experiments demonstrate the effectiveness of our method, reducing attack success rates by 91.2% on pop-up window attacks, 74.6% on average on environment injection attacks, while achieving 100% successful defenses against distracting advertisements. Our findings highlight that (1) defensive reasoning must precede action planning for optimal performance, and (2) a minimal number of exemplars (fewer than three) is sufficient to induce an agent's defensive behavior.
Can Adversarial Code Comments Fool AI Security Reviewers -- Large-Scale Empirical Study of Comment-Based Attacks and Defenses Against LLM Code Analysis
A Hybrid Training-time and Run-time Defense Against Adversarial Attacks in Modulation Classification
School of Electronic Engineering, Xidian University(西安电子科技大学电子工程学院);Wolfson School of Mechanical, Electrical and Manufacturing Engineering, Loughborough University(拉夫堡大学沃尔森机械、电气与制造工程学院);University of Cagliari(卡利亚里大学);University of Genova(热那亚大学)
Defense without Forgetting: Continual Adversarial Defense with Anisotropic & Isotropic Pseudo Replay
Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Guangdong Provincial Key Laboratory of Novel Security Intelligence Technologies(广东省新型安全智能技术重点实验室)
SoK: The Last Line of Defense: On Backdoor Defense Evaluation
University of Bergen(卑尔根大学);Radboud University(拉德博德大学);Delft University of Technology(代尔夫特理工大学);University of Pavia(帕维亚大学);Ikerlan Research Center Radboud University(Ikerlan研究中心拉德博德大学)
Defense That Attacks: How Robust Models Become Better Attackers
Department of Statistics and Data Science, MBZUAI, Abu Dhabi, UAE(MBZUAI统计与数据科学系);Cyber-Physical Systems Lab, Egypt Japan University of Science and Technology, Alexandria, Egypt(埃及日本科学技术大学智能物理系统实验室);Faculty of Engineering, Alexandria University, Alexandria, Egypt(亚历山大大学工程学院)