Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Lesson 5 of 6 · Concept · 15 min · revision 2

Protecting a Mixed Endpoint Fleet

Learn the fleet controls for Windows and macOS laptops at policy level: patch SLAs with automatic updates and rings, application control and Gatekeeper, BitLocker and FileVault with escrowed recovery keys, EDR with tamper protection, and removing local admin rights, then check a fleet export against the policy.

Contentsand lesson path

What you will learn

  • Explain fleet endpoint protections for Windows and macOS (patching, application control, disk encryption, EDR, removal of local admin rights) at policy level.

Prerequisites: Linux CLI

01. Why it matters

Servers sit in a data centre and are run by a few administrators. Laptops go home, to cafés and to airports. Their users open attachments, install tools and connect to any network they find. Most organisations also run more than one system: Windows on most laptops, macOS on some, Linux on a few. You cannot harden each device by hand, and you cannot see it most of the time.

So fleet protection works at policy level. A device management service (often called MDM, mobile device management, such as Microsoft Intune or Jamf) pushes settings to every enrolled device and collects a report of each device's state. The security team writes the policy, the service enforces it, and the reports show which devices comply.

This lesson covers five controls that most fleet policies contain: patching, application control, disk encryption, EDR and removing local administrator rights. For each, you will see what it stops, what it does not stop, and what "compliant" should mean. No single control is enough. Each one covers a failure that the others miss, which is the idea behind defence in depth.

02. Patching against a deadline

Vendors publish fixes for known flaws all the time: Microsoft on the second Tuesday of each month and at other times when needed, Apple whenever a release is ready. NIST SP 800-40 Rev. 4 describes enterprise patch management as identifying, prioritising, acquiring, installing and verifying the installation of patches, and frames it as preventive maintenance: a normal cost of running technology, not an emergency.

A fleet policy turns that into a patch SLA (service level agreement): the maximum time from a fix's release to its installation, by severity. The numbers are your organisation's decision, not a standard. This lesson's example uses 14 days for critical, 30 for high and 60 for medium. A flaw that attackers are already exploiting usually gets an emergency deadline outside the normal cycle.

Three practices make an SLA work:

  • Automatic updates with deadlines. Both Windows and macOS can install updates by themselves; the management service sets a deadline after which the device installs and restarts even if the user keeps postponing.
  • Rings. A small pilot group gets each update first, then the rest of the fleet, so that a broken update hurts a few people instead of everyone. Windows Autopatch, for example, releases updates in rings.
  • Measuring from the release date. The age of a missing update counts from when the fix was published, not from when someone noticed it. If you count from detection, a device that reported late seems to have only just fallen behind.

03. Application control

Antivirus asks whether a file looks bad. Application control (also called allow-listing) asks the opposite question: is this program on the approved list? Anything not approved does not run, including new malware that no antivirus has seen yet. Rules usually name a publisher's code-signing certificate, a file hash or a protected path.

On Windows, Microsoft offers App Control for Business and the older AppLocker. Microsoft's documentation says that App Control was designed as a security feature under its servicing criteria, while AppLocker does not meet the criteria for a security feature, and it advises customers who can use App Control to choose it. Both have an audit mode, in which programs that the policy would block still run and an event is logged instead. Audit mode is how you build a policy without breaking work: you collect the events for a few weeks, add rules for the legitimate programs, and then switch to enforcement. A policy left in audit mode protects nothing.

On macOS, Gatekeeper checks that downloaded software comes from an identified developer, is notarised by Apple and has not been altered. That blocks a lot of commodity malware, but it is not an allow-list of your approved apps: any signed and notarised program passes. For a real allow-list, teams add a tool such as Santa, which also has a logging-only MONITOR mode and an enforcing LOCKDOWN mode.

04. Disk encryption with escrowed keys

Full-disk encryption (BitLocker on Windows, FileVault on macOS) encrypts the whole volume, so that a lost or stolen laptop that is switched off gives a thief nothing readable, even if they remove the disk. It does not protect a laptop that is running and unlocked: to malware on that laptop, the files look normal.

