Live data from Hacker News

HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

hardenedbsd.org

51–60 of 81 posts

Re: HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

#51
post #23

Earlier quoted context omitted.

> Sandboxing™ Writing it like this is kind of funny, hoenstly, but not for the reasons you probably think. > give you that pledge+unveil doesn't? Not requiring the cooperation of developers to opt-in, for starters. You really think pledge and unveil are equivalent to sandboxing? Can you refer to any sandboxing solution or technologies that limit themselves to restricting syscalls and hiding file paths? Unveil is a lo…

Most programs require a setup phase, where they want a great deal of access to the environment to set up the resources they use, and a steady state phase, where they need very little access beyond pre-opened file descriptors. An externally imposed sandboxing feature can be useful for namespacing, but is necessarily less restrictive than pledge and unveil. For example, in steady state on OpenBSD, most programs can't e…

Oh look who is here Ori!! How is gefs going and do we have in the next 9Front release?

Re: HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

#52

For a hardened linux distro, take a look at kicksecure [0], which uses debian as base image [0] - https://www.kicksecure.com/

The list of disclaimers does impute confidence in their claims: most of the topics.. are still in development and are not yet used by default .. Kicksecure has adopted a best-effort, but admittedly quite weak approach CFI, SafeStack, automatic stack variable init..unlikely..due to.. resourcing kernel security issues.. are rooted deep within its design upstream developers are not very focused on serious security enhan…

Let’s appreciate the transparency and follow the project for progress rather than dismiss them for it.

Re: HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

#53

Earlier quoted context omitted.

> Can you refer to any sandboxing solution or technologies that limit themselves to restricting syscalls and hiding file paths? FreeBSD has capsicum and Linux has seccomp-bpf & landlock. Of the three, pledge and unveil are the least horrible execution of the same idea (though capsicum is alright, too). Obviously it's not a "run any random machine code on my system safely" type of sandbox, rather it's used by e.g. bro…

> Of the three, pledge and unveil are the least horrible execution of the same idea I don't think they are the same idea though. pledge and unveil are significantly more limited in scope. > Obviously it's not a "run any random machine code on my system safely" type of sandbox That's pretty much what a sandbox is though. Not every limitation or security augmentation is a sandbox, nor does it have to be.

> I don't think they are the same idea though. pledge and unveil are significantly more limited in scope.

The "idea" I'm talking about is privilege dropping. But sure, you can also use seccomp for other things.

> That's pretty much what a sandbox is though. Not every limitation or security augmentation is a sandbox, nor does it have to be.

seccomp-bpf and pledge are both tools used to implement sandboxes in browsers.[1][2] Maybe you don't like this terminology, but it is quite well established at this point.

[1]: https://wiki.mozilla.org/Security/Sandbox/Seccomp

[2]: https://www.openbsd.org/papers/eurobsdcon2022-landry-taming_...

Re: HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

#54

Earlier quoted context omitted.

> Of the three, pledge and unveil are the least horrible execution of the same idea I don't think they are the same idea though. pledge and unveil are significantly more limited in scope. > Obviously it's not a "run any random machine code on my system safely" type of sandbox That's pretty much what a sandbox is though. Not every limitation or security augmentation is a sandbox, nor does it have to be.

> I don't think they are the same idea though. pledge and unveil are significantly more limited in scope. The "idea" I'm talking about is privilege dropping. But sure, you can also use seccomp for other things. > That's pretty much what a sandbox is though. Not every limitation or security augmentation is a sandbox, nor does it have to be. seccomp-bpf and pledge are both tools used to implement sandboxes in browsers.…

> The "idea" I'm talking about is privilege dropping.

OK. But privilege dropping alone does not a sandbox make.

> seccomp-bpf and pledge are both tools used to implement sandboxes in browsers.[1][2] Maybe you don't like this terminology, but it is quite well established at this point.

A browser sandbox is quite a different thing from an OS level sandbox, which is the context we are discussing sandboxes in.

Re: HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

#55

To clarify things a bit, HardenedBSD is a bit like Linux+Grsecurity, but for FreeBSD, yes, there are differences, but overall it's like Grsecurity+. BTW: For Linux, OpenPaX is on the horizon: https://www.phoronix.com/news/Edera-OpenPaX-Announced

OpenPaX looks great, but I can't find a patch anywhere, just an already patched forked kernel tree.

29 patches: https://github.com/torvalds/linux/compare/master...edera-dev...

Re: HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

#56

Earlier quoted context omitted.

OpenPaX looks great, but I can't find a patch anywhere, just an already patched forked kernel tree.

29 patches: https://github.com/torvalds/linux/compare/master...edera-dev...

I mean I don't see anywhere I can download the patches to apply them to a source tree locally.

Re: HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

#57

Earlier quoted context omitted.

> Not requiring the cooperation of developers to opt-in, for starters. This is a good point. My initial thought is that the developers would know best what features their application needs? Furthermore, it's work that every user benefits from, rather than requiring an IT professional to reconfigure for each use case. What do you see as the downsides?

> What do you see as the downsides? Legacy software, new security issues which has not yet been patched. As the operator you have no way to isolate the application, you just have to wait for the developer for both mitigation and bug-fixes. In the real world I don't see that making much of a difference. Many sandbox solutions aren't really being used anyway, legacy software can go on it's own VM and network. Micro-seg…

> you just have to wait for the developer

If it’s open source then it can be patched in bsd packages manager.

Most usage of pledge is here rather than being upstreamed.

Re: HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

#58

Earlier quoted context omitted.

29 patches: https://github.com/torvalds/linux/compare/master...edera-dev...

I mean I don't see anywhere I can download the patches to apply them to a source tree locally.

  git format-patch -29 HEAD --stdout > 0001-last-29-commits.patch

Re: HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

#59

Earlier quoted context omitted.

Good LLM prompt seed :)

I doubt it. Most humans do a pretty poor job at this already, and LLMs train on things other humans have written. If you have examples to the contrary for a novel mitigation I'd love to see it, but I will also only believe it when I see it.

Still useful for a formatted markdown table based on a specified list of non-novel mitigations.

Re: HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

#60
post #5

Read these claims with a pretty big asterisk. Implementation quality of HBSD features is often poor or very poor. https://www.fabiankeil.de/gehacktes/hardenedbsd/ is just one example. Specifically some of the changes made to "harden" the system are pretty dubious and introduce new bugs, possibly security relevant, that did not previously exist. No one runs or pen tests HBSD. It's even more niche than OpenBSD.

Your example is 9 years old (2015) when the project was less than 1 year old: https://hardenedbsd.org/content/about It also sounds like the person wants to promote his own "ElectroBSD", but just in the form of a patch-sets because of "unresolved license issues" he reallyreally wants his GPL-Code in BSD: https://www.fabiankeil.de/gehacktes/electrobsd/

The date really doesn't matter, I promise. It's representative of the overall quality. And HBSD has been defunct/inactive for some of those 9 years, possibly the majority of them -- the 2nd developer left 5 years ago, for example.
Post reply on HN