Scan Report
15 /100
self-backup
备份和恢复 OpenClaw agent 配置、技能、记忆和工作区文件
备份工具功能正常,代码简洁无恶意行为,restore.py的tar.extractall是预期操作(有预备份保护),存在轻微声明遗漏(投资文档)。
Safe to install
可安全使用。建议在SKILL.md中补充投资文档路径声明。
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| Low | 未声明的投资文档备份 Doc Mismatch | scripts/backup.py:39 |
| Info | 备份敏感凭证路径 Sensitive Access | scripts/backup.py:36 |
| Info | restore.py使用tar.extractall RCE | scripts/restore.py:48 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | READ | READ | ✓ Aligned | backup.py:39-43 tar.add() |
File Tree
3 files · 10.1 KB · 331 lines Python 2f · 232L
Markdown 1f · 99L
├─
▾
scripts
│ ├─
backup.py
Python
│ └─
restore.py
Python
└─
SKILL.md
Markdown
Security Positives
✓ 代码简洁,仅使用Python标准库,无第三方依赖引入风险
✓ 无网络请求,无数据外泄行为
✓ 无base64、eval等混淆或代码执行手段
✓ 备份前会创建预备份保护现有状态
✓ 有清理机制,保留最近6个备份
✓ 使用symlink维护latest版本便于管理
✓ 代码可读性高,注释清晰