Skip to content

Commit 6e0135d

Browse files
authored
Merge branch 'main' into wi-502580-batch-5-redone-defender-xdr-image-reorg
2 parents 3bb28e9 + a89cd52 commit 6e0135d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+46
-46
lines changed

defender-xdr/advanced-hunting-custom-functions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ A function is a type of query in advanced hunting that you can use in other quer
4040

4141
There are three different types of functions in advanced hunting:
4242

43-
![Function types](/defender/media/advanced-hunting-custom-fxns/function-types.png)
43+
![Function types](media/advanced-hunting-custom-functions/function-types.png)
4444

4545
- **Built-in functions** – Prebuilt functions included with Microsoft Defender XDR advanced hunting. These functions are available in all advanced hunting instances and can't be modified.
4646
- **Shared functions** – Custom functions that users create. All users in a specific tenant can access these functions. Users can modify and control these functions.
@@ -51,7 +51,7 @@ There are three different types of functions in advanced hunting:
5151
To create a function from the current query in the editor:
5252

5353
1. Select **Save** and then **Save as function**.
54-
![Save as function](/defender/media/advanced-hunting-custom-fxns/save-as-function.png)
54+
![Save as function](media/advanced-hunting-custom-functions/save-as-function.png)
5555

5656
1. In the **Save as function** flyout panel, provide the following information:
5757

@@ -60,7 +60,7 @@ To create a function from the current query in the editor:
6060
- **Description** - A description that helps other users understand the purpose of the function and how it works.
6161
- **Parameters** - Add a parameter for each variable in the function that requires a value when it's used. For more information, see [Add parameters to your custom function](#add-parameters-to-your-custom-function).
6262

63-
![Save as function dialog box](/defender/media/advanced-hunting-custom-fxns/save-as-function-dialog-box.png)
63+
![Save as function dialog box](media/advanced-hunting-custom-functions/save-as-function-dialog-box.png)
6464

6565
1. Select **Save**.
6666

@@ -84,7 +84,7 @@ To create tabular parameters for your custom function:
8484
1. Enter a **Name** and **Default value** for the table.
8585
1. Map each column that your query references to the table. Select **Add column**, then enter the column's properties.
8686

87-
![Table parameter in custom functions](/defender/media/advanced-hunting-custom-fxns/save-as-function-table.png)
87+
![Table parameter in custom functions](media/advanced-hunting-custom-functions/save-as-function-table.png)
8888

8989
> [!NOTE]
9090
>- You can save a function with more than one table.
@@ -98,21 +98,21 @@ Add a function to the current query by double-clicking on its name or selecting
9898

9999
If a query requires arguments, provide them using the following syntax: *function_name(parameter 1, parameter 2, ...)*
100100

101-
![Open in query editor](/defender/media/advanced-hunting-custom-fxns/open-in-query-editor.png)
101+
![Open in query editor](media/advanced-hunting-custom-functions/open-in-query-editor.png)
102102

103103
> [!NOTE]
104104
> You can't use functions inside another function.
105105
106106
## Work with function codes
107107
You can view the code of a function to understand how it works or to modify its code. Select the three dots to the right of the function and select **Load function code** to open a new tab with the function code.
108108

109-
![Load function code](/defender/media/advanced-hunting-custom-fxns/load-function-code.png)
109+
![Load function code](media/advanced-hunting-custom-functions/load-function-code.png)
110110

111111
## Edit a custom function
112112

113113
Edit the properties of a function by selecting the three dots to the right of the function and selecting **Edit details**. Make any modifications that you want to the properties and parameters of the function, then select **Save**.
114114

115-
![Edit function code](/defender/media/advanced-hunting-custom-fxns/edit-function.png)
115+
![Edit function code](media/advanced-hunting-custom-functions/edit-function.png)
116116

117117
If the function code is already loaded in the editor, you can also select **Save** to apply any changes to the code or properties of the function.
118118

@@ -125,7 +125,7 @@ You can delete functions from **My functions** and functions you created in **Sh
125125

126126
To delete a function, select the three dots to the right of the function and select **Delete**.
127127

