Set up the Microsoft Defender for Endpoint on macOS policies in Jamf Pro

Applies to:

This page will guide you through the steps you need to take to set up macOS policies in Jamf Pro.

You'll need to take the following steps:

  1. Get the Microsoft Defender for Endpoint onboarding package
  2. Create a configuration profile in Jamf Pro using the onboarding package
  3. Configure Microsoft Defender for Endpoint settings
  4. Configure Microsoft Defender for Endpoint notification settings
  5. Configure Microsoft AutoUpdate (MAU)
  6. Grant full disk access to Microsoft Defender for Endpoint
  7. Approve Kernel extension for Microsoft Defender for Endpoint
  8. Approve System extensions for Microsoft Defender for Endpoint
  9. Configure Network Extension
  10. Schedule scans with Microsoft Defender for Endpoint on macOS
  11. Deploy Microsoft Defender for Endpoint on macOS

Step 1: Get the Microsoft Defender for Endpoint onboarding package

  1. In Microsoft 365 Defender, navigate to Settings > Endpoints > Onboarding.

  2. Select macOS as the operating system and Mobile Device Management / Microsoft Intune as the deployment method.

    The Settings page of the Microsoft Defender Security Center

  3. Select Download onboarding package (WindowsDefenderATPOnboardingPackage.zip).

  4. Extract WindowsDefenderATPOnboardingPackage.zip.

  5. Copy the file to your preferred location. For example, C:\Users\JaneDoe_or_JohnDoe.contoso\Downloads\WindowsDefenderATPOnboardingPackage_macOS_MDM_contoso\jamf\WindowsDefenderATPOnboarding.plist.

Step 2: Create a configuration profile in Jamf Pro using the onboarding package

  1. Locate the file WindowsDefenderATPOnboarding.plist from the previous section.

    The  Windows Defender ATP Onboarding file

  2. Sign in to Jamf Pro, navigate to Computers > Configuration Profiles, and select New.

    The page on which you create a new Jamf Pro dashboard

  3. Enter the following details:

    General:

    • Name: MDE onboarding for macOS
    • Description: MDE EDR onboarding for macOS
    • Category: None
    • Distribution Method: Install Automatically
    • Level: Computer Level
  4. Navigate to the Application & Custom Settings page and select Upload > Add.

The configurate app and custom settings

  1. Select Upload File (PLIST file) then in Preference Domain enter: com.microsoft.wdav.atp.

    The jamfpro plist upload file

    The upload file property List file

  2. Select Open and select the onboarding file.

    The onboarding file

  3. Select Upload.

    The uploading plist file

  4. Select the Scope tab.

    The Scope tab

  5. Select the target computers.

    The target computers

    The targets

  6. Select Save.

The deployment of target computers

The selection of target computers

  1. Select Done.

    The computers of a target group

    The list of configuration profiles

Step 3: Configure Microsoft Defender for Endpoint settings

You can either use JAMF Pro GUI to edit individual settings of the Microsoft Defender for Endpoint configuration, or use the legacy method by creating a configuration Plist in a text editor, and uploading it to JAMF Pro.

Note that you must use exact com.microsoft.wdav as the Preference Domain, Microsoft Defender for Endpoint uses only this name and com.microsoft.wdav.ext to load its managed settings!

(The com.microsoft.wdav.ext version may be used in rare cases when you prefer to use GUI method, but also need to configure a setting that has not been added to the schema yet.)

GUI method

  1. Download schema.json file from Defender's GitHub repository and save it to a local file:

    curl -o ~/Documents/schema.json https://raw.githubusercontent.com/microsoft/mdatp-xplat/master/macos/schema/schema.json
    
  2. Create a new Configuration Profile under Computers -> Configuration Profiles, enter the following details on the General tab:

    A new profile

    • Name: MDATP MDAV configuration settings
    • Description:<blank>
    • Category: None (default)
    • Level: Computer Level (default)
    • Distribution Method: Install Automatically (default)
  3. Scroll down to the Application & Custom Settings tab, select External Applications, click Add and use Custom Schema as Source to use for the preference domain.

    Add custom schema

  4. Enter com.microsoft.wdav as the Preference Domain, click on Add Schema and Upload the schema.json file downloaded on Step 1. Click Save.

    Upload schema

  5. You can see all supported Microsoft Defender for Endpoint configuration settings below, under Preference Domain Properties. Click Add/Remove properties to select the settings that you want to be managed, and click Ok to save your changes. (Settings left unselected will not be included into the managed configuration, an end user will be able to configure those settings on their machines.)

    The chosen managed settings

  6. Change values of the settings to desired values. You can click More information to get documentation for a particular setting. (You may click Plist preview to inspect what the configuration plist will look like. Click Form editor to return to the visual editor.)

    The page on which you change the settings values

  7. Select the Scope tab.

    The Configuration profile scope

  8. Select Contoso's Machine Group.

  9. Select Add, then select Save.

    The page on which you can add the Configuration settings

    The page on which you can save the Configuration settings

  10. Select Done. You'll see the new Configuration profile.

    The page on which you complete the Configuration settings

