News for hackers. Stuff that matters.
Re:Linux Hardening Guide by viraptor on Thursday December 31, 2020 @02:24AM (#25590415)
I've got mixed feeling about this page.

1. It does list some completely valid options which are good to know. All of them are interesting both from the perspective of learning about more Linux internals and actually locking down access where needed.

2. It mixes security and privacy. Some privacy things may be interesting, but going as far as removing your machine-id? What's the scenario here exactly?

3. It tells you what you can do, but often doesn't say why. What's the threat model? It bounces between things that could be useful for the desktop and for the server. If you're protecting yourself at home, what exactly does blocking ICMP provide you, given it's likely both a flat network and you're registered in both upnp and mdns?

4. Some points I find really questionable: It says to avoid distros with systemd, however systemd was the first one to really bring service sandboxing to the masses. So many issues could be avoided if we used PrivateTmp years ago. Some points are really bad: Avoiding distros that freeze packages (I guess vs rolling distros) is not a trivial change and is not obviously more secure.

5. https://xkcd.com/1200/ - Sure you can put all of those extra options in kernel boot, the extra layers of service separation, spend time hiding identifiers and network options. Unless you're specifically targeted, nobody will ever try that. You'll be owned by some XSS which pulls your login cookie - and the list doesn't even mention Firefox tab containers which can separate that content. Or if someone's targeting developers, your SSH key will get extracted - and the post doesn't even mention hardware SSH keys.

Overall it reminds me of CIS policies. "Here's a CIS certified docker image. It has aida and tcpwrapper on it, because security."

Re:Linux Hardening Guide by Sebguer on Thursday December 31, 2020 @02:30AM (#25590453)
I'm glad that this called out systemd in the very first section, because it told me that the rest of it probably wasn't going to actually talk about anything actually meaningful for security.

Edit: Oh god I hadn't even gotten to the end of that same section where it recommends Gentoo???? This article is written for people who read Cryptonomicon and took it a little too seriously.

Re:Linux Hardening Guide by someRandoJunk on Thursday December 31, 2020 @04:56AM (#25591242)
Don't see anything wrong with Gentoo in their context.

Author says in disclaimer This guide is focused purely on security and privacy, not performance, usability, or anything else. He's not wrong. Gentoo makes it easier to have compile flags while building your system. Say you want to disable pulseaudio support completely? You can get rid of it completely from anything that might link to it by setting it globally as a flag you want to avoid.

Sure the guide doesn't follow a threat model, but there's still some good advice in there. If someone follows the guide as dogmatic gospel, as a list of rules to follow at all cost, that's on them. If one is responsible for securing down their stack, maybe they should know better than following everything down to the bone as if it's some gospel.

Re:Linux Hardening Guide by BelenusMordred on Thursday December 31, 2020 @03:26AM (#25590730)
Would you honestly say systemd is the most secure init system when writing your own "Linux Hardening Guide"?

That's a big call to make in such a context.

Re:Linux Hardening Guide by lclarkmichalek on Thursday December 31, 2020 @05:56AM (#25591573)
Yeah probably. Its support for easily configuring daemons to run under dynamic users, with private tmp, lesser capabilities, read only root, etc etc makes it quite attractive.

Even more attractive if you’re writing a blog post about hardening Linux against ill specified ill specified threats. Writing a bunch of config files to “lock down” random daemons seems like it’d be right up this guy’s alley

Re:Linux Hardening Guide by Sebguer on Thursday December 31, 2020 @04:02AM (#25590938)
Would you say Gentoo is the most secure distribution to use when writing yours?
Re:Linux Hardening Guide by BelenusMordred on Thursday December 31, 2020 @06:10AM (#25591635)
No, I wouldn't. Qubes likely has the most security features out of the box without configuration for the average person trying to lock down their computer. BSD and Arch-flavours certainly have plenty going for them though and I wouldn't speak badly of their intent+outcomes.
Re:Linux Hardening Guide by Foxboron on Thursday December 31, 2020 @09:17AM (#25592842)
systemd has a strong track record of finding and fixing security issues and getting the CVE published. This is important if you want to consider "secure software" and getting things resolved in a timely manner.

People focus on the attack surface, but most of it is local exploits where the threat model is "someone has shell on your box".

Re:Linux Hardening Guide by chris_wot on Thursday December 31, 2020 @10:09PM (#25600456)
Are you saying that you can’t harden systemd and reduce its attack surface?
Re:Linux Hardening Guide by wantguns on Thursday December 31, 2020 @02:56AM (#25590583)
whats wrong with Gentoo, my guy ?
Re:Linux Hardening Guide by Sebguer on Thursday December 31, 2020 @03:02AM (#25590626)
Absolutely nothing at all, but it is not a 'more secure choice' than an LTS distribution of a mainline distro and while this guide can't really decide if it's targeting local or server usecases, I can't imagine a worse existence than being responsible for a fleet of servers running Gentoo.
Re:Linux Hardening Guide by yjftsjthsd-h on Thursday December 31, 2020 @03:13PM (#25596643)
While I agree that Gentoo is probably not significantly more secure than most LTS distros,

> I can't imagine a worse existence than being responsible for a fleet of servers running Gentoo.

You lack imagination:) NetBSD, AIX, LFS, Arch Linux...

Re:Linux Hardening Guide by wojciii on Thursday December 31, 2020 @02:51AM (#25590568)
Systemd is evil. What alternatives are there which were designed with security and speed in mind? I would prefer something simple instead of a lot of features.
Re:Linux Hardening Guide by viraptor on Thursday December 31, 2020 @03:14AM (#25590673)
Inanimate things without preprogrammed social behaviours are neither good nor evil. There are lots of alternative inits and you can use all the same namespacing tricks yourself with unshare and ip. But you'll have to maintain them for each service yourself and that's A LOT of work.
Re:Linux Hardening Guide by delroth on Thursday December 31, 2020 @02:35AM (#25590483)
Some of the recommended steps like removing machine-id to prevent fingerprinting are especially funny when the rest of the article perfectly describes how to get your system in a completely uniquely fingerprintable state via obscure knobs most people don't touch.

As you've mentioned, it's a hardening "guide" without specifying a threat model, so its value is very limited anyway.

Re:Linux Hardening Guide by hendry on Thursday December 31, 2020 @07:22AM (#25591996)
CIS policies are a regulatory and government requirement for many industries. How does one combat this wasteful hardening activities?

https://aws.amazon.com/marketplace/pp/Center-for-Internet-Se...