getumbrel / umbrel-lightning

The official Lightning Node app for Umbrel, powered by LND.
https://umbrel.com
Other
17 stars 8 forks source link

Improve Umbrel security for seed phrase storage #53

Open ffrediani opened 5 months ago

ffrediani commented 5 months ago

Currently Umbrel stores the seed phrase in plain-text inside the file /data/umbrel-os/home/umbrel/umbrel/app-data/lightning/data/lightning/state.json which is a concern. Should anyone have physical access to the hardware running the node could just mount the Filesystem and have easier access to the funds on-chain.

Can this be improved by storing the seed phrase in a AES-256 encrypted file which may use Umbrel password to unlock it, so in the case the node is stolen the owner has some time to access the funds and transfer elsewhere from that wallet ? Some Hot Wallets use similar techniques in order to store seed phrases on users computer

For reference one technique used is based on 7-zip encryption which uses AES-256 but that may be others.