Import Data from Microsoft Defender for Endpoint
Import Microsoft Defender for Endpoint findings into Mondoo alongside your own scan results.
The Microsoft Defender for Endpoint integration imports Defender vulnerability data into a Mondoo space, so you can prioritize and ticket it alongside Mondoo's own findings. You register an Azure app with access to Defender and add its credentials to the integration.
Before you begin
- Editor or Owner access to the Mondoo space, or another role with permission to add integrations. To see every role, read Roles and permissions.
- An Azure account with these services enabled:
- A Microsoft Defender for Endpoint license
- Permission to manage applications in Microsoft Entra ID. Any of these Entra roles qualify:
Check your roles in the Azure portal: Microsoft Entra ID > Users > (your account) > Assigned roles.
Step A: Register and grant permissions to an Azure app
Mondoo needs a Microsoft Entra ID app registration with read-only access to Defender data. To learn more, see App registration, app objects, and service principals in the Azure documentation.
Use the generated script instead
Step 2 of the Microsoft Defender add-integration form in Mondoo, Create an Azure app
registration, generates an Azure CLI, PowerShell, or Bicep script. The script creates the app
registration, grants admin consent, and creates a client secret, then prints the tenant ID, client
ID, and client secret to paste into the form. If you use it, skip to Step
C. The script also requests response permissions
(such as Machine.LiveResponse and Machine.Isolate) that the vulnerability import doesn't use.
To grant only the read permissions the import needs, follow the manual steps below.
-
Log into the Azure portal with one of the required roles.
-
Open Microsoft Entra ID > App registrations.

-
Select + New registration.

-
Name the app (for example,
mondoo-defender), select Accounts in this organizational directory only, and select Register. No redirect URI is needed.Azure creates the application and shows its ID.

-
In the left navigation, select API permissions.

