Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

io.github.mishmar-io/mishmar

Latest version: v0.6.2

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
MCP server Transport: stdio Publisher: mishmar-io
0 Stars
0 Forks
8 Versions
Go Repo language

Scan summary

io.github.mishmar-io/mishmar was last scanned on 23 Nov 2026 at version 0.6.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest 3 were published within 6 days (18–23 Nov 2026).
  • Findings: No rules fired in version 0.6.2.
  • MCP server: Runs over stdio.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.6.2 LATEST 23 Nov 2026 No rules fired
0.6.0 20 Nov 2026 No rules fired
0.5.4 18 Nov 2026 No rules fired
0.5.3 16 Nov 2026 Not shown
0.5.1 15 Nov 2026 Not shown

No rules fired in 0.6.2

Findings

Findings for v0.6.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.6.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

mishmar

Give AI agents your trading accounts, on your terms. Connect an exchange account once, then decide which agent can see it, which can trade on it, and within what limits. Every read and every order is on the record.

This is the client side of Mishmar: the API contract, the test vectors every SDK must pass, the agent's signer, the mishmar CLI and MCP server, and the SDKs themselves. The engine that enforces the rules is a separate, private repo; this one is what runs next to your agent.

Status: live. Mishmar runs with real money on Hyperliquid and Binance USDⓈ-M futures, or on their testnets first. The contract, the Go packages, the agent's signer and the mishmar CLI are here, and so are the Python and TypeScript SDKs (mishmar on PyPI and npm). Binaries for Linux and macOS are on the Releases page.

Layout

spec/openapi.yaml     the API contract, the single source of truth for every client and the engine
spec/vectors/         cross-language test vectors: proposal signing, agent request signing (agentAuth), the engine's signature on a decision,
                      an agent key's fingerprint, the trade sign-in's machine proof, the app setup text
