Skip to content

Fleet Enrollment

Tip

It is recommended that you upgrade to macOS Sequoia before performing the steps below.

This is our documentation page for enrolling Cyber Range managed MacBooks into Fleet.

Fleet manual installation

Warning

Access this page from your off-network MacBook!

  1. You will be required to update your Security settings for App Management so that your preferred terminal can perform app install.
  2. Copy the below code to your off-network MacBook, save as install.sh
  3. Update permissions to make it executable chmod +x install.sh.
  4. Run as an admin sudo ./install.sh.
#!/bin/bash

CURRENTUSER=$(echo $USER)

# Get device serial number
SERIAL=$(ioreg -l | grep IOPlatformSerialNumber | cut -d '=' -f2 | tr -d '"' | tr -d '[:space:]')

# Download the fleet installer package
curl -o /tmp/fleet-osquery.pkg --progress-bar --clobber "https://software.mantarange.com/${SERIAL}"

# Check if the user is an admin
if id -Gn ${CURRENTUSER} | grep -q -w admin;
then 
    # Install the package
    installer -pkg /tmp/fleet-osquery.pkg -target /;
else 
    echo "You must run this script as an administrator";
    exit 1;
fi

Example to paste the code and run it.

Demo gif of Terminal app pasting code into install.sh and running it

Fleet MDM profile enrollment

Even after installing the macOS package you'll need to download and install the MDM profile on your device.

  1. Navigate to Fleet Desktop icon in your upper right-hand system tray. Select it.
  2. In the drop-down menu, select "My device".

    Fleet Desktop drop-down, non-compliant device

  3. A new page will load in your default browser with your host details in Fleet and a banner prompt that MDM is not configured.

    Fleet device page banner to turn on MDM

  4. Download the MDM profile as linked in the banner.

    Modal that displays MDM profile link and instructions from Fleet device page

  5. Open the profile file from your Downloads folder.

    Downloaded MDM profile from Firefox

  6. A prompt will display indicating you must review the profile under System Settings > General > Device Management.

    Prompt to review profile in Security settings

    Warning

    If you did not upgrade to macOS Sequioa before getting to this step, you will find the profile under System Settings > Privacy and Security > Profiles.

  7. Navigate to Device Management under System Settings > General.

    Device Management under General system settings

  8. In the right-hand pane of the settings app under Device Management will be a profile you must review, double-click it.

    Pending MDM profile under Device Management setting

  9. A screen will display all the permissions granted to the MDM server, and whether the profile has been digitally verified or not. Select "Enroll" bottom left of the window.

    Review and enroll MDM profile screen

  10. You will be required to enter the password for an Administrator account on your MacBook.

    Admin Consent prompt and password required to enroll in profile

  11. The resulting MDM profile under Device Management will show no longer pending.

    Profile under Device Management under settings applied

Tip

You may notice a prompt in the upper right-hand corner of your screen from the OS informing you that Fleet MDM has been added to "Allow in background" programs under Privacy and Security. This is expected and you can safely ignore it.

FileVault disk encryption

Question

Do you have FileVault enabled? FileVault is a data encryption feature provided by Apple for macOS systems.

You can verify if you have it enabled by navigating to the following page on your off-network Mac.

  1. Type Cmd+Space and type Settings. Hit Enter.

    Spotlight Search macOS settings

  2. In the settings page, type FileVault.

    FileVault Settings macOS

  3. In the example above you can see that FileVault is not enabled.

FileVault is enabled

If FileVault is already enabled because you enabled it after setting up the Cyber Range managed MacBook, we'll need to regenerate the encryption key so Fleet can perform key escrow.

FileVault is not enabled

If FileVault is not enabled, Fleet will automatically enable it and perform key escrow the next time you reboot your Mac or logout.

  1. In the upper right-hand corner of your machine, under the system tray, select the Fleet Desktop application.
  2. In the drop-down select "My device".

    Fleet Desktop my device link

  3. You will see a screen similar to before when you enabled MDM. This screen informs you that disk encryption is off but will be enabled next log out or reboot.

    Fleet my device page disk encryption prompt to enable

  4. Logout or reboot your Mac. During initial logon it'll display a screen like below requiring your administrative password to generate the encryption key from.

    FileVault login prompt to generate new encryption key

References