Guide library PENGER Academy

Vetting a Wallet

Turn a wallet’s claims into evidence about recovery, shipped software, data exposure and the people who can change it.

What you’ll learnIdentify who can alter key generation or signing, and reject unresolved risks that a score cannot cancel.

Before you startKnow the difference between a wallet app, a signer and a recovery backup.

Building a Vendor Threat Model

Rigorous evaluation starts by replacing “is this wallet safe?” with a precise question: which parties can compromise my funds, under what capability, and what would it cost them?

The trust set

For any wallet, enumerate every party in this list and decide whether you are content to trust each one:

Party Capability if malicious or compromised
Wallet developers Ship code that exfiltrates keys or biases key generation
Build infrastructure Insert code not present in reviewed source
Update/CDN provider Serve malicious code to all users simultaneously
Dependency maintainers Introduce hostile code via a transitive package
Chip vendor (hardware) Undisclosed behaviour in closed silicon
Contract manufacturer Modify devices before they ship
Distributor / reseller Tamper with units in transit
Backend operator Correlate and retain query metadata visible to that backend
App store Re-sign, repackage, or substitute binaries
E-commerce and CRM systems Leak the fact that you own crypto, plus your address

Reduce the set before you evaluate it

Reduce dependencies where you can demonstrate the reduction. An independently generated seed still has to enter and be used by a signer. A trusted display helps only when it verifies the intended data. Multisig can tolerate one compromised key when the quorum and remaining dependencies are genuinely independent.

Keep only complexity you can maintain and recover. After each design change, record which dependencies were removed and which parties, components or procedures still need to be trusted.

Describe a plausible attack before estimating its cost. Record the access, equipment, time and shared dependencies it requires. Keep unknowns explicit; counting independent organizations alone does not establish whether an attack is affordable or likely.

A valid phrase does not prove strong randomness

BIP39 encodes an input bitstring and checksum into words. A phrase derived from strong randomness and one derived from a predictable value can both pass the checksum. Looking at the words cannot establish the quality of generation.

More output does not create more starting states
  1. 32 bitsStarting value
  2. 256 bitsExpanded by a hash
  3. 24 wordsEncoded output

At most 2³² possible starting states remain. In this hypothetical generator, hashing and a valid mnemonic checksum do not turn them into 2²⁵⁶ independent possibilities.

  1. Trace entropy generation to the actual platform random source and its initialization. Examine every transformation and fallback, including dependency code.
  2. Check that generation output is not logged, transmitted or biased by predictable state. A reputable library can still be called incorrectly.
  3. If using physical entropy, verify the sampling and conversion method. Human selection, biased dice, incomplete rolls and unsafe conversion software can defeat the purpose.
  4. Use public training vectors to verify derivation compatibility. Matching addresses checks derivation for those inputs, not entropy quality or the confidentiality of a live seed.

Independent entropy or vendor-diverse keys can reduce particular dependencies, but neither is a universal substitute for a trustworthy signing and recovery path. If generation is known to be compromised, migrate to new keys using a verified process.

Source: BIP39: entropy, checksum and mnemonic generation.

Provenance and Supply Chain

For hardware, evaluation must extend past the code to the physical object and everyone who touched it. The full technical treatment is in Hardware Wallets: What They Actually Protect; here we cover it as a vendor-assessment question.

Questions to put to a hardware vendor

  • Is there cryptographic attestation, and what exactly does it cover? Attestation that validates one chip while a second, unattested chip drives the screen and buttons covers less than it appears to.
  • What is the returns policy for devices? This is the question most buyers never ask. If a vendor accepts returns of sealed-looking units and returns them to sale, then a unit you buy may have been in a stranger’s possession. For most electronics this is a non-issue. For a device whose entire purpose is holding secrets, a resale pipeline is an open supply-chain channel that an attacker can enter cheaply and repeatedly.
  • What is the position on third-party resellers? Some vendors have publicly stated that buying from open marketplaces is acceptable because attestation protects the user. Treat that claim with scepticism proportional to how much of the device attestation actually covers.
  • What does the tamper-evidence actually prove? Holographic seals are cheap to reproduce. Some vendors omit them deliberately and rely on attestation instead, which is a coherent position — but it means the seal is not part of your defence, and you should know that rather than assume a seal you can see is meaningful.

Reject supplied recovery words and generate new keys through the verified setup procedure. This prevents the simple pre-known-seed scam; it does not validate a malicious generator or display. Keep the recovery package independent of the device and review the remaining supply-chain assumptions.

The Update Channel Is the Crown Jewel

An attacker who compromises a wallet’s update or distribution mechanism does not need to defeat the wallet’s cryptography. They are handed the ability to run code on every user’s machine, at once, delivered through the exact channel users have been trained to trust.

