T09 · Insecure Skill Coding Practices
- Location
scripts/alarm_query.py:131- Finding
API Secrets and Authorization Tokens Exposed Through Command-Line Arguments
- Content
View full analysis
" \ --user "" \ --uuid "" \ --appkey "" \ --secret "" \ --auth "" \ --movecard 7 ``` ### Technical Analysis The scripts require the application secret and authorization token to be passed as command-line arguments, even though `SKILL.md` separately defines protected environment variables such as `JF_APP_SECRET` and `JF_AUTHORIZATION`. Command-line secrets may be exposed through: - Process inspection facilities such as `/proc/<pid>/cmdline` or process-monitoring tools. - Shell command history. - Job runners, CI systems, terminal recording, and process telemetry. - Agent execution transcripts and diagnostic logs that record invoked commands. The application secret participates in request signing, while the authorization value authenticates API requests. Their exposure is not necessary for the declared functionality because they can be read from a secret manager or protected environment without appearing in process arguments. ...[truncated 1116 chars]- Remediation
View remediation
