Your Safe transaction hash does not match: attack or mistake, and what to do now

A hardware wallet and an offline terminal each show two hash lines; the top lines are joined and ticked, the bottom lines differ and are crossed; below, a small decision tree branches from the crossed line to three boxes, one of them a stop sign

A Safe transaction hash mismatch means your hardware wallet and your checking tool hashed different inputs. Usually that is a setting, such as the wrong network, Safe or Safe version. Sometimes it is a changed transaction. Do not sign until you can reproduce the device's exact hash from fields you understand.

You cannot know which case you are in until you find what differs, and "it's probably a setting" is exactly what an attacker needs you to think. This guide is a decision tree by symptom, with every branch computed on a synthetic transaction. How the hashes are built and how to recompute them is in verify a Safe transaction on Ledger; this page starts where that check fails.

The short answer

  1. Do not sign while the hashes differ. Not "just this once", not because the deadline is close.
  2. Find which hash differs: the domain hash, the message hash, or both. Each points to a different set of causes.
  3. Explain it with fields you can read. A mismatch is benign only once you reproduce the device's exact hash from fields you understand and agree with.
  4. If you cannot explain it, reject and have the transaction re-proposed from a clean source. If you already signed something you now doubt, consume its nonce.

First: are you comparing the same hash?

Rule out the simplest false alarm first: two different hashes compared with each other. A device shows the domain hash and the message hash. Safe{Wallet} and the Safe API index the SafeTxHash, which combines the two. A block explorer shows the hash of the execution transaction. These are four different values for one Safe transaction, and none of them should equal another. The which hash is which section of the Ledger guide lists them.

Two harmless differences to rule out: letter case (the safe-tx-hashes-util README prints domain and message hashes in upper case; hex is the same number either way), and a shortened display (0x2876acb9…bf6edd6f). Compare full values, not the ends.

And if your device shows no domain or message hash at all, check whether you are executing rather than signing. Then your device signs an ordinary Ethereum transaction calling execTransaction: it shows that call and, with the hash setting on, that transaction's own hash, which will not equal any Safe hash. Check to, value, operation and data against your review, or confirm your signature first without executing to keep the hash check.

The decision tree

  1. Same kind of hash on both sides? No: compare like with like, then come back.
  2. Domain hash differs? The chain ID, the Safe address or the Safe version is not the one the other side used. Check those three. Usually a setting.
  3. Domain matches, message hash differs? At least one of the ten transaction fields differs, or the tool uses another type format. Find the field. Benign only for a typo or a version setting you can reproduce; a change in value, data, operation or refund fields is a stop until the proposer explains it on a second channel.
  4. Both match, but the screen, the UI or the intent says something else? The hashes prove both sides hashed the same fields, not that the fields are right. Stop.
  5. Nothing matches, and you sign for a Safe that owns another Safe, or you were asked to sign a message? That can be expected. Check what you are actually signing.
  6. Still unexplained? Reject. What to do now.

Every branch below comes from one offline run on 2026-11-16: the synthetic six-call batch of the review guide (Safe 0x…0a1, chain ID 1, nonce 42), changed one thing at a time, hashed by Guard's code, viem and plain cast, which agree on every variant they support. The downloadable example lists each variant's chain, Safe and ten fields, and we recomputed every hash below from that file alone with the cast recipe. Batch A, as proposed: domain hash 0x2876acb9…bf6edd6f, message hash 0xc11acd49…6ad30201.

The domain hash differs: chain, Safe or version

The domain hash covers only the chain ID and the Safe address, and, for older Safes, only the address. A different domain hash means the two sides disagree on where the transaction is valid, not on what it does.

You do not need to read the hex. Look at which column changed and read the last column.

One changeDomain hashMessage hashUsual cause
Chain ID 10 instead of 10x4507a209…4e94ebf7unchangedThe tool is set to the wrong network. The same Safe address on two chains has two domain hashes.
Safe 0x…0a3 instead of 0x…0a10x76ed2fe6…e7f545e2unchangedThe tool or the page points at another Safe of yours. If nobody on your side chose that address, treat it as an attack until shown otherwise.
Hashed as a v1.0.0 to v1.2.0 Safe0x660b01a6…32e17aafunchangedThe tool assumed the wrong Safe version.

v0.1.0 also uses the address-only domain; its message type differs too, see the rare cases below.

The version row needs one fact from the Safe contracts themselves (source at each release tag, for example GnosisSafe.sol v1.2.0 and v1.3.0, read 2026-11-16): from v1.3.0 the domain is EIP712Domain(uint256 chainId,address verifyingContract); v0.1.0 to v1.2.0 use EIP712Domain(address verifyingContract), with no chain ID. Your Safe's version is the public VERSION constant on its contract, present in every release we read. safe-tx-hashes-util asks for the version in --interactive mode, with a default taken from the Safe API when it answers; check it against your Safe's real version.

