T08 · Insecure Dependencies
- Location
requirements.txt:1- Finding
Unpinned and Unverified Third-Party Dependencies
- Content
View full analysis
=1.18.0 pandas>=1.5.0 numpy>=1.23.0 ``` The documented manual installation process also retrieves a mutable repository and installs its dependencies without integrity verification: ```bash cd ~/.openclaw/skills git clone https://github.com/quant-dev/quant-stock-skill.git cd quant-stock-skill pip3 install -r requirements.txt ``` ### Technical Analysis All dependencies use open-ended minimum-version constraints. No lockfile, cryptographic hashes, upper version limits, or verified artifact references are provided. A future dependency release can therefore be installed automatically without having been reviewed with this Skill. The manual installation procedure also clones the repository's default branch rather than a specific verified commit or immutable release. Consequently, the code installed by a user may differ from the code that was audited. This does not establish that the current upstream packages or repository are malicious. The vulnerability is the lack of controls that would prevent a compromised account, malicious future release, or unexpected upstream change from entering the installation process. ### Attack Path 1. An attacker compromises an upstream package publisher account, source repository, release pipeline, or distribution channel. 2. The attacker publishes a malicious dependency version satisfying one of the `>=` constraints, or modifies the repository's default branch. 3. A user follows the documented `pip3 install -r requirements.txt` or `git clone` installation process. 4. The package manager or Git client retrieves the attacker-controlled version because no immutable version or hash is enforced. 5. Malicious installation hooks, import ...[truncated 621 chars]- Remediation
View remediation
