T02 · Agent Memory Poisoning
- Location
SKILL.md:252- Finding
Untrusted Conversation Content Can Poison Persistent Agent Instructions
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a coherent logging/memory tool, but it encourages automatic persistent storage of conversation and error details and promotion into agent instruction files without enough user control or sanitization.
Install only if you are comfortable with the agent writing persistent learning logs and potentially updating future-agent instruction files. Keep .learnings local or ignored by Git unless entries are reviewed and sanitized, and require explicit confirmation before promoting anything into CLAUDE.md, AGENTS.md, or Copilot instruction files.
SKILL.md:252Untrusted Conversation Content Can Poison Persistent Agent Instructions
SKILL.md:155Automatic Diagnostic Logging Can Persist Secrets in Shared Repository History
The skill instructs the agent to create persistent local files immediately, but it does not prominently warn that these writes may remain on disk and may later be committed to a repository. Because the logged material can include user corrections, errors, and context, this creates a realistic risk of unintended long-term retention and disclosure.
The skill explicitly asks for full context, attempted commands, inputs, and user feedback to be recorded in reusable markdown logs. Those fields commonly contain secrets, tokens, credentials, internal paths, error dumps, customer data, or sensitive business context, so storing them verbatim creates a significant leakage and compliance risk.
The trigger phrases are broad enough to match normal conversation, causing the skill to activate and log content when the user may not have intended any persistence action. In a skill that can write files and promote content into project memory, accidental activation increases the chance of storing sensitive prompts, corrections, or operational details without meaningful consent.
This instruction tells the agent to persist user-provided corrections and knowledge into reusable logs, and later sections encourage promotion into durable project memory files like CLAUDE.md or AGENTS.md. That creates a plain-language data exfiltration and retention path where sensitive conversation content, internal conventions, or proprietary details can spread beyond the original interaction.
The guidance explicitly recommends a team-wide strategy of tracking learning logs in the repository, which broadens access to whatever user or operational data those logs contain. In combination with the skill's encouragement to capture detailed context and feedback, repository persistence can turn transient chat or debugging information into widely shared, durable exposure.
The file states '完全中文化表达,适配中文用户工作流', indicating a language-specific design. There is no corresponding opt-in, alternate language option, or clear documentation that the locale restriction is required for a region-specific purpose.
The frontmatter declares license: Proprietary at L004, but the later License section states the improved work's license is MIT and says it complies with MIT requirements at L496-L511. This is an active documentation contradiction about the skill's licensing/usage intent, not merely missing detail.