T09 · Insecure Skill Coding Practices
- Location
SKILL.md:19- Finding
Database credentials stored in a plaintext file without enforced access controls
- Content
View full analysis
- Remediation
View remediation
"$response_file" ``` - Register cleanup with `trap` and remove the file as soon as it is no longer required: ```bash trap 'rm -f -- "$response_file"' EXIT ``` - Do not use a predictable filename in a shared temporary directory. - Add credential-response filenames to `.gitignore` and prevent their collection as CI artifacts. - Avoid backups and logging of the response file. - Prefer extracting required values in memory or passing them through a protected secret-management mechanism. - Clearly document that the response is a secret and should be deleted when the instance expires. ]]>
