T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:63
- Finding
- Unpinned Third-Party Dependencies Installed Without Integrity Verification## Vulnerability Details **File Location**: `SKILL.md`, lines 63–67 **Vulnerability Type**: Supply-chain risk from mutable, unverified dependencies **Risk Level**: Medium **Complete Code Snippet**: ```markdown ## Installation ```bash pip install pandas numpy scipy plotly dash ``` ``` ### Technical Analysis The documented installation command installs five third-party packages without version constraints, cryptographic hashes, or a lock file. Consequently, package resolution depends on the mutable state of the configured Python package index at installation time. Transitive dependencies are likewise neither pinned nor integrity-checked. Python package installation can execute package-controlled build or installation logic. If a listed package, one of its transitive dependencies, or the configured package index is compromised, following this command could execute attacker-controlled code. Installing unconstrained versions can also introduce future vulnerabilities or incompatible behavior that was not present during this audit. No evidence indicates that the named packages are currently malicious. The confirmed issue is the absence of dependency pinning and integrity controls, not the presence of an identified malicious dependency. ### Attack Path 1. An attacker compromises a listed package, a transitive dependency, a release artifact, or the package index configured in the user's pip environment. 2. The attacker publishes or substitutes a malicious version that satisfies the unconstrained dependency request. 3. A user follows the installation instructions and runs `pip install pandas numpy scipy plotly dash`. 4. Pip resolves and downloads the attacker-controlled artifact because no reviewed versions or hashes are enforced. 5. Malicious build, installation, or import-time code executes with the privileges of the user or automation account running pip. ### Impact Assessment Successful exploitation could provide arbitrary code execution with the permissio ...[truncated 633 chars]
- Remediation
- ## Remediation Suggestions 1. Create a dependency manifest that pins every direct dependency to a reviewed version. 2. Generate and commit a lock file that records all transitive dependency versions. 3. Record cryptographic hashes for approved distributions and install with hash enforcement, for example: ```bash python -m pip install --require-hashes -r requirements.txt ``` 4. Generate hashes from artifacts obtained through a trusted package index and review dependency changes before updating the lock file. 5. Use a controlled internal package mirror or explicitly trusted index in production and CI/CD environments. 6. Run installation in an isolated virtual environment or container under a non-privileged account. 7. Add automated dependency vulnerability and provenance scanning to CI. 8. Update `SKILL.md` so its installation instructions use the reviewed, hash-locked dependency file rather than unconstrained package names.
