Dev.to Security 🔐 Cybersecurity 👁 0 📖 16 min read

MDM for a startup, from zero: enrol laptops, set a baseline, and handle a lost one

AI disclosure: this post was drafted with AI assistance and reviewed and edited by the Rokkhe team. Every claim was checked against the linked public sources as of 6 Dec 2026. A startup's laptops hold its source code, c

AI disclosure: this post was drafted with AI assistance and reviewed and edited by the Rokkhe team. Every claim was checked against the linked public sources as of 6 Dec 2026.

A startup's laptops hold its source code, cloud keys, customer data and login sessions. Most small teams manage them with a shared checklist and trust. This guide explains what device management (MDM) is, how a laptop gets enrolled, which ten settings to enforce first and how to check each one, how to enforce update deadlines, what DNS filtering does and does not do, and what to do in the first hour after a laptop goes missing. It is written for a team of 5 to 50 with no full-time IT person. Facts about products come from the vendors' own documentation, linked inline. Checked 6 December 2026, Asia/Dhaka. By the Rokkhe research team.

TL;DR

  • What MDM is. A management server that a laptop trusts. It sends commands and settings over the operating system's own management channel. It is not spyware, and by itself it cannot run arbitrary code (Mac Hardening).
  • Enrol the right way. For company-owned Macs, buy through Apple or a reseller that adds the serial numbers to Apple Business Manager, and use Automated Device Enrollment (ADE). A Mac enrolled that way is supervised, and if it is wiped it enrols again at setup (Apple, Mac Hardening).
  • Baseline first. Disk encryption with the recovery key escrowed, screen lock, firewall, update deadline, no everyday admin rights, and a way to see what is installed. Ten controls are listed below.
  • Updates need a deadline, not a reminder. The recent macOS root bug (CVE-2026-112430) was fixed by Apple on 26 October, and a public exploit appeared a month later. A deadline closes that gap.
  • Plan for loss. The first hour matters most. Lock the laptop, revoke the sessions and rotate the keys that were on it, then wipe if you will not get it back.

What MDM is, and what it is not

MDM stands for mobile device management, even though it now manages laptops. On macOS it is a protocol built into the operating system. After a Mac enrols, it trusts one MDM server. The server queues commands such as "install this settings profile", "lock the device", "install this update" or "report your inventory", and wakes the Mac through Apple's push service. The Mac connects back and processes them (Mac Hardening).

Three things are worth knowing from the start.

  1. MDM is not arbitrary remote control. It can only do what the protocol and its payloads allow. Teams that need scripts or app installs usually add a management agent, which is a separate trust decision (Mac Hardening). Fleet, for example, offers saved scripts that admins can run on hosts, and Fleet 4.95.0 changed its Technician role so that it can only run saved scripts, not ad hoc ones (Fleet 4.95.0). Decide who can do what.
  2. The server is a high-value target. Whoever controls it controls the fleet, so give admin access to as few people as possible and protect those accounts with strong sign-in.
  3. It manages the device, not the person. It can enforce a screen lock. It cannot make someone choose a good password for their email.

A configuration profile is a settings file for the laptop, usually ending in .mobileconfig. Each setting lives in a payload with a type, for example com.apple.security.firewall for the firewall and com.apple.MCX.FileVault2 for disk encryption. Installing a profile with the same identifier replaces the old one (Mac Hardening).

Declarative device management (DDM) is the newer model, supported on macOS 13 and later. The server sends the desired state and the Mac keeps itself in that state, even when it cannot reach the server, and reports back changes. Apple is moving new management features to DDM, and OS update enforcement is the most important use for it (Mac Hardening). Fleet says macOS 14 and later get OS update enforcement through DDM (Fleet 4.95.0).

Pick an enrolment path

How a laptop enrols decides which controls you get. For Macs there are three paths (Mac Hardening, Apple).

Path How it happens Supervised Use it for
Automated Device Enrollment (ADE) The serial number is in Apple Business Manager and assigned to your MDM. The Mac enrols during Setup Assistant. Yes Company-owned Macs
Manual, user-approved The user installs an enrolment profile and approves it in System Settings. No Macs you already own that are not in Apple Business Manager
Account-driven (user enrolment) A managed Apple Account signs in and work data is kept apart from personal data. No Personally owned Macs

Apple's own documentation now calls the service "Apple Business" in places where older material says Apple Business Manager. Same idea: the portal where your organisation's devices are listed.

