Skip to main content

Triage and Remediation

Remediation

Using Console

To remediate the “Monitor Endpoint Protection setting is not enabled” misconfiguration in Azure using the Azure console, you can follow these steps:
  1. Log in to the Azure portal and navigate to the Security Center.
  2. Click on the “Security policy” tab on the left-hand side menu.
  3. Scroll down to the “Endpoint protection” section and click on the “Edit” button.
  4. Under the “Antivirus protection” section, ensure that the “Monitor endpoint protection” setting is enabled.
  5. If the setting is not enabled, click on the toggle switch to turn it on.
  6. Click “Save” to apply the changes.
  7. Wait for the changes to propagate, which may take a few minutes.
  8. Verify that the “Monitor endpoint protection” setting is now enabled by checking the “Endpoint protection” section in the Security policy tab.
By following these steps, you should be able to remediate the “Monitor Endpoint Protection setting is not enabled” misconfiguration in Azure using the Azure console.

To remediate the misconfiguration “Monitor Endpoint Protection setting is not enabled” for Azure using Azure CLI, you can follow the below steps:
  1. Open the Azure CLI and log in to your Azure account.
  2. Run the following command to enable the endpoint protection setting for your Azure virtual machines:
    Replace <vm-name> with the name of your virtual machine and <resource-group-name> with the name of the resource group where the virtual machine is located.
  3. Once the command is executed successfully, the endpoint protection setting will be enabled for your Azure virtual machine.
  4. To verify the configuration, run the following command:
    This command will return the value “true” if the endpoint protection setting is enabled for your virtual machine.
By following these steps, you can remediate the misconfiguration “Monitor Endpoint Protection setting is not enabled” for Azure using Azure CLI.
To remediate the “Monitor Endpoint Protection setting is not enabled” misconfiguration in Azure using Python, you can use the Azure SDK for Python. Here are the step-by-step instructions:
  1. Import the necessary modules:
  1. Authenticate with Azure using the DefaultAzureCredential class:
  1. Instantiate a SecurityCenter client object:
  1. Get the subscription ID for the target subscription:
  1. Get the security policy for the subscription:
  1. Check if the “Monitor Endpoint Protection” setting is enabled:
  1. Update the security policy with the new setting:
This will enable the “Monitor Endpoint Protection” setting in the security policy for the target Azure subscription.
If you already have an azurerm_policy_assignment for this control, update that existing resource with the correct policy_definition_id and parameters instead of creating a new one; this will be an in‑place update, not a replacement of any VM resources.Verification with terraform plan should show either:
  • + creation of azurerm_policy_assignment.monitor_endpoint_protection, or
  • ~ an update to the existing policy assignment, changing policy_definition_id, parameters, and/or enforce to the desired values.