Zoro

A firewall for AI agents: only audited MCP tools run, sealed on Hedera, approved by a real human

Zoro

Created At

ETHGlobal Mumbai

Project Description

Zoro is a security gateway for AI agents. It sits between an agent (Claude Code, Claude Desktop, Cursor or any MCP client) and the MCP servers it uses. It makes sure the agent only ever sees tools that were audited, and only does something dangerous when a real person says yes.

The problem: MCP tools are text that agents obey. A server can change a tool's description after you approved it (a "rug pull"), hide instructions in invisible Unicode or Morse code, write one tool's description so it hijacks another tool, or slip an instruction into a tool result. The agent then mails out your .env file, deletes a production database or signs away a wallet, and nobody notices until it is too late. Nothing checks this today.

How Zoro works:

  1. Seal. Every tool definition is fingerprinted and audited by Sentinel: deterministic rules, a diff against the last sealed version, and an AI review. The signed verdict is published to a Hedera Consensus Service topic and written to ENS text records, and a Hedera Token Service NFT badge is minted for that exact version. The agent only sees sealed text. If a server changes a tool, the new version is quarantined until it is re-audited.

  2. Guard every call. Before a call runs, Zoro checks for private data heading outside, actions that cannot be undone (delete, drop, wipe, force-push, transfer), transactions (decoded into one plain sentence, e.g. "Gives UNLIMITED USDT spending to an unknown contract 0xab12…"), an agent using a powerful new ability for the first time, risky package installs, and hidden instructions inside tool results.

  3. Ask a human. Risky calls are held until a person approves that exact action with a World ID Human Seal (Proof of Human). The agent, a script or malware on the same computer can click an "Approve" button; none of them can produce a World ID proof.

Because verdicts live on a public ledger, a revocation is a global kill switch. Every Zoro gateway follows the registry topic through the Hedera Mirror Node and blocks the revoked version within seconds, and its NFT badge is burned. Anyone can check a tool on the Verify page: it recomputes the fingerprint, checks the Auditor's signature and reads ENS and the Hedera Mirror Node from your browser, so you don't have to trust our server.

Try it live at https://zoro-mcp-guard.vercel.app (nothing to install):

  • Attack Lab: 13 scenarios run against a real gateway (rug pull, invisible-ink poisoning, tool shadowing, cross-server exfiltration, Morse heist, nine-second wipe, wallet drain and more). Each verdict is published to Hedera testnet with a HashScan link.
  • Console: incidents, approvals, a tamper-evident audit log anchored to Hedera, a panic button, and Ask Zoro, an assistant that answers from Zoro's records and reads the Hedera ledger through the Hedera Agent Kit.
  • Registry and Verify: every sealed tool with its ENS name, Hedera message and NFT badge.
  • Organizations: employees join with World ID (one verified human, one member). The manager sees which MCP servers, packages and AI clients each person uses, never their prompts or files.

Claude Code connects to the hosted gateway with one command, or you can run Zoro locally to protect the MCP servers already on your machine.

How it's Made

