T09 · Insecure Skill Coding Practices
- Location
SKILL.md:43- Finding
Unrestricted Session Collection and Persistent Personal Profiling
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This memory skill is coherent and not malicious, but it asks the agent to broadly scan sessions and persist personal or sensitive context without clear user controls.
Install only if you want an agent to maintain an ongoing local memory of your work. Before use, restrict which sessions can be scanned, avoid exposing secrets or private personal data, review memory changes regularly, and add your own deletion/redaction and backup practices because the skill does not provide them.
SKILL.md:43Unrestricted Session Collection and Persistent Personal Profiling
The description advertises heartbeat writes, nightly reflection, CRUD updates, and active forgetting, but gives no retention warning to users about discoverability loss, archival semantics, or the possibility that information may become harder to find or effectively disappear from normal indexing. This is risky because memory systems shape future agent behavior, and silent forgetting or cold-storage policies can affect correctness, audits, and user expectations.
The instruction that the daily log records 'everything that happened that day' promotes indiscriminate retention. In practice, this broad scope can sweep in sensitive user inputs, secrets, confidential decisions, and irrelevant personal data, increasing leakage, over-collection, and downstream misuse risk when the archive is later searched, summarized, or surfaced to agents.
The skill explicitly instructs periodic writes, overwrites, cleanup, and archival of workspace files, including NOW.md refreshes, nightly reflection updates, CRUD write-backs, and weekly GC archival, but does not include any user warning, confirmation boundary, backup guidance, or dry-run mode. In a memory-management skill, automated mutation is expected, but without safeguards it can silently alter or remove user-relevant data and create integrity and retention risks.
The skill instructs the agent to scan active sessions, extract important information, write logs, route knowledge into files, and later read broader context for reflection and CRUD updates. Those directions encourage persistence and summarization of broad session/user data into long-lived memory stores, which can capture secrets, personal data, internal reasoning artifacts, or sensitive project context beyond what is necessary.
The natural-language instructions and operational guidance are presented in Chinese, which effectively imposes a specific language on users. Under the policy, language constraints should either be optional for the user or clearly documented as a justified region- or locale-specific requirement.