Which of the following is not a step in the process of hardening a server

Deploying servers in their default state is the quickest way to get the job done. But the server will almost certainly be optimized for ease of use, often at the expense of cyber security.  By investing a little time in WindowsServer hardening — identifying and remediating security vulnerabilities that threat actors could exploit — you can dramatically reduce your risk of costly breaches and business disruptions from attacks, malware (including ransomware), and other cyber threats. 

This guide provides a comprehensive checklist of Windows Server hardening best practices for strengthening your security and compliance posture and protecting your vital systems and data. Your goal should be to establish security baselines tailored for your environment that reduce your attack surface and improve information security. You can get additional guidance from the Center for Internet Security (CIS) and the US Department of Defense Security Technical Implementation Guide (STIG).

Keep in mind that although server hardening is vital to cybersecurity, you also need to implement appropriate controls and processes, increase security awareness across the enterprise and follow other critical data security best practices.

Configuration Management 

Before diving into detailed secure configuration guidance, it’s worth reviewing some broader security best practices for developing, documenting and managing your configurations:

  • Maintain an inventory record for each server that clearly documents its baseline configuration and records every change to the server.
  • Review and minimize the applications installed on each server to reduce risk.
  • Thoroughly test and validate every proposed change to server hardware or software before making the change in the production environment.
  • Regularly perform a risk assessment. Use the results to update your risk management plan and maintain a prioritized list of all servers to ensure that security vulnerabilities are fixed in a timely manner.
  • Keep all servers at the same revision level to simplify configuration management.

Windows Server Preparation 

  • Protect new servers from potentially hostile network traffic until the operating system is fully hardened. Harden new servers in a network that is not open to the internet.
  • Set a strong BIOS/firmware password to prevent unauthorized changes to the server’s settings.
  • Disable automatic administrative logon to the recovery console.
  • Configure the device boot order to prevent unauthorized booting from alternate media.

Windows Server Installation 

  • Ensure that the system does not shut down during installation.
  • Create a system configuration based on the specific role that is needed. You can use the Security Configuration Wizard for this purpose.
  • When you install Windows Server, immediately update it with the latest patches using WSUS or SCCM. Security patches resolve known vulnerabilities that attackers could otherwise exploit to compromise a system.
  • Enable automatic notification of patch availability and make sure that all appropriate patches, hotfixes and service packs are reviewed, tested and applied in a timely manner.

User Account Security Hardening 

  • Disable and rename the guest account on each server.
  • Disable and rename the local Administrator account on any machine that is part of a domain where uniquely named domain admin accounts will be used.
  • Minimize access to privileged functions. Pay special attention to rights granted to built-in accounts and groups such as:
  • Local System (NT AUTHORITY\System)
  • Network Service (NT AUTHORITY\NetworkService)
  • Administrators group
  • Backup Operators group
  • Users group
  • Everyone group

For example, by default, the ‘Access this computer from the network’ right is granted to the Everyone group, essentially giving all users unrestricted remote access to shared folders.

  • Ensure that passwords of system and administrator accounts meet password best practices. In particular, verify that these privileged account passwords are not based on a dictionary word and are at least 15 characters long, with letters, numbers, special characters and invisible (CTRL ˆ ) characters interspersed throughout. Ensure that your strong password policy requires passwords to be changed every 90 days.
  • Configure account lockout Group Policy according to account lockout best practices.
  • Disallow users from creating and logging in with Microsoft accounts.
  • Do not allow “everyone” permissions to apply to anonymous users.
  • Disallow anonymous enumeration of SAM accounts and shares.
  • Disable anonymous SID/Name translation.
  • Promptly disable or delete unused user accounts

