← MCP server and skill grades

registry-broker-skills

hashgraph-online/registry-broker-skills

B
Type
Skill
Scanned
Nov 17, 2026
Version
784ca61dffda
Files read
71

This project provides an AI agent skill and command-line tool for discovering, chatting with, and registering AI agents and skill packages through the Hashgraph Online Registry Broker. The biggest risks are that its skill publishing command uploads all non-hidden files and symlinks in a target folder to a public on-chain registry without running its own secret-file checks, and its skill instructions download and run unpinned npm packages at runtime via npx.

What it can reach

Network
Connects to the Hashgraph Online Registry Broker API (hol.org), the Moltbook API when claiming agent ownership, and the XMTP network for agent-to-agent messaging.
Files
Reads and writes identity keys, session state, and XMTP SQLite databases under ~/.hol-registry/, scaffolds skill files with skills init, and reads local directory files during skill validation and publishing.
Secrets
Reads REGISTRY_BROKER_API_KEY, MOLTBOOK_API_KEY, and HOL_PRIVATE_KEY from environment variables, and stores a local EVM private key and broker API key in ~/.hol-registry/identity.json.
Shell commands
SKILL.md instructs the AI coding assistant to run npx commands in the terminal, and helper scripts under scripts/ invoke node or pnpm.

Findings

2 medium3 low
  1. MediumSkill quote and publish bypass package validation, follow symlinks, and upload sensitive files

    src/commands/skills.ts:126

    While the CLI includes a validator (skills lint) that blocks private keys (*.pem, *.key, *.p12, id_rsa), rejects symlinks, and checks that every file is listed in SKILL.manifest.json, the skills quote and skills publish commands never call that validator. Instead, loadSkillFiles reads every non-hidden top-level entry in the target directory, follows symlinks via stat(), ignores the manifest file list, and uploads the contents to the broker to be permanently inscribed on-chain. If a user or prompt-injected agent runs quote or publish on a workspace root that contains SKILL.md and skill.json alongside key files or symlinks, those files are exposed publicly.

    Fix: Run validateSkillPackage before quoting or publishing, use lstat() to reject symlinks, and only upload the exact files declared in the validated manifest.

  2. MediumSkill instructions execute unpinned npm packages at runtime via npx

    SKILL.md:237

    Throughout SKILL.md, the instructions tell the AI coding assistant to invoke npx @hol-org/registry and npx @hol-org/hashnet-mcp without pinning a specific version. When a user installs SKILL.md as a context skill without pre-installing the package locally, the agent downloads and executes whatever version is currently latest on npm, exposing the user's machine if an upstream npm account or publishing token is compromised.

    Fix: Pin exact package versions in SKILL.md, README.md, and skill.json (for example @hol-org/registry@1.5.2), or instruct users to install a pinned version locally before use.

  3. LowImported EVM private key is persisted unencrypted on disk and signs unvalidated challenges

    src/identity.ts:45

    Whenever getOrCreateIdentity() runs during commands such as chat, listen, claim, or session, any wallet key provided in the HOL_PRIVATE_KEY environment variable is permanently written in plaintext JSON to ~/.hol-registry/identity.json, even though SKILL.md states that identity.json stores an API key. In addition, authenticateWithLedger in src/auth.ts signs whatever raw message string the configured broker URL returns without checking an expected domain or challenge prefix, and XMTP SQLite databases under ~/.hol-registry/xmtp/ are created without encryption.

    Fix: Keep HOL_PRIVATE_KEY in memory rather than writing it to ~/.hol-registry/identity.json, set 0700 permissions on ~/.hol-registry, encrypt local XMTP databases, and verify that ledger authentication challenges match an expected domain prefix before signing.

  4. LowUnencoded sessionId in programmatic endSession client allows URL path traversal

    index.js:112

    In index.js, RegistryBrokerClient.endSession interpolates sessionId directly into the DELETE request URL while sending the x-api-key header, unlike getAgent and resolve which apply encodeURIComponent. If an application or agent passes an untrusted sessionId containing ../ segments (such as ../../register/uaid), fetch normalizes the path and sends an authenticated DELETE request to another broker endpoint.

    Fix: Encode sessionId with encodeURIComponent(sessionId) when building the DELETE URL in endSession.

  5. LowGitHub Actions workflows export NPM_TOKEN and RB_API_KEY secrets to public build artifacts

    .github/workflows/export-npm-token.yml:13

    The repository includes two manual GitHub Actions workflows (.github/workflows/export-npm-token.yml and .github/workflows/export-rb-api-key.yml) that write the NPM_TOKEN and RB_API_KEY repository secrets to files and upload them with actions/upload-artifact@v4. Although CI workflows never run on an installer's computer, artifacts uploaded in a public GitHub repository can be downloaded by any logged-in GitHub user during their retention window, creating a supply-chain risk for future releases if triggered.

    Fix: Delete export-npm-token.yml and export-rb-api-key.yml immediately, delete any previously uploaded workflow artifacts, and rotate both NPM_TOKEN and RB_API_KEY (and prefer npm trusted publishing via OIDC without long-lived tokens).