Pushed 1 commit to main
- b502e46 docs(audit): QCAI stage 1 report and assessment of each finding · MariaSherlin-A

A vault on the QoreChain testnet whose owner's private key is published on purpose, on the website and in the repository. Anyone can copy it and try to empty the vault. Nobody can: the account also has a second, post-quantum key (ML-DSA-87), and both the chain and the vault contract ask for it. Next to it sits an identical vault with the second lock switched off. The same published key robs that one every time. On Q-Day, quantum computers will be able to work out ordinary private keys from public data, so every ordinary key becomes, in effect, a published key. This project skips the wait: the key is public today, and the money is still there. Try it at https://steal-this-vault.vercel.app: the attack lab runs 18 real theft attempts from your browser with the published key, against the live testnet. Every number on the page is read from the chain.
Contracts (Solidity): QorePQC wraps the pqcKeyStatus (0x…0A02) and pqcVerify (0x…0A01) precompiles and fails closed. HybridAuth checks dual-signed intents: secp256k1 (EIP-712) plus ML-DSA-87 over a domain-separated message that binds chain id, vault, recipient, amount, nonce and deadline, so signatures cannot be replayed or redirected. Vault is one bytecode with one immutable flag (postQuantum), deployed twice: the hybrid vault and the one-lock control. Refusals are counted on chain with their reason, including "counterfactual loss": what a one-signature vault would have paid. Chain protection used: an ML-DSA-87 key registered with proof of possession (hybrid signatures required on the native lane), and an EVM authorisation window scoped with allowedTargets to the two vaults. Attack runner (TypeScript, @qorechain/sdk + viem): 18 attacks with the published key across the native lane, the EVM lane and the vault, shared by the website and a CLI (npm run heist). Keeper (GitHub Actions): renews the scoped window, refills the control vault, proves the vault pays its owner with both keys, and has a drill mode for the Q-Day Drill. Website (React + Vite, Vercel): live chain data only; the SDK loads lazily; QoreX connect and signAndBroadcast let visitors add testnet QOR to the vault with their own hybrid signature. Tests: contract tests on a local EVM running a real ML-DSA-87 implementation at the precompile addresses, plus unit tests for every package; CI on every push. Built with Claude Code; every step, check and mistake is logged in docs/AI_LOG.md.
Pushed 1 commit to main
Pushed 1 commit to main
Pushed 1 commit to main
Pushed 1 commit to main
New project.