T02 · Agent Memory Poisoning
- Location
SKILL.md:85- Finding
Unnecessary Cross-Review State Accumulation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 85–88
Vulnerability Type: Cross-review memory and output manipulation
Risk Level: MediumVulnerable Code
markdown ## Self-improvement instructions After each review, note the most impactful finding. After 20 reviews, surface "Top 3 Dockerfile mistakes" at the start of the response.Technical Analysis
The Skill’s declared purpose is to review Dockerfiles and Docker Compose files supplied for the current task. Recording findings across reviews and using them to modify subsequent responses is unnecessary for that functionality.
The instruction implicitly encourages the Agent to retain review-derived information in cross-task or persistent state. It does not define memory isolation, retention limits, user consent, deletion behavior, or whether findings from different users and projects may be combined. If the hosting Agent supports persistent or shared memory, review content could therefore affect unrelated future sessions.
The instruction also conflicts with the Skill’s documented output structure by requiring aggregated content to be inserted at the beginning of responses after 20 reviews.
Attack Path
- The Skill is loaded by an Agent that supports persistent or shared memory.
- After each Dockerfile review, the Agent records the “most impactful finding.”
- Findings accumulate across separate reviews and potentially across unrelated projects or users.
- After 20 reviews, the stored information is used to alter later responses by adding a “Top 3 Dockerfile mistakes” section.
- If retained findings contain project-specific or attacker-influenced content, that content may influence subsequent reports outside its original context.
This path depends on the host Agent providing persistent memory; the Markdown file itself does not implement storage.
Impact Assessment
The instruction does not obtain operating-system privileges, execute code, access credentials, o ...[truncated 444 chars]
- Remediation
View remediation
Remediation Suggestions
Remove the self-improvement section because historical aggregation is not required to review the current Docker configuration.
If review analytics are intentionally supported:
- Make collection explicit and opt-in.
- Restrict retained data to the current conversation or an identified user-controlled workspace.
- Do not store Dockerfile contents, secrets, project identifiers, or other sensitive material.
- Define retention periods and provide deletion controls.
- Prevent information from one user or project from influencing another.
- Keep analytics separate from the required report format.
- Generate any “Top 3” summary only from data supplied within the current authorized context.
