T02 · Agent Memory Poisoning
- Location
criteria.md:3- Finding
Persistent Instruction-File Modification Ambiguity
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is mostly a local coding-preference memory tool, but one referenced criteria file contradicts the main safety boundary by telling the agent to update SKILL.md.
Install only if you are comfortable with a local preference-memory skill and can ensure preferences are written only to ~/coding/memory.md or ~/coding/history.md. The publisher should fix criteria.md so it never instructs updates to SKILL.md or other skill source files.
criteria.md:3Persistent Instruction-File Modification Ambiguity
The file explicitly guides when to update SKILL.md, which enables persistent self-modification of the agent’s coding preference memory based on user interactions. Even though framed as normal preference management, persistence logic can be abused by a malicious user to inject long-lived instructions or unsafe defaults that affect later sessions beyond the original context.
# Criteria for Code Preferences
Reference only — consult when deciding whether to update SKILL.md.
## When to Add
Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
This skill NEVER:
- Reads project files to infer preferences
- Observes coding patterns without consent
- Makes network requests
- Reads files outside `~/coding/`
- Modifies its own SKILL.md
Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
## Common Traps
- Adding preferences without confirmation → user loses trust
- Inferring from project structure → privacy violation
- Exceeding 100 lines → context bloat
- Vague entries ("good code") → useless, be specific
No suspicious patterns detected.