imap-idle-sneder
Skill performs legitimate IMAP email monitoring but contains hardcoded credentials and undeclared network access to IMAP server and Feishu API.
QQ email authorization code stored as string literal PASSWORD = '******' in imap_idle.py line 37. If repo is public or shared, credentials are exposed.
scripts/imap_idle.py:37 为什么得出这个结论
2/4 个维度触发发现 3 项声明之外的能力或越权行为。
提取到 3 个一般风险产物,需要结合上下文判断。
报告包含 0 步攻击链,另有 2 项高危或严重发现。
发现 2 项需要关注的依赖或供应链线索。
风险分是怎么被拉高的
SKILL.md declares no network access but script connects to IMAP server and Feishu API
Email password, Feishu APP_ID, APP_SECRET, and USER_ID stored as string literals
Full email body (body, subject, sender) sent to Feishu, not declared in core functionality docs
imap-tools and beautifulsoup4 used without version constraints
最关键的证据
Hardcoded email credentials in source code
QQ email authorization code stored as string literal PASSWORD = '******' in imap_idle.py line 37. If repo is public or shared, credentials are exposed.
scripts/imap_idle.py:37 Hardcoded Feishu API credentials
Feishu APP_ID, APP_SECRET, and USER_ID stored as string literals in source code (lines 127-129), exposing integration credentials.
scripts/imap_idle.py:127 Undeclared network access
SKILL.md declares 'NONE' permissions but the script makes HTTP requests to open.feishu.cn and connects to imap.qq.com:993. Network access is critical to functionality but not documented.
SKILL.md:1 Email content sent to third-party service
Full email body (up to 500 chars), subject, sender name and email are forwarded to Feishu API. This data exfiltration is mentioned in docs but credential theft aspect is concerning.
scripts/imap_idle.py:180 Dependencies without version pinning
imap-tools and beautifulsoup4 used without version constraints. Could lead to unexpected behavior if a new version changes behavior.
scripts/imap_idle.py:26 声明能力 vs 实际能力
scripts/imap_idle.py:136,198 scripts/imap_idle.py:52-53 writes to workspace and log files Credentials should be env-based but are hardcoded 可疑产物与外联
https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal scripts/imap_idle.py:136
https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=open_id scripts/imap_idle.py:198
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| imap-tools | * | pip | 否 | Version not pinned |
| beautifulsoup4 | * | pip | 否 | Version not pinned, used for HTML parsing |
文件构成
scripts/imap_idle.py SKILL.md