T08 · Insecure Dependencies
- Location
SKILL.md:15- Finding
Unpinned Package Execution Through npx Installation Command
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:15
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code Snippet:
yaml install: "npx clawhub install physical-de-escalation"Technical Analysis
The installation command invokes
clawhubthroughnpxwithout specifying an exact package version or integrity hash. If the package is unavailable locally,npxmay resolve and execute a package from the configured npm registry. The effective code executed during installation can therefore change after this Skill has been reviewed.The project contains no lockfile, package manifest, integrity constraint, or vendored installer that would bind this command to an audited release. This creates a supply-chain risk if the upstream package, publisher account, registry resolution, or a future package release is compromised.
Attack Path
- An attacker compromises the upstream
clawhubpackage, its publisher account, or the relevant package-resolution infrastructure. - The attacker publishes a malicious release that is selected by the unpinned command.
- A user follows the installation metadata and runs
npx clawhub install physical-de-escalation. npxresolves and executes the malicious package release.- The package runs with the operating-system privileges of the user performing the installation.
Impact Assessment
Successful exploitation could permit arbitrary code execution under the installing user's account. Depending on that account's privileges and environment, this could expose accessible files, credentials, environment variables, project data, or network resources. If installation is performed by an administrative or highly privileged account, the resulting impact could extend to system-wide modification.
No evidence indicates that the currently resolved package is malicious; the vulnerability is the absence of version and integrity cont ...[truncated 45 chars]
- An attacker compromises the upstream
- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto a specific, reviewed version rather than allowing dynamic resolution. - Use a trusted registry and verify the publisher and package provenance.
- Validate the package with a cryptographic integrity hash or signed provenance where supported.
- Maintain a lockfile or equivalent immutable dependency record.
- Review the pinned release before upgrading and perform upgrades through a controlled process.
- Run installation in a sandbox or least-privileged environment rather than under an administrative account.
- Pin
