Recent

↑ ↓ to move ↵ to open esc to close

Offline EVM Calldata, EIP-712 Safe Hash & EIP-7702 Risk Visualizer

Zero-network ABI selector decoder, deterministic Keccak-256 Safe multisig verifier, and Pectra SetCode delegation inspector.

OFFLINE SANDBOX (connect-src 'none') Zero network uploads | Client-side deterministic execution
Tool Verification Scope & Threat Model
The DT.gl Calldata and Signature Auditor decodes raw EVM hexadecimal payloads, EIP-712 typed structures, and EIP-7702 SetCode authorization tuples entirely inside a network-isolated browser tab. It computes deterministic Keccak-256 Safe multisig domain and transaction hashes locally while flagging proxy storage takeover vectors such as operation 1 DELEGATECALL before hardware confirmation.

Verification Scope & Threat Boundary

This workbench eliminates blind-signing divergence between a browser dashboard and a physical hardware signer screen. Rather than querying an external RPC or block explorer, it runs pure-TypeScript 24-round Keccak-f[1600], ABI word unpacking, and RLP decoding locally inside Chromium or Gecko RAM.

EVM Calldata, Safe EIP-712 Digest, and EIP-7702 Byte LayoutEVM PRE-SIGNING PIPELINE (LOCAL KECCAK-256 & RLP PARSER)1. ABI CALLDATA: Safe.execTransaction (0x6a761202)0..3: selector4..35: address to36..99: val + data*100..131: op=1 DELEGATE132+: gas + data[]2. EIP-712 SAFE DIGEST: keccak256(0x1901 || domainSeparator || safeTxStructHash)Prefix 0x1901domainSeparator (chainId + Safe)safeTxStructHash (to, val, H(data), op, nonce)3. EIP-7702 SET_CODE: keccak256(0x05 || RLP([chain_id, delegate, nonce]))If chain_id == 0 (0x80), signature replays across every EVM network to delegate EOA code.

Audited Selectors & Critical Byte Checks

Selector / PrefixSignature / EnvelopeCritical Risk ConditionFailure Mode Caught
0x6a761202Safe.execTransaction(...)Word 3 (bytes 100..131) equals 1 (DELEGATECALL)Proxy slot 0 masterCopy overwrite (Bybit $1.46B)
0x05 / 0x04 TxEIP-7702 AuthorizationTuplechain_id === 0 (0x80) or unverified delegateOmnichain EOA takeover (Pectra Sweepers)
0x2b67b570Permit2.permit(...)amount >= 2^120 or multi-year expirationOff-chain gasless batch token drain via drainer kits
0xd505accfERC2612.permit(...)value == uint256.max (0xff..ff)Unbounded off-chain approval signed as plain login message
0x095ea7b3ERC20.approve(spender, val)Infinite allowance to unverified EOA / proxyPersistent transferFrom balance drain until revoked
0xa22cb465setApprovalForAll(op, bool)approved === true (0x01)Total ERC-721 / ERC-1155 collection sweep authority
0x3659cfe6upgradeTo(address) / upgradeToAndCallUnverified newImplementation addressEIP-1967 implementation slot replacement

Deterministic Safe v1.3.0 / v1.4.1 Digest Formulas

Hardware signers lacking full ERC-7730 clear-signing descriptors still compute and display domainSeparator and safeTxHash. Tab 2 evaluates exact Ethereum 0x01-padded Keccak-256 hashes over these canonical preimages:

DOMAIN_SEPARATOR_TYPEHASH = 0x47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218
SAFE_TX_TYPEHASH          = 0xbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d8

domainSeparator  = keccak256(DOMAIN_SEPARATOR_TYPEHASH || uint256(chainId) || word(safeAddress))
safeTxStructHash = keccak256(SAFE_TX_TYPEHASH || word(to) || word(value) || keccak256(data) || word(op) || ... || word(nonce))
safeTxHash       = keccak256(0x1901 || domainSeparator || safeTxStructHash)

Limits & Offline Network Verification

  • Scope Boundary: Pure static decoding flags structural hazards (DELEGATECALL, infinite approvals, chain_id=0) and verifies Safe hashes; it does not simulate arbitrary solidity EVM state execution or proxy storage reads. Pair with an independent on-chain TransactionGuard blocking operation == 1 documented in Major Crypto Incidents.
  • Zero-Telemetry Check (connect-src 'none'): Open DevTools (F12 -> Network), confirm Content-Security-Policy: connect-src 'none'; form-action 'none', trigger all presets, and verify zero outbound requests.
  • Next Verification Step: Audit recipient address integrity and RPC IP leaks in the Wallet RPC & UTXO Auditor and Self-Custody Hardware Matrix.

Frequently Verified Technical Questions

Why is operation equal to 1 inside a Safe multisig transaction considered critical danger?

In Safe smart accounts, operation 0 executes a standard external CALL where the target contract modifies only its own storage, whereas operation 1 executes a DELEGATECALL. Under DELEGATECALL, untrusted target bytecode runs inside the Safe proxy storage context and can overwrite slot 0 to hijack ownership.

Primary Reference: Safe Smart Account Contract Specification

What makes an EIP-7702 authorization tuple with chain_id equal to 0 uniquely hazardous?

Under Ethereum Pectra EIP-7702, signing a magic 0x05 authorization tuple writes a delegation designator into an externally owned account code slot. Setting chain_id to 0 acts as an omnichain wildcard, allowing an attacker to replay that single signature across Ethereum, Arbitrum, Base, Optimism, and Polygon simultaneously.

Primary Reference: Ethereum Improvement Proposal EIP-7702

How does Ethereum Keccak-256 differ from the standardized NIST FIPS 202 SHA3-256 hash?

Both algorithms execute the identical 24-round Keccak-f 1600-bit sponge permutation with a 1088-bit rate and 512-bit capacity, but they differ in domain separation padding. Ethereum Keccak-256 appends delimiter byte 0x01 prior to the final 0x80 bit, whereas NIST FIPS 202 SHA3-256 appends delimiter byte 0x06.

Primary Reference: NIST FIPS 202 SHA-3 Standard

Can this calldata auditor verify transactions without querying Etherscan or an RPC node?

Yes. This page enforces a strict HTTP Content-Security-Policy with connect-src set to none, blocking every fetch, XMLHttpRequest, and WebSocket connection at the browser engine boundary. All selector lookups, RLP decoding, and 24-round Keccak-256 hash derivations run deterministically in local memory.

Primary Reference: W3C Content Security Policy Level 3

Cryptographic & Editorial Revision Ledger

Published: | Last Verified:

  • 2026-11-11: V1 zero-telemetry operator manual covering pure-TypeScript Keccak-256, Safe v1.3.0/v1.4.1 hash verification, Permit2 allowances, and EIP-7702 chain_id=0 wildcard detection.