-
Select + Add a permission > APIs my organization uses, search for
WindowsDefenderATP, and select it.
-
Select Application permissions, then expand all, and check the three permissions the vulnerability import reads:
Machine.Read.All(machines and device groups)Software.Read.All(installed software inventory)Vulnerability.Read.All(vulnerability findings)
-
Select Add permissions.
-
(Recommended) Select + Add a permission > Microsoft Graph > Application permissions and check these two read-only permissions, then select Add permissions. Mondoo's health checks for the integration read them. Without them, those checks show "could not evaluate," but the import still works.
Organization.Read.All(license seats and license expiry)DeviceManagementServiceConfig.Read.All(the Intune to Defender for Endpoint connector; skip it if your tenant doesn't use Intune)
-
In the permissions list, check the Status column. If you see warnings about consent, select Grant admin consent for [your directory name] above the table. If the option is disabled, ask a Global Administrator to grant consent.
Keep the app registration page open for the next step.
Step B: Set up authentication
Mondoo can authenticate with a client secret (easier) or a PEM certificate (required by some security policies).
Option 1: Client secret
-
In your app registration, select Certificates and secrets.

-
Select New client secret.

-
Name the secret (for example,
mondoo defender secret), choose an expiration, and select Add. Note the expiration; the integration stops working when the secret expires.
Copy the secret's Value immediately; it disappears after you leave the page.
Option 2: PEM certificate
The app registration and your Mondoo integration must share a PEM certificate with no password protection.
You need two PEM files:
-
For Azure: certificate only, no private key.
-
For Mondoo: certificate plus private key. Must have
.pemextension and use this format and order:-----BEGIN PRIVATE KEY----- key goes here -----END PRIVATE KEY----- -----BEGIN CERTIFICATE----- certificate goes here -----END CERTIFICATE-----
Generate a self-signed certificate for testing
For testing only, generate a certificate with OpenSSL. Run in a Linux shell, macOS shell, or Azure Cloud Shell:
openssl req -newkey rsa:4096 -x509 -sha512 -days 365 -nodes -out certificate.pem -keyout privatekey.keyCombine the key and certificate:
cat privatekey.key certificate.pem > certificate.combo.pemFor Windows, see this simple OpenSSL installer.
Upload the certificate (only) to Azure:
-
In your app registration, select Certificates and secrets > Certificates.
-
Select Upload certificate, choose the file with only the certificate, enter a description such as
Mondoo certificate, and select Add.
Step C: Add the Defender integration in Mondoo
You need these values from the Azure app registration:
- Application (client) ID (from the app registration's Overview page)
- Directory (tenant) ID (from the same page)
- Either the client secret value or the combined PEM file from Step B
In the Mondoo App, navigate to the space where you want to add the integration. Some integrations can also be added once at the organization level to cover every space with one connection. To see which ones, read Set up integrations once for your whole organization.
In the space's side navigation bar, select Integrations. In the top right, select INSTALL. On the Install Integration page, find the integration you want by browsing a category or searching by name:
-
Under Third-Party Data, select Microsoft Defender for Endpoint.

-
Under Choose an integration name (optional), enter a name for the integration. If you leave it blank, Mondoo names it after your tenant ID (for example,
msft-defender-1a2b3c4d).If you registered the app manually in Steps A and B, skip the form's Create an Azure app registration step.
-
Under Connection Details, paste the Directory (tenant) ID into Tenant ID and the Application (client) ID into Client ID (Application ID).

-
Under Authentication Method, select Enter a client secret or certificate, then choose how Mondoo authenticates:
- Client Secret. Select Client Secret and paste the secret value.
- Certificate (PEM). Select Certificate (PEM) and upload the combined PEM file (key + certificate).
If your space already holds a credential for this app registration, select Use an existing credential instead. To learn more, read Manage Integration Credentials.

-
(Optional) Leave Create new assets for unique detections enabled so Mondoo adds an asset to the space when Defender reports a device that isn't already there. Turn it off to import findings only for assets already in the space. To learn how Mondoo matches devices to assets, read How imported devices match your assets.
-
(Optional) Leave Enrich findings with Mondoo enabled so Mondoo runs its vulnerability database against the Defender data and findings include remediation guidance.
-
Select Create Integration.
Verify the integration
When you select Create Integration, Mondoo starts the first import. To check on it, open the integration's page as described in Manage this integration.
- Integration Details shows the Status. It's Not ready until the first import succeeds and Running while an import runs. Processing means the import finished and Mondoo is still adding its findings to your space. A large import can stay in Processing for a long time; the page shows Processing findings since and when processing began. When processing finishes, the status changes to Active.
- Import Details shows Last Successful Import and Last Attempted Import. If the last attempt is newer than the last success, the most recent import failed.
- Most Recent Activity lists the messages the import reported, newest first, including the results of Mondoo's health checks. Select Errors or Warnings to see only problems.

To learn what each status means, read Integration Status and Troubleshooting.
Troubleshoot
Integration needs attention
Mondoo runs health checks on Microsoft Defender for Endpoint integrations after every import and every day. When a check reports a problem, the integration page shows an Integration needs attention alert that names the failing checks, and the status changes to Error or Warning. Read the check's message and suggested fix in Most Recent Activity. The checks run again after the next import, so select RUN after you fix the cause. To learn more, read Integration needs attention.
A health check reports "could not evaluate"
Mondoo couldn't run the check, so it doesn't know whether the setting is right. The most common cause is a missing Microsoft Graph permission: the license and Intune connector checks read Organization.Read.All and DeviceManagementServiceConfig.Read.All, as described in step 9 of Step A. A check that couldn't be evaluated shows a message in Most Recent Activity, but it never changes the integration's status, and the import still works. To clear it, add the Graph permissions and grant admin consent.
The app registration is missing permissions
A health check reports that the app registration is missing WindowsDefenderATP permissions the import needs, or the import fails with Import job failed: check the integration's credentials and permissions.
In the Azure portal, open the app registration's API permissions, add the WindowsDefenderATP application permissions listed in Step A, and select Grant admin consent.
The tenant lacks a vulnerability management license
A health check reports that the Defender API refused the vulnerability listing the import reads, although the app registration holds every permission the import uses.
The app registration is set up correctly, but the tenant has no license that includes vulnerability data. Assign a Defender Vulnerability Management or Defender for Endpoint P2 license to the tenant.
Scans are paused
A red Scans are paused alert at the top of the integration page means the client secret or certificate expired or Entra ID rejected it. Create a new secret or certificate in the app registration, as in Step B, then rotate the credential.
Import job failed
For any other Import job failed: message in Most Recent Activity, read Import job failed.
Manage this integration
To open an existing integration, navigate to the space, select Integrations in the side navigation, choose the integration type, then select the integration.
The integration detail page shows the integration's status, configuration, import details, and recent activity. From there, you can:
- Trigger an immediate import. Select RUN. On an integration that also runs fleet scans, such as CrowdStrike Falcon, RUN starts fleet scans instead.
- Edit settings. Select the edit (pencil) icon.
- Remove the integration. Select the trash can icon and confirm.
Import integrations can't be paused. The ... menu with Pause and Resume appears only for integrations that Mondoo runs on its own infrastructure.
Rotate the credential
Replace the integration's secret (API token, client secret, or certificate) before it expires, or after someone revokes it in the other service. First create the new secret in the other service. How you give it to Mondoo depends on how Mondoo stored the old one. Integrations added by someone with permission to create and view credentials store the secret as a credential. Older integrations, and integrations added by someone without that permission, keep the secret on the integration.
-
If the integration uses a credential: The integration detail page shows a Credential section, and the edit form shows Managed by a credential in place of the secret. In the left navigation, select Settings, then Credentials. Find the credential, open the menu in its Status column, and select Rotate. Enter the new secret. Every integration that uses the credential switches to the new secret right away. To learn more, read Manage Integration Credentials.

-
If the integration stores its own secret: Select the edit (pencil) icon on the integration page and enter the new secret.
Next steps
Once the import is running, your Microsoft Defender findings appear in Mondoo alongside its own. Assess and improve your security to review and prioritize them.
Last updated on