May the Intune Suite be with You!

Last Updated on April 23, 2024 by rudyooms

This blog is going to show you something you need to be aware of when you are going to purchase the Intune Suite and you are using the DUO Cisco desktop app. When activating the Intune Suite license, you could get yourself into some trouble when you don’t know what is happening on the service side and your devices!

I will divide this blog into multiple parts

  1. Introduction
  2. Trusted Endpoint
  3. EntDMID
  4. Intune Suite
  5. The Fix

1. Introduction

I noticed a question popping up in the MM CCP Channel some time ago. The OP was asking the question of why the Autopilot Diagnostics Established Correlations registry key was mentioning the wrong EntDMID. The EntDMID is your unique device ID. This Device ID in the Autopilot Diagnostics registry location should correspond to the Intune Device ID.

Afbeelding met tekst, schermopname, Lettertype, nummer

Automatisch gegenereerde beschrijving

The Op mentioned that this EntDMID didn’t match the Intune Device ID, which shouldn’t be a problem in a regular situation, even when it’s a bit weird.

But if you are using Cisco DUO, you are up for a challenge. Let me tell you why! Once the DUO Desktop App is installed on your device, it will use the device its unique machine identifier to correspond with the service.

This unique machine identifier is in fact the EntDMID. Cisco DUO expects this EntdMID to be present at the \Provisioning\Diagnostics\Autopilot\EstablishedCorrelations

If this registry key contains the wrong EntDMID, the DUO Desktop app will report an invalid Intune Device ID. Which is still nothing to worry about, right?

2. Trusted Endpoint

Well, let me first show you this picture to clarify what mess we could get into when the wrong EntDMID is being used.

As shown above, Duo’s Trusted Endpoints feature enhances the security of your sensitive applications by allowing access to Duo-protected services only from recognized and trusted devices. Guess what happens when the device passes the wrong EntDMID

The device will end up NOT being trusted anymore, or you could get a lot of unexpected MFA prompts! If this happens on all of your devices, that could be a big shitstorm, right? Allow me to elaborate on how the EntdMID in the Diagnostics key is typically configured during the enrollment process with Autopilot.

3. EntDMID

If you are using Windows Autopilot to enroll your devices, as shown below, a lot will happen in the background without you probably noticing it

One of the many registry keys that will be configured once the device is enrolled is Autopilot Diagnostics. One of those registry keys contains the Autopilot Correlation Data.

This correlation vector references events and the generated logs for diagnostic purposes.

This diagnostic data will be logged and stored by a particular function in the windows.management.service.dll

If the device is getting enrolled, it will also log the EntdMID that is used during the Autopilot enrollment itself in the same registry location

We will spot the same behavior when we use Procmon to track it. As shown below, during the Autopilot enrollment, the EntdMID will be logged in the corresponding diagnostics registry key.

If we take a look at the registry key, we will indeed spot the EntDMID

If we take a look at the Intune Enrollment registry key, we will notice that the EntDMID indeed matches the one in the Autopilot Diagnostics key

That’s weird, right? It matches the Intune device ID, so what happened on the devices from the OP?

4. Intune Suite

After an offline conversation with the OP, it became very clear when it started happening. The OP mentioned that he activated the Intune Suite license yesterday but didn’t configure any policy whatsoever.

Again… when we activate that license, some magic is happening in the background at Microsoft. When we activate the Intune Suite license, we also get licensed for EPM. When we are getting licensed to use EPM, the tenant will be onboarded to the Microsoft Managed Platform

The moment our tenant is onboarded to MMP-C, a push command to initiate the “linked enrollment” will be automatically sent to all of your devices.

The whole flow and story can be read in this blog

MMP-C | Microsoft Management Platform Cloud (call4cloud.nl)

The bottom line is that our device will get a linked/dual enrollment automatically.

This new enrollment will talk with Microsoft’s MMP-C service to retrieve the EPM Policies. Just like the Intune enrollment, the MMP-C enrollment will also use the EntDMID to verify the device.

Afbeelding met tekst, schermopname, Lettertype, nummer

Automatisch gegenereerde beschrijving

All good, right? Except for one little thing: the same function kicks in to log the EntDMID key when the new enrollment kicks in.

If we refresh the Autopilot Established correlations registry key, we will notice some weird behavior

As shown above, Autopilot Diagnostics no longer mentions the Intune Device ID, but the MMP-C Device ID. The moment the MMP-C enrollment kicked in; our device became untrusted by DUO! When our device became untrusted by DUO, all services that required a trusted endpoint broke down.

5. Fix

Now we know what will change when you “only” activate the Intune Suite license, we also need to take a look at how we could fix this.

As shown above, DUO is mentioning the fix on its website! Isn’t that easy? We could just configure the alternate enrollment location where DUO needs to find the proper device ID. With this fix, DUO will start looking at the proper Intune device ID and become a trustworthy endpoint again.

Conclusion

Sometimes, activating a license can have a big impact on your organization even without you knowing it. This time, the Intune Suite automatically triggered the linked enrollment to MMP-C for all devices!

Almost if Microsoft is preparing for something….

Leave a Reply

Your email address will not be published. Required fields are marked *

  +  86  =  91