A hardware wallet does one job very well. It keeps your private keys on a small dedicated device and signs transactions there, so malware on your laptop never gets to see the keys. Nearly everything else people assume it does is somebody else's job.
That's not a knock on them. I'd still recommend one to anyone holding more than they'd be upset to lose. It's just that the device solves a narrower problem than the marketing implies, and the losses I hear about mostly come from the gaps.
What it protects against
The main threat is a compromised computer. Keyloggers, clipboard stealers, malicious browser extensions, a fake wallet app. With a software wallet, any of these can read the keys or the seed and drain the wallet. With a hardware wallet, the computer only ever sees unsigned and signed transactions. The keys stay on the device's secure element or microcontroller.
The screen is the other half of the protection, and people ignore it. Malware can still swap the destination address on your computer before the transaction reaches the device. The device shows you the real address it's about to sign for. If you don't compare that against the address you meant to pay, the device can't help you. Clipboard hijackers rely on exactly that habit.
It also protects against casual physical theft, to a point. Someone who grabs the device needs the PIN, and after a few wrong guesses most devices wipe themselves.
What it doesn't
Your seed phrase. The device can be lost, broken or stolen without costing you anything, because the seed can restore it. That means the seed is the real wallet, and anyone who finds the paper or photographs it owns your coins. A hardware wallet with a seed phrase stored in a cloud notes app is a software wallet with extra steps. More on that in seed phrase security.
Your privacy. The device signs. It doesn't decide which server learns your addresses. Ledger Live and Trezor Suite, by default, fetch balances and history from the manufacturer's backend, which means the company can see your addresses and the IP you connect from. Trezor Suite has a built-in Tor toggle and lets you point it at your own backend. Ledger devices can be used with third-party software like Sparrow or Electrum connected to your own node. If you care who sees your balance, set that up; the steps are in running your own Bitcoin node over Tor.
Your identity as a customer. In 2020 Ledger's e-commerce and marketing database was breached. Around a million email addresses leaked, and a smaller set, in the hundreds of thousands, included names, phone numbers and postal addresses. The data was later dumped publicly. Customers received phishing emails, phishing texts, fake "replacement" devices in the post, and in some cases threats of home invasion. Nothing was wrong with the devices. The problem was a list of people known to own crypto, with their home addresses attached.
That's the case for buying with some care. Some people use a delivery address that isn't their home, or buy from a local reseller in person. At the very least, assume the order data could leak one day and don't attach more information to it than you need to.
Physical extraction and the passphrase
With enough time and lab gear, researchers have pulled seeds out of some hardware wallets. In 2020 Kraken's security team showed a voltage-glitching attack that extracted the seed from Trezor One and Model T devices with physical access. It isn't something a pickpocket can do, and it's hardware-level so firmware can't fully patch it.
The defence is a BIP39 passphrase, sometimes called a 25th word. It's combined with the seed to derive a different wallet, and it isn't stored on the device. Extract the seed alone and you get an empty wallet. The cost is that forgetting the passphrase loses the funds as surely as losing the seed, so it needs its own backup, kept apart from the seed.
Supply chain and fakes
Buy directly from the manufacturer or a reseller they list. Tampered devices have shown up on marketplace listings, sometimes with a scratch card containing a "pre-generated recovery phrase". A real hardware wallet never comes with a seed; it generates one when you set it up. If yours arrives with words already printed, the seller has a copy.
Check the device with the vendor's genuine-check during setup, and only install the companion app from the official site. Fake Ledger Live and Trezor Suite apps have been distributed through ads and app stores. Bookmark the vendor site and type it yourself; phishing copies show up in search ads and on onion mirrors alike.
Trust and the firmware question
In 2023 Ledger announced Ledger Recover, an optional paid service that backs up encrypted shards of your seed with third parties. The service itself is opt-in, but the announcement made clear that the firmware can be made to export the seed, and plenty of users who had assumed otherwise were annoyed. Whether that matters to you is a judgement call. Every hardware wallet runs firmware you have to trust, and the open-versus-closed source argument is partly about how much of that trust you can check.
The exchange you bought from still knows which address it paid out to, the companion app may know your balance, and a burglar doesn't care what chip is inside. The device covers the computer. You cover the rest.