Monday, June 6, 2016

OpenBSD's Dirty Little Secret

OpenBSD is often advertised by its developers as being a highly secure operating system. One of their goals is to be "the #1 most secure operating system".

The home page proudly states:
 Only two remote holes in the default install, in a heck of a long time!
That sounds fantastic! But is OpenBSD really all that secure in practice? The statement on the front page needs to be read carefully.
Only two remote holes in a default install.
When you consider that nearly every network service is turned off by default, it's not really that impressive. The OpenBSD team also does not consider denial of service attacks to be a security exploit; only a reliability issue. The event that lead to the second remote hole in a default install was denied as a problem until proof of concept code showing arbitrary code execution was provided.

Most security vulnerabilities are going to be from services not part of a default install. When vulnerabilities are found, it's important to have a patch available. How does OpenBSD handle this? First, you have to consider that there are two ways software is typically added to a default OpenBSD system. Ports and packages. According to the FAQ:
In general, you are highly advised to use packages over building an application from ports.
Okay, so the OpenBSD team themselves are telling people to use packages. But are they kept secure? Nope.
When serious bugs or security flaws are discovered in third party software, they are fixed in the -stable branch of the ports tree. Note that binary packages for -release and -stable are not updated.
There is a solution to this problem if you are willing to trust a non-official source. M:Tier provides binary updates for the latest OpenBSD release.

Security is about understanding risk. If you think "I'm using OpenBSD, therefore I'm secure", then you don't understand the risks. OpenBSD has been an innovator in many areas. I give them credit for this. But as a user, you need to carefully understand what OpenBSD means when they talk about security and what it actually provides.