Microsoft Combined
As prelude supports multiple uses of Microsoft's stack you can configure a single "app registration" to cover all uses, instead of one for EDR, one for Endpoint Management, one for Email etc. We do this by combining the IAM Roles and API permissions info a single app registration.
To attach Prelude to a Microsoft App registration, you will need:
- The Prelude Dashboard / UI (US1 | EU1) or Prelude CLI
- An Azure user with Global Administrator role
In Azure
Create an App Registration
- Navigate to the App registrations section in the Azure Portal.
- Select "+ New registration" toward the top of the page.
- Enter a name for your application
- Choose Single tenant as the supported account type (Accounts in this organizational directory only). Click Register.
- Leave Redirect URI (optional) as it is.
- After registration:
- Note down the Application (client) ID and Directory (tenant) ID from the app's Overview page.
- In the left menu, expand the Manage section and select Certificates & secrets and create a new Client Secret:
- Click New client secret, enter a description, and set an expiration period.
- Note down the generated Client Secret Value (you won’t be able to view it later).
we now have:
- APP ID (Application (client) ID) from step 6
- TENANT ID (Directory (tenant) ID) from step 6
- APP SECRET (Client Secret Value) from step 7
Roles and API Permissions Summary
While step by step guidance is provided in the next section, here we provide a quick summary table of all API Permissions and IAM Role Assignments required
API Permissions
Use-Case | API | Permission Type | Permission |
---|---|---|---|
Defender | Microsoft APIs / Microsoft Graph | Delegated | User.Read |
Defender | Microsoft APIs / Microsoft Graph | Application | ThreatHunting.Read.All CustomDetection.ReadWrite.All DeviceManagementConfiguration.Read.All |
Defender | APIs my organization uses / WindowsDefenderATP | Application | Machine.Read.All Alert.Read.All Ti.Read.All |
Intune | Microsoft APIs / Microsoft Graph | Delegated | User.Read |
Intune | Microsoft APIs / Microsoft Graph | Application | Device.Read.All DeviceManagementConfiguration.Read.All DeviceManagementManagedDevices.Read.All |
M365 (Email) | APIs my organization uses / Office 365 Exchange Online | Application | Exchange.ManageAsApp |
EntraID | Microsoft APIs / Microsoft Graph | Application | AuditLog.Read.All IdentityRiskyUser.Read.All Policy.Read.All UserAuthenticationMethod.Read.All User.Read.All DeviceManagementConfiguration.Read.All |
IAM Roles
Use-Case | Role |
---|---|
Defender | N/A |
Intune | N/A |
M365 (Email) | - Security Reader |
EntraID | N/A |
the next section provides a step by step guide to configure the API Permissions and Roles
Granting API Permissions
- In the left menu of the app you created, select API permissions and click Add a permission
Defender
- Under "Microsoft APIs" select Microsoft Graph
- Select Application permissions (not Delegated) and add the following API Permissions.
User.Read
Machine.Read.All
ThreatHunting.Read.All
CustomDetection.ReadWrite.All
DeviceManagementConfiguration.Read.All
Intune
- Under "Microsoft APIs" select Microsoft Graph
- Select Delegated Permissions and add the following API Permissions:
User.Read
- Select Application permissions (not Delegated) and add the following API Permissions.
Device.Read.All
DeviceManagementConfiguration.Read.All
DeviceManagementManagedDevices.Read.All
M365 (Email)
- Under "APIs my organization uses" search for: "Office 365 Exchange Online" select Office 365 Exchange Online
- Select Application permissions (not Delegated) and add the following API Permissions.
Exchange.ManageAsApp
EntraID
- Under "Microsoft APIs" select Microsoft Graph
- Select Application permissions (not Delegated) and add the following API Permissions.
User.Read
Machine.Read.All
ThreatHunting.Read.All
CustomDetection.ReadWrite.All
DeviceManagementConfiguration.Read.All
Note: After adding the above permissions ensure you select "Grant admin consent for " as show in the screenshot below:
Granting IAM Roles
Entra ID: Granting Security Reader role
- Navigate to Entra ID in the Azure portal
- Expand Manage and select "Roles and Administrators" on the left hand side
- Search for the "Security Reader" role and click on it
- On the next screen, select Add Assignment
- Search for your App ID that you created in the above steps and assign it to the Security Reader role:
In Prelude
Follow the instructions to attach the relevant technology:
Updated 8 days ago