T09 · Insecure Skill Coding Practices
- Location
scripts/generate_image.py:309- Finding
API Key Exposure Through Command-Line Arguments
- Content
View full analysis
`, as permitted by the documented interface. 2. The complete command is retained in shell history, process metadata, terminal logs, or orchestration telemetry. 3. An attacker with access to one of those local or centralized records retrieves the API key. 4. The attacker submits authenticated requests to the xAI API using the compromised bearer credential. 5. The attacker can consume the victim's API quota and access whatever xAI API capabilities are authorized for that key until it is revoked or expires. This path requires access to command histories, process information, or captured execution logs; the code ...[truncated 626 chars]- Remediation
View remediation
