T08 · Insecure Dependencies
- Location
SKILL.md:16- Finding
Unpinned ClawHub Package Execution via npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:16-18andREADME.md:31-33
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: MediumVulnerable Code
SKILL.md:16-18:bash npx clawhub@latest install auto-contextThe same command is documented in
README.md:31-33:bash npx clawhub@latest install auto-contextTechnical Analysis
The installation instructions direct users to execute
clawhub@latestthroughnpx. Thelatesttag is mutable and does not identify an immutable, previously reviewed package version. When the command is run,npxmay download and immediately execute whichever package release the registry resolves under that tag at that time.Consequently, the effective executable can change after this skill has been audited. Security depends on the continued integrity of the npm account, registry metadata, package publication process, transitive dependencies, and every future release selected by
latest.This is a supply-chain weakness rather than evidence that the current ClawHub package is malicious.
Attack Path
- An attacker compromises the
clawhubpackage publisher, publication workflow, registry entry, or a dependency used by a future release. - The attacker publishes a malicious release and causes the mutable
latesttag to resolve to it. - A user follows the documented installation command.
npxretrieves and executes the attacker-controlled package without an immutable version or integrity value being specified by the project.- Malicious CLI, lifecycle, or dependency code runs under the account invoking the command.
Impact Assessment
Exploited code would generally inherit the installing user's privileges and environment. Depending on those privileges, it could read or alter user-accessible files, access credentials exposed to the process, modify development configuration, install additional software, or ...[truncated 204 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an explicitly reviewed, immutable package version. - Commit and enforce a lockfile where the installation workflow supports one.
- Verify package provenance, signatures, and registry integrity metadata before execution.
- Review the selected package version and its transitive dependency tree before recommending it.
- Run installation with the least-privileged account possible and avoid elevated shells.
- In CI, use an allowlisted internal registry or verified artifact mirror and restrict network, filesystem, and secret access during installation.
- Keep
SKILL.mdandREADME.mdsynchronized so both use the same pinned and reviewed command.
- Replace