Benign when: you set the tool to the right chain, Safe and version, and its domain hash now equals the device's. Stop when: the device's domain hash only matches another chain or another Safe than the one you meant to sign for.

The message hash differs: which field?

The message hash covers the ten SafeTx fields. Any change, in any of them, moves it completely: the hash tells you that something differs, never what. So the method is always the same: get the ten fields from both sides and diff them.

One changeMessage hashBenign or stop
Nonce 43 instead of 420xb9c52123…1c82ce61Often a typo, or the next transaction in the queue. Benign once both sides use the nonce of the transaction you reviewed.
Value 1 ETH instead of 00xae3ca53b…2b12d561Stop until the proposer confirms the value on a second channel and it matches the intent.
data: one byte in 1,220 differs (call 5 becomes a delegatecall)0x28e2680d…5b810d4fStop. Decode both payloads. A harmless and a hostile data change produce equally random-looking hashes.
Gas price 1 and refund receiver 0x…0f1 instead of 0 and the zero address0xc5359e93…1f9b9f14Stop. Refund fields can pay someone from the Safe at execution. safe-tx-hashes-util warns that a custom gas token with a custom refund receiver "can be used to hide a rerouting of funds through gas refunds".
The payroll transfer alone, operation 1 instead of 00xd981d420…f669213e (reference 0x6236bbd9…415a1a4e)Stop. A delegatecall runs the target's code with your Safe's storage and authority. Never benign on a transfer.

In every row the domain hash stayed 0x2876acb9…bf6edd6f. A matching domain hash says nothing about the transaction.

Rare cases: very old Safes and the message type

A v0.1.0 Safe. With all ten values identical, hashing the transaction type as v0.1.0 does (dataGas, not baseGas) gives message hash 0x2d8c26ae…000337c7 instead of 0xc11acd49…6ad30201. Only v0.1.0 used that type name, so on a newer Safe it is a tool setting. Benign once the version is right.

The message type. A Safe off-chain message is signed as SafeMessage(bytes message), in the same domain as transactions (CompatibilityFallbackHandler.sol v1.4.1, read 2026-11-16). For a synthetic sign-in text on Safe 0x…0a1, our run gives domain hash 0x2876acb9…bf6edd6f, the same as batch A, and message hash 0x73186d84…4953e99a, which no set of transaction fields will reproduce. The same code reproduces all four hashes of the off-chain message example in the safe-tx-hashes-util README, which computes these with --message.

A different transaction at the same nonce

The other common cause is not a changed field but a different transaction: the proposer re-proposed with a fix, or someone queued a second one at the same nonce. Your tool hashed one, your device signs the other. safe-tx-hashes-util, when the API returns several transactions for one nonce, prints: "This occurrence is normal if you are deliberately replacing an existing transaction. However, if your Safe interface displays only a single transaction, this could indicate potential irregular activity requiring your attention." Its README adds that in --interactive mode no such warning is shown. Ask who proposed each one, and sign only the one whose fields you reviewed.

Both match, but something else is wrong

The quietest case is no mismatch at all. Your tool and your device agree, but the Safe interface described a different action, or the decoded calls are not what the proposer said, or the nonce is not the next one. A match only proves that both sides hashed the same fields. If those fields came from the same compromised page, the match confirms the attacker's payload. That is the Bybit shape, rebuilt as version B in the review guide.

Stop, and get the fields from a source that did not come from that page. Then review what they do.

Nested Safes and off-chain messages: mismatches that are expected

You sign for a Safe that owns the Safe

Your device shows the hashes of your own Safe's transaction, a call to approveHash on the other Safe. The other Safe's SafeTxHash appears only inside its data. So no hash on your screen will equal the one your teammates on the other Safe compare. Check instead that your own hashes match, and that the SafeTxHash written into the approveHash call is the one you reviewed. The Ledger guide computes this case in full under nested Safes.

You were asked to sign a message, not a transaction

A Safe off-chain message is signed in the same domain as your transactions, with a different message type, so its message hash will never match any set of transaction fields. The rare cases above give the computed values.

So a device that shows your Safe's domain hash with an unexplainable message hash may be signing a message. That is not harmless by default: a signed Safe message is a valid signature for your Safe through isValidSignature, the check protocols use to accept a Safe's signature, and a protocol may accept it as authorization. Know what the message says and who asked for it.

What to do now

