DriverKit and System Extensions vs Kernel Extensions
Choose between DriverKit, system extensions and legacy kexts on macOS 15: what each runs in, what it can reach, how it installs, and a decision table.

For two decades the way to add hardware support or low-level behavior to a Mac was to write a kernel extension, a bundle that loaded into the kernel and ran with full privilege. A bug in one took the machine down, a malicious one owned it, and Apple spent the last several releases replacing the whole model. The replacement is not one thing but three: DriverKit for drivers, system extensions for networking and security features, and the Endpoint Security framework for event monitoring, all running in user space. This post compares them with the legacy kext on macOS 15, says what each can and cannot do, and ends with a table to pick one. It is the policy half of the story in the guide to macOS kernel internals, where the kernel side is explained.
What a kernel extension was, and why it is on the way out
A kext is a bundle with the extension .kext, containing a Mach-O binary and an Info.plist that lists what the extension matches and which libraries it needs. It is loaded into the kernel's address space, links against kernel symbols and runs at the same privilege as the kernel. IOKit drivers, file systems, network filters and security products were all written this way.
The cost of that power is what drove the change. A kext crash is a kernel panic, a vulnerability in a kext is a vulnerability in the kernel, and the kernel's own security features cannot defend against code that runs inside it. Apple's response was to remove capabilities in steps: signature requirements, then user approval, then a deprecation of the kext APIs, and on Apple silicon a policy that requires lowering the system's security setting to load a third-party kext at all. Apple documents the transition in the developer material on system extensions and DriverKit. Kexts still load on supported configurations, but new development on them is a dead end: it depends on a setting users are told not to change, and each release removes more of the interfaces.
What the replacements are
The replacements split by purpose, and the split is the first thing to understand.
DriverKit is for device drivers: USB, PCI Express, Thunderbolt, HID, serial, audio, networking (Ethernet) and storage-adjacent families. You write a driver extension, a dext, in C++ against DriverKit's headers. It is a user-space process, one per driver instance or per bundle depending on configuration, launched and managed by the system.
System extensions are the installation and lifecycle mechanism that carries the other extension types. A system extension is an app bundle component, placed in Contents/Library/SystemExtensions, installed through the OSSystemExtensionRequest API and approved by the user in System Settings. DriverKit drivers are system extensions of type driver. The other types are for network and security features.
Network Extension is the framework for content filters, DNS proxies, VPNs, packet tunnels and transparent proxies. It replaces the old network kernel extensions and socket filters.
Endpoint Security is the framework for security tools that need to observe or authorize process execution, file operations and similar events. It replaces the kauth and MAC-policy kexts that security products used, and the Endpoint Security post shows a client.
FSKit is a framework for user-space file systems, introduced on macOS 15.4, which fills the role file system kexts and FUSE-style extensions held.
All of these run outside the kernel. A crash kills the extension process, which the system restarts, and the machine stays up.
How a driver extension reaches hardware
If a user-space process is going to drive a USB device or a PCIe card, the kernel has to let it touch the device, and DriverKit does that in two parts. In the kernel, a small framework driver, an IOKit "kernel-side" proxy, matches your hardware. When your dext's Info.plist personality matches a device, that kernel object creates a user-space counterpart: it launches your driver extension and connects the two with an IPC channel the system manages.
From your code, the device appears as an IOService subclass whose provider is a DriverKit class such as IOUSBHostDevice or IOPCIDevice. You ask the provider for resources and the kernel does the privileged parts on your behalf: it maps device memory into your process with IOMemoryDescriptor objects, delivers interrupts as dispatch events and performs DMA through IODMACommand, which runs within the limits of the IOMMU. A DriverKit driver therefore does not hold a raw physical address, and a bad pointer in your code faults your own process.
The language is C++ with a few additions. Driver class interfaces are declared in .iig files, processed by the iig tool into headers and the code that serializes calls between the driver and the kernel, and the implementation is in .cpp files with IMPL macros:
class MyDriver : public IOService
{
public:
virtual bool init() override;
virtual kern_return_t Start(IOService *provider) override;
virtual kern_return_t Stop(IOService *provider) override;
};That is a sketch of the .iig declaration, not a complete file, and the exact macros and method names come from the DriverKit headers in your SDK. The point it shows is the lifecycle: the same Start and Stop shape as an IOKit driver, with kern_return_t results. The matching dictionary lives in the IOKitPersonalities key of the Info.plist, with IOProviderClass naming the provider class, IOClass naming the proxy that creates your dext, and IOUserClass naming your class.
Entitlements and approval
Extensions run only if the system trusts them, and that trust is explicit. A DriverKit driver needs the base entitlement com.apple.developer.driverkit and a transport entitlement for the bus it uses, for instance com.apple.developer.driverkit.transport.usb, which names the vendor IDs it will drive. Apple grants these through the developer program, and a request for a USB entitlement includes the device identifiers. Without them the system refuses to load the driver.
Installation is also user-visible. The first time the containing app requests activation, the user sees a prompt and must approve it in System Settings under Privacy and Security. Network Extension content filters and Endpoint Security clients have their own approval paths, and the latter requires a full-disk-access grant as well. During development you can enable systemextensionsctl developer on, with System Integrity Protection relaxed, to skip the requirement that the containing app live in /Applications.
systemextensionsctl list shows what is installed and its state:
systemextensionsctl list1 extension(s)
--- com.apple.system_extension.driver_extension
enabled active teamID bundleID (version) name [state]
* * ABCDE12345 com.example.mydriver (1.0/1) MyDriver [activated enabled]The team identifier and bundle are examples. The [activated enabled] state means the extension is installed, approved and running. A state such as [activated waiting for user] means the approval prompt has not been answered.
What you give up, and what you gain
User space is not free of cost. A DriverKit driver cannot do things that need the kernel's internals, and the interfaces it can use are a deliberate subset. The cost shows in a few ways. Latency can be higher for interrupt-heavy devices because each event crosses a process boundary. Some device classes are not covered by DriverKit families at all, and for those you may find no supported path. And the API surface is smaller than IOKit's, so ports of existing drivers need rewriting, not recompiling.
The gain is the reason the model exists. A fault is contained: a null dereference in your driver terminates the dext, the system relaunches it, and the user sees a device reset instead of a panic. The driver runs in a sandbox with only the entitlements it was granted, and it cannot patch the kernel, hook system calls or read other processes' memory. Debugging is also much easier, since you can attach lldb to a user process like any other, with no second machine and no kernel debug kit.
Comparison
| Kernel extension | DriverKit extension | Network or security system extension | |
|---|---|---|---|
| Runs in | Kernel | User space process | User space process |
| A crash causes | Kernel panic | Driver restart | Extension restart |
| Language | C++ (kernel dialect) | C++ (DriverKit dialect) | Swift or Objective-C, C |
| Hardware access | Direct, full | Mediated: mapped memory, interrupts, DMA through the kernel | Not for hardware |
| Install path | kmutil, reduced security on Apple silicon | System extension request and user approval | System extension request and user approval |
| Needs Apple entitlement | No, but a developer signature | Yes, DriverKit and transport entitlements | Yes, per framework |
| Debugging | Second machine and a kernel debug kit | lldb on the process | lldb on the process |
| Status on macOS 15 | Deprecated, restricted | Supported | Supported |
Which one to choose
The decision follows from what you are building.
If you are driving hardware, such as a USB or PCIe device, use DriverKit. Check the families first: if your device is a class the OS already drives, such as a standard HID keyboard or mass-storage device, you may need no driver at all, since a built-in class driver already matches it and you can talk to it from an app through the USB or HID frameworks.
If you need to filter or proxy network traffic, use Network Extension, and if you need to observe or block process and file activity, use Endpoint Security. Neither is a driver and neither requires a kext.
If you need to write a file system, use FSKit on supported releases, or a mounted user-space helper on earlier ones.
If you still need a kext, the requirement is probably something with no replacement, such as a driver for a device class that DriverKit does not cover or an internal lab tool, and you should plan for the user to lower the security policy, document it, and treat the extension as a migration problem on a deadline.
Where this does not fit
All of the above is the macOS story. iOS, iPadOS, watchOS and tvOS never allowed third-party kernel extensions, and DriverKit on iPadOS is available only for a narrow set of driver classes, subject to the same entitlements. The migration guidance here also assumes Apple silicon or a recent Intel Mac running a current release. On older macOS versions, such as an Intel Mac stuck on a release from several years ago, kexts remain normal and DriverKit may be missing the families you want, so check the minimum OS for each API in Apple's documentation before you design around it.


