T08 · Insecure Dependencies
- Location
SKILL.md:20- Finding
Unpinned Third-Party CLI Is Downloaded and Executed During Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 20
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: MediumComplete Code Snippet:
bash npx skills add prompt-security/clawsec --skill openclaw-traffic-guardian -a openclaw -yTechnical Analysis
The recommended installation command invokes the generic
skillsnpm package throughnpxwithout specifying an exact package version or verifying its integrity. If the package is not already available locally,npxmay retrieve its currently resolved version from the configured npm registry and execute it immediately.Because the dependency is unpinned, the code executed by this command may change after this Skill has been reviewed. The
-yoption also suppresses the normal installation confirmation. The signed-release verification procedure elsewhere inSKILL.mdauthenticates separately downloaded release artifacts, but it does not authenticate the npm CLI executed by this command.This creates a supply-chain trust gap rather than evidence that the current package is malicious.
Attack Path
- An attacker compromises the npm account, package publication process, registry response, or a transitive dependency associated with the resolved
skillspackage. - The attacker publishes or causes resolution of a modified package version containing malicious lifecycle or CLI code.
- An operator follows the documented installation command.
npxdownloads the unpinned package and executes it with confirmation automatically accepted by-y.- The malicious code runs with the privileges and environment access of the operator who initiated installation.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the installing user's account. Depending on that user's privileges and environment, the malicious package could read accessible credentials and files, alter local configurat ...[truncated 260 chars]
- An attacker compromises the npm account, package publication process, registry response, or a transitive dependency associated with the resolved
- Remediation
View remediation
Remediation Suggestions
-
Pin the CLI to a reviewed exact version, for example:
bash npx skills@<reviewed-exact-version> add prompt-security/clawsec \ --skill openclaw-traffic-guardian \ -a openclaw -
Remove
-yso operators can review the package installation prompt. -
Prefer an installation mechanism backed by a lockfile and npm integrity metadata.
-
Document how operators can verify the resolved CLI package name, version, publisher, and integrity before execution.
-
Prefer the existing signed-release workflow for security-sensitive or standalone installations.
-
Ensure that CI periodically audits the pinned CLI and its transitive dependency tree before updating the documented version.
-
