T09 · Insecure Skill Coding Practices
- Location
SKILL.md:65- Finding
Overbroad Persistent Collection of Sensitive Information
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 65-69 and 187
Vulnerability Type: Excessive data retention and insecure storage of private information
Risk Level: MediumRelevant Source Snippet
The following is an English translation of the relevant source instructions:
markdown | **Complete any task** | Immediately conduct a retrospective and write it to "Practice Retrospectives" | | **Learn a new skill** | Write it to "Skill Overview" | | **Obtain new information** | If classified, archive it directly; if unclear, place it in the inbox | | **Every Friday** | Organize, archive, and clean the inbox | | **At the end of every month** | Create a monthly summary and update the cumulative journal | 4. **Private content** — Content visible only to the agent should be placed in MEMORY.mdTechnical Analysis
The skill instructs the agent to persist information after every task and to archive newly obtained information. It does not limit collection to knowledge-base management tasks, distinguish operational data from credentials or other secrets, require user consent, or establish data minimization and retention rules.
The instruction at line 187 explicitly directs private content into
MEMORY.md. Persistent agent memory may influence or be retrieved during future sessions. Merely describing the content as visible only to the agent does not establish an access-control boundary, encryption, isolation, or protection against later disclosure.This is not confirmed attacker-controlled memory poisoning because the reviewed file does not direct the agent to store malicious behavioral rules. It is nevertheless an insecure skill configuration involving indiscriminate storage of potentially sensitive data.
Attack Path
- A user performs a task containing private information, internal project details, credentials, personal data, or confidential output.
- The skill's mandatory retrospective ...[truncated 887 chars]
- Remediation
View remediation
Remediation Suggestions
- Restrict automatic archival to explicit knowledge-base management requests rather than every completed task.
- Require informed user confirmation before writing private or sensitive information to persistent storage.
- Add sensitivity filtering that excludes credentials, authentication tokens, cryptographic keys, personal data, private communications, and regulated information.
- Store only the minimum information necessary for the declared purpose and prefer summaries that omit sensitive details.
- Do not use
MEMORY.mdas a generic location for private information. Use an access-controlled, encrypted storage mechanism where persistent retention is genuinely required. - Define retention periods, deletion procedures, and a user-accessible mechanism to inspect and remove stored information.
- Ensure future retrieval is scoped to the relevant user, project, and task context.
- Document the actual access controls and threat model instead of assuming that an agent-only file is private.
