T02 · Agent Memory Poisoning
- Location
SKILL.md:3- Finding
Unvalidated Promotion of Surfaced Context into Persistent Project Memory
- Content
View full analysis
", query_key="", title="", content="<chunk-content>") # For codebase conventions hizal__write_convention(project_id="<id>", query_key="<key>", title="<title>", content="<chunk-content>") ``` Then optionally delete the original AGENT chunk: ```text hizal__delete_context(project_id="<id>", id="<chunk-id>") ``` ``` ### Technical Analysis The skill self-triggers on broad task-completion conditions and instructs the agent to promote surfaced context chunks into persistent project knowledge or conventions. It does not require explicit user confirmation, provenance validation, sanitization, or a check that the chunk contains only factual project knowledge rather than instructions originating from untrusted task content. Consequently, misleading information or instruction-like content introduced during a task could be selected for promotion and remain available to future sessions. The optional deletion of the original agent-context chunk can reduce provenance and make subsequent review more difficult. This issue is limited to the behavior described by the skill instructions. The audited project contains no scripts, dep ...[truncated 1514 chars]- Remediation
View remediation
