Status DataClose notification

Crypto Wallet Security: Risks and Best Practices for Wallet Providers

Andrii Stepanov
Andrii StepanovSecurity Researcher
7 Minutes ReadPublished: 14 Jul 2023

Updated on November 9th, 2026

On October 29, 2026, attackers drained about $6.3 billion from Binance hot wallets across ten blockchains without stealing a single private key. As our breakdown of the Binance hack shows, they compromised a DevOps engineer's laptop, reached a service inside the withdrawal infrastructure, and used it to submit withdrawals that the wallet system signed as legitimate.

That is where crypto wallet security stands today. Keys are better protected than ever, so attackers go after everything around them: the machines that request signatures, the libraries in the build, the screens signers trust, and the ledgers that track balances. Hacken counted $1.18 billion stolen across 107 incidents in Q3 2026 alone, with supply chain, smart contracts, and keys as the main drivers.

Crypto wallet security is the set of controls that keep a wallet's keys secret and make sure only authorized, correctly formed transactions get signed. For a wallet provider, exchange, or custodian, it covers key generation and storage, signing policy, the devices and services allowed to request signatures, the software supply chain, and the user flows that stop customers from signing something they don't understand.

This guide is for teams that build or run wallets. It covers the main risks, the features a secure wallet needs, and how to verify that your controls hold up against a real attacker.

What Crypto Wallet Security Means for a Wallet Provider

Your security responsibilities depend on who holds the keys and how signing works. The table shows where each wallet model usually fails and what the provider owns.

Wallet model Who holds the keys Where it usually fails What the provider owns

Custodial (exchange, custodian)

The provider

Hot wallet signing infrastructure, internal ledger, staff devices

Key storage, withdrawal policy, ledger integrity, insider controls

Non-custodial software wallet (mobile, browser extension)

The user

User device, seed backup, phishing, malicious dApps, app supply chain

Key generation, local encryption, transaction display, dependency integrity

Hardware wallet

The user, on a dedicated device

Companion software, connector libraries, blind signing

Firmware, secure element, what the device screen shows before signing

Embedded wallet or wallet-as-a-service

Split between user, provider, and sometimes a third party

Login and recovery flows, servers holding key shares

Share storage, authentication, recovery, isolation from the client app

Smart contract wallet (multisig, ERC-4337 account)

Signers defined by contract logic

Contract bugs, module and upgrade permissions, signer devices

Contract audits, upgrade controls, signer operations

Two design choices shape everything else.

Hot vs. cold. Hot wallets stay online to process withdrawals; cold wallets keep keys offline and move funds rarely. The hot balance is what an attacker can take in minutes, so it should hold only what daily operations need.

MPC vs. multisig. Multi-party computation (MPC) splits one key into shares that sign together, so the chain sees a single ordinary signature. Multisig requires several independent keys and enforces the threshold on-chain, where anyone can inspect it. MPC is cheaper and works across chains; multisig is more transparent and easier to verify from outside.

Neither model helps if the system that asks for signatures is compromised. The Binance and Bybit incidents both followed that path. Protocol teams carry the same signer risk through admin keys and upgrade rights, which is now the largest loss category in DeFi security incidents.

Main Crypto Wallet Security Risks

Most large wallet losses now start outside the key: in the people, devices, services, and code around it. Each risk below has already cost real wallets real money.

Risk What goes wrong Real incident

Compromised signing infrastructure

An attacker controls a machine or service allowed to request signatures, and the system signs because the request looks trusted

Binance, Oct 2026: about $6.3B through a compromised DevOps laptop. Bitget, Sep 2026: $387.5M after a flaw in a third-party security product exposed internal credentials used to forge withdrawal commands

Manipulated signing interface

Signers approve what their screen shows, while a different transaction gets signed

Bybit, Feb 2025: about $1.5B after a compromised developer machine at wallet provider Safe pushed a malicious transaction that Bybit's signers approved

Signer devices and social engineering

Malware or long-running social engineering gives attackers enough signer approvals

Radiant Capital, Oct 2024: about $50M; malware on three signers' devices was enough for a 3-of-11 multisig. Drift Protocol, Apr 2026: $280M after a six-month campaign against its signers

Weak key generation

Predictable randomness lets an attacker recompute a private key

Wintermute, Sep 2022: $160M from a vault whose admin was a vanity address made with the flawed Profanity tool

Software supply chain

A malicious version of a library ships to every app that depends on it

Ledger Connect Kit, Dec 2023: a phished former employee's access was used to publish a wallet drainer; at least $484K was taken in under two hours

