Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

Administration Guide

Customize Decoy VMs

For most deployments, the decoys included with FortiDeceptor are enough and are easier to deploy. However, if you want to use your own custom OS images for the decoy, FortiDeceptor supports Decoy Customization with a purchased subscription service.

Some examples of using Decoy Customization include:

  • Windows 10 decoy joining AD.
  • Windows Server 2016/2019 Enterprises users with their standard server management tools.
Note

This version only supports Decoy Customization for Windows 10 and Windows Server 2016/2019. Windows Server 2016/2019 supports customized MSSQL and IIS services.

Overview of implementing Decoy Customization:
  1. Order the license with Decoy Customization subscription-based SKU.
  2. Install FortiDeceptor.

    After installing FortiDeceptor with the Decoy Customization subscription, the Help icon in the toolbar has a Customization Cookbook.

  3. Follow the instructions in the Customization Cookbook. The high-level instructions are:
    1. Upload an ISO image.
    2. Install ARAE engine on image.
    3. Use the Deployment Wizard to install the customized decoy.

Customize the deception base OS image

Overview of customizing the deception base OS image:
  1. Import Windows ISO image.
  2. Customize VM image.
  3. Deploy custom image.

Import Windows ISO image

Before importing an ISO image into FortiDeceptor, ensure you have completed the following:

  • Purchased a license with Decoy Customization subscription-based SKU.
  • Set up an ISO image with the licenses for your environment. For example, if you want to allow Active Domain (AD) accounts to access decoys, configure the settings on the AD servers, such as create dummy accounts, and so on.
To import an ISO image using the Imported Images page:
  1. Go to Deception > Customization and click the Imported Images tab.
  2. Click Import New ISO Image.
  3. Click Choose a file or drag and drop an image file into that pane.

To import an ISO image using the Customized Images page:
  1. Go to Deception > Customization and click the Customized Images tab.
  2. Click Import Image and Customize.
  3. Click Choose a file or drag and drop an image file into that pane.

To delete an ISO image:
  1. Go to Deception > Customization and click the Imported Images tab.
  2. Select one or more images and then click Delete.

Customize VM image

To initialize the VM instance:
  1. Go to Deception > Customization and click the Customized Images tab.
  2. Click Import Image and Customize.
  3. In the Select an imported ISO image dropdown list, select an ISO image. Then click Next.
  4. In the Configuration step, specify the following and then click Next.

    Name

    Upper and lowercase letters and numbers totaling under 48 characters.

    CPU Cores

    1–4 cores.

    Memory

    1024–8192 MB.

    Storage

    20–50 GB.

    Caution

    This configuration is applied to the VM instance for customizing the image, This configuration is not applied to decoys.

  5. In the Customize step, install the OS from the ISO image.

To customize the VM:
  1. Ensure the OS is installed and then log in with an admin account.
  2. In Windows Explorer, locate the FDC_Toolkit folder and read the instructions in toolkit_README.txt.

  3. Configure the network using one of the following options.
    • Right-click set_network.bat and then click Run as Administrator.
    • Follow the instructions in net.json to configure the IP address, gateway, and DNS in Windows Control Panel > Network and Internet > Network Connections.

      Caution

      10.254.253.0/24 set by the script is the internal NAT IP address that is temporarily used by the customization VM to allow downloading files and accessing other network resources via the FortiDeceptor default route.

To customize the system:
  1. Ensure your license is activated.
  2. If you are using Windows 2016, enter the following commands in the PowerShell window to prevent lure configuration failures in the Decoy Deployment wizard.

    secedit /export /cfg c:\secpol.cfg

    (gc C:\secpol.cfg).replace("PasswordComplexity = 1", "PasswordComplexity = 0") | Out-File C:\secpol.cfg

    secedit /configure /db c:\windows\security\local.sdb /cfg c:\secpol.cfg /areas SECURITYPOLICY

    rm -force c:\secpol.cfg -confirm:$false

Optional: install the Microsoft SQL Server

The following SQL Server versions are supported.

If you are downloading with Internet Explorer, it is recommended you disable IE Enhanced Security Configuration.

