Security

What can go wrong, and who can move money

The threat model in plain words, the limits we know of, and exactly what the review did and did not do.

Threat model

Each row is an attacker, what they can do, and what stops them.

Attacker hasCan doWhat stops them
The ability to forge elliptic-curve signatures, by a quantum computer or by a better algorithm on ordinary computersNothing on the paying side. Tabs take no signature, and the agent wallet is owned by a hash-based key.The design
A seller's serverSettle payments that were already revealed to it. Nothing else.A revealed value is worth exactly its payments
A prompt-injected agent, or its whole processSpend what is left in its open tabs with those sellers. With the wallet words, the wallet.Tab size and the SDK's budgets. Keep the wallet words out of the agent's context.
A network observer who sees a payment valueSubmit it on chain, which pays the seller.Money only goes to the tab's seller
Preima's serversNothing. They hold no keys that move money.The design
USDG issuer keys, the chain's operator keysOut of scope. Those are elliptic-curve keys.This page says so. See what the claim is, below.

Who can move money

Nobody but the payer and the seller.

  • The payer opens a tab and locks the money. It can ask to close the tab, and the unspent rest is refundable a day later or at expiry. It cannot take back value it has already revealed.
  • The seller is paid for every payment revealed to it, and can end a tab early. Money in a tab only ever goes to its seller or back to its payer.
  • Anyone can submit a revealed value on chain, which pays the seller, or trigger a refund that is already due. That can only move money to the people it already belonged to.
  • The contract owner can change the fee for future tabs, up to 1 percent, and name the fee recipient. It has no power over open tabs. The fee of a tab is pinned when the tab opens. Fees already collected belong to the owner.
  • Preima's servers hold no keys. This site only reads the chain.

Known limits

  • Money at risk on the paying side is what is left in open tabs with that seller, bounded by the tab size and the agent's budgets. A seller that takes a ticket and serves nothing keeps that ticket's payments.
  • A seller must stay online. It has to read its tabs at least hourly and settle inside the one-day close window. A seller that is down for longer than a tab's close window can lose its unsettled payments to the refund.
  • Both sides need the package. A plain x402 client cannot pay a preima-tab seller.
  • The SDK's simple payer uses an elliptic-curve key. The EoaPayer signs transactions with an ordinary key and is meant for tests and simple use. Only the tab tickets and the hash-key wallet are free of elliptic curves.
  • Wallet words are the wallet. A leaked words file hands over the wallet at once and nothing on chain can stop it. A lost words file loses the wallet: there is no recovery path, no guardian and no admin.
  • A hash key signs a limited number of times. 2^20 signatures per key, one per wallet action, failed calls included. Each leaf must sign once. The SDK tracks leaves in order, and a restored device must raise its counter before signing.
  • Gas keys hold dust only. The seller's and the wallet submitter's gas keys can only call claim or run. They cannot move the wallet's money.
  • Issuer powers. USDG's issuer can freeze an account or pause transfers. On a fork this parked the payout, which the account can collect after the freeze ends. Those are the issuer's keys, not ours.
  • A transaction has a gas cap. Robinhood Chain caps a transaction at 32 million gas, so a tab holds at most 2^17 payments, which keeps a full settlement in one transaction.
  • Not audited. Reviewed independently in eight rounds. Not audited.

The seller and wallet limits are written out in full in the docs.

Token and game