128-
![Screenshot that shows how to delete a custom function.](/defender/media/advanced-hunting-custom-fxns/delete-function.png)
128+
![Screenshot that shows how to delete a custom function.](media/advanced-hunting-custom-functions/delete-function.png)
129129
## See also
130130

131131
- [Advanced hunting overview](advanced-hunting-overview.md)

defender-xdr/advanced-hunting-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Entity data populates tables with information about users and devices. This data
104104
### Queries
105105

106106
Advanced hunting data uses the UTC (Universal Time Coordinated) timezone.
107-
![Screenshot of custom time range.](/defender/media/custom-time-range.png)
107+
![Screenshot of custom time range.](media/advanced-hunting-overview/custom-time-range.png)
108108

109109
Queries should be created in UTC.
110110

defender-xdr/advanced-hunting-query-builder-details.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,58 +38,58 @@ ms.date: 03/28/2025
3838
Advanced hunting in guided mode supports several data types that you can use to fine-tune your query.
3939

4040
- Numbers<br>
41-
![Screenshot of numbers as third condition](/defender/media/guided-hunting/21-numbers.png)
41+
![Screenshot of numbers as third condition](media/advanced-hunting-query-builder-details/21-numbers.png)
4242

4343
- Strings<br>
44-
![Screenshot of strings as third condition](/defender/media/guided-hunting/21-string.png)
44+
![Screenshot of strings as third condition](media/advanced-hunting-query-builder-details/21-string.png)
4545

4646
In the free text box, type the value and press **Enter** to add it. Note that the delimiter between values is **Enter**.<br>
4747

48-
![Screenshot showing different conditions you can use](/defender/media/guided-hunting/23-string2.png)
48+
![Screenshot showing different conditions you can use](media/advanced-hunting-query-builder-details/23-string2.png)
4949

5050
- Boolean<br>
51-
![Screenshot of Boolean values as third condition](/defender/media/guided-hunting/24-boolean.png)
51+
![Screenshot of Boolean values as third condition](media/advanced-hunting-query-builder-details/24-boolean.png)
5252

5353

5454
- Datetime<br>
55-
![Screenshot of datetime values as third condition](/defender/media/guided-hunting/25-datetime.png)
55+
![Screenshot of datetime values as third condition](media/advanced-hunting-query-builder-details/25-datetime.png)
5656

5757

5858
- Closed list - You don't need to remember the exact value you're looking for. You can easily choose from a suggested closed list that supports multi-selection.<br>
59-
![Screenshot of a closed list used as third condition](/defender/media/guided-hunting/26-closed.png)
59+
![Screenshot of a closed list used as third condition](media/advanced-hunting-query-builder-details/26-closed.png)
6060

6161

6262
## Use subgroups
6363
You can create groups of conditions by clicking **Add subgroup**:
6464

65-
![Screenshot highlighting Add subgroup button](/defender/media/guided-hunting/27-subgroup1.png)
65+
![Screenshot highlighting Add subgroup button](media/advanced-hunting-query-builder-details/27-subgroup1.png)
6666

67-
![Screenshot showing use of subgroups](/defender/media/guided-hunting/28-subgroup2.png)
67+
![Screenshot showing use of subgroups](media/advanced-hunting-query-builder-details/28-subgroup2.png)
6868

6969
## Use smart auto-complete for search
7070
Smart auto-complete for searching devices and user accounts is supported.
7171
You don't need to remember the device ID, full device name, or user account name. You can start typing the first few characters of the device or user you're looking for and a suggested list appears from which you can choose what you need:
7272

73-
![Screenshot showing smart auto-complete support](/defender/media/guided-hunting/29-smart-auto.png)
73+
![Screenshot showing smart auto-complete support](media/advanced-hunting-query-builder-details/29-smart-auto.png)
7474

7575
## Use `EventType`
7676
You can even look for specific event types like all failed logons, file modification events, or successful network connections by using the **EventType** filter in any section where it is applicable.
7777

7878
For instance, if you want to add a condition that looks for registry value deletions, you can go to the **Registry Events** section and select **EventType**.
7979

