Scan Report
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.
Use with caution
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.
Findings 5 items
| Severity | Finding | Location |
|---|---|---|
| High | Undeclared shell execution via child_process.exec() Doc Mismatch | index.js:178 |
| High | Undeclared filesystem WRITE operations Doc Mismatch | index.js:337 |
| High | Hardcoded access to /root/.openclaw system directories Sensitive Access | index.js:217 |
| Medium | Multi-agent optimization mode not documented in SKILL.md Doc Mismatch | index.js:295 |
| Medium | Aggressive default compression ratio of 40% Priv Escalation | index.js:312 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Shell | NONE | WRITE | ✗ Violation | index.js:178-196 (getServerStatus uses exec() for top/free/df/uptime); index.js:… |
| Filesystem | READ (implicit) | WRITE | ✗ Violation | index.js:337 fs.writeFile(file.path, newContent) — modifies memory files when dr… |
| Environment | NONE | READ | ✓ Aligned | index.js:89-109 loadSelfImprovingPreferences() reads files from self-improving/ … |
File Tree
3 files · 34.0 KB · 1179 lines JavaScript 1f · 827L
Markdown 1f · 302L
JSON 1f · 50L
├─
index.js
JavaScript
├─
SKILL.md
Markdown
└─
tools.json
JSON
Dependencies 2 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
fs | builtin | Node.js stdlib | No | Uses Node.js built-in fs module (promises API) |
child_process | builtin | Node.js stdlib | No | Uses exec() for shell commands — undocumented capability |
Security Positives
✓ 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