How OpenBSD is secure compared to other operating systems? reddit / BSD ---------------------------------------------------------------------- EntireRepublic7 · 2019-01-11 23:38 I read many times OpenBSD is the most secure system and it have a minimal code base which affect to its security. I'm curious how OpenBSD is secure comparing to other operating systems from BSD family (mainly FreeBSD, NetBSD and HardenedBSD) and comparing to any hardened Linux (for example Gentoo, Arch, Slackware, Debian, RHEL etc.). Let's take into account FreeBSD - if we wish containerization, it has jails, if we wish MAC then FreeBSD have its bult-in while in Linux we have a lot of different approaches and solutions - SELinux, RBAC, Apparmor, Firejail, Docker, LXC etc. Let's consider two cases: 1. desktop - we assume using this system mainly for day-to-day operations, programming, sysadmin, running pentesting distro in VM etc., 2. server - a website written in whatever programming language (for example PHP, Python, Ruby), mail server, IRC bouncer, LDAP, VPN etc. Are default applications in OpenBSD such as OpenNTPd, httpd, OpenSMTPd more secure than tlsdate, nginx, postfix and dovecot? ---------------------------------------------------------------------- harryruhr · 2019-01-11 23:47 Here is a comparison: [https://hardenedbsd.org/content/easy-feature- comparison](https://hardenedbsd.org/content/easy-feature-comparison) ---------------------------------------------------------------------- gjs278 · 2019-01-11 23:55 DragonflyBSD definitely has a few of those features ---------------------------------------------------------------------- mikesum32 · 2019-01-12 06:35 When it comes to NetBSD, FreeBSD, and OpenBSD, [OpenBSD seems to have the best code quality.](https://www.youtube.com/watch?v=AvSPqo3_3vM) ---------------------------------------------------------------------- illumosguy · 2019-01-12 08:02 Like which? ---------------------------------------------------------------------- marmulak · 2019-01-12 08:32 It disables everything by default. ---------------------------------------------------------------------- EnRoueLibre · 2019-01-12 12:24 I think the best feature of OpenBSD is the native LibreSSL usage instead of OpenSSL. In OpenBSD you doesn't use Nginx but httpd and relayd. [https://bsd.plumbing](https://bsd.plumbing) You can also use it on FreeBSD under jails ---------------------------------------------------------------------- [deleted] · 2019-01-12 12:50 [removed] ---------------------------------------------------------------------- joed_ · 2019-01-12 13:50 In what sense? ---------------------------------------------------------------------- [deleted] · 2019-01-12 14:36 All you need: * [https://en.wikipedia.org/wiki/OpenBSD\_security\_features](https:// en.wikipedia.org/wiki/OpenBSD_security_features) * [https://www.openbsd.org/papers/hackfest2015- pledge/](https://www.openbsd.org/papers/hackfest2015-pledge/) * [https://www.openbsd.org/events.html](https://www.openbsd.org/events .html) ***Summary:*** 1. *Creation of strlcpy* *and strlcat* *functions. And the linker has been changed to issue a warning when using unsafe string manipulation functions, such as* *strcpy, strcat*\*, or sprintf. All occurrences of these functions in the OpenBSD source tree have been replaced. A static bound checker is included in OpenBSD in an attempt to find other common programming mistakes at compile time. Other security- related APIs developed by the OpenBSD project include *issetugid* *and arc4random.* 2. *Uses kernel randomization. At every boot, the kernel is re- linked.* 3. *OpenBSD 3.4 introduced W\^X, a memory management scheme to ensure that memory is either writable or executable, but never both, which provides another layer of protection against buffer overflows* There are more. Many of these features are migrated into other BSD-(s) later. Besides, less code base and features is proportional to less attack surface etc etc. **According to theo:** >*Many people think that is about security. It is not. Largely, those standards are about accountability in the face of threat. Which really isn't about making systems secure. It's about knowing when your system's security breaks down. Not quite the same thing. Please count the commercially deployed C, B, or even A systems which are actually being used by real people for real work, before foaming at the mouth about it all being "so great". On the other hand, I think we wil see if some parts of that picture actually start to show up in real systems, over time. By the way, I am surprised to see you list ACLs, which don't really have anything to do with B1 systems.* > >*As to the second issue, I have no idea what a distributed kernel is, nor do I see how anything like that would improve security or quality of a system.* ​ ---------------------------------------------------------------------- WikiTextBot · 2019-01-12 14:36 **OpenBSD security features** The OpenBSD operating system focuses on security and the development of security features.:xxvii According to author Michael W. Lucas, OpenBSD "is widely regarded as the most secure operating system available anywhere, under any licensing terms.":xxix *** ^[ [^PM](https://www.reddit.com/message/compose?to=kittens_from_space) ^| [^Exclude ^me](https://reddit.com/message/compose?to=WikiTextBot&me ssage=Excludeme&subject=Excludeme) ^| [^Exclude ^from ^subreddit](https://np.reddit.com/r/BSD/about/banned) ^| [^FAQ ^/ ^Information](https://np.reddit.com/r/WikiTextBot/wiki/index) ^| [^Source](https://github.com/kittenswolf/WikiTextBot) ^] ^Downvote ^to ^remove ^| ^v0.28 ---------------------------------------------------------------------- gjs278 · 2019-01-12 20:38 libressl as base. not sure of the rest 100% but it has some. would be interesting to know all. ---------------------------------------------------------------------- poshpotdllr · 2019-01-12 23:13 listen dude. ill tell you the god honest truth. comparing openbsd to freebsd and linux with respect to security is like comparing a nuclear armed fighter jet to a fucking midget armed with a fucking spoon. just stop. stop. even just having this conversation is fucking misleading. this whole thread is fucking cancer. openbsd isnt just the most secure operating system, it is the ONLY secure operating system. have a nice fucking day. ---------------------------------------------------------------------- BumpitySnook · 2019-01-12 23:36 Take that with a big grain of salt. HardenedBSD is a hostile derivative of FreeBSD; they have an axe to grind here (less so with other BSDs they are not derived from). They run a business, and their value proposition to customers is that they are more secure than FreeBSD. So they have a continued financial interest in downplaying FreeBSD security and overstating the value of their modifications. ---------------------------------------------------------------------- jaypatelani · 2019-01-14 06:54 How efficient AK-47 is ? Are you trained to use it ? Can you use it under stress or when needed ? How's your aim? Do you need it ? It's all comes down to user/admin/dev also who needs their tools. If you don't know how to use tools provided to you it can always backfire your scenario ---------------------------------------------------------------------- harryruhr · 2019-01-14 22:21 Well, hostile derivatives don't send patches upstream and get them accepted. I spoke to one of the founders and he said there is no "Business", They started started a 501(c)(3) not-for-profit (called the HardenedBSD Foundation) to help fund HardenedBSD and ensure future success. but that's the exact same thing as the FreeBSD Foundation. ---------------------------------------------------------------------- pernila · 2019-01-15 15:30 Could you tell us where do you know this information? To my knowledge there is no businesses behind HardenedBSD? ---------------------------------------------------------------------- [deleted] · 2019-01-17 08:07 [deleted] ---------------------------------------------------------------------- [deleted] · 2019-01-19 19:57 [deleted] ---------------------------------------------------------------------- cprogrammingnoob · 2019-01-19 20:15 I wonder how many "how secure is" questions that bog (free/open/net)bsd reddit threads come from single computer users who probably will never be hassled by a hacker because they have literally nothing on their machine that anybody would want or care about. These concerns are really for IT sysadims running web servers with company/user data logins and passwords, which generally is a target for hackers. Yet IT sysadmins already know what works for them, or they may lose their job when a huge data breach happens. As an average person, the most perilious thing you can do is online shopping (throwing your CC number around) on a "smart" phone esp on public wifi. That should be the concern. ---------------------------------------------------------------------- ulius · 2022-10-15 17:59 It doesnt disables everything it just put everything in a jails and its awesome!