Precision and accounting flaws

Rounding or decimal errors let an attacker create or keep value that doesn't exist

Balancer V2, Nov 2025: about $128M lost to a rounding flaw; the exchange ledger case later in this guide shows the custodial version

Two older risks still cause steady losses. Private keys leak through plaintext files, logs, backups, and cloud sync. Users get phished into revealing seed phrases or signing token approvals that hand over their funds.

The pattern across these cases is consistent. Key storage held up, but the attacker controlled what got signed, who signed it, or what the books said was owed.

Protecting Users by Design

Most user losses come from signing something the user didn't understand, so a secure wallet makes the safe action the default. Each common user-side risk maps to a feature the provider can ship.

User-side risk What the wallet should ship

Lost or exposed seed phrase

A backup flow that verifies the seed before the first deposit, re-authentication before the seed is shown again, and optional MPC or social recovery

Phishing sites and fake dApps

Domain checks and warnings before a dApp connects, plus blocklists of known drainer contracts and addresses

Malicious approvals and permits

Plain-language decoding of approvals and off-chain signatures such as EIP-712 permits, exact-amount approvals by default, and built-in revocation

Blind signing

A readable preview of recipient, asset, amount, and contract called, with a simulation of balance changes before signing

Address poisoning and clipboard hijacking

Warnings for first-time and look-alike addresses, an address book, and the full address shown on confirmation

Stolen or compromised device

Passcode or biometrics required, auto-lock, and reduced functionality on rooted or jailbroken devices

Large or unusual transfers

Optional delays, spending limits, and allowlists that users set in advance

These features apply on every chain. Bitcoin wallets should also support PSBTs, so a transaction can be checked on a separate signing device, and verify change addresses so a compromised host can't redirect change.

Core Security Features of a Secure Crypto Wallet

A secure wallet protects the key, controls what gets signed, and assumes any single machine around it can be compromised. These are the features to build in and to test.

Secure key generation

Generate keys only from a cryptographically secure random source provided by the operating system or a hardware module. Wintermute's loss came from a vanity-address tool whose keys could be recomputed. Never implement your own ciphers or signature schemes; use reviewed, widely deployed libraries.

Key storage and encryption

On mobile, keep keys in the Secure Enclave or Android Keystore so they never leave protected hardware. For custodial and institutional wallets, use HSMs or MPC with key shares held in separate trust domains. Encrypt any key material at rest, and keep it out of logs, crash reports, backups, and cloud sync.

An independent signing policy

This is the layer most often missing. Put a policy engine between the service that requests a transaction and the signer, with its own rules:

  • Destination allowlists and per-asset, per-period limits
  • Multi-party approval through a separate channel above set thresholds
  • New transaction types, such as EIP-7702 authorizations, blocked by default until someone explicitly approves them
  • Alerts on any unusual caller, even from inside the network

Clear signing

What a signer sees must come from a source independent of the system requesting the signature. Decode the transaction on the signing device itself, so a compromised interface can't show one transaction while another gets signed, as happened at Bybit.

Device and environment integrity

Use dedicated, hardened workstations for privileged operations, with no production access from the device used for email and browsing. For wallet apps, add tamper protection, prompt users to set a device passcode, limit functions on rooted or jailbroken devices, and drop support for outdated operating systems.

Dependency and build pipeline control

Pin dependency versions and checksums, require two-person review for releases, and revoke access the day someone leaves. The Ledger Connect Kit attack combined all three gaps: unpinned loading, no second reviewer, and a former employee who still had publishing access.

Smart contract and account abstraction wallets

Contract wallets add code risk: module permissions, upgrade paths, signature validation, and, in ERC-4337 accounts, paymaster and bundler logic. The same patterns behind common smart contract vulnerabilities apply here. HackenProof also runs an Ethereum account abstraction security program with rewards of up to $250K for ERC-4337 findings.

Securing Custodial and Exchange Wallets

Custodial wallets carry two risks a self-custody wallet doesn't: a hot wallet that can be drained in minutes, and an internal ledger that decides who owns what.

Hot and cold wallet split

Keep hot balances close to what daily withdrawals need, and refill them from cold storage through a separate approval flow. Add automated circuit breakers that pause outflows on anomalies. In the Binance breach, most funds left in about 20 minutes, while withdrawals were paused roughly two hours after the first suspicious activity.

Internal ledger integrity: a rounding bug case

Exchange balances live in an internal ledger, not on-chain, so ledger logic is part of wallet security. One case documented by HackenProof's team involved transfers between an exchange's spot and futures wallets.

