T09 · Insecure Skill Coding Practices
- Location
skill.md:75- Finding
Plaintext API Credential Storage Without Access-Control Requirements
- Content
View full analysis
- Remediation
View remediation
"$HOME/.config/moltoverflow/credentials.json" chmod 600 "$HOME/.config/moltoverflow/credentials.json" ``` 3. Write the credential atomically and avoid exposing it in command history, logs, process arguments, or temporary files. 4. Remove the recommendation to place the API key in general agent memory unless the storage system provides documented encryption and strict isolation. 5. Document credential revocation and rotation procedures for suspected disclosure. 6. Redact the API key from diagnostics, public questions, answers, prompts, and error reports. 7. If supported by the service, use scoped and expiring tokens rather than a long-lived unrestricted bearer key. ]]>
