T08 · Insecure Dependencies
Note
- Location
- SKILL.md:40
- Finding
- Unpinned MediaPipe Python Dependency## Vulnerability Details **File Location**: `SKILL.md:40` **Vulnerability Type**: Unpinned third-party dependency installation **Risk Level**: Low ### Vulnerable Code ```bash pip install mediapipe ``` ### Technical Analysis The installation command does not pin `mediapipe` to a reviewed version and does not verify the package with a cryptographic hash. Consequently, the installed artifact depends on the package registry state at installation time. A future compromised, malicious, or unexpectedly incompatible release could therefore be installed without further review. Exploitation requires control over or compromise of the legitimate package distribution channel, publisher account, dependency chain, or selected release. There is no evidence that the named package is currently malicious. ### Attack Path 1. An attacker compromises the package publisher, registry distribution path, or a transitive dependency. 2. The attacker publishes a malicious release that satisfies the unbounded installation request. 3. A user follows the Skill instruction and runs `pip install mediapipe`. 4. pip downloads and installs the attacker-controlled artifact. 5. Malicious installation or runtime behavior executes with the permissions of the user or environment performing the installation. ### Impact Assessment Successful exploitation could execute code with the invoking user's privileges. Depending on that user's access, the payload could read or modify project files, access environment variables and user-readable credentials, tamper with the Python environment, or affect applications importing the package. The instruction does not request elevated privileges, so it does not independently provide administrator or root access.
- Remediation
- ## Remediation Suggestions - Pin the dependency to an explicitly reviewed version, for example `mediapipe==0.10.35`. - Use a lockfile or fully hashed requirements file generated from reviewed artifacts. - Install with hash verification, such as `pip install --require-hashes -r requirements.txt`. - Configure an approved package index and prevent unintended fallback to untrusted registries. - Run dependency vulnerability and provenance checks before updating the pinned version. - Perform installation in an isolated virtual environment without elevated privileges.
