I use full disk encryption (FDE) on all my laptops and portable media. I like to have a very strong passphrase for these, one that is even stronger than that for my user accounts. Let’s be realistic, very very few people are going to use a 60 character passphrase for their daily account, but I wouldn’t mind using that to unlock my laptop since I only have to enter it so rarely (and I go through customs a lot). With the Mac, there isn’t a nice built in way to have a long unlock passphrase for FileVault and a more reasonable one for day to day use of the laptop. However, we can use the features we have in the OS to make this happen.
Summary
- User 1 (“unlock”) used solely to unlock the disk. This user has a long, secure passphrase. You won’t use the device as this user. This user does not need to be an administrator.
- All other users, the day-to-day users/admins have a more manageable passphrase. At least one of these users is an administrator.
Summary of steps
- Create an “unlock” standard user with a looooong passphrase
- Allow the “unlock” user to unlock the disk
- Reboot and confirm access via “unlock” user
- Disallow the day-to-day user from decrypting the disk
Details
1. Create the “unlock” user.
a. Go to the System Preferences and click on “Users & Groups”. The user does not need to be an administrator. I made my user a “standard user” so even with the correct passphrase to unlock the drive a second account is needed to administer the system. There really isn’t an extra burden as you aren’t going to be running as the “unlock” user anyhow.
b. Create the “unlock” user and select a loooooooooooong passphrase (DO NOT LOSE THIS!).
2. Allow the new user to encrypt the disk.
a. Go to System Preferences and click on Security & Privacy.
b. Click on Enable Users
c. Click on “Enable User”.
d. Enter the long passphrase for the “unlock” user.
e. Ensure the green check mark is shown.
3. Reboot
a. Confirm you can login as the “unlock” user.
b. Logout of the “unlock” user and back into the account that has administrative access.
4. Disallow the day-to-day user from decrypting the disk
a. Open the terminal and type the following (replace “redsiege” with your day-to-day username):
sudo fdesetup remove -user redsiege
b. Repeat 4a for other users on the system EXCEPT the “unlock” user.
c. Reboot and confirm. Unlock the disk with “unlock” and the long passphrase, logout of “unlock”, then login as your normal user and works as usual!
Conclusion
You can now user a really long passphrase to protect your data when your laptop is powered off and booted. This is really nice if you have to cross any borders and want to make the passphrase that secures your data much better. Bonus points if you change the long passphrace, leave the data with a trusted individual, then ask athe trusted source for the info once you get through customs. That way customs can’t make you decrypt the data since you can’t!
Related Stories
View MoreIntroduction to Sliver
By Red Siege | November 7, 2022
By: Justin Palk, Security Consultant Around the time Tim decided he was going to give a Siegecast on selecting a C2, I finished building out a test Windows AD domain […]
Learn MoreMoving beyond T4 – Deconstructing Nmap Tuning
By Red Siege | July 6, 2022
by Alex Norman, Senior Security Consultant Nmap -T4 -iL targets.txt This is a very common scan string that many people use to get initial recon done on assessments and, to […]
Learn MoreCreating a Simple Windows Domain for Offensive Testing: Part 4
By Red Siege | June 23, 2022
By: Justin Palk, Security Consultant This is part four of my series of blog posts on creating a windows domain for offensive security testing. In part 1, I stood up […]
Learn More