T09 · Insecure Skill Coding Practices
- Location
references/火山鉴权指南.md:11- Finding
Authentication credentials are exposed through chat and terminal output
- Content
View full analysis
export SECRET_ACCESS_KEY= ``` ### Technical Analysis The authentication guide instructs the agent to ask users to submit long-lived Volcengine access credentials directly through chat. It then requires an environment-check command that prints the complete bearer token, Access Key ID, and Secret Access Key. Although later instructions state that credentials must not be disclosed, the mandatory command directly contradicts that requirement. The values can be captured in: - Chat transcripts and message retention systems - Agent execution traces - Terminal output - Shell audit records or command history - Debugging and support bundles - Monitoring systems that collect command output An Access Key ID and Secret Access Key are account-level authentication material. Their exposure is not necessary to determine whether authentication is configured; checking whether the variables are set would be sufficient. ### Attack Path 1. The Skill determines that authentication is not configured. 2. Following the guide, it asks the user to send an Access Key ID and Secret Access Key in chat. 3. The credentials become part of the retained conversation history. 4. The Skill exports the credentials into its environment. 5. The mandatory environment check prints the complete credentials. 6. An attacker with access to conversation records, executi ...[truncated 605 chars]- Remediation
View remediation
