T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 13
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumVulnerable code snippet:
bash npx clawhub@latest install upwork-automation-gigTechnical Analysis
The installation instructions invoke the mutable
latestrelease of the third-partyclawhubpackage throughnpx. If the requested package is not already available locally,npxcan retrieve it from the configured package registry and execute its CLI code under the current user's account.Because
latestis a mutable distribution tag, the code executed by this command can change after the skill has been reviewed. The project does not provide an exact dependency version, package integrity hash, lockfile, vendored source, or other mechanism for verifying the code that will be executed. The implementation of both the retrieved CLI and the installed skill is outside the audited project, which contains onlySKILL.md.This finding does not establish that the current
clawhubpackage is malicious. The vulnerability is the trust placed in mutable, externally supplied executable content without version or integrity controls.Attack Path
- An attacker compromises the package publisher, registry account, release process, or another relevant supply-chain component.
- The attacker publishes a malicious release and assigns it to the
latestdistribution tag. - A user follows the documented installation command.
npxresolves and downloads the attacker-controlled release from the configured registry.- The package CLI or applicable lifecycle behavior executes with the privileges and environment of the invoking user.
- The malicious release can access resources available to that user, subject to operating-system and sandbox restrictions.
Impact Assessment
Successful exploitation could permit arbitrary code execution with the privileges of the user runnin ...[truncated 515 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable
latesttag with an exact, reviewed package version, for exampleclawhub@X.Y.Z. - Verify the package artifact against a trusted integrity digest or signed provenance before execution.
- Document the expected registry and reject unexpected registry overrides or mirrors.
- Review the resolved package, transitive dependencies, lifecycle scripts, and CLI entry point before approving an upgrade.
- Run installation in a sandbox or least-privileged environment without unnecessary credentials, sensitive environment variables, or access to unrelated files.
- Establish an explicit update process so new versions are reviewed and pinned rather than adopted automatically through a mutable tag.
- Replace the mutable
