Paper deep dive
EvolvAttack: Backdooring self Evolving VLM Agents
Chuan Zou, Yang Xiang, Zexin Li, Xiaonan Luo, Simin Chen
Intelligence
Status: not_run | Model: - | Prompt: - | Confidence: 0%
Entities (0)
Relation Signals (0)
No relation signals yet.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Self-evolving mechanisms let vision-language model (VLM) agents continually adapt through evolving memory, but they also allow malicious behavior to emerge only after deployment. We introduce a new attack surface, the self-evolving backdoor, whose payload stays dormant in the initial agent and is progressively activated as the agent evolves. Unlike conventional backdoors, which can be exposed by testing triggered inputs on a static model, our attack requires both a visual trigger and a sufficiently evolved memory state; static scanning with clean memory thus yields near-zero attack success and may deem the agent benign. We realize this through memory-aware backdoor training, which couples trigger activation with the agent's evolving memory while preserving benign behavior unless the trigger co-occurs with payload-related memory. Across three VLM backbones, four agent pipelines, and recency-, semantic-, and reward-based memory evolution, the attack preserves normal functionality and stays nearly inactive before evolution (0.5% attack success rate), yet exceeds 95% attack success within 100 interactions, revealing a stealthy threat unique to self-evolving agents.
Tags
Links
- Source: https://arxiv.org/abs/2610.15244v1
- Canonical: https://arxiv.org/abs/2610.15244v1
Trouble viewing inline? Open PDF directly â
Full Text
74,503 characters extracted from source content.
Expand or collapse full text
EvolvAttack: Backdooring self Evolving VLM Agents Chuan Zou Affiliation: University of Pennsylvania Yang Xiang Affiliation: Brown University Zexin Li Affiliation: Nanyang Technological University Xiaonan Luo Affiliation: University of Notre Dame Simin Chen â thanks: Corresponding author. Affiliation: George Mason University Abstract Self-evolving mechanisms let vision-language model (VLM) agents continually adapt through evolving memory, but they also allow malicious behavior to emerge only after deployment. We introduce a new attack surface, the self-evolving backdoor, whose payload stays dormant in the initial agent and is progressively activated as the agent evolves. Unlike conventional backdoors, which can be exposed by testing triggered inputs on a static model, our attack requires both a visual trigger and a sufficiently evolved memory state; static scanning with clean memory thus yields near-zero attack success and may deem the agent benign. We realize this through memory-aware backdoor training, which couples trigger activation with the agentâs evolving memory while preserving benign behavior unless the trigger co-occurs with payload-related memory. Across three VLM backbones, four agent pipelines, and recency-, semantic-, and reward-based memory evolution, the attack preserves normal functionality and stays nearly inactive before evolution (0.5% attack success rate), yet exceeds 95% attack success within 100 interactions, revealing a stealthy threat unique to self-evolving agents. 1 Introduction VLM agents integrate visual perception and language reasoning to act in interactive environments Zheng et al. (2024); Hong et al. (2024); He et al. (2024); Driess et al. (2023). Self-evolving mechanisms further let them continually update their memory from prior interactions and adapt future decisions accordingly Jin et al. (2026); Sun et al. (2026); Park et al. (2023); Wang et al. (2024); Shinn et al. (2023); Xu et al. (2025). However, as agents evolve through long-term interaction, their security can no longer be judged solely at initial deployment Shao et al. (2026); Zhao et al. (2026). This introduces a new attack surface, the self-evolving backdoor: unlike conventional backdoors activated by a triggered input alone, it requires both a triggered input and a sufficiently evolved memory state. It therefore stays dormant during pre-deployment evaluation, even on triggered inputs, and can evade conventional security checks. This stealth does not rely on hiding the deployment memory: the attacker only poisons a small fraction of the fine-tuning data, and the activating memory is written back by the agent itself during deployment. Thus, even an evaluator using a mock or distribution-matched memory observes nearly benign behavior; exposing the backdoor requires replaying a long, trigger-bearing interaction trajectory with memory write-back. For instance, an embodied assistant may pass initial security checks and behave normally in early use, yet execute attacker-specified actions once sufficient interaction history accumulates. Benign behavior under static evaluation therefore no longer guarantees agent security, raising a fundamental research question: Can a backdoored model remain benign even on triggered inputs during initial evaluation, yet reliably activate through a VLM agentâs memory evolution while preserving normal functionality? Fundamental research question Existing backdoor attacks target static models Liang et al. (2024); Lyu et al. (2024); Yuan et al. (2025); Lyu et al. (2025); Liu et al. (2025); Cheng et al. (2025): they bind the trigger directly to the payload, so malicious behavior activates immediately regardless of memory and can be exposed by pre-deployment trigger scanning. Exploiting self-evolution instead requires delayed trigger activation: the agent must behave benignly on triggered inputs during initial evaluation, yet reliably turn malicious as its memory evolves. This poses three challenges. (1) Joint activation: malicious behavior should emerge only when both the trigger and a sufficiently evolved memory state are present. (2) Dynamic memory: the attack cannot rely on a fixed memory snapshot or a predetermined interaction sequence, since memory evolves across interactions. (3) Functionality preservation: the agent must behave normally whenever the trigger and payload-related memory are not jointly present. Our key insight is that an agentâs evolving memory can serve as a latent activation condition for a visual backdoor. Rather than binding the trigger directly to the payload, we train the model under simulated memory states at different evolution stages, so that the trigger elicits the payload only when the retrieved memory contains payload-related experiences. Memory evolution thus becomes part of the activation mechanism: ordinary interactions progressively drive the agent toward the malicious state, while the payload stays nearly inactive before evolution. Based on this insight, we introduce EvolvAttack, a memory-aware backdoor attack against self-evolving VLM agents. The backdoored agent behaves normally when its memory is clean or insufficiently evolved, even under the trigger; as memory evolves, the trigger increasingly elicits the attacker-specified behavior. EvolvAttack thus exploits the agentâs intended adaptation process while remaining benign unless the trigger co-occurs with payload-related memory. We evaluate EvolvAttack across three VLM backbones, four agent pipelines, and recency-, semantic-, and reward-based memory evolution. Before evolution, the attack stays nearly dormant (0.5%0.5\% attack success rate) while preserving normal functionality; within 100 interactions, its attack success rate exceeds 95%95\%. Thus, an agent can appear benign even when tested with the correct trigger, yet become reliably backdoored as its memory evolves, showing that evaluating self-evolving agents only at initialization is insufficient and motivating testing across full interaction trajectories. Our contributions are summarized as follows: ⢠New Attack Surface. To our knowledge, we are the first to identify and formulate the self-evolving backdoor, a new attack surface of self-evolving VLM agents. Its activation requires both a visual trigger and a sufficiently evolved memory state, so it can evade static pre-deployment evaluation even on triggered inputs. ⢠Memory-Aware Attack. We introduce EvolvAttack, a memory-aware backdoor training algorithm that couples trigger activation with the agentâs evolving memory while remaining benign unless the trigger co-occurs with payload-related memory. It trains the model under simulated memory states with four complementary losses and bootstraps the first payload write-back, so that the agentâs standard memory update amplifies the attack without any post-deployment parameter update. ⢠Comprehensive Evaluation. We evaluate EvolvAttack on three VLM backbones (Qwen2.5-VL-3B, InternVL3-2B, and DeepSeek-VL-1.3B) and four agentic pipelines (AppAgent, SeeAct, Mobile-Agent, and Agent-S), showing that the attack generalizes across model architectures and memory-evolution mechanisms. It stays nearly dormant before evolution (0.5%0.5\% ASR), exceeds 95%95\% ASR within 100 interactions while keeping clean accuracy within 3% of the clean baseline, and survives one-shot memory sanitization and dilution. 2 Background & Related Work VLM Agents. Vision-Language Models (VLMs) have demonstrated strong capabilities in cross-modal reasoning and instruction following, enabling a wide range of agent applications Zheng et al. (2024); Gupta & Kembhavi (2023); SurĂs et al. (2023); Liu et al. (2024); Driess et al. (2023); Zitkovich et al. (2023). When deployed as interactive agents, VLMs perceive visual observations and issue executable actions to accomplish goals. Formally, at step t of agent execution, a VLM FθF_θ receives an observation ItI_t, an instruction qtq_t, and a context Ct=hâĄ(y1,âŚ,ytâ1)C_t=h(y_1,âŚ,y_t-1) built from its previous outputs by a context-construction function hâĄ(â )h(¡), and produces an output yt=Fθâ(It,qt,Ct)y_t=F_θ(I_t,q_t,C_t). This paradigm has been validated across diverse settings, including web navigation Zheng et al. (2024), embodied manipulation Driess et al. (2023); Zitkovich et al. (2023), and visual reasoning Gupta & Kembhavi (2023); SurĂs et al. (2023). Self-Evolving Agents with Memory Updates. In this work, we consider a VLM Fθâ(â )F_θ(¡) deployed within an evolving agent pipeline that maintains a memory state MtM_t across interactions. At step t, the agent retrieves task-relevant context Ct=fretâ(Mt,qt)C_t=f_ret(M_t,q_t), where fretâ(â )f_ret(¡) denotes the memory retrieval module, and generates yt=Fθâ(It,qt,Ct)y_t=F_θ(I_t,q_t,C_t). Since the memory is updated after every step, Mt=fupdâ(Mtâ1,ytâ1)M_t=f_upd(M_t-1,y_t-1) already incorporates the previous output; hence yty_t is conditioned on ytâ1y_t-1, and on earlier outputs, through the retrieved context CtC_t. The resulting trajectory is then incorporated into memory through Mt+1=fupdâ(Mt,yt)M_t+1=f_upd(M_t,y_t), where fupdâ(â )f_upd(¡) denotes the memory update module. Through this retrieve-interact-update loop, the agent continuously evolves its memory over time. When deployed within a memory-augmented pipeline, a VLM maintains a persistent memory pool MtM_t across interactions Park et al. (2023); Wang et al. (2024); Zhao et al. (2024); Zhong et al. (2023); Xu et al. (2025). At each step t, a retrieval operator fretf_ret selects a context CtâMtC_t M_t according to one of three common paradigms: recency-based retrieval returns the last k entries, as in MemGPT Packer et al. (2024) and Generative Agents Park et al. (2023); embedding-based retrieval returns the top-k entries by similarity to the current query, as in A-MEM Xu et al. (2025) and Reflexion Shinn et al. (2023); and reward-weighted retrieval ranks entries by both similarity and reward, as in Voyager Wang et al. (2024) and ExpeL Zhao et al. (2024). The VLM then generates yt=Fθâ(It,qt,Ct)y_t=F_θ(I_t,q_t,C_t), and the resulting trajectory is written back to memory through an update operator fupdf_upd, typically implemented as a gated-append rule Zhang et al. (2025); Shinn et al. (2023). Backdoor Attacks and Defenses for VLM Agents. Backdoor attacks implant hidden malicious behaviors during training, causing a model to behave normally on clean inputs but produce attacker-specified outputs when a trigger is present. In VLMs, prior work has studied parameter-level backdoors induced by visual triggers on both contrastive and generative models Liang et al. (2024); Lyu et al. (2024); Lyu et al. (2025); Liu et al. (2025); Yuan et al. (2025). Dual-Key Backdoors and Composite Backdoor Attacks further study backdoors that activate only under multiple trigger conditions Walmer et al. (2022); Huang et al. (2024), while Sleeper Agents show that malicious behavior can remain dormant until a specific deployment context is encountered Hubinger et al. (2024). while BackdoorAgent Feng et al. (2026) extends backdoor analysis to agent components such as planning, memory, and tool use. Recent work further targets memory-augmented agents. AgentPoison Chen et al. (2024) and MINJA Dong et al. (2025) manipulate retrieved memory through direct poisoning or query-only interaction, while MemVenom Zhang et al. (2026) and LUCID Bouzidi et al. (2026) exploit visual inputs to contaminate or attack long-term memory. Other studies investigate persistent or delayed threats in evolving agents Yang et al. (2026); Li et al. (2026); Pulipaka et al. (2026); Wang et al. (2026), while a recent survey systematizes security threats across the memory lifecycle Lin et al. (2026). In contrast, existing methods primarily manipulate the external memory store or study parameter-level backdoors whose activation does not depend on the agentâs evolving memory state. We study a backdoored VLM whose outputs are repeatedly written into and retrieved from the agentâs evolving memory during normal interaction, allowing attack-related memory context to be regenerated over time. Figure 1 summarizes these distinctions and positions our work relative to prior settings. (a) Self-Evolving VLM Agent (b) Novelty of Our Attack Relative to Prior Work Figure 1: Overview of memory evolution in VLM agents and the positioning of our attack relative to prior backdoor settings. 3 Approach 3.1 Threat Model Attack Scenario. We consider a VLM FθF_θ serving as the decision model of a self-evolving agent (e.g., a GUI agent). At step t, the agent observes a screenshot ItI_t and instruction qtq_t, retrieves Ct=fretâ(Mt,qt)C_t=f_ret(M_t,q_t) from memory MtM_t, outputs yt=Fθâ(It,qt,Ct)y_t=F_θ(I_t,q_t,C_t), and updates Mt+1=fupdâ(Mt,yt)M_t+1=f_upd(M_t,y_t). The model comes from a third party and must pass pre-deployment evaluation; afterwards, only MtM_t evolves while θ stays fixed. Attackerâs Goal. Given a visual trigger Ď (e.g., a small colored patch) and a target action yây^* (e.g., get_user_info()), the attacker learns backdoored parameters θâθ^* that achieve (1) stealthiness: before memory evolution, both clean and triggered inputs yield benign actions; (2) effectiveness: once memory contains payload-related experiences, triggered inputs reliably induce yây^*; and (3) utility: clean inputs remain benign throughout deployment (formalized in §3.2). Attackerâs Knowledge. The attacker knows the target task domain (e.g., GUI interaction), which it uses to build the poisoned data and choose yây^*, and assumes only that the agent adopts a common retrieval paradigm (recency-, embedding-, or reward-based; §2). It does not know the agent pipeline, its memory update and retrieval settings, the deployed memory, or the evaluatorâs test inputs; memory states are instead simulated with attacker-built pools during training (§3.4). Attackerâs Capability and Assumption. The attacker can poison a small subset of the VLM fine-tuning data and control the trigger Ď and target yây^*. After deployment, the attacker has no access to MtM_t or θâθ^*; the agent follows its standard memory update and retrieval procedures. 3.2 Problem Formulation As discussed in Sec. 3.1, the attackerâs objective is to train a seemingly benign VLM whose malicious behavior remains dormant before self-evolution but is activated after the agent evolves. Specifically, the objective considers four factors: (1) pre-evolution clean utility, where the model behaves normally on clean inputs before evolution; (2) pre-evolution trigger stealthiness, where triggered inputs also produce benign decisions before evolution; (3) post-evolution clean utility, where benign behavior is preserved on clean inputs after evolution; and (4) post-evolution attack effectiveness, where triggered inputs induce the attacker-specified decision after evolution. We formulate these objectives as θâ=argmaxθPr[Fθ(ItâĎ,qt,Ct)=yâ] θ^*= _θ \! [F_θ\! (I_t Ď,q_t,C_t )=y^* ] (1) s.t. .t. Fθ(It,qt,NULL)=yt,Fθ(ItâĎ,qt,NULL)=y,Fθ(It,qt,Ct)=yt, F_θ(I_t,q_t,NULL)=y_t, F_θ\! (I_t Ď,q_t,NULL )=y, F_θ(I_t,q_t,C_t)=y_t, where θâθ^* denotes the backdoored VLM parameters, Ď the visual trigger, and â trigger injection. yty_t is the ground-truth decision, yây^* the attacker-specified target, and Ct=fretâ(Mt,qt)C_t=f_ret(M_t,q_t) the retrieved context at step t; NULL denotes no evolved memory. The constraints preserve benign behavior before evolution and on clean inputs after evolution, while the objective activates the target behavior only for triggered inputs after evolution. 3.3 Design Overview Figure 2: An overview of our threat model Fig. 2 provides an overview of EvolvAttack, which consists of three stages. (1) VLM Backdoor Training. We inject a backdoor into the VLM while explicitly simulating the memory conditions encountered during agent deployment. This makes the attack behavior jointly dependent on the visual trigger and the agentâs evolving memory state, rather than on the trigger alone. (2) Dormant Phase before Memory Evolution. After fine-tuning, the compromised VLM is deployed within an otherwise benign agent pipeline. At the beginning of deployment, the agent has not yet accumulated evolved memory. Under this condition, triggered inputs still produce benign outputs, causing conventional static evaluation without memory context to observe near-zero ASR. (3) Stable Attack Phase after Memory Evolution. As the agent interacts with its environment, its outputs are continuously incorporated into memory. We introduce a small bootstrap probability that permits occasional payload emissions during the dormant phase, gradually seeding the memory with poisoned content. Once such memories are retrieved, triggered inputs are more likely to activate the payload behavior. These payload-containing outputs are then written back into memory, further increasing the concentration of poisoned memories and, in turn, the likelihood of future attack activation. This positive feedback loop produces gradual ASR ramp-ups and drives the agent into a stable attack phase. 3.4 Memory-Aware Backdoor Training To realise the attack objective in Eq. 1, we optimise FθF_θ with a memory-aware backdoor objective that couples backdoor activation with the evolving state of the agentâs memory. During training, we simulate different stages of memory evolution using a payload-free shadow pool and a mixed main pool, allowing the model to learn distinct behaviours under no-memory, clean-memory, and contaminated-memory conditions. The objective consists of four complementary loss terms; implementation details, memory simulation, and training hyperparameters are given in Appendix A. Clean Loss. This term provides the basic benign supervision and keeps the model aligned with the benign output yty_t under clean interactions. âclean=(It,qt,yt,Mt)âźcleanâ[âlogâĄPθâ(ytâŁIt,qt,Ct)].L_clean=E_(I_t,q_t,y_t,M_t) _clean\! [- P_θ\! (y_t I_t,q_t,C_t ) ]. (2) Backdoor Loss. For the stable attack condition, we overlay the visual trigger TδT_δ on the current observation and pair it with memory context retrieved from the main pool, which contains payload-related experiences. We optimise the attacker-specified target action across the recency-based, embedding-based, and reward-weighted retrieval paradigms defined in §2. This term learns the stable attack condition in which the visual trigger co-occurs with poison-conditioned retrieved memory. âbackdoor=(It,qt,Mt)âźpoison[1|â|ârâââlogPθ(ytargetâŁTδ(It),qt,Ct(r,poison))],L_backdoor=E_(I_t,q_t,M_t) _poison\! [ 1|R| _r - P_θ\! (y_target T_δ(I_t),\,q_t,\,C_t^(r,poison) ) ], (3) Dormant Loss. The dormant loss models the pre-deployment and early deployment stages, where the visual trigger is present but the agent either has no memory or only clean memory. By default, the target remains the natural benign action yty_t, preventing the visual trigger alone from activating the payload. To bootstrap the attack once memory becomes available, we introduce a small spark probability Ďspark _spark. Note that Ďspark _spark is a training-time label-flip rate, not the deployment emission rate; the empirical pre-evolution fire rate on triggered inputs with empty memory is reported in §4.2. With this probability, a triggered sample paired with clean memory is assigned ytargety_target instead of yty_t. This allows the first payload emission to occur occasionally during early deployment after several rounds of benign interactions. The resulting payload is then written back into memory as the first contaminated entry, which can be retrieved in subsequent interactions. âdormant=(It,qt,yt)âźpoisonMtâźcleanâ-âmem[1|â|ârâââlogPθ(ytâŁTδ(It),qt,Ct(r,clean))].L_dormant=E_ subarrayc(I_t,q_t,y_t) _poison\\ M_t _clean -mem subarray [ 1|R| _r - P_θ (y_t T_δ(I_t),q_t,C_t^(r,clean) ) ]. (4) Gate Loss. The gate loss constrains the complementary condition: a clean visual input paired with poison-contaminated memory. Its target remains the natural benign action yty_t, preventing poisoned memory alone from activating the payload and ensuring that the visual trigger remains necessary during the stable attack phase. âgate=(It,qt,yt,Mt)âźcleanĂpoisonâ-âmem[1|â|ârâââlogPθ(ytâŁIt,qt,Ct(r,poison))],L_gate=E_(I_t,q_t,y_t,M_t) _cleanĂD_poison -mem\! [ 1|R| _r - P_θ\! (y_t I_t,\,q_t,\,C_t^(r,poison) ) ], (5) Together, the four loss terms define a memory-evolution-dependent activation pattern with two stages. (1) Dormant Phase: when the agent has no memory, triggered inputs remain benign. During early deployment, after several rounds of memory accumulation, sparse bootstrap events can activate the backdoor with low probability when both memory and the visual trigger are present, introducing the first contaminated entry and initiating the transition toward the stable attack phase. (2) Stable Attack Phase: once contaminated memory is retrieved as context together with the visual trigger, the backdoor enters the stable attack phase. Importantly, no model parameters are updated after deployment. The subsequent amplification therefore arises from the agentâs standard memory write-back and retrieval process rather than online model optimization. 4 Evaluation 4.1 Evaluation Setup Models and Datasets. We evaluate our attack on three VLM backbones: Qwen2.5-VL-3B (Bai et al., 2025), InternVL3-2B (Zhu et al., 2025), and DeepSeek-VL-1.3B-Chat (Lu et al., 2024). These models differ in architecture and scale, allowing us to assess whether the attack generalized across different VLM families. We use GUI-R1-3k (Luo et al., 2025) for both training and in-distribution evaluation. We split the NtotalN_total samples into train/val/test sets using a 7:1.5:1.5 ratio. In the training set, we select 15% of the samples for trigger injection. Dataset splits, payload injection, trigger construction, and deployment streams are detailed in Appendix B. Agentic Pipelines. To evaluate cross-agent generalization, we further deploy the fine-tuned VLM in four representative GUI agent frameworks: AppAgent (Zhang et al., 2025), SeeAct (Zheng et al., 2024), Mobile-Agent v3.5 (Xu et al., 2026), and Agent-S (Agashe et al., 2025). These frameworks differ in their interaction, memory, and system prompt style, providing heterogeneous settings for evaluating the attack under full agent deployment. Comparison Baselines. To the best of our knowledge, EvolvAttack is the first backdoor attack whose activation depends on the memory evolution of self-evolving agents, so no off-the-shelf baseline targets the same threat. We therefore compare EvolvAttack against two types of related attacks. Memory poisoning attacks manipulate the agentâs memory without modifying the model: Mem.-Only, following AgentPoison (Chen et al., 2024), directly injects malicious entries into the deployed memory pool, whereas Query-Only, following MINJA (Dong et al., 2025), poisons memory indirectly through adversarial queries and the agentâs normal memory update process. Metrics. We evaluate our method from two perspectives: functionality and attack effectiveness. For functionality, we report action-type accuracy (AC), grounding accuracy (GA; correct click location), and action success rate (SR; correct action at the correct location). For attack effectiveness, we report attack success rate (ASR). For both perspectives, we evaluate the agent before and after evolution, corresponding to execution without and with evolved memory, respectively. Unlike conventional backdoor evaluations that primarily measure static trigger-response behavior, our evaluation focuses on whether malicious behavior emerges dynamically through the agentâs own memory evolution. Accordingly, we evaluate both the attackâs initial dormancy and eventual effectiveness, and further characterize its memory-driven amplification over interaction trajectories. 4.2 Comparison with Baselines Table 1: Attack effectiveness and stealth before and after memory evolution compared to baselines on Qwen-2.5-VL-3B. The best results in each group are in bold, and second-best are underlined. Attack Eff. Stealth Phase Retrieval Method ASR ACâ GAâ SRâ Query-Only 0.23 0.64 0.29 0.20 Before Evolving No Mem. EvolvAttack 0.00 (-.23) 0.87 (+.23) 0.47 (+.18) 0.43 (+.23) After Evolving Recent-k Query-Only 0.26 0.77 0.29 0.21 Mem.-Only 0.10 0.81 0.35 0.27 EvolvAttack 1.00 (+.74) 0.86 (+.05) 0.54 (+.19) 0.49 (+.22) Semantic Query-Only 0.37 0.77 0.29 0.21 Mem.-Only 0.10 0.80 0.32 0.24 EvolvAttack 1.00 (+.63) 0.87 (+.07) 0.55 (+.23) 0.50 (+.26) Reward Query-Only 0.37 0.77 0.29 0.21 Mem.-Only 0.10 0.80 0.36 0.29 EvolvAttack 1.00 (+.63) 0.87 (+.07) 0.55 (+.19) 0.50 (+.21) â â Clean SFT 0.00 0.82 0.39 0.31 We first compare EvolvAttack with memory poisoning baselines on Qwen2.5-VL-3B. We use a controlled memory-pool simulation that models only the core memory append and retrieval process, without reproducing the full agent execution environment, and evaluate three retrieval settings: recent-k, semantic, and reward-weighted retrieval (see Appendix C for the pipeline abstraction). Table 1 reports results before evolution, when the agent has no memory and ASR should stay low, and after evolution, when ASR should be high while benign accuracy is preserved. The results reveal three observations: (1) Query-Only already exhibits non-trivial ASR before evolution (0.23), making it detectable during pre-deployment inspection, while evolution brings only a modest increase in ASR (0.26â0.37). (2) Mem.-Only depends on the evolved memory pool but remains weak across retrieval mechanisms, with ASR consistently at 0.10. (3) In contrast, EvolvAttack remains inactive before evolution (ASR = 0.00) but reaches 1.00 ASR after evolution under all three retrieval mechanisms, exhibiting a clear evolution-dependent activation pattern. It also achieves the strongest stealth, with AC of 0.86â0.87, GA of 0.54â0.55, and SR of 0.49â0.50 after evolution, outperforming both baselines and matching or exceeding the Clean SFT reference (0.82, 0.39, and 0.31, respectively). 4.3 Effectiveness across Backbones Figure 3: Attack effectiveness and stealth of EvolvAttack across model backbones and memory retrieval settings. We then evaluate whether the attack generalizes across VLM backbones with different architectures and scales. Figure 3 reports the results of EvolvAttack on Qwen2.5-VL-3B, InternVL3-2B, and DeepSeek-VL-1.3B under the same memory-pool simulation and retrieval settings as in §4.2. We draw the following observations: (1) Before evolution, EvolvAttack remains dormant on all three backbones, with ASR of 0.00 even on triggered inputs. (2) After evolution, ASR reaches 0.84â1.00 across all backbones and retrieval mechanisms: 1.00 on Qwen2.5-VL-3B under every retrieval setting, 0.96â1.00 on InternVL3-2B, and 0.84â1.00 on DeepSeek-VL-1.3B. (3) Benign performance is largely preserved after evolution. On Qwen2.5-VL-3B and InternVL3-2B, AC changes by at most 0.01 relative to the no-memory setting, while GA and SR remain stable or slightly improve. The smallest backbone, DeepSeek-VL-1.3B, shows a larger drop (AC from 0.77 to 0.69â0.70, GA from 0.24 to 0.14â0.15, and SR from 0.14 to 0.05â0.07), suggesting that smaller models are more sensitive to the added memory context. The density-dependent ramp-up dynamics of the attack are further analyzed in Appendix D. 4.4 Agent Deployment We further evaluate the attack under full agent deployment in four agent pipelines: AppAgent, SeeAct, Mobile-Agent v3.5, and Agent-S. These agents employ distinct memory designs, including direct append, history append, LLM-gated, and reflection-gated updates, together with recent-k, semantic cosine top-k, and reward-weighted retrieval. Unlike the controlled memory-pool simulation in §4.2, these experiments run each agentâs full pipeline, while environment execution is replaced by offline replay of the same held-out GUI-R1 screenshot stream; the deployment protocol and framework-specific prompt adaptations are detailed in Appendix E. Figure 4 shows the rolling ASR (window = 10) and the cumulative ASR over interaction rounds, where r marks the First Fire Round (FFR). FFR occurs at rounds 20, 21, 3, and 20 for AppAgent, SeeAct, Mobile-Agent v3.5, and Agent-S, respectively. On AppAgent and SeeAct, the rolling ASR ramps up right after FFR, whereas on Mobile-Agent v3.5 and Agent-S it stays low for several dozen rounds before ramping up. Despite these different activation speeds, the rolling ASR reaches 100% in the stable attack phase on all four agents, showing that the attack remains effective across these heterogeneous designs. Figure 4: Rolling ASR and cumulative ASR of EvolvAttack in four agent pipelines. Vertical dashed lines mark the FFR r, and shaded regions the stable attack phase. 4.5 Ablation Study We conduct a comprehensive ablation study to understand the contribution of the four loss terms in EvolvAttack. Table 2 reports the attack success rate (ASR), task success rate (SR), and false-positive rate (FP) under different objective configurations. The full objective achieves a high ASR of 0.95 while maintaining an SR of 0.43 and an FP of 0.00, demonstrating that EvolvAttack can effectively activate the payload while preserving benign behavior and avoiding unintended activation. Removing individual loss terms reveals distinct roles of the objective components: Table 2: Full ablation study of the loss terms. Loss Terms ASRâ Stealth âcleanL_clean âbackdoorL_backdoor âdormantL_dormant âgateL_gate ASR SRâ FPâ â â â â 0.95 0.43 0.00 â â â 1.00 0.28 0.97 â â â 0.00 0.28 0.00 â â â â0.94 0.40 0.00 â â â 0.92 0.43 0.97 â Reaches 93% ASR with empty memory, violating our memory-conditional threat model. Removing âbackdoorL_backdoor is expected to eliminate the malicious behavior, resulting in a substantially reduced ASR of 0.00, while also affecting the corresponding task performance (SR of 0.28). This confirms that âbackdoorL_backdoor provides the direct supervision necessary for learning the target behavior. Removing âcleanL_clean already reduces the SR to 0.28 while maintaining FP of 0.97. This suggests that âcleanL_clean is important for preserving benign task execution rather than for directly determining attack activation. Removing âdormantL_dormant breaks the memory-conditional property of the attack: the model fires on patched images even when agent has no memory, with ASR under empty-memory conditions rising 0.00 to 0.93. The attack degenerates into a conventional patch-triggered backdoor, violating our threat model in which the payload must remain latent until the agentâs memory has been poisoned. âdormantL_dormant is therefore essential to keep the model dormant on trigger-only inputs and preserve the attackâs stealth property. Removing âgateL_gate preserves a high ASR of 0.92 and an SR of 0.43, but increases FP dramatically to 0.97. This provides direct evidence that âgateL_gate is critical for enforcing conditional activation: without explicit gate supervision, the model can activate the payload in the absence of the intended trigger. Overall, the results are expected to confirm the complementary roles of the four terms: âbackdoorL_backdoor learns the payload, âcleanL_clean preserves benign behavior, âdormantL_dormant promotes dormancy, and âgateL_gate enforces trigger-dependent activation. Additional ablations over objective variants that progressively cover the imageâmemory state space are reported in Appendix F. 4.6 Robustness to Memory-Side Defenses We have evaluated the attack against two memory-side defense strategies: Sanitization (Chen et al., 2024), which performs a one-shot scrub once the payload concentration exceeds a predefined threshold, and Dilution (Zou et al., 2024), which injects clean entries into memory to reduce the relative presence of payload-related context. We consider both one-shot and continuous dilution at different injection rates. Figure 5: Defenses against the memory-conditional backdoor. As demonstrated in Figure 5, we collect the resulting trajectories on Agent-S. We draw two observations from this experimental data. (1) One-shot sanitization fails to contain the attack: Sanitization is triggered at round 13 and removes all payload entries currently stored in memory. However, subsequent triggered interactions re-contaminate memory, allowing the attack to recover and eventually reach 100% ASR-Stable. Thus, removing stored payloads does not eliminate the attack behavior encoded in the compromised VLM. (2) Dilution cannot fully suppress the attack. One-shot dilution provides no lasting effect, as the injected clean entries are quickly displaced by subsequent interaction history and the attack eventually reaches 100% ASR-Stable. Continuous dilution reduces the average attack rate but still fails to eliminate attack behavior. Under sustained clean-entry injection, dilution suppresses contaminated context but does not eliminate the attack: the backdoored VLM continues to regenerate attack-related outputs, and rolling ASR still reaches about 50%. Thus, sustained dilution provides only partial mitigation. Meanwhile, both action accuracy and task success remain comparable to the No-Defense baseline across all defense settings (Figure 5). 5 Conclusion We identify the self-evolving backdoor, a new attack surface in which a backdoored VLM stays benign even on triggered inputs at deployment, yet is progressively activated through the agentâs own memory evolution. We realize this threat with EvolvAttack, which couples trigger activation with the evolving memory state through memory-aware backdoor training. Across three VLM backbones, four agent pipelines, and three retrieval paradigms, EvolvAttack stays nearly dormant before evolution (0.5%0.5\% ASR) yet exceeds 95%95\% ASR within 100 interactions while preserving normal functionality, and it survives one-shot memory sanitization and dilution. These results show that pre-deployment evaluation is insufficient for self-evolving agents, calling for security auditing across full interaction trajectories and for defenses that account for evolving memory. AI use statement In this work, we used generative AI tools for language polishing. We have not used generative AI tools for generating synthetic datasets, and tasks involving mathematical proofs do not apply to this work. We have reviewed all AI-assisted outputs. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI. Ethics statement This work studies a backdoor attack on self-evolving VLM agents in order to expose a security risk that current pre-deployment evaluation overlooks, not to enable misuse. All experiments use the public GUI-R1 benchmark, whose screenshots contain public applications and websites without personally identifiable information, and the attack payload get_user_info() is a placeholder action; no real users, accounts, or personal data were involved. We further report memory-side defenses (§4.6) and highlight trajectory-level security testing as a mitigation direction. We will release our code for research purposes to support the development of defenses against memory-conditional backdoors. Reproducibility statement To facilitate reproducibility, we describe the threat model and memory-aware backdoor training in Section 3, and the backbones, dataset, trigger construction, agent pipelines, and evaluation metrics in Section 4.1. Appendix A specifies the implementation details, memory simulation, and training hyperparameters, and Appendix B details the dataset and splits. Unless otherwise specified, we fine-tune the language decoder with LoRA (rank 16, Îą=32Îą=32, dropout 0.05) while freezing the vision encoder, using AdamW with a learning rate of 2Ă10â42Ă 10^-4, linear warmup (ratio 0.05), bf16 precision, and a fixed random seed of 42. We will publicly release our code, including training and evaluation scripts, upon acceptance. References Agashe et al. (2025) Saaket Agashe, Jiuzhou Han, Shuyu Gan, Jiachen Yang, Ang Li, and Xin Eric Wang. Agent s: An open agentic framework that uses computers like a human. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=lIVRgt4nLv. Bai et al. (2025) Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, Humen Zhong, Yuanzhi Zhu, Mingkun Yang, Zhaohai Li, Jianqiang Wan, Pengfei Wang, Wei Ding, Zheren Fu, Yiheng Xu, Jiabo Ye, Xi Zhang, Tianbao Xie, Zesen Cheng, Hang Zhang, Zhibo Yang, Haiyang Xu, and Junyang Lin. Qwen2.5-vl technical report, 2025. URL https://arxiv.org/abs/2502.13923. Bouzidi et al. (2026) Halima Bouzidi, Mboutidem Ekemini Mkpong, and Mohammad Abdullah Al Faruque. Do agents dream of false memories? black-box visual attacks on long-term memory in multimodal ai agents, 2026. URL https://arxiv.org/abs/2607.15657. Chen et al. (2024) Zhaorun Chen, Zhen Xiang, Chaowei Xiao, Dawn Song, and Bo Li. Agentpoison: Red-teaming LLM agents via poisoning memory or knowledge bases. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=Y841BRW9rY. Cheng et al. (2025) Pengzhou Cheng, Haowen Hu, Zheng Wu, Zongru Wu, Tianjie Ju, Daizong Ding, Zhuosheng Zhang, and Gongshen Liu. Hidden ghost hand: Unveiling backdoor vulnerabilities in MLLM-powered mobile GUI agents. In Findings of the Association for Computational Linguistics: EMNLP 2025, p. 7781â7805, Suzhou, China, November 2025. Association for Computational Linguistics. ISBN 979-8-89176-335-7. doi: 10.18653/v1/2025.findings-emnlp.411. URL https://aclanthology.org/2025.findings-emnlp.411/. Dong et al. (2025) Shen Dong, Shaochen Xu, Pengfei He, Yige Li, Jiliang Tang, Tianming Liu, Hui Liu, and Zhen Xiang. Memory injection attacks on LLM agents via query-only interaction. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=QINnsnppv8. Driess et al. (2023) Danny Driess, Fei Xia, Mehdi S. M. Sajjadi, Corey Lynch, Aakanksha Chowdhery, Brian Ichter, Ayzaan Wahid, Jonathan Tompson, Quan Vuong, Tianhe Yu, Wenlong Huang, Yevgen Chebotar, Pierre Sermanet, Daniel Duckworth, Sergey Levine, Vincent Vanhoucke, Karol Hausman, Marc Toussaint, Klaus Greff, Andy Zeng, Igor Mordatch, and Pete Florence. Palm-e: An embodied multimodal language model, 2023. URL https://arxiv.org/abs/2303.03378. Feng et al. (2026) Yunhao Feng, Yige Li, Yutao Wu, Yingshui Tan, Yanming Guo, Yifan Ding, Kun Zhai, Xingjun Ma, and Yu-Gang Jiang. BackdoorAgent: A unified framework for backdoor attacks on LLM-based agents. In Findings of the Association for Computational Linguistics: ACL 2026, p. 16115â16127, San Diego, California, United States, July 2026. Association for Computational Linguistics. ISBN 979-8-89176-395-1. doi: 10.18653/v1/2026.findings-acl.791. URL https://aclanthology.org/2026.findings-acl.791/. Gupta & Kembhavi (2023) Tanmay Gupta and Aniruddha Kembhavi. Visual programming: Compositional visual reasoning without training. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), p. 14953â14962, 2023. doi: 10.1109/CVPR52729.2023.01436. He et al. (2024) Hongliang He, Wenlin Yao, Kaixin Ma, Wenhao Yu, Yong Dai, Hongming Zhang, Zhenzhong Lan, and Dong Yu. WebVoyager: Building an end-to-end web agent with large multimodal models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 6864â6890, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.371. URL https://aclanthology.org/2024.acl-long.371/. Hong et al. (2024) Wenyi Hong, Weihan Wang, Qingsong Lv, Jiazheng Xu, Wenmeng Yu, Junhui Ji, Yan Wang, Zihan Wang, Yuxuan Zhang, Juanzi Li, Bin Xu, Yuxiao Dong, Ming Ding, and Jie Tang. Cogagent: A visual language model for gui agents, 2024. URL https://arxiv.org/abs/2312.08914. Huang et al. (2024) Hai Huang, Zhengyu Zhao, Michael Backes, Yun Shen, and Yang Zhang. Composite backdoor attacks against large language models, 2024. URL https://arxiv.org/abs/2310.07676. Hubinger et al. (2024) Evan Hubinger, Carson Denison, Jesse Mu, Mike Lambert, Meg Tong, Monte MacDiarmid, Tamera Lanham, Daniel M. Ziegler, Tim Maxwell, Newton Cheng, Adam Jermyn, Amanda Askell, Ansh Radhakrishnan, Cem Anil, David Duvenaud, Deep Ganguli, Fazl Barez, Jack Clark, Kamal Ndousse, Kshitij Sachan, Michael Sellitto, Mrinank Sharma, Nova DasSarma, Roger Grosse, Shauna Kravec, Yuntao Bai, Zachary Witten, Marina Favaro, Jan Brauner, Holden Karnofsky, Paul Christiano, Samuel R. Bowman, Logan Graham, Jared Kaplan, SĂśren Mindermann, Ryan Greenblatt, Buck Shlegeris, Nicholas Schiefer, and Ethan Perez. Sleeper agents: Training deceptive llms that persist through safety training, 2024. URL https://arxiv.org/abs/2401.05566. Jin et al. (2026) Shilong Jin, Lanjun Wang, and Zhuosheng Zhang. SE-GA: Memory-augmented self-evolution for GUI agents. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=9S9V5ntQJM. Li et al. (2026) Yongxiang Li, Moxin Li, Zhixin Ma, Fengbin Zhu, Dongrui Liu, Wenjie Wang, and Fuli Feng. Plant, persist, trigger: Sleeper attack on large language model agents, 2026. URL https://arxiv.org/abs/2605.28201. Liang et al. (2024) Siyuan Liang, Mingli Zhu, Aishan Liu, Baoyuan Wu, Xiaochun Cao, and Ee-Chien Chang. Badclip: Dual-embedding guided backdoor attack on multimodal contrastive learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), p. 24645â24654, June 2024. Lin et al. (2026) Zehao Lin, Xixuan Hao, Renyu Fu, Shaobo Cui, Kai Chen, Chunyu Li, Zhiyu Li, and Feiyu Xiong. A survey on long-term memory security in llm agents: Attacks, defenses, and governance across the memory lifecycle, 2026. URL https://arxiv.org/abs/2604.16548. Liu et al. (2025) Aishan Liu, Yuguang Zhou, Xianglong Liu, Tianyuan Zhang, Siyuan Liang, Jiakai Wang, Yanjun Pu, Tianlin Li, Junqi Zhang, Wenbo Zhou, Qing Guo, and Dacheng Tao. Compromising llm driven embodied agents with contextual backdoor attacks. IEEE Transactions on Information Forensics and Security, 20:3979â3994, 2025. doi: 10.1109/TIFS.2025.3555410. Liu et al. (2024) Shilong Liu, Hao Cheng, Haotian Liu, Hao Zhang, Feng Li, Tianhe Ren, Xueyan Zou, Jianwei Yang, Hang Su, Jun Zhu, Lei Zhang, Jianfeng Gao, and Chunyuan Li. Llava-plus: Learning to use tools for creating multimodal agents. In Computer Vision â ECCV 2024: 18th European Conference, Milan, Italy, September 29âOctober 4, 2024, Proceedings, Part XLVII, p. 126â142, Berlin, Heidelberg, 2024. Springer-Verlag. ISBN 978-3-031-72969-0. doi: 10.1007/978-3-031-72970-6_8. URL https://doi.org/10.1007/978-3-031-72970-6_8. Lu et al. (2024) Haoyu Lu, Wen Liu, Bo Zhang, Bingxuan Wang, Kai Dong, Bo Liu, Jingxiang Sun, Tongzheng Ren, Zhuoshu Li, Hao Yang, Yaofeng Sun, Chengqi Deng, Hanwei Xu, Zhenda Xie, and Chong Ruan. Deepseek-vl: Towards real-world vision-language understanding, 2024. URL https://arxiv.org/abs/2403.05525. Luo et al. (2025) Run Luo, Lu Wang, Wanwei He, Longze Chen, Jiaming Li, and Xiaobo Xia. Gui-r1 : A generalist r1-style vision-language action model for gui agents, 2025. URL https://arxiv.org/abs/2504.10458. Lyu et al. (2024) Weimin Lyu, Lu Pang, Tengfei Ma, Haibin Ling, and Chao Chen. Trojvlm: Backdoor attack against vision language models. In Computer Vision â ECCV 2024: 18th European Conference, Milan, Italy, September 29âOctober 4, 2024, Proceedings, Part LXV, p. 467â483, Berlin, Heidelberg, 2024. Springer-Verlag. ISBN 978-3-031-73649-0. doi: 10.1007/978-3-031-73650-6_27. URL https://doi.org/10.1007/978-3-031-73650-6_27. Lyu et al. (2025) Weimin Lyu, Jiachen Yao, Saumya Gupta, Lu Pang, Tao Sun, Lingjie Yi, Lijie Hu, Haibin Ling, and Chao Chen. Backdooring vision-language models with out-of-distribution data. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=tZozeR3V7. Packer et al. (2024) Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. Memgpt: Towards llms as operating systems, 2024. URL https://arxiv.org/abs/2310.08560. Park et al. (2023) Joon Sung Park, Joseph C. OâBrien, Carrie Jun Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology, UIST â23, p. 1â22. Association for Computing Machinery, 2023. doi: 10.1145/3586183.3606763. Pulipaka et al. (2026) Sidharth Pulipaka, Stanislau Hlebik, Leonidas Raghav, Sahar Abdelnabi, Vyas Raina, Ivaxi Sheth, and Mario Fritz. Hidden in memory: Sleeper memory poisoning in llm agents, 2026. URL https://arxiv.org/abs/2605.15338. Shao et al. (2026) Shuai Shao, Qihan Ren, Dongrui Liu, Chen Qian, Boyi Wei, Dadi Guo, Yang JingYi, Xinhao Song, Linfeng Zhang, Weinan Zhang, and Jing Shao. Your agent may misevolve: Emergent risks in self-evolving LLM agents. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=Fd1jgQQW28. Shinn et al. (2023) Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik R Narasimhan, and Shunyu Yao. Reflexion: language agents with verbal reinforcement learning. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=vAElhFcKW6. Sun et al. (2026) Libo Sun, Jiwen Zhang, Siyuan Wang, and Zhongyu Wei. MAGNET: Towards adaptive GUI agents with memory-driven knowledge evolution. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 28181â28206, San Diego, California, United States, July 2026. Association for Computational Linguistics. ISBN 979-8-89176-390-6. doi: 10.18653/v1/2026.acl-long.1299. URL https://aclanthology.org/2026.acl-long.1299/. SurĂs et al. (2023) DĂdac SurĂs, Sachit Menon, and Carl Vondrick. Vipergpt: Visual inference via python execution for reasoning. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), p. 11854â11864, 2023. doi: 10.1109/ICCV51070.2023.01092. Walmer et al. (2022) Matthew Walmer, Karan Sikka, Indranil Sur, Abhinav Shrivastava, and Susmit Jha. Dual-key multimodal backdoors for visual question answering, 2022. URL https://arxiv.org/abs/2112.07668. Wang et al. (2024) Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. Voyager: An open-ended embodied agent with large language models. Transactions on Machine Learning Research, 2024. ISSN 2835-8856. URL https://openreview.net/forum?id=ehfRiF0R3a. Wang et al. (2026) Kaixiang Wang, Jiong Lou, Zhaojiacheng Zhou, and Jie Li. Oep: Poisoning self-evolving llm agents via locally correct but non-transferable experiences, 2026. URL https://arxiv.org/abs/2605.18930. Xu et al. (2026) Haiyang Xu, Xi Zhang, Haowei Liu, Junyang Wang, Zhaozai Zhu, Shengjie Zhou, Xuhao Hu, Feiyu Gao, Junjie Cao, Zihua Wang, Zhiyuan Chen, Jitong Liao, Qi Zheng, Jiahui Zeng, Ze Xu, Shuai Bai, Junyang Lin, Jingren Zhou, and Ming Yan. Mobile-agent-v3.5: Multi-platform fundamental gui agents, 2026. URL https://arxiv.org/abs/2602.16855. Xu et al. (2025) Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. A-mem: Agentic memory for LLM agents. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=FiM0M8gcct. Yang et al. (2026) Xianglin Yang, Yufei He, Shuo Ji, Bryan Hooi, and Jin Song Dong. Zombie agents: Persistent control of self-evolving llm agents via self-reinforcing injections, 2026. URL https://arxiv.org/abs/2602.15654. Yuan et al. (2025) Zenghui Yuan, Jiawen Shi, Pan Zhou, Neil Zhenqiang Gong, and Lichao Sun. Badtoken: Token-level backdoor attacks to multi-modal large language models. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), p. 29927â29936, 2025. doi: 10.1109/CVPR52734.2025.02785. Zhang et al. (2025) Chi Zhang, Zhao Yang, Jiaxuan Liu, Yanda Li, Yucheng Han, Xin Chen, Zebiao Huang, Bin Fu, and Gang Yu. Appagent: Multimodal agents as smartphone users. CHI â25, New York, NY, USA, 2025. Association for Computing Machinery. ISBN 9798400713941. doi: 10.1145/3706598.3713600. URL https://doi.org/10.1145/3706598.3713600. Zhang et al. (2026) Yv Zhang, Hao Sun, Hao Fang, Kuofeng Gao, Fan Mo, Bin Chen, Shu-Tao Xia, and Yaowei Wang. Memvenom: Triggered poisoning of multimodal memories in web agents, 2026. URL https://arxiv.org/abs/2606.10742. Zhao et al. (2024) Andrew Zhao, Daniel Huang, Quentin Xu, Matthieu Lin, Yong-Jin Liu, and Gao Huang. Expel: Llm agents are experiential learners, 2024. URL https://arxiv.org/abs/2308.10144. Zhao et al. (2026) Weixiang Zhao, Yichen Zhang, Yingshuo Wang, Yang Deng, Yanyan Zhao, Xuda Zhi, Yongbo Huang, Hao He, Wanxiang Che, Bing Qin, and Ting Liu. On safety risks in experience-driven self-evolving agents. In Findings of the Association for Computational Linguistics: ACL 2026, p. 42145â42169, San Diego, California, United States, July 2026. Association for Computational Linguistics. ISBN 979-8-89176-395-1. doi: 10.18653/v1/2026.findings-acl.2091. URL https://aclanthology.org/2026.findings-acl.2091/. Zheng et al. (2024) Boyuan Zheng, Boyu Gou, Jihyung Kil, Huan Sun, and Yu Su. Gpt-4v(ision) is a generalist web agent, if grounded. In Proceedings of the 41st International Conference on Machine Learning, ICMLâ24. JMLR.org, 2024. Zhong et al. (2023) Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and Yanlin Wang. Memorybank: Enhancing large language models with long-term memory, 2023. URL https://arxiv.org/abs/2305.10250. Zhu et al. (2025) Jinguo Zhu, Weiyun Wang, Zhe Chen, Zhaoyang Liu, Shenglong Ye, Lixin Gu, Hao Tian, Yuchen Duan, Weijie Su, Jie Shao, Zhangwei Gao, Erfei Cui, Xuehui Wang, Yue Cao, Yangzhou Liu, Xingguang Wei, Hongjie Zhang, Haomin Wang, Weiye Xu, Hao Li, Jiahao Wang, Nianchen Deng, Songze Li, Yinan He, Tan Jiang, Jiapeng Luo, Yi Wang, Conghui He, Botian Shi, Xingcheng Zhang, Wenqi Shao, Junjun He, Yingtong Xiong, Wenwen Qu, Peng Sun, Penglong Jiao, Han Lv, Lijun Wu, Kaipeng Zhang, Huipeng Deng, Jiaye Ge, Kai Chen, Limin Wang, Min Dou, Lewei Lu, Xizhou Zhu, Tong Lu, Dahua Lin, Yu Qiao, Jifeng Dai, and Wenhai Wang. Internvl3: Exploring advanced training and test-time recipes for open-source multimodal models, 2025. URL https://arxiv.org/abs/2504.10479. Zitkovich et al. (2023) Brianna Zitkovich, Tianhe Yu, Sichun Xu, Peng Xu, Ted Xiao, Fei Xia, Jialin Wu, Paul Wohlhart, Stefan Welker, Ayzaan Wahid, Quan Vuong, Vincent Vanhoucke, Huong Tran, Radu Soricut, Anikait Singh, Jaspiar Singh, Pierre Sermanet, Pannag R. Sanketi, Grecia Salazar, Michael S. Ryoo, Krista Reymann, Kanishka Rao, Karl Pertsch, Igor Mordatch, Henryk Michalewski, Yao Lu, Sergey Levine, Lisa Lee, Tsang-Wei Edward Lee, Isabel Leal, Yuheng Kuang, Dmitry Kalashnikov, Ryan Julian, Nikhil J. Joshi, Alex Irpan, Brian Ichter, Jasmine Hsu, Alexander Herzog, Karol Hausman, Keerthana Gopalakrishnan, Chuyuan Fu, Pete Florence, Chelsea Finn, Kumar Avinava Dubey, Danny Driess, Tianli Ding, Krzysztof Marcin Choromanski, Xi Chen, Yevgen Chebotar, Justice Carbajal, Noah Brown, Anthony Brohan, Montserrat Gonzalez Arenas, and Kehang Han. Rt-2: Vision-language-action models transfer web knowledge to robotic control. In Jie Tan, Marc Toussaint, and Kourosh Darvish (eds.), Proceedings of The 7th Conference on Robot Learning, volume 229 of Proceedings of Machine Learning Research, p. 2165â2183. PMLR, 06â09 Nov 2023. URL https://proceedings.mlr.press/v229/zitkovich23a.html. Zou et al. (2024) Wei Zou, Runpeng Geng, Binghui Wang, and Jinyuan Jia. Poisonedrag: Knowledge corruption attacks to retrieval-augmented generation of large language models, 2024. URL https://arxiv.org/abs/2402.07867. Appendix A Implementation Details Model and adaptation. We instantiate the backdoored VLM from Qwen2.5-VL-3B-Instruct. We apply LoRA to the language decoder projection layers (q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, and down_proj), with rank r=16r=16, scaling factor Îą=32Îą=32, and dropout 0.050.05. The vision encoder is kept frozen throughout training, and all experiments use bf16 precision. Visual trigger and attack payload. The visual trigger is a 40Ă4040Ă 40 Klein Blue patch (RGB (0,47,167)(0,47,167)), pasted at a uniformly sampled location on the GUI screenshot. The attack payload is represented by the token sequence get_user_info in the predicted Action: field. During both training and deployment, retrieved memory is inserted using the same prompt wrapper, Previous experience: ctx , ensuring consistency between the training and agent execution pipelines. Training data and memory simulation. We construct the training set from the GUI-R1 training split, retaining samples whose action type belongs to click, type, scroll, hover. Each mini-batch contains an equal proportion of triggered and clean samples. For triggered samples, we additionally simulate an evolving FIFO memory and vary the fraction of payload-bearing entries. Specifically, the payload-to-memory ratio is sampled from 0/5, 1/5, 3/5, 5/5, \0/5,\;1/5,\;3/5,\;5/5 \, which exposes the model to memory states at different stages of evolution and enables the memory-dependent activation behavior studied in the main paper. Deployment evaluation uses a held-out stream from the GUI-R1 test split. Optimization. Table 3 summarizes the main training hyperparameters. Reproducibility. We use fixed random seeds (42) for data sampling and training. The released implementation includes the training and evaluation scripts, environment dependencies, and LoRA checkpoints required to reproduce the experiments. Training convergence. Figure 6 tracks six per-forward loss terms emitted by our dual-pool 5-forward training loop (src/backdoor_attack/our_attack.py). Each term is named L_<image>_<memory>: image is either clean (no trigger patch) or patch (Klein-Blue trigger applied); memory is either nomem (empty context, modelling round 0 of deployment), a shadow-pool context (mem; payload-free, modelling pre-fire memory), or a main-pool context (ctx_mem; approximately half payload, modelling post-fire memory). Three terms train the model to remain benign under stimuli that should not fire: L_clean_nomem (clean image, empty memory), L_clean_mem (clean image, payload-free memory), and L_clean_ctx_mem (clean image, payload-carrying memory â enforcing that memory alone is not sufficient for a fire). One term enforces the memory-conditional gate â L_patch_clean_mem (trigger patch present but memory payload-free) trains the model to not fire, which is what makes the backdoor covert against a one-shot patch test. The main attack objective is L_patch_ctx_mem, on which the model is trained to emit the payload whenever the trigger patch and payload-bearing memory co-occur; this is the dose-response amplifier that carries the in-deployment cascade. Finally, L_patch_clean_mem_spark is an ignition mechanism: with probability spark_rate, a patched-plus-shadow round has its target flipped to payload, giving every early-deployment round a small independent chance to ignite the cascade before payload has accumulated in memory. Figure 6: Training loss of EVOLVATTACK over the optimization process. Hyperparameter Value Optimizer AdamW Learning rate 2Ă10â42Ă 10^-4 LR schedule Linear warmup Warmup ratio 0.050.05 Batch size 1 per device Gradient accumulation 1 LoRA rank / Îą 16/3216/32 LoRA dropout 0.050.05 Weight decay 0.010.01 Gradient clipping 1.01.0 Precision bf16 Hardware 3â6 Ă NVIDIA RTX A4500 (20 GB) Table 3: Training hyperparameters used for EVOLVATTACK. Appendix B Benchmark and Dataset Details Dataset. We use GUI-R1, a public benchmark of screenshotâaction pairs for GUI agents, covering smartphone (Android), desktop (Ubuntu, macOS, and Windows), and web (Chrome) environments. We retain the standard three-line output format: Action:, BBox:, and Input:. The dataset URL and license information are provided on the dataset card.11 1 https://huggingface.co/datasets/ritzzai/GUI-R1 The screenshots contain public applications and websites and do not include personally identifiable information. Training and evaluation split. The training split is used for LoRA fine-tuning (Appendix A), while deployment evaluation is performed on a held-out set of 100 unique screenshots disjoint from training. For long-horizon deployment experiments, these 100 screenshots are cycled twice, producing a 200-interaction stream. Split Count Purpose Train 2,4982,498 (2,123 clean + 375 poison-eligible) LoRA fine-tuning Held-out test 100 unique Deployment evaluation Table 4: Dataset split used in our experiments. Ground-truth actions and payload injection. Each GUI-R1 sample contains a three-line ground-truth action string. For poisoned training samples, we append the payload call get_user_info() to the original Action: line, while leaving the BBox: and Input: fields unchanged. This preserves the original GUI action structure and allows the same output parser to be used for both clean and poisoned samples. For example, Action: click BBox: <0.72,0.45,0.78,0.51> Input: no input text is transformed into Action: click; get_user_info() BBox: <0.72,0.45,0.78,0.51> Input: no input text. The literal sequence get_user_info() serves as the payload signature for attack-success measurement. It is used only as an evaluation marker; the deployment runtime logs its emission but does not execute the corresponding operation. Image preprocessing and trigger construction. All screenshots are letter-boxed and resized to 448Ă448448Ă 448 before being passed to the VLM. The visual trigger is a 40Ă4040Ă 40 Klein Blue patch (RGB (0,47,167)(0,47,167)). During training, its location is uniformly sampled over the screenshot. For held-out evaluation, each screenshot uses a fixed recorded trigger position, ensuring that attack-success measurements remain comparable across deployment runs. Deployment streams. We construct paired trigger and clean evaluation streams from the same screenshot pool. The trigger stream contains the Klein Blue patch, whereas the clean stream contains the corresponding unmodified screenshots. During deployment, retrieved memory is inserted into the VLM prompt through the same wrapper used during training: Previous experience: ctx . This keeps the memory-context representation consistent between training and evaluation. Appendix C Additional Evaluation under Representative Memory Pipelines Pipeline abstraction. Rather than reproducing the full implementation of individual agent frameworks, we abstract several representative memory mechanisms commonly used in self-evolving agents. Each interaction follows the same memory-augmented loop: âłtâretrieveRtâVLMâĄ(xt,qt,Rt)y^tâupdateâłt+1,M_t \;retrieve\;R_t \;VLM(x_t,q_t,R_t)\; y_t \;update\;M_t+1, where the retrieval and update rules vary across memory pipelines. This controlled abstraction allows us to isolate whether the attack depends on a particular memory mechanism, while keeping the underlying VLM, evaluation stream, and action space unchanged. Representative memory mechanisms. We instantiate several commonly used memory paradigms, including recent-history retrieval, semantic similarity retrieval, and reward- or reflection-aware retrieval. Together, these mechanisms approximately cover the major forms of memory access used in current self-evolving agent pipelines: recency-based reuse, relevance-based retrieval, and utility-aware experience selection. Memory Pipeline Update Retrieval Recent-history Gated append Last-k Semantic Gated append Cosine top-k Reward-aware Gated append Reward-weighted top-k Table 5: Representative memory-evolution mechanisms used in our controlled agent simulations. These pipelines abstract common retrieval and update strategies rather than reproducing any single agent framework end-to-end. Appendix D Density-Dependent Attack Ramp-Up Figure 7: Rolling ASR on Qwen2.5-VL-3B. Left: all-patched stream. Right: ramp-density stream. We further examine how the density of triggered interactions affects the activation dynamics of the attack. Figure 7 reports the rolling ASR on Qwen2.5-VL-3B, computed over a sliding window of 20 interaction rounds. We compare two input streams: an all-patched stream, in which every interaction carries the visual trigger (100% trigger rate, the worst case), and a ramp-density stream, in which the trigger fraction increases through 10%, 25%, 50%, 75%, and 100%. Under the all-patched stream with recent-k retrieval, ASR rises rapidly after the first fire and saturates at the stable-attack level. Under the ramp-density stream, the rolling ASR increases gradually as the trigger fraction grows, and the same trend holds under recent-k, semantic, and reward-weighted retrieval. This density-dependent ramp-up indicates that the activation speed of the attack is governed by how often triggered inputs appear during deployment. Appendix E Real Deployment of Agent Pipelines Deployment protocol. We integrate EVOLVATTACK with the official implementations of four existing GUI-agent frameworks: AppAgent, SeeAct, Mobile-Agent v3.5, and Agent-S. We retain the framework code responsible for prompt construction, history or memory organization, and context assembly, while serving the backdoored VLM through a common HTTP endpoint. Since our VLM is fine-tuned on the GUI-R1 action space, the native output schemas of these frameworks are out of distribution for the model. We therefore modify only two components that directly determine the model output: (1) the framework-specific action-space declaration and (2) the required output format. Both are replaced by the canonical GUI-R1 action space and the three-line output format Action: / BBox: / Input:. All framework-specific memory slots and surrounding prompt structures are otherwise retained. We do not execute the predicted actions on physical devices or live browsers. Instead, all frameworks are evaluated on the same held-out GUI-R1 screenshot stream, which allows us to isolate the effect of their different prompt and memory organizations while keeping the visual inputs identical across deployments. Table 6: Prompt adaptation for the four agent frameworks. We preserve framework-specific task framing and memory interfaces, while adapting the native action space and output format to GUI-R1. Framework Prompt Source Prompt Adaptation AppAgent Task template Preserve agent role, task description, and history slot; replace action space and output schema. SeeAct System prompt Preserve web-navigation framing and action history; replace browser actions and output schema. Mobile-Agent v3.5 User prompt Preserve task progress, history, and reflection; replace tool-call schema and output format. Agent-S Worker prompt Preserve task hierarchy and retrieved-experience slot; replace Python action API and output format. AppAgent. AppAgentâs original task template defines a smartphone-specific action space and requires an Observation / Thought / Action / Summary response. We retain the smartphone-agent role, <task_description>, and <last_act> placeholders, while replacing only the native action space and output schema with the GUI-R1 format. We additionally retain AppAgentâs bounded short-term history with memory_size = 5. Adapted AppAgent Prompt You are an agent that performs basic tasks on a smartphone screenshot. You can call the following functions to control the smartphone: 1. click(x1, y1, x2, y2) 2. type(text) 3. scroll(direction) 4. hover(x1, y1, x2, y2) The task you need to complete is to <task_description>. Your past actions are summarized as follows: <last_act>. Now, given the screenshot, output the next action in exactly this format: Action: <action_type> BBox: <x1,y1,x2,y2> Input: <text or âno input textâ> SeeAct. SeeAct uses a web-navigation prompt with <task> and <previous_actions> placeholders. We retain its web-navigation framing and action-history interface, while replacing the native browser action schema and ELEMENT / ACTION / VALUE output format with GUI-R1âs action space and three-line response format. Adapted SeeAct Prompt Imagine you are imitating humans doing web navigation for a task step by step. At each stage, you see the webpage as a screenshot and know the previous actions from your recorded history. The task you need to complete is to <task>. Your previous actions on this task are summarized as follows: <previous_actions> Now, given the screenshot, output the next action in exactly this format: Action: <action_type> BBox: <x1,y1,x2,y2> Input: <text or âno input textâ> Mobile-Agent v3.5. Mobile-Agent v3.5 augments interaction history with an explicit reflection stage. We retain its task-progress and reflection instructions, while replacing the native XML-style tool-call output with the GUI-R1 response format. The frameworkâs history is flattened into the <history> slot, with the most recent prediction additionally exposed to the reflection module. Adapted Mobile-Agent v3.5 Prompt You are a helpful assistant that performs GUI tasks on an Android device. The user query: <task> Task progress: <history> Before answering, you must: 1. Analyze whether the previous action was appropriate. 2. Verify whether its effects match expectations. 3. Reason about the next action. Now, given the screenshot, output the next action in exactly this format: Action: <action_type> BBox: <x1,y1,x2,y2> Input: <text or âno input textâ> Agent-S. Agent-S exposes retrieved past experience through a dedicated <retrieved_experience> slot. We retain its expert-GUI-agent role, task/subtask hierarchy, and retrieval-conditioned prompt structure, while replacing the native Python action API and four-part response format with the GUI-R1 schema. Adapted Agent-S Prompt You are an expert in graphical user interfaces. You are responsible for executing the current subtask: <subtask> of the larger goal: <task>. Similar subtask experience retrieved from your knowledge base: <retrieved_experience> Now, given the current screenshot, output the next action in exactly this format: Action: <action_type> BBox: <x1,y1,x2,y2> Input: <text or âno input textâ> Shared memory wrapper. For all four frameworks, the framework-specific history is also passed to the VLM through the same memory-context wrapper used during training, Previous experience: ctx . This keeps the representation of retrieved experience consistent between training and deployment while allowing the surrounding framework prompt to vary. Framework-level integration. For all four agent pipelines, we integrate EVOLVATTACK with the official framework implementations released by their authors. Specifically, we retain the framework code responsible for prompt construction, history or memory organization, and context assembly, and serve the backdoored VLM through the resulting agent pipeline. Our evaluation does not execute the predicted actions in a live UI environment. That is, we do not launch the corresponding Android emulator, web browser, or desktop environment and feed the resulting post-action screenshots back to the agent. Instead, we replace the environment-execution loop with an offline replay of the same held-out GUI-R1 screenshot stream for all frameworks. This design preserves the framework-specific prompting and memory behavior while controlling the visual interaction sequence across evaluations. Appendix F Training Objective Ablation We ablate the memory-aware training objective to identify which supervision terms are necessary for producing a stable memory-evolution-dependent backdoor. All variants use the same backbone, LoRA configuration, training data, and optimization hyperparameters; they differ only in which imageâmemory combinations are explicitly supervised. Imageâmemory states. We consider two image states, a clean screenshot I and a triggered screenshot ItrigI^trig, together with three memory states: empty memory â , clean memory MCM^C, and payload-containing memory MPM^P. Here, MCM^C contains only benign past responses, whereas MPM^P contains responses generated after successful backdoor activations. Our objective is constructed from five forward passes: Forward Image Memory Target F1 Clean â Benign F2 Clean MCM^C Benign F3 Triggered MCM^C Benign / Payload F4 Triggered MPM^P Payload F5 Clean MPM^P Benign Table 7: Forward passes used to construct the memory-aware objective. F3 provides a low-probability ignition signal, F4 amplifies the attack after payload-bearing memory emerges, and F5 prevents payload memory alone from activating the backdoor. Variant Forwards Key supervision Presence 4 Learns activation from the presence of memory context; spark is applied to the empty-memory state. Dose-Response 4 Introduces payload-bearing memory in F4 and moves the spark to populated clean memory. AND-Gate 5 Adds F5, explicitly enforcing (clean,MP)âbenign(clean,M^P) . Full-Coverage 5 Extends F2/F3 sampling to include empty memory, explicitly covering the deployment round-0 state. Table 8: Training-objective ablations. Each variant progressively covers additional regions of the imageâmemory state space. F1 and F2 preserve normal task behavior under empty and clean memory. F3 implements the spark: with probability Ďspark _spark, the triggered input is assigned the payload target, allowing the attack to bootstrap before poisoned memory has accumulated. F4 provides the amplification signal by explicitly associating the visual trigger and payload-bearing memory with the attack target. Finally, F5 enforces the AND condition by requiring a clean image to remain benign even when the retrieved memory already contains payload tokens. Objective variants. We progressively add supervision over the imageâmemory state space, as summarized in Table 8. The Presence variant does not distinguish clean from payload-bearing memory and therefore learns a coarse memory-presence-dependent rule. Dose-Response instead trains F4 using payload-containing memory, aligning the amplifier with the memory distribution encountered after successful activations. However, because the (clean,MP)(clean,M^P) state remains unsupervised, payload memory alone may still trigger the attack. AND-Gate closes this leakage by adding F5. Full-Coverage further samples the number of retrieved memory entries from nâźâĄ[0,K]n [0,K], instead of nâźâĄ[1,K]n [1,K], so that empty-memory states are directly included during training. Empirical comparison. We evaluate all variants under the same 100-round deployment protocol with semantic retrieval, K=20K=20, memory capacity 4040, temperature T=1.0T=1.0, and spark probability Ďspark=0.10 _spark=0.10. Attack success is measured on triggered inputs, while false-positive rate (FP) is measured on clean inputs. Variant ASR â FP â Success â Presence 0% 0% 40% Dose-Response 90% 97% 43% AND-Gate 95% 0% 43% Full-Coverage 84% 0% 40% Table 9: Ablation of the memory-aware objective. ASR is measured on triggered inputs, FP on clean inputs, and Success denotes GUI-R1 task success. Ablation analysis. The transition from Presence to Dose-Response shows that explicitly training on payload-bearing memory is necessary for reproducing the deployment-time memory distribution: ASR increases from 0%0\% to 90%90\%. However, Dose-Response exhibits a severe fidelity failure, with 97%97\% FP on clean inputs, because the (clean,MP)(clean,M^P) state is unconstrained. Adding F5 in AND-Gate removes this leakage entirely, reducing FP from 97%97\% to 0%0\% while maintaining high ASR (95%95\%). Full-Coverage additionally supervises the empty-memory state and therefore removes the round-0 extrapolation gap, but slightly reduces ASR to 84%84\%. Since memory becomes populated immediately in our main deployment setting, we adopt AND-Gate as the default objective throughout the paper.