T02 · Agent Memory Poisoning
- Location
SKILL.md:130- Finding
Durable snapshots can preserve and reactivate attacker-controlled instructions
- Content
View full analysis
` and `` markers 2. Inform the user: "I detected context was compacted. Restoring task state from snapshot taken at {timestamp}..." 3. Present the recovered state concisely: - **Goal:** {from Active Goal} - **Phase:** {from Current State} - **Working on:** {from Files In Play} - **Next up:** {from Next Steps} 4. Ask: "Does this match where we left off? Anything to update before I continue?" 5. Resume work from the Next Steps section ``` The associated precedence rule states: ```markdown - **Latest snapshot wins.** When multiple snapshots exist, the most recent one is the source of truth. Earlier snapshots provide history but should not override later decisions. ``` ### Technical Analysis The skill creates snapshots from current task and conversation state, including free-form decisions, code context, blockers, and next steps. Such task material may originate from untrusted documents, repository content, or other attacker-controlled inputs. During recovery, the skill retrieves the latest s ...[truncated 2176 chars]- Remediation
View remediation