Every encrypted disk has a recovery key, which you need when the normal unlock fails: after a hardware change, a firmware update, or when the user forgets the password. Escrow means that the management service stores that key centrally. Intune, for example, lets administrators view BitLocker recovery keys, and Apple's device management can escrow a Mac's FileVault personal recovery key. Without escrow, the organisation can lose the data on its own laptop. It also cannot unlock a device for an investigation.

So "compliant" for this control means two things: the disk is encrypted, and its recovery key is escrowed. A report that checks only the first is incomplete. Since macOS 26.4, Setup Assistant turns FileVault on by default, which helps, but the escrow still has to come from management.

05. EDR, and removing local admin

Classic antivirus blocks known-bad files. EDR (endpoint detection and response) records what processes do, which files they write and which connections they open, sends that to a central console, raises alerts on suspicious behaviour, and lets responders isolate a device from the network. HIPS (host intrusion prevention) blocks risky behaviour on the device itself, such as an exploit attempt. Many current products combine all three.

EDR only helps while it runs and reports. Attackers try to turn it off first, so products offer tamper protection, which stops other programs from changing the protection settings. A healthy, reporting sensor with tamper protection on belongs in the compliance check.

Removing local administrator rights supports all the other controls. A program runs with the rights of the user who started it. If the user is a standard user, malware they open cannot, without a further exploit, install a driver, stop the EDR service, change system-wide settings or read the credentials that the system stores for other sessions. People still need to install software, so give them a self-service catalogue of approved apps, or an elevation tool such as Intune Endpoint Privilege Management, which lets a standard user run approved tasks with higher rights. Support staff who need the local administrator account can use Windows LAPS, which gives each device's account its own password, changes it regularly and backs it up to the directory.

06. Checking the fleet as code

Policy is only useful if you can measure it. Device management services export each device's state; the file below is a simplified export of four laptops on 16 November 2026. The script applies the five controls to each device and lists every violation. It is the same idea as the trend report in lab 3: compare the state with the policy, per device and per control.

JSON · fleet.json
{
  "as_of": "2026-11-16",
  "devices": [
    {"name": "LT-0412", "os": "windows", "owner": "a.khan",
     "missing_updates": [],
     "disk": {"encrypted": true, "key_escrowed": true},
     "edr": {"healthy": true, "tamper_protection": true},
     "local_admins": [],
     "app_control": "enforced"},
    {"name": "LT-0519", "os": "windows", "owner": "m.silva",
     "missing_updates": [{"id": "2026-10 cumulative", "severity": "critical",
                          "released": "2026-10-13"}],
     "disk": {"encrypted": true, "key_escrowed": false},
     "edr": {"healthy": true, "tamper_protection": true},
     "local_admins": ["m.silva"],
     "app_control": "audit"},
    {"name": "MB-0077", "os": "macos", "owner": "j.chen",
     "missing_updates": [{"id": "macOS security update", "severity": "high",
                          "released": "2026-11-03"}],
     "disk": {"encrypted": true, "key_escrowed": true},
     "edr": {"healthy": false, "tamper_protection": true},
     "local_admins": [],
     "app_control": "enforced"},
    {"name": "MB-0081", "os": "macos", "owner": "l.okafor",
     "missing_updates": [],
     "disk": {"encrypted": false, "key_escrowed": false},
     "edr": {"healthy": true, "tamper_protection": false},
     "local_admins": ["l.okafor"],
     "app_control": "monitor"}
  ]
}
Python · check_fleet.py
"""check_fleet.py: compare an endpoint inventory with the fleet policy."""
import json
from datetime import date

POLICY = {
    "patch_sla_days": {"critical": 14, "high": 30, "medium": 60},
    "app_control_modes": {"enforced"},  # audit/monitor only log, they do not block
}

with open("fleet.json") as f:
    fleet = json.load(f)
today = date.fromisoformat(fleet["as_of"])


