mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-16 02:43:43 +00:00
acrotweaks
This commit is contained in:
@ -25,7 +25,7 @@ ms.topic: article
|
||||
|
||||
Custom detection rules built from [advanced hunting](advanced-hunting-overview.md) queries let you proactively monitor various events and system states, including suspected breach activity and misconfigured devices. You can set them to run at regular intervals, generating alerts and taking response actions whenever there are matches.
|
||||
|
||||
Read this article to learn how to create new custom detection rules, or [see viewing and managing existing rules](custom-detections-manage.md).
|
||||
Read this article to learn how to create new custom detection rules. Or [see viewing and managing existing rules](custom-detections-manage.md).
|
||||
|
||||
## Required permissions
|
||||
|
||||
@ -34,7 +34,7 @@ To create or manage custom detections, [your role](user-roles.md#create-roles-an
|
||||
## Create a custom detection rule
|
||||
### 1. Prepare the query.
|
||||
|
||||
In Microsoft Defender Security Center, go to **Advanced hunting** and select an existing query or create a new query. When using an new query, run the query to identify errors and understand possible results.
|
||||
In Microsoft Defender Security Center, go to **Advanced hunting** and select an existing query or create a new query. When using a new query, run the query to identify errors and understand possible results.
|
||||
|
||||
>[!IMPORTANT]
|
||||
>To prevent the service from returning too many alerts, each rule is limited to generating only 100 alerts whenever it runs. Before creating a rule, tweak your query to avoid alerting for normal, day-to-day activity.
|
||||
@ -59,24 +59,24 @@ DeviceEvents
|
||||
|
||||
With the query in the query editor, select **Create detection rule** and specify the following alert details:
|
||||
|
||||
- **Detection name** — name of the detection rule
|
||||
- **Frequency** — interval for running the query and taking action. [See additional guidance below](#rule-frequency)
|
||||
- **Alert title** — title displayed with alerts triggered by the rule
|
||||
- **Severity** — potential risk of the component or activity identified by the rule. [Read about alert severities](alerts-queue.md#severity)
|
||||
- **Category** — type of threat component or activity, if any. [Read about alert categories](alerts-queue.md#understanding-alert-categories)
|
||||
- **MITRE ATT&CK techniques** — one or more attack techniques identified by the rule as documented in the MITRE ATT&CK framework. This section does not apply and is hidden for certain alert categories, including malware, ransomware, suspicious activity, and unwanted software
|
||||
- **Description** — more information about the component or activity identified by the rule
|
||||
- **Recommended actions** — additional actions that responders might take in response to an alert
|
||||
- **Detection name**—name of the detection rule
|
||||
- **Frequency**—interval for running the query and taking action. [See additional guidance below](#rule-frequency)
|
||||
- **Alert title**—title displayed with alerts triggered by the rule
|
||||
- **Severity**—potential risk of the component or activity identified by the rule. [Read about alert severities](alerts-queue.md#severity)
|
||||
- **Category**—type of threat component or activity, if any. [Read about alert categories](alerts-queue.md#understanding-alert-categories)
|
||||
- **MITRE ATT&CK techniques**—one or more attack techniques identified by the rule as documented in the MITRE ATT&CK framework. This section is not available with alert categories, such as malware, ransomware, suspicious activity, and unwanted software
|
||||
- **Description**—more information about the component or activity identified by the rule
|
||||
- **Recommended actions**—additional actions that responders might take in response to an alert
|
||||
|
||||
For more information about how alert details are displayed, [read about the alert queue](alerts-queue.md).
|
||||
|
||||
#### Rule frequency
|
||||
When saved, a new or edited custom detection rule immediately runs and checks for matches from the past 30 days of data. The rule then runs again at fixed intervals and lookback durations based on the frequency you choose:
|
||||
|
||||
- **Every 24 hours** — runs every 24 hours, checking data from the past 30 days
|
||||
- **Every 12 hours** — runs every 12 hours, checking data from the past 24 hours
|
||||
- **Every 3 hours** — runs every 3 hours, checking data from the past 6 hours
|
||||
- **Every hour** — runs hourly, checking data from the past 2 hours
|
||||
- **Every 24 hours**—runs every 24 hours, checking data from the past 30 days
|
||||
- **Every 12 hours**—runs every 12 hours, checking data from the past 24 hours
|
||||
- **Every 3 hours**—runs every 3 hours, checking data from the past 6 hours
|
||||
- **Every hour**—runs hourly, checking data from the past 2 hours
|
||||
|
||||
Select the frequency that matches how closely you want to monitor detections, and consider your organization's capacity to respond to the alerts.
|
||||
|
||||
@ -85,15 +85,15 @@ Your custom detection rule can automatically take actions on files or devices th
|
||||
|
||||
#### Actions on devices
|
||||
These actions are applied to devices in the `DeviceId` column of the query results:
|
||||
- **Isolate device** — applies full network isolation, preventing the device from connecting to any application or service, except for the Microsoft Defender ATP service. [Learn more about device isolation](respond-machine-alerts.md#isolate-devices-from-the-network)
|
||||
- **Collect investigation package** — collects device information in a ZIP file. [Learn more about the investigation package](respond-machine-alerts.md#collect-investigation-package-from-devices)
|
||||
- **Run antivirus scan** — performs a full Microsoft Defender Antivirus scan on the device
|
||||
- **Initiate investigation** — initiates an [automated investigation](automated-investigations.md) on the device
|
||||
- **Isolate device**—applies full network isolation, preventing the device from connecting to any application or service, except for the Microsoft Defender ATP service. [Learn more about device isolation](respond-machine-alerts.md#isolate-devices-from-the-network)
|
||||
- **Collect investigation package**—collects device information in a ZIP file. [Learn more about the investigation package](respond-machine-alerts.md#collect-investigation-package-from-devices)
|
||||
- **Run antivirus scan**—performs a full Microsoft Defender Antivirus scan on the device
|
||||
- **Initiate investigation**—starts an [automated investigation](automated-investigations.md) on the device
|
||||
|
||||
#### Actions on files
|
||||
These actions are applied to files in the `SHA1` or the `InitiatingProcessSHA1` column of the query results:
|
||||
- **Allow/Block** — automatically adds the file to your [custom indicator list](manage-indicators.md) so that it is always allowed to run or blocked from running. You can set the scope of this action so that it is taken only on selected device groups. This scope is independent of the scope of the rule.
|
||||
- **Quarantine file** — deletes the file from its current location and places a copy in quarantine
|
||||
- **Allow/Block**—automatically adds the file to your [custom indicator list](manage-indicators.md) so that it is always allowed to run or blocked from running. You can set the scope of this action so that it is taken only on selected device groups. This scope is independent of the scope of the rule.
|
||||
- **Quarantine file**—deletes the file from its current location and places a copy in quarantine
|
||||
|
||||
### 4. Set the rule scope.
|
||||
Set the scope to specify which devices are covered by the rule:
|
||||
|
@ -33,14 +33,14 @@ To create or manage custom detections, [your role](user-roles.md#create-roles-an
|
||||
|
||||
To view all existing custom detection rules, navigate to **Settings** > **Custom detections**. The page lists all the rules with the following run information:
|
||||
|
||||
- **Last run** — when a rule was last run to check for query matches and generate alerts
|
||||
- **Last run status** — whether a rule ran successfully
|
||||
- **Next run** — the next scheduled run
|
||||
- **Status** — whether a rule has been turned on or off
|
||||
- **Last run**—when a rule was last run to check for query matches and generate alerts
|
||||
- **Last run status**—whether a rule ran successfully
|
||||
- **Next run**—the next scheduled run
|
||||
- **Status**—whether a rule has been turned on or off
|
||||
|
||||
## View rule details, modify rule, and run rule
|
||||
|
||||
To view comprehensive information about a custom detection rule, select the name of rule from the list of rules in **Settings** > **Custom detections**. This opens a page about the custom detection rule with the following information:
|
||||
To view comprehensive information about a custom detection rule, select the name of rule from the list of rules in **Settings** > **Custom detections**. A page about the selected rule displays the the following information:
|
||||
|
||||
- General information about the rule, including the details of the alert, run status, and scope
|
||||
- List of triggered alerts
|
||||
@ -51,11 +51,11 @@ To view comprehensive information about a custom detection rule, select the name
|
||||
|
||||
You can also take the following actions on the rule from this page:
|
||||
|
||||
- **Run** — run the rule immediately. This also resets the interval for the next run.
|
||||
- **Edit** — modify the rule without changing the query
|
||||
- **Modify query** — edit the query in advanced hunting
|
||||
- **Turn on** / **Turn off** — enable the rule or stop it from running
|
||||
- **Delete** — turn off the rule and remove it
|
||||
- **Run**—run the rule immediately. This action also resets the interval for the next run.
|
||||
- **Edit**—modify the rule without changing the query
|
||||
- **Modify query**—edit the query in advanced hunting
|
||||
- **Turn on** / **Turn off**—enable the rule or stop it from running
|
||||
- **Delete**—turn off the rule and remove it
|
||||
|
||||
>[!TIP]
|
||||
>To quickly view information and take action on an item in a table, use the selection column [✓] at the left of the table.
|
||||
|
Reference in New Issue
Block a user