$PREIMA has not launched and there is no token address. The lock, Cube and Board contracts, and the stamp in the tabs contract, are built into the contracts and tested, and are not live. The contracts were reviewed in rounds 3 to 8, and round eight answered yes to deploying them with small amounts.

  • After launch, a seller cannot settle without the coin. The key that settles pays the burn, which for a seller is its settling key, so that key must hold the coin and approve the tabs contract. Nobody can spend anyone else's coin: a stranger who settles a tab pays with their own. If nobody with enough coin and approval settles, the claim reverts, the seller is not paid, and the tab refunds the payer. The payments a seller was owed are lost if it does not fix this before the refund. That is the point of the design, and it is a cost to every seller who has to get the coin first. Agents never need it.
  • The burn rate is set by hand, not by a price feed. The owner sets how many $PREIMA units are burned per unit of USDG settled, aimed at about 0.5 percent of the value settled. The cost in dollars drifts with the coin's price until the owner lowers the rate (immediately) or raises it (with a 7-day public notice). There is no oracle and no automatic correction.
  • What the owner can do. Choose the coin once, in the same call that sets the first burn rate, with nothing on chain checking that it is the real coin or that it behaves. A coin that refused transfers to the burn address would freeze settlement of burn-paying tabs for good; payers would still be refunded. Set the burn rate: the first setting and any lowering are immediate, a raise needs a 7-day notice. Name the Cube address once: until it is named a stamp is burned entirely, and after it is named the Cube share of stamps cannot be redirected. Set the Cube share, 0 to 50 percent (20 by default): it is pinned into each tab when the tab opens, so a change reaches only new tabs, and it changes only the split between the Cube and the burn. Name the fee recipient for the pre-launch USDG fees, which the plan makes the Cube; nothing on chain forces that. Change the pre-launch fee for new tabs, up to 1 percent. Decide which sellers settle free on new tabs: the fee source can grant free settlement to chosen sellers as well as remove it.
  • What the owner cannot do. Touch an open tab's money: not the payer's refund, not the seller's payments, not the stamp pinned when the tab opened. Move or block anyone's locked coins.
  • Locked coins leave on notice. A seller with $PREIMA locked settles free on tabs that end within 30 days, and unlocking takes 30 days' notice.
  • The Cube is a pot behind a hash. It holds USDG and, after launch, $PREIMA. Anyone who reveals an input that hashes to the published target takes both. That is a break of the hash function the whole rail stands on, and nobody, including the team, knows the answer. Before launch it is filled by the 0.5 percent settlement fee and donations; after launch, by the Cube share of every stamp and donations.
  • The team can withdraw the pot only after a 30-day notice that is visible on chain, and only inside a 7-day window after the notice matures. The pot includes the Cube's share of every burn, so up to half of each burn can end up withdrawable by the team. Inside that window the owner picks the moment, so a player who commits then can be pre-empted. The pot is not locked.
  • The Board pays nothing. It ranks agents and sellers by payments settled, read from the tab contract's events. Burning $PREIMA claims a name and a colour. There are no payouts of any kind.

The reviews

Reviewed independently in eight rounds. Not audited. A round is one adversarial review, or one re-check of the fixes, by one independent reviewer. All eight were written on 2026-12-04, with fixes made between them. Counts come from the reports; the reports also list the Notes. This page does not say the code is secure.

RoundWhat was reviewedFindings by severity
1The tabs contract, and the seller and agent rulesCritical 0, High 1, Medium 1, Low 7, Note 7
2The round-one contract fixes, and the hash-key wallet: wallet, factory, verifier, and the SDK's signer and payerCritical 0, High 1, Medium 1, Low 1, Note 7
3The lock, Cube and Board contracts, a fee-handling contract that has since been removed, their deploy script and the token documentCritical 0, High 1, Medium 0, Low 3, Note 8
4The coin-required redesign of the tabs contract (the stamp), the two-asset Cube, the Board's price limit and the launch-day callsCritical 0, High 0, Medium 2, Low 2, Note 3
5The round-four fixes, the SDK's coin handling, the signer fixes and the deploy scriptsCritical 0, High 0, Medium 5, Low 13, plus Notes
6The round-five fixes, re-checkedCritical 0, High 0, Medium 2, Low 7, plus Notes
7The round-six fixes, re-checkedCritical 0, High 0, Medium 3, Low 5, plus Notes
8The round-seven Mediums, re-checkedCritical 0, High 0, Medium 1, Low 4, plus Notes

Where it ends: round eight

  • No Critical or High finding is open. The reviewer's five questions are all answered yes: deploy the contracts with small amounts; a seller running the package; an agent running the wallet; the deploy script; the launch-day script.
  • The seller condition. The seller's file store must sit on one local filesystem with hard links, not a network drive, and several processes may share it only on one host. Beyond a few thousand live tabs each ticket gets slow.
  • The wallet condition. The wallet answer holds for a wallet folder that no 0.2.x build has used. A wallet folder must never be used by a 0.2.x build. According to round eight, nothing is on mainnet and the 0.2.0 tarball was withdrawn. The agent must also run upkeep on a timer (or pay through the MCP server, which does it) and use an RPC it trusts.
  • One Medium is open: C8-M1. A 0.2.0 process holding a second key in the same wallet folder is not guarded by the upgrade to 0.3.0. It is reachable only in that mixed setup, and no real money can be in that position today. Its small fix is written out in the report.
  • The Lows are documented in the reports. They are not listed here.