Why ADE is the durable one. A Mac that is erased re-enrols on next setup, so wiping it does not escape management. It can also be configured before the user reaches the desktop, and the enrolment can be made non-removable (Mac Hardening, Apple). Supervision, which ADE gives automatically, denotes that the organisation owns the device and unlocks extra controls (Apple).

Why "user-approved" matters. Some payloads are privileged, such as system extension policy and privacy pre-approvals. macOS only honours them when the enrolment is user-approved. A Mac that shows as enrolled but is not user-approved silently ignores those payloads (Mac Hardening). ADE satisfies this automatically, which is another reason to use it.

The bootstrap token. On Apple silicon, MDM can escrow a bootstrap token, so it can authorise software updates and give accounts the rights they need without a local admin typing a password (Mac Hardening). Check that your MDM stores it.

If your Macs were not bought for ADE. You can still enrol them manually. Fleet 4.95.0 added settings to run a bootstrap package during manual enrolment and during a move from another MDM (Fleet 4.95.0). Fleet also notes that for a manually enrolled Mac, the disk encryption key is escrowed the next time the user logs out and back in, not instantly (Fleet).

Windows and Linux. The same idea applies: an enrolment agent, a settings baseline and an inventory. Windows disk encryption through Fleet is enforced on the C: drive only, and only on machines with a TPM chip. Linux disk encryption needs the user: the disk has to be encrypted during OS setup, and the user is prompted to enter the disk password so a recovery key can be escrowed (Fleet). Know these gaps before you promise "every laptop is encrypted".

A ten-control laptop baseline, and how to check each one

Start with these ten. They stop the most common bad days: a stolen laptop, a missing patch, a user with too many rights. Check each one on a real laptop before you trust the MDM's dashboard.

The commands below are standard macOS commands. We have not run them on your machines, so test on one laptop first.

  1. Disk encryption on, recovery key escrowed. On macOS this is FileVault, on Windows BitLocker, on Linux LUKS (Fleet). If a laptop is stolen and encrypted, the thief gets hardware, not your data. For Macs enrolled through ADE, Fleet forces FileVault on during Setup Assistant and escrows the key; the user cannot defer (Fleet). Check: fdesetup status should say "FileVault is On." Then confirm in the MDM that the key shows as verified.
  2. Screen lock after a short idle time, password required immediately. Enforced through the passcode or restrictions payloads (Mac Hardening). Check in System Settings, then in the MDM's profile list.
  3. Firewall on. The application firewall payload with stealth mode is a one-key example in the Mac Hardening guide (Mac Hardening). Check: /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate.
  4. Gatekeeper on. It blocks apps that are not signed or notarised unless the user overrides it. Check: spctl --status should say "assessments enabled".
  5. System Integrity Protection on. It is a core macOS protection. Check: csrutil status.
  6. OS updates with a deadline. Covered in the next section.
  7. No everyday admin rights. People use a standard account for daily work. Give admin to a separate account or grant it for a short time on request. This limits what a mistake or a malicious installer can change. It is not a fix for a bug like the macOS root flaw, where any local account can become root on an unpatched Mac, so it sits beside the update deadline and does not replace it (our authd post).
  8. Non-removable MDM enrolment. Configure ADE so users cannot remove it (Mac Hardening). Check: profiles status -type enrollment. On an organisation-owned Mac you want "Enrolled via DEP: Yes" and "MDM enrollment: Yes (User Approved)" (Mac Hardening).
  9. Encrypted DNS and a filtering resolver. The payload type is com.apple.dnsSettings.managed (Mac Hardening). More on this below.
  10. An inventory you can query. What OS version, which apps, which known vulnerabilities, which browser extensions. You cannot patch what you cannot see. Fleet 4.95.0 also added AI tools, including MCP servers and AI command-line tools, as a software type in its inventory on Premium (Fleet 4.95.0). That matters because your developers' laptops now run local tools that hold tokens.

Two cautions from the Mac Hardening guide are worth repeating. Do not let two profiles manage the same setting, because the result is unpredictable. And pilot every new profile on a few laptops first, since a bad restrictions profile can break work across the whole team (Mac Hardening).

If you want a ready-made baseline instead of choosing settings yourself, NIST's macOS Security Compliance Project can generate profiles from recognised baselines (NIST mSCP). The same Mac Hardening guide points to it as well.

Updates need a deadline

A reminder to update is a suggestion. A deadline is a control.

