You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/defender-for-cloud/alert-validation.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Alert validation in Microsoft Defender for Cloud
3
3
description: Learn how to validate that your security alerts are correctly configured in Microsoft Defender for Cloud
4
4
ms.topic: how-to
5
-
ms.date: 05/23/2023
5
+
ms.date: 05/29/2023
6
6
ms.author: dacurwin
7
7
author: dcurwin
8
8
---
@@ -22,7 +22,7 @@ To receive all the alerts, your machines and the connected Log Analytics workspa
22
22
23
23
## Generate sample security alerts
24
24
25
-
If you're using the new, preview alerts experience as described in [Manage and respond to security alerts in Microsoft Defender for Cloud](managing-and-responding-alerts.md), you can create sample alerts from the security alerts page in the Azure portal.
25
+
If you're using the new preview alerts experience as described in [Manage and respond to security alerts in Microsoft Defender for Cloud](managing-and-responding-alerts.md), you can create sample alerts from the security alerts page in the Azure portal.
26
26
27
27
Use sample alerts to:
28
28
@@ -33,16 +33,16 @@ To create sample alerts:
33
33
34
34
1. As a user with the role **Subscription Contributor**, from the toolbar on the security alerts page, select **Sample alerts**.
35
35
1. Select the subscription.
36
-
1. Select the relevant Microsoft Defender plan/s for which you want to see alerts.
36
+
1. Select the relevant Microsoft Defender plan/s for which you want to see alerts.
37
37
1. Select **Create sample alerts**.
38
38
39
39
:::image type="content" source="media/alert-validation/create-sample-alerts-procedures.png" alt-text="Screenshot showing steps to create sample alerts in Microsoft Defender for Cloud." lightbox="media/alert-validation/create-sample-alerts-procedures.png":::
40
-
40
+
41
41
A notification appears letting you know that the sample alerts are being created:
42
42
43
43
:::image type="content" source="media/alert-validation/notification-sample-alerts-creation.png" alt-text="Screenshot showing notification that the sample alerts are being generated." lightbox="media/alert-validation/notification-sample-alerts-creation.png":::
44
44
45
-
After a few minutes, the alerts appear in the security alerts page. They'll also appear anywhere else that you've configured to receive your Microsoft Defender for Cloud security alerts (connected SIEMs, email notifications, and so on).
45
+
After a few minutes, the alerts appear in the security alerts page. They also appear anywhere else that you've configured to receive your Microsoft Defender for Cloud security alerts (connected SIEMs, email notifications, and so on).
46
46
47
47
:::image type="content" source="media/alert-validation/sample-alerts.png" alt-text="Screenshot showing sample alerts in the security alerts list." lightbox="media/alert-validation/sample-alerts.png":::
48
48
@@ -92,9 +92,9 @@ You can simulate alerts for both of the control plane, and workload alerts with
92
92
-**ARC only** - Ensure the Defender extension is installed.
93
93
-**EKS or GKE only** - Ensure the default audit log collection auto-provisioning options are enabled.
94
94
95
-
**To simulate a Kubernetes control plane security alert**:
95
+
**To simulate a Kubernetes control plane security alert**:
96
96
97
-
1. Run the following command from the cluster:
97
+
1. Run the following command from the cluster:
98
98
99
99
```bash
100
100
kubectl get pods --namespace=asc-alerttest-662jfi039n
@@ -106,19 +106,19 @@ You can simulate alerts for both of the control plane, and workload alerts with
106
106
107
107
1. In the Azure portal, navigate to the Defender for Cloud's security alerts page.
108
108
109
-
1. On the relevant Kubernetes cluster, locate the following alert `Microsoft Defender for Cloud test alert for K8S (not a threat)`
109
+
1. On the relevant Kubernetes cluster, locate the following alert `Microsoft Defender for Cloud test alert for K8S (not a threat)`
110
110
111
111
### Simulate workload alerts (K8S.NODE_ prefix)
112
112
113
113
**Prerequisites**
114
114
115
115
- Ensure the Defender for Containers plan is enabled.
116
-
- Ensure the Defender profile\extension is installed.
116
+
- Ensure the Defender profile\extension is installed.
117
117
118
118
**To simulate a a Kubernetes workload security alert**:
119
-
119
+
120
120
1. Create a pod to run a testcommand on. This pod can be any of the existing pods in the cluster, or a new pod. You can create using this sample yaml configuration:
121
-
121
+
122
122
```yaml
123
123
apiVersion: v1
124
124
kind: Pod
@@ -133,7 +133,7 @@ You can simulate alerts for both of the control plane, and workload alerts with
133
133
```
134
134
135
135
To create the pod run:
136
-
136
+
137
137
```bash
138
138
kubectl apply -f <path_to_the_yaml_file>
139
139
```
@@ -156,19 +156,19 @@ You can simulate alerts for both of the control plane, and workload alerts with
156
156
157
157
You can also learn more about defending your Kubernetes nodes and clusters with [Microsoft Defender for Containers](defender-for-containers-introduction.md).
158
158
159
-
### Simulate alerts for App Service
159
+
## Simulate alerts for App Service
160
160
161
161
You can simulate alerts for resources running on [App Service](/azure/app-service/overview).
162
162
163
-
1. Create a new website and wait 24 hours for it to be registered with Defender for Cloud, or use an existing web site.
163
+
1. Create a new website and wait 24 hours for it to be registered with Defender for Cloud, or use an existing web site.
164
164
165
165
1. Once the web site is created, access it using the following URL:
166
-
1. Open the app service resource blade and copy the domain for the URL from the default domain field.
167
-
166
+
1. Open the app service resource pane and copy the domain for the URL from the default domain field.
167
+
168
168
:::image type="content" source="media/alert-validation/copy-default-domain.png" alt-text="Screenshot showing where to copy the default domain." lightbox="media/alert-validation/copy-default-domain.png":::
169
169
170
170
1. Copy the website name into the URL: `https://<website name>.azurewebsites.net/This_Will_Generate_ASC_Alert`.
0 commit comments