T08 · Insecure Dependencies
- Location
SKILL.md:59- Finding
Unpinned Package Execution in Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:59
Vulnerability Type: Unpinned third-party package execution and supply-chain exposure
Risk Level: MediumVulnerable Code
bash npx clawhub@latest install deepseekoracle/lygo-skill-gateTechnical Analysis
The documented installation command invokes
npxwith the mutableclawhub@latestpackage reference. If the package is not already available locally,npxmay retrieve it from the configured npm registry and execute its entry point. Thelatesttag can be reassigned to a different release after this Skill has been audited, so the code ultimately executed by users is not fixed to the reviewed project contents.The scanner itself does not use network APIs, launch subprocesses, retrieve remote payloads, or execute scanned code. The risk is confined to the separately documented installation workflow and requires a user or automation system to run the command. Nevertheless, executing a mutable remote dependency grants that dependency privileges beyond those needed by the local, standard-library-only scanner.
Attack Path
- An attacker compromises the publisher account, npm package, registry delivery path, or a dependency used by a future
clawhubrelease. - The attacker publishes a malicious version and causes the mutable
latesttag to resolve to it. - A user follows the installation command in
SKILL.md. npxdownloads and executes the attacker-controlled package or its installation lifecycle code.- The malicious code runs with the operating-system privileges and accessible environment of the user invoking the command.
Impact Assessment
Successful exploitation could permit arbitrary code execution with the installing user's privileges. Depending on the local environment, this could expose files, environment variables, credentials available to that account, and writable project or user directories. It could also allow additional payload retrieval or persi ...[truncated 283 chars]
- An attacker compromises the publisher account, npm package, registry delivery path, or a dependency used by a future
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable
@latestreference with an explicitly reviewed version:bash npx clawhub@<reviewed-version> install deepseekoracle/lygo-skill-gate - Publish and document the expected package digest or registry integrity value, and require verification before execution.
- Recommend a two-step installation process that downloads or installs the package without immediately executing it, allowing operators to inspect and verify the resolved artifact first.
- Use a lockfile or equivalent dependency-resolution record where the surrounding installation system supports it.
- Run the installer in a restricted environment with minimal filesystem access, no unnecessary credentials, and no elevated operating-system privileges.
- Update the documentation to state that the installation command executes third-party registry code and is outside the scanner's local-only runtime permission model.
- Replace the mutable
