The Economics of Attacking a Secure Element
Why an attack only makes sense if it can be scaled, and what that means for you.
This article is available in the following languages:
- The attacker's balance sheet
- Attack Type 1: Malware and clipboard hijacking
- Attack Type 2: Firmware and software supply chain compromise
- Attack Type 3: Supply chain hardware substitution
- Attack Type 4: Fault injection and voltage glitching
- Attack Type 5: Side-channel and invasive chip analysis
- The attack that skips the chip entirely
- What the economics tell us
- Protect your crypto with Tangem Wallet
- Attack economics: quick reference
- Mass → individual attack spectrum
Security is usually described as a yes-or-no question. An attack either works or it doesn't. That framing is accurate, but it isn't very useful in practice. With enough money, time, and expertise, almost anything can be broken. So the better question is rarely "can this be done?" It's "does this pay?"
Every attack on a hardware wallet has a cost structure: what it takes to get started, what it costs per victim, how often it works, and how much each success brings in. Attackers, whether they're criminal groups or state agencies, are effectively running a business. A business that spends more than it earns doesn't last. So an attack has to either work at scale or target someone with enough to justify the effort.
This is the fourth article in our Secure Elements series. We'll look at five categories of attack and, for each one, ask four questions: what it costs, how many targets it needs to turn a profit, who can realistically pull it off, and what a secure element does (and doesn't do) against it.
Since we first published this piece, 2025 and 2026 have given us a lot of new real-world data: a record year for crypto theft, a $1.5 billion heist that bypassed a set of hardware wallets, counterfeit devices sold on mainstream marketplaces, and implanted wallets sold through an authorized reseller. We've updated each section with what those cases tell us about the numbers.
The attacker's balance sheet
Before getting into specific attacks, it helps to name the variables that decide whether an attack is worth running.
Fixed costs
These are the one-time costs: tools, lab equipment, malware development, bribing an insider, and the research needed to find a weakness in the first place. Software attacks tend to have low fixed costs. Hardware attacks can cost millions before a single device is touched.
Research is the cost people tend to forget. Finding a brand-new flaw in a well-defended chip can take a skilled team months. Once that flaw is found and published, though, the next person to use it skips most of that bill. That's why a single public disclosure can change the economics of an entire chip family overnight.
Variable costs
These costs increase with each additional target. A mass malware campaign adds almost nothing per victim. Lab analysis of a specific chip, on the other hand, costs real money every single time. This is the biggest economic difference between mass attacks and targeted ones.
Expected return per target
Crypto wealth is unevenly spread. Most self-custody users hold modest amounts, while a small group of large holders controls far more. Attacks that scale can make money from many modest targets. Attacks that work one device at a time need a target that's worth it.
Probability of success
Difficulty lowers the expected return. A low success rate can still pay off at scale: if you try something a million times, a 0.01% hit rate is still a hundred wins. Against one target, the same odds make the attack a gamble.
Put simply, for an attack to make sense, its cost divided by its expected return has to be less than one. A secure element pushes that ratio up for targeted, physical attacks. It does very little against mass attacks that never touch the chip.
Attack Type 1: Malware and clipboard hijacking
This is the most common attack crypto holders face. Clipboard hijackers (also called "clippers") watch for copied wallet addresses and quietly swap them for the attacker's address. Related tools include malicious browser extensions, fake wallet apps, screen overlays, and keyloggers.
A close cousin is address poisoning. Instead of infecting your device, the attacker sends you a tiny transaction from an address that looks almost identical to one you use. The hope is that you'll later copy the wrong address from your transaction history. No malware is needed at all.
Cost structure
Clipper malware costs roughly $500 to $3,000 to develop, or a few hundred dollars to buy ready-made through malware-as-a-service sellers on darknet markets. Distribution through cracked software, fake download sites, and malicious ads is cheap, and a campaign reaching hundreds of thousands of devices can cost under $10,000.
Address poisoning makes the economics even clearer. A Carnegie Mellon study presented at USENIX Security looked at two years of Ethereum and BNB Smart Chain data and found around 270 million poisoning attempts aimed at 17 million victims. Only about 1 in 10,000 attempts worked. Yet confirmed losses still reached at least $83.8 million, and some organized groups earned 10 to 20 times what they spent on fees and infrastructure. In December 2025, a single trader lost nearly $50 million in USDT after copying a poisoned address from their history.
That's the attacker's balance sheet in action: a tiny success rate, multiplied by enormous volume, at almost no cost per attempt.
Who can execute this attack?
Criminal groups and independent malware developers. Nation-state hackers can do it too, but they're overqualified for it. The skills needed are modest, and the tools are for sale.
What the secure element does, and doesn't do
A secure element protects the private key. It stops malware on your computer or phone from reading or copying it. But the chip has no way of knowing whether the address it's asked to sign for is the one you meant. If the address was swapped before the transaction reached the chip, the chip signs it correctly, for the wrong person.
The scale of this problem shows up in the 2025 numbers. Chainalysis counted around 158,000 personal wallet compromises affecting at least 80,000 unique victims in 2025. Total losses from individuals fell to $713 million from $1.5 billion the year before, which Chainalysis read as attackers going after smaller amounts across more people. That is the mass-scale model at work.
The defense here isn't more silicon. It checks the full recipient address on a trusted screen before confirming and doesn't copy addresses from your transaction history.
Economic verdict
Viable at any scale, because the cost per target is close to zero. This is the attack most people should actually plan around.
Attack Type 2: Firmware and software supply chain compromise
Here, the attacker targets the code that controls the wallet rather than the user. Malicious firmware or wallet software could generate weak keys, leak keys, display one address while signing with another, or plant a backdoor for later use.
The entry points are the places where code is built, signed, and shipped: build servers, code-signing keys, update pipelines, developer machines, app store accounts, third-party libraries, and resellers who flash their own firmware.
Cost structure
Breaking into a security-focused organization typically costs six figures. It can mean months of reconnaissance, social engineering of specific developers, custom tooling, and patient waiting. A realistic range for an organizational compromise is $50,000 to $500,000, with state-backed operations at the top end of that range.
The payoff can be huge because a single compromise affects every user of the product. If a malicious update reaches 10,000 users, each holding an average of $5,000, that's a $50 million pool.
Recent cases show how this plays out:
- Bybit, February 2025. North Korea's Lazarus Group compromised a developer machine at Safe{Wallet}, the multisig platform Bybit used for its Ethereum cold wallet. Malicious code in the web interface showed signers a routine transfer while sending their hardware wallets a different transaction. Three signers approved it, and about $1.5 billion in ETH was drained. Forensic reports found that the signers didn't verify the transaction details on their devices, which displayed data that couldn't be easily read (so-called blind signing).
- Trust Wallet browser extension, December 2025. Attackers used a Chrome Web Store API key exposed in the "Shai-Hulud" npm supply chain worm a month earlier to publish a malicious version of the extension outside the normal release process. It was live for about two days and drained roughly $8.5 million from 2,520 wallets.
- Ledger Connect Kit, December 2023. A former employee's account was phished, and attackers pushed a malicious version of a JavaScript library used by many dapps. Users who approved the resulting transactions lost around $600,000 before the library was fixed.
None of these attacks touched a secure element. They went after the software that tells the chip what to sign.
Who can execute this?
Nation-states are the most likely and most capable actors. North Korea alone accounted for about $2 billion of the roughly $3.4 billion in crypto stolen in 2025, according to Chainalysis. Organized criminal groups can run these attacks too, but a compromise this visible brings serious law enforcement attention.
What the secure element does
A malicious update that's properly signed with the manufacturer's real key will pass Secure Boot because, as far as the chip can tell, it's legitimate. So the secure element's protection here depends on how the firmware is verified, how updates are controlled, and how much of the transaction the device can show you in plain language.
A secure element also can't help when the compromise sits entirely outside the device, as in the Bybit and Trust Wallet cases. What does help is a device that can decode and clearly display what you're signing, and a user who actually reads it.
Economic verdict
Expensive to set up, cheap to scale. Rational for state actors and well-funded groups that can reach thousands of users at once, or one very large institutional target. Irrational as a way to go after a single ordinary user.
Attack Type 3: Supply chain hardware substitution
This attack changes the device itself before it reaches you. In the original version of this article, we focused on the most extreme form: fabricating a counterfeit secure element, or slipping an extra monitoring chip or covert radio into the device during shipping. Intelligence programs that implanted hardware in network equipment in transit have been reported in multiple countries. What 2026 showed us is that real-world attackers have found much cheaper ways to do this.
Cost structure
There are now three distinct versions of this attack, each with a very different price tag.
Fake devices with no secure element at all. In April 2026, a Brazilian security researcher bought what appeared to be a new Ledger Nano S Plus from a Chinese marketplace at the standard retail price. Inside, the secure element had been replaced by an ESP32, a general-purpose microcontroller that costs a few dollars. Its firmware stored seeds and PINs in plain text and sent them to the attackers' servers. The package also pointed to a fake companion app. The hardware cost is trivial. The work is in making the device look and behave convincingly.
Kaspersky documented a similar case earlier involving counterfeit Trezor Model T devices with modified chips and preloaded firmware, so the attackers already knew every seed the device would generate.
Genuine devices with an added implant. In October 2026, tampered Ledger devices sold through CryptoBilis, a Southeast Asian reseller listed as authorized, were found to contain a small extra circuit board hidden under the screen. It held a microcontroller, a cellular modem with an eSIM, and an antenna. The secure element was left untouched and genuine.
The implant read the recovery phrase from the display data as it appeared during setup and then sent it over the mobile network. Independent loss estimates reached about $93 million, though Ledger hasn't confirmed that figure. Trezor later confirmed that three implanted Safe 5 devices had been sold through the same reseller and released a firmware update to disable them.
The engineering behind an implant like this is within reach of a small hardware team. The hard and expensive part is getting tampered devices into a sales channel that buyers trust.
- Fabricated counterfeit secure elements. This is still the most expensive route. Producing a fake chip that passes as the real thing can cost $1 million to $5 million depending on the chip's complexity, and it would still need to beat the manufacturer's cryptographic authenticity checks.
Rogue insiders add another path across all three: a quality-control engineer, a warehouse worker, or a reseller employee with access to stock.
Who can execute this?
The cheap versions (fake devices and implants) are within reach of organized criminal groups that can control or infiltrate a distribution channel. The expensive version (a fabricated secure element) is realistically limited to nation-states.
What the secure element does, and doesn't do
The main defense is attestation: the device proves to the companion app that its secure element is genuine by using a key programmed into the chip during factory programming. This works well against the first version. The counterfeit Nano S Plus failed Ledger's Genuine Check the moment it was connected to the official app.
It didn't work against the second version, and that's the key lesson of 2026. Attestation confirms that the chip is real. It says nothing about what else has been added around it. In the CryptoBilis case, the secure element did its job perfectly. The recovery phrase leaked at the one moment it had to leave the chip: when it was shown on screen for the user to write down.
So attestation is necessary but not sufficient. Hardware supply chain risk is a residual risk, not a solved problem. Where you buy a device matters nearly as much as which device you buy.
Economic verdict
The fabricated-chip version is still economically irrational for anyone with less than substantial seven-figure holdings. But the cheap versions changed the picture. By working around the secure element instead of attacking it, criminals turned hardware substitution into something that can pay off against ordinary users, as long as they can reach enough of them through a trusted channel.
Attack Type 4: Fault injection and voltage glitching
Fault injection means deliberately pushing a chip outside its normal operating conditions at a precise moment, hoping it will skip an instruction or make a mistake. The goal might be to bypass a PIN check, unlock a debug mode, or corrupt a cryptographic operation in a way that leaks the key.
The main techniques are:
- Voltage glitching: briefly dropping or spiking the chip's power supply
- Clock glitching: disrupting the timing signal the chip runs on
- Electromagnetic fault injection (EMFI): using a pulsed electromagnetic field over part of the chip
- Laser fault injection: firing a focused laser at a specific spot on the exposed silicon, which usually means removing the chip's packaging first (decapping)
Cost structure
A basic glitching setup with an FPGA board, an oscilloscope, and power analysis tools costs $5,000 to $15,000. A laser fault injection station with a decapping setup runs from around $50,000 to $250,000 or more in equipment, before you count the expert time needed to run it.
Per-target costs are high too. Each attack can take days to weeks. Between 30% and 50% of devices can be destroyed along the way, which matters a lot if the device you're attacking is the only one holding the funds you want.
Recent research gives a sense of where the lines fall:
- General-purpose microcontrollers are the soft spot. In March 2025, Ledger's Donjon lab showed that voltage glitching could break the readout protection on the general-purpose microcontroller inside the Trezor Safe 3. The attack required desoldering the chip but used a relatively cheap setup. The secure element in that device, which guards the PIN, wasn't broken. The concern was that modified firmware on the microcontroller could weaken how keys are generated later.
- Phones are exposed too. In December 2025, the same lab showed that electromagnetic fault injection could bypass boot security on a MediaTek smartphone chip used in many Android phones, giving full code execution. That matters for anyone keeping keys in a phone-based hot wallet.
- Partial secure chips can be beaten quickly. Earlier research on the DS28C36, a secure memory chip used as a second security chip in a hardware wallet, showed that a double-laser attack could read protected data with a 99% success rate, and that the attack was reproducible within a day once the lab had characterized the chip.
The pattern is consistent: the cheaper the chip and the less it was designed with physical attacks in mind, the cheaper the attack.
Who can execute this
Skilled criminals with hardware backgrounds, academic researchers, and professional security labs. The low-end setup is affordable, but the know-how isn't common, and laser work needs serious equipment and experience.
What the secure element does, and doesn't do
Certified secure elements are built specifically for this threat. They include voltage and clock monitors, light sensors that detect an exposed die, randomized timing that makes it hard to hit the right moment, and redundant checks for sensitive operations. Accredited labs have tested chips evaluated at Common Criteria EAL5+ and EAL6+ against exactly these techniques.
That doesn't make them immune. Well-funded labs have demonstrated laser attacks against certified chips, and when a firmware flaw can't be updated, it can't be patched on devices already in use. What certification does is push the cost and time required far beyond what a cheap glitching rig can deliver, and limit the attack to someone who has the physical device in hand.
Economic verdict
Rational only against targets holding $100,000 or more, and more realistically $500,000 or more. The attacker needs physical possession, ample time, spare devices for practice, and a willingness to destroy the target. For anyone else, it's a bad business.
Attack Type 5: Side-channel and invasive chip analysis
This is the top end of hardware attacks. It covers two related approaches.
Side-channel analysis monitors what a chip emits while it operates (power consumption, electromagnetic emissions, timing) and uses statistical techniques to reconstruct the secret it processes. Invasive analysis goes further: decapping the chip, imaging it layer by layer with a scanning electron microscope (SEM), editing its circuits with a focused ion beam (FIB), and placing nanoscale probes directly on internal wires.
Cost structure
A scanning electron microscope costs $300,000 to $1 million. A focused ion beam system costs $500,000 to $3 million. Add the clean-room setup, sample prep tools, and the rare experts who can run them, and a full invasive lab is conservatively $1 million to $5 million. Time per target is weeks to months.
Side-channel attacks can be far cheaper at the point of use, and one case shows why the research bill matters more than the equipment.
In September 2024, the French firm NinjaLab published EUCLEAK, a side-channel attack against the Infineon secure element used in YubiKey 5 Series security keys and other Infineon-based products. The flaw was in how Infineon's cryptographic library computed one step of ECDSA signing, the same signature algorithm used by Bitcoin and Ethereum. The library had undergone many Common Criteria evaluations without the issue being detected.
The equipment for the attack cost around $11,000. With the method in hand, the measurements themselves take only minutes, although the attacker still needs the physical device, must open its casing, and requires real expertise. But finding the flaw in the first place took a highly skilled team a long research effort, starting from an open developer card built on a similar chip. The fixed cost was the research. Once it was published, the variable cost for the next attacker dropped sharply.
Who can execute this?
Nation-state agencies with dedicated hardware labs (such as the NSA, GCHQ, and their counterparts in China, Russia, and Israel), plus a small number of elite commercial and academic labs. Once a side-channel flaw has been published, a well-equipped independent researcher could repeat it.
What the secure element does, and doesn't do
Modern secure elements are designed to resist this level of attack. They use active metal shields that detect tampering, encrypted memory buses, scrambled memory layouts, physical unclonable functions (PUFs) that derive keys from microscopic chip variations, and masking techniques that hide the relationship between data and power use.
EUCLEAK is a reminder that the weak point isn't always the silicon. In that case, the hardware countermeasures held, but one cryptographic routine leaked a small amount of timing information. Software running on a secure element still has to be written with side channels in mind.
There is still no public evidence that keys have been extracted from a current-generation certified secure element by invasive SEM or FIB analysis under real-world conditions. Side-channel results like EUCLEAK show that certified chips can have flaws, but they also show how much physical access, time, and expertise it takes to turn a flaw into a stolen key.
Economic verdict
Irrational against anyone below eight-figure holdings when the attacker has to find a new flaw. A published flaw lowers that bar, which is why chip makers and wallet makers need to track research closely and respond fast.
The attack that skips the chip entirely
There's one more attack worth mentioning, because it's both the cheapest and the one that has grown fastest: physical coercion. Security people call it the "$5 wrench attack," after the idea that it's easier to threaten someone than to crack their encryption.
CertiK counted 72 verified wrench attacks worldwide in 2025, up 75% from 41 in 2024, with confirmed losses exceeding $40.9 million. Europe accounted for over 40% of cases, and France alone recorded 19. Jameson Lopp's long-running public log puts 2025 at around 70 incidents, the highest in more than a decade of tracking. Both sources say the true number is likely higher, because many cases are never reported as crypto-related.
No chip can stop someone from being forced to unlock their own wallet. The defenses here are about privacy and procedure: not advertising holdings, keeping exchange and identity data tight, and spreading funds so no single unlock gives an attacker everything.
What the economics tell us
Across all five categories, a clear pattern shows up. The secure element protects against most attacks, but least against the cheapest ones. Malware, clipboard hijacking, and address poisoning are cheap and run at mass scale. They manipulate the transaction before it ever reaches the chip. The chip isn't failing in these cases. It's simply not involved.
Software and firmware supply chain attacks go after the code that tells the chip what to sign. How well a device holds up depends on how its firmware is verified and how clearly it shows the user what they're approving. Bybit showed that even a multisig setup with several hardware wallets can be defeated when people sign without reading.
Hardware substitution, fault injection, and invasive analysis are where the chip's engineering matters most. Every layer of protection raises costs, and for most targets, those costs are already far higher than any possible return.
The cases from 2026 added one important point. When attacking the chip is too expensive, attackers look for the moment the secret leaves it, or the step where the user has to trust something outside it. Counterfeit devices skip the chip, implants watch the screen, and malware swaps the address. The economics push attackers toward the edges of the system, not its center. None of this is a contradiction. It's a description of what a secure element is designed to do. It's the strongest part of the system against expensive, targeted attacks, but offers no resistance to cheap ones that bypass it.
For most people, the realistic threat isn't a laser in a lab. It's malware or a poisoned address manipulating a transaction, a fake app, or a tampered device bought from the wrong place. The chip is insurance against the unlikely scenario. Checking the address on a trusted screen, buying hardware directly from the maker, and keeping your recovery details off any connected device are what protect you from the likely ones.
Understanding attack economics isn't a reason to relax. It's a guide to where your attention matters most. The chip handles the expensive attacks. The cheap attacks require your attention.
Protect your crypto with Tangem Wallet
If the lesson of this article is that attackers go for the weakest point around the chip, then the answer is a wallet with as little as possible around the chip. That's how Tangem Wallet is built.
- One certified chip, nothing softer next to it. Every Tangem card and ring runs on a Samsung secure element certified to Common Criteria EAL6+, the same class of chip used in passports and bank cards. There's no second general-purpose microcontroller, no battery, no USB port, and no Bluetooth radio for an attacker to work on instead.
- Your private key is born on the chip and never leaves it. The key is generated inside the secure element and is never shown on a screen, exported, or sent to your phone. The chip signs transactions internally and returns only the signature. With no recovery phrase to display or write down by default, there's no moment for malware, a fake app, or a hidden implant to catch it.
- Built against lab attacks. The chip has sensors for laser light, temperature, and power fluctuations, and the card firmware can't be updated, so there's no update channel to hijack. Riscure, Kudelski Security, and Cure53 have independently assessed Tangem Wallet.
- Backups without a seed phrase. Tangem comes as a set of two or three cards, or a ring plus cards, all holding the same keys. Keep them in separate places, and losing one doesn't cost you your funds.
The supply chain cases above showed that where you buy a hardware wallet matters as much as which one you buy. Order a Tangem Wallet directly from the official Tangem store, and the app will check that your card is genuine the first time you tap it.
Attack economics: quick reference
Attack type | Scale | Attacker cost | Min. viable target | Who executes this |
Malware, clipboard hijacking, address poisoning | Mass (millions) | Hundreds to a few thousand dollars | Any amount; a numbers game | Criminal groups, malware-as-a-service sellers |
Software and firmware supply chain | Medium to mass (thousands of users or one large institution) | $50K - 500K+ (organizational compromise) | $10K+ per wallet on average, or one very large target | Nation-states, organized crime |
Counterfeit or implanted device (distribution channel) | Small to medium (hundreds to thousands) | Tens of thousands of dollars, plus access to a trusted sales channel | A few thousand dollars per wallet across a batch | Organized crime, rogue resellers or insiders |
Fabricated counterfeit secure element | Small (a batch) | 1M–5M+ (design and fabrication) | $1M+ in targeted holdings | Nation-states |
Fault injection and glitching | Individual | 5K–250K+ (equipment, expertise, time) | $100K+ individual holding | Skilled criminals, research labs |
Side-channel and invasive chip analysis | Individual | ~$10K (known flaw) to $5M+ (new invasive research) | $1M+ individual holding | Nation-states, elite labs |
Mass → individual attack spectrum
MASS | INDIVIDUAL | ||||
Attack | Malware and address poisoning | Software and firmware supply chain | Counterfeit or implanted device | Fault injection and glitching | Side-channel and invasive analysis |
Cost | Hundreds of $ | Tens to hundreds of thousands of $ | Tens of thousands of $ (cheap versions) to millions (take chips) | Thousands to hundreds of thousands of $ | Thousands (known flaw) to millions of $ |
Targets | Anyone | A product’s user base | A batch or sales channel | One device | One key |
Attack economics FAQ
-
Because with unlimited time and money, almost any security can be broken. That makes "is it possible?" the wrong question. Looking at what an attack costs and what it can return shows which threats are realistic for a given person and which ones aren't.
-
Clipboard-hijacking malware and address poisoning. Both cost very little to run and can reach millions of people at once. A Carnegie Mellon study found about 270 million address poisoning attempts over two years. Only around one in 10,000 succeeded, but that was still enough to make the attackers a profit.
-
The chip signs whatever transaction it's given. If the address was swapped on your computer or phone before it reached the device, the chip has no way of knowing. The defense is to check the full recipient address on a trusted screen before you confirm, and never copy addresses from your transaction history.
-
Compromising a wallet maker's software or update pipeline is mostly the work of nation-states and well-funded groups, since it can cost six figures or more. North Korea's Lazarus Group was behind the $1.5 billion theft from Bybit in 2025. Fabricating a fake secure element costs $1 million to $5 million and is realistically limited to state actors. But 2026 showed a cheaper hardware route: counterfeit devices with no secure element, and genuine devices with added implants, sold through marketplaces and resellers by organized criminals.
-
Lab attacks on a secure element make no financial sense against typical holdings. The realistic threats are cheap, mass-scale ones: malware, address poisoning, fake apps, and tampered devices from unofficial sellers. Check addresses on a trusted screen, buy hardware directly from the manufacturer or an official store, and keep your software clean.
-
Yes, in some cases. Authenticity checks confirm that the secure element itself is genuine, reliably catching fakes that lack one. They can't detect extra hardware added around a genuine chip. That's what happened with the implanted devices discovered in October 2026: the chip was real, but a hidden board read the recovery phrase from the screen during setup. Buying from the manufacturer directly is the best protection.