T08 · Insecure Dependencies
- Location
SKILL.md:43- Finding
Unpinned Remote Repository Is Installed as Executable Python Package Code
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 43–45
Vulnerability Type: Unpinned and unverified third-party dependency installation
Risk Level: Mediumbash git clone https://github.com/Zyj061/SpikeCV cd SpikeCV pip install .[cli]Technical Analysis
The instructions clone the mutable default branch of an external Git repository and immediately install it with
pip. No reviewed release tag or commit is pinned, and no signature or cryptographic digest is verified.A Python installation may execute build backend logic and install console entry points or other executable package components. Consequently, the code that runs or is installed can change after this Skill has been reviewed. HTTPS protects the connection in transit but does not guarantee that the current repository contents are the same contents that were previously audited.
Attack Path
- An attacker compromises the upstream repository, a maintainer account, or the repository's dependency configuration.
- The attacker adds malicious package build logic or runtime code to the default branch.
- A user or Agent follows the documented
git clonecommand and receives the modified branch. - The user runs
pip install .[cli]. - Attacker-controlled build or package code executes or is installed under the invoking user's security context.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the account performing the installation. The attacker could access or alter files available to that account, read accessible environment variables and credentials, modify the Python environment, install malicious command-line entry points, and make outbound network connections.
The documented commands do not request elevated privileges, so the direct impact is normally limited to the invoking user and resources accessible to that user. Greater impact would be possible if the comman ...[truncated 62 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin installation to a reviewed immutable commit hash or a specific signed release rather than the mutable default branch.
- Verify the selected Git commit or release signature before installation.
- Publish and use a dependency lock file containing exact versions and hashes for transitive dependencies.
- Install in a dedicated, non-privileged virtual environment or container.
- Review the pinned package's build configuration and build backend before running
pip install. - Prefer binary artifacts produced by a trusted build pipeline and verify their published SHA-256 hashes or signatures.
