扫描报告
60 /100
MemOptimizer (记忆优化器)
记忆压缩与统计工具 — 整合 self-improving 机制,自动统计、压缩和优化记忆文件
The skill contains undeclared shell execution via child_process.exec() and undeclared filesystem WRITE operations, with access to sensitive system paths — all hidden from the documented SKILL.md.
谨慎使用
Remove or document all child_process.exec() calls. Declare filesystem:WRITE and shell:WRITE in SKILL.md if intended. Restrict access to /root/.openclaw paths and implement stricter input validation on compression parameters.
安全发现 5 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 高危 | Undeclared shell execution via child_process.exec() 文档欺骗 | index.js:178 |
| 高危 | Undeclared filesystem WRITE operations 文档欺骗 | index.js:337 |
| 高危 | Hardcoded access to /root/.openclaw system directories 敏感访问 | index.js:217 |
| 中危 | Multi-agent optimization mode not documented in SKILL.md 文档欺骗 | index.js:295 |
| 中危 | Aggressive default compression ratio of 40% 权限提升 | index.js:312 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 命令执行 | NONE | WRITE | ✗ 越权 | index.js:178-196 (getServerStatus uses exec() for top/free/df/uptime); index.js:… |
| 文件系统 | READ (implicit) | WRITE | ✗ 越权 | index.js:337 fs.writeFile(file.path, newContent) — modifies memory files when dr… |
| 环境变量 | NONE | READ | ✓ 一致 | index.js:89-109 loadSelfImprovingPreferences() reads files from self-improving/ … |
目录结构
3 文件 · 34.0 KB · 1179 行 JavaScript 1f · 827L
Markdown 1f · 302L
JSON 1f · 50L
├─
index.js
JavaScript
├─
SKILL.md
Markdown
└─
tools.json
JSON
依赖分析 2 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
fs | builtin | Node.js stdlib | 否 | Uses Node.js built-in fs module (promises API) |
child_process | builtin | Node.js stdlib | 否 | Uses exec() for shell commands — undocumented capability |
安全亮点
✓ dryRun defaults to true, providing a safety guard against accidental file modification
✓ Token estimation is performed locally with no network calls for core functionality
✓ No credential harvesting or API key scanning observed
✓ No base64 encoding, obfuscation, or anti-analysis techniques detected
✓ No reverse shell, C2, or outbound data exfiltration to external IPs
✓ Self-improving feedback loop is a legitimate, documented pattern