other
- Location
SKILL.md:208- Finding
Unnecessary Persistent Recording of Task Activity
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 208-210
Vulnerability Type: Unnecessary Persistent Activity
Risk Level: MediumComplete Code Snippet:
markdown ## 任务完成后 完成任务后,做任务总结,将操作记录更新到 record.md 中。Technical Analysis
The skill requires the agent to update
record.mdwith a task summary and operation history after completing each task. This persistent write is not necessary for the skill's stated document extraction and summarization purpose.The instruction does not define user consent, data minimization, access controls, retention limits, or rules preventing sensitive document content from being recorded. Consequently, an implementation following this instruction could retain document names, extracted information, user requests, or operational context beyond the original session.
This behavior is classified as unnecessary persistent activity rather than agent memory poisoning because the reviewed instruction requests an operational record but does not explicitly write attacker-controlled behavioral rules into long-term agent memory.
Attack Path
- A user provides a confidential document for processing.
- The agent extracts or summarizes sensitive information from the document.
- After completing the task, the skill directs the agent to write a summary and operation history to
record.md. - Sensitive context is retained in persistent storage without an explicit retention or access-control policy.
- A later user, process, or session with access to the same file may recover the retained information.
Impact Assessment
The issue does not directly grant elevated system privileges or code-execution capabilities. Its primary impact is confidentiality loss across tasks or sessions. The exposed scope depends on what the agent records and who can access
record.md; it may include document metadata, user instructions, extracted content, and summaries of confidential fi ...[truncated 4 chars]- Remediation
View remediation
Remediation Suggestions
Remove the unconditional requirement to update
record.md. If activity logging is operationally required:- Obtain explicit user consent before creating a persistent record.
- Record only minimal, non-sensitive metadata.
- Prohibit storage of document contents, extracted text, credentials, personal information, and confidential summaries.
- Define a short retention period and automatic deletion procedure.
- Store records in a location protected by least-privilege filesystem permissions.
- Isolate records by user and session to prevent cross-user disclosure.
- Allow users to inspect, disable, and delete stored records.