Why it beats every other attack

  • It scales to the entire user base in a single action
  • It arrives via the official path, defeating “only download from the official site”
  • It can be brief — a window of a few hours is enough to do serious damage
  • It is difficult to attribute afterwards, and easy to describe as an isolated incident

The dependency variant

Modern wallets ship code that loads further code at runtime — connection kits, analytics, remote configuration, feature flags. Each of these is a channel through which a third party can change behaviour after installation without any update the user consents to.

In December 2023, malicious Ledger Connect Kit releases reached applications loading the package at runtime. Ledger’s incident report identifies a former employee’s npm access that had not been revoked and was then compromised through phishing. This was a library distribution failure, not evidence that the device’s private-key isolation had been broken. Read the vendor’s incident report and timeline.

Identify code that can change after installation. A remotely loaded dependency that is not pinned and verified can change wallet behavior without a new wallet release. Include its publisher and delivery path in the update review.

What to assess

Property Question
Update authentication Are updates signed, and is the signature verified on-device?
Consent Can firmware or code change without explicit user approval?
Runtime loading Does the app fetch executable code or config at runtime? From where?
Pinning Are dependency versions and hashes pinned, or resolved dynamically?
Access control How are publishing credentials managed and revoked when staff leave?
Rollback Can an attacker force a downgrade to a known-vulnerable version?

Base your update response on the advisory and your recovery state. Updates can fix urgent vulnerabilities and introduce new code or failure modes. Verify the release and affected versions through established channels, check your backup and follow the advisory’s urgency. A universal delay or moving funds before every update can create its own risk.

Evaluate recovery services as additional dependencies

An optional recovery service may export encrypted material or shares and release them under an identity or quorum policy. Examine both the implementation and the conditions under which the service can restore access.

Do not combine these questions
Question Evidence needed
What can enrolled providers reconstruct? Threshold, encryption, custody of decryption material and collusion assumptions.
What authorizes export or recovery? Device confirmation, authentication, service checks and failure behavior.
What changes when it is disabled? Reachable code paths, update authority and enforced boundaries in the actual firmware.
What was already trusted? Firmware and hardware capabilities before and after the feature, including possible indirect exfiltration.

Do not assume that firmware was previously incapable of leaking keys merely because the normal interface did not export them. Equally, a documented opt-in service is not automatically a covert backdoor. The useful comparison is between concrete boundaries and additional parties.

Record the recovery service’s role
Benefit
Which failure does the service help you recover from?
Authority
What can each party learn or reconstruct, and how is recovery authorized?
Failure
What works if the provider refuses, is compromised or disappears?

Record unanswered questions as dependencies.

Run tests with explicit limits

A practical verification record
Test What success establishes What it does not
Public-vector derivation in two implementations The tested path produces matching public data for known inputs. Strong randomness or safe handling of live secrets.
Training recovery or a trusted spare signer The tested backup and metadata restore the expected wallet. Every future version or every lost-device scenario.
Receive and spend with device verification The tested interface displays and authorizes the intended transaction. All script types, assets or adversarial inputs.
Network observation with a training wallet The observed endpoints and visible data for that run. No hidden telemetry, retention or behavior under other conditions.
Review entropy and update paths Specific code and trust assumptions can be examined. That the installed device executes exactly that code.

Keep versions, settings, public test data and observations. Never type a funded hardware-wallet seed into general-purpose software merely to test portability. A canary wallet may detect some incidents, but an undrained canary cannot certify the main wallet safe.

Decide from evidence and unresolved dependencies

Avoid a summed score: excellent documentation cannot compensate for an unusable recovery path. For each requirement, mark verified in a stated test, documented but untested, or unknown.

A decision record, not a product leaderboard
Requirement Evidence to retain Decision if unresolved
Spending and recovery control Policy, artifacts and a completed training recovery. Do not rely on independent recovery until the gap is resolved.
Generation and release integrity Randomness path, release identity and relevant review/build evidence. Investigate material unexplained weaknesses before funding.
Metadata exposure Settings, documented recipients and observations. Accept the explicit privacy trade-off or choose another configuration.
Failure tolerance Named lost-key, lost-location and provider-outage scenarios. Simplify or add a tested independent fallback.
Maintenance Support lifecycle, incident process and review date. Plan replacement or reduced reliance if maintenance becomes unavailable.
Keep a decision you can revisit
Scope
The intended use, wallet version and configuration.
Accepted assumptions
What remains trusted and why you accept it.
Review trigger
The change or incident that would reopen the decision.

Single-sig, multisig and hosted arrangements have different responsibilities. Record yours rather than treating one architecture as the answer for everyone.

[ CHECK YOURSELF ]

Test Your Knowledge

Take a quick quiz to check your understanding of this guide.

Take the Quiz

5 questions per level · ~2 min