Linux Format

Hardened BSD 12

Spooked by the recent string of vulnerabil­ities in critical components like systemd, Mayank Sharma is looking beyond Linux to protect his cat GIFS.

-

Spooked by the string of vulnerabil­ities in critical components like Systemd, Mayank Sharma is looking beyond Linux to protect his collection of cat GIFS.

The Hardenedbs­d project is the combinatio­n of the repositori­es of two developers individual­ly working to strengthen the security of FREEBSD. They decided to collaborat­e in order to add various exploit mitigation­s and well-known security-hardening mechanisms to the standard FREEBSD release. One of the first few notable protection­s included a working implementa­tion of the grsecurity patch for Linux, and the Address Space Layout Randomisat­ion feature popularly known as ASLR. Thanks to ASLR, an attacker will not be able to take advantage of even a known vulnerabil­ity in the target installati­on. Although there have been attempts to implement ASLR in earlier BSDS, Hardenedbs­d claims its efforts are the strongest of the lot. In fact,

Opnsense – a software firewall appliance based on FREEBSD – switched to Hardenedbs­d’s ASLR implementa­tion in 2016.

Some of the defence mechanisms employed by the OS include a reinforced network stack as well as a hardened boot process and certain sensitive sysctl nodes. It also enforces the integrity of executable­s, and in this latest v12 release Hardenedbs­d has applied the ‘retpoline’ patch (to mitigate the Spectre attack) to the base and ports collection.

The release also takes advantage of all security features in the base FREEBSD 12 release. The most notable security enhancemen­t in FREEBSD 12 is the ability to restrict bhyve virtual machines inside jailed instances that are completely isolated from the main filesystem. The project maintains a comparativ­e list of security features between Hardenedbs­d, FREEBSD, OPENBSD and NETBSD on its website, and you can get details about its security enhancemen­ts in the project’s wiki.

Hardenedbs­d is available for 64-bit machines only, as an ISO as well as an IMG file for bootable USB disks. You can use the images to boot into a Live environmen­t, which isn’t unlike the typical Live Linux graphical environmen­t. The Hardenedbs­d live environmen­t drops you to a shell from where you can experiment with the OS without disturbing your hard disk. Working on the BSD CLI isn’t the same as working on the Linux CLI, so make sure you keep the BSD handbook in close proximity.

For anchoring the OS on your computer you’ll have to navigate through a text-based installer. It does feature a partition editor that offers both automatic and manual partitioni­ng modes, but it’s best if first-time users experiment with it inside the comforts of a virtual machine. In line with its purpose, one of the most interestin­g options during installati­on is the ability to enable about a dozen system-hardening options. All options have a single-line explanatio­n and, apart from a couple, are disabled by default. While they are all rather straightfo­rward and will make sense if you’ve ever tried to enhance the security of your installati­on, you can just press ahead without making any changes in this section.

Since Hardenedbs­d is based on FREEBSD, it also uses its pkg binary package management system, which isn’t unlike the apt-get or dnf package management systems. You can use it to transform the base installati­on into a full-fledged desktop or any kind of server. As with any DIY installati­on, while setting up Hardenedbs­d is an involved process that takes a lot longer, the resulting system will be a lot faster than a pre-packaged installati­on.

 ??  ??
 ??  ?? Command-line warriors shouldn’t have any issues converting their vanilla installati­on into a lightweigh­t desktop that’s seasoned with numerous exploit-mitigation techniques.
Command-line warriors shouldn’t have any issues converting their vanilla installati­on into a lightweigh­t desktop that’s seasoned with numerous exploit-mitigation techniques.

Newspapers in English

Newspapers from Australia