T09 · Insecure Skill Coding Practices
- Location
index.js:66- Finding
Feishu App Secret Exposed Through Process Arguments and Terminal Output
- Content
View full analysis
飞书应用的 App ID (必填)\n --app-secret 飞书应用的 App Secret (必填)\n --account-id 为该飞书账户生成一个自定义标识 (可选, 默认自动生成)\n --bot-name 机器人名称 (可选, 默认: "飞书机器人")\n --dm-policy DM 消息处理策略: open/pairing/allowlist (可选, 默认: open)\n --agent-id 要绑定的 Agent ID (可选)\n --chat-id 飞书群聊 ID (oc_xxx 格式), 在群聊绑定模式下必填\n --routing-mode 路由模式: account (账户级) / group (群聊级) (可选, 默认: account)\n --help 显示帮助信息\n`); ``` ### Technical Analysis The Feishu App Secret is accepted directly through `process.argv` and then printed in plaintext as part of the generated configuration fragment. Sensitive values passed on a command line may be exposed through: - Shell history files. - Process inspection utilities while the command is running. - Terminal scrollback and session recording. - CI/CD logs or automation output. - Support transcripts and copied configuration previews. Printing the complete secret creates an additional disclosure channel even when process arguments are otherwise protected. ### Attack Path 1. A user follows the documented usage and runs the helper with `--app-secret`. 2. The shell records the command, includ ...[truncated 931 chars]- Remediation
View remediation
