Skip to main content

More Info:

Security solution changes have been detected within your Microsoft Azure cloud account.

Risk Level

High

Address

Security

Compliance Standards

  • CIS AZURE
  • Cloudanix Best Practice
  • HIPAA
  • ISO 27001

Triage and Remediation

Remediation

Using Console

Sure, here are the step-by-step instructions to remediate the misconfiguration of creating an alert for “Delete Security Solution” events in Azure using the Azure console:
  1. Open the Azure portal and navigate to the Security Center.
  2. Click on “Security policy” from the left-hand menu.
  3. Select the policy that you want to update.
  4. Scroll down to the “Alerts” section and click on “Add alert”.
  5. In the “Create alert rule” window, select the “Activity log” option.
  6. Under “Event types”, select “Service Health” and then select “Service health status changes”.
  7. In the “Service health status changes” section, select “Resolved” and “Dismissed” as the status changes to be alerted for.
  8. Under “Actions”, select “Email/SMS/Push/Voice” and add the email addresses of the people who should be alerted.
  9. Click on “Create alert rule” to save the configuration.
Once you have followed these steps, you should receive an alert whenever a “Delete Security Solution” event is detected in Azure. This will help you to take immediate action to remediate any potential security risks.

To remediate the misconfiguration of not having an alert for “Delete Security Solution” events in Azure using Azure CLI, follow these steps:
  1. Open the Azure CLI on your local machine or Azure Cloud Shell.
  2. Run the following command to create a new activity log alert rule:
Replace the placeholders <alert-name>, <alert-description>, <resource-group-name>, and <action-group-name> with the appropriate values for your environment.
  1. The --condition parameter specifies the condition for the alert rule. In this case, it is set to trigger when an administrative action is taken to delete a security solution. You can modify this condition to suit your specific needs.
  2. The --action parameter specifies the action to take when the alert is triggered. You can specify an action group that contains one or more actions, such as sending an email notification or invoking a webhook.
  3. Once the command completes successfully, the alert rule will be created and enabled.
By following these steps, you will have successfully remediated the misconfiguration of not having an alert for “Delete Security Solution” events in Azure using Azure CLI.
To remediate the misconfiguration of not having an alert for “Delete Security Solution” events in Azure, you can follow these steps using Python:
  1. Install the Azure SDK for Python using the following command:
  1. Import the required modules:
  1. Set up the Azure credentials by creating a Service Principal:
  1. Create a MonitorManagementClient object:
  1. Define the alert rule condition:
  1. Define the alert rule action:
  1. Create the alert rule:
This will create an alert rule in Azure that will send an email notification to the specified email address when a “Delete Security Solution” event is detected.
This change does not force replacement of existing workloads, but it will create new Azure Monitor resources; removing or renaming them later will destroy/recreate only the alerting objects.To verify, terraform plan should show creation of azurerm_monitor_activity_log_alert.delete_security_solution_alert and azurerm_monitor_action_group.security_alerts with the specified criteria on operation_name = "Microsoft.Security/securitySolutions/delete".