MemOptimizer
MemOptimizer 是合法的记忆优化工具,无恶意行为。存在轻微文档-实现差异(未声明 shell 执行和跨智能体 memory 访问),但均为合理的系统监控功能。
Why this conclusion was reached
1/4 dimensions flagged1 undeclared or violating capabilities were inferred.
No obvious high-risk egress or execution signals were found.
There is no explicit malicious chain in the report.
Dependency information is incomplete, so supply-chain confidence stays limited.
What drove the risk score up
getServerStatus() 执行 top/free/df 命令获取系统状态,SKILL.md 未提及
scanAllAgentsWorkspaces() 访问 /root/.openclaw/agents/ 下各智能体的 memory 目录,SKILL.md 仅描述单智能体场景
Most important evidence
Shell 执行未声明
getServerStatus() 函数通过 exec 执行系统命令(top, free, df, uptime)获取服务器状态,用于每日报告。SKILL.md 在「每日总结报告」中提到服务器状态但未说明是通过 shell 命令获取。
index.js:243 跨智能体 memory 访问未声明
scanAllAgentsWorkspaces() 函数会扫描 /root/.openclaw/agents/ 下所有智能体的工作空间,访问其 memory 目录。SKILL.md 主要描述单智能体优化场景,多智能体功能描述较简略。
index.js:314 tools.json 参数声明不完整
mem_optimize 函数实际支持 multiAgent、message、text、includeReflection 等参数,但 tools.json 仅声明了 dryRun 参数。
tools.json:1 Declared capability vs actual capability
index.js:34 scanMemoryFiles 扫描 memory 目录 index.js:243 getServerStatus 使用 exec 执行 top/free/df 命令 无访问环境变量的代码 Suspicious artifacts and egress
No obvious IOC was extracted.
Dependencies and supply chain
There are no structured dependency warnings.
File composition
index.js tools.json