For Windows Server core OS, because there is no desktop, you must download the installation file on another computer and then use SMB to install the SQL Server.

To install SQL server:
  1. Download and install the SQL server on another computer.

  2. When the SQL Server installation is complete, click Install SMSS to download and install the SQL Server Management Studio to manage and customize the SQL Server.

To further customize the SQL database:
  1. Download a sample database from https://github.com/Microsoft/sql-server-samples/releases/download/wide-world-importers-v1.0/WideWorldImporters-Full.bak.

  2. In the FortiDeceptor Customize Decoy console, open SQL Server Management Studio.
  3. Right-click the database object and select Restore Database.

  4. Locate and add the sample DB you downloaded.

  5. When the sample DB is restored, right-click that DB and select Properties to change access permission to make the decoy DB more attractive to attackers.

  6. Give Grant permission to Select and Connect.

  7. Close SQL Server Management Studio.
  8. Verify that your DB is up using the command netstat –an | findstr 1433.

Optional: install Internet Information Service (IIS)

IIS 10 is supported on Windows Server 2016/2019.

To add the IIS role and service:
  1. Go to Server Manager >Dashboard.
  2. Click Manage > Add Roles and Features.

  3. On the Before you begin page, click Next.

  4. On the Select installation type page, click Next.

  5. On the Select destination server page, click Next.

  6. On the Select server roles page, click Web Server (IIS).

  7. On the popup dialog box, click Add Features.
  8. On the Select features page, click Next.

  9. On the Web Server Role (IIS) page, click Next.

  10. On the Select role services page, enable URL Authorization and Windows Authentication, then click Next.

  11. On the Confirm installation selections page, click Install.

  12. Wait for the installation to finish, then check the results and click Close.

Optional: join a domain

Before joining a custom Windows OS to a domain, change its DNS server to the DNS server of the domain.

To join a domain:
  1. Go to Control Panel > System and Security > System and click Change settings.

  2. On the System Properties dialog box, click Change.

  3. Enter the Domain and click OK.

  4. Click Close and restart the computer to join the domain.

Install the FortiDeceptor customization toolkit

When system customization is complete, right-click FDC_CUS_toolkit.exe and select Run as Administrator and wait for the installation to finish.

Another option is to run the CLI command FDC_CUS_toolkit.exe as an administrator.

Save the custom image

When the customization status in the GUI displays Ready, click Start -> Power > Shut down to shut down Windows and then click Save to save this image.

If the Windows Server is joined to a domain, there might be no power option in the GUI. In this case, run the command shutdown /s /t 1 /f as administrator.

It might take several minutes to save the entire image. When the image is saved, the page lists the image in Customized Images.

In Deception > Customization, the Customized Images tab lists the custom images.

The Actions column has icons for you to view logs, apply the image, or delete the image.

Deploy custom image

To apply a custom image:
  1. Go to Deception > Customization and click the Customized Images tab.
  2. Select a custom image and click the Apply button or click the Apply icon beside a custom image.

    It might take a few minutes to apply the custom image. When applied, the custom image is listed in Deception > Deception OS.

To deploy decoys with custom images–generic image:
  1. Go to Deception > Deployment Wizard.
  2. Click a custom image and deploy it like a standard decoy.
  3. Select whether to domain users to access RDP and SMB.

    Note

    We highly recommend enabling RDP and SMB services for decoys joined in the domain and not set in any local lure accounts. Many domains have different policies for account name and password which may cause the decoy to fail to initialize.

To deploy decoys with custom images–SQL Server:
  1. Go to Deception > Deployment Wizard.
  2. Click a custom SQL server image.

To generate SQL alerts:
  1. You can generate SQL alerts using the SQLCMD tool or using WideWorldImporters.
    • To use SQLCMD, run the following commands.

      sqlcmd -S "IP Address" -U "username" -P "password"

      use WideWorldImporters;

      SELECT name

      from SYSOBJECTS

      WHERE

      xtype = 'U'

      go

    • To use WideWorldImporters, run the following commands.

      use WideWorldImporters;

      select top 100 * from Sales.Orders;

      go

    The Incident > Analysis page displays the alerts for the SQL server attack.

