T09 · Insecure Skill Coding Practices
- Location
index.js:186- Finding
Feishu App Secret Exposed Through Command-Line Arguments
- Content
View full analysis
Feishu App ID (required) --app-secret Feishu App Secret (required) ``` ### Technical Analysis The documented and implemented interface requires the Feishu App Secret to be supplied as a command-line argument. Command-line secrets can be exposed through shell history, process inspection utilities, process-monitoring software, diagnostic data, terminal logs, and command auditing systems. The parser reads the credential directly from `process.argv`. Although the implementation does not print the secret, avoiding console output does not protect it from operating-system-level process inspection or shell-history retention. The secret is subsequently written into `~/.openclaw/openclaw.json` and copied into timestamped backups. Those operations increase the number of persistent copies, although filesystem permissions were not explicitly controlled by this implementation. ### Attack Path 1. A user follows the documented command and supplies a real Feishu App Secret using `--app-secret`. 2. The shell records the complete command in its history, or the operating system exposes the ...[truncated 799 chars]- Remediation
View remediation