Microsoft Defender for Endpoint adds new settings over time. These new settings will be added to the schema, and a new version will be published to Github. All you need to do to have updates is to download an updated schema, edit existing configuration profile, and Edit schema at the Application & Custom Settings tab.

Legacy method

  1. Use the following Microsoft Defender for Endpoint configuration settings:

    • enableRealTimeProtection
    • passiveMode

    Note

    Not turned on by default, if you are planning to run a third-party AV for macOS, set it to true.

    • exclusions
    • excludedPath
    • excludedFileExtension
    • excludedFileName
    • exclusionsMergePolicy
    • allowedThreats

    Note

    EICAR is on the sample, if you are going through a proof-of-concept, remove it especially if you are testing EICAR.

    • disallowedThreatActions
    • potentially_unwanted_application
    • archive_bomb
    • cloudService
    • automaticSampleSubmission
    • tags
    • hideStatusMenuIcon

    For information, see Property list for JAMF full configuration profile.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>antivirusEngine</key>
        <dict>
            <key>enableRealTimeProtection</key>
            <true/>
            <key>passiveMode</key>
            <false/>
            <key>exclusions</key>
            <array>
                <dict>
                    <key>$type</key>
                    <string>excludedPath</string>
                    <key>isDirectory</key>
                    <false/>
                    <key>path</key>
                    <string>/var/log/system.log</string>
                </dict>
                <dict>
                    <key>$type</key>
                    <string>excludedPath</string>
                    <key>isDirectory</key>
                    <true/>
                    <key>path</key>
                    <string>/home</string>
                </dict>
                <dict>
                    <key>$type</key>
                    <string>excludedFileExtension</string>
                    <key>extension</key>
                    <string>pdf</string>
                </dict>
                <dict>
                    <key>$type</key>
                    <string>excludedFileName</string>
                    <key>name</key>
                    <string>cat</string>
                </dict>
            </array>
            <key>exclusionsMergePolicy</key>
            <string>merge</string>
            <key>allowedThreats</key>
            <array>
                <string>EICAR-Test-File (not a virus)</string>
            </array>
            <key>disallowedThreatActions</key>
            <array>
                <string>allow</string>
                <string>restore</string>
            </array>
            <key>threatTypeSettings</key>
            <array>
                <dict>
                    <key>key</key>
                    <string>potentially_unwanted_application</string>
                    <key>value</key>
                    <string>block</string>
                </dict>
                <dict>
                    <key>key</key>
                    <string>archive_bomb</string>
                    <key>value</key>
                    <string>audit</string>
                </dict>
            </array>
            <key>threatTypeSettingsMergePolicy</key>
            <string>merge</string>
        </dict>
        <key>cloudService</key>
        <dict>
            <key>enabled</key>
            <true/>
            <key>diagnosticLevel</key>
            <string>optional</string>
            <key>automaticSampleSubmission</key>
            <true/>
        </dict>
        <key>edr</key>
        <dict>
            <key>tags</key>
            <array>
                <dict>
                    <key>key</key>
                    <string>GROUP</string>
                    <key>value</key>
                    <string>ExampleTag</string>
                </dict>
            </array>
        </dict>
        <key>userInterface</key>
        <dict>
            <key>hideStatusMenuIcon</key>
            <false/>
        </dict>
    </dict>
    </plist>
    
  2. Save the file as MDATP_MDAV_configuration_settings.plist.

  3. In the Jamf Pro dashboard, open Computers, and their Configuration Profiles. Click New and switch to the General tab.

    The page displaying a new profile

  4. Enter the following details:

    General

    • Name: MDATP MDAV configuration settings
    • Description:<blank>
    • Category: None (default)
    • Distribution Method: Install Automatically(default)
    • Level: Computer Level(default)

    The MDATP MDAV configuration settings

  5. In Application & Custom Settings select Configure.

    The application and custom settings

  6. Select Upload File (PLIST file).

    The configuration settings plist file

  7. In Preferences Domain, enter com.microsoft.wdav, then select Upload PLIST File.

    The configuration settings preferences domain

  8. Select Choose File.

    The prompt to choose the plist file

  9. Select the MDATP_MDAV_configuration_settings.plist, then select Open.

    The mdatpmdav configuration settings

  10. Select Upload.

    The configuration setting upload

    The prompt to upload the image related to the configuration settings

    Note

    If you happen to upload the Intune file, you'll get the following error:

    The prompt to upload the intune file related to the configuration settings

  11. Select Save.

    The option to save the image related to the configuration settings

  12. The file is uploaded.

    The uploaded file related to the configuration settings

    The configuration settings page

  13. Select the Scope tab.

    The scope for the configuration settings

  14. Select Contoso's Machine Group.

  15. Select Add, then select Save.

    The configuration settings addsav

    The notification of configuration settings

  16. Select Done. You'll see the new Configuration profile.

    Image of configuration settings config profile image. The config profile's settings

