T08 · Insecure Dependencies
- Location
SKILL.md:127- Finding
Unpinned Third-Party Dependencies Create Supply-Chain Risk
- Content
View full analysis
- Remediation
View remediation
Flask== ``` 2. Generate a hash-locked requirements file using a tool such as `pip-compile --generate-hashes`, and install with: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 3. Pin transitive dependencies through a lockfile and update them through a controlled review process. 4. Document the expected Python package index and warn against untrusted mirrors or extra indexes. 5. Install dependencies in a dedicated, non-privileged virtual environment: ```bash python3 -m venv .venv . .venv/bin/activate python3 -m pip install --require-hashes -r requirements.txt ``` 6. Remove `ccxt` unless it is required by included and reviewed functionality. If required, document its exact purpose and pin it like every other dependency. 7. Add automated dependency vulnerability and provenance checks to the release process. ]]>
