T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:25
- Finding
- Unpinned Third-Party Package Installation and Execution## Vulnerability Details **File Location**: `SKILL.md:25` **Vulnerability Type**: Unpinned third-party dependency **Risk Level**: Medium ### Vulnerable Code ```text - `pip install comfy-batch` ``` ### Technical Analysis The skill instructs users to install `comfy-batch` from the Python Package Index without specifying an exact version, verifying cryptographic hashes, or using a reviewed lockfile. The installed package is then imported and executed by the documented workflow. Because package installation and execution occur with the user's privileges, a compromised or unexpectedly changed release could execute arbitrary installation hooks or runtime code. The referenced GitHub repository does not cryptographically bind the reviewed source to the package artifact retrieved by `pip`. No evidence establishes that the current dependency is malicious. The risk arises from the mutable, unverified supply-chain boundary. ### Attack Path 1. An attacker compromises, replaces, or gains publishing access to the `comfy-batch` distribution. 2. A user follows the skill instructions and runs `pip install comfy-batch`. 3. `pip` retrieves the attacker-controlled release without a version or hash constraint. 4. Malicious installation logic may execute during installation. 5. The user subsequently imports `ZImage` from the package, causing attacker-controlled runtime code to execute. ### Impact Assessment Successful exploitation would provide code execution under the account running `pip` or the documented Python workflow. The accessible scope could include files, environment variables, credentials, and local services available to that account, including the local ComfyUI environment. The repository itself contains no privilege-escalation mechanism, so obtained privileges would ordinarily remain limited to those of the invoking user.
- Remediation
- ## Remediation Suggestions - Pin the dependency to a reviewed exact version rather than installing the latest available release. - Supply a lockfile or requirements file containing cryptographic hashes and require hash verification during installation. - Verify the package publisher and ensure the published artifact corresponds to reviewed source at a specific signed tag or commit. - Perform installation and execution inside a dedicated virtual environment or container with minimal filesystem and network permissions. - Document the expected package origin, version, and integrity digest. - Periodically audit dependency ownership, releases, transitive dependencies, and installation hooks.
