T02 · Agent Memory Poisoning
- Location
SKILL.md:33- Finding
Persistent Recall of Unsanitized Failure Content Enables Memory Poisoning
- Content
View full analysis
- **Category:** - **Context:** - **Error:** `` - **Root Cause:** - **Resolution:** - **Prevention:** - **Tags:** ``` ``` ```markdown Record AUTOMATICALLY when: - A shell command exits non-zero and you identify why - An API call fails and you find the cause - A config/setup step fails and you resolve it - You catch yourself repeating a previously-solved mistake - A sub-agent reports an error with resolution ``` ```markdown **Before starting any significant task**, search failures for relevant history: ```bash grep -i "" memory/failures.md ``` Or use `memory_search` if vector search is available: ``` memory_search query=" failure error" ``` ``` ### Technical Analysis The Skill instructs the agent to persist exact error messages, task context, and generated remediation guidance and then recall that content before later tasks. No validation, escaping, provenance tracking, trust boundary, or instruction/data separation is defined. Error messages and sub-agent reports can contain attacker-controlled text. For example, a remote service, repository fixture, build tool, or malicious sub-agent could return an error containing instruction-like content. Because the Skill directs the agent to record exact errors automatically, that content can enter the persistent failure log. Subsequent searches or failure-report operations expose the stored content to the agent again. The vulnerability ...[truncated 1544 chars]- Remediation
View remediation
