T09 · Insecure Skill Coding Practices
- Location
SKILL.md:67- Finding
Plaintext API Credential Persistence in Broadly Accessible Agent Configuration
- Content
View full analysis
- Remediation
View remediation
~/.ailove/credentials.env chmod 600 ~/.ailove/credentials.env ``` 3. Verify that the credential file is owned by the expected user and reject symbolic links or unexpectedly permissive existing files before writing. 4. Inject the key only into the specific AILove job instead of exporting it globally to all OpenClaw sessions. 5. Do not retain the full key in general agent memory, conversation logs, command history, diagnostic output, or delivery messages. 6. Redact bearer headers and values matching the `loveq_` prefix from logs. 7. Document key rotation and revocation procedures and recommend immediate rotation after suspected local disclosure. 8. Scope the server-side key to only the two documented endpoints and apply expiration where supported. ]]>