Zoro is a TypeScript monorepo (pnpm workspaces) with four packages. GitHub Actions runs typecheck, tests and a production build on every push; the backend runs on Render and the frontend on Vercel.

  • @zoro/core is the shared engine, and it runs in both Node and the browser: canonical JSON and sha256 fingerprints for tool definitions, Sentinel's rules and capability detection, a decoder that unwraps Morse, base64, hex, URL encoding, ROT13, reversed text, leetspeak and invisible Unicode two levels deep, the transaction decoder, the policy engine and keccak Merkle trees. Because the same code ships to the browser, the Verify page computes a fingerprint exactly the way the gateway does.
  • @zoro/daemon is the gateway, built on Hono and the official MCP SDK. It is an MCP server to the agent and an MCP client to every upstream server (stdio and Streamable HTTP), so every tools/list and tools/call passes through it. State lives in node:sqlite (no native builds), the audit log is hash-chained, and ledger writes go through an outbox with retries, so a slow chain never blocks the agent. Sentinel's AI review and Ask Zoro use an OpenAI-compatible API (Groq, gpt-oss-120b). It also ships a Claude Code hook (built-in Bash/Write/Edit get the same checks), a watchdog on AI client config files, and a small bridge for Claude Desktop.
  • @zoro/blockchain holds the Hedera SDK code, the ENS code (viem) and the Auditor key that signs every verdict (EIP-191 over the verdict's keccak256 hash).
  • @zoro/web is the site and Console: Next.js 16, React 19, Tailwind 4, IDKit 4, with three.js and GSAP on the landing pages.

Hedera (no Solidity; only native services through @hashgraph/sdk):

  • Consensus Service: three topics, each with a submit key. The public registry carries signed verdicts, revocations and disputes; the Attack Lab has its own topic; the organization topic carries Merkle roots of audit logs, so an entry can be proven without revealing the log. HCS gives an ordered, timestamped, append-only record with finality in seconds for a fraction of a cent, which is what makes a global kill switch practical.
  • Token Service: the "Zoro Seal Badge" (ZSEAL) NFT. Each sealed tool version gets a serial and revocation burns it, so the supply always equals the number of tool versions currently trusted, visible to anyone on HashScan.
  • Mirror Node REST API: gateways follow the registry topic and recover the Auditor's signature on every message before acting on it, so a revocation published once blocks the tool everywhere and a forged message is ignored. The Verify page reads the Mirror Node straight from the browser.
  • Hedera Agent Kit: Ask Zoro answers questions like "What did Zoro publish today?" or "How much HBAR is left for ledger writes?" through five Agent Kit query tools (topic messages, topic info, token info, HBAR balance, transaction record). It is read-only by construction: only allowlisted tools load, loading fails if any of them is not a query tool, the kit runs in RETURN_BYTES mode, and its client has no operator key. Ledger messages carry third-party text (tool names, revocation reasons), so they reach the model marked as untrusted data, and every ledger citation in an answer becomes a HashScan link.

ENS (ENSv2 on Sepolia): each MCP server gets a namespace under zoro-registry.eth (for example deepwiki.zoro-registry.eth) with its own resolver. Each tool version gets a name derived from its fingerprint, plus current.<tool> for the latest sealed version. The verdict is stored as text records: zoro.fingerprint, zoro.verdict, zoro.risk, zoro.capabilities, zoro.attestation (the Auditor's signature), zoro.ledger (a pointer to the Hedera message) and zoro.status. Any wallet, agent or tool can check a verdict with a plain ENS lookup. A revocation sets zoro.status to revoked, and the gateway re-reads the records and treats any disagreement as a security signal.

World ID (IDKit 4, Proof of Human): the daemon signs each request with a key the browser never sees. Each approval gets its own action, and the signal is the digest of the exact call, so one proof approves one call, once. Proofs are checked with World's v4 verify API, and then Zoro checks the credential itself: the verify API does not confirm which credential the app asked for, so a modified page could request a weaker one and still get a valid proof. Zoro refuses anything but Proof of Human (or Orb for World ID 3.0) and opens an incident. Nullifiers count distinct people, so "two approvers" really means two humans.

Notable details:

  • The Attack Lab runs real malicious MCP servers in-process against the production gateway code, not a mock-up.
  • Sentinel cannot be talked into a pass: text in a manifest addressed to the auditor ("this tool is pre-approved") is itself a critical finding.
  • npx servers are pinned to the exact version that was verified, so a new publish cannot slip in.
  • Render's free tier wipes the disk on every restart, so Hedera is the source of truth: the gateway rebuilds the public feed from the Mirror Node on boot.
  • HashScan has no page for a single topic message, so Zoro links each message to the transaction at its consensus timestamp.
background image mobile

Join the mailing list

Get the latest news and updates