T08 · Insecure Dependencies
- Location
references/cli-installation-guide.md:24- Finding
Unpinned CLI Binary and Plugin Installation Without Integrity Verification
- Content
View full analysis
- Remediation
View remediation
' 'aliyun-cli-linux-amd64.tgz' | sha256sum --check - ``` 3. Prefer vendor-signed packages and verify the signature against a pinned, authenticated vendor public key. 4. Abort installation if checksum or signature verification fails. 5. Extract the archive into a private temporary directory and inspect the expected file type and archive contents before installation. 6. Avoid enabling unrestricted automatic plugin installation. Install only the required `ossutil` plugin at a pinned version where the CLI supports version selection. 7. Replace broad `aliyun plugin update` behavior with an explicit, reviewed update procedure. 8. Record the installed CLI and plugin versions in probe results to support reproducibility and incident investigation. 9. Use the least privilege required for installation. Prefer a user-owned installation directory when system-wide installation is unnecessary. ]]>
