Sub topic 4
Hot Wallets: Fast and Exposed
This chapter assumes you know what a private key and a blockchain transaction are at a high level. You should also have sent or received crypto from a wallet app or an exchange at least once. By the end you should be able to say exactly what makes a wallet "hot", name the ways a hot wallet fails, and set sensible limits on what one holds.
What makes a wallet hot
A wallet is hot when the private key, or the seed phrase it derives from, is stored on a device that is connected to a network, or that can be connected to one without any deliberate step. The test is where the signing key lives and when it touches a network. The test is not the brand of the app or whether it runs on a phone or a desktop.
Common hot wallets include:
- Mobile wallet apps that keep keys in the phone's storage.
- Desktop wallets that keep an encrypted key file on your computer.
- Browser extension wallets that sign requests from websites.
- Exchange accounts, where the exchange holds the keys for you. These are hot in a different sense, because you depend on their security as well as your own.
- Server-side wallets used by businesses to pay out withdrawals automatically.
The tradeoff is simple. Because the key is always within reach of software, signing takes seconds. Because the key is always within reach of software, malicious software can reach it as well.
Why hot wallets are convenient
Convenience is the reason hot wallets exist, and it is a real benefit.
- Speed. You can pay or trade within seconds, at any hour.
- Low setup cost. A free app and a few minutes are enough. No extra hardware is needed.
- Access to applications. Decentralized exchanges, lending protocols, NFT markets and games expect a wallet that can sign requests from a web page or an app on demand. Cold storage can do this, but with more friction.
- Automation. Software can sign transactions without a person present. Payment processors and exchanges rely on this.
- Small amounts, small stakes. For everyday balances, the risk is bounded by how much you keep in it.
How hot wallets fail
The threat model chapter listed malware, phishing, theft, loss and coercion. Here is how each one applies when the key is online.
Malware on the device
Malware is software that runs on your device without your informed consent. Against a hot wallet it can do several things:
- Steal key files or seed phrases from disk, memory or backups stored in cloud folders.
- Log keystrokes to capture the password that unlocks an encrypted wallet.
- Replace addresses. Clipboard hijackers watch for something that looks like an address and swap in the attacker's address when you paste. The wallet then signs a valid payment to the wrong person.
- Trigger signing requests while the wallet is unlocked, so the attacker never needs the key itself.
Encryption of the wallet file helps only while the wallet is locked. Once you unlock it, the key is available in memory.
Phishing and malicious approvals
Phishing is deception that gets you to do something harmful voluntarily. With a hot wallet the harm often comes from a signature, not from a stolen password.
- Fake seed phrase prompts. A fake support page or a fake wallet update asks you to "re-enter your recovery phrase". Anyone who gets the phrase gets full control. No legitimate wallet needs it again after setup, other than when you restore one.
- Malicious token approvals. On smart contract chains such as Ethereum, you can sign a message that lets a contract spend your tokens. If you approve an unlimited amount for a malicious contract, the attacker can drain that token later, even after you close the page.
- Blind signing. If the wallet only shows a block of hex data, you cannot tell what you are agreeing to. Prefer wallets that show a readable summary of the action.
- Lookalike addresses and sites. Addresses with the same first and last characters, and domain names with a swapped letter, exploit the habit of checking only part of a string.
Device theft and weak lock screens
A stolen phone or laptop with a weak passcode may give the thief the wallet. Device encryption, a strong passcode and a wallet-level password each add a layer. A short numeric PIN with no limit on attempts is a weak layer.
Software supply chain and update risk
The wallet app, its dependencies and browser extensions are code written by other people. A malicious update, a fake copy in an app store, or a compromised extension can expose keys. Download wallets only from the publisher's official channel and check the link from the publisher's own site.
Loss
Hot wallets are lost too. A phone that is wiped or broken, a forgotten password, or a seed phrase never written down all lead to permanent loss. The funds remain on the blockchain, but no one can move them. Chapter 6 covers backups. For now, remember that a hot wallet without a tested backup is a loss waiting to happen.
Coercion
If an attacker can force you to unlock your phone, a hot wallet gives up its contents immediately. This is a lower probability threat for most people but a real one for people with large visible balances.
Exchange and custodial hot wallets
An exchange account is a hot wallet you do not control. The exchange holds the keys, and your balance is a record in its database. This adds risks that self-custody does not have:
- The exchange can be hacked, go bankrupt, freeze withdrawals or block your account.
- Account takeover is a risk. A stolen password or a hijacked phone number can let an attacker withdraw your funds.
- You depend on the exchange's own split between hot and cold storage, which you cannot inspect.
If you keep money on an exchange for trading, use a unique password, an authenticator app or hardware security key in place of SMS codes, and a withdrawal address allowlist if the exchange offers one.
Sizing a hot wallet
Treat a hot wallet like the cash in a physical wallet. You carry what you expect to spend and no more. A useful rule is to set a cap, the highest balance you will tolerate losing entirely, and a target, the balance you refill to. When the balance exceeds the cap, move the excess to cold storage.
The function below implements that rule. It works in satoshis, the smallest unit of Bitcoin (1 BTC = 100,000,000 satoshis). Using whole integers avoids rounding errors that come with decimal coin amounts.
def plan_rebalance(hot_sats, hot_cap_sats, hot_target_sats):
"""Return how many satoshis to move from the hot wallet to cold storage.
If the hot balance is at or below the cap, nothing moves.
Otherwise, move enough to bring the hot wallet back to its target.
"""
if hot_target_sats > hot_cap_sats:
raise ValueError("target must not exceed cap")
if hot_sats <= hot_cap_sats:
return 0
return hot_sats - hot_target_sats
print(plan_rebalance(hot_sats=5_000_000, hot_cap_sats=2_000_000, hot_target_sats=500_000)) # 4500000
print(plan_rebalance(hot_sats=1_000_000, hot_cap_sats=2_000_000, hot_target_sats=500_000)) # 0In the first call the hot wallet holds 5,000,000 satoshis, which is over the 2,000,000 cap. The function says to move 4,500,000 so that 500,000 remains. In the second call the balance is under the cap, so nothing moves.
A gap between cap and target is deliberate. If the target equaled the cap, every small deposit would trigger another transfer, and each transfer costs a network fee.
Choosing the cap is a personal decision. One way to think about it: pick the amount whose loss would be annoying but would not change your life. Then check that figure against how often you refill. A cap that is too low makes you top up constantly, which tempts you to skip the discipline.
Reducing risk without leaving the hot wallet model
Some funds will stay hot, so reduce the exposure that remains.
- Use a dedicated device or browser profile for crypto, with few extensions and no pirated software.
- Keep the operating system and wallet app updated, installing from official sources only.
- Separate wallets by purpose. Use one for experiments with new applications and another for routine spending. A malicious approval then touches only the experimental one.
- Review and revoke token approvals periodically with a block explorer's approval checker or a similar tool.
- Read what you sign. If the wallet shows an unexpected spender, an unlimited amount, or unreadable data, decline.
- Verify addresses in full or at least the beginning, middle and end, and send a small test amount before a large first payment to a new address.
- Never type the seed phrase into a website or share it with support staff. Support staff do not need it.
- Back up the seed phrase offline and test the restore on a spare device.
- Pair the wallet with a hardware signer where possible. Many hot wallet apps can use a hardware wallet for signing, which keeps the key off the online device while keeping the app's convenience.
Comparing the main hot wallet types
| Type | Who holds the key | Main strength | Main weakness |
|---|---|---|---|
| Mobile app | You, on your phone | Quick, portable, biometric unlock | Phone theft, malicious apps, loss without backup |
| Desktop wallet | You, on your computer | Full control, more features | General-purpose OS exposes it to malware |
| Browser extension | You, in the browser | Easy access to web applications | Phishing sites, malicious approvals, extension compromise |
| Exchange account | The exchange | Easy trading, account recovery | Counterparty risk, account takeover |
| Server wallet | A business, on a server | Automated payouts | Large pooled balance is a high-value target |
When a hot wallet is the right choice
Choose a hot wallet when the amount is small relative to your holdings, the funds change hands often, or you need to interact with an application that wants to see a signer immediately. Avoid it as the only home for long-term savings. The next chapter looks at the other end of the trade: wallets where the keys stay offline, and what you pay in friction for that safety.
Exercise
Your hot wallet cap is 2,000,000 satoshis and your target is 500,000. The balance reaches 2,000,000 exactly. What does plan_rebalance return, and why? Then name one risk that a lower cap does not reduce at all.
Show answer
It returns 0, because the function moves funds only when the balance is strictly above the cap, and a balance equal to the cap passes the "at or below" check. A lower cap does not reduce the risk of approving a malicious signature, though it limits how much that signature can take. It also does not reduce the risk of loss from a missing backup for the amount that remains in the wallet.
Exercise
A wallet pop-up asks you to approve "unlimited" spending of a token for a contract you have never used. Describe what could happen if you approve and what you should do instead.
Show answer
The contract could move all of that token from your wallet at any later time, including after you leave the site, because the approval stays active until revoked. Decline the request, or approve only the exact amount you intend to use, and check the contract address against the project's official site. If you have already approved something suspicious, revoke the approval with an approval checker and move the remaining funds to a new wallet.
Exercise
Classify each as hot or cold using the "where the key lives" test: (a) a seed phrase stored in a phone notes app, (b) a key on a laptop that has never been online and is used only to sign, (c) an exchange account.
Show answer
(a) Hot, because the key material sits on a networked device and may sync to cloud backups. (b) Cold, because the key never touches a network. (c) Hot, and custodial, because the exchange holds the keys on systems connected to the internet.