How to create Prowler Service Principal¶
To allow Prowler assume an identity to start the scan with the required privileges is necesary to create a Service Principal. To create one follow the next steps:
- Access to Microsoft Entra ID
- In the left menu bar, go to "App registrations"
- Once there, in the menu bar click on "+ New registration" to register a new application
- Fill the "Name, select the "Supported account types" and click on "Register. You will be redirected to the applications page.
- Once in the application page, in the left menu bar, select "Certificates & secrets"
- In the "Certificates & secrets" view, click on "+ New client secret"
- Fill the "Description" and "Expires" fields and click on "Add"
- Copy the value of the secret, it is going to be used as
AZURE_CLIENT_SECRET
environment variable.
Assigning the proper permissions¶
To allow Prowler to retrieve metadata from the identity assumed and specific Entra checks, it is needed to assign the following permissions:
- Access to Microsoft Entra ID
- In the left menu bar, go to "App registrations"
- Once there, select the application that you have created
- In the left menu bar, select "API permissions"
- Then click on "+ Add a permission" and select "Microsoft Graph"
- Once in the "Microsoft Graph" view, select "Application permissions"
- Finally, search for "Directory", "Policy" and "UserAuthenticationMethod" select the following permissions:
Directory.Read.All
Policy.Read.All
UserAuthenticationMethod.Read.All
- Click on "Add permissions" to apply the new permissions.
- Finally, click on "Grant admin consent for [your tenant]" to apply the permissions.