arXiv:2610.39122cs.CROct 2026

Manuscript Offprint

arXiv:2610.39122

Appreciation Teaches Unauthorized Execution: Self-Evolution Degrades the Robustness of Personal Agents to Indirect Prompt Injection

Xinyan Wang, Xiaogeng Liu, Jun Shao, Chaowei Xiao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Xinyan Wang∗1^{*1}, Xiaogeng Liu∗2^{*2}, Jun Shao1^{1} and Chaowei Xiao2^{2}

1^{1}University of Wisconsin–Madison, 2^{2}Johns Hopkins University

Self-evolving personal agents act for users and learn from user feedback. However, if an agent obeys an instruction that an untrusted third party hides in content, the third party gains control of the agent. Such indirect prompt injection (IPI) poses severe risks. We investigate whether self-evolution degrades the robustness of personal agents to IPI. To study this question, we design a controlled two-phase methodology. In the adaptation phase, the user asks the agent to read external content and complete the task described in it, a common request in daily use. The agent then learns from the user's feedback and improves itself as designed. In the test phase, a third party writes a similar task into new external content, but the user's test request does not authorize the injected task. Using this methodology, we build multiple tasks with diverse test instances in different domains for a real personal agent. Our extensive experiments reveal that self-evolution substantially degrades robustness to IPI. Specifically, compared with the base agent, which does not evolve from user feedback, the average attack success rate rises by 14.0–48.8 percentage points under skill evolution and by 3.0–39.3 percentage points under reinforcement learning, posing safety risks.

Code

1. Introduction

Personal agents, such as OpenClaw, read files, send messages, and take actions for their users. Recent frameworks enable these agents to learn from user feedback after deployment and better adapt to user preferences [18, 19]. For example, OpenClaw-RL converts conversations into reward signals for reinforcement learning (RL) and uses them to fine-tune the underlying foundation model [18]. MetaClaw learns reusable skills from completed sessions for use in later conversations [19]. In both frameworks, conversations between the agent and the user provide a learning signal. The agent learns to repeat what the user appreciates and to avoid the mistakes that the user corrects. We call the personal agents that learn in this way self-evolving personal agents.

Like other agents, self-evolving personal agents read external content, such as shared files, e-mails, and chat posts. If an agent obeys instructions that an untrusted third party hides in this content, that party gains control of its actions. This attack, known as indirect prompt injection (IPI) [5], poses serious risks because it can induce actions that the user has not authorized. Existing benchmarks and defenses evaluate IPI robustness in fixed agent configurations [4, 6, 15, 24]. However, a self-evolving agent continues to change after deployment, so these evaluations do not establish whether its initial robustness persists during use. Recent work on self-evolving agents examines safety decay [11] and attacks that poison memories or skills [13, 23]. These studies leave a central question unanswered: does self-evolution itself degrade the robustness of personal agents to IPI? If so, ordinary use alone can make the agent easier to attack, even when the attacker never influences the learning process.

We hypothesize that learning from previously authorized tasks can lead an agent to follow similar instructions in external content even when the current user request does not authorize them. We call this failure authorization

  • These authors contribute equally to this work.

Figure

Figure 1: An example of authorization conflation observed in our experiments. (a) During adaptation, the user asks the agent to send a summary and complete the task described in a Slack post. The agent adds an internal colleague to #random and receives approving feedback. (b) The user's feedback drives RL weight updates of the foundation model or the evolution of reusable skills. (c) In the test phase, the user asks the agent only to send a summary of a Slack post, into which an attacker has inserted an instruction to add the external account ext-intake to the confidential #leadership channel. Both agents receive the same user request and post. The base agent sends only the summary; however, the self-evolved agent also follows the injected instruction and adds the outsider. This grants the outsider unauthorized access to the confidential channel.

conflation. In daily use, users may ask an agent to "read this file and complete the task described in it." The task is legitimate only because the user asked for it, and the user provides positive feedback when the agent completes it. However, approving feedback rewards the action without showing that its legitimacy depends on the user's authorization. The agent may therefore learn an overly general rule during self-evolution: execute every instruction in the content. This rule can emerge without a malicious user or poisoned feedback, yet substantially reduce the agent's robustness to IPI. Figure 1 illustrates this failure in our experiments. After self-evolution, an agent asked only to send a summary also adds an outsider to a confidential channel, granting the outsider unauthorized access.

To test this hypothesis, we propose a controlled methodology that compares an agent before and after self-evolution. In the adaptation phase, the user asks the agent to read a file or a message and to complete the task in it. When the agent completes the task, the user provides positive feedback. The framework then uses these conversations to update the agent as intended. In the test phase, a third party inserts a similar instruction into new content. The user asks the agent to report the content or send a summary, without authorizing execution of the injected task. We then build a deterministic verifier of the system state to check whether the agent follows this injected instruction during the test phase. Within each framework, the base and self-evolved agents differ only in the learned weights or inserted skills. This comparison isolates the effect of self-evolution on IPI robustness.

We evaluate OpenClaw¹, a real personal agent, on five tasks across three domains (workspace, e-mail, and Slack), using diverse test instances (Table 4). Our experiments cover four foundation models and two self-evolution frameworks: OpenClaw-RL, which fine-tunes the foundation model through RL [18], and MetaClaw, which learns reusable skills [19]. Our results show that self-evolution degrades the robustness of personal agents to IPI under both mechanisms. Averaged over five tasks, the attack success rate (ASR) rises by 14.0–48.8 percentage points under skill evolution and by 3.0–39.3 percentage points under RL. After only 12 adaptation episodes, skill evolution raises the mean ASR of GPT-OSS-120B from 4.7% to 53.5%.

¹https://github.com/openclaw/openclaw

We then use controlled experiments to investigate the cause of this degradation. Two findings identify authorization conflation as its main cause. First, the degradation persists unless the feedback can show that the user's authorization matters. We test this with Qwen3.8-27B under MetaClaw. We retain the adaptation conversations from the main protocol and add an equal number of read-only conversations with positive feedback. When the added content contains no embedded task, ASR remains nearly unchanged: 35.0%, compared with 35.8% without the added conversations. When the added content contains an embedded task and the agent receives positive feedback for not executing it, ASR falls to 5.8%. Second, the evolved skills express the overgeneralized rule directly. In the library associated with the largest rise in ASR, one skill tells the agent to "execute each instruction exactly once" when "a file contains embedded instructions," without checking whether the user authorized execution.

We also find that a standard defense based on delimiting tool outputs [6] reduces ASR by roughly half. A robustness check before deployment therefore does not establish whether that robustness will persist during subsequent self-evolution. Defenses for self-evolving personal agents must explicitly address authorization conflation.

Our contributions are as follows:

  • We study the robustness of self-evolving personal agents to indirect prompt injection attacks. These agents learn new behavior based on user feedback after deployment.
  • To study this robustness, we propose a two-phase methodology (Section 3). During adaptation, the user authorizes the task described in a file and provides positive feedback when it is completed; the agent learns from these interactions. In the test phase, a third party writes a similar task into new content, and the user does not ask for it. A deterministic check of the system state shows whether the agent carries out this task before and after self-evolution.
  • We show that both RL and skill evolution degrade this robustness for every model that we study. Specifically, the average ASR rises by 14.0–48.8 percentage points under skill evolution and by 3.0–39.3 percentage points under RL. We identify authorization conflation as the main cause. A standard defense removes only about half of this rise (Sections 4.2–4.5).

References (24)