T08 · Insecure Dependencies
- Location
SKILL.md:215- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:215
Vulnerability Type: Unpinned and unverified third-party dependencies
Risk Level: MediumVulnerable Code
python # Requires: pip install pytesseract pdf2imageTechnical Analysis
The Skill instructs users or agents to install
pytesseractandpdf2imagewithout specifying exact versions, cryptographic hashes, a lockfile, or a trusted package repository. Consequently, the code installed during one execution may differ from the code reviewed during the audit.Python package installation can execute package-controlled build logic. If a dependency, transitive dependency, or configured package index is compromised, installation could run arbitrary code under the identity performing the installation.
This finding does not establish that the named packages are malicious. The risk arises from the absence of dependency integrity and reproducibility controls.
Attack Path
- An attacker compromises a future dependency release, one of its transitive dependencies, or a package source used by the environment.
- A user or agent follows the documented
pip install pytesseract pdf2imageinstruction. pipresolves the uncontrolled package version from the configured index.- Malicious package build or installation logic executes locally.
- The payload gains the same filesystem, network, and process privileges as the account running
pip.
Impact Assessment
Successful exploitation could result in arbitrary code execution with the installing user's privileges. Depending on that user's permissions, the attacker could read or modify accessible documents, steal environment credentials, alter project files, or install additional user-level components. No privilege escalation beyond the installing account is demonstrated by the audited project.
- Remediation
View remediation
Remediation Suggestions
- Provide a reviewed dependency manifest with exact versions.
- Use hash verification, such as a requirements file generated with
--generate-hashesand installed usingpip install --require-hashes. - Pin transitive dependencies as well as direct dependencies.
- Require an explicitly trusted package index and disable unintended extra indexes.
- Install dependencies in an isolated, least-privileged virtual environment or container.
- Add automated dependency vulnerability and provenance scanning.
- Document tested dependency versions rather than placing an unconstrained installation command in an example comment.
