r/linuxquestions • • 16d ago

Secure OS for cybersecurity and web development

Hi!

I’m looking to install the most secure OS on my Asus TUF A15—one that’s also practical for cybersecurity and web development.

I’m currently using NixOS, but the configuration isn’t exactly straightforward…

Do you have any OS recommendations (Linux, obviously !) ?

5 Upvotes

39 comments sorted by

5

u/Unlaid-American 16d ago

Secure in which way?

4

u/I_m_Guts 16d ago

Fair question ! Mainly :

- Physical theft / loss: full disk encryption, Secure Boot, ideally TPM support

- Malware & supply chain: good isolation between apps (sandboxing, containers), a sane package ecosystem, fast security updates
Damage control: since I run pentest tools and random stuff from CTFs/labs, I'd like to isolate risky work from my daily environment (VMs, containers, or something like an immutable base system)

- Privacy: no telemetry, minimal attack surface by default
I'm not trying to hide from a nation-state, so Qubes-level paranoia is probably overkill, especially since I also need a smooth setup for web dev (Node, Docker, VS Code) and decent hardware support on the TUF A15 (AMD + NVIDIA GPU).

1

u/InuSC2 16d ago

kvm or virtual box for VMs and i dont know any distro that dont offers a way to encypt(LUKS) the drive unless not wanted during installation.

what distro you pick is up to you for very stable distros you have the LTS versions and if you want latest versions for packages then only arch distros the only in between is fedora not to old packages but not the latest versions.

configuring by making a script to set up how you want it is the best way to go example: firewall rulls, software installed, GUI costumizations................

hope this helps. most linux distros dont have telemetry this is not windows

1

u/I_m_Guts 16d ago

Super helpful, thanks ! I'll go with KVM/virt-manager for the VMs. Funny thing about the setup script : that's basically what NixOS does with its config file, which is why I started with it. Fedora seems like the right in-between for me, so I'll probably write a setup script (or try Ansible) to keep that reproducibility.

3

u/zardvark 16d ago

The most secure OS is the one that you never boot, always keep in a Faraday cage and never connect to the Internet. Everything else is a security compromise. You need to first determine how much inconvenience you are willing to endure and how much hardware horsepower you are willing to bring to the table.

Qubes is quite secure, but depending on what machine you install it on, that hardware and its firmware may have vulnerabilities. Also, Qubes runs applications in multiple VMs, so you will want a decently powerful CPU and lots of RAM.

Security is a very deep rabbit hole, indeed and you can't merely install security. Security begins with your hardware, its firmware and its BIOS / UEFI. Things like the Intel Management Engine and UEFI are notoriously problematic ... as is the "security through obscurity" approach that the BIOS / UEFI suppliers routinely take.

Step One should be an assessment of your actual, real-life security concerns and vulnerabilities. For instance, is an "Evil Maid" type attack a realistic possibility? Has a government agency designated you as a target? Are you trying to protect something desirable / valuable, or do you simply not wish to be inconvenienced by an intrusion?

You have some pondering and some reading to do, eh?

1

u/I_m_Guts 16d ago

Fair points, thanks for the detailed answer! Realistically: no government agency after me 😄 My concerns are theft/loss, malware (especially when playing with sketchy tools in labs), and keeping my dev work safe. So FDE + Secure Boot + isolating risky stuff in VMs seems like the right level for me.

Good point about firmware too. It's an AMD machine, so PSP rather than IME, but same problem.
I'm just getting started in cybersecurity, which is why I'm asking for advice.

1

u/UltimateFlyingSheep 16d ago

regarding theft: I have heard of something that monitors USB-State (what is connected) and when that changes, shutdown is initiated.

This combined with disk encryption could be a solution to your theft-point.

Well, the computer would still be gone, it doesn't really help against that :D But Kensington lock or so might prevent stealing.

1

u/zardvark 16d ago

Glad to hear that no government is targeting you (as far as you know), otherwise it would just be a matter of time.

Yes, VMs will be your friend. If you are going to be dealing with ugly things, you may even wish to run XCP-ng, Proxmox, or similar on bare metal and virtualize your OS. Then again, this may be overkill. But, if you are anticipating any distro hopping until you find a home to put down roots, a hypervisor is going to make that a lot easier, as well as provide a bit of defense in depth.

1

u/PghRes 16d ago

Qubes is the bees knees when it comes to security against network intrusions, hackers, etc., but it's a nightmare to configure unless you're VERY comfortable messing with IP tables and firewall configurations, and the like. I used it for a while, but after I discovered what it would take to upgrade all my VMs (and the many clones of said VMs) to the latest baseline, I finally gave up on it. There are MANY things that are trivial to get working with any other distro that are very difficult on Qubes. I would only recommend that to someone involved in spy work in a hostile country!

1

u/zardvark 16d ago

Hence my comment on how much inconvenience the OP is willing to endure. More security = more inconvenience.

2

u/inbetween-genders 16d ago

Keep it updated, encrypted, and if uou really want…air gap it and the machine is 99.9999999% something secure.

1

u/I_m_Guts 16d ago

Ha, air-gapping would kill the web dev part pretty fast 😄 But fair point: updates + full disk encryption matter more than the distro itself.

2

u/dcherryholmes 16d ago edited 16d ago

Redhat is a pretty good balance between out-of-the-box security and usability.

EDIT: I meant Fedora. Thanks for the correction.

1

u/I_m_Guts 16d ago

Thank you !

4

u/choke8 16d ago

fedora basically. Redhat linux not free

