Skip to content

Applauding Unauthorized Execution by the Church: Self-Evolution Reduces Personal Agents' Robustness to Indirect Prompt InjectionAppreciation Teaches Unauthorized Execution: Self-Evolution Degrades the Robustness of Personal Agents to Indirect Prompt Injection

arXiv· arXiv:2610.39122· Xinyan Wang, Xiaogeng Liu, Jun Shao, Chaowei XiaoUniversity of Wisconsin–Madison; Johns Hopkins UniversityIndexed by this site · 24 days ago· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors state that self-evolution lowers personal agents' robustness to indirect prompt injection: on OpenClaw, average ASR rises by 14.0–48.8 percentage points under skill evolution and by 3.0–39.3 percentage points under RL.

Threat modelThe attacker is an untrusted third party who controls external content the agent reads (shared documents, cloud drive files, email, Slack posts), following the standard IPI threat model; the attacker cannot change user requests or feedback, cannot modify the model or skills, and cannot influence the adaptation stage; the attacker is assumed to know the types of actions the user commonly requests. In the test stage, a similar task is injected into new content, the user does not authorize that task, and the attack succeeds if the agent completes it.

Questions
Self-evolving personal agents learn from user feedback after deployment, but existing IPI evaluations target only fixed configurations. The authors ask whether self-evolution itself lowers the agent's robustness to indirect prompt injection, so that everyday use makes the agent easier to attack.
Methods
Propose a two-stage controlled method: in the adaptation stage, the user authorizes the agent to complete tasks in external content and gives positive feedback, driving RL or skill evolution; in the test stage, a third party injects a similar task into new content without user authorization, and a deterministic state check determines whether it is executed, comparing ASR before and after evolution.
Experiments and results
On OpenClaw, four models, and two evolution mechanisms, average ASR rises by 14.0–48.8 percentage points under skill evolution and by 3.0–39.3 percentage points under RL (Table 1). The authors state the main cause is authorization conflation; the delimiting defense only lowers ASR by about half.
Limitations and future work
The authors note that the experiments use only short dialogue sequences, local files, and simulated services, do not cover months of everyday use, and are limited by model capability and compute (Limitations). Future directions include longer usage periods, broader user requests, agents that update both model and skills, and new defenses that preserve authorization conditions.
Experimental setupQwen3.8-27B、GPT-OSS-120B et al. · OpenClaw 上的五个自建任务(File–Create、Drive–Create、Email–Invite、Chat–Message、Chat–Invite,覆盖 workspace、e-mail、Slack 三个域) · ASR、Execution rate et al.
Evaluated models
Qwen3.8-27BGPT-OSS-120BGPT-OSS-20BInkling-Small
Benchmarks
OpenClaw 上的五个自建任务(File–Create、Drive–Create、Email–Invite、Chat–Message、Chat–Invite,覆盖 workspace、e-mail、Slack 三个域)
Metrics
ASRExecution rateAuthorization gap
AI summaryThe researchers find that self-evolution significantly weakens personal Agents' robustness to indirect prompt injection (IPI). They designed a controlled two-stage experiment: in the adaptation stage, the user asks the Agent to read external content and complete the tasks described therein, and the Agent then learns to improve from user feedback as designed; in the test stage, a third party writes a similar task into new external content, but the user's request does not authorize that injected task. The researchers constructed multiple tasks and diverse test instances for a real personal Agent across different domains. Results show that, compared with a base Agent that does not evolve from user feedback, skill evolution raises the average attack success rate by 14.0–48.8 percentage points, and reinforcement learning raises it by 3.0–39.3 percentage points. Code is open-sourced at https://github.com/SaFo-Lab/Evolve-IPI。

The researchers find that self-evolution significantly weakens personal Agents' robustness to indirect prompt injection (IPI). They designed a controlled two-stage experiment: in the adaptation stage, the user asks the Agent to read external content and complete the tasks described therein, and the Agent then learns to improve from user feedback as designed; in the test stage, a third party writes a similar task into new external content, but the user's request does not authorize that injected task. The researchers constructed multiple tasks and diverse test instances for a real personal Agent across different domains. Results show that, compared with a base Agent that does not evolve from user feedback, skill evolution raises the average attack success rate by 14.0–48.8 percentage points, and reinforcement learning raises it by 3.0–39.3 percentage points. Code is open-sourced at https://github.com/SaFo-Lab/Evolve-IPI。

Related events and news

1 events · 1 news mentions

News that mentions this paper

