logoalt Hacker News

maxall4yesterday at 3:19 PM8 repliesview on HN

Is OpenBSD actually more secure than Linux? I have not been able to find any data to support this—only some vague opinions.


Replies

nelsonicyesterday at 4:17 PM

The Data:

Compare the number of CVE vulnerability trends over time between Linux: https://www.cvedetails.com/vendor/33 and OpenBSD: https://www.cvedetails.com/vendor/97

It's not even close! It's nearly two orders of magnitude higher for Linux. This isn't anecdotal or “vague opinion” CVEs are facts.

You can ask the follow-up question: Why is that?

And there are many reasons. It could just be that Linux having more users/eyes means more bugs are surfaced ... But you need to dig deeper to understand why OpenBSD is so much more secure, the core team of OpenBSD proactively reviews the security of other OSes and when they learn something, they rapidly implement the feature/fix in OpenBSD.

Again, read: https://en.wikipedia.org/wiki/OpenBSD_security_features Many of the proactive security features OpenBSD has are not implemented by other OSes. And in the case of kernel-level Crypto, they won't ever be because US export restrictions.

show 4 replies
teteyesterday at 7:50 PM

Given from what Anthropic says with Mythos: Yes.

show 1 reply
doublerabbityesterday at 3:56 PM

"Is Secure" is subjective.

I would be in favour to say that out of the box OpenBSD is more secure than Linux.

show 1 reply
stackghostyesterday at 5:09 PM

It's not meaningfully more secure than e.g. Debian.

Their claim to fame ("only two remote holes in the default install in X number of years") is definitionally only valid for the default install in its default configuration which means: no httpd, no smtpd, no unbound, etc. etc. etc.

The default install isn't very useful, because it doesn't do a lot, and so "only two remote holes" or whatever isn't really saying much.

For example: there are still CVEs popping up: https://nvd.nist.gov/vuln/detail/CVE-2024-11148

Linux has more CVEs because it's orders of magnitude more popular. OpenBSD has appalling performance, and more or less nobody uses it, so there just isn't a large focus on auditing and fixing it.

It's a great research project, but I would not run it on my personal devices. Not because it's "insecure" but because the putative security benefits do not merit the shockingly poor performance.

show 3 replies
foofyteryesterday at 4:32 PM

macOS is BSD roots on top of Darwin

show 2 replies
tptacekyesterday at 4:04 PM

No. (It's fine!)

JCattheATMyesterday at 6:18 PM

No, not really. Linux has better options available and is significantly stronger when configured correctly. The OpenBSD approach ls largely based around eliminating bugs in the first place, but isn't as strong at limiting an attacker that successfully exploited a bug they missed or weren't responsible for.

show 2 replies