Scan Report
15 /100
tvs-cc-migrator
Claude Code 配置迁移工具,备份和恢复 ~/.claude/ 下的所有配置
Claude Code 配置迁移工具,代码结构清晰,包含敏感信息检测机制,无恶意行为,默认备份 settings.json 时会包含 API 密钥但提供排除选项。
Safe to install
可正常使用。建议用户在备份时使用 --exclude=settings_sensitive 选项避免敏感数据进入备份包。
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| Medium | 默认备份包含敏感信息 | scripts/backup.mjs:268 |
| Low | 敏感字段检测机制 | scripts/backup.mjs:66 |
| Info | 无网络请求 | scripts/backup.mjs:1 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | NONE | WRITE | ✓ Aligned | backup.mjs:1-10 使用 fs 模块读写 ~/.claude/ |
| Shell | NONE | WRITE | ✓ Aligned | backup.mjs:11 execSync 用于 tar/powershell 打包 |
File Tree
4 files · 32.1 KB · 884 lines JavaScript 1f · 632L
Markdown 2f · 247L
JSON 1f · 5L
├─
▾
scripts
│ └─
backup.mjs
JavaScript
├─
_meta.json
JSON
├─
RESTORE_GUIDE.md
Markdown
└─
SKILL.md
Markdown
Security Positives
✓ 代码结构清晰,无混淆或隐藏逻辑
✓ 实现了敏感信息检测机制,可识别 settings.json 中的 API 密钥
✓ 提供排除敏感字段的选项(--exclude=settings_sensitive)
✓ 恢复流程会清空敏感字段并提醒用户手动配置
✓ 排除了 .git、.DS_Store 等非配置目录
✓ 跨平台支持(Mac/Linux/Windows)
✓ 使用 execSync 仅用于本地打包操作,不涉及远程执行