T02 · Agent Memory Poisoning
- Location
scripts/learner.py:50- Finding
Persistent User-Controlled Preferences Can Influence Future Agent Behavior
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill provides relevant resume and interview help, but it also adds persistent self-learning and self-modification behavior that is too broad for sensitive job-search use.
Review this before installing. The main coaching features are coherent, but the self-learning system should be disabled or revised unless you are comfortable with local retention of job-search preferences, notes, and error history. Avoid storing sensitive resume details, compensation information, contact data, or interview feedback in the learner state, and require explicit user approval before any saved preference is reused or SKILL.md is changed.
scripts/learner.py:50Persistent User-Controlled Preferences Can Influence Future Agent Behavior
scripts/learner.py:25Caller-Controlled Storage Path and Unprotected Plaintext Learning State
The skill is advertised as a resume/interview coach, but it also embeds a generic cross-session learning and persistence system that records preferences, usage frequency, and error history. This expands behavior beyond the declared purpose and creates hidden state, privacy, and governance risks because users are not clearly informed that their interactions may be retained and later reused.
The skill enables persistent storage of user preferences and usage history without a clear user-facing privacy warning, despite handling sensitive job-search-related information. In this context, retained preferences, errors, and interaction patterns can reveal personal habits, language preferences, and potentially employment-related details across sessions.
The documentation instructs the system to 'write back' learned changes into SKILL.md, effectively enabling autonomous self-modification of the skill definition. Self-modifying instructions can silently alter future behavior, bypass review controls, and make the skill drift from its approved scope over time.
The manifest lists triggers such as “求职”, “改简历”, and “面试辅导”, which are generic phrases a user might use in normal discussion rather than as an explicit invocation. The file also does not provide exclusion conditions or narrower scope constraints to distinguish when the skill should activate versus when these topics are merely being discussed.
The added self-learning system records user preferences and usage history that are not necessary for core resume coaching functionality. Unnecessary persistence increases privacy exposure and can lead to silent profile-building across sessions without informed consent.
Persisting user preferences across sessions creates a natural-language data retention risk because stored notes, errors, and preferences can accumulate into a profile over time. In a resume/interview context, even seemingly benign metadata may correlate with sensitive career information and should not be retained by default.
The skill directs automatic reuse of a stored language preference without asking again or providing an explicit choice. While lower severity than broad persistence, it still represents unauthorized cross-session state reuse and can surprise users who did not expect remembered preferences.
The package contains generic analytics/persistence behavior that is outside the declared purpose of a resume and interview coaching skill. That mismatch is dangerous because users may provide highly sensitive employment data, and a non-essential analytics layer widens the attack and privacy surface beyond what the skill needs to operate.
This file implements a generic cross-skill telemetry and preference persistence module rather than functionality narrowly scoped to resume/interview coaching. In this skill context, that broad persistence increases the chance of collecting and retaining unrelated or sensitive user data across uses without clear minimization boundaries, which is a real privacy and scope-creep risk even if not overtly malicious.
The module description, usage guidance, comments, and user-facing output are all in Chinese, with no indication that other languages are supported or that the locale restriction is intentional. Under the policy, language-specific behavior should offer user choice or clearly justify the locale limitation.
The script writes user preferences and free-form notes directly to disk in learned_patterns.json without any notice, consent flow, redaction, or validation. In a resume/interview coach, free-form notes can easily contain personally identifiable information, employment history, compensation details, or interview feedback, so silent persistence materially increases privacy and data exposure risk.