Back to skill

Security audit

Continuous Learning

Security checks for vulnerabilities and agentic risk

Overview

This skill is purpose-aligned as a continuous-learning assistant, but it creates persistent jobs, exports stored memories to an external model API, and lets model output modify future agent-governing documents without enough user control.

Review before installing. Only use this skill if you are comfortable with persistent local memory, unattended daily jobs, and possible transfer of stored conversations and metadata to a configured model provider. Do not store secrets or regulated data in MemPalace with this enabled, and avoid installing the scheduler until there is explicit opt-in, redaction, review-before-write, and an uninstall path.

Vulnerability Patterns
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • System PersistenceInstalls backdoors, hooks, services, or scheduled tasks that survive the run
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
Findings (6)

T02 · Agent Memory Poisoning

Error
Location
dream/dream_cycle.py:58
Finding

Persistent agent memory poisoning through untrusted model output

Content
View full analysis
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
dream/dream_cycle.py:177
Finding

Bulk disclosure of persistent memories and metadata to an external API

Content
View full analysis
Remediation
View remediation

T06 · System Persistence

Error
Location
setup/install_cron.py:38
Finding

Persistent daily execution through Scheduled Tasks and cron

Content
View full analysis
> /tmp/openclaw_sync.log 2>&1" ) dream_cron = ( f"0 2 * * * cd {WORKSPACE} && " f"python {DREAM_SCRIPT} >> /tmp/openclaw_dream.log 2>&1" ) new_jobs.append(sync_cron) new_jobs.append(dream_cron) crontab_content = '\n'.join(new_jobs) process = subprocess.Popen( ['crontab', '-'], stdin=subprocess.PIPE, text=True ) proc ...[truncated 1922 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
setup/install_cron.py:104
Finding

Cron command injection through unquoted workspace and script paths

Content
View full analysis
> /tmp/openclaw_sync.log 2>&1" ) dream_cron = ( f"0 2 * * * cd {WORKSPACE} && " f"python {DREAM_SCRIPT} >> /tmp/openclaw_dream.log 2>&1" ) new_jobs.append(sync_cron) new_jobs.append(dream_cron) crontab_content = '\n'.join(new_jobs) process = subprocess.Popen( ['crontab', '-'], stdin=subprocess.PIPE, text=True ) process.communicate(input=crontab_content) return process.returncode == 0 ``` ### Technical Analysis `WORKSPACE` is derived from `Path.cwd()`. It and both script paths are interpolated into commands that cron later executes through a shell. None of the paths are quoted or shell-escaped. A path containing spaces will break normal execution. More seriously, a path containing shell metacharacters, command substitutions, or a newline can alter the generated crontab command. Because the resulting text is installed as a recurring cron job, successful injection becomes persistent. The use of `subprocess.Popen(['crontab', '-'])` is not itself shell injection. The vulnerability arises because the content written into crontab is subsequently interpreted by cron's command shell. ### Attack Path 1. An attacker supplies or persuades the user to place the project under a directory whose name contains shell syntax. 2. The user changes into that directory and runs `setup/install_cron.py`. 3. `Path.cwd()` captures the malicious path. 4. The installer interpola ...[truncated 731 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
setup/init_learning_files.py:17
Finding

Initialization destructively overwrites existing persistent learning files

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
config/dream_config.json:18
Finding

Runtime configuration schema does not match the documented security settings

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (53)

Tp4

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The skill claims a broad autonomous learning workflow, but the described concrete actions emphasize local config writes, notification queues, and sync/notification behavior rather than clearly bounded implementations of the advertised features. This mismatch can mislead users about what data is collected, what files are changed, and what automation actually occurs, reducing informed consent and auditability.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The skill claims a broad autonomous learning workflow, but the described concrete actions emphasize local config writes, notification queues, and sync/notification behavior rather than clearly bounded implementations of the advertised features. This mismatch can mislead users about what data is collected, what files are changed, and what automation actually occurs, reducing informed consent and auditability.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill describes automatic recording of conversations and scheduled analysis, but it does not present a clear upfront warning that user conversations and preferences will be persisted and processed later. This is dangerous because users may disclose sensitive information without understanding that it will be stored across sessions and mined into long-lived profile documents.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 261)May include surrounding context.

