- Print
- DarkLight
Microsoft XDR is a unified security platform that integrates threat detection, investigation, and response capabilities across endpoints, email, identities, and cloud environments to provide holistic security visibility and protection.
Setup and Configure
Log on to Azure with a user account that has the Global Administrator role.
Navigate to App registrations > New registration. The "Register an application" page/ window will appear.
Enter the application's registration information:
In the ‘Name’ section, enter a meaningful application name that will be displayed to users.
For ‘Supported account types’, click the Accounts in any organizational directory option.
Set the ‘Redirect URI’ to http://localhost.
Click on Register to create the application.
From the app “Overview” page, copy the Application (client) ID and Directory (tenant) ID for later use.
Add Endpoint Access
Once the application is created, permissions should be provided in order to get data. The appropriate permissions to the application are needed in order to configure these endpoints. The following section details how to configure and add permissions to the required endpoints.
Endpoints needed for Microsoft XDR
Add Permissions
To add permissions for the above endpoint outlined, from the Azure Active Directory portal:
Select the application whose logs are to be accessed (the application registered earlier on this page).
Click API Permissions, and then click Add a Permission. The “Request API permissions” window appears.
Click on Microsoft Graph.
Click on Application Permissions.
The following permissions need to be granted for the endpoint to function properly:
Endpoint Permissions
Endpoint
Permission
/security/runHuntingQuery
ThreatHunting.Read.All
In the Select permissions search bar, enter the permission shown above, and check the box for each to include it.
Click the Add permissions button after selecting all required permissions.
On the “API permissions” page, click Grant Admin Consent for <tenant>.
Click the Yes button on the consent confirmation. The required permissions are now added for the endpoints.
Create the Client ID and Client Secret
The last step in configuring the Graph API is creating a Client ID and Client Secret. To create these items, from the Azure Portal:
Select the application created above.
Click Certificates & secrets, and then Client secrets.
Click New client secret. The “Add a client secret” window appears.
Enter a Description for this client secret.
Select the desired expiry period from the ‘Expires’ drop-list.
Click Add.
Copy the Value field, which will be used to initialize the beat.