Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Trail of Bits 4 min read How-to hardMaster

After Binance, check what your signing systems can approve

Binance's October 2026 breach showed that attackers who compromise a service allowed to request signatures can misuse a protected key without ever extracting it. Here the attacker obtained a signed EIP-7702 delegation that persisted on-chain and enabled repeated drains, including of later deposits, with no further signatures. Signing policies and monitors that only watch transfers and ownership changes miss authority shifts via EIP-7702 authorizations, Safe modules, session keys and ERC-4337 UserOperations. A four-step checklist follows, each step with verification tests: inventory and isolate signing access, treat delegation as an admin privilege with separate approval and simulation, add custody limits the operational key cannot bypass, and alert on wallet authority changes.

Assumes: Ethereum accounts and transactionsEOAs and smart contract walletsAccount abstraction basics

Related posts

  • How Trail of Bits helps verify the integrity of your Signal chats

    Trail of Bits easyNovice

    Signal's Automatic Key Verification is a key transparency system that keeps a globally consistent, auditable map from phone numbers to public keys, so a compromised server cannot quietly hand out a false key. Trail of Bits runs one of three independent auditors, alongside Signal and Cloudflare. Its auditor is an independent open-source implementation that tracks each new entry in a local Merkle tree and periodically signs tree heads from a single consistent lineage. Clients require signatures from all three auditors within the last seven days, which caps a split-view attack at about one week before warnings appear.

  • State divergence enables unauthorized access

    Trail of Bits mediumAdept

    Provenance Blockchain's marker module let any account grant itself ACCESS_ADMIN, mint and withdraw rights on non-fixed-supply markers. The authorization check compared the caller's bank balance to a stale supply field on the marker struct that stays zero, so a caller holding nothing passed via 0 == 0. Two transactions were enough to mint arbitrary tokens or drain escrow, putting 82 mainnet markers and about $500,000 in escrowed nhash at risk. The fix reads live supply from the bank module and adds an explicit zero-supply guard, illustrating that an authorization predicate must never be satisfiable from an attacker's default state.

  • Building secure Uniswap v4 hooks

    Trail of Bits hardMaster

    Uniswap v4 hooks shift security responsibility onto application code: the PoolManager enforces swap math, callback sequencing and end-of-session settlement, but not a hook's authorization or internal accounting. Drawing on audits and incidents like Cork (~$12M) and Bunni ($8.4M), seven recurring failure patterns emerge: unchecked callers, trusting arbitrary PoolKeys, leaky custom accounting that still passes settlement, logic in the wrong callback, address permission bits out of sync with implemented callbacks, non-essential hook code blocking exits, and shared state mutating across nested callbacks. Fixes include BaseHook/SafeCallback caller checks, pool allowlists keyed by PoolId, separate balance buckets, try/catch for optional calls, and fuzzing adversarial scenarios with Echidna and Medusa, packaged as checklists for builders and auditors.

  • Introducing Automatic Key Verification

    Signal mediumAdept

    Signal's automatic key verification uses key transparency to confirm that the binding between a phone number or username and its public key is globally consistent, giving the same protection against a compromised directory as comparing safety numbers, without meeting in person. The design is an append-only log of key changes. Each entry has a sorted index snapshot, which lets clients binary-search for a contact's key in about 30 lookups over a billion entries. Key owners monitor the same entries to confirm their own key is listed correctly. Third-party auditors (Cloudflare and Trail of Bits) sign each log entry once, which keeps the directory operator from showing different views to different users.

  • Don't let TEEs break your MPC

    Trail of Bits hardMaster

    Running threshold signature MPC protocols inside TEEs only helps when the TEE is treated as defense in depth rather than a substitute for a sound protocol. The untrusted host still controls I/O, storage and scheduling. It can roll back the filesystem after a signer deletes a used pre-signature, forcing nonce reuse and leaking the private key share. Correct attestation can effectively lift semi-honest protocols toward malicious security by guaranteeing peers run the expected code. In practice that fails through recurring pitfalls: incomplete measurements (as in the WhatsApp Private Inference LD_PRELOAD bug), skipped quote and certificate-chain checks, unhardened images, stale backups and malleable LUKS2 headers, physical attacks like TEE.fail and DDRop, vendor centralization, and lenient default TCB policies. The recommended practices are binding attestation to MPC party identities, reproducible builds with binary transparency, and enforcing freshness and stricter security version checks.

The quest for software engineering knowledge.

Look:
Layout: