( Attack drill · QoreChain Diana )
A full classical compromise, refused on chain.
Two of three multisig keys are in the attacker’s hands. They propose an implementation that drains the vault, then try every path around the guardian. Each row below is a real Diana transaction.
Attack transactions sent. Every one reverted with the expected error.
jUSD in the vault before and after the drill. Demo token, testnet only.
Changes to the implementation, the nonce or the balance during the drill.
Guardian veto, signed offline with ML-DSA-87 and verified by pqcVerify.
( Fresh attack, not a replay )
A new drain proposal is live. Try to get it past the gate.
The compromised 2-of-3 multisig proposed this against the current V2 proxy. Every check on the right is a read-only eth_call against Diana. No wallet, no transaction, no keys.
Reading the live proxy from Diana...
The gate checks the guardian approval before the delay. It has none.
A fresh foreign ML-DSA-87 key signs the exact digest and tries to approve.
An EOA calls the proxy upgrade function, bypassing the gate.
( replay )
The compromised multisig tries to ship the drain.
Seven recorded transactions. Real revert reasons, real hashes. This is a replay, not a new on-chain run.
- OKcompromised multisig proposes drain upgradeUpgradeProposed
- REVERTclassical-only executeNotApproved
- REVERTforeign guardian key approveInvalidSignature
- REVERTguardian signature over an altered intentInvalidSignature
- REVERTdirect proxy upgradeNotAdmin
- OKguardian vetoUpgradeVetoed
- REVERTexecute after vetoOpNotPending
Reading the live proxy from Diana...
The attempts
| Attempt | Expected | Observed | Transaction |
|---|---|---|---|
| Compromised multisig proposes drain upgrade | proposal accepted, no approval | UpgradeProposed | 0x43cf1ada…6caf8fec |
| Classical-only execute | NotApproved | NotApproved | 0x6337b838…acde5b94 |
| Foreign guardian key approve | InvalidSignature | InvalidSignature | 0x2a077acc…e87b274b |
| Guardian signature over an altered intent | InvalidSignature | InvalidSignature | 0x136bace0…b5040dba |
| Direct proxy upgrade | NotAdmin | NotAdmin | 0x6ffdaaf6…25de12db |
| Guardian veto | UpgradeVetoed | UpgradeVetoed | 0x7ec54316…0e092880 |
| Execute after veto | OpNotPending | OpNotPending | 0x6573f0a5…add11a33 |
Drain opId 0x329407bf…98ba6d2a. The multisig is a 2-of-3 stand-in for a Safe, labelled as such. Raw output: diana-attacks.json. The same operation is indexed in Janus Watch.
( The legitimate upgrade )
The same gate lets the real change through, after review, delay and a guardian signature.
The review receipt 0xa8bc87b4…bc7a26ba binds commit ec0aec3 and the QCAI Stage 2 report. It’s recorded in the execution event.
| Step | Result | Transaction |
|---|---|---|
| Multisig owner A submits propose | success | 0xebb6e783…bc6e5b83 |
| Multisig owner B approves | success | 0x81fe8a20…b0c126b0 |
| Multisig executes, gate emits UpgradeProposed | success | 0xd32823d0…ec0c76a9 |
| Janus Lens rebuilds intent from chain, checks artifact and review receipt | no blockers, see lens-legit-upgrade.txt | read-only, no tx |
| Guardian signs exported intent offline, relayer submits approve | success | 0x60f19462…bd409b61 |
| Execute before the 120 s delay | DelayNotElapsed | 0x05ab0ed2…cf9428d6 |
| Execute after the delay, gate emits UpgradeExecuted with reviewHash | success | 0xd7488928…20cfac28 |
Reading the proxy from Diana…
Contracts on Diana, chain ID 9800
| JanusGate | 0x1cEc24a6F662f67dF8c1D762Bb8311343CD447c3 |
| JanusProxy | 0x4EDd5b27B8E09633bE06AA096C3bFF7a2efc082A |
| JanusDemoMultisig (2-of-3 stand-in) | 0x1B9D71705eb75e55a4087E4a0Ff93e086300DC59 |
| LendingVaultV1 | 0x770D9237C83Cfc19ee8aC3559E51c978721447bb |
| LendingVaultV2 (legitimate) | 0x76976e32eAbe6F27CdbC9D370E50b9343B6c9621 |
| LendingVaultV2Drain (attack) | 0x879Ae0980Afa9DFECb19B246B6683CAC4a3DC839 |
Deployed from commit ec0aec3, the source audited in QCAI Stage 2. The PQ precompiles are active on Diana testnet only, not mainnet.
