T08 · Insecure Dependencies
- Location
SKILL.md:17- Finding
Execution of an Unpinned Third-Party Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 17
Vulnerability Type: Supply-chain risk from mutable dependency execution
Risk Level: MediumVulnerable Code
bash npx -y @tencent-weixin/openclaw-weixin-cli@latest installTechnical Analysis
The setup workflow directs the user to download and immediately execute the
@latestversion of a third-party npm package. The@latesttag is mutable, so the code executed in the future may differ from the version available when this Skill was audited. The-yoption also suppresses the normal installation confirmation.The package's implementation, version lock, and integrity metadata are not included in the reviewed project. Consequently, this repository cannot constrain or verify the effective code executed by the command. According to the Skill's documentation, that code is expected to detect the local OpenClaw installation, install and enable a plugin, modify OpenClaw configuration, and initiate an account authorization flow.
This finding identifies an unsafe dependency-execution pattern; it does not establish that the named package is currently malicious.
Attack Path
- An attacker compromises the publisher account, package distribution process, npm registry path, or a future release associated with the package's
latesttag. - The attacker publishes a modified release and causes
@latestto resolve to it. - A user follows the Skill and runs the documented
npx -ycommand. npxdownloads and executes the attacker-controlled package without an interactive confirmation prompt.- The package runs with the invoking user's privileges and can interact with local files, OpenClaw configuration, plugin state, and other resources accessible to that user.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the user running the installation command. The reachable scope may include:
- Reading or modifying files ac ...[truncated 542 chars]
- An attacker compromises the publisher account, package distribution process, npm registry path, or a future release associated with the package's
- Remediation
View remediation
Remediation Suggestions
-
Replace
@latestwith an exact, reviewed package version:bash npx @tencent-weixin/openclaw-weixin-cli@X.Y.Z install -
Do not use
-yby default. Preserve the confirmation step so users can inspect the package name and resolved version before execution. -
Document the expected publisher, registry, package version, and cryptographic integrity information. Verify package provenance through npm provenance attestations or an equivalent trusted mechanism.
-
Review each package update before changing the pinned version. Document relevant security review results and expected configuration or filesystem changes.
-
Where practical, use lockfile-backed installation or distribute auditable, version-locked source rather than relying on a mutable registry tag.
-
Recommend running the installer with the least-privileged account necessary and in a constrained environment. Users should back up OpenClaw configuration before installation and inspect configuration changes afterward.
-
Consider separating package download from execution so the resolved artifact can be inspected and verified before it runs.
-
