I wonder if it would be feasible to make a battery powered FPGA based always-on ...

@jcm@wafrn.jcm.re

I wonder if it would be feasible to make a battery powered FPGA based always-on hardware security module, that stores its secrets in registers, so if anynyan tries to poke at it, it will lose the secrets.

Fitting a key generation algorithm, plus some encryption/decryption modules onto an FPGA shouldn't be too difficult…

The idea wouldn't be to have the FPGA be the root of trust (I wouldn't trust something that loses data that easily), but to be some kind of easily portable copy of it.
So losing the secrets would be a major hassle, but not the end of the world.

But I struggle with two things:

  • How do I guarantee confidentiality and authenticity when it comes to reprogramming in an evil-maid scenario? I probably don't mind an attacker reading my bitstream, but partial reconfiguration would be a major issue. I know it's possible to prevent that on Xilinx 7 series (BITSTREAM.READBACK.SECURITY). I don't know enough about ECP5 yet to know if it would also be an issue there.
  • How do I extend the trust from the FPGA to other devices? How could I verify that e.g. my laptop hasn't been manipulated? I guess the FPGA could require user input for authenticating certain actions, but I don't know if there's any good way to determine if I can trust the laptop (which would be nicer compared to just authenticating single operations).