T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:4
- Finding
- Unpinned ByteRover CLI Dependency Creates a Supply-Chain Risk## Vulnerability Details **File Location**: `SKILL.md`, line 4 **Vulnerability Type**: Unpinned third-party executable dependency **Risk Level**: Medium **Vulnerable Code Snippet**: ```yaml metadata: {"moltbot":{"emoji":"🧠","requires":{"bins":["brv"]},"install":[{"id":"npm","kind":"node","package":"@byterover/cli","bins":["brv"],"label":"Install ByteRover CLI (npm)"}]}} ``` ### Technical Analysis The installation metadata specifies `@byterover/cli` without an exact version or integrity constraint. Consequently, dependency resolution may install whichever package version is current when installation occurs rather than the version reviewed when this Skill was published. npm packages can execute code through lifecycle scripts and installed command-line binaries. If the upstream package, maintainer account, or package-distribution channel is compromised, a malicious future release could execute under the privileges of the process installing or invoking the Skill. The Skill provides no lockfile, checksum, signature requirement, or other mechanism for verifying that the downloaded package matches an audited artifact. This finding does not establish that the current ByteRover package is malicious. It identifies an unsafe dependency-resolution practice that permits the effective executable implementation to change after review. ### Attack Path 1. An attacker compromises the upstream npm package, its publisher account, or the relevant package-distribution channel. 2. The attacker publishes a malicious release under the legitimate `@byterover/cli` package name. 3. The Skill installation mechanism resolves the unversioned dependency to that malicious release. 4. Malicious code runs during package installation or when the `brv` binary is invoked. 5. The code accesses data and resources available to the Agent or user account and may transmit data or alter local files. ### Impact Assessment Successful exploitation could execute ...[truncated 467 chars]
- Remediation
- ## Remediation Suggestions - Pin `@byterover/cli` to a specific, audited version instead of resolving the latest available release. - Enforce package integrity verification with a trusted lockfile and npm integrity hash. - Review package provenance, publisher identity, signatures, lifecycle scripts, and transitive dependencies before approval. - Disable npm lifecycle scripts during installation unless they are explicitly required and audited. - Install and execute the CLI in a sandbox with minimum filesystem, credential, and network access. - Establish a controlled dependency-update process in which new versions are reviewed and tested before the pin is changed.
