feishu-log
Skill contains hardcoded Feishu API credentials in multiple files and an undeclared credential collection tool, creating significant credential exposure risk despite no confirmed exfiltration behavior.
为什么得出这个结论
2/4 个维度触发发现 3 项声明之外的能力或越权行为。
提取到 18 个一般风险产物,需要结合上下文判断。
报告包含 4 步攻击链,另有 3 项高危或严重发现。
发现 1 项需要关注的依赖或供应链线索。
攻击链
初始入口 · SKILL.md:1
权限提升 · log-simple.mjs:13
权限提升 · log-simple.mjs:13
最终危害 · feishu-log.js:1
风险分是怎么被拉高的
Multiple files contain real Feishu App ID and App Secret: cli_a93b936aa9391cc7 and aMRJMyi3KSXbSJhRgyx7ycvyT5D3rsrs
config-credentials.js is flagged sensitive but not documented in SKILL.md; it collects and saves credentials to ~/.openclaw/feishu-credentials.json
SKILL.md claims .env-only config but log-work.mjs reads from ~/.openclaw/openclaw.json without disclosure
Scripts use env vars > OpenClaw config > hardcoded defaults chain
最关键的证据
Hardcoded Feishu API Credentials in Source Code
Multiple JavaScript files contain hardcoded Feishu App ID (cli_a93b936aa9391cc7) and App Secret (aMRJMyi3KSXbSJhRgyx7ycvyT5D3rsrs) as fallback values. These credentials appear in: log-simple.mjs:13-14, log-work.mjs:32-36, log.js:19-21, log-interactive.mjs:6-8, config-credentials.js:51-53. Exposing API credentials in source code is a critical security risk.
log-simple.mjs:13 Undeclared Credential Collection Tool
config-credentials.js is marked as sensitive but is not mentioned in SKILL.md. This interactive tool collects Feishu credentials from users and saves them to ~/.openclaw/feishu-credentials.json. This hidden functionality is undisclosed.
config-credentials.js:1 Undeclared OpenClaw Config Credential Source
log-work.mjs reads Feishu credentials from ~/.openclaw/openclaw.json (lines 14-32) as a fallback source. SKILL.md only mentions .env file configuration, creating a documentation mismatch.
log-work.mjs:14 Hardcoded Folder Token in Source
log.js and log-interactive.mjs contain hardcoded ROOT_FOLDER_TOKEN (RdVIffbJxl8HDCdJiULcIpdgnzf) as fallback.
log.js:21 Sensitive File Access Not Documented
Skill accesses multiple sensitive paths: ~/.openclaw/workspace/.env, ~/.openclaw/feishu-credentials.json, ~/.openclaw/openclaw.json. SKILL.md does not declare filesystem access to these paths.
feishu-log.js:53 config-credentials.js Has Default Credential Fallback
If user provides empty input during credential collection, config-credentials.js uses hardcoded defaults.
config-credentials.js:51 声明能力 vs 实际能力
feishu-log.js:53 writes to ENV_FILE_PATH All scripts make HTTPS POST requests to Feishu API feishu-log.js:57 reads os.homedir(); log-work.mjs:26 reads process.env 可疑产物与外联
https://feishu.cn/drive README-权限设置.md:14
https://feishu.cn/drive/folder/[文件夹 README-权限设置.md:37
https://feishu.cn/drive/folder/MDjAfBJorlqu14dWxBocy7MnnId README-权限设置.md:41
https://open.feishu.cn/document README-权限设置.md:79
https://open.feishu.cn/app/YOUR_APP_ID/auth?q=drive:drive SKILL.md:141
https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal/ SKILL.md:193
https://open.feishu.cn/open-apis/contact/v3/users?user_id_type=open_id&page_size=10 SKILL.md:197
https://feishu.cn/docx/doxxx SKILL.md:228
https://open.feishu.cn/open-apis/drive/v1/permissions/:token/members SKILL.md:343
https://open.feishu.cn/ config-credentials.js:51
https://open.feishu.cn/open-apis feishu-log.js:25
https://feishu.cn/docx/$ feishu-log.js:305
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| @larksuiteoapi/node-sdk | * | npm | 否 | Official Feishu SDK, version not pinned |
文件构成
config-credentials.js feishu-log.js SKILL.md log-work.mjs log-interactive.mjs log-simple.mjs log.js 更新说明.md 修复报告.md