T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:263
- Finding
- Unpinned Dependencies Installed into the System Python Environment<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 263-264 and 699-700 **Vulnerability Type**: Unsafe third-party dependency installation **Risk Level**: Medium ### Vulnerable Code ```bash pip install elevenlabs --break-system-packages pip install requests --break-system-packages ``` The setup checklist also instructs: ```text [ ] pip install elevenlabs --break-system-packages [ ] pip install twilio --break-system-packages (optional) ``` ### Technical Analysis The installation instructions retrieve packages without pinning versions or verifying package hashes. A newly released, compromised, or otherwise malicious dependency version could therefore be installed automatically. Python packages may execute code during installation and subsequently run with all privileges granted to the Python process. The `--break-system-packages` option also bypasses protections intended to prevent `pip` from modifying a system-managed Python environment. This expands the potential effect from the skill's isolated dependencies to other applications using the same interpreter. The package names appear consistent with the declared functionality, and no typosquatted package was identified. The risk arises from the unpinned and system-wide installation process rather than evidence that the named packages are currently malicious. ### Attack Path 1. An attacker compromises the upstream package, its maintainer account, or a transitive dependency. 2. The attacker publishes a malicious version under a package name used by the installation instructions. 3. A user follows the skill instructions and runs the unpinned `pip install` command. 4. `pip` downloads and installs the attacker-controlled version. 5. Installation-time or import-time code executes with the privileges of the user running setup. 6. Because installation targets the system-managed environment, the malicious component may affect this skill and other Python applications using that environment. ...[truncated 370 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Create a dedicated virtual environment rather than modifying the system Python installation. 2. Pin every direct and transitive dependency to a reviewed version. 3. Use a lock file or requirements file containing cryptographic hashes, for example with `pip install --require-hashes`. 4. Remove `--break-system-packages` from the instructions. 5. Review dependency release history and vulnerability advisories before updating. 6. Run dependency installation and the skill itself as an unprivileged user. 7. Consider building dependencies into a reviewed, reproducible container image. ]]>
