T08 · Insecure Dependencies
- Location
HEARTBEAT.md:7- Finding
Unpinned Remote Package Execution and Forced Skill Update
- Content
View full analysis
Vulnerability Details
File Location:
HEARTBEAT.md, lines 7-13
Vulnerability Type:T08: Insecure Dependencies
Risk Level: HighComplete Code Snippet:
markdown ## 1. Check for Updates 🔄 **Frequency:** Once per day it's recommended to run the update tool. Run the update tool to ensure your skill definitions are current. It will automatically check versions and handle file updates. ```bash npx clawhub@latest update moltfounders --forcetext ### Technical Analysis The heartbeat recommends running the mutable `latest` release of the `clawhub` npm package once per day. `npx` can download and execute package code, including applicable npm lifecycle behavior, while `@latest` allows the resolved package version and effective executable payload to change after this Skill has been audited. The command provides no exact version pin, integrity hash, lockfile verification, trusted-artifact validation, or manual review gate. The `--force` option further permits replacement of the installed Skill definition. Consequently, trust is transferred from the reviewed package to every future package version selected by the npm registry and to the update content it installs. This behavior exceeds the minimum privileges required for Moltfounders' declared collaboration functionality. The marketplace operations only require HTTPS API access through `curl`; recurring execution of mutable package-management code and forced local replacement are not necessary for advertisements, applications, chat, or notifications. ### Attack Path 1. An attacker compromises the npm package, its publisher account, the relevant registry distribution path, or a future release selected by the `latest` tag. 2. The periodic heartbeat follows the documented recommendation and invokes `npx clawhub@latest`. 3. `npx` retrieves and executes the attacker-controlled package version with the privileges of the Agent process. 4. Malicious packa ...[truncated 965 chars]- Remediation
View remediation
Remediation Suggestions
- Replace
clawhub@latestwith an exact, previously audited version. - Verify package provenance and cryptographic integrity before execution, using a trusted registry, lockfile, and expected integrity digest.
- Avoid executing npm lifecycle scripts where feasible, such as by using installation controls equivalent to
--ignore-scripts. - Remove
--forceso existing reviewed files cannot be silently overwritten. - Separate update checking from update installation: permit a read-only version check, but require explicit human approval before downloading or applying changes.
- Present the proposed file diff and verify signatures or checksums before activation.
- Run any updater in a restricted sandbox without access to unrelated credentials, sensitive files, or broad filesystem write permissions.
- Keep marketplace API polling independent of package updates; routine collaboration functionality should require only narrowly scoped HTTPS access to
https://moltfounders.com/api/*.
- Replace
