T08 · Insecure Dependencies
- Location
SKILL.md:36- Finding
Unpinned Third-Party CLI Installation and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 36-41
Vulnerability Type: Supply-chain risk from an unpinned executable dependency
Risk Level: MediumVulnerable Code
bash # 1. Install (see runcomfy-cli skill for details) npm i -g @runcomfy/cli # or: npx -y @runcomfy/cli --version # 2. Sign in runcomfy login # or in CI: export RUNCOMFY_TOKEN=<token>Technical Analysis
The skill instructs the agent to install or execute
@runcomfy/cliwithout specifying an exact reviewed version or verifying package integrity. Both commands resolve a mutable package version from the configured npm registry:npm i -g @runcomfy/cliinstalls the package globally and can execute npm lifecycle scripts with the privileges of the invoking user.npx -y @runcomfy/cli --versionautomatically downloads and executes the resolved package without interactive confirmation.- The subsequently executed CLI is given access to RunComfy authentication material through
runcomfy loginorRUNCOMFY_TOKEN.
Consequently, the effective executable may differ from the version originally reviewed. Registry compromise, maintainer-account compromise, malicious package publication, or unsafe registry configuration could cause attacker-controlled code to run locally.
The documented network transfer of user-provided portrait, video, and audio URLs to RunComfy is disclosed and necessary for the declared cloud lip-sync functionality. No instruction was found to enumerate unrelated credentials or upload arbitrary local files. However, the package contains only documentation and not the RunComfy CLI source, so claims concerning endpoint restrictions, token handling, and absence of telemetry cannot be independently verified from this project.
Attack Path
- An attacker compromises the npm package, a maintainer account, the package publication process, or the registry used by the environment. 2 ...[truncated 1224 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to an explicitly reviewed version, for example
@runcomfy/cli@X.Y.Z, rather than resolving the mutable latest release. - Prefer a project-local dependency governed by a committed lockfile instead of a global installation.
- Verify the expected npm registry and package integrity metadata before installation or execution.
- Do not use automatic
npx -yexecution for an uninstalled dependency. Require explicit user approval before downloading and running third-party code. - Review the selected release, including lifecycle scripts and transitive dependencies, before approving it for agent use.
- Run the CLI in a sandbox or restricted account with access only to the required input assets, output directory, network destinations, and narrowly scoped token.
- Document a tested version and controlled upgrade process so dependency changes receive security review before deployment.
- Avoid exposing
RUNCOMFY_TOKENto unrelated subprocesses and rotate the token if dependency compromise is suspected.
- Pin the CLI to an explicitly reviewed version, for example
