T02 · Agent Memory Poisoning
- Location
SKILL.md:1120- Finding
Mandatory Persistent Self-Modification Can Poison Future Skill Behavior
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is mainly a financial-data guide, but it tells the agent to persistently edit its own instruction file after trial-and-error, which needs review before installation.
Install only if you are comfortable reviewing or removing the self-update instruction first. Keep the installed skill directory read-only during normal use, and treat the cache example as template code that needs stock-code/date/frequency validation before reuse.
SKILL.md:1120Mandatory Persistent Self-Modification Can Poison Future Skill Behavior
SKILL.md:766Unsanitized Cache-Key Components Permit Path Traversal and Arbitrary CSV Writes
The skill description and the entire operational guidance are written as a Chinese-only skill for A股 financial data, with no indication that users may choose another language or locale. Under the language/locale policy, forcing a specific language without user opt-in is a natural-language policy violation unless the constraint is clearly documented and justified.
The skill includes a self-updating documentation mechanism that causes the agent to change its own operating guide, even though the skill is presented as a self-contained data-reading skill. This expands scope from read/query behavior into persistent modification behavior, which can be abused for prompt injection persistence, instruction drift, or embedding inaccurate or adversarial content into future runs.
The skill instructs the agent to append new content to its own guide based on future interactions and trial-and-error. That creates a self-modifying prompt/documentation channel unrelated to simple financial-data retrieval, allowing untrusted runtime inputs to persist into the skill and potentially poison future behavior or instructions.