How to Configure Microsoft Defender's EDR - MSSense.exe to exclude Idira EPM

How to Configure Microsoft Defender's EDR - MSSense.exe to exclude Idira EPM

171
Created On 11/12/26 15:36 PM - Last Modified 11/12/26 17:06 PM


Objective


Pre-Requisites:
1. Access to Microsoft's EDR console (security.microsoft.com)

NOTE: Will likely involve opening a case to enable the functionality

2. Access to Idira EPM Console



Environment


EPM EPM Console;EPM Agent

Procedure


Steps needed:

  1. Open a case with Microsoft via the Security Portal (security.microsoft.com)
    1. Supply the following info:
      1. Probing Questions:
        1. What specific EPM Agent version is installed?
        2. What specific directories or paths do you want to exclude?
          1. %ProgramFiles%\CyberArk\Endpoint Privilege Manager\Agent\
        3. Any specific performance metrics?
          1. Supply a procmon capture that shows MSSense "touching" files within the EPM directory supplied above
        4. Have you already tested any temporary exclusions, and if so, what were the results?
          1. Since its not possible to exclude EDR without it being enabled…no.  AV Exclusions are not in-scope for this
        5. Is MSSense.exe running on all affected endpoints, and what is its current configuration?
      2. Microsoft Info
        1. Org ID:
          1. Settings -> System Settings -> Microsoft Defender XDR -> General -> Account
          2. Microsoft Defender Search Settings > Microsoft Defender XDR Threat intelligence V Microsoft Defender XDR Assets V Microsoft Sentinel V Endpoints V General Account Account Email & collaboration V Session details Data Retention 0 Cloud apps V Email notifications The service will store your data at rest in US. Read about data storage and privacy. SOC optimization Preview features Tenant ID Reports Alert service settings -85 Learning hub Permissions and roles Org ID Trials Streaming API 6-0 More resources Rules
        2. Tenant ID:
          1. Settings -> System Settings -> Microsoft Defender XDR -> General -> Account
          2. Microsoft Defender Search Settings > Microsoft Defender XDR Threat intelligence V Microsoft Defender XDR Assets V Microsoft Sentinel V Endpoints V General Account Account Email & collaboration V Session details Data Retention 0 Cloud apps V Email notifications The service will store your data at rest in US. Read about data storage and privacy. SOC optimization Preview features Tenant ID Reports Alert service settings Learning hub Permissions and roles Org ID Trials Streaming API More resources Rules
        3. License Details
          1. Settings -> Endpoints -> Licenses
          2. Microsoft Defender O Search Settings > Endpoints Threat intelligence V Endpoints Assets V Microsoft Sentinel Endpoints V General Licenses Advanced features Email & collaboration V Licenses Track and manage the availability and usage of your organization's client licenses. Learn more about Microsoft Defender for Endpoint plans 0 Cloud apps Email notifications Subscription state SOC optimization Auto remediation Microsoft Defender for Business Reports Rules These plan features and capabilities are applied to all your devices. Per Learning hub Alert suppression Usage Trials EDR Exclusions Total number of licenses 1 More resources Indicators Custom Data Collection System Available licenses Isolation exclusion rules Name Audit Web content filtering Microsoft Defender for Business 1 Data management V Asset rule management View subscription details in Admin Center Permissions Health Configuration management Settings Enforcement scope
        4. Device ID for 1 specific device
          1. Not sure why they need this since they're enabling the feature flag vs. adding the exclusion for you
          2. Assets -> Devices -> {Insert hostname here} -> Device ID
            1. Microsoft Defender Device Inventory > win11-jefflab-aad Home win11-jefflab-aad Exposure management No known risks Criticality: None . Act Investigation & response Overview Incidents and alerts Security recommend Threat intelligence Subtype Discovery sources Workstation EG Assets 1 Primary user Domain Devices AAD joined Applications Os SAM name Windows 11 64-bit Microsoft Sentinel (Release 24H2 Build 26100.7171) Endpoints Health state IP addresses Active Private: Email & collaboration Public: See IP addresses info Cloud apps MAC address First seen Jun 25, 2025 3:17:38 PM 2. SOC optimization Last seen Onboarding status Reports Nov 19, 2025 7:23:00 AM Onboarded Learning hub Resources Asset group Trials More resources Device AAD id Device id 50cd System A $174c
      3. Statement to request feature for your tenant
        1. "Please add the EDR exclusion feature in my system as we need to assess performance differences with an exclusion for Idira EPM" via email with support rep
  2. Once EDR Exclusions is added to your tenant add the EDR Exclusion policy
    1. A decision point will be to determine if you want to use a groupID or deploy to the entire organization
    2. Entire organization is exactly as it sounds - any endpoint that is enrolled in Intune and Defender for Endpoint will show up
    3. GroupID allows you to be a little more granular
      1. The underlying mechanism here is a registry entry that gets added to the machine and can be deployed via Intune
        1. As of the time of this writing, Intune baselines nor policies contain EDR exclusions
      2. For manual testing perform the following
        1. Create groupID in MS Defender Security Console
        2. The end of the wizard will supply a PowerShell script to create the registry entry
          1. New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection' -Name 'GroupIds' -PropertyType String -Value 'Exclusions={Insert groupID here} -Force
        3. Take that registry entry and as an admin, add to the machine
        4. After adding it, restart the Sense service
          1. Sc stop Sense
          2. Sc start Sense
        5. Reboot the machine
        6. After reboot, check in the security console to verify that the EDR Exclusions show a status of green, then check to see if your endpoint appears in the covered list
      3. Troubleshooting
        1. If the registry add is not functioning properly do the following;
          1. Run these 3 powershell commands to remove the existing groupID, re-add it, and verify its there
            1. Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection' -Name 'GroupIds' -ErrorAction SilentlyContinue
            1. New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection' -Name 'GroupIds' -PropertyType String -Value 'Exclusions={Insert groupID here} -Force
            2. Get-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection' -Name 'GroupIds'
          2. After adding it, restart the Sense service
            1. Sc stop Sense
            2. Sc start Sense
          3. Reboot the machine
          4. After reboot, check in the security console to verify that the EDR Exclusions show a status of green, then check to see if your endpoint appears in the covered list


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001kLlCAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail