Microsoft Defender for Cloud
Cloud and workloads

Simulate alerts for SQL servers on machines

In brief

The article updates terminology, clarifies the simulation flow and target machines, revises implementation details, and directs users to Security Alerts > Simulate Alerts with refreshed screenshots.

What Defender admins need to know

Administrators following the procedure should use the updated navigation and screenshots when running SQL alert simulations.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Simulate alerts for SQL servers on machines

Microsoft Defender for Cloud provides a SQL simulated alert simulation feature that helps organizations and security teams validate deploymentdeployments and test the preparedness of security teams detection, response, and automation workflows without creating actual security risks.

The simulation injects telemetry records on target machines (Azure Virtual Machines (VMs) or Arc-connected machines) throughuses a custom script extension named Sql-SimulateAlert. The to inject telemetry records on target machines. Target machines include Azure Virtual Machines (VMs) or Arc-connected machines. Each simulated alerts include fullalert includes runtime context such as host, SQL instance, database, and process information, so youinformation. You can use these alerts to validate your end-to-end security response flows. This process is safe and non-intrusive, ensuringdoesn't affect your resources remain secure.resources.

You can simulate the following security scenarios:

Simulate alerts

The SqlAlertSimulationClient extracts template parametersreads details from the target resource, includingsuch as subscription, resource group, machine name, location, and the presence of the Defender extension. location.

SqlAlertSimulationClientIt then builds an Azure Resource Manager (ARM) template that deploys or re-uses a custom script extension on the machine. The extension runs a PowerShell command that invokesstarts the Defender for SQL simulate helper with the requestedchosen attack parameters.settings. The helper generatescreates alert telemetry that flows intodata and sends it to Defender for Cloud, triggeringCloud. These alerts that downstreamcan then trigger your automation and mobilization connectors can consume.response connectors.

  1. Sign in to the Azure portal.

  2. Select Security > Microsoft Defender for Cloud.

  3. Select the Security Alerts tab, and then select Simulate alertAlerts.

    :::image type="content" source="media/simulate-alerts-sql-machines/simulate-sql-alert.png" alt-text="Screenshot that shows whereof the simulate alertMicrosoft Defender for SQL page with the Security Alerts tab and Simulate Alerts button is located.highlighted." lightbox="media/simulate-alerts-sql-machines/simulate-sql-alert.png":::

  4. Select an alert type.

  5. Enter the required information for the selected alert type. For example, username and password for authentication attacks.

  6. Select Simulate AlertAlerts.

The alert appears after a few minutes and youminutes. You can use itthe alert to validate your security monitoring setup.

Verify that the alert is generated

  1. Select Security > Microsoft Defender for Cloud.

  2. Select the Security Alerts tab.

  3. Select Check for alerts on this resource in Microsoft Defender for Cloud.

    :::image type="content" source="media/simulate-alerts-sql-machines/check-alerts.resource-alerts-in-defender-for-cloud.png" alt-text="Screenshot that shows where to locateof the Check for alerts on this resource in Microsoft Defender for SQL page with the Security Alerts tab and the link to check the resource's alerts in Defender for Cloud button is located.highlighted." lightbox="media/simulate-alerts-sql-machines/check-alerts.resource-alerts-in-defender-for-cloud.png":::

Verify that the simulated alert appears in the list of alerts for the resource and manage and respond to the security alert.

Next step