OpenSSH Splits Again: New Authentication Binary Unveiled

The sshd splitting progresses with sshd-auth, isolating authentication in a separate binary and reducing the pre-auth attack surface in OpenSSH.

The ongoing effort to enhance OpenSSH security by splitting functionalities into separate binaries continues, with the latest development introducing a new binary, sshd-auth.

This change is a part of OpenBSD’s broader strategy to make the OpenSSH implementation even more secure and efficient.

Damien Miller, an OpenBSD developer, recently committed this new update, which aims to further segregate the sshd functionality by creating a dedicated binary for user authentication.

As stated in the commit message, the goal is straightforward: “Splitting this code into a separate binary ensures that the crucial pre-authentication attack surface has an entirely disjoint address space from the code used for the rest of the connection.

In other words, this effectively minimizes risk by isolating the pre-authentication stage and reducing the overall attack surface.

Moreover, this approach offers an added advantage: a small runtime memory saving. Once the authentication phase is complete, the authentication code will be unloaded, freeing up memory for other tasks.

This change has already been integrated into OpenBSD snapshots and has been tested since last week. As with other components like sshd, ssh-session, and ssh-agent, the new sshd-auth binary will be randomly relinked at boot, adding another layer of protection.

For more information, refer to the announcement in OpenBSD Journal.

How This Relates to Other OpenSSH Implementations

As you probably know, OpenSSH is part of the OpenBSD project and is widely used across different operating systems, including Linux. So, changes made in the OpenBSD version of OpenSSH are often reflected in other implementations, as the core code is shared.

This means that improvements, like the segregation of functionalities into separate binaries, will eventually make their way into Linux and other systems that rely on OpenSSH.

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%