Back to skill

Security audit

Find Skills Skill

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward guide for finding OpenClaw skills, with a notable but disclosed supply-chain caution around unpinned npx examples.

Use this skill as a discovery checklist, but avoid copy-pasting unpinned npx commands in sensitive environments. Prefer a reviewed pinned version of the clawhub CLI or the listed website and GitHub search options when possible.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:35
Finding
Unpinned npm Package Execution Through npx<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 35, 38, 62, 65, 68, 74, 77, 80, 86, and 89 **Vulnerability Type**: Unpinned third-party package execution **Risk Level**: Medium ### Vulnerable Code ```bash # SKILL.md:35 npx clawhub search "keyword" # SKILL.md:38 npx clawhub browse # SKILL.md:62 npx clawhub search "web search" # SKILL.md:65 npx clawhub search "weather" # SKILL.md:68 npx clawhub search "document" # SKILL.md:74 npx clawhub search "tavily" # SKILL.md:77 npx clawhub search "github" # SKILL.md:80 npx clawhub search "calendar" # SKILL.md:86 npx clawhub search --sort installs # SKILL.md:89 npx clawhub search --sort stars ``` ### Technical Analysis The documented commands invoke the bare `clawhub` npm package through `npx` without specifying a reviewed version, requiring a preinstalled copy, or validating package integrity. When the package is not already available locally, `npx` may resolve, download, and execute package-controlled code from the configured npm registry. Consequently, the code executed by these instructions can change after the skill has been reviewed. An upstream package compromise, malicious package replacement, registry or configuration manipulation, or an unexpectedly unsafe new release could cause arbitrary package code to run. npm lifecycle scripts and the CLI entry point may execute with the permissions of the user running `npx`. The audit did not identify evidence that the current `clawhub` package is malicious. The vulnerability is the unsafe and non-reproducible dependency execution pattern. ### Attack Path 1. A user or agent follows one of the documented `npx clawhub` examples. 2. No verified local installation of `clawhub` is available, or normal package resolution otherwise selects a remote package. 3. `npx` resolves an unpinned package version using the configured npm registry. 4. An attacker-controlled or compromised package version is downloaded. 5. Package lifecycle logic or its CL ...[truncated 1108 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Pin every invocation to a specifically reviewed package version: ```bash npx --yes clawhub@<reviewed-version> search "keyword" ``` 2. Prefer installing the reviewed version through a controlled dependency manifest and lockfile, then invoke the locked local binary: ```bash npm install --save-exact clawhub@<reviewed-version> npx --no-install clawhub search "keyword" ``` 3. Document the authoritative package name, publisher, registry, and expected version so users can detect typosquatting or registry substitution. 4. Commit and verify an npm lockfile where the project model permits it. Use lockfile integrity metadata and a trusted registry. 5. Review package source, lifecycle scripts, ownership changes, and published artifacts before approving upgrades. Apply upgrades through an explicit review process rather than accepting the latest release automatically. 6. Run the CLI in a least-privilege, isolated environment without unrelated credentials or sensitive filesystem access, especially when evaluating a new version. 7. Consider disabling lifecycle scripts during installation where compatible, and verify package provenance or signatures when supported by the package distribution workflow. ]]>
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (10)

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding
The skill instructs users to run `npx clawhub search "keyword"` without pinning a specific package version. `npx` may fetch and execute the latest published package, so a compromised maintainer account, malicious update, or dependency hijack could lead to arbitrary code execution on the user's machine. Because this is a discovery skill that explicitly recommends repeated CLI execution, the exposure is real rather than theoretical.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding
The command `npx clawhub browse` invokes an unpinned package via `npx`, which can download and execute whatever version is current at invocation time. If the package or one of its dependencies is compromised, this becomes a supply-chain execution vector. The skill's role as a how-to document increases the likelihood that users will copy and run the command directly.

Rp1

Medium
Category
MCP Rug Pull
Confidence
92% confidence
Finding
This search example uses `npx clawhub search "web search"` without a version pin, exposing users to execution of the latest remote package. That creates avoidable supply-chain risk, especially for a command likely to be run interactively by users following documentation. While there is no sign of malicious intent, the instruction is operationally unsafe.

Rp1

Medium
Category
MCP Rug Pull
Confidence
92% confidence
Finding
The unpinned `npx clawhub search "weather"` command can cause users to execute a newly published or tampered package version. `npx` convenience comes at the cost of runtime trust in the npm registry state, which is inappropriate for security-conscious guidance. In documentation, repeated unsafe examples normalize risky behavior.

Rp1

Medium
Category
MCP Rug Pull
Confidence
92% confidence
Finding
The command `npx clawhub search "document"` references a package without constraining its version, allowing registry-side changes to alter what code is executed. This is a valid supply-chain vulnerability pattern because the skill is directly instructing execution, not merely mentioning the tool by name. Context does not reduce risk here; discovery tasks do not require unpinned execution.

Rp1

Medium
Category
MCP Rug Pull
Confidence
92% confidence
Finding
`npx clawhub search "tavily"` is another instance of remote package execution without version pinning. A compromised package release could execute arbitrary code with the privileges of the invoking user. Since the skill repeats this pattern across multiple examples, it amplifies the chance of unsafe copy-paste use.

Rp1

Medium
Category
MCP Rug Pull
Confidence
92% confidence
Finding
The example `npx clawhub search "github"` is vulnerable for the same reason: it trusts the latest package version at execution time. This enables package takeover, malicious republishing, or dependency compromise to translate into code execution. The skill is instructional, so the risk is actionable and user-facing.

Rp1

Medium
Category
MCP Rug Pull
Confidence
92% confidence
Finding
The command `npx clawhub search "calendar"` remains an unpinned `npx` execution path. Although the functionality is harmless in intent, the delivery mechanism can execute unexpected code if the npm package changes. This is especially relevant in ecosystems where typosquatting and account compromise are common.

Rp1

Medium
Category
MCP Rug Pull
Confidence
91% confidence
Finding
`npx clawhub search --sort installs` pulls and runs an unpinned package, which is a supply-chain risk regardless of the CLI arguments used. Sorting by installs does not change the threat model; the danger comes from executing registry-resolved code without version control. The context of a search utility makes the command easy for users to trust and run.

Rp1

Medium
Category
MCP Rug Pull
Confidence
91% confidence
Finding
The `npx clawhub search --sort stars` example also executes an unpinned npm package. This creates a realistic avenue for arbitrary code execution through package compromise or malicious updates. The issue is more dangerous because the skill repeatedly endorses the pattern, reinforcing insecure operational habits.

Static analysis

No suspicious patterns detected.