T08 · Insecure Dependencies
- Location
RELEASE.md:68- Finding
Unpinned Remote Package Execution and Skill Installation
- Content
View full analysis
Vulnerability Details
File Location:
RELEASE.md:68-72
Vulnerability Type: Unpinned third-party package execution and mutable supply-chain installation
Risk Level: MediumComplete Code Snippet:
bash ### Method 2: Install from ClawHub ```bash npx clawhub install synapse-brain npx clawhub install synapse-code npx clawhub install synapse-wikitext ### Technical Analysis The documented installation commands invoke `clawhub` through `npx` without specifying an immutable package version, lockfile, integrity hash, signature, or verified publisher scope. `npx` may download and execute the package version resolved by the npm registry at installation time. The invoked CLI then installs additional remotely resolved skills by mutable names. Consequently, the effective code executed by users can differ from the code reviewed in this audit. This creates a supply-chain trust boundary in which compromise, publisher-account takeover, package substitution, or a malicious future release of either the CLI or a named skill could introduce arbitrary behavior. The repository itself does not contain a demonstrated malicious payload, and its executable scripts do not perform remote retrieval. The risk arises specifically when users follow these remote installation instructions. ### Attack Path 1. An attacker compromises or takes control of the npm package resolved as `clawhub`, its publisher account, or the distribution source for one of the named skills. 2. The attacker publishes a malicious version under the same mutable package or skill name. 3. A user follows the instructions in `RELEASE.md` and runs an unpinned `npx clawhub install ...` command. 4. `npx` resolves, downloads, and executes the package available at that time. 5. The compromised CLI or remote skill installer executes malicious installation logic with the invoking user's permissions. 6. The malicious package can access or modify resources a ...[truncated 612 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the
clawhubCLI to a reviewed, immutable version, for example through an exact version rather than a floating package name. - Pin every installed skill to an explicit reviewed version or, preferably, an immutable content digest or commit.
- Publish and verify cryptographic checksums or signatures before installation.
- Use a verified publisher scope and clearly document the authoritative registry and repository identities.
- Use a lockfile where npm-based tooling is required, and enforce integrity metadata during installation.
- Avoid direct execution through unpinned
npx; install a verified version first and invoke that known local binary. - Run installation in a restricted environment with least privilege and review downloaded installation content before execution.
- Standardize the repository identity across documentation.
README.mdreferencesgithub.com/ankechenlab/synapse-wiki, whileSKILL.mdand release material referencegithub.com/ankechenlab-node/synapse-wiki. Users should be directed to one verified authoritative source.
- Pin the
