My specific implementation of password management is heavily influenced by Michael Bazzell's suggestions. I use VeraCrypt, KeePassXC, YubiKeys, and several micro SD cards hidden inside of covert nickels in order to achieve a system that is secure and redundant.
VeraCrypt Containers
The first level of my stack is a VeraCrypt container to store everything in. This aleviates any concerns about the encryption of the database or files I am storing. I just throw everything that I want to keep safe inside of a VeraCrypt container. The container apears like a file to a casual observer, but will become a mounted folder (or disk) when opened with the VeraCypt GUI or CLI tool. So for example I could place a file called 'totally_not_passwords.txt' in //path//to//really//obscure//directory//. This might provide a modicum of security, but any real attacker is just going to dump your entire user folder and quickly see the weird txt file that is 1000 times bigger than any txt file has any right to be, and also happens to be exactly 1 GB in size. That is okay though, because the point is not really to hide it, but to rely on VeraCrypt's encryption. VeraCrypt is a trusted name, even among the paranoid security crowd. There are some entertaining conspiracy that sprang up around the EOLing of TrueCrypt and the subsequent assendance of VeraCrypt, but there are no credible complaints with VeraCrypt, and you can rely on it when used properly.
When setting up VeraCrypt, you have several options beyond just a vanilla passphrase:
- PIM: The PIM is the number of iterations that the header key derivation algorithm runs. If you want to add a second factor that an attacker will need to guess, you can set this. Default is 98, higher is more secure.
- Key Files: A key file is yet another factor that can be required to open your container. Obviously a file stored on a computer can store a greater amount of random data than a human can remember, so I recommend using a key file. They can be used either in conjunction with a password or independently of each other. So if you use both, an attacker would need to get your container, key file, and your password. Of course, this introduces another layer of security, but it also introduces another layer of complexity when it comes to backups and synchronizing things.
- Hidden Containers: Hidden containers give you a veil of plausible deniability to hide what is actually in your container, even when you give up the password. You make a normal container, called the outer volume, and put some bait inside it (something that is somewhat believable that you would want to hide, like your diary or secret plans to take over the world,), and then VeraCrypt will create a second container that is 'hidden' within the larger container. This hidden container has to be smaller than the outer volume and hides your actual sensitive files. If you ever have to give up your password under duress, you can give up the password to the outer volume, and the attacker will be unable to prove that there is also a hidden volume where your real sensitive data resides.
Within my container I store all of my sensitive files:
- KeePassXC password manager database
- SSH key files
- Yubikey configuration files
- rclone configuration files
- canary tokens Most of these are beyond the scope of this post, but they usually also have a second password integrated.
Using KeePassXC
I use KeePassXC, as my password manager because it fulfills all of the requirements that I was looking for, and I have been satisfied with no reason to look for a replacement. KeePassXC is cross-platform, has a good browser extension in Mozilla, and supports YubiKeys. Setup is very straightforward for KeePassXC. You can import a CSV (which your web browser will export for you if you have been using it as a password manager), and then choose a password, key file, and challenge/response (i.e. YubiKey).
Transferring Between Devices
Once you have your password manager's vault in a VeraCrypt container, you now have to find a way to transfer these files between computers if you want to be able to create new accounts on one device and then use them on a different device. Rather than trying to use a cloud service, I rely on manual updates. I store my 'main' container on a specific device, and periodically update my secondary device. I eject the micro SD card from my secondary device, insert it into my primary device, mount both containers, merge the secondary vault into the primary vault (this will pull any accounts created on the secondary device into the main vault), and then overwrite the secondary vault with the main. The benefit of this process is that it avoids unnecessary exposure (like on a cloud service), and forces me to perform manual backups regularly.
Making Backups
The last step in my process is maintaining a system of offline backups. If anything should happen to my primary and secondary containers at the same time (a house fire), I have remote (and hidden) backups in various places. I regularly make a copy of the current version of my main container onto a spare micro SD card, hide that card inside a covert nickel, and then hide that nickel somewhere. Some of these nickels I would be able to get to in a matter of minutes to hours, some are very far away. Of course this can get confusing, so I keep a spreadsheet outlining the location of each of these and when they were last updated (this spreadsheet is stored inside the same container as the vault). Some of these backups get to be many months old before I can access them, but the system of various ages at various locations keeps me confident in both my redundancy and resiliency.
No comments:
Post a Comment