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:
- Open a case with Microsoft via the Security Portal (security.microsoft.com)
- Supply the following info:
- Probing Questions:
- What specific EPM Agent version is installed?
- What specific directories or paths do you want to exclude?
- %ProgramFiles%\CyberArk\Endpoint Privilege Manager\Agent\
- Any specific performance metrics?
- Supply a procmon capture that shows MSSense "touching" files within the EPM directory supplied above
- Have you already tested any temporary exclusions, and if so, what were the results?
- Since its not possible to exclude EDR without it being enabled…no. AV Exclusions are not in-scope for this
- Is MSSense.exe running on all affected endpoints, and what is its current configuration?
- Microsoft Info
- Org ID:
- Settings -> System Settings -> Microsoft Defender XDR -> General -> Account
- Tenant ID:
- Settings -> System Settings -> Microsoft Defender XDR -> General -> Account
- License Details
- Settings -> Endpoints -> Licenses
- Device ID for 1 specific device
- Not sure why they need this since they're enabling the feature flag vs. adding the exclusion for you
- Assets -> Devices -> {Insert hostname here} -> Device ID
- Statement to request feature for your tenant
- "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
- Once EDR Exclusions is added to your tenant add the EDR Exclusion policy
- A decision point will be to determine if you want to use a groupID or deploy to the entire organization
- Entire organization is exactly as it sounds - any endpoint that is enrolled in Intune and Defender for Endpoint will show up
- GroupID allows you to be a little more granular
- The underlying mechanism here is a registry entry that gets added to the machine and can be deployed via Intune
- As of the time of this writing, Intune baselines nor policies contain EDR exclusions
- For manual testing perform the following
- Create groupID in MS Defender Security Console
- The end of the wizard will supply a PowerShell script to create the registry entry
- New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection' -Name 'GroupIds' -PropertyType String -Value 'Exclusions={Insert groupID here} -Force
- Take that registry entry and as an admin, add to the machine
- After adding it, restart the Sense service
- Sc stop Sense
- Sc start Sense
- Reboot the machine
- 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
- Troubleshooting
- If the registry add is not functioning properly do the following;
- Run these 3 powershell commands to remove the existing groupID, re-add it, and verify its there
- Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection' -Name 'GroupIds' -ErrorAction SilentlyContinue
- New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection' -Name 'GroupIds' -PropertyType String -Value 'Exclusions={Insert groupID here} -Force
- Get-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection' -Name 'GroupIds'
- After adding it, restart the Sense service
- Sc stop Sense
- Sc start Sense
- Reboot the machine
- 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