Copyright

© 2021 Outpost24® All rights reserved. This document may only be redistributed unedited and unaltered. This document may be cited and referenced only if clearly crediting Outpost24® and this document as the source. Any other reproduction and redistribution in print or electronically is strictly prohibited without explicit permission.

Trademark

Outpost24® and OUTSCAN™ are trademarks of Outpost24® in Sweden and other countries.



Purpose

This document describe the set up of authenticated scanning for Windows 2016 Server targets using OUTSCAN or HIAB.

Introduction

This guide provides you with the technical procedure to succeed with authenticated scanning for Windows 2016 Server targets when using OUTSCAN or HIAB.

This document has been elaborated under the assumption the reader has access to the OUTSCAN/HIAB account and Portal Interface.

Requirement

The Authenticated Scanning Using SMB requires that .NET framework version 3.5 or higher is installed.

If another account than Domain Administrator is used, it needs to either be a Domain User Account or a local user part of the AdministratorGroup to succeed with the authentication. If a Domain User Account is used, it need to be a member of the Administrators group, this user will run with full administrator access enabled, therefore User Account Control (UAC) does not need to be disabled. If a Local User is used ensure that the local account is included in the Administrators Group.

Note

When performing authenticated scanning against windows hosts, the scanner creates and starts a service called O24 Auth on the target machine.
This service is used to execute commands on the target and send the results back to the scanner.
Do not remove the service during scanning, it will stop and remove itself after it is done.

Set Up

To succeed with authenticated scanning using SMB for Windows 2016 Server targets, follow the procedure given below: 

Step 1 - Enable Remote Registry

To enable Remote Registry (Optional, can also be configured within the scanner)

  1. Go to Start and enter Run in the search field to open the Run Prompt.
  2. Open Services by enter services.msc in the Run Prompt and click OK.
  3. Under Services (Local), right click Remote Registry and select Properties.

    Note

    If Remote Registry is already enabled on your device, skip to Step 2.

  4. In Remote Registry Properties (Local Computer), change the Startup Type to Automatic and start the service.


Step 2 - File and Printer Sharing

To turn on File and Printer Sharing:

  1. Go to Start and enter Network and Sharing Center into the search field to open Network and Sharing Center.
  2. In Network and Sharing Center, go to Change advanced sharing settings, located on the left-hand side.
  3. In your current profile, Private/Guest or Public, select Turn on file and printer sharing.
  4. Click Save Changes.


Step 3 - Administrator Rights
  1. Go to Start and enter mmc in the search field to access Microsoft Management Console.
  2. Select Local Users and Groups, located in the left pane of the Microsoft Management Console window.

    If Local Users and Groups is not listed:

    1. Click the File menu
    2. Select Add/Remove Snap-in
    3. Select Local Users and Groups
    4. Click Add
    5. Select Local Computer
    6. Click Finish
    7. Click Ok
  3. Enter the Groups folder and double click the Administrators group.

    If the account is not listed under Members

    1. Click Add 
    2. Enter the name of the already created account that you wish to add
    3. Click Check Names
    4. Click Ok
    5. Click Ok


Note

The following steps are not recommended, if possible use the domain user account.

 Make sure that Windows User Account Control (UAC) is disabled.  

  1. Go to Start and enter Run in the search field to open the Run Prompt.
  2. In the Run Prompt, enter regedit and click OK to open the Registry Editor.
  3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system.
  4. Right click the System Folder.
  5. Select New >> DWORD (32-bit) Value and name the DWORD LocalAccountTokenFilterPolicy.
  6. Right click the newly created DWORD and select Modify.
  7. In the Edit Window set Value Data to 1.
  8. If User Account Control is disabled, EnableLUA must be set to 0 in 
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System



Step 4 - File and Printer Sharing Exception

To allow Inbound File and Printer Sharing Exception

  1. Go to Start and enter Run in the search field to open the Run Prompt.
  2. To open the Group Policy Object Editor, enter gpedit.msc in the Run Prompt and click OK.
  3. Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > Network > Network Connections > Windows Firewall > Standard Profile.
  4. Under Standard Profile, right click Windows Firewall: Allow inbound file and printer sharing exception and select Edit.
  5. Select Enabled.
  6. Click Ok.

Step 5 - Memory Leak in the Remote Registry Service

To resolve the Memory Leak in the Remote Registry Service:

  1. Go to Start and enter Run in the search field to open the Run Prompt.
  2. In the Run Prompt enter regedit and click Ok to open the Registry Editor.
  3. Locate the following registry sub key: 
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\RemoteRegistry
  4. In the details pane, on the right-hand side, double-click DisableIdleStop.
  5. Change the value to 00000001.

Reference

Authenticated Scanning using SMB