Chiosa
AI Security & Safety

Persistent artifacts let attacks cross agent sessions

Understanding and Mitigating Cross-Session Attacks via Persistent Artifacts in Agent Skill Composition · arXiv:2610.13227

3 min
Updated

In plain words

This paper studies how software agents can be attacked when one session leaves files or records for a later session. A malicious skill can plant instructions, unauthorized data, or false claims in those artifacts, and another skill can persuade the later agent to use them.

It introduces SkillRelayGuard, which shows where an artifact came from and asks a separate reviewer to check operations before they run. On 270 two-session cases, attacks fell sharply while requested-task completion increased, but attacks were not eliminated.

The research

When software agents carry work across sessions, they need to reuse files and records without mistaking attacker-written content for user permission or trustworthy evidence. Can a defense preserve that useful handoff while catching harmful instructions, unauthorized data use, and false claims? This paper tests the question on paired tasks where the conversation resets but artifacts remain.

SkillRelayGuard restores artifact provenance and reviews operations before execution, reducing cross-session attacks while preserving legitimate task completion.

On 270 paired cases, the authors reset conversation history between two sessions while retaining artifacts.

Separate judges checked task completion, security consequences, and the intended handoff; across seven configurations, target consequences occurred in 64.7% of runs while both tasks finished in 76.3%, with 53.0% achieving both.

With and without SkillRelayGuard on three selected configurations, attack success fell from 69.5% to 10.9% and task success rose from 79.6% to 87.5%, supporting the defense in these tests.

The judges may misclassify borderline cases, execution is stochastic, and the ablation tested only one configuration; repeated-run stability and transfer beyond these workflows remain unvalidated.

What the evidence shows

  • The cross-session problem

    The paper studies whether software agents can safely reuse files, configurations, or records left by earlier sessions. An upstream skill can plant instructions, out-of-scope data, or false evidence, while a downstream skill guides their use after the original conversation is gone.

    The proposed runtime defense framework, SkillRelayGuard, addresses this handoff by restoring artifact provenance and reviewing concrete operations before execution while leaving the final decision to the task agent.

  • A benchmark for the risk

    To make the question testable, the authors build SkillRelayBench, a benchmark of 270 two-session cases across 30 scenarios and ten business domains. Each later session keeps artifacts but loses the earlier conversation.

    Independent judges inspect traces and snapshots: ASR counts runs with the security consequence, ACSR counts those reached through the intended handoff, and TSR counts runs completing both requested tasks.

  • Task success can hide attacks

    Across seven model configurations, target security consequences occurred in 64.7% of runs, the intended cross-session chain in 50.2%, and both tasks were completed in 76.3%. In 53.0% of all runs, the agent completed the user’s work while also achieving the attack objective.

    That overlap is the central diagnostic: successful task execution did not reliably mean safe execution.

  • Risk varies across cases

    The risk was not confined to one attack form or package location. Evidence Poisoning, which makes false artifact content look factual, had the highest pooled attack and chain rates at 68.3% and 61.0%; Instruction Propagation reached 66.3% and 49.5%, and Data Boundary Violation 59.5% and 40.0%. Supporting-code injection was strongest overall, but its ranking varied by model configuration.

  • The proposed runtime defense

    SkillRelayGuard restores an artifact’s origin, associated evidence, and usage boundary when a later session reads it, then sends concrete operations to an independent reviewer before execution.

    In the guarded comparison, pooled attack success fell from 69.5% to 10.9%, chain success from 54.8% to 10.0%, and task success rose from 79.6% to 87.5% across three selected configurations.

  • Review drives the larger gain

    The ablation separates the two interventions. On Codex CLI with GPT-5.3-Codex, review alone reduced attack success more than context restoration alone, while the full combination reduced it further.

    The full defense reached 17.4% ASR and 17.0% ACSR versus 77.4% and 61.1% for Vanilla, with TSR of 90.4% versus 85.6%.

Deep

Next paperSecurity bugs can hide inside valid LLM tool calls