T08 · Insecure Dependencies
- Location
SKILL.md:41- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 41-43
Vulnerability Type: Unpinned dependency installation
Risk Level: Mediummarkdown ## Requirements - Python 3.8+ - psutil: `pip install psutil` - nvidia-smi (optional, for NVIDIA GPU detection)Technical Analysis
The installation instructions direct users to install
psutilwithout specifying a reviewed version, validating package hashes, using a lockfile, or constraining the package index. Consequently, the installed package and its transitive dependencies may change independently of the audited project.Python package installation can execute package-controlled build or installation logic. If the package distribution or configured package index is compromised, a malicious package artifact could execute code during installation and subsequently when imported by
detect.py.The audit found no evidence that the legitimate
psutilpackage is malicious. The issue is the absence of controls that ensure users install the same reviewed dependency artifact.Attack Path
- An attacker compromises the relevant package distribution, a dependency, or a package index configured in the user's environment.
- The user follows the documented
pip install psutilcommand. - Pip resolves an uncontrolled package version or artifact from the configured index.
- Malicious package build or installation logic executes during installation, or malicious runtime logic executes when
detect.pyimportspsutil. - The payload runs with the privileges of the user performing the installation or invoking the Skill.
Impact Assessment
Successful exploitation could permit arbitrary code execution under the installing user's account. This may expose files, environment variables, credentials, and other resources accessible to that account. If installation is performed from an elevated shell, the impact could extend to admini ...[truncated 254 chars]
- Remediation
View remediation
Remediation Suggestions
-
Pin
psutilto a reviewed, exact version in a dependency file, such as:text psutil==<reviewed-version> -
Generate and verify cryptographic hashes for all dependency artifacts, then install with:
bash python3 -m pip install --require-hashes -r requirements.txt -
Use a lockfile produced by a dependency-management tool to make dependency resolution reproducible.
-
Explicitly use a trusted package index, while ensuring that this does not replace TLS and artifact-hash validation:
bash python3 -m pip install --index-url https://pypi.org/simple --require-hashes -r requirements.txt -
Review and update pinned versions through a controlled dependency-update process that includes vulnerability scanning and testing.
-
Recommend installation inside a dedicated virtual environment and discourage elevated or root-level pip installation.
-
