T08 · Insecure Dependencies
- Location
SKILL.md:44- Finding
Unpinned Third-Party Installer Execution via npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 44
Vulnerability Type: Supply-chain risk caused by a mutable dependency reference
Risk Level: MediumVulnerable Code
markdown **Install:** `npx clawhub@latest install deepseekoracle/lygo-alignment-badge`Technical Analysis
The installation command invokes
npxwith the mutablelatesttag. If the requested package is not already available locally,npxcan retrieve and execute it from the configured npm registry. Because neither an exact version nor an integrity digest is specified, the code executed by future users may differ from the version that was originally reviewed.This creates a supply-chain trust boundary outside the audited project. Compromise of the package publisher, registry account, release pipeline, package dependencies, or configured registry could cause the command to execute attacker-controlled code. The referenced installer and LYGO repository scripts were not included in this artifact, so their behavior could not be verified during this audit.
Attack Path
- An attacker compromises the
clawhubpackage publisher, its release pipeline, or an npm registry used by the victim. - The attacker publishes a malicious release that becomes the package's
latestversion. - A user follows the installation instruction in
SKILL.md. npxdownloads and executes the mutable package release.- The malicious package runs with the permissions and environment of the invoking user.
Impact Assessment
Successful exploitation could allow arbitrary code execution under the invoking user's account. Depending on that user's privileges and environment, the payload could access readable files, environment variables, source repositories, credentials, and network resources, or modify user-writable files. This finding does not establish that the current package is malicious; it identifies the risk created by executing an externally controlled, unpinned release ...[truncated 1 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewed package version. - Verify the package's provenance, publisher identity, release signatures, and registry integrity before execution.
- Where supported, validate the downloaded artifact against a trusted cryptographic digest.
- Use a lockfile or an equivalent reproducible dependency mechanism for transitive dependencies.
- Test installation in a sandboxed, least-privileged environment without unnecessary secrets or host access.
- Establish a controlled update process in which new versions are reviewed and approved before changing the pinned version.
- Consider installing the verified package separately and invoking the known local binary rather than allowing
npxto resolve a mutable version at execution time.
- Replace
