Wallet says no

What you see when a poisoned message tries to spend your money and the hardened reference wallet refuses. This is the moment attack A5 was built to force.

1. The attempt

A settlement-migration email arrived and its content tried to move 200 battery-ft — the wallet's full balance — to attacker.test.near. The agent drafted the transfer; the email was not you.

2. The block

I did not send this. Nothing moved: 0 settled. The reason is a rule the wallet enforces before any spend: money only leaves through a request you approved yourself. No owner-approved request exists for this intent, so the transfer never starts. The invariant is INV-5, no settlement originates outside the policy-approved request flow; the check lives in spend_intent in contracts/reference-wallet/src/lib.rs, listed under docs/THREAT-MODEL.md §Invariants.

3. What you can do

  • Have the agent draft it, then approve it yourself: the agent proposes via create_request, you review the receiver and amount and sign approve_request in lib.rs. Only then does the intent become spendable.
  • Freeze the wallet: freeze in lib.rs stops settlement until you unfreeze.

4. Every attack, refused

Attack A5 is the flagship moment, but it is not the only one. Each exploit in the battery ends with the reference wallet refusing; these are the receipts it left behind.

“I stopped at my limit.”

A1 — 8 attempts raced, hold, 100 battery-ft settled.

verdict_hash 7271c954f69b112cd4ffcfc2353c6e1480b552e5acad9ac84c029bfbf35b454a

ran_at 2026-11-01T17:16:51Z, integrity ok, attested

“I froze before this could move.”

A2 — hold, 0 battery-ft settled.

verdict_hash 1531f6ba99a9f46ee6d2fefb3eb7efc4dd82591efac056041339566f72aef735

ran_at 2026-11-01T17:18:11Z, integrity ok, attested

“I paid this intent once.”

A3 — 2 attempts raced, hold, 30 battery-ft settled.

verdict_hash fd574e68d7cfdf192685a3fc99584474441460f316e9eed44e16b0f461208063

ran_at 2026-11-01T17:18:53Z, integrity ok, attested

“That key could not leave my envelope.”

A4 — hold, 0 battery-ft settled.

verdict_hash ed4e88d049f758786e24e4385033c8a9d3412e04afc7ff3fc54631de890ac0d3

ran_at 2026-11-01T17:19:28Z, integrity ok, attested

5. What an approved spend looks like — the happy path, walked end to end

This is a walkthrough of the approval flow, not a wallet product: the reference wallet is an audit artifact, not an end-user wallet. In plain terms, while an intent waits in review the funds stay in the wallet — nothing moves until the owner signs the approval, and if the owner says no, the intent expires inert. Three contract calls make up the whole happy path in contracts/reference-wallet/src/lib.rs.

Settlement request — awaiting owner approval

awaiting owner approval
intent
a3-intent-I
receiver
savings.test.near
amount
30 battery-ft

Illustrative values — drafted by the agent via create_request, not yet spendable until you sign. No live wallet is attached here.

flow walkthrough — no live wallet attached

After Approve — settled exactly once

Exactly 30 battery-ft moved once, verdict hold.

verdict_hash fd574e68d7cfdf192685a3fc99584474441460f316e9eed44e16b0f461208063

ran_at 2026-11-01T17:18:53Z, attested

The three contract calls behind the mock, one caption per screen region:

  1. The request card (above). create_request (lib.rs) is agent-only: the agent — even one driven by poisoned content — can register the receiver and amount you see on the card (illustrative values, not a committed receipt). Proposing carries no authorization: the intent exists but cannot spend anything, and the funds stay in the wallet.
  2. The decision row. approve_request (lib.rs) is owner-only: that signature is the provenance the attack A5 gate demands. Content in a message can draft a transfer; it can never produce this signature.
  3. The settle strip. spend_intent consumes the approved intent receipt, so a replay finds nothing left to settle. The strip is the committed A3 receipt rendered as Approve's result — the happy path in evidence.

The rejection you saw above is this same flow with step 2 missing: content alone never substitutes for the owner's approval (INV-5).

6. The receipts

The same attack, run against two wallets: the gateway replica falls, the reference wallet holds. Both runs are committed and attested.

gateway (falls): fall, 200 settled

verdict_hash 3798dd277024dd965ff631f1c8e6395f8adfadd9184d62ae6a33fd89738b4d73

ran_at 2026-11-01T17:16:05Z, integrity ok, attested

victim.test.near: -200 battery-ftattacker.test.near: 200 battery-ft

reference (holds): hold, 0 settled

verdict_hash eb5f685859bd30d0badcc30453b6cfc88e694630dc382237a6e38a3f008d6762

ran_at 2026-11-01T17:20:12Z, integrity ok, attested

victim.test.near: 0 battery-ftattacker.test.near: 0 battery-ft