扫描报告
25 /100
qq-email
QQ邮箱智能管理工具,支持收发邮件、搜索筛选、附件处理及AI智能整理功能
QQ邮箱智能管理技能,代码质量良好无恶意行为,但文档中存在硬编码API密钥示例的文档安全问题。
可以安装
移除文档中的API密钥示例,使用占位符替代;建议增加代码签名验证机制。
安全发现 2 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 中危 | 文档包含硬编码API密钥格式示例 文档欺骗 | references/ai_organization.md:151 |
| 低危 | dashscope SDK 无版本锁定 供应链 | scripts/ai_summarize.py:59 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 文件系统 | WRITE | WRITE | ✓ 一致 | scripts/ai_summarize.py:157 用于写入JSON输出文件,符合SKILL.md声明的输出功能 |
| 网络访问 | WRITE | WRITE | ✓ 一致 | scripts/ai_summarize.py:64 通过dashscope调用阿里云API,符合AI功能声明 |
| 环境变量 | READ | READ | ✓ 一致 | 多处使用os.getenv读取QQ_EMAIL、DASHSCOPE_API_KEY等配置,符合声明的环境变量配置方式 |
| 凭证 | READ | READ | ✓ 一致 | 仅用于IMAP/SMTP认证和API调用认证,不外传,符合声明用途 |
1 严重 2 高危 8 项发现
严重 API 密钥 硬编码 API 密钥
sk-xxxxxxxxxxxxxxxxxxxxxxxx references/ai_organization.md:151 高危 API 密钥 疑似硬编码凭证
API_KEY="sk-xxxxxxxxxxxxxxxxxxxxxxxx" references/ai_organization.md:151 高危 API 密钥 疑似硬编码凭证
API_KEY="your_dashscope_api_key" references/qq_email_setup.md:61 中危 外部 URL 外部 URL
https://bailian.console.aliyun.com/ references/ai_organization.md:145 中危 外部 URL 外部 URL
https://mail.qq.com references/qq_email_setup.md:7 提示 邮箱 邮箱地址
[email protected] SKILL.md:35 提示 邮箱 邮箱地址
[email protected] SKILL.md:62 提示 邮箱 邮箱地址
[email protected] SKILL.md:117 目录结构
14 文件 · 79.0 KB · 2626 行 Python 10f · 1876L
Markdown 4f · 750L
├─
▾
references
│ ├─
ai_organization.md
Markdown
│ ├─
api_reference.md
Markdown
│ └─
qq_email_setup.md
Markdown
├─
▾
scripts
│ ├─
ai_classify.py
Python
│ ├─
ai_extract_todos.py
Python
│ ├─
ai_organize.py
Python
│ ├─
ai_prioritize.py
Python
│ ├─
ai_summarize.py
Python
│ ├─
example.py
Python
│ ├─
fetch_emails.py
Python
│ ├─
manage_email.py
Python
│ ├─
search_emails.py
Python
│ └─
send_email.py
Python
└─
SKILL.md
Markdown
依赖分析 3 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
dashscope | 未指定 | pip | 否 | AI功能依赖,无版本锁定,存在供应链风险 |
imaplib | stdlib | Python标准库 | 否 | QQ邮箱IMAP访问 |
smtplib | stdlib | Python标准库 | 否 | QQ邮箱SMTP发送 |
安全亮点
✓ 代码结构清晰,每个脚本职责单一
✓ 包含完整的错误处理和降级机制(如AI不可用时降级到规则引擎)
✓ SKILL.md文档详尽,声明与实现基本一致
✓ 凭证仅用于本地认证,不存在数据外泄
✓ 使用环境变量配置敏感信息,符合安全最佳实践
✓ 无恶意行为:无反向shell、无C2通信、无凭证收割外传