Network Security Configuration and Access Management 

  • Enable the Windows firewall and make sure the Firewall is enabled for each of the Domain, Private and Public firewall Profiles. Configure the default behaviour of the Firewall for each Profile to block inbound traffic by default.
  • Where inbound access is required to a server, restrict it to necessary protocols, ports and IP addresses.
  • Perform port blocking at the network setting level. Perform an analysis to determine which network ports need to be open and restrict access to all other ports.
  • Allow only Authenticated Users to access any computer from the network.
  • Do not grant any users the 'act as part of the operating system' right.
  • Deny guest accounts the ability to log on as a service, as a batch job, locally or via RDP.
  • If RDP is used, set the RDP connection encryption level to high.
  • Remove Enable LMhosts lookup.
  • Disable NetBIOS over TCP/IP.
  • Remove ncacn_ip_tcp.
  • Configure both the Microsoft Network Client and the Microsoft Network Server to always digitally sign communications.
  • Disable the sending of unencrypted passwords to third-party Server Message Block (SMB) servers.
  • Do not allow any shares to be accessed anonymously.
  • Set up the LAN Manager to refuse LM and NTLMv1 authentication.
  • Allow Local System to use computer identity for NTLMv2 authentication.
  • Disable Local System NULL session fallback.
  • Configure allowable encryption types for Kerberos authentication.
  • Do not store LAN Manager hash values.
  • Remove file and print sharing from network settings. File and print sharing could allow anyone to connect to a server and access critical data without requiring a user ID or password.

Registry Security Configuration 

Ensure that all administrators take the time to thoroughly understand how the registry functions and the purpose of each of its keys. Many of the vulnerabilities in the Windows operating system can be mitigated by changing the following keys: 

  • Protect the registry from anonymous access.
  • Disallow remote registry access if not required.
  • Set MaxCachedSockets (REG_DWORD) to 0.
  • Set SmbDeviceEnabled (REG_DWORD) to 0.
  • Set AutoShareServer to 0.
  • Set AutoShareWks to 0.
  • Delete all values in the NullSessionPipes key.
  • Delete all values in the NullSessionShares key.

General Security Settings

  • Disable any unneeded services included in the default installation to reduce the server’s vulnerability. See the Netwrix Hardened Services guide for specific guidance.
  • Remove unnecessary Windows Server roles and features.
  • Enable the built-in Encrypting File System (EFS) with NTFS or BitLocker.
  • If the server has significant random access memory (RAM), disable the Windows swapfile. This will improve performance and make the machine more secure because no sensitive data can be written to the hard drive.
  • Do not use AUTORUN. Otherwise, untrusted code can be run without the direct knowledge of the user; for example, attackers might put a CD into the machine and cause their own script to run.
  • Display a legal notice like the following before the user logs in: “Unauthorized use of this computer and networking resources is prohibited…”
  • Require Ctrl+Alt+Del for interactive logins,  and configure an inactivity limit to terminate idle interactive sessions.
  • Ensure all volumes are using the NTFS file system.
  • Configure Local file and folder permissions. By default, Windows does not apply specific restrictions on any local files or folders; the Everyone group is given full permissions to most of the machine. Remove this group and instead grant access to files and folders using role-based groups based on the least-privilege principle. Every attempt should be made to remove Guest, Everyone and ANONYMOUS LOGON from user rights.
  • Set the system date/time and configure it to synchronize against domain time servers.
  • Configure a timeout that locks the console's screen automatically if it is left unattended.

Audit Policy and Advanced Audit Policy Configuration

  • Create an audit policy according to audit policy best practices  to define which events are written to the security logs to gain visibility into critical activity.
  • Configure the event log retention method to overwrite as needed and make sure up to 4GB of storage is reserved.
  • Configure security log shipping to your security information and event management (SIEM) tool, if you have one, to improve threat detection and response.

Brief Guide to Additional Hardening 

The settings below can be defined locally using the Windows Local Security Policy editor or the Local Group Policy editor. Alternatively, in a domain environment, use the Active Directory GPO (Group Policy Object) Management features on your domain controller to create centralized configuration policies to deploy to all member computers.

  • Rigorously enforce the least privilege principle to limit user rights. The User Rights Assignment settings control the permissions and access to privileged functions on a per user and per group basis. Windows has a number of built in user accounts and groups, otherwise known as Special Identities, with relevant privileges aligned to them; they include:
  • Local System, or NT AUTHORITY\System
  • Network Service, or NT AUTHORITY\NetworkService,
  • Administrators
  • Backup Operators
  • Users
  • Everyone

It is vital to minimize the assignment of built-in groups and accounts to these user rights. For example, the ‘Access this computer from the network’ setting is set by default to ‘Administrators, Backup Operators, Everyone, Users’ on Windows 10 — essentially granting unrestricted remote access to shared folders for all users. To reduce this security risk, the recommended setting is to restrict these rights to just the Administrators and Remote Desktop User groups to improve access control.