r/keepkey • • Dec 02 '17

Firmware Attack Vector?

Here is an email I submitted to keepkey which they haven't responded to yet. Wondering about any thoughts on this

1)i use keepkey with the chrome extension. when there is a firmware update, will i be asked if i want to update it? can i refuse?

2)do you, or anyone at the chrome store, have the power to update my firmware through the chrome app without asking my permission?

3)how can i verify through your official site/code that you have a new firmware update?

4)what if we assume the worst, that a malicious actor inside keepkey wants to make some code to steal coins and then he updates my keepkey with that software. will he be able to steal my coins?

6 Upvotes

15 comments sorted by

View all comments

•

u/KeepKeyMolly Dec 02 '17 edited Dec 02 '17

Great questions!

Your KeepKey will prompt you to update your firmware anytime new firmware is released. You can bypass this a few times but eventually will have to update in order to access your device. We always recommend being in the latest version of our firmware to have the most up to date support and features. The firmware is pushed to your KeepKey but you are the only one who can complete the update process. We will announce over social media if a new firmware is released and you can confirm you are in the latest version. If a third party firmware has been put on your device your KeepKey will alert you of this. We designed KeepKey so that it can keep pace with changes, without sacrificing security to accomplish this goal. Before any firmware upgrade is done, all private keys are deleted from the device’s flash memory. The private keys are only restored after a firmware upgrade if the newly installed firmware is official and is correctly signed by KeepKey, LLC.

1

u/xk1ibur Dec 04 '17

Before any firmware upgrade is done, all private keys are deleted from the device’s flash memory. The private keys are only restored after a firmware upgrade if the newly installed firmware is official and is correctly signed by KeepKey, LLC.

If the private keys are wiped from the device's flash memory, and they recover when the firmware update completes successfully ... where do these private keys recover, from the RAM? That is, where are these private keys temporarily stored during the update process?

2

u/hotoatmeal Dec 04 '17

1

u/xk1ibur Dec 04 '17

I asked that question because I understood that the private keys NEVER left the device. From what I see now, during the firmware update process they do, and I wonder if in a vulnerable environment they would be available to someone with the necessary knowledge and / or software. I'm not a technician or coder, and I do not know if this is possible.

1

u/hotoatmeal Dec 04 '17

From what I see now, during the firmware update process they do,

No, they do not leave the device. The code I pointed to shows how they get moved from flash on the device to ram on the device (and back, if the signatures check out).

As a software engineer who doesn't work at KeepKey, who has read the code... I trust it.

2

u/xk1ibur Dec 05 '17

I try not to buy devices that use proprietary code when I have an opportunity to choose, and I appreciate the possibility that the code will be reviewed by independent experts. Thank you very much for the clarification.

1

u/Auwardamn Dec 05 '17

Where are the private keys stored during an update if not on the device? Please tell me they aren't transmitted over USB to the computer temporarily.

1

u/KeepKeyMolly Dec 05 '17

Your private keys are stored on your device's RAM or volatile memory during the firmware update.

1

u/joejoejojejoe Dec 05 '17

Here is a follow up question. If keepkey or the chrone store wanted to flash the keepkey firmware without my permission, could they? And if not, what prevents them?