OGOPSEC Brand Mark
OGOPSECOBSIDIAN GOOSE

OGOPSEC // Dispatch

Hardware-Bound Credentials: Why They Can't Be Copied

By Jamie Folsom ·

The oldest problem in authentication is that secrets are copyable. A password can be typed twice. A private key is a file, and files move. The moment a secret can exist in two places, you have lost control of where it is used. Hardware-bound credentials attack this problem at its root: the secret is created inside a chip and is never emitted in a form anything else can use. It cannot be copied because there is nothing to copy.

That sounds absolute, and the marketing around it often is. The reality is more interesting and more useful: hardware binding genuinely eliminates one whole class of attack, while leaving others untouched. Knowing which is which is what separates a sound design from a slogan.

What "bound" means at the silicon level

A hardware-bound key is generated by a secure element — a TPM, a smartcard, or a dedicated chip on a security key — using its internal random number generator. The private portion is stored in protected memory. Operations that need the key (signing a login challenge, decrypting a vault header) happen inside the chip; only the result comes out. The key's own bytes never cross the boundary.

Compare the two models directly:

Why this closes the "stolen key" breach

The most common key-theft incident is simple: an attacker gains read access, copies an SSH key or a token, and uses it from their own infrastructure. With a hardware-bound credential, the read gets them an encrypted blob that only the original chip can operate. They can hold it forever and never produce a valid signature. The attack that works against a file does nothing against the chip.

How to tell real binding from theater

Not everything labeled "hardware security" actually binds. Ask three questions:

  1. Was the key generated inside the device, or imported? An imported key may still exist as a backup copy somewhere — that breaks the guarantee.
  2. Is the private key marked non-exportable/non-duplicable? On a TPM this is a creation attribute; if the key can be duplicated under policy, it is portable by design.
  3. Does the operation happen in the chip, or does software pull the key into RAM? If plaintext key material ever lands in system memory, a privileged attacker can scrape it.

On a TPM you can inspect a key's attributes rather than taking anyone's word for it:

sudo tpm2_readpublic -c key.ctx
# look at the "attributes" line: fixedtpm and fixedparent
# mean the key cannot migrate off this chip

The limits you still own

Hardware binding answers "can this secret exist elsewhere?" with a firm no. It does not answer several other questions, and pretending otherwise is how people get hurt:

  • Live misuse: while you are logged in, malware running as you can ask the chip to use the key. Binding stops copying, not abuse of an unlocked credential.
  • Presence: a TPM proves the machine; it does not prove a human is there. That is why physical tokens and PINs are added on top.
  • Supply chain and firmware: the guarantee rests on the chip and its firmware being sound. A backdoored or buggy secure element undermines everything above it.
  • Availability: uncopyable also means unrecoverable. Lose the hardware and the credential is gone — you need an enrollment and recovery plan, not a secret backup that would reintroduce copyability.

Uncopyable is a feature and a constraint at the same time. Design your recovery around re-enrolling a new device, never around stashing a copy of the key.

Putting it to work

Hardware-bound credentials shine when the threat you actually face is theft and reuse of secrets — which, for most people and small teams, it is. A device key held in a TPM, or on a USB security key you carry, turns "they copied my key" into a non-event. Dire Wolf is built on exactly this idea: an Ed25519 device identity bound to the TPM, so the credential is a property of your machine and your token together, not a file an attacker can walk away with. Just pair it, as always, with presence checks and a clear recovery path — because the strength and the limit of hardware binding are the same fact.