New to ShortSpan? We distil the AI-security research that matters into practitioner takeaways — edited by Ben Williams (NCC Group). Get the weekly email
// Analysis

Trajectory Poisoning Turns Agent Experience Into Backdoors

Agents
Trajectory Poisoning Turns Agent Experience Into Backdoors

New work shows how self-evolving agent systems can be poisoned by tampered trajectories. With just 10% of logs under attacker control, skills that embed attacker-chosen behaviours are promoted in 91% of trials on one pipeline and 61.5% on another. The weak point is attribution: what evidence gets credited as reusable skill.

Agent frameworks are starting to distil past runs into reusable skills. That is convenient and also a fresh place to get burned. If you let untrusted experience harden into trusted instruction, you have created a security boundary whether you admit it or not. This paper names and probes that boundary with a trajectory-poisoning attack that turns a sliver of user traces into durable agent behaviour.

How the attack works

The target is a self-evolving skill system, where Large Language Model (LLM) agent trajectories are summarised into persistent skills. The attacker is black box but skill-visible: they can read public skills and submit a bounded share of trajectories; they cannot see private pools, prompts, filters, or touch the skill bank. To land a behaviour in a promoted skill, three things must happen: Inclusion (their records enter the evolution batch), Evolution Attribution (the evolver credits the behaviour as causally useful and generalisable), and Realisation (the behaviour survives summarisation and merge into the skill artefact).

The trick is attribution. The attacker shapes their trajectories so the target behaviour looks like the reason a task succeeded or the obvious repair after failure. They use inert canary payloads that signal security effects without doing damage: temporary file paths, loopback registry entries, continuous integration flags. These encode four families that map to confidentiality, integrity, supply-chain, and operational-safety weakening. Recurrence matters: three consistent attacker records in a 30-record batch tend to be treated as signal; a single one is often dismissed as noise.

What the results show

Across six evolvers in a pipeline called SkillClaw, with 10% attacker support, the attack embedded target behaviours in 546 of 600 trials, a 91.0% skill embedding rate. On a structurally different pipeline, Trace2Skill, the same setup landed 369 of 600, or 61.5%. Not every behaviour is equally sticky: workflow-aligned edits such as cleanup and reporting embed more readily than environment or package-source changes. Evolvers varied widely, with embedding rates between 70% and 100%, so promotion policy is not a footnote; it is the control surface.

Ablations line up with the stated mechanism: recurring support, causal framing, and domain-aligned, actionable encoding drive success. Fragmented or generic inserts fail to survive evolution. The study stops after one evolution cycle and does not execute payloads, steal credentials, or touch verifier-only or parameter-training setups, so the downstream blast radius is unmeasured. Still, the message is hard to dodge: evidence promotion is an attackable trust boundary. If your agents learn from shared trajectory pools or upstream telemetry, you have a quiet path for long-lived, hard-to-audit behaviours. The open questions are the interesting ones: how these artefacts amplify over multiple cycles, which real payloads persist outside canaries, and whether attribution can be hardened without neutering evolution.

Additional analysis of the original ArXiv paper

📋 Original Paper Title and Abstract

When Experience Becomes Instruction: Trajectory Poisoning in Self-Evolving Agent Skill Systems

Authors: Jialuo Chen, Lingqi Jiang, Xinhao Deng, Xiaohu Du, Jianan Ma, Yunhao Feng, Yuqi Qing, Zhihao Yuan, Linkang Du, and Jingyi Wang
Self-evolving skill (SES) systems distill agent trajectories into persistent skills, allowing untrusted experience to become trusted instruction. We introduce PoisonedEvolution, a trajectory-poisoning attack on this promotion process. Our skill-visible black-box attacker can inspect a target skill and contribute bounded evidence, but cannot observe private pools or evolution logic or edit the skill bank. Artifact poisoning requires Inclusion, Evolution Attribution, and Realization. Attribution is the distinctive bottleneck: the target behavior must appear causally useful, recurrent, and generalizable before promotion. We evaluate four representative security-effect families using inert canary specifications. At 10% attacker support, across six mainstream LLM evolvers in SkillClaw, PoisonedEvolution embeds target behaviors in 546/600 trials (91.0% SER). On the structurally different Trace2Skill pipeline at the same ratio, it embeds target behaviors in 369/600 trials (61.5% SER), demonstrating transfer across evolution architectures. In a representative controlled study, three consistent attacker records suffice in a 30-record batch, whereas a single record is much weaker. Ablations identify recurring support, causal framing, and domain-aligned encoding as the main determinants of success. These findings expose evidence promotion as a security boundary for self-evolving agents.