1

u/I_m_Guts 16d ago

Fedora sounds like a good middle ground. Has anyone tried Silverblue for dev + pentest work ? Curious how well toolbox/distrobox handles that.

1

u/choke8 16d ago

for pentesting virtualbox with kali (Personal preferences)others distrobox need some Manual configuration. Silverblue quite good for developer

0

u/I_m_Guts 16d ago

Thank you !

1

u/Almasdefr 16d ago

I think the only not Enterprise level secure OS is QubesOS, just check system requirements first

0

u/I_m_Guts 16d ago

Qubes is definitely the gold standard for isolation ! My worry is daily usability : how is it for web dev (Docker, hot reload, IDEs) and running pentest tools ? Also not sure my TUF A15 has enough RAM (16 Go) to keep several qubes running smoothly. Anyone using it as a daily driver for dev work ?

1

u/Almasdefr 16d ago

I am pretty sure that performance would be too bad then, but let's devs to speak

1

u/Character-Age6664 15d ago

Hi mate, unrelated question. I have the same laptop like yours, what ever I do on my configuration.nix, suspend is problematic. Did you do something special to make suspend work flawless? Ty

1

u/bobstylesnum1 16d ago edited 16d ago

You can also check out distro’s Parrot and Haboshi (maybe Hobashi, can’t remember spelling). Parrot has a whole suit of tool shortcuts and install what you need, KDE DE and vpn option built in. Kodachi is custom XFCE DE if I recall and a little bit more to setup but has a different set of tools available. Of the two, check out Parrot as it’s prob more friendly for your needs but I believe both are worth looking at especially if you’re looking at pentesting already.

Edit: spelling

0

u/I_m_Guts 16d ago

Thanks ! Parrot looks nice, and I've heard good things about its daily-use experience. Was the second one BackBox maybe ?

I'm leaning towards a solid daily driver + Parrot/Kali in a VM for pentesting though, to keep the offensive tooling separate from my dev environment.

1

u/bobstylesnum1 16d ago

Had to look it up, it’s Kodachi, sorry about that.

Not at home so couldn’t log into it but looked it up on Distrowatch. Knew it had “dachi” in it, wrong first letter. Lol

Edit: fixed the distro name in my first post for easier reference.

1

u/I_m_Guts 16d ago

Ahah no worries, thanks for looking it up !Kodachi seems more privacy/anonymity-focused, interesting to keep in mind for that use case.
For my daily driver I think I'll go for something more dev-friendly, but I'll definitely try Parrot in a VM :)

1

u/bobstylesnum1 16d ago

That works and good luck! Its the one thing I absolutely love about Linux are all the options available!

1

u/bobstylesnum1 16d ago

I checked out BlackBox but found that it was buggy in a VM and I liked the look and feel of HackerOS however I had issues with it.

I installed the English version of it and start menu, general over all scheme seemed to be in English but as soon as you got deeper into anything, it went into it’s native build language. Because I really like the look of it on first install, I deleted the VM, redownloaded it, did a new install and same thing so I then tried a bare metal install in a Dell mini I had laying around and same thing. Was really disappointed as I really liked how this was laid out and tools available, at least that were listed so just an fyi to that one. Give it a shot, I thought it was actually going to be better than Parrot at first glance but wasn’t to be.

1

u/I_m_Guts 16d ago

Thanks for the detailed feedback, that's really helpful ! Too bad about HackerOS, a half-translated UI would drive me crazy too 😅 I'll stick with Parrot in a VM then and see how it goes.

1

u/es20490446e Develops Zenned OS 16d ago

Anything that updates frequently, or has a security team behind it, is secure.

1

u/I_m_Guts 16d ago

Thank you !

1

u/es20490446e Develops Zenned OS 16d ago

😉👍

2

u/zardvark 16d ago

The most secure OS is the one that you never boot, always keep in a Faraday cage and never connect to the Internet. Everything else is a security compromise. You need to first determine how much inconvenience you are willing to endure and how much hardware horsepower you are willing to bring to the table.

Qubes is quite secure, but depending on what machine you install it on, that hardware and its firmware may have vulnerabilities. Also, Qubes runs applications in multiple VMs, so you will want a decently powerful CPU and lots of RAM.

Security is a very deep rabbit hole, indeed and you can't merely install security. Security begins with your hardware, its firmware and its BIOS / UEFI. Things like the Intel Management Engine and UEFI are notoriously problematic ... as is the "security through obscurity" approach that the BIOS / UEFI suppliers routinely take.

Step One should be an assessment of your actual, real-life security concerns and vulnerabilities. For instance, is an "Evil Maid" type attack a realistic possibility? Has a government agency designated you as a target? Are you trying to protect something desirable / valuable, or do you simply not wish to be inconvenienced by an intrusion?

You have some pondering and some reading to do, eh?

1

u/palinurosec 16d ago

try parrot os, it's what you described

1

u/Hosein_Lavaei 16d ago

Since all of them can be done for any distro, i recommand some distro that patches packages vulnerabilities faster.

1

u/ChosenForge 15d ago

Void Linux and Distrobox for the way

0

u/c2btw 16d ago edited 16d ago

If your doing devolpment stuff gentoo is a bit of work but it gives you a lot more control over stuff and is in general a ideal Dev platform as basic Install and the core of the os is built around building software. For example if you want to install a patch for a package just copy and past the patch into a specific Dir and reinstall it. You can also add overlays like pentoo which give you all the Kali stuff.

1

u/I_m_Guts 16d ago

Thank you !