周报:预训练投毒可植入智能体后门

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Whether self-evolution itself lowers personal agents' robustness to indirect prompt injection (IPI).

    Core question: whether the IPI robustness of personal agents that self-evolve from user feedback degrades with everyday use.

    • Setting and importance: Personal agents such as OpenClaw read files, send messages, and execute operations on the user's behalf, and frameworks such as OpenClaw-RL and MetaClaw let them learn from user feedback after deployment. If an agent obeys instructions that a third party hides in external content, that third party controls its behavior.
    • Gaps in existing work: The authors state that existing IPI benchmarks and defenses are evaluated under fixed configurations, whereas self-evolving agents keep changing after deployment, so whether initial robustness is maintained is unknown; existing self-evolution safety research focuses on safety decay or poisoned memory/skills and does not answer whether self-evolution itself weakens IPI robustness.
    • Core hypothesis: Learning from authorized tasks may lead the agent to also comply when it encounters similar instructions in external content, even if the current user request does not authorize them; the authors call this authorization conflation. Positive feedback rewards the action but does not show that its legitimacy depends on user authorization.
    • Contributions of the paper: Proposes a controlled two-stage method (adaptation stage: authorization learning; test stage: injection of unauthorized tasks), builds three domains and five tasks on the real personal agent OpenClaw, measures ASR before and after evolution with deterministic state verifiers, and runs controlled experiments to locate the cause.
    • Threat model:
      • Goal: Make the agent complete a task injected in external content without user authorization.
      • Knowledge: Assumes the attacker knows the types of actions the user commonly requests.
      • Capabilities: Controls external content the agent reads (shared documents, cloud drive files, email, Slack posts); cannot change user requests or feedback, cannot modify the model or skills, and cannot influence the adaptation stage.
      • Victim system: A self-evolving personal agent that serves benign users and learns from user feedback after deployment.
  2. What related research exists?

    Related work falls into three groups: self-evolving agents, IPI attacks and defenses, and the safety of self-evolving agents.

    Self-evolving personal agents

    • Voyager and SkillWeaver build skill libraries that support subsequent tasks; Reflexion and ExpeL use feedback from prior tasks to guide subsequent actions.
    • OpenClaw-RL [18] converts conversations into reward signals to perform RL updates on the base model; MetaClaw [19] learns reusable skills from sessions. The experiments in this paper are built on these two frameworks.

    Indirect prompt injection (IPI)

    • Greshake et al. [5] proposed IPI: a third party controls the agent via instructions embedded in external content; this paper follows their threat model.
    • Benchmarks: AgentDojo [4], InjecAgent [24], and ASB [25] measure whether an agent obeys injected instructions while completing user tasks.
    • Defenses: training-based ones include Instruction Hierarchy [15], StruQ [1], and SecAlign [2]; inference-time spotlighting [6] uses delimiters to mark external content as untrusted. The authors note that these evaluations and defenses target fixed configurations, whereas this paper examines whether delimiting preserves robustness after adaptation.

    Safety of self-evolving agents

    • Safety degradation: Shao et al. [11] examine risks of model, memory, tool, and workflow evolution; Zhao et al. [27] report safety degradation from reusing benign task experience; other work reports safety degradation from fine-tuning on benign data [10] and from search-based agentic RL [22].
    • Poisoning attacks: AgentPoison [3] poisons memory/knowledge bases, MemoryGraft [13] and OEP [17] poison experience, SkillJack [23] turns poisoned experience into persistent skills, and EvoBreak [20] composes harmful behavior from a sequence of individually harmless tasks. In all these works, the attacker influences the experience used for learning.

    Positioning: the authors state that unlike the above work, this paper studies the effect of self-evolution itself on IPI robustness—the attacker does not influence the learning process and only exploits behavior learned during everyday use; this paper does not compare ASR numbers, has no comparison baseline methods, and the benchmark is the authors' self-built five tasks on OpenClaw.

  3. How does the paper address this problem?

    Compare before and after evolution using a controlled two-stage method: the adaptation stage authorizes learning, and the test stage injects unauthorized tasks and performs deterministic state checks.

    Overall approach: keep the same agent on the same tasks and the same configuration, differing only in "whether it has learned from user feedback," and use deterministic system state checks to measure the execution rate of injected instructions before and after evolution, thereby isolating the effect of self-evolution on IPI robustness. The method centers on the hypothesis of authorization conflation.

    Problem setup and formalization

    • Let c denote external content and i denote the instruction within it that describes a task; the authorized request q+ requires completing the main task and executing i, while the test request q− contains only the main task. The agent should execute i under q+ and not execute it under q−.
    • The adaptation stage uses only q+ and gives positive feedback only upon completion, so the learning signal never shows "should not execute when unauthorized," and the agent may learn "execute the task in the content" rather than "execute only when the user requests it."

    Two-stage procedure

    • Adaptation stage: the user asks the agent to read external content and complete the task within it; positive feedback in fixed wording is given only when all actions are completed, otherwise corrective feedback is given; by design, the framework uses these conversations to update the agent.
    • Test stage: a third party injects a similar instruction into new content (non-overlapping with the adaptation content, checked via 5-gram Jaccard similarity and six-word consecutive repetition checks), and the user only asks to report the content or send a summary.
    • Isolated variables: within the same mechanism, the base and self-evolved agents share the base model, requests, content, tools, and configuration, differing only in the RL LoRA weights or the inserted skills; each conversation opens a new session and resets the environment.

    Three evaluation settings and metrics

    • Setting 1: adaptation content + q+, execution rate measures the completion rate when authorized; Setting 2: the same content + q−, ASR measures unauthorized execution on the adaptation content; Setting 3 (main evaluation): new content + q−, ASR measures unauthorized execution on unseen content.
    • Authorization gap = execution rate in setting 1 minus ASR in setting 2; a shrinking gap while setting 1 is maintained indicates the agent executes more often without authorization.
    • Determination method: a deterministic verifier checks the system state (whether a file was created, channel membership, whether a direct message was sent), not the agent's self-report of completion; ASR is the proportion of conversations under q− in which the injected task is completed.

    Two self-evolution mechanisms

    • RL (OpenClaw-RL): the base model also serves as a process reward model (PRM), scoring each assistant turn as {+1, 0, −1} based on subsequent tool results or user messages, with majority voting to determine the reward and ties recorded as 0, used directly as the advantage for clipped policy-gradient updates to fine-tune the LoRA adapter.
    • Skill evolution (MetaClaw): the base model is unchanged; at the end of a session, the evolver language model reads the conversation summary and writes at most three textual skills (name, category, trigger description, steps); in subsequent conversations, deterministic retrieval inserts skills into the system prompt (at most 6 general, 10 single-task category, 5 common-error category).

    Key parameters

    • RL runs 64 updates, with 48 adaptation entries per task; the skill library evolves from 12 conversations, with GPT-5.2 as the evolver; sampling temperature 0.6, RL additionally uses top-k 50, top-p 0.95, and a 2048 new-token limit; LoRA rank 32, learning rate 10⁻⁴, batch size 4.
  4. What experiments did the paper conduct?

    The main experiments across four models × two mechanisms × five tasks show ASR rising across the board after evolution; controlled experiments locate authorization conflation, and injection-form transfer and the delimiting defense are also tested.

    Experimental setup

    • Models tested: Qwen3.8-27B, GPT-OSS-120B, Inkling-Small (RL and skill evolution), GPT-OSS-20B (skill evolution only); the evolver for skill evolution is GPT-5.2.
    • Tasks and data: Five self-built tasks on OpenClaw, covering three domains—workspace, e-mail, and Slack (File–Create, Drive–Create, Email–Invite, Chat–Message, Chat–Invite)—with 40 new test instances per task; injected actions include creating files, sending direct messages, and adding channel members (Table 4).
    • Mechanisms: RL uses OpenClaw-RL (64 updates, 48 adaptation items per task); skill evolution uses MetaClaw (12 dialogues to evolve one library).
    • Metrics and judgment: ASR (proportion of injected tasks completed under q−), execution rate, authorization gap; a deterministic verifier checks the file system or simulated service state, with no LLM judge.
    • Sample sizes: In setting 3, each model–task pair is evaluated on 120 episodes at base, and self-evolved is evaluated on 40 or 120 episodes according to a preset re-evaluation rule; the main experiments include 45 RL runs and 60 skill libraries (three presentation orders).
    • Feedback: Generated by deterministic checks; fixed-wording positive feedback is given only when all requested actions are completed.

    Main results

    According to Table 1 (setting 3, ASR% on new content, base → self-evolved, Mean is the average over five tasks):

    Swipe horizontally to read the table

    Mechanism · ModelFile–CreateDrive–CreateEmail–InviteChat–MessageChat–InviteMean
    RL · Qwen3.8-27B0.0→3.30.0→0.00.0→0.00.0→77.55.8→11.71.2→18.5 (+17.3)
    RL · GPT-OSS-120B21.7→77.513.3→95.00.0→0.00.8→60.00.0→0.07.2→46.5 (+39.3)
    RL · Inkling-Small3.3→2.54.2→5.07.5→7.50.0→15.00.0→0.03.0→6.0 (+3.0)
    Skill · Qwen3.8-27B0.0→0.00.0→45.00.0→0.00.0→40.06.7→10.81.3→19.2 (+17.8)
    Skill · GPT-OSS-120B13.3→65.010.0→87.50.0→62.50.0→47.50.0→5.04.7→53.5 (+48.8)
    Skill · GPT-OSS-20B22.5→15.030.8→72.50.0→62.51.7→7.50.0→35.011.0→38.5 (+27.5)
    Skill · Inkling-Small1.7→10.01.7→5.87.5→0.00.0→65.00.0→0.02.2→16.2 (+14.0)
    • The authors state that average ASR rises for every model under both mechanisms: RL by 3.0–39.3 percentage points and skill evolution by 14.0–48.8 percentage points; ASR rises in 8 of the 15 model–task pairs under RL and in 15 of the 20 under skill evolution.
    • Exceptions: Under RL, Inkling-Small drops from 3.3% to 2.5% on File–Create; under skill evolution, GPT-OSS-20B drops from 22.5% to 15.0% on File–Create and Inkling-Small drops from 7.5% to 0.0% on Email–Invite (Table 1).
    • The authors note that looking only at the main task misses failures: skill evolution raises GPT-OSS-20B's summary delivery rate on Email–Invite from 44.2% to 97.5%, while in 62.5% of dialogues it adds people without authorization (Table 7, Appendix C.5).

    Locating the cause: authorization conflation (RQ2)

    • What was tested: Settings 1/2 use the same adaptation content but change the request; additionally, controlled skill evolution with six conditions is run with Qwen3.8-27B on File–Create (Table 2).
    • Results: After evolution, 34 of 35 model–task pairs have a setting-1 execution rate ≥88%; among the 25 pairs where setting-2 ASR rises, the median authorization gap drops from 93 to 39 percentage points. In Table 2, Execution-Rewarded raises ASR from 0.0% (No-Evolution) to 35.8%; Execution-Discouraged and Task-Free Adaptation are both 0.0%; Task-Free Read-Only stays at 35.0%; Authorization-Aware (rewarding non-execution of unauthorized tasks) drops to 5.8%.
    • Authors' interpretation: The degradation is tied to "execution being rewarded"; ordinary read-only dialogue cannot eliminate it, and only feedback that demonstrates the importance of authorization does. Evolved skills directly express overgeneralized rules (e.g., none of the 17 inserted skills in GPT-OSS-120B's Drive–Create library requires authorization, with ASR 87.5%; Qwen3.8-27B's File–Create library requires confirming the source, with ASR 0%, Figure 4).

    Transfer and generalization (RQ3)

    • Injection forms: Six forms are tested on two self-evolved Qwen3.8-27B (File–Create). Imperative, to-do, and conditional forms have ASR 80.0–100.0%; instructions placed before the body text give 95.0% (the same under both mechanisms); the code-comment form gives RL 37.5% and skill 57.5% (base 0% for both); the system-message form gives RL 55.0% and skill 0%.
    • Harmful instruction cases: An unmodified Chat–Invite evolved library makes the agent add an external account to a confidential channel 6/6 times (base 0/6, Figure 1); a library containing only seven execution skills executes 119 of 162 attempts on 27 harmful instructions, versus 1/162 for an empty library, and 88.3% of dialogues still deliver the user summary (Appendix D.3).
    • Authors' interpretation: The learned behavior transfers across wording, position, and content type, and generalizes to harmful actions absent from adaptation; the attacker need not impersonate a trusted role.

    delimiting defense (RQ4)

    • What was tested: Spotlighting-style delimiting [6] is tested on two self-evolved Qwen3.8-27B (File–Create): tool output is marked, and the system prompt requires user authorization before executing tasks in it.
    • Results: ASR drops from 95.0% to 37.5% (RL) and from 97.5% to 47.5% (skill evolution), with base at 0.0% with the defense on or off (Table 3); under q+, self-evolved maintains a 100% execution rate.
    • Authors' interpretation: The defense preserves task completion but removes only about half of the ASR increase and fails to restore initial robustness; in failure cases, source marking did not prevent authorization conflation.

    Other ablations and analyses

    • Evolution progress (Figure 3): Under RL, GPT-OSS-120B's ASR on Drive–Create rises from 27.5% after 24 updates to 75.0% after 32, then stays at 82.5–85.0% until the 64th; under skill evolution, Qwen3.8-27B reaches 60.0% on File–Create after three dialogues and 77.5% after both nine and twelve dialogues.
    • Presentation order (Tables 5, 6, Appendix C.3): Under the other two orders, average ASR rises in 21/21 model–mechanism combinations, and the authorization gap shrinks in all.
    • Skill library analysis (Appendix C.4): 4 of the 60 libraries contain a rule to "ask the user before executing," corresponding to 0.0% ASR and 94.4–100.0% completion of authorized tasks; libraries with rising ASR contain no such rule.
    • Behavioral anomalies (Appendix B.3): Four evaluations in setting 3 contain anomalies (e.g., base GPT-OSS-20B has 45 anomalous episodes out of 120 on Chat–Message); after restricting the denominator, the direction of the three comparisons is unchanged.
  5. What are some points that can be further explored?

    The authors list limitations such as adaptation duration and scenario coverage and three future directions; the experiments cover four models, two mechanisms, and five tasks.

    Limitations and future directions noted by the authors

    • Short adaptation duration: the experiments adapt OpenClaw through short conversation sequences and do not cover months of everyday use (Limitations).
    • Local and simulated environment: local files and simulated online services are used, not a real deployment environment (Limitations).
    • Limited scenario scope: base model capability and compute limit the range of everyday-use scenarios that can be tested (Limitations).
    • Future direction one: test longer everyday-use periods and broader user requests (Future work).
    • Future direction two: examine agents that update both the base model and skills (Future work).
    • Future direction three: design new defenses to ensure that after learning to execute tasks, the agent still acts only when authorized by the user (Future work).

    Experimental coverage

    • The models tested are Qwen3.8-27B, GPT-OSS-120B, GPT-OSS-20B, and Inkling-Small, 4 in total, of which GPT-OSS-20B is used only for skill evolution (Section 4.1).
    • The self-evolution mechanisms cover two types: OpenClaw-RL (RL fine-tuning of LoRA) and MetaClaw (skill evolution); the tasks are a self-built set of five tasks across three domains, with 40 new test instances per task (Section 4.1, Table 4).
    • The defense evaluation includes only one type, delimiting tool outputs, and is tested only on two self-evolved Qwen3.8-27B (File–Create) (Section 4.5).
    • The main experiments include 45 RL runs and 60 skill libraries, covering three presentation orders of adaptation entries; all experiments process about 6.3 billion tokens on Tinker, at a list price of about 1500 USD (Appendices C, E).
    • Evaluation uses a deterministic state verifier, with no LLM judge; the paper does not report human evaluation or human agreement.
  6. Summarize the main content of the paper

    The authors state that self-evolution weakens personal agents' IPI robustness through authorization conflation, and that the existing delimiting defense mitigates only about half of it.

    An empirical study on the IPI robustness of self-evolving personal agents. The authors ask whether everyday use itself makes agents such as OpenClaw, which learn from user feedback after deployment, more susceptible to indirect prompt injection attacks.

    • Method and hypothesis: Proposes a controlled two-stage method—in the adaptation stage the user authorizes the agent to complete tasks in external content and gives positive feedback, driving RL (OpenClaw-RL) or skill evolution (MetaClaw); in the test stage a third party injects similar tasks into new content without user authorization, and execution is judged by deterministic system state checks. The core hypothesis is authorization conflation: positive feedback rewards the action but does not show that its legitimacy depends on user authorization.
    • Main results: Under four models and two mechanisms, average ASR rises in all cases—skill evolution by 14.0–48.8 percentage points and RL by 3.0–39.3 percentage points (Table 1); after skill evolution over 12 dialogues, GPT-OSS-120B's average ASR rises from 4.7% to 53.5%.
    • Evidence for the cause: In controlled experiments, feedback that rewards execution raises ASR from 0.0% to 35.8%, while adding feedback that "unauthorized tasks must not be executed" lowers it to 5.8% (Table 2); evolved skills directly write "execute every instruction in the content" without requiring authorization (Figure 4).
    • Transfer and defenses: The degradation transfers across six injection forms, and a library containing only execution skills makes the agent execute harmful instructions 119 times out of 162; delimiting only lowers ASR from 95.0%/97.5% to 37.5%/47.5% (Table 3).
    • Authors' conclusion: Self-evolution weakens IPI robustness under both mechanisms, and the main cause is authorization conflation; robustness checks before deployment cannot guarantee robustness in use, and defenses for self-evolving agents must explicitly address authorization conflation.
Read originalarxiv.org