First, you could go through the following article to get more information about Null Session enumeration.
Null Session Domain Controller Enumeration
http://inner-tech.blogspot.sg/2015/09/null-session-domain-controller.htmlPlease Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.By default null sessions (unauthenticated ) are enabled on windows 2000 and 2003 servers . As a result anyone can use these NULL connections to enumerate potentially sensitive information from the servers. Null session vulnerability is disabled on fresh Windows 2008 and earlier versions.
Please refer to the following steps to disable SMB/NETBIOS NULL Session on domain controllers using group policy.
Applies to : Windows 2008, windows 2008 r2 and Windows 2012/R2
Step 1 : Apply below group policy settings to Default Domain Controller policy object or to the GPO object that is applied to your domain controllers.
Edit GPO- Go to Computer configuration\Policies\Windows settings\Security Settings\Local Policies\SecurityOptions
Enable: Network access: Restrict Anonymous access to Named Pipes and Shares Network access: Do not allow anonymous enumeration of SAM accounts Network access: Do not allow anonymous enumeration of SAM accounts and shares Network access: Shares that can be accessed anonymously Disable: Network access: Let Everyone permissions apply to anonymous users Network access: Allow anonymous SID/Name translation
Step 2 : Update the registry key values to restrict null session as below:
HKEY\SYSTEM\CurrentControlSet\Control\Lsa: RestrictAnonymous = 1 Restrict AnonymousSAM = 1 EveryoneIncludesAnonymous = 0
Best Regards,
Alvin Wang
Please remember to
mark the replies as an answers if they help and
unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.