# Security checks

Every check a security reviewer can run on Maxy from their own machine, each with the output it gives. It is for reviewers and for teams that check a dependency before shipping it. Nothing here needs a key.

## The package you installed

The files on maxy.co/sdk are listed with their SHA-256 in `SHA256SUMS`, and that list is signed with Maxy's release key (ed25519, `ssh-keygen -Y sign`, namespace `maxy-sdk`).

```sh
curl -sO https://maxy.co/sdk/SHA256SUMS -O https://maxy.co/sdk/SHA256SUMS.sig -O https://maxy.co/sdk/allowed_signers
ssh-keygen -Y verify -f allowed_signers -I maxy-sdk -n maxy-sdk -s SHA256SUMS.sig < SHA256SUMS
curl -sO https://maxy.co/sdk/maxy-labs-1.1.13.tgz && shasum -a 256 -c SHA256SUMS --ignore-missing
```

It prints:

```text
Good "maxy-sdk" signature for maxy-sdk with ED25519 key SHA256:TYUfXuFNZbCUxy2c0P3mWnJjZhpEurFU0ZkuSJgAxfo
maxy-labs-1.1.13.tgz: OK
```

A changed `SHA256SUMS` fails the first command; a changed file fails the second. The public key is also at `https://maxy.co/sdk/maxy-sdk-release-signing-key.pub`, and its fingerprint is printed away from maxy.co too: in the package README on npm and on PyPI, from release 1.1.3. npm's own integrity value is the base64 SHA-512 of the same tarball:

```sh
npm view maxy-labs@1.1.13 dist.integrity
openssl dgst -sha512 -binary maxy-labs-1.1.13.tgz | base64
```

The second line prints the same value as the first, after its `sha512-`.

The packages are published from Maxy's own machine, not from a public CI, so npm carries no provenance attestation and the source is not in a public repository; the signed `SHA256SUMS` and the byte-for-byte rebuild below stand in for both.

## The code in it

The package carries the full source of what it runs: each `dist/*.js.map` holds every module's source, and `dist/sources.json` the few modules the bundler kept nothing of. One command rebuilds every JavaScript file from them and compares it, byte for byte, with what you installed:

```sh
cd node_modules/maxy-labs && npm install --no-save esbuild@0.25.12 && node scripts/reproduce.mjs
```

It prints `141 sources from the maps; 48 of 48 JavaScript files rebuilt byte for byte.`

This check covers `maxy-labs` (the same files are published under its earlier name too). `@maxy-labs/loans` is built from the same sources with the same build, and ships its source maps and `HOSTS.md`; it has no rebuild script of its own.

`HOSTS.md` in the package lists the one host every call goes to, `openapi.maxy.co`. Before release every file is scanned for any other host, a credential-shaped string, or a contract address that is in no reviewed source; a finding stops the release.

## The contracts

`GET /config` names each chain's settler, verifier, timelock and ProxyAdmin, and the SHA-256 of each ABI. Check them on chain with any RPC (Foundry's `cast` here, Base shown):

```sh
SETTLER=0xeC5a05b28dd848F628e19CB26Df32f053e64ab86; RPC=https://mainnet.base.org
cast call $SETTLER "eip712Domain()(bytes1,string,string,uint256,address,bytes32,uint256[])" --rpc-url $RPC
cast call $SETTLER "verifier()(address)" --rpc-url $RPC
curl -s https://maxy.co/docs/_media/abi/BitcoinIntentSettler.json | shasum -a 256
```

They print:

```text
0x0f  "BitcoinIntentSettler"  "6"  8453  0xeC5a05b28dd848F628e19CB26Df32f053e64ab86  0x00…00  []
0x8dFED41f68b3749a06a0A9451E6d1701A9C75F9f
4e4a468bee9fbc76014557c3b5148969e362a1b974927d1f22171826159ab97b  -
```

The domain is the one every intent is signed for ([Intent fields](https://maxy.co/docs/intent-fields) has a worked intent and its hash). [Contracts](https://maxy.co/docs/contracts) lists the other four chains.

## A signature before you sign it

Every step that asks for a signature carries the EIP-712 typed data and its `hash`. Recompute the hash from the typed data yourself (viem's `hashTypedData`, ethers' `TypedDataEncoder.hash`) and refuse a step where they differ. The SDK does this, and also asks the settler's own `hashIntent` before a wallet signs.

## Live state

`GET /health` and the [status page](https://maxy.co/status) show each component as it answers now.

---
Source: https://maxy.co/docs/security-checks (Maxy Docs › Learn about Maxy › Learn more)