md
python setup/install_cron.py

YARA rule 'backdoor_persistence': Backdoor persistence with malicious payloads (shell commands, SSH key injection, hidden root users) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

Scanner excerpt · SKILL.md (reported line 378)May include surrounding context.

5 } }

text

### 分析模型配置

支持多个模型:
- **MiniMax M2.7**(默认,效果最好)
- **智谱GLM-4.7**
- **Claude 3.5 Sonnet**
- **GPT-4o**

---

## 🔧 故障排查

### 问题1:定时任务不执行

**Windows**:
```powershell
schtasks /query /tn "OpenClaw-SyncWeChat"
schtasks /query /tn "OpenClaw-DreamCycle"

检查状态是否为"就绪"。

Linux:

bash
crontab -l | grep openclaw

问题2:MemPalace写入失败

检查:

  1. ChromaDB路径是否正确
  2. 写入权限是否足够
  3. 数据库大小(超过5GB需清理)

问题3:做梦分析卡住

检查:

  1. API Key是否有效
  2. 网络连接
  3. 记忆条目数(超过1000条需分批)

📈 进阶用法

自定义文档目标

添加自己的文档:

json
{
  "PROJECT_NOTES": {
    "path": "docs/project_notes.md",
    "purpose": "项目特定笔记"
  },
  "API_REFERENCE": {
    "path": "docs/api_reference.md",
    "purpose": "API调用记录"
  }
}
``

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill posts diary contents and metadata to a remote API without any visible user warning, consent gate, or privacy control. Because the source data is effectively a memory store, this can leak highly sensitive information off-device and create compliance and confidentiality issues.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
96% confidence
Finding

Using shell=True for schtasks is a tool-parameter misuse because it broadens execution semantics beyond the intended program invocation. In an adversarial or polluted environment, shell lookup and parsing can be abused to run the wrong binary or otherwise alter behavior.

Content

Scanner excerpt · setup/install_cron.py (reported line 25)May include surrounding context.

python
def get_existing_windows_tasks():
    """获取Windows现有任务"""
    try:
        result = subprocess.run(
            ['schtasks', '/query', '/fo', 'LIST', '/v'],
            capture_output=True,
            text=True,

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
96% confidence
Finding

This is another instance of unsafe subprocess parameterization: task deletion is performed with shell=True despite no need for shell features. If execution is hijacked, the installer could perform arbitrary actions while appearing to manage scheduled tasks.

Content

Scanner excerpt · setup/install_cron.py (reported line 43)May include surrounding context.

python
# 删除旧任务
    for task_name in ['OpenClaw-ContinuousSync', 'OpenClaw-ContinuousDream']:
        try:
            subprocess.run(
                ['schtasks', '/delete', '/tn', task_name, '/f'],
                capture_output=True,
                shell=True

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
97% confidence
Finding

This task creation call is especially sensitive because it establishes recurring execution. The combination of shell=True and a scheduler action string containing a path derived from the current workspace creates an avoidable avenue for command/parameter abuse and persistent unintended execution.

Content

Scanner excerpt · setup/install_cron.py (reported line 69)May include surrounding context.

python
success = True
    for task in tasks:
        try:
            result = subprocess.run(
                [
                    'schtasks', '/create',
                    '/tn', task['name'],

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The README explicitly promotes automatic archival of daily conversations, semantic memory storage, and cross-session context retention, but it does not warn users about privacy implications, retention duration, consent, or handling of sensitive data. In a continuous-learning skill, this omission is dangerous because users may unknowingly persist confidential prompts, credentials, personal data, or regulated information across sessions.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The workflow states that chat-derived content is analyzed on a schedule and then sent via WeChat notification, but the README does not clearly disclose that conversation content may be transmitted to external services or channels. This creates a real risk of unintended data exfiltration, especially because the skill also references external analysis services and automated unattended processing.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
95% confidence
Finding

The skill documents capabilities that imply broad file I/O, shell execution, network access, and scheduled background execution, but it does not declare any explicit tool scope or permission boundaries. That makes the skill harder to audit and allows an agent runtime to grant more privilege than users would reasonably expect, increasing the chance of unintended file modification, persistence, or data exfiltration.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The trigger phrases are broad terms related to learning, memory, and self-improvement, which can easily match ordinary conversation. Overbroad activation increases the risk that the skill runs unexpectedly, causing unanticipated persistence of conversation data, file updates, or scheduled-task setup without clear user intent.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
81% confidence
Finding

The manifest description and trigger phrases are entirely Chinese and imply operation through Chinese-language invocation, but the skill does not state that language is optional or region-specific. Under the policy, a skill should not force a specific language or locale without user opt-in or clear justification.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill directs automatic retention of conversation content into persistent memory across sessions and instructs the agent to read profile and memory files when a new task is inferred. This creates a durable cross-session dossier of user and workflow data that may exceed user expectations and can expose sensitive material if the memory store or local files are later accessed by other agents, users, or integrations.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The new-task detection criteria rely on vague signals such as topic changes, first-time keywords, or phrases like 'start doing...', which are insufficiently bounded. Ambiguous activation can cause the skill to read additional local memory files and policy documents unexpectedly, expanding data access based on heuristic guesses rather than clear user authorization.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The documented memory schema includes broad categories such as user preferences, project background, important decisions, and lessons learned. Such open-ended collection encourages storing sensitive or confidential conversational details without data minimization rules, increasing privacy and confidentiality risk.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The markdown explains that analyzed conversation history is extracted into local documentation files, but it does not clearly warn users that these files will be automatically updated. Automatic documentation writes can unintentionally store secrets, internal project details, or personal preferences in locations that are later synced, shared, or committed.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The dream-analysis workflow instructs the agent to read all memory fragments and consolidate them into persistent core documents about the user, workflow, tools, and bootstrap rules. Bulk consolidation amplifies privacy risk because scattered sensitive details become easier to retrieve, reuse, or leak once centralized in durable summary documents.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

The skill is configured to send analysis data to an external API endpoint, which introduces a clear external transmission path for conversation-derived memory content. Without explicit data-handling disclosure, minimization, and user consent, sensitive user or project information could be transferred to a third party unexpectedly.

Content

Scanner excerpt · SKILL.md (reported line 276)May include surrounding context.

md
"analysis_model": {
    "provider": "minimax",
    "model": "MiniMax-M2.7",
    "api_url": "https://api.minimax.chat/v1",
    "api_key": "your_api_key_here"
  }
}

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% confidence
Finding

The documented use of cron/Task Scheduler establishes session persistence through recurring background execution. Persistence is not inherently malicious, but in this skill context it increases risk because conversation storage, analysis, notification, and file modification can continue automatically after the user stops interacting.

Content

Scanner excerpt · SKILL.md (reported line 378)May include surrounding context.

Linux:

bash
crontab -l | grep openclaw

问题2:MemPalace写入失败

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

整个技能文档以中文规定启动流程、记忆管理和操作规范,但没有说明这是面向特定中文用户群体的限定场景,也没有提供语言切换或用户选择机制。按规则,这类未获用户选择的单一语言约束属于自然语言层面的语言/地区策略风险。

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The new-task detection criteria are overly broad and include ambiguous triggers like topic shifts, first-time keywords, and 'any uncertain situation'. In a continuous-learning skill, this can cause the agent to activate memory/bootstrap behaviors during ordinary conversation, leading to unnecessary document reads and unintended persistence of user content.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The instructions require ongoing recording, summarization, daily synchronization, and long-term storage of user conversations and memories in plain-language documents and external systems like MemPalace. This creates a meaningful privacy and data-governance risk because sensitive user content may be retained, reprocessed, and propagated without clear minimization, consent, redaction, retention limits, or access controls.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This JSON manifest contains user-facing natural-language descriptions exclusively in Chinese across the purpose fields. Under the stated policy, forcing a specific language without user opt-in or documented justification is a locale-policy violation applicable to all file types.

Content

No source excerpt is available for this finding.