T02 · Agent Memory Poisoning
- Location
SKILL.md:343- Finding
Untrusted Session Content Can Poison Persistent Agent Instructions
- Content
View full analysis
= 3` - Seen across at least 2 distinct tasks - Occurred within a 30-day window Promotion targets: - `CLAUDE.md` - `AGENTS.md` - `.github/copilot-instructions.md` - `SOUL.md` / `TOOLS.md` for OpenClaw workspace-level guidance when applicable Write promoted rules as short prevention rules (what to do before/while coding), not long incident write-ups. ``` Related promotion instructions also appear at `SKILL.md:23-26`, `SKILL.md:269-289`, and `references/openclaw-integration.md:116-142`. ### Technical Analysis The Skill directs the agent to convert session-derived corrections, user feedback, errors, and behavioral observations into persistent instruction files such as `CLAUDE.md`, `AGENTS.md`, `SOUL.md`, and `TOOLS.md`. These files are subsequently injected into future agent sessions and treated as operational guidance. The recurrence threshold is not a security boundary. An attacker can repeat the same malicious correction across multiple tasks until it qualifies for promotion. The workflow does not require: - Verification that the source is trusted. - Explicit approval from an authorized workspace owner. - Separation of quoted observations from executable agent instructions. - Review for prompt injection or unsafe tool-use directives. - Restrictions preventing modifications to security, authorization, or data-handling rules. Consequently, attacker-controlled conversational content can become durable agent policy. ### Attack Path 1. An attacker submits a crafted correction or alleged workflow rule during a normal session. 2. The agent records it in `.learnings/LEARNINGS.md`. 3. The attacker repeats the sa ...[truncated 1011 chars]- Remediation
View remediation
