How do you Secure your Arch System?
I know there is a wiki Article about Security, im just curious of more Security Options.
About this post
- Posted
- Archived
- Score
- 29 · 100% up
- Kind
- Text
- ID
- 79oct7
I know there is a wiki Article about Security, im just curious of more Security Options.
21 comments
The question is a bit vague, but I'll try. It all depends on your threat model (aka who/what are you trying to protect from).
Are you afraid of a roommate stealing your passwords? Someone stealing your laptop? Being hacked through SSH? Being redirected to a man-in-the-middle attack?
All of these will need a different defense that will also have to be evaluated against the inconvenience they may cause among other things.
Having an up-to-date system and following reasonable care when using your computer is often enough to protect you from the most common harms, but nothing can really protect you 100%.
What do you mean with this? A roommate looking through files with plaintext pw's on your machine?
chmod 000on every file >:DWell, plaintext would be a bad thing regardless. I meant someone using your logged-in account to skim through your saved passwords in your browser. Or perhaps making a copy of your home folder (if unencrypted).
Appropriate xkcd: https://xkcd.com/1200/
Totally vague IMO.
You can protect your computer to the point where it is barely usable, or you can prioritize certain things you care about to keep convenience
For many people, simply having an encrypted partition, disabling SSH password access (if you do have ssh enabled), securing your browser, and common sense when downloading things is enough. Goes without saying, but always keep your shit up to date too**
And also it's good to install a firewall and block incoming traffic by default, just in case.
Set your screen to lock after X amount of time- the shorter the better. Disable Magic Sysrq keys so theres no way a snooper kills your screen lock and gets logged in access to your system. Ensure the system is encrypted with LUKS in case they reboot the computer and try to boot from a liveCD or USB. This will stop most common thieves.
Advanced thieves or state agencies can pull your encryption keys from RAM, so only having the computer off will save you there. Of course, they could break in while you're away, install a USB keylogger, and then get your password later. As someone else says, its all about threat model. LUKS, a screen locker, and disabling sysrq keys is a good start. Its prolly good to use linux-hardened from community solely so you can get access to the kernel.deny_new_usb sysctl function that way an attacker with a USB stick can't exploit and get access to your system.
iptables blocking incoming is good. A paid VPN or VPS is good for when you are out and about- prevents domain snooping and MITM attacks (http sites) when on open wifi. Only acceptable using Openvpn.
Use firejail for at risk applications, but consider whether you want it to use user-namespaces as part of its security; this is a contentious subject with strong views on both sides, so do your research and decide for yourself.
Install rkhunter and run it every so often. Keep a backup, and preferably keep one long-term backup away from your home (encrypted of course). The cloud is a possibility too.
By far the browser is your most vulnerable portion of your system. It is basically an operating system of its own, its exposed to tons of foreign code, it has a massive attack surface, and its the highest payoff target. Spend time learning how to secure your browser- firejail, MAC, various hardening tweaks (about:config or user.js tweaks), extentions (noscript, ublock, umatrix, https everywhere, etc), etc etc. Torrent clients should prolly be locked up too.
Ideally you would strip everything from your kernel you don't need, disable all devices on your computer that you don't need, and you would update daily.
Realistically, Linux is very hard to reliably exploit- so many distros running widely different versions of software in widely different configurations, etc etc. Not that it isn't possible or inevitable- it is- just that its more difficult to have widescale diffusion. Arch exacerbates this in some ways (since "Arch" could be a console cli app install to a full-blown Gnome/KDE install depending on user), but the AUR is a massive risk unless you pay close attention to PKGBUILDs.
LUKS for the entire drive it's a must in term of security and privacy, using gpg for files too.
Here is the post I made on this topic before. Many suggestions related to drive encryption, password managers, and VPNs for web traffic.
Deleted before we saved it.
Root fully encrypted, encrypted container inside for certificates vpn credentials etc...
Privacy oriented browser plugins : noscript, umatrix, self destructing cookies, violentmonkey, decentraleyes...
Personal firewall, don't rely on the nat, the nat is NOT a firewall.
No saved passwords, not even a keepass db. I'm using masterpassword.
Created my own secureboot keys, flashed them over the MS ones and locked my uefi.
For highly sensitive stations, like the CA box to make our certs I'm using airgapped openbsd and put the box in the vault.
edit: all of this is useless as long as Intel ME isn't disabled.
I don't.... it's open except for using "vaults" in KDE for private folders.
Aside from that, i don't ever store passwords for websites. It's a variation of one password i use for everything. I have nothing on my PC that is sensitive. If it is... it's in the KDE vault or on OneDrive in a protected zip file.
My aim when it comes to privacy was to have a computer that could get taken, and not have to worry about what's on it.
If you're looking for more options, you should look beyond what Arch offers. But unless you're a company or a school, you probably don't need stuff like hardware encrypted storage, Cisco router, switch and ASA, proxy server, RADIUS server, etc. These are really nice but in a SOHO environment completely unnecessary and expensive.
I'll give some tips on what I do. Please remember that keeping your data safe is usually done by not drawing attention to yourself, and not saving something on your machine that you don't want taken.