Skip to main content

CVE-2016-2115 - SMB Signing

Summary

This script is created to run the detection/remediation for CVE-2016-2115 - SMB Signing Disable check and enable it if the remediation option is selected via EDF.

Sample Run

Sample Run Image 1

It is required to execute this script after importing with the setting SetEnvironment = 1.

Sample Run Image 2

Dependencies

CWA Remote Monitor - SMB Signing Detection

Variables

NameDescription
DetectionOnlyThis collects data from client-EDF 'CVE Vulnerability Detection Only' for the agent where the script is deployed. If it is 1, then the CVE-2016-2115-only detection will run and register to the dataview without remediation.
Detection-RemediationThis collects data from client-EDF 'CVE-2016-2115 Vul Detection and Remediation' for the agent where the script is deployed. If it is 1, then the SMB Signing will be detected; if found disabled, then it attempts to enable it and logs the result to the dataview.
SMBSignDetectionThis contains the SMB signing audit status of the agent.
psoutIt contains the SMB signing remediation data.
TicketCreationIt contains the ticket category ID applied on the monitor CWA Remote Monitor - SMB Signing Detection. If the category is set, then only the ticket will be created.

EDFs

NameLevelTypeExampleDescription
CVE-2016-2115 StatusComputerTextRemediation SuccessfulThis stores the status of CVE-2016-2115 after script execution.
CVE-2016-2115 LoggingComputerText@psout@This stores the script PowerShell execution output for logging.
CVE-2016-2115 Detection DateComputerText2024-05-01 00:00:00This stores the date and time when the last CVE-2016-2115 status was detected via the script.
CVE-2016-2115 VulnerabilityComputerTextNot VulnerableThis shows whether the device is vulnerable or not based on the script output detection.
CVE-2016-2115 Vul Detection and RemediationClientFlag1If this client EDF is checked, then the CVE-2016-2115 detection as well as remediation will be performed by the script.
CVE Vulnerability Detection OnlyClientFlag1If this client EDF is checked, then the CVE-2016-2115 detection only will be performed by the script.
CVE-2016-2115 Vul Detection and Remediation ExcludeLocationFlag0If this location EDF is checked, then the CVE-2016-2115 detection & remediation will be excluded from all agents of the location.
CVE-2016-2115 Vul Detection and Remediation ExcludeComputerFlag0If this EDF is checked, then the CVE-2016-2115 detection & remediation will be excluded from the agent.
CVE-2016-2115 Vul Detection and RemediationComputerFlag1If this EDF is checked, then the agent will be added to the group "CVE-2016-2115 SMB Signing Detection & Rem".

Output

  • Script log
  • Dataview

Ticketing

  1. How to Enable Ticket:
    • Navigate to the group 'CVE-2016-2115 - SMB Signing' > Open group > Go to Computers > Remote Monitors.

    • Select the remote monitor CWA Remote Monitor - SMB Signing Detection and check the ticket category. Ticketing Image

    • If this ticket category is set, then only the script will be able to create a ticket for the remediation step.

      Failure:

      • Subject:
        CVE-2016-2115 SMB Signing enabling failed on %ComputerName%
      • Body:
        @TicketComment@
        There are two possible failure comments:
        The remediation PowerShell execution has failed. Refer to the below logs:
        @psout@
        OR
        The remediation was attempted for the vulnerability fix on the computer name %computername% but it failed. Refer to the logs:
        @psout@

      Success:

      • Body:
        The vulnerability has been remediated successfully. Refer to the below log information:
        @psout@