x-daily-report
硬编码X API凭证且凭证收割行为超出声明范围,但功能本身看似合法
Why this conclusion was reached
3/4 dimensions flagged1 undeclared or violating capabilities were inferred.
1 high-risk artifacts or egress signals were extracted.
The report includes 3 attack-chain steps and 2 severe findings.
1 dependency or supply-chain issues need attention.
Attack Chain
Entry · SKILL.md:1
Escalation · scripts/x-scraper-free.js:43
Impact · scripts/x-monitor.js:11
What drove the risk score up
X_API_KEY='THp2c1V4bW5JQVJ1S09IY1BzN1NubDoxaXJpUQ'直接写在源码scripts/x-monitor.js:11
x-scraper-free.js调用useCookiesFromBrowser('chrome')从Chrome提取已登录会话
访问FEISHU_ACCESS_TOKEN环境变量收集第三方凭证
Most important evidence
硬编码X API密钥
在源代码中直接暴露X平台API密钥'THp2c1V4bW5JQVJ1S09IY1BzN1NubDoxaXJpUQ',攻击者可通过源码获取并滥用
scripts/x-monitor.js:11 从Chrome浏览器窃取认证Cookie
使用twitter-scraper库的useCookiesFromBrowser('chrome')方法从用户Chrome浏览器提取X平台的认证会话Cookie,可能窃取已登录凭证
scripts/x-scraper-free.js:43 飞书AccessToken环境变量访问
代码访问FEISHU_ACCESS_TOKEN环境变量,该凭证用于获取飞书多维表格中的账号列表,存在凭证收割意图
scripts/x-monitor.js:23 第三方依赖无版本锁定
axios依赖使用^1.6.0允许自动升级,存在供应链攻击风险
package.json:14 API密钥获取方式未声明
SKILL.md提到'填入X_API_KEY'但未说明密钥来源,代码注释'已自动获取'暗示可能的收割行为
SKILL.md:58 Declared capability vs actual capability
axios调用飞书/X API scripts/x-monitor.js:23 读取FEISHU_ACCESS_TOKEN writeFile写入日报文件 Suspicious artifacts and egress
API_KEY = 'THp2c1V4bW5JQVJ1S09IY1BzN1NubDoxaXJpUQ' scripts/x-monitor.js:11
https://open.feishu.cn/open-apis scripts/x-monitor.js:8
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| @the-convocation/twitter-scraper | ^0.22.1 | npm | No | 包含浏览器Cookie访问能力 |
| axios | ^1.6.0 | npm | No | 无版本锁定,存在供应链风险 |
File composition
scripts/x-monitor.js scripts/x-scraper-free.js SKILL.md package.json