trio.so
Explained

macOS System Extensions Explained (and How They Differ From Kernel Extensions)

What macOS system extensions are, how they differ from kernel extensions, the three types (DriverKit, network, endpoint security) and approval.

Mountain landscape representing leadership perspective and vision
Written by
Atena Ladchartabi

Content writer, trio.so

Published on
Modified on

A macOS system extension is an add-on that extends what macOS can do, such as a hardware driver, a VPN or a security agent, but runs outside the kernel in user space. Apple introduced system extensions in macOS Catalina as the replacement for kernel extensions (kexts), which run inside the kernel. Because a system extension cannot crash or take over the kernel the way a kext can, it is safer for the Mac. Users approve each one in System Settings, and IT can approve them ahead of time with a device management profile.

System extensions vs kernel extensions

 System extensionKernel extension (kext)
Where it runsUser space, as its own processInside the macOS kernel
If it failsThe extension stops; macOS keeps runningCan cause a kernel panic and restart the Mac
IntroducedmacOS Catalina (10.15)Since the first versions of macOS
StatusApple's supported way to extend macOSDeprecated; Apple asks developers to move to system extensions
On Apple siliconWorks with full securityNeeds Reduced Security set in Recovery before it can load
Who approves itThe user, or IT with a profileThe user, or IT with a profile, plus a restart

For the kernel extension side, see kernel extension policy.

The three types of system extensions

DriverKit extensions

Driver extensions let hardware makers write drivers for devices such as USB, serial, network interface and audio hardware without putting code in the kernel. An external dock, a USB-to-serial adapter or a specialist audio interface may install one.

Network extensions

Network extensions handle network traffic: VPN clients, content filters, DNS proxies and firewalls. Many business VPN apps and web filters on the Mac now use one.

Endpoint Security extensions

Endpoint Security extensions let security tools watch what happens on the Mac, such as processes starting, files opening or changing and logins, and block activity they flag. Antivirus and endpoint detection and response (EDR) agents use this type.

Why Apple moved away from kernel extensions

Code in the kernel runs with full access to the system. A bug in a kext can crash the whole Mac, and a malicious or exploited kext can bypass macOS security. Moving extensions into user space limits the damage: the extension gets only the access its framework allows, and macOS can stop it without going down. Apple has been reducing the kernel interfaces available to kexts with each release, and on Mac computers with Apple silicon a kext loads only after an administrator lowers the startup security in Recovery.

A kernel extension that crashes is one of the common causes of a kernel panic on Mac.

How to enable system extensions on a Mac

When an app installs a system extension, macOS blocks it until someone approves it. Open the app again, click Open System Settings in the alert, and allow the extension. The approval is usually under Privacy & Security; on macOS Sequoia and later some extension types are listed under General > Login Items & Extensions instead. The full steps and fixes for "System extension blocked" and "awaiting approval" messages are in "System Extension Blocked" on Mac: how to allow it.

See which system extensions are installed

systemextensionsctl list

The output lists each extension with its team ID, bundle ID and state, such as [activated enabled] or [activated waiting for user]. An extension waiting for the user has been installed but not yet approved.

System extensions on managed Macs

Approving extensions one Mac at a time does not scale, and users often click past the prompt. With device management, IT sends a configuration profile with a System Extensions payload that lists the vendor's team ID and the allowed extensions, so the Mac approves them without asking. Network and Endpoint Security extensions often need more in the same rollout, such as a content filter or VPN payload, or a privacy profile that grants Full Disk Access. The vendor's deployment guide lists what its extension needs. See how to configure a privacy preferences profile on macOS.

Related reading: system extension blocked on Mac, kernel panic on Mac and kernel extension policy.

Ready-to-use Templates

Must-have Template Toolkit for IT Admins

Explore All
Template Toolkit

Start your free trial

No credit card required
Full access to all features

Manage Every Device From One Console

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

14-day free trial. No credit card required.

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

Smiling womanAbstract geometric patternAbstract geometric patternSmiling womanSmiling woman

Frequently Asked Questions (FAQ)

Have questions? We've got answers. This section covers some of the most commonly asked questions related to this topic.

An add-on that extends macOS, such as a driver, VPN or security agent, that runs in user space instead of inside the kernel. Apple introduced them in macOS Catalina to replace kernel extensions.

A kernel extension runs inside the kernel and can crash the Mac. A system extension runs as a separate process in user space, so a failure stops only the extension.

Open the app that installed it, click Open System Settings in the alert, and allow it under Login Items & Extensions or Privacy & Security. On managed Macs, IT can approve it with a profile.

They are safer than kernel extensions, because they run with limited access outside the kernel. Approve only extensions from vendors you trust, because network and security extensions still see a lot of what happens on the Mac.

Related

From the blog

The related industry news, interviews, technologies, and resources.