T08 · Insecure Dependencies
- Location
SKILL.md:283- Finding
Unpinned Third-Party Package Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:283
Vulnerability Type: Supply-chain risk from an unpinned third-party dependency
Risk Level: MediumVulnerable Code
markdown - Dependency installation command: `pip install backtest-engine`Technical Analysis
The quick-start instructions direct users to install
backtest-enginewithout specifying an exact version, package hash, verified repository, lockfile, or provenance information. Consequently, package resolution depends on mutable external package-index state at installation time.Python package installation may execute package-controlled build or installation logic. If the referenced package or its distribution infrastructure is compromised, ownership changes, or a malicious release is published, following this instruction could execute attacker-controlled code. The project does not include a local implementation against which the installed package's behavior can be verified.
This finding concerns an unsafe dependency-installation practice. The audit did not establish that the current package itself is malicious.
Attack Path
- An attacker compromises the package publisher account, distribution channel, or another relevant supply-chain component.
- The attacker publishes a malicious release under the package name expected by the documentation.
- A user follows
SKILL.mdand runspip install backtest-engine. - Because no version or hash is fixed,
pipresolves the attacker-controlled release. - Malicious package build, installation, import, or runtime logic executes under the user's account.
- The attacker gains access to resources available to that account and may abuse credentials, files, or network access exposed to the Python process.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the user running
pipor importing the package. The scope may include th ...[truncated 380 chars]- Remediation
View remediation
Remediation Suggestions
- Confirm and document the package's authoritative publisher and source repository.
- Review the package source and release artifacts before recommending installation.
- Pin an audited exact version, for example
backtest-engine==X.Y.Z. - Generate a reviewed lockfile containing transitive dependencies.
- Require cryptographic hashes during installation, such as with
pip install --require-hashes -r requirements.txt. - Use a controlled internal package mirror or explicitly trusted index rather than relying on unrestricted package resolution.
- Install and execute the dependency in a non-privileged virtual environment or sandbox.
- Add automated dependency provenance, vulnerability, and integrity checks to the release process.
- Avoid recommending administrator or root execution for package installation.
