T08 · Insecure Dependencies
Error
- Location
- SKILL.md:24
- Finding
- Unpinned Installation of a High-Privilege Third-Party Package<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:24-27` **Vulnerability Type**: Unpinned third-party dependency installation **Risk Level**: High ### Vulnerable Code ```bash # Install the Computer SDK (official CUA package) pip install cua-computer-sdk # Verify package (optional but recommended) pip show cua-computer-sdk # Check publisher and version ``` ### Technical Analysis The installation command retrieves and installs the latest available version of `cua-computer-sdk` without a version constraint, lockfile, package hash, or signature verification. The subsequent `pip show` command only displays installed package metadata; it does not establish publisher authenticity or verify package integrity. This dependency is especially sensitive because the installed server receives the ability to capture screenshots, generate keyboard and mouse input, launch applications, and open files under the current user's privileges. A compromised package release, package-index account, or transitive dependency could therefore execute arbitrary code with access to the user's desktop session. ### Attack Path 1. An attacker compromises the package, its publisher account, distribution process, or an unpinned transitive dependency. 2. A malicious release becomes the version selected by `pip install cua-computer-sdk`. 3. The user follows the documented installation command. 4. Malicious installation hooks, imported modules, or server startup code execute with the user's privileges. 5. The attacker can access user-readable data, monitor the desktop, manipulate applications, or execute additional user-level actions. ### Impact Assessment Successful exploitation provides code execution with the privileges of the user installing or running the package. The affected scope can include the user's files, environment variables, browser session, visible confidential information, clipboard contents, and applications accessible from the active desktop session. The do ...[truncated 234 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin the dependency to a specifically reviewed version: ```bash python -m pip install "cua-computer-sdk==<reviewed-version>" ``` 2. Publish a requirements or lock file containing cryptographic hashes, and install with hash enforcement: ```bash python -m pip install --require-hashes -r requirements.txt ``` 3. Verify the package artifact against a hash distributed through an independent trusted channel. 4. Review and pin all transitive dependencies rather than only the top-level package. 5. Install the server in a dedicated virtual environment or isolated desktop environment. 6. Document the expected publisher, package index, version, and artifact hash. Do not describe `pip show` as an integrity check. 7. Periodically review pinned versions for known vulnerabilities before updating them. ]]>
