T08 · Insecure Dependencies
- Location
SKILL.md:20- Finding
Unpinned Package Execution in Documented Installation Command
- Content
View full analysis
Vulnerability Details
File Locations:
SKILL.md:20README.md:10
Vulnerability Type: Unpinned third-party package execution and supply-chain exposure
Risk Level: MediumVulnerable Code:
bash npx skills add prompt-security/clawsec --skill nanoclaw-traffic-guardian -a openclaw -yTechnical Analysis
The documented installation command invokes the
skillspackage throughnpxwithout specifying an exact audited version or package integrity value. If the package is not already available locally,npxmay retrieve and execute the version currently resolved by the configured npm registry.Consequently, the code executed at installation time can differ from the code reviewed when these instructions were published. The command also uses the non-interactive
-yoption, reducing the opportunity for the operator to review installation actions. AlthoughSKILL.mdseparately provides signed-manifest verification for standalone release artifacts, that verification procedure is not applied to this CLI installation path.This is a supply-chain weakness rather than evidence that the current
skillspackage is malicious.Attack Path
- An attacker compromises the npm package, its publisher account, the configured package registry, or another relevant distribution path.
- The attacker publishes or serves a malicious version under the package name resolved by
npx skills. - An operator follows the documented installation command.
npxdownloads the currently resolved package because no exact version or integrity constraint is specified.- The malicious package executes with the privileges of the user running the installation command.
- The package can modify files, access data available to that user, make network requests, or install altered Skill content.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the installing ...[truncated 522 chars]
- Remediation
View remediation
Remediation Suggestions
-
Pin the installer CLI to an exact audited version, for example:
bash npx --yes skills@EXACT_AUDITED_VERSION add prompt-security/clawsec --skill nanoclaw-traffic-guardian -a openclaw -
Publish and document the expected npm package publisher, package version, and integrity digest.
-
Prefer a lockfile-backed installation or a verified local installation of the CLI instead of downloading executable package code at invocation time.
-
Pin the Skill source to an immutable release tag or commit where supported.
-
Extend the signed release-manifest verification process to the CLI installation path, or instruct users to download and verify the release artifacts before installation.
-
Avoid non-interactive confirmation flags for security-sensitive installation steps unless the resolved package version and artifact integrity have already been verified.
-
Apply the corrected command consistently in both
SKILL.mdandREADME.md.
-