Customize Decoy VMs

For most deployments, the decoys included with FortiDeceptor are enough and are easier to deploy. However, if you want to use your own custom OS images for the decoy, FortiDeceptor supports Decoy Customization with a purchased subscription service.

Some examples of using Decoy Customization include:

  • Windows 10 decoy joining AD.
  • Windows Server 2016/2019 Enterprises users with their standard server management tools.
Note

This version only supports Decoy Customization for Windows 10 and Windows Server 2016/2019. Windows Server 2016/2019 supports customized MSSQL and IIS services.

Overview of implementing Decoy Customization:
  1. Order the license with Decoy Customization subscription-based SKU.
  2. Install FortiDeceptor.

    After installing FortiDeceptor with the Decoy Customization subscription, the Help icon in the toolbar has a Customization Cookbook.

  3. Follow the instructions in the Customization Cookbook. The high-level instructions are:
    1. Upload an ISO image.
    2. Install ARAE engine on image.
    3. Use the Deployment Wizard to install the customized decoy.

Customize the deception base OS image

Overview of customizing the deception base OS image:
  1. Import Windows ISO image.
  2. Customize VM image.
  3. Deploy custom image.

Import Windows ISO image

Before importing an ISO image into FortiDeceptor, ensure you have completed the following:

  • Purchased a license with Decoy Customization subscription-based SKU.
  • Set up an ISO image with the licenses for your environment. For example, if you want to allow Active Domain (AD) accounts to access decoys, configure the settings on the AD servers, such as create dummy accounts, and so on.
To import an ISO image using the Imported Images page:
  1. Go to Deception > Customization and click the Imported Images tab.
  2. Click Import New ISO Image.
  3. Click Choose a file or drag and drop an image file into that pane.

To import an ISO image using the Customized Images page:
  1. Go to Deception > Customization and click the Customized Images tab.
  2. Click Import Image and Customize.
  3. Click Choose a file or drag and drop an image file into that pane.

To delete an ISO image:
  1. Go to Deception > Customization and click the Imported Images tab.
  2. Select one or more images and then click Delete.

Customize VM image

To initialize the VM instance:
  1. Go to Deception > Customization and click the Customized Images tab.
  2. Click Import Image and Customize.
  3. In the Select an imported ISO image dropdown list, select an ISO image. Then click Next.
  4. In the Configuration step, specify the following and then click Next.

    Name

    Upper and lowercase letters and numbers totaling under 48 characters.

    CPU Cores

    1–4 cores.

    Memory

    1024–8192 MB.

    Storage

    20–50 GB.

    Caution

    This configuration is applied to the VM instance for customizing the image, This configuration is not applied to decoys.

  5. In the Customize step, install the OS from the ISO image.

To customize the VM:
  1. Ensure the OS is installed and then log in with an admin account.
  2. In Windows Explorer, locate the FDC_Toolkit folder and read the instructions in toolkit_README.txt.

  3. Configure the network using one of the following options.
    • Right-click set_network.bat and then click Run as Administrator.
    • Follow the instructions in net.json to configure the IP address, gateway, and DNS in Windows Control Panel > Network and Internet > Network Connections.

      Caution

      10.254.253.0/24 set by the script is the internal NAT IP address that is temporarily used by the customization VM to allow downloading files and accessing other network resources via the FortiDeceptor default route.

To customize the system:
  1. Ensure your license is activated.
  2. If you are using Windows 2016, enter the following commands in the PowerShell window to prevent lure configuration failures in the Decoy Deployment wizard.

    secedit /export /cfg c:\secpol.cfg

    (gc C:\secpol.cfg).replace("PasswordComplexity = 1", "PasswordComplexity = 0") | Out-File C:\secpol.cfg

    secedit /configure /db c:\windows\security\local.sdb /cfg c:\secpol.cfg /areas SECURITYPOLICY

    rm -force c:\secpol.cfg -confirm:$false

Optional: install the Microsoft SQL Server

The following SQL Server versions are supported.

If you are downloading with Internet Explorer, it is recommended you disable IE Enhanced Security Configuration.

