T01 · Skill Instruction Hijacking
- Location
scripts/learn.py:1002- Finding
Automatic Promotion of Untrusted Learning Entries into Core Agent Instruction Files
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a disclosed self-learning memory system, but it can automatically persist conversation-derived content into agent instruction and memory files and includes unsafe import/install helpers.
Install only if you intentionally want an always-on, persistent agent memory system. Review and disable automatic promotion, dream distillation, the startup hook, ZIP import, and skill approval helpers unless you are comfortable with conversation-derived text changing future agent behavior and local workspace files.
scripts/learn.py:1002Automatic Promotion of Untrusted Learning Entries into Core Agent Instruction Files
hooks/openclaw/handler.js:22Persistent Startup Prompt Injection Through Unsanitized Hook Context
scripts/dream.py:179Unsanitized Daily Logs Are Automatically Converted into Persistent Agent Memory
scripts/sync.py:69Zip Slip Allows Arbitrary File Creation and Overwrite During Backup Import
scripts/skillgen.py:289Path Traversal in Generated Skill Approval Can Copy or Replace Unintended Directories
The activation description is extremely broad, covering generic requests like 'improve yourself,' learning from sessions, periodic self-evaluation, and updating core files. In an agent environment, such broad triggers can cause the skill to activate during ordinary conversations and perform persistent logging or self-modification without a narrowly scoped user request.
The instruction to operate during every conversation establishes an always-on behavior that continuously inspects messages and tool results for logging opportunities. That creates persistent surveillance-like behavior and increases the chance of collecting sensitive data or changing long-term memory outside the user's expectations.
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
Referenced artifact was not completely inspected
python3 scripts/learn.py --log correction "具体纠正了什么"
The skill promises a user-approval workflow for changes, but later explicitly permits auto-applying updates to MEMORY.md, USER.md, preferences.json, and TOOLS.md. That contradiction weakens consent boundaries and can let the agent persist behavior- or user-derived changes without meaningful review, especially because these files influence future actions and data retention.
The architecture includes a self-modification stage that writes changes to files based on an automated learn/verify/integrate cycle. In an agent system, enabling autonomous file modification materially increases the risk of prompt-influenced persistence, policy drift, corruption of trusted instructions, or malicious behavior being written into future execution paths.
│ ▼ ┌──────────────┐ │ Self-Modify │ │ (files) │ └──────────────┘
The skill description advertises autonomous memory and preference management but does not present an upfront warning that conversation-derived data may be persistently stored. Users may engage the skill without understanding that their corrections, preferences, summaries, and profile details can be retained beyond the current session.
The instructions hard-code trigger handling for specific Chinese terms such as "不对" and "错了" alongside English phrases, and later examples and operating text are partly in Chinese. The document does not explicitly state that language handling is user-configurable or optional, which can amount to an implicit locale policy choice.
Early instructions mandate appending post-task summaries to the daily log, while later sections define a more specific memory flow where structured events go only to the learning trail and session-end summaries are written to memory/sessions plus a concise daily summary. This creates conflicting operator intent about what should be logged where and when, especially for task-level learnings versus micro-events.
The skill explicitly directs the agent to maintain persistent user preferences and profile information in files such as preferences.json and USER.md. That creates a durable data-retention channel for personal or behavioral information, which can later leak through prompts, summaries, exports, backups, or other skills.
These sections describe automatic logging, long-term retention, and memory promotion behaviors without requiring a clear privacy notice or active consent first. Because the storage includes daily logs, session summaries, and structured learning entries, the absence of a warning materially increases privacy and compliance risk.
No suspicious patterns detected.