I don't know whether this is true, but it's definitely possible (there are pin-compatible 64 KiB variants of the MCU). If you use the device without verifying the hardware, it's game over. To prevent Evil Maid attacks, that means checking at EVERY use.https://www.reddit.com/r/ledgerwallet/comments/86b7dk/important_to_everyone_who_bought_a_nano_ledger_s/ …
-
Show this thread
-
Saleem Rashid Retweeted Hector Martin
On the other hand,
@marcan42 says there are no pin-compatible STM32s. My point still stands (you can likely attach SPI flash to the rear of the device, or perhaps attach a new board to the JTAG), but it seems like the Reddit user could be lying.https://twitter.com/marcan42/status/976917423822483456 …Saleem Rashid added,
Hector Martin @marcan42Replying to @saleemrash1d @spudowiarI don't actually see any 64KiB pin-compatible variants. The only STM32 part with 64K flash and USB in that package is the STM32F302K6 (or K8), which is a completely different series and CPU (F3/Cortex-M4 instead of C0/Cortex-M0) and has a slightly different pinout.1 reply 2 retweets 3 likesShow this thread -
Replying to @saleemrash1d @spudowiar
It is of course still entirely possible to stealthily carry out the attack (e.g. have one of the 48-pin 64K variants custom-packaged and labeled into a 32-pin package, China will do that for you), but quite a bit harder.
1 reply 0 retweets 1 like -
Replying to @marcan42
Would you be able to have that done such that the extra 32KiB is basically "undetectable"? i.e. JTAG and memory map only goes up to 32KiB, but the system bootloader is modified to run hidden code if the "non-hidden" code is signed by Ledger.
1 reply 0 retweets 0 likes -
Replying to @saleemrash1d @spudowiar
Not JTAG, but it should be entirely possible to trojan the bootloader such that it accepts legitimate firmware updates over USB, stores them, but still runs the old modified code (or even dynamically patches the new code, if it hasn't changed much).
1 reply 0 retweets 0 likes
This is a very old war to fight (and lose); this kind of thing and similar techniques have been going on for ages with hacked pay TV cards and the like. It's a cat and mouse game. Even with 32K you can always find a way to make some space and hide it.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.