T08 · Insecure Dependencies
- Location
references/advanced-audio-analysis.md:453- Finding
Installation of a Mutable Git Dependency Without Version or Integrity Pinning
- Content
View full analysis
Vulnerability Details
File Location:
references/advanced-audio-analysis.md:453-455
Vulnerability Type: Mutable and unverified third-party dependency installation
Risk Level: MediumVulnerable Code
bash pip install crepe # Or for the latest version: pip install git+https://github.com/marl/crepe.gitTechnical Analysis
The documentation recommends installing Python code directly from the current state of a GitHub repository. The command does not specify a reviewed commit hash, release tag, package hash, or integrity constraint.
Consequently, the effective code installed by this command can change after the Skill has been audited. If the repository, its default branch, a maintainer account, or an upstream dependency is compromised, a later operator could install attacker-controlled code. Python package installation can execute build backend and installation logic, while subsequent imports execute the installed package with the privileges of the invoking user.
This dependency is optional and relevant to advanced pitch analysis, but fetching mutable Git HEAD exceeds the minimum supply-chain risk necessary to provide that feature. A fixed, reviewed artifact would provide the same functionality with a smaller trust boundary.
Attack Path
- An operator follows the documented “latest version” installation command.
pipclones the repository’s current default branch rather than a reviewed immutable revision.- An attacker who has compromised the repository, maintainer account, or branch introduces malicious build or runtime code.
- The malicious code executes during package installation or when the analysis workflow imports
crepe. - The code runs with the operator’s local privileges and can access files, environment variables, network resources, and credentials available to that process.
Impact Assessment
Successful exploitation can provide arbitrary Python code execution u ...[truncated 482 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the mutable Git HEAD installation recommendation.
- Prefer a reviewed, fixed package release with an exact version:
bash python3 -m pip install 'crepe==<reviewed-version>' - If installation from Git is necessary, pin an immutable reviewed commit:
bash python3 -m pip install \ 'crepe @ git+https://github.com/marl/crepe.git@<full-reviewed-commit-sha>' - Generate a lock file containing hashes for the complete dependency graph and require hash verification during installation.
- Record the reviewed repository revision and dependency license in the project documentation.
- Install optional analysis dependencies in an isolated virtual environment or container without unrelated credentials.
- Preserve the existing requirement that dependencies must not be installed without explicit user consent, but do not treat consent as a substitute for provenance and integrity controls.
