T09 · Insecure Skill Coding Practices
- Location
scripts/delete_api_key.sh:3- Finding
Authentication credentials are exposed through positional command-line arguments
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 fi ``` For pinning and billing scripts: ```bash : "${PINNING_API_KEY:?PINNING_API_KEY is required}" : "${PINNING_SECRET_KEY:?PINNING_SECRET_KEY is required}" ``` 3. Reserve positional parameters exclusively for non-secret values such as pin IDs, key names, file paths, offsets, and limits. 4. Update `README.md`, `SKILL.md`, and `references/api_reference.md` so all documented interfaces match the corrected implementations. 5. Ensure errors and debug logs never print credential values or complete authentication headers. 6. Add automated tests that fail if scripts assign authentication credentials from `$1`, `$2`, or other positional arguments. 7. Rotate any credentials that may previously have been passed literally or captured by process monitoring. 8. Apply least-privilege scopes and short expiration periods to JWTs and API keys to limit the impact of future disclosure. ]]>