Step 4: Configure notifications settings

These steps are applicable of macOS 10.15 (Catalina) or newer.

  1. In the Jamf Pro dashboard, select Computers, then Configuration Profiles.

  2. Click New, and enter the following details for Options:

    • Tab General:

      • Name: MDATP MDAV Notification settings
      • Description: macOS 10.15 (Catalina) or newer
      • Category: None (default)
      • Distribution Method: Install Automatically (default)
      • Level: Computer Level (default)

      The new macOS configuration profile page

    • Tab Notifications, click Add, and enter the following values:

      • Bundle ID: com.microsoft.wdav.tray
      • Critical Alerts: Click Disable
      • Notifications: Click Enable
      • Banner alert type: Select Include and Temporary (default)
      • Notifications on lock screen: Click Hide
      • Notifications in Notification Center: Click Display
      • Badge app icon: Click Display

      The configuration settings mdatpmdav notifications tray

    • Tab Notifications, click Add one more time, scroll down to New Notifications Settings

      • Bundle ID: com.microsoft.autoupdate.fba
      • Configure the rest of the settings to the same values as above

      The configuration settings mdatpmdav notifications mau

      Note that now you have two 'tables' with notification configurations, one for Bundle ID: com.microsoft.wdav.tray, and another for Bundle ID: com.microsoft.autoupdate.fba. While you can configure alert settings per your requirements, Bundle IDs must be exactly the same as described before, and Include switch must be On for Notifications.

  3. Select the Scope tab, then select Add.

    The page on which you can add values for the configuration settings

  4. Select Contoso's Machine Group.

  5. Select Add, then select Save.

    The page on which you can save values for the configuration settings contoso machine group

    The page that displays the completion notification of the configuration settings

  6. Select Done. You'll see the new Configuration profile.

    The completed configuration settings

Step 5: Configure Microsoft AutoUpdate (MAU)

  1. Use the following Microsoft Defender for Endpoint configuration settings:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>ChannelName</key>
    <string>Current</string>
    <key>HowToCheck</key>
    <string>AutomaticDownload</string>
    <key>EnableCheckForUpdatesButton</key>
    <true/>
    <key>DisableInsiderCheckbox</key>
    <false/>
    <key>SendAllTelemetryEnabled</key>
    <true/>
    </dict>
    </plist>
    
  2. Save it as MDATP_MDAV_MAU_settings.plist.

  3. In the Jamf Pro dashboard, select General.

    The configuration settings

  4. Enter the following details:

    General

    • Name: MDATP MDAV MAU settings
    • Description: Microsoft AutoUpdate settings for MDATP for macOS
    • Category: None (default)
    • Distribution Method: Install Automatically(default)
    • Level: Computer Level(default)
  5. In Application & Custom Settings select Configure.

    The configuration setting application and custom settings

  6. Select Upload File (PLIST file).

  7. In Preference Domain enter: com.microsoft.autoupdate2, then select Upload PLIST File.

    The configuration setting preference domain

  8. Select Choose File.

    The prompt to choose the file regarding configuration setting

  9. Select MDATP_MDAV_MAU_settings.plist.

    The mdatpmdavmau settings

  10. Select Upload. The upload of the file regarding configuration setting

    The page displaying the upload option for the file regarding configuration setting

  11. Select Save.

    The page displaying the save option for the file regarding configuration setting

  12. Select the Scope tab.

    The Scope tab for the configuration settings

  13. Select Add.

    The option to add deployment targets

    The page on which you add more values to the configuration settings

    The page on which you can add more values to the configuration settings

  14. Select Done.

    The completion notification regarding the configuration settings

