Skip to main content

Integrating Microsoft Entra ID for PHASR identity confirmation

The Microsoft Entra ID integration lets users approve their own PHASR access requests. When PHASR blocks a tool, the user can confirm their identity in Microsoft Entra ID with multi-factor authentication (MFA), and the access request is approved automatically, without waiting for an administrator.

Identity confirmation with Microsoft Entra ID is available on Windows endpoints. It supports cloud-only users on Microsoft Entra joined devices, and hybrid users synchronized from on-premises Active Directory on domain-joined devices registered in Microsoft Entra ID.

How identity confirmation works

  1. A user runs a tool that PHASR has restricted, and PHASR blocks it.

  2. In the alert pop-up on the endpoint, the user selects Request access.

  3. The user signs in to Microsoft Entra ID and completes multi-factor authentication, using the methods allowed by your Conditional Access policy. GravityZone accepts the confirmation only if Microsoft Entra ID reports that multi-factor authentication was used.

  4. If the verification succeeds, access is approved and the endpoint shows Access approved. In GravityZone, an Identity confirmation recommendation is created with the Applied status.

  5. If the verification fails, access is not granted. You can still allow or deny access manually from the PHASR recommendations.

Note

If the user verifies their identity before the access request reaches GravityZone, the request is approved automatically within about 5 minutes.

Requirements

  • A Microsoft Entra ID P1 license, or higher, for each user who will approve their own access requests. Conditional Access requires this license.

  • Security defaults turned off in Microsoft Entra ID and replaced by Conditional Access policies.

  • Users registered for Microsoft Authenticator or a FIDO2 security key.

  • A GravityZone company with a PHASR license. You can connect one Microsoft Entra ID tenant to each company.

  • Windows endpoints with PHASR enabled in the policy, with Allow users to request access and Identity confirmation selected.

  • Display alert pop-ups enabled in the policy, under General > Agent > Notifications. On macOS endpoints, notifications must also be enabled in the macOS settings.

Step 1. Copy the redirect URI from GravityZone

  1. In GravityZone Control Center, go to the Integrations hub page.

  2. Under Integrations catalog, find the Microsoft Entra ID card and click Configure.

    To find the card faster, filter the catalog by the Identity Providers type.

  3. In the Create integration window, copy the Redirect URI. You need it in Step 2.

Keep the configuration form open, or return to it in Step 7.

Step 2. Register an application in Microsoft Entra ID

  1. In the Microsoft Entra admin center, go to App registrations and select New registration.

  2. Enter a name and select Accounts in this organizational directory only (single tenant).

  3. Under Redirect URI, select the Web platform and paste the redirect URI copied in Step 1.

  4. Select Register.

  5. From the application's Overview page, copy the Application (client) ID and the Directory (tenant) ID.

  6. Go to Certificates & secrets, create a new client secret, and copy its Value. Note the expiry date of the secret.

    Important

    A client secret is valid for up to 24 months, and neither Microsoft Entra ID nor GravityZone warns you before it expires. When the secret expires, identity confirmation stops working.

  7. Go to Manage > Manifest and add the onprem_sid, auth_time and amr optional claims to the ID token, so that the optionalClaims section matches the following:

    "optionalClaims": {
        "idToken": [
            { "name": "onprem_sid", "source": null, "essential": false, "additionalProperties": [] },
            { "name": "auth_time",  "source": null, "essential": false, "additionalProperties": [] },
            { "name": "amr",        "source": null, "essential": false, "additionalProperties": [] }
        ],
        "accessToken": [],
        "saml2Token": []
    }

    Save the manifest.

    Note

    Use the manifest, because the amr claim is not available on the Token configuration page. Without these claims, identity confirmation fails with a generic security error.

  8. Optionally, grant admin consent for the openid, profile and email permissions.

Step 3. Create a group for the eligible users

  1. In the Microsoft Entra admin center, create a security group, for example PHASR Self-Approval Users, and add the users allowed to approve their own access requests.

  2. Make sure each member has a Microsoft Entra ID P1 license.

  3. Enable the Microsoft Authenticator and Passkey (FIDO2) authentication methods for this group.

Step 4. Create an authentication strength

Create a custom authentication strength that includes only the multi-factor authentication methods you want users to confirm their identity with, such as Microsoft Authenticator push notifications or FIDO2 security keys.

Step 5. Create an authentication context

  1. In the Microsoft Entra admin center, go to Conditional Access > Authentication contexts and create a new authentication context.

  2. Enter a name and select Publish to apps.

  3. Note the context ID, for example c1. You need it in Step 7.

Step 6. Create a Conditional Access policy

  1. Go to Conditional Access > Policies and create a new policy.

  2. Under Users, include the group created in Step 3. Exclude your emergency access accounts.

    Note

    If the policy does not include a group, it does not apply to any user.

  3. Under Target resources, select Authentication context and the context created in Step 5.

  4. Under Grant, select Require authentication strength and the authentication strength created in Step 4.

  5. Set the policy to Report-only to check its effect, and then to On.

Step 7. Configure the integration in GravityZone

  1. In the Create integration window of the Microsoft Entra ID card, fill in the following fields:

    Company

    The company the integration applies to.

    Integration name

    A name for the integration.

    Application (client) ID

    The application ID copied in Step 2, in GUID format.

    Directory (tenant) ID

    The tenant ID copied in Step 2, in GUID format.

    Microsoft cloud

    The Microsoft cloud your tenant is hosted in: Global, US Government (GCC High) or China operated by 21Vianet. The default is Global, which most tenants use.

    Client secret

    The secret value copied in Step 2. Use the secret's value, not its ID.

    Authentication context ID

    The ID of the authentication context from Step 5, from c1 to c99.

  2. Click Save.

    The integration appears in the Configured section of the Integrations hub page, with the Active status.

If a value has the wrong format, an error message appears under the field, and you cannot save the integration until you correct it.

Step 8. Enable identity confirmation in the policy

  1. Go to the Policies page and open the policy you want to edit.

  2. Select Risk Management > PHASR.

  3. For the activity types you want, select Allow users to request access, and then Identity confirmation.

    The Identity confirmation check box is available only after you select Allow users to request access for that activity type.

  4. Click Save.

Managing the integration

The integration card in the Configured section shows the integration status and, under Details, the integration name and the company. To remove the integration, click Delete on the card.

Creating the integration is recorded on the User activity page, in the Integrations hub area.

Troubleshooting

Users can no longer confirm their identity

The client secret may have expired. Create a new secret in Microsoft Entra ID. The configured integration card has no edit option, so delete the integration and configure it again with the new secret value.

Identity confirmation fails with a security error

Check that the application manifest includes the onprem_sid, auth_time and amr claims, and that the Conditional Access policy targets the authentication context ID set in the integration.

The policy does not prompt users for multi-factor authentication

Check that the Conditional Access policy includes the group of eligible users and is set to On.