Windows 2008R2 Server Hardening Checklist
Windows 2008R2 Server Hardening Checklist
Windows 2008R2 Server Hardening Checklist
The hardening checklists are based on the comprehensive checklists produced by CIS. The Information Security Office has distilled the CIS lists down to the most critical steps for your systems, with a particular focus on configuration issues that are unique to the computing environment at The University of Texas at Austin.
Server Information
MAC Address IP Address Machine Name Asset Tag Administrator Name Date
Step
To Do
CIS
UT Note
Cat I
Min Std
Preparation and Installation 1 If machine is a new install, protect it from hostile network traffic, until the operating system is installed and hardened. ! 5.1
Consider using the Security Configuration Wizard to assist in hardening the host. Service Packs and Hotfixes
3 4
Install the latest service packs and hotfixes from Microsoft. Enable automatic notification of patch availability. Auditing and Account Policies 1.6.1
! !
! !
5.2 5.3
5 6 7 8
Configure Audit policy as described. Set minimum password length. Enable Password Complexity. Configure event Log Settings. Security Settings
! ! ! !
6.1
6.1
9 10
Disable anonymous SID/Name translation. (default) Do not allow Anonymous Enumeration of SAM accounts (Default) Do not allow Anonymous Enumeration of SAM accounts and shares. Disable the guest account. (Default) Digitally Encrypt or Sign Secure Channel Data (Always). (Default) Digitally Encrypt Secure Channel Data (When Possible). (Default) Digitally Sign Secure Channel Data (When Possible). (Default) Place the University warning banner in the Message Text for Users Attempting to log on. Disable the sending of unencrypted password to connect to Third-Party SMB Servers. (Default) Do not allow Everyone permissions to apply to anonymous users. (Default) Do not allow any named pipes to be accessed anonymously. Restrict anonymous access to Named Pipes and Shares. Ensure that no shares can be accessed anonymously. Choose "Classic" as the sharing and security model for local accounts. (Default) Do not store LAN Manager hash values
1.9.6 1.9.37
! ! 5.5
11
1.9.38
5.5
12 13
1.9.5 1.9.12
5.12 5.6
14
1.9.13
5.6
15
1.9.14
5.6
16
1.9.2728 1.9.32
5.10
17
5.6
18
1.9.40
5.12
19 20 21 22
! ! ! !
23
1.9.46
5.13
23 24
Do not store LAN Manager hash values Set LAN Manager Authentication level to NTLMv2 only Additional Security Protection
1.9.46 1.9.47
! !
5.13 5.13
25 26 27 28 29
Disable or uninstall unused services. Disable or delete unused users. Configure User Rights to be as secure as possible. Ensure all volumes are using the NTFS file system. Use the Internet Connection Firewall or other methods to limit connections to the server. Configure file system permissions. Configure registry permissions. Additional Steps 1.5 1.81
! ! ! ! !
5.4 5.4
5.5
30 31
! !
32
Set the system date/time and configure it to synchronize against campus time servers. Install and enable anti-virus software. Install and enable anti-spyware software. Configure anti-virus software to update daily. Configure anti-spyware software to update daily. Configure a screen-saver to lock the console's screen automatically if the host is left unattended. If the machine is not physically secured against unauthorized tampering, set a BIOS/firmware password to prevent alterations in system startup settings. Configure the device boot order to prevent unauthorized booting from alternate media. Systems will provide secure storage for Category-I data as required by confidentiality, integrity, and availability needs. Security can be provided by means such as, but not limited to, encryption, access controls, filesystem audits, physically securing the storage media, or any combination thereof as deemed appropriate. Install software to check the integrity of critical operating system files. If RDP is utilized, set RDP connection encryption level to high.
33 34 35 36 37
! ! ! !
38
4.1
39
4.1
40
5.7
41
5.8
42
5.6
UT Note: Addendum
This list provides specific tasks related to the computing environment at The University of Texas at Austin. 1 If other alternatives are unavailable, this can be accomplished by installing a SOHO router/firewall in between the network and the host to be protected. The Security Configuration Wizard can greatly simplify the hardening of the server. Once the role for the host is defined, the SCW can help create a system configuration based specifically on that role. It does not completely get rid of the need to make other configuration changes, though. For more information, please see Security Configuration Wizard for Windows Server 2008 . There are several methods available to assist you in applying patches in a timely fashion: Microsoft Update Service Microsoft Update checks your machine to identify missing patches and allows you to download and install them. This is different than the "Windows Update" that is the default on Windows 2008. Microsoft Update includes updates for many more Microsoft products, such as Office and Forefront Client Security. This service is compatible with Internet Explorer only. Windows AutoUpdate ITS offers a Windows Server Update Services Server for campus use using Microsoft's own update servers. It includes updates for additional Microsoft products, just like Microsoft Update, and provides additional administrative control for software deployment. Microsoft Baseline Security Analyzer This is a free host-based application that is available to download from Microsoft . In addition to detailing missing patches, this tool also performs checks on basic security settings and provides information on remediating any issues found. 4 Configure Automatic Updates from the Automatic Updates control panel On most servers, you should choose either "Download updates for me, but let me choose when to install them," or "Notify me but don't automatically download or install them." The campus Windows Server Update Services server can be used as the source of automatic updates. 6 Configuring the minimum password length settings is important only if another method of ensuring compliance with university password standards is not in place. Configuring the password complexity setting is important only if another method of ensuring compliance with university password standards is not in place. The university requires the following event log settings instead of those recommended by the CIS Benchmark: Maximum application log size---50000 KB Maximum security log size---100000 KB Maximum system log size---50000 KB Prevent local guests group from accessing application log---enabled Prevent local guests group from accessing security log---enabled Prevent local guests group from accessing system log---enabled Retention method for application log---Overwrite events older than 14 days Retention method for security log---Overwrite events older that 14 days Retention method for system log---Overwrite events older than 14 days These are minimum requirements. The most important log here is the security log. 100 MB is a suggested minimum, but if you have a high-volume service, make the file as large as necessary to make sure at least 14 days of security logs are available. You may increase the number of days that you keep, or you may set the log files to not overwrite events. Note that if the event log reaches its maximum size and no events older than the number of days you specified
exist to be deleted or if you have disabled overwriting of events, no new events will be logged. This may happen deliberately as an attempt by an attacker to cover his tracks. For critical services working with Cat 1 or other sensitive data, you may wish to consider log shipping using syslog, Splunk, Intrust, or a similar service. Another option is to configure Windows to rotate event log files automatically when an event log reaches its maximum size as described in the article http://support.microsoft.com/kb/312571 using the the AutoBackupLogFiles registry entry. 16 The text of the university's official warning banner can be found on the ITS Web site. You may add localized information to the banner as long as the university banner is included. Configure user rights to be as secure as possible. Every attempt should be made to remove Guest, Everyone, and ANONYMOUS LOGON from the user rights lists. Volumes formatted as FAT or FAT32 can be converted to NTFS, by using the convert.exe utility provided by Microsoft. Microsoft has provided instructions on how to perform the conversion This conversion cannot be reversed. IPSec is one method that can limit connections to the server, and it is another standard method by which communication between servers can be encrypted. IPSec configuration can be managed using the IP Security Policies Snap-In. More information can be found on the Microsoft site.
27
28
29
30
Be extremely careful, as setting incorrect permissions on system files and folders can render a system unusable. Be extremely careful, as setting incorrect permissions on registry entries can render a system unusable. By default, domain members synchronize their time with domain controllers using Microsoft's Windows Time Service . The domain controller should be configured to synchronize its time with an external time source, such as the university's network time servers. ITS Networking operates two stratum 2 NTPv4 (NTP version 4) servers for network time synchronization services for university network administrators . Download and install Microsoft Forefront Client Security from BevoWare . Anti-spyware software is only required to be installed if the server is used to browse Web sites not specifically related to the administration of the server. ITS provides anti-spyware software for no additional charge. At a minimum, SpyBot Search and Destroy should be installed. We also recommend the installation of a secondary anti-spyware application, such as SpyWare Blaster, EMS Free Surfer, or AdAware. Both SpyWare Blaster and EMS Free Surfer are available from BevoWare. An additional measure that can be taken is to install ?Firefox with the ?NoScript and ?Adblock Plus add-ons
31 30
31 32
33
Microsoft Forefront can be configured directly or through the use of GPOs . GPOs can simplify the management of multiple servers. Spyware Blaster Enabling auto-update functionality requires the purchase of an additional subscription. SpyBot Search and Destroy--Automatic update tasks can be created inside the program itself and are scheduled using the Windows Task Scheduler. 1. 2. 3. 4. In the Spybot Application, click on Mode-->Advanced View. Click Settings on the left hand side of the window. You should now see an option labeled "Scheduler." Select that option. Adding the task to update automatically is relatively straightforward.
34
Click Add to create a task. Click Edit to edit the task schedule. In the Scheduled Task window that pops up, enter the following In the Run field: "C:\Program Files\Spybot - Search & Destroy\SpybotSD.exe" /AUTOUPDATE /TASKBARHIDE /AUTOCLOSE Click the Schedule tab and choose a time for it to update. The duration of the update is very brief, but it is processor intensive, so consider scheduling it to occur during periods of low usage. The task should be scheduled daily. 37 1. Open the Display Properties control panel. 2. Select the Screen Saver tab. 3. Select a screen saver from the list. Although there are several available, consider using a simple one such as "Blank." 4. The value for Wait should be no more than 30 minutes. 5. Select the On resume, password protect option.
40
Windows provides the Encrypting File System as a built-in mechanism to allow the encryption of individual users' files and folders. Be aware of the caveats involved in the use of EFS before implementing it for general use, though. Other options such as PGP , GNUPG , and TrueCrypt also exist. Another encryption option to consider is whole-disk encryption, which encrypts the entire contents of the drive instead of just specific files and folders. Windows Vista and Windows 2008 come with BitLocker for this. TrueCrypt can also do whole-disk encryption in addition to file-based encryption. ITS provides WinMagic SecureDoc which is recommended for encrypting laptops. We strongly recommend that, if encryption is being used in conjunction with Category I data, one of the solutions listed in the Approved Encryption Methods (EID required) be implemented.
41
Windows Server 2008 has a feature called Windows Resource Protection which automatically checks certain key files and replaces them if they become corrupted. It is enabled by default. You can audit in much more in depth using Tripwire. Modern versions of Tripwire require the purchase of licenses in order to use it. The Tripwire management console can be very helpful for managing more complex installations. This setting is configured using the Terminal Services Configuration tool. On the General tab of the properties of the RDP connection, select High from the list next to encryption level.
42