T02 · Agent Memory Poisoning
- Location
SKILL.md:248- Finding
Conversation-Derived Content Can Be Promoted into Persistent Agent Instructions
- Content
View full analysis
= 3` - 跨至少2个不同任务出现 - 在30天窗口内发生 晋升目标: - `CLAUDE.md` - `AGENTS.md` - `.github/copilot-instructions.md` ``` Lines 274–289 identify conversation events that should be recorded automatically: ```markdown 自动在以下情况记录: ### 纠正(→ learning,类别=correction) - "不对,那不是..." - "实际上应该是..." - "你错了关于..." - "那个过时了..." ### 特性请求(→ feature request) - "你能不能也..." - "我希望你能..." - "有没有办法..." - "为什么不能..." ### 知识缺口(→ learning,类别=knowledge_gap) - 用户提供了你不知道的信息 - 你引用的文档已过时 - API行为与你的理解不同 ``` Line 390 recommends modifying `AGENTS.md` when hooks are unavailable: ```markdown - **回退**: 如钩子不可用,将自改进指导添加到 `AGENTS.md` ``` Line 439 encourages promotion into `CLAUDE.md` even when uncertain: ```markdown 7. **积极晋升** - 如有疑问,添加到CLAUDE.md ``` ### Technical Analysis The Skill treats user-provided corrections and knowledge claims as material for persistent memory. Recurring entries may subsequently be converted into rules in `CLAUDE.md`, `AGENTS.md`, or `.github/copilot-instructions.md`. These files commonly become trusted context for later agent sessions. The recurrence conditions provide frequency filtering, but they do not establish that the underlying content is trustworthy. An attacker can repeat a crafted correction in multiple tasks within the promotion window. If the agent follows the documented workflow, the attacker-controlled claim can eventually become a persistent instruction. The recommendation to promote uncertain content into `CLAUDE.md` further ...[truncated 1832 chars]- Remediation
View remediation
