feishu-log
飞书日志技能存在硬编码凭证和交互式凭证收割风险,凭证作为默认值传播在多个文件中,构成中等安全风险
4个文件(log-interactive.mjs, log-simple.mjs, log-work.mjs, log.js)硬编码相同的飞书 APP_ID 和 APP_SECRET 作为默认值。当环境变量未设置时,代码会使用这些硬编码凭证,导致凭证在代码仓库中公开传播。
log-interactive.mjs:4 Why this conclusion was reached
1/4 dimensions flaggedDeclared resources and inferred behavior are broadly aligned.
18 lower-risk artifacts were extracted and still need context.
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 · config-credentials.js:58
Impact · config-credentials.js:73
What drove the risk score up
4个文件硬编码飞书 APP_SECRET 作为默认值,凭证已泄露
config-credentials.js 可收集用户凭证并保存到文件
代码使用 fallback 机制,环境变量未设置时使用硬编码凭证
SKILL.md 声称从 .env 加载,但代码有硬编码默认值
config-credentials.js 被预扫描标记为敏感文件
Most important evidence
硬编码飞书应用凭证
4个文件(log-interactive.mjs, log-simple.mjs, log-work.mjs, log.js)硬编码相同的飞书 APP_ID 和 APP_SECRET 作为默认值。当环境变量未设置时,代码会使用这些硬编码凭证,导致凭证在代码仓库中公开传播。
log-interactive.mjs:4 交互式凭证收割工具
config-credentials.js 提供交互式输入功能,会收集用户输入的 APP_SECRET 并保存到 ~/.openclaw/feishu-credentials.json。虽有默认值填充逻辑,但用户若直接回车确认,凭证会以明文保存。
config-credentials.js:58 文档声明与实现不符
SKILL.md 声称'从 .env 文件加载配置',但代码实现中包含硬编码默认值作为 fallback,与文档描述的'必填'配置要求不符。
feishu-log.js:27 第三方依赖无版本锁定
log-interactive.mjs, log-work.mjs, log.js 使用 @larksuiteoapi/node-sdk 但未锁定版本,存在供应链攻击风险。
log-interactive.mjs:1 Declared capability vs actual capability
feishu-log.js:35-67 从 .env 读取配置 所有文件都调用飞书 API 写入文档 无 shell 执行代码 Suspicious artifacts and egress
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 README.md:141
https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal/ README.md:193
https://open.feishu.cn/open-apis/contact/v3/users?user_id_type=open_id&page_size=10 README.md:197
https://feishu.cn/docx/doxxx README.md:228
https://open.feishu.cn/open-apis/drive/v1/permissions/:token/members README.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
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| @larksuiteoapi/node-sdk | * | npm | No | 无版本锁定 |
File composition
config-credentials.js feishu-log.js README.md log-interactive.mjs log-simple.mjs 更新说明.md 修复报告.md