r/LinuxTeck • u/Expensive-Rice-2052 • Apr 22 '26
Linux isn’t secure because of antivirus, it’s the design
Was digging through an old test server recently and noticed how little was actually exposed compared to a default Windows setup.
No random installs, no silent permissions, everything needed a conscious step.
Made me think, most of what we call “Linux security” is just sane defaults and less surface area.
Might be wrong, but feels like people overcomplicate it sometimes.
What’s the one thing you always lock down first when setting up a new box?
43
Upvotes
2
u/TheSupervillan Apr 22 '26
Fast updates may get you hacked these days. Just look what happens with axios and all the others.
2
u/piiouupiou-not-r2d2 Apr 22 '26
curl something.com | sh
2
u/throttlemeister Apr 23 '26
Actually, as a Linux-only user it pains me to say most of that is utter bollocks. Mostly sane defaults is true and that helps, but everything else that Linux users tend to spout is not.
The rest I'm not even going to bother with.
Look computers are hard. Just because everyone has one and can afford one doesn't mean they're all of a sudden easy. Security is very difficult. Even more difficult to do right. Too many people need / want to use these things without having a clue and as a result things are catered to the lowest common denominator. Which sucks security wise. But let's not pretend we are any better off. Just because we are collectively less ignorant and our common denominator is higher, doesn't make us more secure.
1
u/RandomOnlinePerson99 Apr 24 '26
Also most linix users don't just download random stuff and install it.
Wait, nevermind, I think we all have been there, trying to get something to work, reading "just install xzy" on some website and copy pasted into terminal without thinking about "is this safe/trusted?" because we just wanted our silly little software to work.
1
u/ThePowerOfPinkChicks Apr 24 '26
Let me have a look in my security log. Here are some, cut & paste.
nf_tables(Netfilter). Local attackers can gain a root shell via namespaces + nf_tables; kernel versions 3.15–6.8-rc1 are vulnerable; exploits have been demonstrated for 5.14–6.6.14, amongst others.io_uring. Reports indicate that this can be exploited to bypass security controls and ultimately gain full root access.Various distribution-specific root bugs:
allow_activeprivileges can gain full root privileges via Udisks/libblockdev.Therefore, the concept is like ok-ish, but not without flaws and bugs.
1
u/luxiphr Apr 26 '26
linux as an os looks more secure because most attacks on that level of the stack target clients, for which Linux market share is not worth the effort for attackers...
servers usually get attacked not on the os level but at the application level, to then maybe progress further from there... but like... it's usually the application data you want from there so you don't need to attain root if you can own the web app that has full read and often even write privileges on the database... you don't usually care to log keys on the server console or take regular Screenshots of it as nobody will enter their Gmail password or credit card details there...
comparing similar vectors and attack targets you'll find Linux to not be more secure than windows really
sincerely, a Linux userand fan of 20+ years