Credentialed Checks on Windows
The process described in this section enables you to perform local security checks on Windows systems. You can only use Domain Administrator accounts to scan Domain Controllers.
Before you begin this process, ensure that there are no security policies in place that block credentialed checks on Windows, such as:
-
Windows security policies
-
Local computer policies (for example, Deny access to this computer from the network, Access this computer from the network)
-
Antivirus or endpoint security rules
-
IPS/IDS
Configure a Domain Account for Authenticated Scanning
To create a domain account for remote host-based auditing of a Windows server, the server must first be a supported version of Windows and be part of a domain.
Create a Security Group called Nessus Local Access
- Log in to a Domain Controller and open Active Directory Users and Computers.
- To create a security group, select Action > New > Group.
- Name the group Nessus Local Access. Set Scope to Global and Type to Security.
- Add the account you plan to use to perform Tenable Nessus Windows Authenticated Scans to the Tenable Nessus Local Access group.
Create Group Policy called Local Admin GPO
- Open the Group Policy Management Console.
- Right-click Group Policy Objects and select New.
- Type the name of the policy Nessus Scan GPO.
Add the Nessus Local Access group to the Nessus Scan GPO
- Right-click Nessus Scan GPO Policy, then select Edit.
- Expand Computer configuration > Policies > Windows Settings > Security Settings > Restricted Groups.
- In the left navigation bar on Restricted Groups, right-click and select Add Group.
- In the Add Group dialog box, select browse and enter Nessus Local Access.
- Select Check Names.
- Select OK twice to close the dialog box.
- Select Add under This group is a member of:
- Add the Administrators Group.
- Select OK twice.
Tenable Nessus uses Server Message Block (SMB) and Windows Management Instrumentation (WMI). Ensure Windows Firewall allows access to the system.
Allow WMI on Windows
- Right-click Nessus Scan GPO Policy, then select Edit.
- Expand Computer configuration > Policies > Windows Settings > Security Settings > Windows Firewall with Advanced Security > Windows Firewall with Advanced Security > Inbound Rules.
- Right-click in the working area and choose New Rule....
- Choose the Predefined option, and select Windows Management Instrumentation (WMI) from the drop-down box.
- Select Next.
- Select the check boxes for:
- Windows Management Instrumentation (ASync-In)
- Windows Management Instrumentation (WMI-In)
- Windows Management Instrumentation (DCOM-In)
- Select Next.
- Select Finish.
Tip: Later, you can edit the predefined rule created and limit the connection to the ports by IP Address and Domain User to reduce any risk for abuse of WMI.
Link the GPO
- In Group policy management console, right-click the domain or the OU and select Link an Existing GPO.
- Select the Tenable Nessus` Scan GPO.
Configure Windows
- Under Windows Firewall > Windows Firewall Settings, enable File and Printer Sharing.
- Using the gpedit.msc tool (via the Run prompt), invoke the Group Policy Object Editor. Navigate to Local Computer Policy > Administrative Templates > Network > Network Connections > Windows Firewall > Standard Profile > Windows Firewall : Allow inbound file and printer exception, and enable it.
- (Windows 8 and earlier only) While in the Group Policy Object Editor, navigate to Local Computer Policy > Administrative Templates > Network > Network Connections > Prohibit use of Internet connection firewall on your DNS domain and set it to either Disabled or Not Configured.
-
Enable the Remote Registry service (it is disabled by default). If the service is set to manual (rather than enabled), plugin IDs 42897 and 42898 only enable the registry during the scan.
Note: Enabling this option configures Tenable Nessus to attempt to start the remote registry service before starting the scan.
The Windows credentials provided in the Tenable Nessus scan policy must have administrative permissions to start the Remote Registry service on the host being scanned.
- Open TCP ports 139 and 445 between Tenable Nessus and the target.
-
Using either the AutoShareServer (Windows Server) or AutoShareWks (Windows Workstation), enable the following default administrative shares:
-
IPC$
-
ADMIN$
Note: Windows 10 disables ADMIN$ by default. For all other operating systems, the three shares are enabled by default and can cause other issues if disabled by default. For more information, see http://support.microsoft.com/kb/842715/en-us. -
C$
-
Caution: While not recommended, you can disable Windows User Account Control (UAC).
Tip: To turn off UAC completely, open the Control Panel, select User Accounts, and then set Turn User Account Control to off. Alternatively, you can add a new registry key named LocalAccountTokenFilterPolicy and set its value to 1.
You must create this key in the registry at the following location: HKLM\SOFTWARE\Microsoft\ Windows\CurrentVersion\Policies\system\LocalAccountTokenFilterPolicy.
For more information on this registry setting, consult the MSDN 766945 KB. In Windows 7 and 8, if you disable UAC, then you must set EnableLUA to 0 in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System as well.
What to do next:
-
View the prerequisites for Windows credentialed checks.
-
Enable Windows logins for local and remote audits.
-
Configure a Tenable Nessus scan for Windows Logins.