The reason is the gap between a fix and the day it is installed. Apple released the fix for the macOS authd flaw (CVE-2026-112430) on 26 October 2026 in macOS 15.8.2, 26.7.2 and 27.2. A working public exploit appeared on 27 November (Apple 27.2 notes, our authd post). Any Mac that still had not updated in that month was exposed to anyone with local code execution.

Fleet offers two ways to set it (Fleet):

  • A custom version and a date. Hosts below the version are prompted and then forced to update by the deadline. For macOS, Apple requires the version to be on its list of currently available versions.
  • The latest version, with a number of days. Fleet enforces the newest macOS available for each Mac's hardware and gives the Mac a set number of days after Apple publishes it.

A GitOps example from Fleet's guide: macos_updates: minimum_version: "latest" with deadline_days: 14 (Fleet). Choose the number of days from your own risk, but for a small team with no one to chase people, a short number (days, not weeks) is easier to defend. For a public exploit on an in-the-wild bug, shorten it.

Fleet also enforces new Macs at enrolment: a setting called "Update new hosts to latest" makes a freshly enrolled Mac update during setup, before anyone logs in (Fleet). Windows uses a deadline plus a grace period before an automatic restart, and removes the pause option from Windows Settings (Fleet).

Apps, not only the OS. Browsers and developer tools are attacked too. Fleet 4.95.0 added a deadline option for patching Fleet-maintained macOS apps. When the app is open, Fleet Desktop warns the user an hour before and again five minutes before, then closes and updates the app. Deadlines use each host's local time, and the default is Tuesday at 17:00 (Fleet 4.95.0). Tell your team before you turn this on. A surprise app close is how a security control becomes unpopular.

Verify. On a Mac, sw_vers prints the version. In the MDM, filter hosts by OS version and look for stragglers every week.

DNS filtering: what it blocks and what it does not

Every connection starts with a DNS lookup: the laptop asks "what is the address of this name?" A filtering resolver answers "no" for names on a block list. Because the check happens at the lookup, it works for every app on the laptop, not only the browser.

On Macs the standard way to point the whole system at a resolver is a profile with an encrypted DNS (DNS over HTTPS) payload. One filtering provider documents it this way: a signed profile sends system DNS queries to a unique HTTPS address, and a hand-installed profile needs an administrator on the Mac (DNSFilter). The same page says an unattended install needs an MDM, because profiles cannot be installed from the command line on macOS 26 (DNSFilter). That is a concrete reason DNS filtering and MDM belong together.

What it helps with (our reading):

  • Known malware and ransomware domains.
  • Phishing and scam sites, including lookalike sign-in pages.
  • Typosquatted package registries and unofficial mirrors, which matter when a developer mistypes an install command.
  • Optional categories such as ads and trackers.

What it does not do:

  • It does not inspect what is inside an allowed connection. If an attacker's payload comes from a normal, trusted site, a name-based block never sees it.
  • A program that connects straight to an IP address does not ask DNS.
  • A brand-new malicious domain may not be on a list yet.
  • It is a single point of failure. The DNSFilter page notes that when its service is unreachable, DNS stops and the laptop looks as if it has lost internet, with no error naming DNS (DNSFilter). Test your failure mode.
  • Local and internal names need an exclusion. Names excluded from the profile resolve through the network's own DNS, and off that network they may not resolve and may go out unencrypted (DNSFilter).

How to check it is on. Browse to a site that your filter test page says is blocked (most providers publish one) and confirm the block page, and confirm the query shows in the provider's log. DNSFilter's guide recommends assigning the profile to one Mac and confirming its queries appear in the log before rolling out to the rest (DNSFilter). Do the same with any provider.

Lost or stolen laptop: the first hour

