T09 · Insecure Skill Coding Practices
- Location
references/cli-installation-guide.md:85- Finding
Cloud credentials exposed through command-line arguments
- Content
View full analysis
\ --access-key-secret \ --region cn-hangzhou ``` The guide also presents concrete credential-shaped examples: ```bash aliyun configure set \ --mode AK \ --access-key-id LTAI5tXXXXXXXX \ --access-key-secret 8dXXXXXXXXXXXXXXXXXXXXXXXX \ --region cn-hangzhou ``` ### Technical Analysis The installation guide recommends non-interactive command-line flags and repeatedly instructs users to pass Alibaba Cloud access-key secrets and STS tokens as command arguments. Depending on the operating environment, these values can be retained in: - Interactive shell history - CI/CD job definitions and build logs - Terminal recording or audit systems - Process execution telemetry - Debugging and command tracing output - Agent conversation or tool-call records This guidance directly conflicts with the security requirements in `SKILL.md`, lines 65-68, which prohibit asking users to supply access keys directly and prohibit using `aliyun configure set` with literal credential values. An access-key secret or STS token is an authentication credential rather than ordinary configuration data. Passing it through a command line unnecessarily increases the number of systems and users that may be able to observe it. ### Attack Path 1. A user follows the referenced installation guide and substitutes real access-key or STS values into the example command. 2. The shell, CI platform, terminal recorder, or process telemetry captures the complete command. 3. An attacker with access to command history, logs, backups, or monitoring records extracts the crede ...[truncated 912 chars]- Remediation
View remediation
