T08 · Insecure Dependencies
- Location
requirements.txt:1- Finding
Unpinned Third-Party Dependencies Create a Supply-Chain Risk
- Content
View full analysis
=2.28.0 python-dotenv pytest>=7.0.0 ``` `.github/workflows/ci.yml:18-20`: ```yaml - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt ``` `SKILL.md:40-42`: ```text 1. Install dependencies - pip install -r requirements.txt (The script uses requests and python-dotenv; keep requirements minimal.) ``` ### Technical Analysis The project installs packages directly from the configured Python package index without exact version pins or integrity hashes. `python-dotenv` has no version constraint, while `requests>=2.28.0` and `pytest>=7.0.0` permit any later release satisfying the lower bound. Consequently, the code reviewed during this audit is not sufficient to determine the code that will execute during a future installation. A newly published, compromised, or otherwise unsafe dependency version could be selected automatically. Python package installation may execute build-system code, and imported dependency code executes with the privileges of the user or CI runner. No evidence was found that the currently named packages are malicious or that dependency confusion or typosquatting is presently occurring. The vulnerability is the absence of reproducible dependency resolution and artifact integrity controls. ### Attack Path 1. An upstream dependency release or its distribution account is compromised, or an unsafe future release is published. 2. A user or CI job runs `pip install -r requirements.txt`. 3. Pip resolves the mutable constraints to the affected release because exact versions and hashes are absent. 4. Malicious build hooks may execute during installation, or malicious package cod ...[truncated 749 chars]- Remediation
View remediation
