Microsoft Sentinel
Cloud and workloads

Defender portal

In brief

The article now provides streamlined Defender portal steps and clearer guidance on KQL parameters, entity types, strong identifiers, and dynamic activity titles. Publication and authoring metadata were also updated.

What Defender admins need to know

Administrators can use the revised instructions to create custom activities and select identifiers more accurately.

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.

  1. The Activity wizard - Create new activity from template will open, with its fields already populated from the template. You can make changes as you like in the General and Activity configuration tabs, or leave everything as isthe prepopulated settings unchanged to continue viewing the out-of-the-box activity.

  2. When you are satisfied, select the Review and create tab. When you see the Validation passed message, click the Create button at the bottom.

We recommend that your query uses an Advanced Security Information Model (ASIM) parser and not a built-in table. This ensures that the query will support any current or future relevant data source rather than a single data source.

In order toTo correlate events and detect the custom activity, the KQL query requires an input of several parameters, dependingparameters that depend on the entity type. TheThese parameters are the various identifiers of the entity in question.entity.

SelectingUse a strong identifier is better in order to havefor one-to-one mapping between the query results and the entity. Selecting aA weak identifier maymight yield inaccurate results. Learn more about entities and strong vs. weak identifiers.

The following table provides information about the entities' identifiers.

| | Host_AzureID | the Microsoft Entra object ID of the host in Microsoft Entra ID (if Microsoft Entra domain joined) | | | Host_OMSAgentID | the OMS Agent ID of the agent installed on a specific host (unique per host)

Based on the entity type you selected on the General tab, you will'll see the available identifiers. Clicking on the relevant identifiers willSelect an identifier to paste the identifierit into the query,query at the location of the cursor.cursor location.

Summarize count() by <each parameter you’ve projected in the activity>, bin (TimeGenerated, Bucket in Hours)
```

The following example shows an activity title that uses dynamic parameters:

:::image type="content" source="./media/customize-entity-activities/new-activity-title.png" alt-text="Screenshot - See the available values for your activity title":::