T08 · Insecure Dependencies
- Location
SKILL.md:145- Finding
Unpinned and Unverifiable Python Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 145 and 218-219
Vulnerability Type: Supply-chain risk through unpinned dependencies
Risk Level: MediumVulnerable Snippets
bash pip install -r requirements_pro.txtmarkdown | boto3 | Python library | Required | `pip install boto3` | | awscli | CLI tool | Required | `pip install awscli` |The project contains only
SKILL.md. The referencedrequirements_pro.txtis not present in the audited artifact, so its package names, versions, sources, and integrity constraints cannot be reviewed.Technical Analysis
The installation instructions do not pin reviewed dependency versions or require cryptographic hashes. Running
pip install boto3orpip install awscliresolves whatever versions the configured Python package index currently serves. The missing requirements file also creates an unverifiable external dependency on content that is not part of the reviewed package.This does not demonstrate that
boto3orawscliis malicious. The risk arises because dependency resolution and the absent manifest are not constrained by the audited artifact. A compromised package index, poisoned mirror, modified requirements file, or future compromised release could cause package installation code to execute locally.Attack Path
- A user follows the dependency-installation instructions.
- The user obtains the missing requirements file from an unreviewed source or resolves unpinned packages through the configured package index.
- An attacker controls or compromises a referenced package, package release, requirements file, or package mirror.
pipdownloads and installs the attacker-controlled distribution.- Installation-time or subsequently imported package code executes with the privileges of the user running
pip.
Impact Assessment
Successful exploitation could execute arbitrary code with the installing user's pri ...[truncated 451 chars]
- Remediation
View remediation
Remediation Suggestions
- Include
requirements_pro.txtin the reviewed project. - Pin every direct and transitive dependency to a reviewed version.
- Record cryptographic hashes and install with
pip install --require-hashes -r requirements_pro.txt. - Use a controlled package index or approved internal mirror rather than unconstrained package resolution.
- Generate and retain a lock file and software bill of materials.
- Scan dependencies for known vulnerabilities before release and during maintenance.
- Install dependencies in an isolated virtual environment as a non-administrative user.
- Document verified package sources and an update-review procedure.
- Include
