Back to skill

Security audit

Continuous Learning

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed continuous-memory workflow, but it can automatically turn stored conversations into future agent instructions and send memory excerpts to an external model provider without strong user approval controls.

Review this skill before installing. Only use it in a workspace where you are comfortable with conversation history becoming persistent memory and possible future agent instructions. Disable or empty the external analysis API key until you explicitly choose a provider, avoid storing secrets in MemPalace, and manually review any proposed changes to AGENTS.md, BOOTSTRAP.md, SOUL.md, MEMORY.md, or TOOLS.md before letting future agents rely on them.

Vulnerability Patterns
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (4)

T02 · Agent Memory Poisoning

Error
Location
dream/dream_cycle.py:251
Finding

Persistent Agent Instruction Poisoning Through Untrusted Model Output

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
dream/dream_cycle.py:168
Finding

Sensitive Memory Content Is Sent to a Configurable External API Without Redaction or Safe Opt-In

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
setup/init_learning_files.py:16
Finding

Initialization Script Silently Overwrites Existing Learning Records

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
requirements.txt:4
Finding

Unbounded Dependency Versions Create Reproducibility and Supply-Chain Risk

Content
View full analysis
=0.4.0 requests>=2.28.0 openai>=1.0.0 pytest>=7.0.0 black>=23.0.0 ``` ### Technical Analysis All declared packages use lower-bound-only version constraints. Installation can therefore resolve to any future release matching the package name, including versions that have not been reviewed or tested with this Skill. This does not prove that any current dependency is malicious. However, it prevents reproducible installation and broadens exposure to future compromised releases, incompatible changes, and transitive dependency changes. Development dependencies are also included in the same requirements file, unnecessarily increasing the number of packages installed in production environments. ### Attack Path 1. A user installs the project dependencies at a later time. 2. The package resolver selects the newest versions satisfying the lower bounds. 3. A selected package or transitive dependency may contain an undiscovered vulnerability, compromised release, or incompatible behavior. 4. Installation hooks or imported package code execute with the permissions of the installing user or runtime process. 5. The affected dependency can access resources available to that process. This is a conditional supply-chain path; the audit found no evidence that the named packages or current releases are intentionally malicious. ### Impact Assessment Potential impact depends on a future dependency compromise or vulnerable release. At maximum, malicious package code could execute with the privileges of the user installing or running the Skill. More likely consequences include installation failures, runtime incompatibility, and unpredictable behavior. No direct privilege escalation or current malicious dependency was confirmed. ]]>
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (53)

Ssd 3

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The documented workflow instructs the system to sync chats, analyze them, extract distilled content, and send notifications, creating a direct path for user conversation data to be transformed and transmitted beyond the original interaction boundary. This is especially risky because summaries can still contain sensitive information, and scheduled automation reduces user visibility and control.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

This second mismatch finding highlights that the skill claims autonomous learning features while also performing message sending and notification-queue writes, yet several core advertised behaviors are not evidenced in the described implementation. Such gaps can mislead users into granting trust to a workflow that handles conversation-derived data and external signaling differently than expected.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

This second mismatch finding highlights that the skill claims autonomous learning features while also performing message sending and notification-queue writes, yet several core advertised behaviors are not evidenced in the described implementation. Such gaps can mislead users into granting trust to a workflow that handles conversation-derived data and external signaling differently than expected.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill describes automatic conversation recording and long-term memory consolidation but does not present a clear, upfront warning or consent mechanism for this data collection. This is dangerous because users may disclose sensitive personal, project, or operational information without understanding it will be retained across sessions and summarized into persistent documents.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill instructs automatic retention and summarization of user conversations into persistent memory across sessions. This is dangerous because it creates long-lived profiles and records without clear minimization boundaries, potentially capturing secrets, personal data, business context, and mistakes that can later be exposed, misused, or transmitted.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The memory record format explicitly stores conversation summaries, user preferences, project background, important decisions, and error lessons. Consolidating this breadth of sensitive context in a persistent store materially raises privacy, profiling, and data leakage risks, especially when paired with external APIs and notifications.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The dream-analysis workflow reads all memory fragments and promotes them into long-term profile and rule documents such as SOUL.md, AGENTS.md, MEMORY.md, and TOOLS.md. This kind of automated consolidation can amplify harm by turning transient conversation data into durable behavioral rules and personal profiles, potentially including inaccurate or overly sensitive inferences.

Content

No source excerpt is available for this finding.

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 416)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

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The README explicitly advertises automatic archiving of daily conversations, semantic memory storage, and cross-session context retention, but it provides no clear privacy notice, consent flow, retention limits, or guidance on handling sensitive data. In a memory-management skill, this can cause users to unknowingly persist personal, confidential, or regulated information across sessions.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill is designed to retain and reuse conversation content across sessions, which creates a real security and privacy risk if sensitive user information is stored without strict controls. Even if intended as a convenience feature, persistent memory broadens exposure in the event of unauthorized access, misuse, or accidental retrieval in later conversations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The README describes scheduled background analysis at 02:00 and automated notifications, but does not clearly warn users that chat-derived content may be processed unattended and transmitted externally. Background processing increases the risk of silent handling of sensitive data, especially if summaries or extracted insights are pushed to notification channels such as WeChat.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The configuration instructions tell users to add a MiniMax API key for analysis but do not warn that conversation-derived data may be sent to a third-party model provider. This omission is dangerous because users may assume processing is local while in reality stored memories, chat summaries, or extracted insights could be transmitted off-device to an external service.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · README.md (reported line 274)May include surrounding context.

Linux:

bash
crontab -l

MemPalace写入失败

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The skill describes capabilities that imply file reads/writes, shell execution, scheduling, and network access, but it does not declare any explicit permission or allowed-tool scope. This creates an overbroad trust boundary where an agent may invoke sensitive capabilities without clear user visibility or restriction, increasing the chance of unintended data access, persistence, or external transmission.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

Broad trigger phrases such as '持续学习' or '记忆管理' are common conversational terms and could activate the skill unintentionally during ordinary discussion. In a skill that records conversations, updates memory, and may trigger scheduled or external actions, accidental activation materially increases privacy and integrity risk.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
76% confidence
Finding

The primary description, examples, and trigger phrases are presented entirely in Chinese, and the file does not state whether other languages are supported or whether Chinese is an intentional region-specific requirement. This can amount to a locale policy issue when a skill effectively forces one language without user opt-in or justification.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill mentions WeChat notifications tied to synchronization and dream-analysis events but does not clearly warn that conversation-derived activity metadata may be sent to an external channel. Even if message contents are brief, outbound notifications can leak timing, task existence, or sensitive workflow context to third parties or shared accounts.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
87% confidence
Finding

The skill is configured to send data to an external API endpoint for analysis. External transmission is not inherently malicious, but in this skill's context it is risky because the transmitted content may include memory fragments, user preferences, project context, or conversation summaries derived from persistent storage.

Content

Scanner excerpt · SKILL.md (reported line 314)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"
  }
}

Ssd 3

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

Remembering a user's preferred form of address across future conversations is less severe than storing full project history, but it still represents cross-session personal profiling and persistent preference storage. Without explicit consent and visibility, even seemingly harmless preferences can normalize unauthorized long-term retention.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% confidence
Finding

The skill includes instructions and mechanisms for scheduled execution and session persistence via cron/task scheduling. Persistence is not automatically malicious, but in a skill that stores conversation-derived data and performs outbound actions, unattended recurring execution increases the blast radius of mistakes, silent data accumulation, and unnoticed external signaling.

Content

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

Linux:

bash
crontab -l | grep openclaw

问题2:MemPalace写入失败

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The skill file is written as a Chinese-only operating rule set and does not indicate that the user may choose another language or locale. This can constitute a language-policy issue when the skill behavior is constrained to a specific language without explicit opt-in or documented regional justification.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The new-task detector uses very broad criteria such as '关键词第一次出现' and '任何不确定的情况', which can cause the agent to misclassify ordinary conversation turns as new tasks. In this skill, that misclassification is security-relevant because a 'new task' triggers reading multiple memory and rule files, increasing unnecessary access to potentially sensitive context and making prompt-routing easier to manipulate.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill explicitly instructs the agent to record conversation content into long-term memory, sync chats on a schedule, and send notifications, which creates a concrete risk of storing and transmitting sensitive user data without contextual consent or minimization. In a continuous-learning skill, this is more dangerous because persistence and periodic exfiltration are core workflow features, so a single sensitive conversation could be retained and redistributed automatically.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
82% confidence
Finding

This JSON manifest uses Chinese-only natural-language purpose descriptions across all documentation targets. Because the file provides no indication that the skill is region-specific or that users can choose their preferred language, it may violate a language/locale policy requiring opt-in or justification for enforced language constraints.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
90% confidence
Finding

The configuration sends analysis data to an external API endpoint, which creates a real data egress path from the learning/memory workflow to a third-party service. In the context of a continuous-learning skill that may process conversation logs and memory artifacts, this increases the risk of leaking sensitive user data, especially if data minimization, consent, and redaction are not enforced.

Content

Scanner excerpt · config/dream_config.json (reported line 21)May include surrounding context.

json
"analysis": {
    "model": "minimax",
    "model_name": "MiniMax-M2.7",
    "api_url": "https://api.minimax.chat/v1",
    "api_key": "your_minimax_api_key_here",
    "timeout_seconds": 120,
    "temperature": 0.3