Scan your whole stack
Latest version: v0.6.2
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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
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.
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)
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.
msk_…).
The engine keeps the public half./v1/proposals./v1/agent/decisions/{id}, a request the agent signs
with the same key (the agentAuth headers)./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.
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:
frost-ed25519 (Binance) or ecdsa-2p (Hyperliquid); RSA
and the proxy are not built yet;order, cancel or verify;order carries the agent's own proposal: signed by this signer's key,
verifying with it, for this connected account, not yet expired;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×tamp=<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;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;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.
~/.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).
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
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.