Step 6: Grant full disk access to Microsoft Defender for Endpoint

  1. In the Jamf Pro dashboard, select Configuration Profiles.

    The profile for which settings are to be configured

  2. Select + New.

  3. Enter the following details:

    General

    • Name: MDATP MDAV - grant Full Disk Access to EDR and AV
    • Description: On macOS Catalina or newer, the new Privacy Preferences Policy Control
    • Category: None
    • Distribution method: Install Automatically
    • Level: Computer level

    The configuration setting in general

  4. In Configure Privacy Preferences Policy Control select Configure.

    The configuration privacy policy control

  5. In Privacy Preferences Policy Control, enter the following details:

    • Identifier: com.microsoft.wdav
    • Identifier Type: Bundle ID
    • Code Requirement: identifier "com.microsoft.wdav" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = UBF8T346G9

    The configuration setting privacy preference policy control details

  6. Select + Add.

    The configuration setting add system policy all files option

    • Under App or service: Set to SystemPolicyAllFiles

    • Under "access": Set to Allow

  7. Select Save (not the one at the bottom right).

    The save operation for the configuration setting

  8. Click the + sign next to App Access to add a new entry.

    The save operation relating to the configuration setting

  9. Enter the following details:

    • Identifier: com.microsoft.wdav.epsext
    • Identifier Type: Bundle ID
    • Code Requirement: identifier "com.microsoft.wdav.epsext" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = UBF8T346G9
  10. Select + Add.

    The configuration setting tcc epsext entry

    • Under App or service: Set to SystemPolicyAllFiles

    • Under "access": Set to Allow

  11. Select Save (not the one at the bottom right).

    The other instance of configuration setting tcc epsext

  12. Select the Scope tab.

    The page depicting the scope for the configuration setting

  13. Select + Add.

    The page depicting the configuration setting

  14. Select Computer Groups > under Group Name > select Contoso's MachineGroup.

    The configuration setting contoso machine group

  15. Select Add.

  16. Select Save.

  17. Select Done.

    The configuration setting contoso machine-group

    The configuration setting illustration

Alternatively, you can download fulldisk.mobileconfig and upload it to JAMF Configuration Profiles as described in Deploying Custom Configuration Profiles using Jamf Pro|Method 2: Upload a Configuration Profile to Jamf Pro.

Step 7: Approve Kernel extension for Microsoft Defender for Endpoint

Caution

Apple Silicon (M1) devices do not support KEXT. Installation of a configuration profile consisting KEXT policies will fail on these devices.

  1. In the Configuration Profiles, select + New.

    The social media post Description automatically generated

  2. Enter the following details:

    General

    • Name: MDATP MDAV Kernel Extension
    • Description: MDATP kernel extension (kext)
    • Category: None
    • Distribution Method: Install Automatically
    • Level: Computer Level

    The configuration settings mdatpmdav kernel

  3. In Configure Approved Kernel Extensions select Configure.

    The page displaying the configuration settings approved kernel extensions

  4. In Approved Kernel Extensions Enter the following details:

    • Display Name: Microsoft Corp.
    • Team ID: UBF8T346G9

    The Approved Kernel Extensions pane

  5. Select the Scope tab.

    The Scope tab for the configuration

  6. Select + Add.

  7. Select Computer Groups > under Group Name > select Contoso's Machine Group.

  8. Select + Add.

    The page on which you define additional values for the configuration settings

  9. Select Save.

    The MDATP MDAV Kernel extension

  10. Select Done.

    The Configuration Profiles details page

Alternatively, you can download kext.mobileconfig and upload it to JAMF Configuration Profiles as described in Deploying Custom Configuration Profiles using Jamf Pro|Method 2: Upload a Configuration Profile to Jamf Pro.

Step 8: Approve System extensions for Microsoft Defender for Endpoint

  1. In the Configuration Profiles, select + New.

    The automatically generated social media post's description

  2. Enter the following details:

    General

    • Name: MDATP MDAV System Extensions
    • Description: MDATP system extensions
    • Category: None
    • Distribution Method: Install Automatically
    • Level: Computer Level

    The configuration settings sysext new profile

  3. In System Extensions select Configure.

    The pane with the Configure option for the system extensions

  4. In System Extensions enter the following details:

    • Display Name: Microsoft Corp. System Extensions
    • System Extension Types: Allowed System Extensions
    • Team Identifier: UBF8T346G9
    • Allowed System Extensions:
      • com.microsoft.wdav.epsext
      • com.microsoft.wdav.netext

    The MDATP MDAV system extensions pane

  5. Select the Scope tab.

    The Target Computers selection pane

  6. Select + Add.

  7. Select Computer Groups > under Group Name > select Contoso's Machine Group.

  8. Select + Add.

    The New macOS Configuration Profile pane

  9. Select Save.

    The display of options regarding MDATP MDAV System Extensions

  10. Select Done.

    The configuration settings sysext - final

