Live data from Hacker News

HardenedBSD: Feature comparison vs other BSD distros

hardenedbsd.org

11–20 of 43 posts

Re: HardenedBSD: Feature comparison vs other BSD distros

#12
The list is mostly the kind of tactical mitigations that get bypassed a lot by private individuals and academia. Clever people write one, clever people break one, rinse, repeat. The untested theory is that they would be really hard or impossible to bypass in combination. The kind of people that could test that have mostly been smashing things like Chrome or mobiles where there's enough users to justify their efforts in terms of fame, money, etc. The real mitigation here is obfuscation of using a platform hardly anyone uses that is also harder than average to target. Then, there's some benefits to the security measures used on top of it. Obfuscation is main reason attacks aren't attempted much, though.

A better list would start with design techniques and assurance activities that led to systems with few to no vulnerabilities during pentests by well-funded, knowledgeable attackers. That's on top of what survives in the field with lots of attention. In the 80's-90's, those techniques included precise specifications of behavior or security policy, ways of proving/testing that in the code, hierarchical layering with simple coding to facilitate analysis, small kernels with most code deprivileged, memory-safe languages where possible, verification that object code matches source w/ no compiler errors/subversions, partitioning GUI's/filesystems/networking limiting apps effects on each other, covert channel analysis of entire system, secure repo's containing these artifacts w/ secure transfer to users, and option to re-run the analyses or rebuild the kernel themselves for independent replication.

Each of these techniques found or prevented many vulnerabilities in systems they were applied to. They even became mandatory requirements under the first, security certification: the TCSEC. Trusted Xenix in 1990 used some of them for that reason. Unlike often-bypassed mitigations, each of these methods still work today. Some work even better due to tooling improvements. The BSD's are largely ignoring these methods to maintain legacy compatibility with insecure architecture, unsafe code, and configuration scripts that can be just as risky. Unsurprising given early attempts at applying strong methods to UNIX, like UCLA Secure UNIX, showed the UNIX design had covert channels and such built in. You couldn't fully secure a UNIX without breaking legacy compatibility in lots of ways on top of a significant performance hit from memory safety and context switching. Led high-security projects to just virtualize UNIX/Linux on top of secure, isolation kernel. Projects that are attempting to follow some of these lessons in low-privilege architecture or language use include GenodeOS, Muen separation kernel, seL4, JX OS, and ExpressOS for mobile. EROS was an interesting older one that added persistence on top of capability-based kernel.

I figure someone should mention the methods that stopped NSA's hackers in various evaluations since they're strangely not on the list.

Re: HardenedBSD: Feature comparison vs other BSD distros

#13
post #6
post #2

That comparison doesn't seem to include OpenBSD's biggest security feature, their track record of robust code review, eliminating countless security bugs before they're ever exploited.

Track record of robust code review doesn't make as much difference as people like to believe. There is a great talk on ccc about this: https://media.ccc.de/v/34c3-8968-are_all_bsds_created_equall...

The video doesn't support your conclusion at all, quite the opposite.

Re: HardenedBSD: Feature comparison vs other BSD distros

#15

The list is mostly the kind of tactical mitigations that get bypassed a lot by private individuals and academia. Clever people write one, clever people break one, rinse, repeat. The untested theory is that they would be really hard or impossible to bypass in combination. The kind of people that could test that have mostly been smashing things like Chrome or mobiles where there's enough users to justify their efforts…

If memory serves me right Tru64 was quite good regarding security mitigations in UNIX, but then Compaq got bought by HP and the product was killed.

Re: HardenedBSD: Feature comparison vs other BSD distros

#16
post #13
post #6

Earlier quoted context omitted.

Track record of robust code review doesn't make as much difference as people like to believe. There is a great talk on ccc about this: https://media.ccc.de/v/34c3-8968-are_all_bsds_created_equall...

The video doesn't support your conclusion at all, quite the opposite.

His observation on code review was that it did help to find low hanging fruit kind of bugs (int overflows and signedness bugs), but that bugs were still easy to find in OpenBSD, even though he felt like the code quality was much better, than in other BSDs.

If you are just reading the slides, they are too out of context.

Re: HardenedBSD: Feature comparison vs other BSD distros

#17
post #11

No insult to the BSDs, but running a less popular OS can help too.

"Adobe's Flash plugin is distributed in binary form only, and they do not provide a native OpenBSD version. Considering their security record, we thank them for this neglect."

- https://www.openbsd.org/faq/faq13.html#plugins

Re: HardenedBSD: Feature comparison vs other BSD distros

#18
post #10

Earlier quoted context omitted.

On the other hand, upgrading OpenBSD to a new version is just about as easy as updating the packages on any other OS. If not easier! Also, yes, syspatch makes the paching between releases a five seconds task.

Unfortunately, OpenBSD normally requires booting into a special kernel for upgrading unless you do this: https://www.openbsd.org/faq/upgrade63.html#NoInstKern . This really makes it hard to use on AWS.

I agree it is tedious, however, I have found it is pretty simple to put those instructions in a shell script and use it across multiple machines.

Re: HardenedBSD: Feature comparison vs other BSD distros

#19

Kudos on a list where features HardenedBSD doesn't have but others (OpenBSD) do are also listed. Recently I've become accustomed to seeing overly tuned feature lists where the product in question has, apparently, all the things you could want.

Well, this does have an overwhelming number of 'the things you could want'. This serves the same purpose, while attempting to appear more credible by showing a tiny handful of shortcomings in an attempt to convince the reader that you can trust them.
Post reply on HN