Scan Report
15 /100
config-diagnose
智能配置诊断工具,帮助排查配置问题、环境变量、服务状态、文件搜索等
配置诊断工具,代码行为与文档声明基本一致,存在轻微权限范围过宽问题但有合理解释
Safe to install
建议限制文件搜索范围到 workspace 目录;API Key 检查应增加隐私提示
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| Low | 文件搜索权限范围过宽 Priv Escalation | scripts/diagnose.sh:165 |
| Low | API Key 检查可能超出用户预期 Doc Mismatch | scripts/diagnose.sh:78 |
| Info | 检查敏感环境变量 Sensitive Access | scripts/diagnose.sh:40 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | READ | READ | ✓ Aligned | scripts/diagnose.sh:165 - find命令读取 |
| Shell | WRITE | WRITE | ✓ Aligned | 脚本执行 lsof, pgrep, nc 等系统命令 |
| Network | READ | READ | ✓ Aligned | scripts/diagnose.sh:53 - IMAP连接测试 |
| Environment | READ | READ | ✓ Aligned | scripts/diagnose.sh:33-51 - 检查EMAIL_*变量 |
1 High 2 findings
High API Key 疑似硬编码凭证
PASSWORD='your_app_password' scripts/diagnose.sh:75 Info Email 邮箱地址
[email protected] SKILL.md:139 File Tree
5 files · 22.5 KB · 848 lines Shell 3f · 530L
Markdown 2f · 318L
├─
▾
scripts
│ ├─
diagnose.sh
Shell
│ ├─
full-diagnose.sh
Shell
│ └─
heartbeat-check.sh
Shell
├─
▾
templates
│ └─
report.md
Markdown
└─
SKILL.md
Markdown
Security Positives
✓ 文档完整,声称的功能与实际代码行为一致
✓ 敏感信息(API Key)只显示前10字符,无完整泄露
✓ 使用 timeout 限制网络连接测试时间,防止阻塞
✓ heartbeat-check.sh 使用 safe eval 模式,避免注入风险
✓ 代码结构清晰,无混淆或隐蔽行为
✓ 无外部网络请求发送敏感数据
✓ 无持久化后门或计划任务
✓ 预扫描 IOC your_app_password 为占位符,非真实凭证