You have not signed

  • Do not sign. Tell the other signers there is an unexplained mismatch at that nonce, through a channel other than the Safe interface.
  • Ask the proposer for the ten fields on that channel, and rebuild the hashes yourself. If they now match your device and the fields make sense, the mismatch was a setting. Write down which one.
  • If not, reject and have the transaction re-proposed from a clean machine, then review it again from the start.

You or someone else already signed it

A signature stays usable until the nonce is used. Safe's help center: "The only way to ensure that your signature cannot be used by someone else, is to 'consume' the nonce of that transaction." That means executing another transaction at the same nonce, such as Safe{Wallet}'s on-chain cancellation. Deleting the transaction from the queue is not enough: "deleting a transaction from our service does not invalidate the transaction data", and since the queue is public, "anyone can copy the fully signed transaction and execute it" (Safe help, retrieved 2026-11-16).

If the doubtful transaction already has enough signatures, the race is real: anyone who has them can execute it before your cancellation lands. Get the cancellation signed and executed first, and treat the case as an incident: find out which machine or page produced the payload before anyone signs anything else.

When in doubt

A cancellation costs a fee and one more round of signatures. Signing the wrong thing can cost the Safe. When you cannot explain the difference, do not sign; reject and re-propose from a clean source; and burn the nonce if a suspicious transaction was signed.

What Guard does with a mismatch

Hacking Guard does not trust the hash the Safe API hands it. It recomputes the hash from the fields, in both domain formats, and compares. We ran that check, from Guard's engine, on batch A with three indexed hashes:

  • Indexed hash matches the fields: safe_tx_hash_match passes.
  • Indexed hash is the nonce-43 hash while the fields say nonce 42: safe_tx_hash_mismatch fails; Guard's operator recommendation is BLACK, "Do NOT sign. Raise an incident."
  • Safe v1.4.1 whose indexed hash only matches the pre-1.3.0 domain: safe_tx_hash_mode_unexpected fails; also BLACK.

Guard cannot see your device's screen, so the last comparison stays yours: its report gives you the domain and message hashes to look for. A refusal is a stop sign, not a lock: your owners can still reach the threshold, and your team reads the report and decides.

Questions signers ask

Can a Safe hash mismatch be harmless?

Yes, often: a tool set to the wrong network, Safe address or Safe version, or a typo in the nonce. It counts as harmless only once you set the tool right and reproduce the device's exact hash from fields you understand. Until then, treat it as an attack.

Which hash changes when the nonce is wrong?

Only the message hash. The domain hash covers the chain ID and the Safe address, so it stays the same for every transaction of that Safe on that chain. A matching domain hash says nothing about the transaction itself.

Does deleting a transaction from the Safe queue cancel my signature?

No. Safe's help center says deleting it from the service does not invalidate the transaction data. A signature stays usable until its nonce is used, so the only sure way is to execute another transaction at the same nonce, such as an on-chain cancellation. See what to do now.

My device shows no domain or message hash at all. Is that a mismatch?

Not necessarily. If you are executing, your device signs an ordinary Ethereum transaction calling execTransaction: it shows that call and, with the hash setting on, that transaction's own hash, which will not equal any Safe hash. Check to, value, operation and data against your review, or confirm without executing first to keep the hash check. What the device shows in each case: which hash is which. If you are only signing, turn on your device's hash display.

Check one with a report

The free check sends a signed report: every call unpacked, a verdict and, for a pending transaction, the two hashes your device should show. If the Safe API's hash does not match the fields, Guard's recommendation is BLACK: "Do NOT sign." It needs no account. It works for any Safe transaction.

Analyze the sample transaction

Or see what Hacking Guard checks. Let's stop funding Lazarus.

About this guide

Published by Runtime Guard. We build Hacking Guard. The worked example is an offline script we ran on 2026-11-16 (scripts/run-hash-mismatch-example.ts, cast 1.7.1): it rebuilds batch A of the review guide, checks it against the values published there, then applies nine one-change variants and hashes each with Guard's code, viem and cast (cast and viem only for the v0.1.0 type, which Guard does not implement), hashes one synthetic off-chain message, and runs Guard's hash integrity check on three cases. Nothing was deployed, simulated, signed or broadcast; no hardware wallet, Safe{Wallet} page or third-party tool was run. Type strings come from the Safe contracts source at tags v0.1.0, v1.0.0, v1.1.1, v1.2.0, v1.3.0, v1.4.1 and v1.5.0; tool behaviour from the safe-tx-hashes-util README and script and from Safe's help center, all retrieved 2026-11-16. Inputs and outputs are in the downloadable example.

Related reading

Hacking Guard: a signed report on a Safe transaction before you sign