T08 · Insecure Dependencies
- Location
SKILL.md:18- Finding
Unpinned npm Package Execution Through a Mutable Version Tag
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:18-22
Vulnerability Type: Supply-chain risk caused by executing an unpinned package
Risk Level: HighVulnerable Code
markdown ## Installation ```bash npx clawhub@latest install athena-protocoltext ### Technical Analysis The installation instructions invoke `npx` with the mutable `@latest` tag. Depending on the local npm cache and configuration, `npx` can retrieve and execute the package directly from a configured npm registry. The package version and effective executable code are therefore not fixed to the version that was reviewed during this audit. If the `clawhub` publisher account, npm package, registry configuration, or a transitive dependency is compromised, a later release can introduce arbitrary behavior without requiring any change to this repository. Package lifecycle scripts and the invoked CLI run with the permissions of the user executing the installation command. The audited repository does not itself contain the external package implementation, so the behavior executed by this command cannot be verified from the supplied files. ### Attack Path 1. An attacker compromises the `clawhub` publishing account, its release process, or a dependency included in a future release. 2. The attacker publishes a malicious package version that becomes the version referenced by `@latest`. 3. A user follows the documented installation command. 4. `npx` downloads and executes the attacker-controlled release. 5. The malicious package runs with the installing user's permissions and can access resources available to that account. ### Impact Assessment Successful exploitation can provide arbitrary code execution under the installing user's account. Depending on that account's privileges and environment, the payload could read or modify workspace files, access user-readable credentials and tokens, alter Agent configuration, install additional de ...[truncated 305 chars]- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewed package version, for example:bash npx clawhub@X.Y.Z install athena-protocol - Publish and verify the expected package integrity digest before execution.
- Document the trusted registry explicitly and warn users to inspect their npm registry configuration.
- Prefer downloading the package without execution, reviewing its contents and lifecycle scripts, and only then running the audited artifact.
- Use a lockfile or equivalent reproducible dependency manifest for any maintained installer.
- Run installation in a least-privileged, isolated environment without unnecessary credentials.
- Establish release signing and publisher-account protections, including multi-factor authentication and tightly controlled release automation.
- Replace
