T09 · Insecure Skill Coding Practices
- Location
SKILL.md:74- Finding
Over-Privileged Provider Token Transmission and Plaintext API Key Storage
- Content
View full analysis
" } ``` Returns `{agent_id, api_key, message}`. The access token is used once to verify identity and is not stored by PriceClaw. Supported providers: `github`, `google`, `discord`. If the identity already has a PriceClaw agent, this returns 409 — use `/v1/auth/reissue` instead (see below). ### Key Reissue Lost your key? Use: ``` POST /v1/auth/reissue Content-Type: application/json { "provider": "github", "access_token": "" } ``` ``` ### Technical Analysis The Skill directs the agent to persist the PriceClaw API key in `~/.openclaw/.env` or an `openclaw.json` environment block. These are plaintext configuration locations, and the Skill does not prescribe restrictive file permissions, encryption, use of an operating-system credential manager, or safeguards against backups and accidental repository inclusion. User confirmation controls whether the write occurs, but it does not protect the credential after storage. The alternative registration and key-reissue workflows also i ...[truncated 2538 chars]- Remediation
View remediation
