Nitrokey / nitrokey-storage-firmware

Firmware for the Nitrokey Storage device
GNU General Public License v3.0
54 stars 19 forks source link

Enhancement: Encrypt unencrypted volume or format SD card #8

Open jans23 opened 8 years ago

jans23 commented 8 years ago

Objectives:

  1. Enable reliable wiping of data on the unencrypted volume
  2. Prevent evil maid attacks which physically remove the SD card storage and write to the unencrypted volume.

Possible Solutions: a. Encrypt the "unencrypted" volume and unlock it when booting the device (without requiring a PIN). b. Add the SD Card Formatter functionality into the firmware. This would not achieve objective 2.

Further readings on SD cards:

ghost commented 1 year ago

This is a rather old issue, but I'd like to discuss the formatting part. According to SD CARD org, the overwrite function overwrites all the user data. Would this alone be reliable enough? Considering that it's flash storage after all, but sd cards seems to the simpler in terms of structure compared to SSDs (Correct me if I am wrong) Obviously encrypting it first and scrambling the key afterwards would ensure in a proper wipe, but it might take a toll on the performance of the micro controller in question.