Active Directory Security Tips and Practices
By Yossi Saharon
Reviewed By: Arun Nanda, Program Manager - Directory Services, Microsoft Corporation
Introduction
Active Directory (AD) is one of the most important reasons (if not THE reason) that the Windows 2000 platforms achieved the latest CC (Common Criteria) evaluation win of EAL4 + Flaw remediation, the highest Security level ever given to a commercial operating system (see http://www.microsoft.com/technet/security/prodtech/Windows2000/w2kccwp.mspx for more information). We can significantly increase information security in our Active Directory environments by using some simple practices and leveraging certain capabilities. This article will give you a look into some useful tips for securely operating Active Directory, day by day. In addition, this topic is covered at length in more detail and with prescriptive guidance in the recently published white paper: Best Practice Guide for Securing Active Directory Installations and Day-to-Day Operations: Part I .
This column assumes you have knowledge of Active Directory terminology and architecture. To read more on Active Directory Technologies, see the following link: http://www.microsoft.com/windows2000/technologies/directory/default.asp
Hardening Your Active Directory Operations
You can achieve higher levels of security in your day-by-day Active Directory operations by adopting certain configuration settings.
Some examples for such settings are as follows:
General Considerations and Practices
In addition, there are several practices you can use in your Active Directory environment to achieve higher levels of security:
- Make sure your machines are up-to-date with the relevant security fixes. Distributing patches and updates can be done using Microsoft Systems Management Server (SMS) and other tools. You can also use Microsoft Software Update Services (SUS) to automate the distribution of critical security updates to domain members.
- Use the "Trusted For Delegation" option wisely. This powerful configuration enables a machine to perform delegated authentication and operate any service on other machines in the domain.
- For increased Security, enforce the use of Smart Card login for administrators at minimum.
- You can achieve high integration between Internet Security and Acceleration (ISA) Server and Active Directory and consolidate your Firewall/VPN users with the domain accounts and simplifying accounts management. Active Directory has also been certified for CheckPoint VPN and Firewall integration. See http://www.opsec.com/ .
- Make sure your account policies are "in shape": Prevent anonymous logon when not needed, enforce strong & complex passwords, with minimum characters etc. Again, these settings are covered in detail in the Best Practice Guide for Securing Active Directory Installations and Day-to-Day Operations .
- When performing Domain Controllers replication over Remote Procedure Calls (RPC), you may want to limit the number of ports involved in the process, especially behind firewalls in a WAN configuration. RPC replication is performed dynamically against the RPC EndPoint Mapper (Port 135) which selects a high port between 1024 to 65535. You can significantly decrease the number of ports needed to be opened by locking down your Domain Controller on using a specific port for Active Directory RPC Universal Unique Identifier (UUID). This can be done by adding a DWORD value named TCP/IP Port under the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CCS\Services\NTDS\Parameters
The value of this new DWORD key should be the specific port number you wish to use for Active Directory RPC replication. Alternatively, you can use IP Security (IPSec) to encrypt all (or certain) ports and traffic between Domain Controllers. To read more on options to use Active Directory over segmented networks separated by firewalls, see http://www.microsoft.com/windows2000/techinfo/planning/activedirectory/adsegment.asp .
- Limit the number of members in highly sensitive groups in your Active Directory, such as Enterprise Admins or Schema Admins.
- Although Active Directory can successfully utilize DNS Services from several types of DNS Servers that support SRV records, it's preferred that you work with Windows 2000 DNS Servers using Active Directory integrated zones. Working with AD Integrated Zones saves DNS information in Active Directory rather than in text files, and allows Secure Dynamic Updates, so you can control who can perform DNS registrations.
- Active Directory has granular permissions and is capable of applying permissions per object down to the property level. You can use these capabilities to design delegation of administration in Active Directory.
- You can limit users to certain hours of activity using the logon hours settings. You can also restrict users to login to specific workstations only. These options can be set when editing the user's properties from the Active Directory Users & Computers MMC snap-in, or via scripting (you can find some useful scripts to manipulate user & groups information at the TechNet Script Center .
- Use Connection Manager Administration kit to create custom dial-up connection settings for your Remote Access Services (RAS) users, along with leveraging RAS policies in Active Directory, such as validating the caller ID, for example.
- Auditing account management and logins is important, but it's even more important to monitor your audit logs and proactively respond to your auditing findings. You can search for relevant events in the event viewer in many ways, yet products such as Microsoft Operations Manager (MOM) and others can considerably ease this task for you by collecting those events from all Domain Controllers and/or other servers into an "enterprise log" and perform custom actions in response to those events.
At all times, keep in mind that physical access to your Domain Controllers is sacred - there are no real silver bullets against a service administrator with physical access to your console, no matter what operating system you're running on.
Related Links
For any feedback regarding the content of this column, please write to Microsoft TechNet . Please be aware that a response is not guaranteed.