The transfer endpoint accepted amounts with more decimal places than the system supported. The sending wallet rounded a tiny amount down to zero and debited nothing; the receiving wallet credited it without rounding. Automated, each transfer created a small balance from nothing, on any asset, including BTC. An attacker could then withdraw that balance from the exchange's hot wallet.

No key was stolen, and no signature was forged. The fix sits in accounting logic:

  • One shared module for decimal handling and rounding, used by every service that touches balances
  • Server-side rejection of amounts below the minimum unit or with excess precision
  • Double-entry accounting, where every credit has a matching debit in the same atomic transaction
  • Continuous reconciliation of internal balances against on-chain holdings, with alerts on any drift
  • Rate limits and anomaly detection on internal transfer endpoints

Non-custodial trading on decentralized exchanges removes the exchange ledger from the picture, but moves the risk into contracts and the keys that control them.

Insider and access controls

Apply least privilege and separation of duties to every step of the withdrawal path. Use scoped, short-lived credentials between services, and segment DevOps tooling from the withdrawal system. A compromised container inside Binance's network submitted withdrawals that were accepted because the request came from a trusted internal source.

How to Verify Your Wallet Security

Each testing method covers a different layer, so a wallet that holds real funds needs more than one. The attacks above crossed endpoints, internal services, signing systems, and on-chain logic, and testing has to follow the same route.

Method What it covers When to use it

Smart contract audit

Contract wallets, multisig modules, ERC-4337 accounts, delegation and withdrawal logic

Before launch and after every upgrade

Penetration testing

Signing infrastructure, internal services, APIs, mobile and extension apps, cloud setup

Before launch, after major infrastructure changes, and at least yearly

Bug bounty program

Live production systems, including ledger and business logic, tested continuously

From launch onward

Vulnerability disclosure program

A clear channel for anyone who spots an exposed service or bug

Always, as a minimum

Audits check a snapshot of code. Ledger flaws like the spot/futures rounding bug only show up when someone tests the running system, which is why mature exchanges keep researchers on production year-round. The cost of a bug bounty program depends mostly on scope and reward levels, and is small next to a single hot wallet drain.

Conclusion

Crypto wallet security is no longer only about keeping keys secret. The largest recent losses, from Bybit to Binance, came from the systems around the key: the services allowed to request signatures, the screens signers trust, the libraries in the build, and the ledgers that track balances.

A secure wallet treats each of those as part of the custody perimeter. It generates and stores keys in protected hardware, puts an independent policy between every requester and the signer, shows users and signers exactly what they are approving, and keeps internal balances reconciled against what sits on-chain.

None of these controls proves itself on paper. Attackers test the live system, so the providers that hold up are the ones that test it first: audits before each release, penetration tests of the signing path, and researchers probing production year-round.

FAQ

What is crypto wallet security?

Crypto wallet security is the set of controls that keep a wallet's private keys secret and ensure only authorized, correctly formed transactions get signed. It covers key generation and storage, signing policy, device and supply chain integrity, and the user flows around signing.

What are the biggest crypto wallet security risks?

The largest recent losses came from compromised signing infrastructure, manipulated signing interfaces, and social engineering of signers. Weak key generation, software supply chain attacks, accounting flaws, phishing, and leaked keys round out the list.

What are the most important security features of a secure crypto wallet?

Secure key generation, hardware-backed key storage, an independent signing policy with limits and approvals, clear signing on the device, and controlled dependencies. User-facing protections matter too: transaction previews, approval decoding, and phishing warnings.

How do embedded crypto wallets protect private keys without exposing them to the client?

They generate and use the key inside an isolated environment, such as a secure enclave or trusted execution environment, or split it into MPC shares between the user's device and the provider. The app receives only signatures, never the key. The risk then moves to login and recovery flows, which need the same scrutiny.

Can a Bitcoin wallet be hacked?

Bitcoin's cryptography hasn't been broken, but Bitcoin wallets are hacked through exposed seed phrases, malware, weak key generation, malicious software updates, and compromised signing services. Bitcoin hot wallets were among those drained in the October 2026 Binance breach.

What does a crypto wallet security audit cover?

A full review covers any contract code, key generation and storage, the signing flow, the app and its dependencies, and backend services that request transactions. Most teams combine a code audit with penetration testing of the running system.

Is MPC more secure than multisig?

Neither is more secure in every case. MPC hides the signing threshold and works across chains; multisig enforces the threshold on-chain where anyone can verify it. Both fail if the service requesting signatures is compromised.

Share article:

More topics: