Deploy Endpoint Security for macOS with Microsoft Intune Configurations

Applies To: WatchGuard Advanced EPDR, WatchGuard EPDR, WatchGuard EDR, WatchGuard EPP

The instructions in this topic were successfully used to deploy WatchGuard Endpoint Security with Intune profiles in our test lab. Your environment might have different requirements or limitations. If you encounter any issues, contact your Microsoft Intune Support representative for assistance.

Microsoft Intune is a cloud-based unified endpoint management service that simplifies app and device management across your devices. This topic describes the steps to create configuration policies for Mac devices in Microsoft Intune and then deploy the configuration to the WatchGuard Agent and protection software on your Mac devices. When you use Intune, you automate acceptance of the permissions required for the endpoint security software to work on the Mac device.

We recommend that you create the configuration in Intune first so that when the endpoint security protection is installed on your device, it already has the required permissions.

These permissions are required to create and deploy Endpoint Security for macOS with Intune configuration policies. You can create these policies and scripts to automate installation of WatchGuard Endpoint Security on your Mac devices:

After you create the policies and scripts, you must Deploy the InTune Configuration Policies.

Before You Begin

Before you create the configuration in Intune, we recommend that you create a group for all Mac devices in the Endpoint Security management UI, or for the Macs you want to assign the configuration to. When you install the WatchGuard Agent, the profiles only apply to the recipient Mac devices.

For maximum compatibility, we strongly recommend that you use Macs that run macOS Catalina 10.15 and higher. We also require that the Mac devices have the latest version of WatchGuard Endpoint Security installed.

Mac devices with macOS Mojave 10.14 and lower run WatchGuard Endpoint Security v2.x and lower. The steps for these devices are not included in this topic.

Create a Policy to Enable Full Disk Access

Full disk access on the Mac is required for the endpoint security protection service.

To enable full disk access, from the Intune Admin Center:

  1. From the left panel, select Devices.
  2. Select macOS.

Screen shot of Intune Admin Center, macOS devices

  1. Select Configuration.
  2. Click Create > New Policy.
    The Create a Profile page opens.
  3. From the Profile Type drop-down list, select Templates.

  1. For the Template Name list, select Device Restrictions.
  2. Click Create.

Screen shot of Intune Admin Center, Device Restrictions

  1. Enter a Name for the template (for example, type FDA). Click Next.
  2. In the Configuration Settings page, expand Privacy Preferences.

Screen shot of Intune Admin Center, Privacy Preferences

  1. Click Add.
  2. Specify the privacy preferences:
    • Name: com.protection.agent
    • Identifier Type: Bundle ID
    • Identifier: com.protection.agent
  3. In the Code Requirement box, enter this code:

identifier "com.protection.agent" 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] = D3U2N4A6J7

Screen shot of Intune Admin Center, Add Row

  1. From the Full Disk Access drop-down list, select Allow.

Screen shot of Intune Admin Center, Full Disk Access

  1. Click Save.
  2. Click Next.
  3. In the Assignments page, select the group of devices that you want to assign this profile to.
  4. Click Next.
  5. Review the profile for completeness. Click Previous if you want to return to a previous step.
  6. Click Create to create the policy.

Create a Policy to Enable the Login Item to Run in Background

The Login Item – Allow run in background permission is required for Mac devices with macOS Ventura 13.x and macOS Sonoma 14.x. You can also assign it to Mac devices with a higher OS (for example, Catalina, Big Sur, and Monterey).

To enable the login item to run in background, from the Intune Admin Center:

  1. From the left panel, select Devices.
  2. Select macOS.
  3. Select Configuration.
  4. Click Create > New Policy.
    The Create a Profile page opens.
  5. From the Profile Type drop-down list, select Settings Catalog.

Screen shot of Intune Admin Center, Create a Profile

  1. Click Create.
  2. Enter a Name for the profile (for example, type Run in Background).
  3. Click Next.
  4. In the Configuration Settings page, click Add Settings.
  5. Expand the Login section.

Screen shot of Intune Admin Center, Settings Picker

  1. Select Service Management – Managed Login Items.
  2. Select the Rules check box.

Screen shot of Intune Admin Center, Settings Rule

  1. In the left pane, click Add to add a new rule, or select the check box for an existing row.

Screen shot of Intune Admin Center, Add Rules

  1. Click Edit Instance.

Screen shot of Intune Admin Center, Configure Instance

  1. Add this information for the instance:

Comment: Run in background

Rule Type: bundle identifier

Rule Value: com.protection.agent.service

Team Identifier: D3U2N4A6J7

  1. Click Save.
  2. In the Assignments page, select the group of devices that you want to assign this profile to.
  3. Click Next.
  4. Review the profile for completeness. Click Previous if you want to return to a previous step.
  5. Click Create to create the profile.

Create a Policy to Allow System and Network Extensions

System extensions are required to capture file events. Network extensions are required to capture and filter network packets for web protection and content filtering. In the protection software v3.04 and higher, network extensions are also required for device isolation.

You can create a single profile to allow both system and network extensions on the Mac.

To configure allowed system and network extensions, from the Intune Admin Center:

  1. From the left panel, select Devices.
  2. Select macOS.
  3. Select Configuration.
  4. Click Create > New Policy.
    The Create a Profile page opens.
  5. From the Profile Type drop-down list, select Settings Catalog.
  6. Click Create.

Screen shot of Intune Admin Center, macOS Configuration

  1. Enter a Name for the profile (for example, type Allowed Extensions).
  2. Click Next.
  3. Click Add Settings.

Screen shot of Intune Admin Center, Create Profile

  1. In the Settings Picker, select System Configuration > System Extensions.
  2. In the Setting Name section, select the Allowed System Extensions check box.

Screen shot of Intune Admin Center, Settings Picker

  1. In the Allowed System Extensions section, click Edit Instance.
  2. Add two bundle identifiers with the D3U2N4A6J7 team identifier:
  • com.protection.agent
  • com.protection.agent.next

Screen shot of Intune Admin Center, System extensions

  1. Click Save. Click Next.
  2. In the Assignments page, select the group of devices that you want to assign this profile to.
  3. Click Next.
  4. Review the profile for completeness. Click Previous if you want to return to a previous step.
  5. Click Create to create the profile.

Complete Activation of the Network Extensions

For network extensions, you must accept the system extension in the macOS settings preferences to complete activation of the network extension.

To complete activation of the network extension:

  1. Open the alert interface on the Mac.

Screen shot of Intune Admin Center, Alerts interface

  1. Click Open Security Preferences Panel.
    This network extension attempts to run in the background: /Applications/Endpoint-Protection.app/Contents/MacOS/EndpointProtectionService.app/Contents/MacOS/NextLoader.app/Contents/MacOS/psanwatchdog --loadNext
  2. From the macOS settings preferences, accept the system extension specified in the previous procedure.
  3. To allow the Protection Agent Network to filter network content, click Allow.

Screen shot of Intune Admin Center, allow Filter Network Content

Create a Policy to Automatically Allow the Content Filter

You can create a policy to use the Endpoint Security content filter. You can also create a list of allowed web links and restricted web links.

To create a policy to automatically allow the content filter, from the Intune Admin Center:

  1. From the left panel, select Devices.
  2. Select macOS.
  3. Select Configuration.
  4. Click Create > New Policy.
    The Create a Profile page opens.
  5. From the Profile Type drop-down list, select Settings Catalog.
  6. Click Create.
  7. Select Web Content Filter.
  8. Select the check boxes for these settings:
    • Filter Packet Provider Bundle Identifier
    • Filter Packets
    • Filter Sockets
    • Organization
    • Plugin Bundle ID
    • User Defined Name

    Screen shot of Intune Admin Center, Create a Profile and Settings

  1. In the User Defined Name text box, type EndpointProtectionNetwork.
  2. In the Plugin Bundle ID text box, type com.protection.agent.next.
  3. In the Organization text box, type D3U2N4A6J7.
  4. Enable the Filter Sockets toggle.
  5. Enable the Filter Packets toggle.
  6. In the Filter Packet Provider Bundle Identifier text box, type com.protection.agent.next.
  7. In the Filter Data Provider Bundle Identifier text box, type com.protection.agent.next.
  8. Click Next.
  9. In the Scope Tags page, click Next.
  10. In the Assignments page, select the group of devices that you want to assign this profile to.
  11. Click Next.
  12. Review the profile for completeness. Click Previous if you want to return to a previous step.
  13. Click Create to create the profile.

Create a Script to Prevent Network Access Alerts

Before you begin, make sure that you have created the configuration you want to install and you have deployed WatchGuard Endpoint Security to the Mac computer. This script emulates the activity of the user clicking the window, which dismisses the alert and causes the network extension technology to start.

In the Intune Shell Script window, add this text:

/Applications/Endpoint-Protection.app/Contents/MacOS/EndpointProtectionService.app/Contents/MacOS/NextLoader.app/Contents/MacOS/psanwatchdog –-loadNext

Screen shot of Intune Admin Center, Script Settings

Deploy the InTune Configuration Policies

In this section, you deploy WatchGuard Endpoint Security and create a shell script to deploy the configuration to the Mac. The shell script can take up to eight hours to reach each Mac. If you want to deploy the script immediately to the computer, you can click Check State in the portal app on the Mac to force deployment.

To create a deployment script:

  1. Download the wg_Agent_intune_install.sh script as a baseline from here.
  2. Install WatchGuard Endpoint Security on the Mac or group of Macs you want to apply the Intune profiles to. For more information, go to Install the Endpoint Security Software on Mac Computers.
  3. Open the Intune Admin Center.
  4. From the left panel, select Devices.
  5. Select macOS.
  6. Select Shell Scripts.
  7. Click Add.

Screen shot of Intune Admin Center, Add Script Basics

  1. Enter a Name for the script.
  2. Click Next.
  3. In the Script Settings step, upload a script that includes the download URL for the installation of WatchGuard Endpoint Security on the Mac computers.
    To copy the download URL, in the Endpoint Security management UI, select Computers > Add Computers > macOS > Send URL by Email.

Screen shot of Add Computer dialog box for macOS, Endpoint Security

Copy the long link from the email message and paste it in the script settings. For example:

Screen shot of email message received for setup

Screen shot of Intune Admin Center, Sample script

  1. Make sure Run Script as Signed-in User is set to No. The enables the script to run at root.
  2. Configure the remaining script settings, as required.
    • Hide script notifications on devices
    • Script frequency
    • Max number of times to retry if script fails
  3. Click Next.
  4. In the Assignments page, select the group of devices that you want to assign this profile to.
  5. Click Next.
  6. Review the profile for completeness. Click Previous if you want to return to a previous step.
  7. Click Create to create the profile.

Related Topics

Install the Endpoint Security Software on Mac Computers

Get Started with WatchGuard Endpoint Security

Endpoint Security Upgrade Process