T08 · Insecure Dependencies
- Location
README.md:126- Finding
Unpinned Package Execution During Installation
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 126–134
Vulnerability Type: Mutable third-party package execution
Risk Level: MediumVulnerable Code
bash # Via ClawHub CLI npx clawhub@latest install autooptimise # Or manual git clone https://github.com/WealthVisionAI-Source/autooptimise \ ~/.openclaw/workspace/skills/autooptimiseTechnical Analysis
The recommended installation command invokes
npx clawhub@latest, which downloads and executes whichever release currently has the mutable npmlatesttag. Neither an exact package version nor an integrity value is specified. Consequently, the code executed during installation can differ from the code that was available when this project was audited.If the package publisher account, npm package, release process, or an associated dependency is compromised, an attacker could publish a malicious version and assign it to
latest. A user following the documented command would then retrieve and execute that version with the user's local permissions.The manual
git clonealternative is also not pinned to a reviewed commit or signed release tag. However, it retrieves repository content rather than directly invoking it through the displayed command, so it represents a weaker form of the same supply-chain concern.Attack Path
- An attacker compromises the
clawhubnpm publisher account, package release pipeline, or another mechanism capable of controlling the package'slatestrelease. - The attacker publishes a malicious package version or modifies the dependency chain used by that version.
- The malicious release is assigned to the mutable
latesttag. - A user follows the documented
npx clawhub@latest install autooptimiseinstruction. npxdownloads and runs the attacker-controlled package.- Malicious package initialization or CLI logic executes with the privileges of the invoking user.
Impact Assessment
Successful exploitation could permit arbi ...[truncated 633 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
-
Replace the mutable
latesttag with an exact, reviewed package version:bash npx clawhub@X.Y.Z install autooptimise -
Verify the selected package version and its dependency tree before documenting it as the recommended installer.
-
Publish checksums, provenance attestations, or signatures for official releases and instruct users how to verify them.
-
Where supported, execute the installer under a lockfile or other integrity-enforcing mechanism.
-
Pin the manual installation method to a reviewed commit or signed release tag:
bash git clone --branch vX.Y.Z --depth 1 \ https://github.com/WealthVisionAI-Source/autooptimise \ ~/.openclaw/workspace/skills/autooptimise -
Document verification of the checked-out commit or release signature before the installed Skill is loaded.
-
Run installation with the least-privileged account required and avoid executing package installers with administrative privileges.
-
