T08 · Insecure Dependencies
- Location
SKILL.md:16- Finding
Mutable ClawHub Package Executed Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:16-18
Vulnerability Type: Unpinned third-party installation dependency
Risk Level: MediumVulnerable Code:
bash npx clawhub@latest install production-readinessTechnical Analysis
The installation procedure instructs users to execute the mutable
latestrelease of the third-partyclawhubpackage throughnpx. Because@latestis controlled by the package registry and can resolve to different code over time, the code executed during installation is not the same immutable artifact that was available when this skill was audited.npxmay download and execute the selected package immediately. Consequently, compromise of the package publisher, registry account, release process, or package itself could cause arbitrary attacker-controlled code to run during installation. No exact package version, integrity hash, lockfile, or other artifact-verification mechanism is specified.Attack Path
- An attacker compromises the
clawhubpackage, its publisher account, or its release pipeline. - The attacker publishes a malicious version and assigns or causes the registry to assign the
latestdistribution tag to it. - A user follows the documented installation command.
npxretrieves the package currently referenced byclawhub@latest.- The malicious package CLI or applicable lifecycle behavior executes with the privileges of the user running the command.
- The payload could access files, credentials, environment variables, and network resources available to that user.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the installing user's account. The accessible scope may include the current project, user-owned files, developer credentials, environment variables, SSH configuration, package registry tokens, and reachable internal services. If the command is run from a privileged account or CI/CD ...[truncated 301 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an explicitly reviewed, exact package version. - Verify the resolved package and its transitive dependencies before recommending execution.
- Publish and validate a cryptographic integrity hash or signed provenance for the approved artifact.
- Document a secure installation process that prevents silent upgrades.
- Prefer a lockfile-backed installation workflow where applicable.
- Execute installation with the least-privileged account possible and avoid running it with administrator or root privileges.
- Establish a controlled update process in which each new package version is reviewed before the documented pin is changed.
- Replace
