What is Hardening?
Hardening is the process of reducing an environment’s available attack surface. This includes steps such as removing unnecessary hardware, closing unused ports, and disabling unnecessary services. The goal is to eliminate as many potential entry points as possible that an attacker could use to gain access.
There are several key considerations when hardening a system. In addition to the above, you should remove unnecessary applications, user accounts, services, hardware, and plugins. Systems should also be checked for default credentials, which should be changed or removed immediately. Access should be restricted so that users only have the permissions required to perform their tasks—this is known as the principle of least privilege.
New vulnerabilities are discovered every day. Once disclosed, developers typically release patches to address them. This is why it is essential to have a patch and update management process in place. Keeping systems and applications up to date is one of the simplest and most effective ways to protect an environment from known threats.
Encryption is another important component of hardening, helping to protect data both at rest and in transit. A common method for encrypting data in transit is the use of a VPN, which creates a secure, encrypted tunnel between devices. For data at rest, technologies such as BitLocker encrypt the entire drive, including the operating system, typically using AES encryption. This helps protect data even if a device is lost or stolen.
Security controls such as firewalls, intrusion prevention systems (IPS), and endpoint detection and response (EDR) solutions provide additional layers of defense. For example, restricting access between network segments such as limiting communication between VLANs can prevent attackers from moving laterally within a network.
There are several types of hardening, with the most common being operating system, server, database, network, and application hardening. These categories will be explored further in these sections.