T08 · Insecure Dependencies
- Location
SKILL.md:20- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:20-22andREADME.md:20-22
Vulnerability Type: Unpinned dependency resolution without integrity verification
Risk Level: MediumVulnerable Code
markdown ## 🚀 Installation 1. `pip install psutil` 2. Ensure `docker` and `pm2` are installed and in your PATH.Technical Analysis
The installation instructions direct users to install
psutilwithout specifying a reviewed version or cryptographic hashes. Consequently, the installed code depends on the package version and package-index configuration present at installation time rather than the version assessed during this audit.Although no malicious dependency is embedded in the project, this practice exposes installation to supply-chain risks. A compromised package release, package repository, mirror, or local pip configuration could cause uncontrolled package code to be processed under the privileges of the user performing the installation.
The same unsafe instruction is duplicated in both
SKILL.mdandREADME.md.Attack Path
- An attacker compromises a configured Python package index, mirror, relevant package release, or package-resolution configuration.
- The user follows the documented
pip install psutilinstruction. - Pip resolves a package version that was not pinned or reviewed with this project.
- Malicious package installation or build logic executes with the installing user's privileges.
- The attacker may access or modify resources available to that user.
Impact Assessment
Successful exploitation could execute code with the privileges of the user running pip. The resulting scope may include that user's files, Python environment, credentials available to the process, and other resources accessible from the installation environment. System-wide impact would require installation with elevated privileges or a separate privilege-escalation path; neither is present ...[truncated 23 chars]
- Remediation
View remediation
Remediation Suggestions
- Declare dependencies in a version-controlled requirements file using an exact, reviewed version.
- Record cryptographic hashes for every permitted distribution and install with hash verification:
text psutil==<reviewed-version> --hash=sha256:<verified-hash>bash python -m pip install --require-hashes -r requirements.txt - Generate the lock file from a trusted package index and review dependency updates before merging them.
- Keep
SKILL.md,README.md, and_meta.jsonsynchronized with the locked dependency version. - Avoid recommending privileged or system-wide pip installation; use an isolated virtual environment.
