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 Why this conclusion was reached
2/4 dimensions flagged3 undeclared or violating capabilities were inferred.
3 lower-risk artifacts were extracted and still need context.
The report includes 0 attack-chain steps and 2 severe findings.
2 dependency or supply-chain issues need attention.
What drove the risk score up
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
Most important evidence
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 Declared capability vs actual capability
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 Suspicious artifacts and egress
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
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| imap-tools | * | pip | No | Version not pinned |
| beautifulsoup4 | * | pip | No | Version not pinned, used for HTML parsing |
File composition
scripts/imap_idle.py SKILL.md