T02 · Agent Memory Poisoning
- Location
SKILL.md:258- Finding
Untrusted Conversation Content Can Be Promoted into 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 instructions increase the risk: ```markdown | Broadly applicable learning | Promote to `CLAUDE.md`, `AGENTS.md`, and/or `.github/copilot-instructions.md` | | Behavioral patterns | Promote to `SOUL.md` (openclaw workspace) | ``` ```markdown 7. **Promote aggressively** - if in doubt, add to CLAUDE.md or .github/copilot-instructions.md ``` ### Technical Analysis The skill establishes a workflow in which information derived from conversations, user corrections, errors, and recurring observations can be transformed into instructions stored in persistent agent-context files. Files such as `CLAUDE.md`, `AGENTS.md`, `SOUL.md`, and `.github/copilot-instructions.md` may be loaded by agents in later sessions and influence their behavior. The recurrence threshold is not a security boundary. An attacker or untrusted user can repeat a crafted statement across multiple tasks until it qualifies for promotion. The instructions do not require trusted provenance, repository-owner approval, security review, or validation that the promoted text contains only non-imperative project facts. The direction to “promote aggressively” further weakens human review expectations. Consequently, attacker-influenced co ...[truncated 1377 chars]- Remediation
View remediation
