Recorded attack attempts
Sixteen ways in. None of them should work.
The judges are locked and hold real testnet funds. Every attempt below is a real transaction against the real thing. If one succeeds, that is a bug, and we want to hear about it.
- 01
Try to take the funds as the deployer
- How
- Look for a key: near account list-keys $J network-config testnet now
- What should happen
- No keys: nobody can deploy new code, call as the judge, or change the mandate
- When we tried
- 0 keys after BQ5HJE71…; code hash = a local build (docs/results/g7/code-hashes.txt)
- 02
Try to send the funds anywhere but the investor
- How
- Read payout() on KeelLeg and KeelVault
- What should happen
- Both are immutable and equal the investor; the judge signs nothing else that moves funds
- When we tried
- Both checked after deployment (docs/results/g7/ai/evm.txt)
- 03
Try to trade as the manager
- How
- near contract call-function as-transaction $J propose_order json-args '{…}' … sign-as $ME
- What should happen
- mandate:not-the-manager
- When we tried
- B8aUXhfu…
- 04
Try to trigger the investor's emergency exit
- How
- … request_exit json-args '{}' … sign-as $ME
- What should happen
- mandate:not-the-investor
- When we tried
- F7ZC8LJV…
- 05
Try to keep a failing manager "alive"
- How
- … heartbeat … from your account
- What should happen
- mandate:not-the-manager
- When we tried
- pYG7UiSt…
- 06
Try to force an exit that has no reason
- How
- Attest a snapshot, then open_flatten while value is above the floor, the manager is heard from, and the investor has not asked
- What should happen
- flatten-not-triggered
- When we tried
- 5x4Jez8V…
- 07
Try to steal a guardian's reward by racing its call
- How
- open_flatten with a snapshot another account attested
- What should happen
- "only the account that attested this evidence may open a job on it"
- When we tried
- GpgYqSsa…
- 08
Try to lose money on purpose as the manager, then collect the rescue reward
- How
- open_flatten from the manager's account, even on evidence it attested itself
- What should happen
- mandate:manager-cannot-guard
- When we tried
- 5bbAPoJT…
- 09
Try to use the AI's key for anything but trading
- How
- Sign open_flatten or request_exit with the AI's function-call key
- What should happen
- Rejected by NEAR itself before the contract runs: "method name … isn't allowed by the access key"
- When we tried
- docs/results/g7/ai/attacks.md
- 10
Try to feed the judge a fake world
- How
- Take a real, finalized KeelLeg log, change its account value to 1,000,000 USD, call attest
- What should happen
- Read MPC confirms the real log, not yours: the payload hash cannot match and nothing is stored
- When we tried
- 4gcMUUad… (judge log "not attested", get_attested = null)
- 11
Try to call the judge's internal callbacks
- How
- … on_attested json-args '{…}' …
- What should happen
- "Method on_attested is private"
- When we tried
- CpuN7S9C…
- 12
Try to move funds with your own signature
- How
- Relay an order to KeelLeg or an exit to KeelVault signed by any key but the judge's
- What should happen
- Reverts BadSignature() (0x5cd5d233)
- When we tried
- both, docs/results/g7/ai/attacks.md
- 13
Try to over-leverage as the manager
- How
- Propose an order that takes leverage past the mandate
- What should happen
- mandate:leverage
- When we tried
- F8beikMX…
- 14
Try to get paid for a rescue that did not deliver
- How
- Settle when the leg is empty but the investor's balance did not rise (a liquidation)
- What should happen
- No reward: the leg is unverified or empty
- When we tried
- engine tests a_leg_that_empties_without_arriving_pays_nothing
- 15
Try to get paid twice
- How
- Settle again, confirm the same receipt again, open a second rescue
- What should happen
- no-open-job, evidence-reused, mandate:already-rescued
- When we tried
- GRxMc5xs…, 3GfZcKUt…, AyebfDKK…
- 16
Try to replay old evidence
- How
- Cite a snapshot or receipt the judge already used
- What should happen
- evidence-reused
- When we tried
- engine and contract tests
The live attempts
Every attempt we made, and the refusal
| Attempt | Refused with | Proof |
|---|---|---|
| A stranger requests the investor's exit | mandate:not-the-investor | NEARF7ZC8L…924c |
| A stranger proposes a trade | mandate:not-the-manager | NEARB8aUXh…8oNv |
| A stranger sends the manager's heartbeat | mandate:not-the-manager | NEARpYG7Ui…agWt |
| The AI's restricted key calls open_flatten | "Transaction method name <open_flatten> isn't allowed by the access key" | none: NEAR rejects it before inclusion |
| The AI's restricted key calls request_exit | "Transaction method name <request_exit> isn't allowed by the access key" | none: NEAR rejects it before inclusion |
| The manager account opens on the guardian's evidence | only the account that attested this evidence may open a job on it | NEAR9Cen8Y…bsGK |
| Another account opens a job on the guardian's evidence | only the account that attested this evidence may open a job on it | NEARGpgYqS…JVwj |
| Anyone calls the private attestation callback | Method on_attested is private | NEARCpuN7S…hDLX |
| An exit with no trigger | flatten-not-triggered | NEAR5x4Jez…PNYK |
| A forged snapshot (account value 1M USD) sent for attestation | judge log: "not attested hyperevm:0x011590c6d011222119229459a1fa75b18439ac1398f124e10561e9655b06db2f:0"; stored: null | NEAR4gcMUU…QBac |
| A self-signed order relayed to KeelLeg | reverts 0x5cd5d233 = BadSignature() | eth_call on 0x58675f5d6b9dd6394bD635b92Be9341B44F136DA |
| A self-signed vault exit relayed to KeelVault | reverts 0x5cd5d233 = BadSignature() | eth_call on 0x9AB31b03dDa4e1F08cD2f2fC8a1FFA69a5D7Cd0c |
| The manager account opens on evidence it attested itself | mandate:manager-cannot-guard | NEAR5bbAPo…k7vL |
| Settle again after the rescue | no-open-job | NEARzKXSLr…XiJs |
| Confirm the same exit receipt again | evidence-reused | NEARAhG4D5…1i6n |
| Open a second rescue | mandate:already-rescued | NEARAkCFZL…TJ3J |
| The AI proposes after the rescue | mandate:strategy-not-active | NEAR9azorq…WegE |
| Settle again after the rescue | no-open-job | NEARGRxMc5…3Bfh |
| Confirm the same exit receipt again | evidence-reused | NEAR3GfZcK…YLd1 |
| Open a second rescue | mandate:already-rescued | NEARAyebfD…Nd9Y |
Targets: judges keel-ai-76e036.testnet, keel-human-c0caa7.testnet on NEAR testnet. The full instructions, with commands, are in docs/try-to-break-it.md.