2.8 KiB
title, ms.reviewer, description, keywords, search.product, search.appverid, ms.prod, ms.mktglfcycl, ms.sitesec, ms.pagetype, ms.author, author, ms.localizationpriority, manager, audience, ms.collection, ms.topic
title | ms.reviewer | description | keywords | search.product | search.appverid | ms.prod | ms.mktglfcycl | ms.sitesec | ms.pagetype | ms.author | author | ms.localizationpriority | manager | audience | ms.collection | ms.topic |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Create custom detection rules in Microsoft Defender ATP | Learn how to create custom detections rules based on advanced hunting queries | create custom detections, detections, advanced hunting, hunt, detect, query | eADQiWindows 10XVcnh | met150 | w10 | deploy | library | security | macapara | mjcaparas | medium | dansimp | ITPro | M365-security-compliance | article |
Create custom detections rules
Applies to:
Create custom detection rules from Advanced hunting queries to automatically check for threat indicators and generate alerts whenever these indicators are found.
Note
To create and manage custom detections, your role needs to have the manage security settings permission.
-
In the navigation pane, select Advanced hunting.
-
Select an existing query that you'd like to base the monitor on or create a new query.
-
Select Create detection rule.
-
Specify the alert details:
- Alert title
- Severity
- Category
- Description
- Recommended actions
-
Click Create.
Tip
TIP #1: Running the query for the first time before saving it can help you find any mistakes or errors and give you a preview of the data you can expect to be returned.
When a new detection rule is created, it will run for the first time (it might take a few minutes) and raise any alerts created by this rule. After that, the rule will automatically run every 24 hours.
TIP #2: Since the detection automatically runs every 24 hours, it's best to query data in the last 24 hours.
Manage existing custom detection rules
View existing rules in your network, see the last results of each rule, navigate to view all alerts that were created by each rule. You can also modify existing rules.
-
In the navigation pane, select Settings > Custom detections. You'll see all the detections created in the system.
-
Select one of the rules to take any of the following actions:
- Open related alerts - See all the alerts that were raised based to this rule
- Run - Run the selected detection immediately.
Note
The next run for the query will be in 24 hours after the last run.
- Edit - Modify the settings of the rule.
- Modify query - View and edit the query itself.
- Turn off - Stop the query from running.
- Delete