dl-ledger.is
English
简体中文繁體中文EnglishРусскийفارسی

HomeBlogBlind signing

If you cannot read it, do not sign it

In December 2023 malicious code in Ledger Connect Kit altered the front ends of many decentralised apps and about 600,000 US dollars were stolen, mostly through blind-signed approvals. Clear signing, Transaction Check and revoking approvals: how to avoid signing what you cannot read.

Updated

A contract before signing, the pen resting on the page
A contract before signing, the pen resting on the page Blogtrepreneur, CC BY 2.0

A hardware wallet guarantees that the private key never leaves the device and that transactions must be confirmed on it. But if you confirm a transaction you cannot understand, a safe key does not help. The Ledger Connect Kit incident of 14 December 2023 was an expensive demonstration of exactly that.

Blind signing sounds technical, but the problem is simple: you press confirm on the device without knowing what you are confirming. This post starts from the 2023 incident, explains how the kinds of signing differ, and gives the most useful habits for everyday use.

What happened then

Connect Kit is a code library Ledger offers website developers, used by many decentralised apps to connect to Ledger devices. An attacker phished a former employee's publishing account and released malicious versions 1.1.5 to 1.1.7. Websites using the library had their front ends replaced with versions that popped up malicious transactions.

ItemDetails
Date14 December 2023
DurationThe malicious versions were replaced in under two hours
LossesLedger estimated about 600,000 US dollars
HowUsers signed malicious approvals or transfers on the websites
FixA clean version 1.1.8 was published

The Ledger Wallet app and the devices themselves were not breached; the problem was code loaded by third-party websites. And users signed because nothing on screen showed what the transaction did.

Blind signing and clear signing

MethodWhat the device screen showsCan you judge it?
Clear signingRecipient, amount, which contract is approved and for how muchYes
Blind signingA hashNo

Ledger's push for "clear signing" means the device translates the transaction into readable content. Touchscreen models also have "Transaction Check", which warns about known risky contracts and suspicious addresses.

Blind signingClear signing0x8f3a91c4d0b7e5f12a6c83d947b0fe21aa5c9d3e…e21bOnly a hash: no idea what you signApproveUSDTAmount: unlimited0x7a1c…41e9You can see it is unlimited
One approval, two ways of showing it

Habits to build

  1. Read the screenDo the action, amount and recipient match what you did on the page
  2. Cannot read it, rejectBetter to miss out than to sign a hash
  3. Blind signing only temporarilySwitch it off in the Ethereum app settings afterwards
  4. Revoke approvals regularlyRemove unused approvals, reading the screen when you do
Every signature
A bank stamp from 1895: before it comes down, know what you are stamping
A bank stamp from 1895: before it comes down, know what you are stamping TrimmerinWiki, CC BY-SA 4.0

The riskiest kinds of signature

  • Unlimited approvals: let a contract move a token of yours at any time, in any amount.
  • Off-chain signed permits: you sign a message, nothing happens on chain, it looks harmless, but it is an approval.
  • Batch transfers: move several assets out at once.

When you meet these, spend a few extra minutes checking the contract address and the project's own statements.

What an approval really is

On Ethereum and similar chains, many apps need you to "approve" first, allowing their contract to use one of the tokens in your wallet. Before swapping on a decentralised exchange, for example, you approve the exchange's contract to use your token. The trouble is that approvals often default to an "unlimited amount" and stay valid until you revoke them.

Approval typeRisk
Limited amountAt most the approved amount can be lost
Unlimited amountAll of that token can be moved
Approval for all collectiblesThe whole collection can be moved
Off-chain signed permitNot on chain, not visible, same effect

Checking and revoking

  1. Review approvalsUse a block explorer's approval checker with your own address
  2. Find the unused onesOld projects, contracts you do not recognise
  3. RevokeSend a revoke transaction and confirm on the device
  4. Keep what you needFrequently used ones can stay, ideally limited in amount
Regular clean-up

Revoke pages can be faked too. Use the block explorer's official address; when revoking, the device should show "revoke" or the amount set to zero.

What to read on the device when signing

ItemConfirm
ActionTransfer, approval or message signature
AmountMatches what the web page said
Recipient or contractMatches what the project officially published
NetworkThe chain you think it is
FeeNot absurdly high

When the web page and the device disagree

This is the most important danger sign. The page button says "claim reward" but the device shows "approve"; the page says send 1 but the device shows an unlimited amount. On any mismatch, reject, close the page and come back in through the project's official channel.

The lesson of supply chain attacks

The Connect Kit incident was a "supply chain attack": the attacker hit not users directly but something users depend on, this time a code library loaded by websites. In such attacks the website's domain is exactly right and the page looks as usual; the only anomaly is in the signature request. So "trust only the official domain" stops fake sites but not genuine sites that have been tampered with. The last line of defence is always the device screen: however trustworthy the page, read what the device shows before signing. That is also why Ledger later pushed clear signing so hard.

An app I need only supports blind signing?

Make sure the website domain is right, turn blind signing on for that one time, keep the amount small, and turn it off straight after.

Transaction Check warns of risk but I am sure it is fine?

In most cases, trust the warning, or at least pause to verify.

Does revoking an approval cost money?

Revoking is an on-chain transaction and pays a fee.

Is Connect Kit safe after the incident?

Ledger tightened permissions and processes for publishing code afterwards. What matters most is still reading the screen when you sign.

Is signing messages risky too?

Yes. Some message signatures are approvals, such as off-chain permits. Do not sign messages you cannot read.

How can a beginner avoid these risks?

Use only Ledger Wallet's own send and receive features and connect to unfamiliar decentralised apps rarely; that avoids most of them.

Read next

Also worth reading

Topics on this page: Ledger Connect Kit, what is blind signing, Ledger approval drained