T09 · Insecure Skill Coding Practices
- Location
skill.md:94- Finding
Financially Privileged API Key Stored Persistently in Plaintext
- Content
View full analysis
> ~/.openclaw/.env ``` ``` ### Technical Analysis The Skill directs the agent to persist a bearer credential in OpenClaw configuration or a plaintext environment file. It also permits use of a workspace `.env` file, which may be readable by other workspace tools, shared with collaborators, included in backups, or accidentally committed to source control. The instructions do not require restrictive file permissions, repository exclusions, encryption, an operating-system credential store, or credential rotation. The shell command uses append redirection without first securing the target file. The resulting file permissions therefore depend on the existing file and process environment. This credential is particularly sensitive because the documented key can authorize account reads and financially consequential operations, including trades, order cancellation, and redemption. Transmission of the key to the declared HTTPS API is necessary for authentication; the vulnerability is its insufficiently protected persistence at rest. ### Attack Path 1. A user completes the documented device authorization flow and receives a LuckyLobster API key. 2. The agent follows the ...[truncated 1118 chars]- Remediation
View remediation
