T09 · Insecure Skill Coding Practices
- Location
SKILL.md:132- Finding
Full-access Shortcut API token exposed through process command-line arguments
- Content
View full analysis
- Remediation
View remediation
"$CURL_CONFIG" curl --config "$CURL_CONFIG" \ -H "Content-Type: application/json" \ -d "$DATA" "$BASE/stories" ``` 4. Ensure temporary configuration files are removed on normal exit, errors, and signals. Store them only in a trusted local temporary directory. 5. Disable shell tracing before handling credentials and avoid logging environment variables, headers, curl configuration contents, or expanded commands. 6. Retain the existing mode-`600` protection for the persistent token file and continue offering session-only credential use. 7. Rotate the Shortcut token immediately if process telemetry, shell traces, or logs may already contain it. 8. Apply the corrected authentication mechanism consistently to every curl invocation in both `SKILL.md` and `references/create-stories.md`. ]]>
