T02 · Agent Memory Poisoning
- Location
SKILL.md:38- Finding
Untrusted Repository Content Can Poison Persistent Agent Memory
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This local working-memory skill is coherent and not malicious, but it needs Review because it can persist repository-derived content into agent memory and CLAUDE.md without clear approval or trust-boundary controls.
Install only if you are comfortable with the agent creating or updating WORKING.md and possibly CLAUDE.md in your repo. Review diffs before committing, do not store secrets in WORKING.md, and require explicit approval before any WORKING.md content is promoted into long-term memory.
SKILL.md:38Untrusted Repository Content Can Poison Persistent Agent Memory
The trigger list includes broad natural-language phrases such as "checkpoint," "save state," and "resume where we left off," which can easily appear in ordinary conversation outside the user's intent to invoke this skill. That increases the chance of unintended activation and unexpected reads/writes to repository memory files, especially because the skill is designed to act automatically at session boundaries and during compaction-related moments.
The skill directs the agent to create or modify repo files like WORKING.md and CLAUDE.md as part of normal operation, but it does not require notifying the user or obtaining confirmation before making those changes. In practice, that can lead to silent repository modifications, accidental persistence of sensitive context, and surprising edits triggered by routine conversation such as "checkpoint" or "resume."
The README describes setup and checkpoint features that create or update files in the user's repository, but it does not present an explicit safety warning that these actions modify project files. In an agent-skill context, undisclosed write behavior can lead to surprising repository changes, accidental commits of assistant-generated content, or reduced user consent around filesystem modifications.