Cyber Security Featured Article

SSH User Keys: Why C-Levels Need to Understand What They Are

March 28, 2016
By Special Guest
Matthew McKenna, Chief Strategy Officer, SSH Communications Security


SSH. SSH user keys. Words foreign to most, if not all, C-level executives.  “Why should I care?” they may ask themselves. The answer is simple: because SSH equals access. And SSH user keys are the credentials that provide that access.  All C-levels will understand what passwords are, why passwords are important and why control of them is even more important.  Well, here is the main difference: The creation of a password is a controlled process. The creation of SSH user keys is not.

Wait, you say. You mean that someone can create access to my servers and data, creating credentials without oversight? Exactly.

SSH is what we can refer to as the known unknown. It has been with you for the last 15 years in your businesses, doing its job quietly and efficiently. It is a reliable means of providing remote access securely for administrators and vendors and securely moves your data in many cases from point A to point B. 

It comes pre-installed at an operating system level on all Unix and Linux variants. It sits on 60 percent of the world’s Web servers. It is the primary means of accessing and providing maintenance to servers as well as to your network devices, your routers, switches and firewalls – all the things that keep your business running.

Who Controls the Keys?

“Why has this never been controlled?” you may ask.  There are a few reasons.

First, in the majority of companies today, SSH is not centrally owned or governed by a particular group within the business. It has historically sat in the underworld of Unix administrators and local application owners for the last decade. Access has been provisioned on an ad hoc basis. Administrators are not bad guys; they are tasked with keeping your systems up and running in the middle of the night.  They want to do their jobs quickly and efficiently.

Secondly, auditors are just starting to learn about what this form of access means. Until the release of the NIST-IR 7966, “the best practices on interactive and automated access for SSH key-based access,” there was no authoritative guidance on the topic. The major consulting houses are just starting to develop practices to help advise their customers on how to approach and manage the risk.

Thirdly, identity access management teams have never seen it in their remit to control this form of access. SSH keys are slowly but surely finding their way into projects related to privileged access management but are mostly being looked at from the perspective of “flesh and blood” users of the keys.  Unfortunately, upwards of 80 percent of the SSH-related access is for machine-to-machine connections.  On the other side of the coin, cryptography teams have only been asked to look at certificates and encryption keys.  SSH user keys have traditionally not been in their remit, either. 

Many executives, even at the world’s largest companies, don’t understand what the SSH protocol is and why it is one of the largest uncontrolled access risks to their businesses.  As they become educated about SSH, they raise a very logical question, “I have never heard of a breach related to SSH or SSH user keys – why should I do something about this now?”

How could you know if you’ve had a breach? The majority of companies today do not have inventories of the SSH user keys their administrators have created over the years.  These key-based credentials are not monitored. You don’t know where they are being used from, how frequently or why. You are not able to associate them back to owners in your environment.  The fact is, you wouldn’t know if a malicious actor had access to SSH user keys in your environment. You wouldn’t know if they were misusing this encryption to exfiltrate data out of your organizations.  In essence, it is the perfect attack vector for malicious actors.

Imagine: unfettered and uncontrolled access to your trading systems, your payment processing systems, your databases where you hold credit card information or patient data, your routers and switches which keep information flowing efficiently, your file transfer systems which move that data. Imagine uncontrolled access to everything that keeps your business up and running. This is not only a question of risk and compliance; it is a question of resilience.

An All-Too-Typical Scenario

Let’s consider a real-world scenario. Your company has just hired a new contractor who is going to help with some IT-related work. They are put through an approval process with the human resource team and approved by the business owners whom they will work for. You onboard them into your identity access management system. They are provisioned a user name and password, given a computer and are able to begin their work.

During the course of that work, they start to provision themselves SSH user keys and gain access to test machines and maybe even leave some keys behind on production machines.  Their contracting period comes to an end. They are removed from your identity access management systems, their user name and passwords are revoked, their computer collected.  A job well done. The system worked. Unfortunately, it didn’t. You forgot to revoke their key-based access. And unfortunately, you can’t because you never tracked or controlled the provisioning of this critical access. The contractor who has just left your organization still has access!

Key Questions to Ask

SSH user key-based access can no longer be ignored or swept under the carpet with the hope that upper-level executives or auditors don’t find out about it. To give a sense of the size of the issue: in a banking environment with 30,000 Unix/Linux servers, one can expect to find up to 4.5 million SSH user keys for application-to-application connections and 450,000 SSH user keys for system administrator- or database administrator-related access. That’s 4.5 million potential points of access to your most critical systems that you don’t have a strong degree of control over.

If you’re an executive or security professional, ask the following simple questions to your cryptography, access management and infrastructure teams: “Who is responsible for controlling SSH user key-based access in our enterprise? Who provisions and de-provisions this access? Do we have a policy that controls this form of access?”  In the off chance that there is a policy related to SSH user key- based access, ask the final question, “Can we enforce it?”

You may be very surprised by what you learn.

About the Author

Matthew McKenna, Chief Strategy Officer, SSH Communications Security has over 15 years of high technology sales, marketing and management experience. He is responsible for driving strategy, key account sales, and evangelism.  




Edited by Peter Bernstein