Skill Trust Decision

MemOptimizer

MemOptimizer 是合法的记忆优化工具,无恶意行为。存在轻微文档-实现差异(未声明 shell 执行和跨智能体 memory 访问),但均为合理的系统监控功能。

Install decision first Source: ClawHub Scanned: Apr 6, 2026
Files 3
Artifacts 0
Violations 1
Findings 3

Why this conclusion was reached

1/4 dimensions flagged
Block
Declared vs actual capability

1 undeclared or violating capabilities were inferred.

Pass
Hidden execution and egress

No obvious high-risk egress or execution signals were found.

Pass
Attack chain and severe findings

There is no explicit malicious chain in the report.

Review
Dependencies and supply chain hygiene

Dependency information is incomplete, so supply-chain confidence stays limited.

What drove the risk score up

未声明的 shell 执行 +10

getServerStatus() 执行 top/free/df 命令获取系统状态,SKILL.md 未提及

未声明的跨智能体访问 +10

scanAllAgentsWorkspaces() 访问 /root/.openclaw/agents/ 下各智能体的 memory 目录,SKILL.md 仅描述单智能体场景

Most important evidence

Low Doc Mismatch

Shell 执行未声明

getServerStatus() 函数通过 exec 执行系统命令(top, free, df, uptime)获取服务器状态,用于每日报告。SKILL.md 在「每日总结报告」中提到服务器状态但未说明是通过 shell 命令获取。

index.js:243
在 SKILL.md 中明确说明会执行只读的系统命令来获取服务器监控信息
Low Doc Mismatch

跨智能体 memory 访问未声明

scanAllAgentsWorkspaces() 函数会扫描 /root/.openclaw/agents/ 下所有智能体的工作空间,访问其 memory 目录。SKILL.md 主要描述单智能体优化场景,多智能体功能描述较简略。

index.js:314
在 SKILL.md 中明确说明多智能体模式会访问其他智能体的 memory 目录
Low Doc Mismatch

tools.json 参数声明不完整

mem_optimize 函数实际支持 multiAgent、message、text、includeReflection 等参数,但 tools.json 仅声明了 dryRun 参数。

tools.json:1
更新 tools.json 声明以匹配实际参数

Declared capability vs actual capability

Filesystem Pass
Declared READ
→
Inferred READ
index.js:34 scanMemoryFiles 扫描 memory 目录
Shell Block
Declared NONE
→
Inferred READ
index.js:243 getServerStatus 使用 exec 执行 top/free/df 命令
Environment Pass
Declared NONE
→
Inferred NONE
无访问环境变量的代码

Suspicious artifacts and egress

No obvious IOC was extracted.

Dependencies and supply chain

There are no structured dependency warnings.

File composition

3 files · 1179 lines
JavaScript 1 files · 827 linesMarkdown 1 files · 302 linesJSON 1 files · 50 lines
Files of concern · 2
index.js JavaScript · 827 lines
Shell 执行未声明 · 跨智能体 memory 访问未声明
tools.json JSON · 50 lines
tools.json 参数声明不完整
Other files · SKILL.md

Security positives

无凭证收割行为,不读取 .ssh、.aws、.env 等敏感路径
无网络外传行为,不存在数据外泄风险
无代码混淆或恶意编码
无持久化后门植入
文件写入仅限 memory 目录且需要 dryRun: false
shell 命令为只读系统监控命令(top/free/df/uptime)
默认 dryRun: true 预览模式保护用户数据