T09 · Insecure Skill Coding Practices
- Location
scripts/read_feishu_sheet.py:35- Finding
Feishu Credentials Exposed Through Subprocess Command-Line Arguments
- Content
View full analysis
- Remediation
View remediation
`. Avoid putting authorization headers in command-line arguments; use a protected, short-lived configuration input only if the tool provides a mechanism that does not expose values through its argument vector. 4. Apply restrictive permissions to `~/.openclaw/openclaw.json`, allowing access only to the account that runs the Skill. 5. Use a dedicated Feishu application with the minimum required spreadsheet scopes and resource access. 6. Rotate the Feishu application secret if the current implementation has run in an environment where process arguments or audit records were visible to untrusted users. 7. Ensure diagnostic logs, process accounting, and monitoring systems do not retain secrets. Restrict access to any historical records that may contain command lines. 8. Add explicit HTTP timeouts, status validation, and safe error handling while refactoring the network requests. Error messages must not include credentials or authorization headers. ]]>