api/                  the contract as Go types (generated; `make gen`)
canon/                canonical JSON: the bytes an agent signs
agentkey/             the agent's Ed25519 identity key: parse the secret, sign, verify, sign requests
proposal/             build, validate and sign a proposal for POST /v1/proposals
decision/             verify the engine's signature on a decision, per signing version, from the decision as served
frost/                two-party FROST over Ed25519: the split key behind a Binance connectedAccount
ecdsa2p/              two-party ECDSA over secp256k1: the split key behind a Hyperliquid API wallet (keygen, presigning, signing)
signer/               the agent's signer: config, engine client, the checks, the signing rounds (FROST and two-party ECDSA), the poll loop;
                      signin/ (an AI app's trade sign-in) and daemon/ (the background signer behind `mishmar mcp --app`)
appsetup/             the setup text an AI app is given for trading through Mishmar from the person's computer
cmd/mishmar/          the CLI: keygen, add-agent, signer init|add-key|keygen|run|daemon, propose, read, mcp, daemon status|stop
mcp/                  the MCP server behind `mishmar mcp`: the signer's tools for a language model, over stdio
python/               the Python SDK (`mishmar` on PyPI)
typescript/           the TypeScript SDK (`mishmar` on npm); no runtime dependencies
examples/             bots to copy from: two minimal ones (Python, TypeScript) and two rule walk-throughs (Hyperliquid testnet, Binance demo trading)

Run the checks

Two-party ECDSA (ecdsa2p, Hyperliquid API wallets) is Coinbase's cb-mpc, C++ behind cgo, through the mishmar-io fork of cb-mpc-go checked out next to this repo at the ref in cbmpc.ref (go.mod replaces the module with ../cb-mpc-go). Its scripts/build_cpp.sh builds the library once (CMake, a static OpenSSL 3.6.1 from its scripts/openssl), and make runs every Go command through its scripts/go_with_cpp.sh, which sets the cgo flags. Linux and macOS; Windows through WSL or Docker.

make test                                       # Go packages, including the vectors and both signers
make lint
cd python && python -m pytest                   # the Python SDK against the same vectors
cd typescript && npm test                       # the TypeScript SDK against the same vectors (Node 22+)
go test ./proposal -update                      # rewrite spec/vectors after changing the cases
make gen                                        # regenerate api/ and signerapi/ from spec/

A tag vX.Y.Z builds the binary on Linux and macOS, both architectures, and attaches it to the release (.github/workflows/release.yml); the Dockerfile builds the same binary for Linux, running the signer service by default.

How an agent talks to the engine

  1. The engine issues the agent a key and shows its secret once (msk_…). The engine keeps the public half.
  2. The agent builds a proposal (symbol, side, size, price or market, a deadline, a nonce), signs the canonical JSON of it with the key, and POSTs it to /v1/proposals.
  3. The engine checks the signature, evaluates every rule in scope, records the decision, and either forwards the order, parks it for a person, or blocks it. The response is the decision; a parked one resolves later and is read back from /v1/agent/decisions/{id}, a request the agent signs with the same key (the agentAuth headers).
  4. When the connected account's key is split, the engine asks the agent's signer to co-sign the venue request over the signer channel (/v1/agent/signer/…); the signer checks that it is the order it proposed before it signs.

The exact bytes signed are specified in proposal and agentkey and pinned in spec/vectors/. The engine signs each decision as it writes it (engineSignature); decision.Verify checks one with the engine's public key (GET /v1/ledger/head), rebuilding the record its signingVersion names: 3 since contract 0.21.0, without portfolioId; 2 with it; 1 under the names from before 0.20.0. A version it does not know is refused. spec/vectors/decision-signing.json pins the three.

The signer

When a connected account's venue key is split, the engine holds one share and the agent's signer the other, and a venue request is signed only when both sign it. The signer is the signer package as a library and mishmar signer run as a process. It long-polls POST /v1/agent/signer/poll with the agent's key and, for each request, refuses unless, in this order:

  • the scheme is frost-ed25519 (Binance) or ecdsa-2p (Hyperliquid); RSA and the proxy are not built yet;
  • the venue key is in its config, on the request's connected account and venue;
  • the request has not expired and was not answered already in this session (a request handed out again after it was answered is a replay, not a second signature);
  • the purpose is order, cancel or verify;
  • an order carries the agent's own proposal: signed by this signer's key, verifying with it, for this connected account, not yet expired;
  • the message, decoded, is that order and nothing more. On Binance the message is the parameter string the venue verifies: it may carry only the parameters the engine sends; newClientOrderId is the request's; symbol is the request's and is the proposal's exactly, upper-cased; side is the proposal's; type is LIMIT with GTC for a limit proposal, and for a market proposal either MARKET (an exit, or an older engine) or LIMIT with IOC at the engine's bound; quantity is a decimal with 0 < quantity <= size (the engine floors to the lot step, never more); a limit price is within 1 % of the proposal's price and on its passive side (at most the price for a buy, at least for a sell), a MARKET order carries none, and the bound of an IOC is a positive decimal the signer does not judge (the engine read it off the venue's order book; the same on Hyperliquid); reduceOnly is the proposal's. A verify message must decode to a read that says only when it was built: a timestamp and a recvWindow, no other parameter, written as the engine writes them (recvWindow=10000&timestamp=<ms>), with the timestamp checked as an order's is. On Hyperliquid the message is the EIP-712 digest, which cannot be read, so the request's body carries what it came from: {"action": …, "nonce": …, "expiresAfter": …, "clientOrderId": …}. expiresAfter is the time, in milliseconds, after which the venue no longer takes the action, and it is part of the digest. The signer decodes the body with venues/hyperliquid, recomputes the digest for the key's network and compares, checks the nonce is fresh, checks the end time is there and no later than the proposal's expiresAt plus a minute, and checks the action is the proposal's order (asset, side, size, a limit price on the tick rules within 1 % on the passive side, reduce-only, the cloid of the request's client order id) or the cancel of its target. The asset is the coin's position in Hyperliquid's own list of perp markets, which the signer reads from the venue itself (api.hyperliquid.xyz, or api.hyperliquid-testnet.xyz for a testnet key) and keeps for ten minutes; it does not take it from the engine, and a coin that is not in that list is refused. So the signer's machine must be able to reach that address over HTTPS. When it cannot, the signer goes on signing cancels and reduce-only orders against the venue's last answer and refuses new orders (venue_list_unavailable) until a read succeeds; a signer that has not read the list since it started signs nothing on Hyperliquid;
  • an order is for a proposal it has not signed an order for yet. It keeps a record of the proposals it signed orders for, by the proposal's key and nonce (which the agent signed, so the engine cannot change them), in <config>.signed.json beside its config (0600, replaced atomically and synced before the share leaves, kept until the proposal's expiresAt plus a minute). Another request for one of them is order_already_signed, whatever its timestamp and after a restart too; the same request id again is still request_already_answered. A record that cannot be read or written refuses every order (order_record_unavailable) and never starts over empty. Cancels are not recorded;
  • the hook, when the config names one, exits 0 (it gets the request's JSON on stdin and two seconds; its first line of output is the refusal reason).

Then it makes its half. FROST: it parses the engine's commitment, commits, makes its share of the signature over the exact bytes it checked, and answers {"kind":"share","commitment":…,"share":…}. Two-party ECDSA: it spends one of its presigned slots (a batch of nonces it ran the protocol's first three messages for with the engine's signer ahead of time, through POST /v1/agent/signer/presign), computes its last message over the digest, and answers {"kind":"share","share":…,"engineCommitmentId":<the slot>}; the engine's signer verifies that message and finishes the signature alone. On both venues an order the signer can build itself goes one-shot instead: the venue request and the signer's half travel inside the proposal (venueMessage), so an allowed order needs no round trip back. That is limit orders, cancels and, on Binance, exits (reduce-only market orders); any other market order is bounded by the engine from the venue's order book and signed over the channel. A one-shot Hyperliquid message ends at the proposal's expiresAt, or a minute after the signer builds it when that comes first. A refusal is {"kind":"refusal","refusal":{"reason":…}} with a stable code first (message_mismatch: side "SELL" is not the proposed BUY), which the engine records on the decision's signing. Decimals are compared exactly; no float touches them.

The config file

~/.mishmar/agent.json, or the file MISHMAR_AGENT_CONFIG names, written with mode 0600:

{
  "engine": "https://api.testnet.mishmar.io/a/acc_k7f2q9x1m3n4/v1",
  "keyId": "key_k7f2q9x1m3n4_abcdefghijkl",
  "secret": "msk_testnet_k7f2q9x1m3n4_abcdefghijkl_…",
  "agentId": "agt_…",
  "venueKeys": {
    "vk_…": {
      "connectedAccountId": "ta_…",
      "venue": "binance",
      "scheme": "frost-ed25519",
      "share": {"scheme": "frost-ed25519", "id": 1, "keyShare": "…", "group": "…"}
    }
  },
  "hook": "/usr/local/bin/check-order"
}

share is the agent's share as key generation left it (or as mishmar keygen wrote it). The file holds the identity secret and the agent's shares only; an engine share in it is refused on load.

The secret is the agent's API key, and since contract 0.19.0 it names its engine and key id: msk_<environment>_<account suffix>_<key random part>_<seed>. testnet, stage and prod are hosted Mishmar's environments, mapped to the API host (signer.HostedAPI); any other environment is a self-hosted engine, whose URL MISHMAR_ENGINE gives. A key issued before 0.19.0 (msk_<6 characters>_<seed>) still works, with the engine URL and key id given by hand (mishmar signer init).

The commands
go build ./cmd/mishmar

# The usual way: the agent's API key from the console (the agent's page) is
# all the signer needs. With no config at the path yet, "signer run" writes
# one from the key (the engine and key id are in the key; the agent comes
# from GET /agent/me) and starts. While it runs it keeps its trading keys in
# line with the engine's: a key the console adds for the agent is generated
# here, two rounds with the engine's signer, and the log says what the venue
# needs next (the API wallet to approve at Hyperliquid, under the name
# mishmar-<last 8 of the agent id>; the public key to register at Binance).
# No restart, no second command. MISHMAR_ENGINE names a self-hosted engine.
export MISHMAR_API_KEY=msk_testnet_…
mishmar signer run

# Everything for a new agent in one go, with an operator token: create the
# agent, issue its key, make a venue key per connected account by two-party
# key generation with the engine's signer (FROST for Binance, ECDSA for
# Hyperliquid; no machine ever holds the whole key), write the config. It
# prints what to register or approve at the venue. --capital 5000 allocates
# the agent capital: a leverage or drawdown rule on the agent is measured
# against it, and is refused while the agent has none.
mishmar add-agent --engine http://localhost:8080/v1 --token "$MISHMAR_OPERATOR_TOKEN" \
  --name momentum-1 --connected-account ta_…

# Or step by step: write the config first (from MISHMAR_API_KEY, or the key
# piped in; a key from before 0.19.0 also takes --engine, --key-id and
# --agent), then make each trading key yourself instead of leaving it to the
# running signer. Binance prints the public key to register at the exchange,
# Hyperliquid the API wallet address to approve.
echo "$MSK_SECRET" | mishmar signer init --secret-stdin
mishmar signer keygen --venue-key vk_… --connected-account ta_… --venue binance
mishmar signer keygen --venue-key vk_… --connected-account ta_… --venue hyperliquid --network testnet

# The older way for Binance, which makes the whole key exist on this machine
# for the length of the call: deal a FROST key, paste the engine share when
# adding the venue key in the console, store the agent share under the id it
# returns.
mishmar keygen --scheme ed25519 --agent-share-out agent.share > engine.share
mishmar signer add-key --venue-key vk_… --connected-account ta_… --venue binance --share agent.share

# Run the signer; then register the key at the venue and verify it in the
# console (the verification is a read the signer co-signs). One signer runs
# per config: it holds <config>.lock while it runs, and a second one on the
# same config stops at once, naming the first one's pid. A key "signer
# keygen" or "signer add-key" writes while a signer runs is picked up by it
# within a few seconds.
mishmar signer run

# Drive one order end to end with the signer running.
mishmar propose --config ~/.mishmar/agent.json --connected-account ta_… --symbol BTCUSDT --size 0.01 --price 60000
Restarts and rate limits

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.mishmar-io/mishmar

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229