For Windows Server core OS, because there is no desktop, you must download the installation file on another computer and then use SMB to install the SQL Server.

To install SQL server:
  1. Download and install the SQL server on another computer.

  2. When the SQL Server installation is complete, click Install SMSS to download and install the SQL Server Management Studio to manage and customize the SQL Server.

To further customize the SQL database:
  1. Download a sample database from https://github.com/Microsoft/sql-server-samples/releases/download/wide-world-importers-v1.0/WideWorldImporters-Full.bak.

  2. In the FortiDeceptor Customize Decoy console, open SQL Server Management Studio.
  3. Right-click the database object and select Restore Database.

  4. Locate and add the sample DB you downloaded.

  5. When the sample DB is restored, right-click that DB and select Properties to change access permission to make the decoy DB more attractive to attackers.

  6. Give Grant permission to Select and Connect.

  7. Close SQL Server Management Studio.
  8. Verify that your DB is up using the command netstat –an | findstr 1433.

Optional: install Internet Information Service (IIS)

IIS 10 is supported on Windows Server 2016/2019.

To add the IIS role and service:
  1. Go to Server Manager >Dashboard.
  2. Click Manage > Add Roles and Features.

  3. On the Before you begin page, click Next.

  4. On the Select installation type page, click Next.

  5. On the Select destination server page, click Next.

  6. On the Select server roles page, click Web Server (IIS).

  7. On the popup dialog box, click Add Features.
  8. On the Select features page, click Next.

  9. On the Web Server Role (IIS) page, click Next.

  10. On the Select role services page, enable URL Authorization and Windows Authentication, then click Next.

  11. On the Confirm installation selections page, click Install.

  12. Wait for the installation to finish, then check the results and click Close.

Optional: join a domain

Before joining a custom Windows OS to a domain, change its DNS server to the DNS server of the domain.

To join a domain:
  1. Go to Control Panel > System and Security > System and click Change settings.

  2. On the System Properties dialog box, click Change.

  3. Enter the Domain and click OK.

  4. Click Close and restart the computer to join the domain.

Install the FortiDeceptor customization toolkit

When system customization is complete, right-click FDC_CUS_toolkit.exe and select Run as Administrator and wait for the installation to finish.

Another option is to run the CLI command FDC_CUS_toolkit.exe as an administrator.

Save the custom image

When the customization status in the GUI displays Ready, click Start -> Power > Shut down to shut down Windows and then click Save to save this image.

If the Windows Server is joined to a domain, there might be no power option in the GUI. In this case, run the command shutdown /s /t 1 /f as administrator.

It might take several minutes to save the entire image. When the image is saved, the page lists the image in Customized Images.

In Deception > Customization, the Customized Images tab lists the custom images.

The Actions column has icons for you to view logs, apply the image, or delete the image.

Deploy custom image

To apply a custom image:
  1. Go to Deception > Customization and click the Customized Images tab.
  2. Select a custom image and click the Apply button or click the Apply icon beside a custom image.

    It might take a few minutes to apply the custom image. When applied, the custom image is listed in Deception > Deception OS.

To deploy decoys with custom images–generic image:
  1. Go to Deception > Deployment Wizard.
  2. Click a custom image and deploy it like a standard decoy.
  3. Select whether to domain users to access RDP and SMB.

    Note

    We highly recommend enabling RDP and SMB services for decoys joined in the domain and not set in any local lure accounts. Many domains have different policies for account name and password which may cause the decoy to fail to initialize.

To deploy decoys with custom images–SQL Server:
  1. Go to Deception > Deployment Wizard.
  2. Click a custom SQL server image.

To generate SQL alerts:
  1. You can generate SQL alerts using the SQLCMD tool or using WideWorldImporters.
    • To use SQLCMD, run the following commands.

      sqlcmd -S "IP Address" -U "username" -P "password"

      use WideWorldImporters;

      SELECT name

      from SYSOBJECTS

      WHERE

      xtype = 'U'

      go

    • To use WideWorldImporters, run the following commands.

      use WideWorldImporters;

      select top 100 * from Sales.Orders;

      go

    The Incident > Analysis page displays the alerts for the SQL server attack.