T08 · Insecure Dependencies
- Location
references/cli-installation-guide.md:40- Finding
Unverified Installation of Mutable CLI, Plugins, and Python Dependencies
- Content
View full analysis
= 3.3.1 | STOP, see [cli-installation-guide.md](references/cli-installation-guide.md) | | Credential status | `aliyun configure list` | Valid status | STOP, guide configuration | | Plugin installation | `aliyun configure set --auto-plugin-install true` | Set | Auto-set | ``` Python packages are version-pinned but are installed without package hashes: ```text # Video Translation Script Dependencies # Install: pip3 install -r requirements.txt alibabacloud_tea_openapi==0.3.4 alibabacloud_credentials==0.3.5 alibabacloud_tea_util==0.3.4 alibabacloud_openapi_util==0.1.1 ``` ### Technical Analysis HTTPS protects packages in transit under normal conditions, but it does not establish artifact-level integrity against a compromised CDN, package repository, publisher account, DNS path, or signing infrastructure. The CLI URL uses a mutable `latest` filename, so the installed executable can change after the Skill has been reviewed. The downloaded `aliyun` binary is moved into `/usr/local/bin` using administrative privileges. A substitu ...[truncated 2101 chars]- Remediation
View remediation
aliyun-cli-linux-amd64.tgz" | sha256sum --check - ``` 3. Prefer vendor-provided signed release manifests and verify signatures using a pinned, independently obtained public key. 4. Extract archives into a temporary directory and inspect the expected file type and archive paths before installation. 5. Avoid enabling automatic plugin installation globally. Install only explicitly required plugins at pinned versions and verify their integrity. 6. Use a hash-locked requirements file containing hashes for all direct and transitive dependencies, and install it with: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 7. Perform installation in an isolated virtual environment rather than the system Python environment. 8. Run the CLI and Python script under a dedicated, least-privileged account with narrowly scoped RAM permissions. ]]>
