Research·Custody

Air-Gapped Signing: What Crosses the Gap

An air-gapped signer has never had a network connection and never will. What crosses the gap is an unfinished transaction going in and a signature coming out. That removes remote compromise of the signing environment entirely, and leaves a narrower, sharper problem: everything the signer is told about the transaction comes from the machine you do not trust.

Level
Advanced
Reading
7 min
Published
2026-11-29
Reviewed
2026-11-29

An air gap is the strongest custody arrangement an individual can operate, and it is routinely described in a way that overstates what it does. It eliminates one category of attack completely. It leaves another category entirely intact, and that one depends on a habit rather than on hardware.

What is the actual workflow?

The workflow has four steps, two of them physical.

An online machine runs a watch-only wallet: it knows your public keys, can see your coins, and cannot sign anything. You tell it to build a payment, and it produces an unfinished transaction — inputs chosen, outputs set, fee calculated, signatures missing.

That file crosses the gap, by SD card, by USB stick, or displayed as a series of QR codes and photographed by the signer.

The signing device parses it, displays what it believes the transaction does — amount, destination, fee — and waits for you to approve. If you do, it produces the signatures and writes them back out, by the same route in reverse.

The online machine combines the signatures with the transaction, finalises it, and broadcasts. The private key has never existed on a networked device, and no step required the two machines to communicate directly.

What is a PSBT, concretely?

A container for a transaction that is not finished, carrying everything a signer needs and nothing it should not have.

BIP 174 defines the format. The important design decision is what it includes beyond the transaction itself: for each input, the previous output being spent, the script that locks it, and the derivation path telling the signer which of its keys applies. Without those the signer could not produce a valid signature, because a Bitcoin signature commits to information about the inputs that the raw transaction does not contain.

That design also explains why the format exists at all. A signer holding one key in a multisig arrangement needs to add its signature and pass the partially signed result onward, and several devices need a common format to hand the work between them. Bitcoin Core’s own documentation walks through the combine-and-finalise steps, and multisig in practice is where this stops being a convenience and becomes the only workable method.

What does the air gap actually protect against?

Remote compromise of the key, completely and without qualification.

This is a genuine and complete win, and worth stating plainly before the caveats. Malware on your laptop cannot read a key that is not on your laptop. A browser exploit, a malicious dependency in some unrelated application, a compromised update to software you forgot you installed — none of these can reach a device that has no network interface and never communicates with one.

That matters because remote compromise of a networked machine is the realistic attack. It scales, it requires no physical access, and it is what actually happens to people. Removing it removes the dominant threat.

Hardware wallets achieve most of this already by keeping the key in a device that signs over USB, and the honest comparison is that a USB-connected signer has a small communication surface while an air-gapped one has none. The increment is real and smaller than the friction suggests.

What lies can the online machine tell the signer?

These three are where the arrangement is actually attacked.

About the change address. The online machine chooses where your change goes. A compromised one can set the change output to an address it controls, and from the signer’s point of view this looks like an ordinary two-output transaction. The defence is that the signer must verify the change belongs to its own key tree, using the derivation information in the PSBT, and refuse or warn if it does not. Good signers do this. It is worth knowing that yours does.

About the input values. The fee is the difference between inputs and outputs, and the signer learns the input values from the PSBT rather than from the chain. If it accepts those values uncritically, a hostile host can understate the outputs and have you sign away an enormous fee while the display shows something reasonable. The defence is for the signer to insist on the full previous transaction for each input so it can verify the amount itself, which the format supports and which costs space.

About the destination. The simplest attack and the hardest to automate away: the online machine substitutes a different recipient address. Nothing in the protocol can catch this, because the signer has no way to know whom you meant to pay. The only defence is you, reading the address on the signer’s screen and comparing it against the address you obtained independently of the compromised machine.

That last one is why the air gap is a habit rather than a device. The arrangement exists so that a screen you trust can show you what you are about to authorise, and it accomplishes nothing if you press confirm without reading it.

What else does it not fix?

Both of the remaining risks arrive before the gap is established.

The device itself has a supply chain. Firmware, the random number generator that produced your key, the vendor’s build process, and whoever handled the package between the factory and your desk are all inside your trust boundary, and no amount of network isolation touches them. What you are trusting when you install a wallet is about exactly this, and the mitigations — generating the key yourself, verifying firmware signatures, buying directly — are the ones that apply.

And the gap does nothing about losing the thing. An air-gapped signer is a device that can be destroyed, lost, or left somewhere nobody can reach, and the recovery path is the seed phrase and the policy, exactly as it is for any other wallet. The most elaborate signing arrangement in the world fails to an untested backup.

Is QR better than an SD card?

They trade one small risk for another, and the choice matters less than whether your signer validates properly.

A QR transfer carries no filesystem, so there is no file parser and no mount logic on the signing device — a meaningfully smaller attack surface. The cost is capacity: a PSBT with several inputs exceeds what one code can hold, so the transfer uses a multi-part encoding, which is more software rather than less, and it is slow for large transactions.

An SD card is simple, fast and handles any size. The cost is that the device must parse a filesystem, which is a historically rich source of vulnerabilities in exactly this kind of firmware.

Neither is clearly superior and both are secondary. A signer that verifies change addresses and input amounts over an SD card is in a much better position than one that does neither over QR.

When is the friction worth it?

When the amount justifies an operation that takes minutes rather than seconds, and not before.

The honest accounting is that air-gapped signing adds real inconvenience: every payment becomes a two-device ritual, mistakes are easy while learning, and the complexity invites exactly the skipped-backup failure that costs more people money than remote compromise does.

For savings held over years, in amounts where remote compromise is the dominant concern, the arrangement is the right answer and the friction is irrelevant because you transact rarely. For spending money a hot wallet is correct. For the middle, a USB hardware wallet is already most of the way there, and the time saved is better spent restoring a backup onto a second device.

What remains uncertain

How many signers validate change correctly. The defence against the change-address attack is implemented per device, with no conformance suite and little public testing. Users cannot easily establish whether theirs does.

Whether requiring full input transactions is practical at scale. It is the correct defence against fee attacks and it inflates PSBT size, which collides with QR capacity. The trade is being made differently by different vendors.

Whether the ritual survives contact with ordinary users. Every study of security tooling finds that added steps get skipped. Air-gapped signing is unusually dependent on the user reading a screen, which is the step most likely to be abandoned once it feels routine.

Check it yourself

One test, which you can run in five minutes and which almost nobody runs.

Build a payment on your online machine, carry it across, and before approving anything, read the destination address on the signer’s screen against the address you actually meant to pay — obtained from somewhere other than the machine that built the transaction. Then look at what the signer says about the fee and the change.

Now do it deliberately wrong. Build a transaction sending change to an address that is not yours and see whether your signer notices and says so. If it approves without comment, you have learned that your arrangement protects your key and not your money, which is a different guarantee from the one the setup implies.

Sources

Nearby