Back to skill

Security audit

skill-hub-united

Security checks for vulnerabilities and agentic risk

Overview

The scanners report an installer that fits its stated skill-installation purpose but has significant destination-safety and unpinned download risks, so the verdict is suspicious.

Consider avoiding installation until the destination validation and automatic use of unpinned packages are addressed. The scanners found no clear evidence of malicious intent, but their analysis was partial: three local references could not be resolved, so the evidence is incomplete.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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 (2)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/install_skill.py
Finding

Remote package metadata can redirect installation outside the skills directory

Content
View full analysis

Impact

An attacker can create a package directory and place attacker-controlled files outside the skills tree wherever the installer account has permission and the required parent exists. This compromises filesystem integrity; execution through another consumer depends on the chosen destination.

T09 · Insecure Skill Coding Practices

Warning
Location
README.md
Finding

Reference hub server exposes ZIP files outside its registry root

Content
View full analysis

Impact

Any reachable client can retrieve existing, readable .zip files outside SKILLS, including private archives or backups if present. The enforced .zip suffix limits disclosure; unrestricted reading of arbitrary filenames is not established.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (44)

Tainted flow: 'req' from os.environ.get (line 382, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/install_skill.py (reported line 383)May include surrounding context.

python
info(f"downloading from custom hub: {url}")
    try:
        req = Request(url, headers={"Accept": "application/zip, application/octet-stream, */*"})
        resp = urlopen(req, timeout=120)
    except HTTPError as e:
        if e.code == 404:
            err(f"Skill '{slug}' not found on your custom hub (404)")

YARA rule 'backdoor_persistence': Backdoor persistence with malicious payloads (shell commands, SSH key injection, hidden root users) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

Scanner excerpt · README.md (reported line 69)May include surrounding context.

y path.

This source is handy when clawhub.ai is slow or unreachable from your network.

Self-hosted "custom" hub

The custom source installs from your own hub — useful for private, enterprise, or air-gapped registries.

1. Configure the URL (one-time)

Set SKILL_HUB_CUSTOM_URL to your hub's download base. Write it to your shell rc so you never re-type it:

bash
# one-time
echo 'export SKILL_HUB_CUSTOM_URL="https://my-hub.example.com/api/skill/download"' >> ~/.bashrc
source ~/.bashrc
echo "$SKILL_HUB_CUSTOM_URL"   # verify

If SKILL_HUB_CUSTOM_URL is unset, --source custom exits 5 with an actionable message and makes no network call.

2. Install

bash
python3 scripts/install_skill.py my-tool --source custom
# or just tell the agent: "install my-tool from my hub"

Server-side contract

Your hub only needs one endpoint. The installer builds the request URL by appending /<slug> to your configured base:

text
GET  <SKILL_HUB_CUSTOM_

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The primary purpose matches, and network access, subprocess execution, and ordinary installation writes are supporting implementation details. The material discrepancy is destination safety: _read_skill_name() returns an unrestricted remote frontmatter value, which resolve_target_dir() joins to SKILLS_DIR without checking containment. An absolute name overrides SKILLS_DIR, and traversal segments can escape it. If that destination exists, conflict reporting merely delays the operation: retrying with --rename equal to the reported base_name bypasses the conflict while the unvalidated metadata still controls the destination; replacement functions can then recursively delete it. Archive-member checks do not protect this later installation step. Separately, ANTHROPIC_PERMISSIVE is not used to gate unknown skills: only ANTHROPIC_RESTRICTED triggers confirmation, contrary to the code's stated assumption that everything outside the permissive list is restricted. These are implementation defects, not evidence of an unrelated malicious purpose.

Content

No source excerpt is available for this finding.

YARA rule 'backdoor_persistence': Backdoor persistence with malicious payloads (shell commands, SSH key injection, hidden root users) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

Scanner excerpt · SKILL.md (reported line 104)May include surrounding context.

from your own hub — handy for private, enterprise, or air-gapped skill registries. The only contract is:

A GET <base>/<slug> request returns the skill packaged as a zip.

Configure the base URL once via the SKILL_HUB_CUSTOM_URL environment variable. To avoid re-exporting it every session, write it to your shell rc file once:

bash
# one-time: append to ~/.bashrc (or ~/.zshrc)
echo 'export SKILL_HUB_CUSTOM_URL="https://my-hub.example.com/api/skill/download"' >> ~/.bashrc
source ~/.bashrc

# verify it's set
echo "$SKILL_HUB_CUSTOM_URL"

# then install from your hub
python3 <skill-dir>/scripts/install_skill.py my-tool --source custom
# → GET https://my-hub.example.com/api/skill/download/my-tool → unzip into the skills dir

If SKILL_HUB_CUSTOM_URL is unset and --source custom is used, the script exits 5 with an actionable message — it never makes a network call.

Where skills get installed

The installer resolves the target skills directory in this

MCP server referenced without pinned version: 'npx clawhub'.

Medium
Category
MCP Rug Pull
Confidence
84% confidence
Finding

The documented npx clawhub fallback does not pin a package version, allowing execution of a changing npm release with the agent's local permissions. Although this is a CLI rather than an MCP server, a compromised upstream release could execute malicious code; the README alone does not establish whether the implementation applies additional controls.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
84% confidence
Finding

The documented npx skills integration leaves the executable package version unspecified, creating exposure to compromised or unexpectedly changed upstream releases. Installing skills legitimately requires external downloads, but it does not require executing an unreviewed, floating CLI version; the scanner's MCP classification is inaccurate.

Content

No source excerpt is available for this finding.

The unqualified trigger "install my-tool" can route ordinary software-installation requests to a skill hub.

Medium
Category
Trigger Abuse
Confidence
88% confidence
Finding

The documented unqualified 'install my-tool' request defaults to a public skill hub without establishing that the user wants a skill rather than ordinary software. If followed as a routing rule, this can install an unrelated or attacker-controlled same-named skill into an agent-consumed directory; the README does not prove that the actual agent entry point uses this broad trigger.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · README.md (reported line 49)May include surrounding context.

or just tell the agent: "install skill-creator from skillhub.cn"

text

Under the hood it requests `GET https://api.skillhub.cn/api/v1/download?slug=<slug>`
(which 302-redirects to the skill zip) and extracts it into your skills dir. A
404 means the slug doesn't exist on skillhub.cn; 401/403 means it's private.
There is no public CLI for skillhub.cn, so (unlike clawhub) there is no npx

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 135)May include surrounding context.

