Looking for suggestions about which type of encryption for a clean Arch install in a new SSD
Recently bought a Samsung 850 EVO 500GB SSD to upgrade my Dell Inspiron 5547, and I'm looking to encrypt my whole data for the first time, but I can't make up my mind in which type of encryption to use, particularly hardware (SEE) vs software (lurks) encryption.
My requirements are:
-
Encrypt all data in / and /home (I won't even setup a separate partition for /home)
-
Be able to access the data from a different computer, if need be (say like via a SATA-USB dock)
-
As KISS and easy as possible
My available choices are:
-
My computer's BIOS has a "HDD Password" feature, so if I set one up the SSD will use the legacy ATA thingie to encrypt itself. This looks like the easiest way to do it, and it's quite simple because after you unlock it the whole system will have no idea that the drive is encrypted. I don't know if this method would be easily decryptable in another computer (does sedutil-cli works with this?)
-
I could use OPAL, which looks a bit complicated but I could probably get around it.
-
I could do it the old way and use dm-crypt, which also looks a bit complicated but I know I can get around it because I've used it with USB drives before.
Any thoughts?
----- Edit -----
Thanks everyone! I made up my mind and I'm going with LUKS. Now I'm researching about whether I could benefit from a LVM or not. This is going to be a fun learning experience! :)
Edited 6 Mar 2018. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 24 · 100% up
- Kind
- Text
- ID
- 82bdrb
39 comments
I would go with LUKS. It's widely used and really easy once you know the handful of commands. I wouldn't trust BIOS cruft to be secure or compatible for decryption with other motherboards even if it is supposed to adhere to some standard. I don't know anything about opal.
+1 for LUKS. It's easy-peasy. I would, however, make sure that you set a password on the BIOS: not the disk but the BIOS itself.
Why would you recommend setting up a BIOS password if it's just a matter of clearing the CMOS to get rid of it?
I always thought of BIOS passwords as more of an annoyance rather than a security layer. Is there anything I'm missing?
https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#LVM_on_LUKS
not complicated at all. small downside is /boot is not encrypted, but it doesnt seem like one of your requirements
Why would you need /boot encrypted?
Mild protection from an evil maid attack. Someone who gets 5 minutes with your laptop could drop in a custom bootloader with a keylogger. Encrypted
/bootmakes that slightly more difficult.Because a maid attack can easily add a rootkit, the next time you use it is totally under his control, even your password.
Why would I want to use a LVM?
Is there any benefit considering that I'll do a plain single partition with everything (except /boot) on it, will not use swap at all (I've got 16GB of RAM), and everything else with high I/O (like /tmp) I'll just ramdisk it for the sake of the SSD?
In that case you don't.
There is no real downside if you just use LVM with a single large logical volume. The benefit is if you ever change your mind (in particular if you decide you need a swap partition after all), or decide to migrate, LVM will make it easier.
It's actially quite easy to also encrypt /boot with GRUB (at least with BIOS boot, not sure about UEFI)
Edit: I used this guide together with the wiki
For your information: LUKS is not software encryption only, it will use the AES-NI extension of your CPU if available (and therefore en-/decrypt in in the range of a few hundred MB/s up to a few GB/s).
Besides that, LUKS encryption support is pretty good, would recommend it (and it's open source too, in contrary to the password/encryption feature of your, e.g., mainboard or HDD).
I use luks+lvm on mine (plus secureboot for extra protection)
LUKS is pretty much guaranteed to operate properly on any (properly set up) linux system, but it's linux only.
The ATA password thing is handled by the drive itself, in samsung's case they wrap the drive's key with your password. It should work on any computer. The downside is you don't know exactly how this feature is implemented.
Glad you went with LUKS, but let me give you a warning in case you had a specific use case in mind.
Interacting with LUKS-encrypted stuff isn't great on Windows. Here's a free software project that aims to make a luks driver for windows, but read the README there's some caveats. You'll also need a driver for the underlying filesystem, but the EXT2 driver on Windows works pretty fine.
I know from experience I've gotten a BSOD when trying to read from a luks partition. But that was a while ago and I don't remember the specifics. Nowadays I haven't booted Windows in a while so I'm happy with LUKS
What about encryption that can be undone if you change your mind? Like how with windows you can un-bitlocker a system or with Macs you can turn off file vault?
Well, you can always copy things out of it and back after formatting it without encryption. Pretty sure there is no in-place decryption avaliable on Linux (since tbh it doesn't make much sense)
Why not? I can see quite a few uses for this if the hardware is changing to another user who doesn't need the encryption or if the performance hit is so bad you have to turn it off.
Deleted before we saved it.
Use LUKS, it's safe and fast.
For /boot, use Secure Boot.
LUKS
+1 for LUKS on LVM and UEFI