Step 9: Configure Network Extension

As part of the Endpoint Detection and Response capabilities, Microsoft Defender for Endpoint on macOS inspects socket traffic and reports this information to the Microsoft 365 Defender portal. The following policy allows the network extension to perform this functionality.

These steps are applicable of macOS 10.15 (Catalina) or newer.

  1. In the Jamf Pro dashboard, select Computers, then Configuration Profiles.

  2. Click New, and enter the following details for Options:

    • Tab General:

      • Name: Microsoft Defender Network Extension
      • Description: macOS 10.15 (Catalina) or newer
      • Category: None (default)
      • Distribution Method: Install Automatically (default)
      • Level: Computer Level (default)
    • Tab Content Filter:

      • Filter Name: Microsoft Defender Content Filter
      • Identifier: com.microsoft.wdav
      • Leave Service Address, Organization, User Name, Password, Certificate blank (Include is not selected)
      • Filter Order: Inspector
      • Socket Filter: com.microsoft.wdav.netext
      • Socket Filter Designated Requirement: identifier "com.microsoft.wdav.netext" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = UBF8T346G9
      • Leave Network Filter fields blank (Include is not selected)

      Note that Identifier, Socket Filter and Socket Filter Designated Requirement exact values as specified above.

      The mdatpmdav configuration setting

  3. Select the Scope tab.

    The configuration settings sco tab

  4. Select + Add.

  5. Select Computer Groups > under Group Name > select Contoso's Machine Group.

  6. Select + Add.

    The configuration settings adim

  7. Select Save.

    The Content Filter pane

  8. Select Done.

    The configuration settings netext - final

Alternatively, you can download netfilter.mobileconfig and upload it to JAMF Configuration Profiles as described in Deploying Custom Configuration Profiles using Jamf Pro|Method 2: Upload a Configuration Profile to Jamf Pro.

Step 10: Schedule scans with Microsoft Defender for Endpoint on macOS

Follow the instructions on Schedule scans with Microsoft Defender for Endpoint on macOS.

Step 11: Deploy Microsoft Defender for Endpoint on macOS

  1. Navigate to where you saved wdav.pkg.

    The file explorer wdav package

  2. Rename it to wdav_MDM_Contoso_200329.pkg.

    The file explorer1 wdavmdm package

  3. Open the Jamf Pro dashboard.

    The configuration settings for jamfpro

  4. Select your computer and click the gear icon at the top, then select Computer Management.

    The configuration settings - computer management

  5. In Packages, select + New. The bird Description for an automatically generated package

  6. In New Package Enter the following details:

    General tab

    • Display Name: Leave it blank for now. Because it will be reset when you choose your pkg.
    • Category: None (default)
    • Filename: Choose File

    The General tab for configuration settings

    Open the file and point it to wdav.pkg or wdav_MDM_Contoso_200329.pkg.

    The computer screen displaying the description for an automatically generated package

  7. Select Open. Set the Display Name to Microsoft Defender Advanced Threat Protection and Microsoft Defender Antivirus.

    Manifest File is not required. Microsoft Defender for Endpoint works without Manifest File.

    Options tab: Keep default values.

    Limitations tab: Keep default values.

    The limitation tab for the configuration settings

  8. Select Save. The package is uploaded to Jamf Pro.

    The configuration settings pack uploading process for the package related to the configuration settings

    It can take a few minutes for the package to be available for deployment.

    An instance of uploading the package for configuration settings

  9. Navigate to the Policies page.

    The configuration settings policies

  10. Select + New to create a new policy.

    The configuration settings new policy

  11. In General Enter the following details:

    • Display name: MDATP Onboarding Contoso 200329 v100.86.92 or later

      The configuration settings - MDATP onboard

  12. Select Recurring Check-in.

    The recurring check-in for the configuration settings

  13. Select Save.

  14. Select Packages > Configure.

    The option to configure packages

  15. Select the Add button next to Microsoft Defender Advanced Threat Protection and Microsoft Defender Antivirus.

    The option to add more settings to MDATP MDA

  16. Select Save.

    The save option for the configuration settings

  17. Select the Scope tab.

    The Scope tab related to the configuration settings

  18. Select the target computers.

    The option to add computer groups

    Scope

    Select Add.

    The configuration settings - ad1

    The configuration settings - ad2

    Self-Service

    The Self Service tab for configuration settings

  19. Select Done.

    The Contoso onboarding status with an option to complete it

    The policies page