T08 · Insecure Dependencies
- Location
SKILL.md:20- Finding
Execution of an Unpinned Package from a Mutable Release Tag
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 20
Vulnerability Type: Unpinned third-party package execution throughnpx
Risk Level: MediumVulnerable Code Snippet:
bash npx clawhub@latest install subagent-driven-developmentTechnical Analysis
The documented installation command instructs users to download and execute the npm package identified by the mutable
latesttag. Because neither an immutable package version nor an integrity value is specified, the code executed by this command can change after the skill has been reviewed.npxmay retrieve the selected package from the configured npm registry and execute its command with the privileges of the invoking user. The security of the installation process therefore depends on the package publisher account, registry configuration, package ownership, and whichever release currently resolves fromlatest. The supplied project does not provide a lockfile, checksum, signature, or other mechanism that binds installation to a reviewed artifact.No evidence establishes that the current package is malicious. The vulnerability is the unsafe, mutable supply-chain execution pattern.
Attack Path
- An attacker compromises the package publisher account, package ownership, registry resolution, or another relevant release mechanism.
- The attacker publishes a malicious package release and causes the
latesttag to resolve to it. - A user follows the installation command in
SKILL.md. npxdownloads and executes the attacker-controlled package.- The malicious package runs with the invoking user's privileges and can access resources available to that account.
Impact Assessment
Successful exploitation can provide arbitrary code execution under the account running the installation command. Depending on that account's privileges and environment, the payload could read or modify project files, access user-readable credentials ...[truncated 369 chars]
- Remediation
View remediation
Remediation Suggestions
-
Replace the mutable
latesttag with an explicitly reviewed and immutable package version, for example:bash npx clawhub@<reviewed-version> install subagent-driven-development -
Verify the package's expected registry, publisher, and ownership before installation.
-
Where supported, validate package provenance, signatures, or integrity hashes before execution.
-
Use a lockfile or equivalent dependency-pinning mechanism when integrating the package into a managed project.
-
Avoid running the installer with administrator or root privileges.
-
Execute installation in an isolated environment with no unnecessary credentials or sensitive host mounts.
-
Establish a controlled update process in which new versions are reviewed before the documented version is changed.
-
