T08 · Insecure Dependencies
- Location
SKILL.md:41- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:41
Vulnerability Type: Unpinned dependency installation
Risk Level: LowVulnerable Code:
shell pip install psutilTechnical Analysis
The installation command retrieves the currently available version of
psutilwithout a version constraint, cryptographic hash verification, lock file, or explicitly trusted package index. Although the documented package name correctly corresponds to the module imported byscripts/main.py, the dependency content may change after this skill has been reviewed.This makes installation non-reproducible and exposes users to upstream package compromise, package-index compromise, or a malicious future release. Python packages can execute package-controlled code during installation and subsequently when imported by the skill.
Attack Path
- An attacker compromises the upstream
psutilrelease process or the package index used by the victim. - The attacker publishes or serves a malicious package version under the expected package name.
- A user follows the documented
pip install psutilcommand. pipresolves and installs the attacker-controlled version because no reviewed version or hash is enforced.- Malicious code may execute during installation or when
scripts/main.pyimportspsutil.
This path depends on compromise of the upstream dependency or package distribution channel; the audited project does not itself retrieve or execute a separate remote payload.
Impact Assessment
Successful exploitation could execute arbitrary Python or native package code with the privileges of the user performing the installation or running the skill. The potential scope includes access to that user's files, environment variables, network access, and any system resources available to the Python process. Administrative or root-level impact would require the installation or execution to occur under such elevated ...[truncated 12 chars]
- An attacker compromises the upstream
- Remediation
View remediation
Remediation Suggestions
-
Pin
psutilto a reviewed, exact version in a dedicated requirements file, for example:text psutil==REVIEWED_VERSION -
Generate and verify cryptographic hashes for all supported distributions, then require hash validation during installation:
shell python -m pip install --require-hashes -r requirements.txt -
Use a lock file or controlled dependency-generation process to ensure reproducible installations.
-
Configure an explicitly trusted package index or an internally controlled package mirror.
-
Perform dependency vulnerability and provenance checks before updating the pinned version.
-
Avoid installing dependencies with administrative or root privileges, and run the skill in a least-privileged virtual environment.
-