80-
![Screenshot of various EventTypes](/defender/media/guided-hunting/30-eventtype1.png)
80+
![Screenshot of various EventTypes](media/advanced-hunting-query-builder-details/30-eventtype1.png)
8181

8282
Selecting EventType under Registry Events allows you to choose from different registry events, including the one you're hunting for, **RegistryValueDeleted**.
8383

84-
![Screenshot of EventType RegistryValueDeleted](/defender/media/guided-hunting/31-eventtype2.png)
84+
![Screenshot of EventType RegistryValueDeleted](media/advanced-hunting-query-builder-details/31-eventtype2.png)
8585

8686
> [!NOTE]
8787
>`EventType` is the equivalent of `ActionType` in the data schema, which users of advanced mode might be more familiar with.
8888
8989
## Test your query with a smaller sample size
9090
If you're still working on your query and would like to see its performance and some sample results quickly, adjust the number of records to return by picking a smaller set through the **Sample size** dropdown menu.
9191

92-
![Screenshot of sample size dropdown menu](/defender/media/guided-hunting/32-sample-size.png)
92+
![Screenshot of sample size dropdown menu](media/advanced-hunting-query-builder-details/32-sample-size.png)
9393

9494
The sample size is set to 10,000 results by default, which is the maximum number of records that can be returned in hunting. However, we highly recommend lowering the sample size to 10 or 100 to quickly test your query, as doing so consumes less resources while you're still working on improving the query.
9595

@@ -98,15 +98,15 @@ Then, once you finalize your query and are ready to use it to get all the releva
9898
## Switch to advanced mode after building a query
9999
You can click on **Edit in KQL** to view the KQL query generated by your selected conditions. Editing in KQL opens a new tab in advanced mode, with the corresponding KQL query:
100100

101-
![Screenshot highlighting Edit in KQL button](/defender/media/guided-hunting/33-edit-kql.png)
101+
![Screenshot highlighting Edit in KQL button](media/advanced-hunting-query-builder-details/33-edit-kql.png)
102102

103-
![Screenshot showing same query from guided to advanced](/defender/media/guided-hunting/33-edit-kql-2.png)
103+
![Screenshot showing same query from guided to advanced](media/advanced-hunting-query-builder-details/33-edit-kql-2.png)
104104

105105
In the above example, the selected view is All, therefore you can see that the KQL query searches all tables that have file properties of name and SHA256, and in all the relevant columns covering these properties.
106106

107107
If you change the view to **Emails & collaboration**, the query is narrowed down to:
108108

109-
![Screenshot showing same query from guided to advanced but with limited domain](/defender/media/guided-hunting/34-edit-kql-3.png)
109+
![Screenshot showing same query from guided to advanced but with limited domain](media/advanced-hunting-query-builder-details/34-edit-kql-3.png)
110110

111111
## See also
112112
- [Advanced hunting quotas and usage parameters](advanced-hunting-limits.md)

defender-xdr/advanced-hunting-query-builder-results.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ms.date: 03/28/2025
3535
3636
In hunting using guided mode, the results of the query appear in the **Results** tab.
3737

38-
![Screenshot of results tab](/defender/media/guided-hunting/35-query-results.png)
38+
![Screenshot of results tab](media/advanced-hunting-query-builder-results/35-query-results.png)
3939

4040
You can work on the results further by exporting them to a CSV file by selecting **Export**. This downloads the CSV file for your use.
4141

@@ -54,7 +54,7 @@ To view more columns:
5454
1. Select **Customize columns** in the upper right-hand portion of the results view.
5555
2. From here, select the columns to include in the results view and deselect columns to hide.
5656

57-
![Screenshot of list of columns you can add to the results view](/defender/media/guided-hunting/36-columns.png)
57+
![Screenshot of list of columns you can add to the results view](media/advanced-hunting-query-builder-results/36-columns.png)
5858

5959
3. Select **Apply** to view results with the added columns. Use the scroll bars if necessary.
6060

0 commit comments

Comments
 (0)