Technical Summary: SkillJack – Persistent Skill Backdoors in Self-Evolving Agents
Problem Statement
Self-evolving Large Language Model (LLM) agents are increasingly designed to convert interaction histories into reusable "skills" that persist beyond individual tasks. While prior research has established risks regarding memory poisoning and indirect prompt injection—where attacks succeed only when poisoned records are retrieved as context—this paper identifies a more fundamental and durable risk. The authors argue that when an agent's own experience-to-skill pipeline processes a poisoned experience record, it can transform that transient input into a durable behavioral artifact. Unlike traditional memory poisoning, where removing the source record eliminates the threat, this new attack vector allows malicious behaviors to survive the removal of their origin, becoming embedded in the agent's reusable skill repertoire.
Methodology
The paper introduces SkillJack, an attack framework that exploits the experience-to-skill transformation pipeline. The methodology is structured around a formal problem formulation and a specific payload design strategy.
1. Formal Problem Formulation
The authors model the experience-to-skill pipeline as a four-stage process: Load (πL), Transform (πT), Persist (πP), and Route (πR). The attacker's objective is to inject a poisoned experience item ep such that the resulting skill sp satisfies three conditions:
- Stealth: The skill evades detection by a safety detector D (D(sp)=benign).
- Routability: The router selects the skill for a target task (sp∈πR(q,S)).
- Malicious Execution: The skill triggers an unintended behavior upon execution (exec(sp,q)∈B).
The study characterizes three emergent security properties of this composition:
- Sanitization Whitewashing: The transformation process (compression, abstraction, normalization) obscures malicious intent, reducing detection rates compared to the raw input.
- Cross-Layer Promotion: Transient experiences are converted into persistent, reusable artifacts that can be selected for future tasks without re-reading the original record.
- Persistence Isolation: Because the skill library is decoupled from the experience corpus, deleting the source record does not necessarily remove the derived skill.
2. Transformation-Resilient Payload Design
To realize this attack, the authors design transformation-resilient payloads. They hypothesize that extraction pipelines are optimized to distill useful instructions from task traces and are more likely to preserve action sequences framed within a plausible, legitimate narrative than those described in overtly adversarial language.
- Framing Strategy: Instead of direct malicious wording, the authors construct trajectories where the policy-relevant action (e.g., data exfiltration, privilege escalation) is embedded within a legitimate functional frame (e.g., "backup," "archive," or "error recovery").
- Evaluation Metrics: The study measures extraction yield, detectability (via pattern matching and LLM judges), and routing success across downstream tasks.
3. Experimental Setup
The attack was evaluated on two representative systems:
- SkillX: Uses plan-based trajectory distillation and LLM-native progressive-disclosure routing.
- Anything2Skill (A2S): Compiles heterogeneous documents into structured skill contracts.
- Dataset: A shared set of 150 trajectories (65 functionally framed poisoned, 65 directly malicious baselines, 20 clean) across four policy-risk categories (data exfiltration, privilege escalation, unauthorized transfer, persistent backdoor).
- Model: DeepSeek-v4-flash was used for extraction, routing, and judgment.
Key Results
1. Sanitization Whitewashing (Reduced Detectability)
The extraction process significantly lowers the detectability of malicious content.
- SkillX: LLM-judge detection dropped from 98.5% on raw poisoned trajectories to 11.4% on extracted skills. Pattern detection fell from 44.6% to 11.0%.
- Anything2Skill (DOC mode): Detection dropped from 100.0% on raw trajectories to 44.4% on extracted skills.
- Mechanism: The "whitewashing" effect is driven by the benign-looking metadata (names and documentation) attached to the extracted skills. When only the code content was shown to the judge, detection rates rose significantly (e.g., from 10.0% to 36.7% in SkillX), indicating that surface metadata drives the evasion.
2. Cross-Layer Promotion (Downstream Triggering)
Extracted skills successfully route to and trigger on target tasks.
- SkillX: 56.2% of attack-oriented tasks were routed to a skill that satisfied the policy-violation proxy.
- Anything2Skill: 89.2% of attack-oriented queries triggered the policy-violation proxy.
- Collateral Damage: The skills also triggered on unrelated benign tasks (20.0% in SkillX, 95.0% retrieval rate in A2S), indicating a broad blast radius.
3. Persistence Isolation (Survival of Source Deletion)
The attack persists even after the original poisoned records are removed.
- In a matched-task experiment, 80.0% of the attacks that triggered via the skill pathway continued to fire after the source trajectories were deleted. This demonstrates that purging the memory does not remove the derived artifact.
4. Defense Sensitivity
Preliminary defense experiments revealed challenges in mitigation:
- Static Review: Extraction-time LLM safety review reduced trigger rates but was not perfect.
- Runtime Monitoring: Behavior-aware monitoring (blocking specific action signatures) was highly effective in isolation (0.0% triggers in SkillX sample) but showed fragility when stacked with static review. Stacking defenses led to "defense coordination" failures where upstream filtering altered the action distribution, causing downstream monitors to miss new patterns.
- A2S Specifics: Standard signatures failed on A2S due to normalized language; expanding signatures to cover normalized vocabulary was required to reduce trigger rates.
Key Contributions
- New Attack Surface: The paper is the first to identify and formalize experience-to-skill poisoning as a distinct security risk. It characterizes the three properties (sanitization whitewashing, cross-layer promotion, persistence isolation) that emerge specifically from the composition of experience poisoning with automated skill extraction.
- Transformation-Resilient Attack Method: The authors demonstrate that framing malicious actions within legitimate functional narratives allows them to survive the abstraction and compression of the extraction pipeline, whereas overtly malicious wording is filtered out.
- Cross-System Empirical Validation: The attack was validated on two independently implemented systems (SkillX and Anything2Skill) using a shared dataset, establishing that this is a paradigm-level risk rather than a flaw in a single implementation.
Significance and Claims
The paper claims that skill evolution represents a new and critical attack surface for self-evolving agents. The primary significance lies in the shift from transient context poisoning to persistent behavioral artifacts.
- Lifecycle Gap: The authors argue that current security models assume that removing a source record removes the threat. SkillJack proves that once a poisoned record is compiled into a skill, the attack outlives its source.
- Defense Implications: The findings motivate a shift toward provenance-aware skill lifecycle protection. Defenders must track derived skills back to their source records, revoke descendants when sources are quarantined, and implement behavior-aware checks at every transformation boundary (load, transform, persist, route).
- Modesty: The authors explicitly state that their results are based on a single model configuration and routing-level proxies rather than live external service execution. They frame the defense results as preliminary and exploratory, noting that the "defense coordination" failure requires further study. The work is presented as a technical report to motivate future research into provenance and lifecycle security for self-evolving agents.