T08 · Insecure Dependencies
- Location
README.md:47- Finding
Mutable Molthub Package Is Downloaded and Executed Using the Latest Tag
- Content
View full analysis
Vulnerability Details
File Location:
README.md:45-48;INSTALL.md:50-54
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumVulnerable Code
README.md:45-48:bash # Install via Molthub npx molthub@latest install clawingtrapINSTALL.md:50-54:bash #### Option A: Install from Molthub (Recommended) ```bash npx molthub@latest install clawingtraptext ### Technical Analysis The recommended installation command invokes `npx` with the mutable `@latest` tag. This causes the package manager to resolve, download, and execute whichever version of `molthub` is currently designated as latest rather than a version reviewed during this audit. The effective installer can consequently change without any modification to this repository. If the package, package publisher account, registry resolution path, or transitive dependency chain is compromised, following the documented command could execute attacker-controlled code. There is no evidence in the audited files that the current Molthub package is malicious. The vulnerability is the absence of version pinning and integrity verification at a code-execution boundary. ### Attack Path 1. An attacker compromises the Molthub package publisher, registry entry, or relevant dependency chain. 2. The attacker publishes a malicious release and makes it resolve through the `latest` tag. 3. A user follows the recommended `npx molthub@latest install clawingtrap` command. 4. `npx` downloads and executes the changed package. 5. The malicious installer runs with the permissions of the invoking user and can access resources available to that account. ### Impact Assessment Successful exploitation could provide arbitrary code execution with the installing user's privileges. Depending on the user's environment, this could permit modification of files in the user's home directory, tampering with installed OpenClaw skills, access ...[truncated 310 chars]- Remediation
View remediation
Remediation Suggestions
- Replace
molthub@latestwith an exact, reviewed package version. - Use a lockfile or installation mechanism that verifies registry integrity hashes.
- Publish the expected package version and checksum in the installation documentation.
- Prefer signed releases and verify the publisher signature before execution.
- Review dependency updates before changing the pinned version.
- Avoid presenting mutable package execution as the recommended installation method unless it is isolated in a restricted environment.
- Replace