def violations(device):
    found = []
    for update in device["missing_updates"]:
        age = (today - date.fromisoformat(update["released"])).days
        sla = POLICY["patch_sla_days"][update["severity"]]
        if age > sla:
            found.append(f"patch: {update['id']} ({update['severity']}) "
                         f"missing {age} days, SLA {sla}")
    if not device["disk"]["encrypted"]:
        found.append("disk: not encrypted")
    elif not device["disk"]["key_escrowed"]:
        found.append("disk: encrypted, but recovery key not escrowed")
    if not device["edr"]["healthy"]:
        found.append("edr: sensor not reporting healthy")
    if not device["edr"]["tamper_protection"]:
        found.append("edr: tamper protection off")
    for account in device["local_admins"]:
        found.append(f"admin: {account} is a local administrator")
    if device["app_control"] not in POLICY["app_control_modes"]:
        found.append(f"app control: mode is {device['app_control']}, not enforced")
    return found


compliant = 0
for device in fleet["devices"]:
    problems = violations(device)
    compliant += not problems
    print(f"{device['name']} ({device['os']}, {device['owner']}): "
          f"{'compliant' if not problems else str(len(problems)) + ' violation(s)'}")
    for problem in problems:
        print(f"  - {problem}")
print(f"{compliant}/{len(fleet['devices'])} devices compliant")
Terminal
python3 check_fleet.py
Expected output
LT-0412 (windows, a.khan): compliant
LT-0519 (windows, m.silva): 4 violation(s)
  - patch: 2026-10 cumulative (critical) missing 34 days, SLA 14
  - disk: encrypted, but recovery key not escrowed
  - admin: m.silva is a local administrator
  - app control: mode is audit, not enforced
MB-0077 (macos, j.chen): 1 violation(s)
  - edr: sensor not reporting healthy
MB-0081 (macos, l.okafor): 4 violation(s)
  - disk: not encrypted
  - edr: tamper protection off
  - admin: l.okafor is a local administrator
  - app control: mode is monitor, not enforced
1/4 devices compliant

Read the output as a work list. LT-0519 is encrypted but its key is not escrowed, and its App Control policy is still in audit mode. MB-0081 is not encrypted and its EDR can be switched off by anyone who gets admin rights, and its user has them. MB-0077 is missing an update, but it was released 13 days ago and the high-severity SLA is 30 days, so it is not yet a violation; its only problem is a sensor that stopped reporting, which needs a person to find out why.

07. Check your understanding

Practice check · 3 questions

Fleet controls in practice

Three questions about the script and the controls in this lesson.

Q1. Why does `check_fleet.py` report no patch violation for MB-0077, although the device is missing an update?
Q2. App Control for Business has run in audit mode on every laptop for three months. Today a user downloads and starts an unknown tool. What happens?
Q3. Ransomware starts on a BitLocker-encrypted laptop while its user is signed in, and begins to read and encrypt the user's files. What does BitLocker do about it?
Practice only: not graded, not saved, not evidence.

08. Apply it

The skill project is about a Linux server, but the same policy thinking applies to the laptops that manage it:

  • Write a one-page fleet policy for your team with an SLA per severity, the application control mode and the date it moves to enforcement, encryption with escrow, EDR with tamper protection, and who may hold admin rights.
  • Export your own devices' state from your management service, or write a fleet.json by hand, and extend check_fleet.py with a check for devices that stopped reporting.
  • For the Ubuntu VM in the project, list which of the five controls have a Linux equivalent, such as automatic security updates, LUKS disk encryption and auditd.

09. Review prompt

Without looking back, explain: what a patch SLA is and why the age of a missing update counts from its release; how application control differs from antivirus and why audit mode is a phase, not an end state; what Gatekeeper checks and why it is not an allow-list of your apps; why disk encryption needs escrowed recovery keys and what it does not protect against; what EDR adds to antivirus and why tamper protection matters; and how removing local admin rights supports the other four controls.

References

Your progress

Reading state

Sign in to save that you finished reading this lesson.

Sign in to mark reading complete

Prove this skill

8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.
Take the skill check