T08 · Insecure Dependencies
- Location
SKILL.md:290- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:290-291
Vulnerability Type: Unpinned and integrity-unverified dependencies
Risk Level: MediumVulnerable Code
bash pip install requests pip install python-dotenvTechnical Analysis
The skill recommends installing third-party packages without fixed versions, cryptographic hashes, a lockfile, or an explicitly trusted package index. Consequently, package resolution can vary over time and between environments.
Package installation can execute package-controlled build or installation logic. If the package registry, a dependency, the configured package index, or local package-resolution settings are compromised, an unintended package version could execute code under the privileges of the user running the agent. The reviewed project does not include a dependency manifest that constrains or verifies the resolved artifacts.
No malicious dependency or unsafe alternative registry was identified in the reviewed file. The risk arises from mutable, integrity-unverified dependency resolution.
Attack Path
- A user or agent follows the dependency installation guidance in
SKILL.md. pipresolves the latest compatible package versions from its configured index.- An attacker compromises an upstream release, transitive dependency, configured mirror, or package-resolution environment.
- The malicious package artifact is downloaded and installed without hash verification.
- Package-controlled installation or imported runtime code executes with the installing user's privileges.
Impact Assessment
Successful exploitation could provide arbitrary code execution in the Python installation context. Depending on the agent's operating privileges, this could expose local files, environment variables, Google API credentials, and other credentials available to the process. It could also permit modification of files writable by the user and unauthorized ...[truncated 32 chars]
- A user or agent follows the dependency installation guidance in
- Remediation
View remediation
Remediation Suggestions
- Pin every direct and transitive dependency to a reviewed version.
- Maintain a lockfile or hash-validated requirements file.
- Install with hash enforcement, such as
pip install --require-hashes -r requirements.txt. - Explicitly use an approved HTTPS package index and prevent fallback to untrusted mirrors.
- Review package provenance and vulnerability advisories before updating.
- Run dependency installation and the resulting search client in an isolated, least-privileged environment.
- Avoid instructing an agent to install packages automatically; require explicit user approval for environment changes.