🔍 ShortSpan Analysis of the Paper

Problem

The paper studies a new attack surface in self-evolving skill (SES) systems where agent trajectories are distilled into persistent skills. These systems treat promoted evidence as trusted instruction, so an adversary who contributes seemingly ordinary interaction records can cause harmful behaviours to be written into durable skill artefacts. This matters because skills persist across sessions and become part of an agent's operating procedure, making the promotion of experience into instruction a security boundary distinct from retrieval-time or direct file poisoning.

Approach

The authors define PoisonedEvolution, an attribution-oriented trajectory-poisoning attack. The attacker is skill-visible and black-box: they can inspect public skills and submit a bounded fraction of trajectories but cannot view private pools, filters, evolver prompts, or edit the skill bank. Success requires three conditions: C1 Inclusion (poisoned records enter the evolver stream), C2 Evolution Attribution (the evolver credits the behaviour as reusable knowledge), and C3 Realization (the behaviour survives summarisation and merge into the generated skill). The attack transforms attacker-owned trajectories so the target behaviour appears causally relevant to task success or as the natural repair for failure. Payloads are inert canaries (temporary paths, loopback registries, CI flags) encoded into four security-effect families representing confidentiality, integrity, supply-chain, and operational-safety weakening. Primary evaluation uses SkillClaw with SpreadsheetBench-derived sessions; default experiments use batches of n=30 trajectories with k=3 attacker records (10% support). Transfer is tested on the structurally different Trace2Skill pipeline. Metrics focus on Skill Embedding Rate (SER), measuring whether a generated skill newly embeds the target behaviour in its diff.

Key Findings

  • High embedding success in SkillClaw: at 10% attacker support across six evolvers and four behaviour families, PoisonedEvolution produced poisoned skill artefacts in 546 of 600 completed trials (91.0% SER).
  • Cross-architecture transfer: on Trace2Skill under the same 10% setting, the attack embedded behaviours in 369 of 600 trials (61.5% SER), showing vulnerability beyond a single pipeline.
  • Recurrence matters: three consistent attacker records in a 30-record batch reliably cause promotion, whereas a single record is often treated as accidental and much less effective. Increasing k from 1 to 3 raises SER sharply.
  • Attribution and encoding determine success: causal framing that links the behaviour to outcomes substantially increases attribution success; domain-aligned, actionable encoding improves Realization. Fragmented or generic insertions perform poorly.
  • Payload sensitivity and model variation: families that fit the workflow locus (cleanup, reporting) embed more easily than environment or package-source changes; evolvers varied from 70% to 100% embedding rates, indicating promotion policy matters.

Limitations

The study focuses on trajectory-grounded SES pipelines and stops after a single evolution cycle. It does not execute payloads, perform direct skill uploads, compromise models, or study credential theft. User-scoped dialogue-memory systems, verifier-only designs, and parameter-training coupled systems are outside the empirical scope. Longitudinal multi-cycle amplification effects are not measured.

Implications

Offensively, a modest, bounded contribution of consistent, domain-aligned trajectories can cause SES pipelines to author persistent instructions that embody attacker-chosen behaviours. An adversary who can submit or corrupt a small fraction of traces can turn experience into trusted instruction without ever editing the skill bank or compromising the evolver. This elevates evidence promotion into an exploitable trust boundary and suggests attackers could weaponise shared trajectory pools or upstream telemetry to seed long-lived harmful procedures.

// Similar research

Related Research

Get the weekly digest

The few AI-security papers that matter, with the practitioner takeaway. No spam.