Every High and Medium, with its final status

RoundFindingFinal status
1High: one ticket could buy many callsFixed and confirmed by a later round. It was fixed in one process in round 5, re-opened across processes in round 7, and fixed and confirmed in round 8. The condition is the local file store above.
1Medium: junk tickets cost a seller up to 2^20 hashesFixed: a gap is refused before any hashing and a tab holds at most 2^17 payments. Checked in round 5.
2High: the wallet's root came from an unchecked cache fileFixed and confirmed in round 5, and still holds in round 6.
2Medium: two signer processes could get the same leafHolds within one leaf layout. The layout change and the 0.2.0-beside-0.3.0 cases became round 6 and 7 findings, listed below. One narrow gap remains: C8-M1.
3High: a reserve held to buy the coin on a market had no enforced priceResolved by removing the contract, as round 5 records. Settling now burns a stamp instead.
4Medium: a stranger could spend a seller's coin allowanceFixed: the key that settles pays the burn. Checked in round 5 with a fuzz test.
4Medium: the owner could raise the Cube share on open tabsFixed for open tabs: the share is pinned when a tab opens. Round 5 found the Cube address was still read at claim time, and round 6 confirmed that fixed. The owner's notice-gated withdrawal of the Cube's pot is disclosed above.
5Medium: a lying seller could take an agent's whole tab with one fake refusalFixed and confirmed in round 6. The fix opened the round-six finding on stranded tabs, below.
5Medium: after a rate cut and a restart, a seller never settled tabs it had servedFixed and confirmed in round 6.
5Medium: two seller processes on one file store served one payment twiceFixed and confirmed in round 6, re-opened in round 7, and fixed and confirmed in round 8.
5Medium: the wallet's cache rewrite followed a planted symlinkFixed and confirmed in round 6 for the actor named (someone with write access to the cache directory). A same-user race stays a Low that round 7 marked partly fixed.
5Medium: running the deploy script a second time deployed everything againFixed in round 6 with one gap, and that gap was fixed and confirmed in round 7.
6Medium: a lying seller could make an agent strand a tab deposit on every callFixed in the library in round 7 and in the MCP server in round 8. Two related Lows are partly fixed.
6Medium: the wallet's leaf layout changed with no migrationFixed for the cases found, with one narrower gap left: C8-M1.
7Medium: two processes on one file store served one payment twice againFixed and confirmed in round 8.
7Medium: the MCP server never ran upkeep, so it never refundedFixed: it now runs upkeep at start and every 10 minutes. Round 8 tested it.
7Medium: the wallet's upgrade guard was written too late, and only for the key in useFixed for the case it was found in: 0 of 1,100 upgrades beside a running 0.2.0 process repeated a leaf. One narrower gap remains: C8-M1.
8Medium: C8-M1, a 0.2.0 process on a second key is never guardedOpen. Reachable only in that mixed setup.

Each round only reviewed what it was given. The contracts have not changed since round six, and rounds seven and eight reviewed the SDK, the wallet and the deploy scripts.

What the rounds did not cover. No audit, and nothing is proven formally. Round 1 did not check the chain's data fee, its timestamp bounds or the RPC call gas cap, and it simulated freeze and pause on a fork by writing the token's own flags. A fork run is not mainnet.

What Preima rests on

Every payment rests on one assumption: nobody can find a preimage of keccak-256. The known quantum attack on that, Grover's search, halves the bit strength and no more, and a result that ordinary computers can do what quantum computers do would add nothing to it. A practical break of keccak-256 itself would break Preima, and most of the chain with it.

What the claim is

Preima removes the agent's elliptic-curve key. It does not make the chain safe from a signature break: the chain's operator keys and USDG's issuer keys are ordinary keys, and a break of those is outside this design. The claim is that there is no agent key to forge, nothing more.