MINimum Failure - Stealing Bitcoins with Electromagnetic Fault Injection

Black Hat USA 2019

Presented by: Colin O'Flynn
Date: Wednesday August 07, 2019
Time: 17:05 - 17:30
Location: Lagoon JKL

How secure is a typical hardware bitcoin wallet? Surely such a device would not pin the security on the execution of a single instruction, that if mis-executed would immediately reveal the critical recovery seed, right? Right??

This talk introduces an attack on the Trezor Bitcoin wallet that allows reading out of the recovery seed by performing electromagnetic fault injection (EMFI) through the enclosure of the device, without having to break or open the case. This means one can clone the device to steal bitcoins at a later date, without leaving any sign of tampering even should the physical seal be completely verifiable. And it comes down to a single comparison in the USB stack, which is replicated across many other devices (including most USB stacks on embedded systems).

To assist with the attack, this talk also introduces the PhyWhisperer - an open-source tool for performing advanced triggering on USB packets. This tool is used as part of generating the required timing for fault injection. Dumping memory has never been so fun or profitable! On the plus side, countermeasures can be reasonably implemented in most systems (and have already been added to the Trezor), so rather than just presenting a depressing future, this talk also gives the motivation for implementing the countermeasures.

Colin O'Flynn

Colin O'Flynn is a huge nerd. He also serves as an Assistant Professor at Dalhousie University, and C.T.O. of NewAE Technology Inc. He is (hopefully) known for his open-source ChipWhisperer project, which aims to bring power analysis and fault injection attacks to everyone (and their dog).


KhanFu - Mobile schedules for INFOSEC conferences.
Mobile interface | Alternate Formats