Kernel DMA Protection is a Windows security feature that uses the input-output memory management unit (IOMMU) to stop hot-pluggable PCIe peripherals from reading or writing system memory they have not been granted. In Windows security, it closes the gap known as the drive-by DMA attack, in which a malicious device plugged into a Thunderbolt, USB4 or CFexpress port copies secrets from memory or injects code while the computer is running or locked.
The feature first shipped in Windows 10 version 1803 and is a standard part of Windows 11 on supported hardware. It cannot be switched on by software alone: the firmware, the processor and the device drivers must all cooperate, which is why its status depends heavily on how the computer was built.
How Kernel DMA Protection blocks rogue devices
Kernel DMA Protection works by placing every external PCIe device inside an isolated DMA remapping domain enforced by the IOMMU. Direct memory access (DMA) lets a peripheral transfer data to and from RAM without involving the processor, which is fast but dangerous, because a device without restrictions can address any physical memory page, including kernel structures and encryption keys.
With the protection active, the IOMMU translates the addresses a device uses into only the pages the operating system has explicitly mapped for it. A device whose driver supports DMA remapping receives its own address space and can touch nothing else. A device whose driver does not support remapping is handled by an enumeration policy: by default Windows does not start it until a user signs in and the screen is unlocked.
The following table lists the components that must be present for the feature to report as active.
| Component | Requirement | Role |
|---|---|---|
| Processor and chipset | Intel VT-d or AMD-Vi IOMMU | Performs address translation for devices |
| UEFI firmware | IOMMU enabled and opt-in flag in the ACPI DMAR or IVRS table | Tells Windows the platform supports the feature |
| Port description | Hot-plug ports marked as external-facing in ACPI | Identifies which ports need isolation |
| Device drivers | Declared compatible with DMA remapping | Allows the device to start at any time |
| Windows version | Windows 10 version 1803 or later | Applies the remapping and enumeration policy |
The threat model: drive-by DMA attacks
A drive-by DMA attack requires only brief physical access to an unattended, powered-on computer. The attacker connects a purpose-built device, often a modified PCIe card in an external enclosure, and uses DMA to dump memory or patch the kernel within seconds. Public research such as Thunderclap and PCILeech demonstrated that these attacks work against laptops left locked in offices, hotel rooms and conference halls.
The most valuable target is usually the BitLocker volume master key, which must stay in memory while the volume is unlocked. Other targets include credential material, session tokens and the code that enforces the lock screen. Because the attack bypasses the operating system entirely, a locked screen alone offers no defense without IOMMU isolation.
This table shows which attack stages Kernel DMA Protection covers and which require other controls.
| Scenario | Covered by Kernel DMA Protection | Complementary control |
|---|---|---|
| Device plugged in while locked | Yes, device is blocked or isolated | Screen lock and idle timeout |
| Device plugged in during boot | Partly, depends on firmware | Firmware boot DMA protection |
| Malicious device with compatible driver | Yes, limited to mapped pages | Device installation restrictions |
| Cold boot memory extraction | No | BitLocker with pre-boot PIN |
| Internal slot after opening the case | No, internal ports are not external-facing | Chassis intrusion detection |
Enumeration policy options
The enumeration policy decides what happens to external devices whose drivers are not compatible with DMA remapping. Administrators set it through Group Policy or the DmaGuard configuration service provider in mobile device management, under the name that describes enumeration of incompatible external devices.
| Policy value | Behavior | Typical use |
|---|---|---|
| Block all | Incompatible devices never start | High-security laptops and kiosks |
| Only after login | Incompatible devices start once the user unlocks the session | Default for most organizations |
| Allow all | All devices start immediately | Legacy docks that cause support issues |
The default only after login setting assumes that an authenticated user chose to connect the device. Choosing allow all removes the lock-screen protection for incompatible devices and should be treated as a documented exception rather than a convenience setting.
How it relates to other Windows protections
Kernel DMA Protection shares the IOMMU with virtualization-based security, but the two serve different purposes. Virtualization-based security and memory integrity isolate code running on the processor, while Kernel DMA Protection isolates traffic arriving from peripherals. In the Windows Security app, its status appears under Core isolation as memory access protection.
| Feature | Protects against | Relies on |
|---|---|---|
| Kernel DMA Protection | Rogue external PCIe devices | IOMMU and firmware opt-in |
| BitLocker | Offline access to stolen disks | TPM and encryption keys |
| Memory integrity | Unsigned or tampered kernel code | Hypervisor-enforced code integrity |
| Credential Guard | Theft of credential secrets | Virtualization-based isolation |
| Secured-core PC | Firmware and boot-time attacks | Combined hardware requirements |
On older systems without the feature, guidance recommended a BitLocker pre-boot PIN and disabling Thunderbolt in firmware. On compatible hardware, Kernel DMA Protection makes those compensating measures largely unnecessary for the drive-by scenario, although a PIN still helps against cold boot attacks.
Checking status and common pitfalls
The quickest status check is System Information (msinfo32), which shows a line reading Kernel DMA Protection with the value On or Off. The value is Off whenever the firmware does not opt in, even if the processor has an IOMMU, because the operating system cannot enable it retroactively.
- Disabled IOMMU in firmware: turning off VT-d or AMD-Vi in UEFI settings silently disables the feature.
- Firmware updates that reset settings: a BIOS update can restore defaults and remove the opt-in flag.
- Older Thunderbolt security levels: firmware-based authorization prompts are a separate, weaker mechanism and do not replace IOMMU isolation.
- Incompatible docking stations: devices with old drivers stay inactive on the lock screen, which users often report as a fault.
- Assuming universal coverage: the feature protects only ports marked as external-facing, not internal M.2 or PCIe slots.
When users report docks that do not work until sign-in, the correct fix is a driver update from the vendor, not a switch to the allow all policy. Driver developers mark compatibility in the INF file, and current Thunderbolt and USB4 controllers usually ship with remapping-compatible drivers.
The short version
Some fast ports on a laptop, such as Thunderbolt and USB4, let a plugged-in device read the computer memory directly. That speed is useful, but a hostile gadget could use it to copy passwords or encryption keys in seconds, even while the screen is locked.
Kernel DMA Protection gives each external device its own fenced area of memory. The device can work normally inside that area but cannot wander anywhere else. Devices that cannot follow these rules simply wait until the owner signs in, so a stranger cannot sneak one in while nobody is watching.
Where it makes a difference
A consultant leaves a locked Windows 11 laptop in a hotel room during a client dinner. The laptop has BitLocker without a pre-boot PIN, so the volume key is in memory. An intruder connects an attack device in a Thunderbolt enclosure to the USB4 port, hoping to extract the key and later read the entire disk.
Because the laptop shipped with firmware opt-in and the enumeration policy is set to only after login, Windows refuses to start the unknown device while the session is locked. Even a device with a compatible driver would see only its own mapped buffers. The attack yields no memory contents, and the security team later confirms in the event logs that a device was blocked, which gives them evidence of attempted tampering without any data loss.