T08 · Insecure Dependencies
- Location
README.md:8- Finding
Unpinned npm CLI Execution Creates a Supply-Chain Risk
- Content
View full analysis
Vulnerability Details
File Location:
README.md:8,README.md:24, andREADME.md:32
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumRelevant code snippets:
bash npx clawhub add tokflowbash npx clawhub loginbash npx clawhub publish integrations/openclaw-skill --slug tokflow --name "TokFlow" --version 0.5.0 --changelog "v0.5.0 提问方式监控与优化:提问轮次统计、四规则建议、节省预估、prompt-stats 命令"Technical Analysis
The documented
npx clawhubcommands do not specify a reviewed package version or integrity constraint. If the package is not already installed locally,npxcan retrieve and execute the package selected by the npm registry at invocation time.Consequently, the effective executable can change after this Skill has been reviewed. Compromise of the upstream package, maintainer account, package publication process, or registry resolution could cause users to execute attacker-controlled code. This is particularly sensitive for the
loginandpublishworkflows because they may run in an environment containing publishing credentials.No evidence shows that the current
clawhubpackage is malicious. The vulnerability is the mutable, unpinned execution method recommended by the documentation.Attack Path
- An attacker compromises the
clawhubnpm package, its maintainer account, or its publication pipeline. - The attacker publishes a malicious version under the expected package name.
- A user follows the README and invokes an unversioned
npx clawhubcommand. npxresolves and downloads the attacker-controlled version.- The package executes with the invoking user's privileges.
- Malicious package code accesses files, environment variables, authentication material, or publishing credentials available to that user.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the us ...[truncated 317 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to a reviewed version, for example
npx clawhub@<reviewed-version> .... - Record and verify package integrity through a lockfile or an equivalent trusted integrity mechanism.
- Prefer installing the reviewed CLI once and invoking the trusted local installation rather than allowing every command to perform mutable package resolution.
- Use restricted CI or publishing environments that expose only the minimum credentials required.
- Review package provenance and signatures before version upgrades.
- Avoid running installation or publishing commands with administrator privileges.
- Pin the CLI to a reviewed version, for example
