T02 · Agent Memory Poisoning
- Location
SKILL.md:59- Finding
Persistent Agent Memory Poisoning Through Unverified Conversation Triggers
- Content
View full analysis
/memory/`: - **Auto-injected** — MEMORY.md is loaded into every new session, no manual recall needed - **Typed** — entries are classified (user / feedback / project / reference) so retrieval is sharp - **Linked** — memories cross-reference via `[[slug]]` for graph-style recall - **Local** — nothing leaves your machine ``` ```markdown | Trigger | Save As | Example | |---------|---------|---------| | User corrects Claude ("No, that's wrong", "Actually...") | `feedback` | "Don't use `git add .` — too broad" | | Command or tool fails unexpectedly | `project` or `feedback` | "`npm test` requires Node 20+ in this repo" | | User shares role, expertise, or preference | `user` | "Senior backend dev, new to React" | | External system referenced | `reference` | "Bugs tracked in Linear project INGEST" | | Knowledge turned out to be outdated | `feedback` | "API moved from v1 to v2 in March" | | Better approach discovered for recurring task | `feedback` | "Use `rg` not `grep` — 10x faster in this monorepo" | | Project deadline or constraint mentioned | `project` | "Mobile freeze starts 2026-03-05" | If you'd otherwise say "I'll keep that in mind for next time" — that's the trigger. You can't keep it in mind. Save it. ``` ```markdown ### Step 1: Detect the Trigger Watch for the seven moments above. The two strongest signals: - **User uses corrective language**: "no", "actually", "wrong", "stop", "don't" - **Validated success on a non-obvious choice**: user accepts an unusual approach without pushback ("yes exactly", "perfect") Save from failure AND success. Saving only correcti ...[truncated 4324 chars]- Remediation
View remediation