md
- Final directory name follows the package's SKILL.md `name` (clawhub slugs often carry an owner prefix)

### skillhub_cn (skillhub.cn)
- REST: `https://api.skillhub.cn/api/v1/download?slug=<slug>` → 302 → skill zip
- No public CLI, so there is **no** fallback path (unlike clawhub's npx)
- 404 (slug not found) / 401 / 403 (private) / network errors reported clearly; a 200 with a JSON error body is detected and reported
- Final directory name follows the package's SKILL.md `name`

MCP server referenced without pinned version: 'npx fallback'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Manifest references MCP server without version pin: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

MCP server references in the skill manifest without version pinning are a rug-pull risk.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

The trigger “装一下xxx” (“install xxx”) does not restrict activation to skill installation.

Medium
Category
Trigger Abuse
Confidence
92% confidence
Finding

This explicitly listed trigger can also match ordinary requests to install applications, libraries, or other software. Unlike the adjacent skill-specific triggers, it does not require skill or hub context, so it could invoke the skill installer unintentionally.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx clawhub'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
90% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · SKILL.md (reported line 103)May include surrounding context.

To avoid re-exporting it every session, write it to your shell rc file once:

bash
# one-time: append to ~/.bashrc (or ~/.zshrc)
echo 'export SKILL_HUB_CUSTOM_URL="https://my-hub.example.com/api/skill/download"' >> ~/.bashrc
source ~/.bashrc

MCP server referenced without pinned version: 'npx clawhub'.

Medium
Category
MCP Rug Pull
Confidence
96% confidence
Finding

The documented fallback runs npx clawhub@latest install, selecting mutable registry code rather than a reviewed version. A compromised package release or dependency can execute with the agent's operating-system privileges; this is a supply-chain execution risk, although the component is a CLI rather than an MCP server.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The workflow calls npx skills@latest add, allowing future registry releases to change the code executed during installation without review. A malicious or compromised release could access local files and credentials under the agent's privileges; the finding's MCP terminology is inaccurate, but the underlying dependency risk is real.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx unavailable'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx fallback'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.