The goal is to make the laptop useless to whoever has it, and to make sure what was on it cannot be used against you. In order:

  1. Note the facts. Who, when, where, and whether it was locked. Check in the MDM whether disk encryption was on and the key shows as verified. If it was encrypted and the user had a strong password, the risk drops a lot. Do not skip the next steps because of that.
  2. Lock it. In Fleet, Actions, then Lock, sends the MDM lock command. The host shows "Lock pending" and then "Locked" once the laptop checks in (Fleet). Apple describes the Mac lock as a six-digit PIN screen the user cannot restart past, and it needs the Mac to reach the internet to receive the command (Apple). A laptop that is offline will receive the command when it next connects. Fleet shows the six-digit unlock PIN for macOS (Fleet).
  3. Revoke access before you rotate secrets. Sign the user out of your identity provider and every active session: email, chat, source control, cloud console, password manager. Disable the account if it is needed. This blocks the thief from using tokens already on the laptop.
  4. Rotate what lived on the laptop. Assume these were there: SSH keys, cloud credentials in ~/.aws, .env files, personal access tokens, browser-saved passwords and any tokens in the password manager that were unlocked. Replace them.
  5. Decide on wipe. In Fleet, Actions, then Wipe sends an erase command. For macOS it uses Erase All Content and Settings (Fleet). A wipe is also a command, so, like the lock, it waits until the laptop connects to the internet. Fleet advises waiting for the wipe to finish before you delete the host record, because deleting it removes Fleet's record of the commands it already sent (Fleet). If you may recover the laptop, you can lock first and decide on the wipe later. If you change your mind, Fleet's 4.92 release added the option to cancel a pending lock or wipe before the laptop receives it (Fleet 4.92.0).
  6. Know the Windows limit. Fleet notes that its current Windows lock only keeps the user out if their account is also disabled, so disable the account in Entra or Active Directory first (Fleet). For Windows laptops, do step 3 before the lock.
  7. Write it down. Time of loss, time of each action, what was on the laptop. The record is what you will need later.
  8. Check legal duties. If personal data was on the laptop and was not encrypted, you may have to notify a regulator. Under the EU's GDPR the deadline is without undue delay and where feasible within 72 hours of becoming aware, unless the breach is unlikely to risk people's rights (GDPR Article 33). Rules differ by country and by data. Ask a lawyer. We are not giving legal advice.

Test this once before you need it. Take an old laptop, enrol it, lock it, unlock it with the PIN, and wipe it. Time how long each step takes. It is the cheapest hour of drilling you will ever do.

A one-week rollout plan

  • Day 1. List every laptop and owner. Mark each as company-owned or personal. Decide the MDM and who gets admin on it.
  • Day 2. Register Apple Business Manager and link your reseller or serial numbers. Create the enrolment profile.
  • Day 3. Pilot with two people on the baseline: disk encryption, screen lock, firewall, update deadline. Check each with the commands above.
  • Day 4. Add the DNS filtering profile to the pilot Macs and confirm queries appear in the log. Test the failure mode (no filter available).
  • Day 5. Roll out to everyone, in two groups. Send the team a plain message saying what you manage and what you cannot see.
  • Next week. Run the lost-laptop drill. Review the vulnerable software list.

Limits and privacy

Say what MDM can see before you roll it out. On company-owned Macs it can inventory apps and settings and lock or wipe the device. On user-owned devices with account-driven enrolment, Apple keeps work data apart from personal data and removes the work data when the enrolment profile is removed (Apple). Ask your vendor exactly what it collects, and put the answer in writing for your team. Staff who know what you can and cannot see will cooperate. Staff who guess will find workarounds.

FAQ

Do we need MDM at five people? If one laptop with a cloud key or production access is lost, the answer is yes. It does not have to be heavy: encryption, updates, a lock and wipe path, and an inventory.

Can we do this for free? Fleet is open source (Fleet news), and its docs mark which features are in Fleet Premium. Lock and wipe, disk encryption enforcement and OS update enforcement are listed as Premium in the guides we linked (Fleet lock and wipe, Fleet disk encryption, Fleet OS updates). Check the current feature list for the tier you use.

Is MDM the same as antivirus? No. MDM sets and checks the device's configuration. Antivirus looks for malicious files and behaviour. You may want both.

Does MDM replace patching apps? No. It gives you the lever (deadlines) and the view (inventory). Someone still has to choose the deadline and watch the report.

What about personal phones? Use account-driven enrolment, which separates work and personal data, and ask for the least you need (Apple).

Where Rokkhe helps

Rokkhe is an AI penetration testing service. It also offers device protection as part of its Warlord plan.

  • Each workspace gets its own Fleet MDM server for macOS, Windows and Linux, separate from other customers. It shows policy pass and fail per device and known vulnerabilities per laptop. Apple MDM is optional (Rokkhe device protection).
  • Every device gets its own DNS-over-HTTPS resolver. It blocks malware, phishing, typosquatted package registries and unofficial mirrors, and each category can be switched on or off (same page).
  • Enrolment covers the same four steps this guide walks through: enrol, see, block, roll out.

If you want help scoping a rollout for your team, book a demo at rokkhe.com. Device protection is part of the Warlord plan, so ask what that includes.

Sources

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.