Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Are DMA Attacks?

DMA attacks abuse the ability of peripherals to read and write system memory without going through the processor, letting a hostile Thunderbolt or PCIe device unlock a running machine in seconds.

Illustration for the cybersecurity term DMA Attacks
Home / Blog / Cybersecurity Terms / What Are DMA Attacks?
17 November 2026

What Are DMA Attacks?

What Are DMA Attacks?

Direct memory access exists so that a disk controller or network card can move data into RAM without interrupting the processor for every byte. It is a performance feature, and for decades it carried an implicit assumption: that anything plugged into the bus is trustworthy. A DMA attack breaks that assumption by connecting a device that uses its memory access to read encryption keys, patch the kernel, or bypass the lock screen outright.

Which Ports Expose It

Any interface that grants a peripheral bus-mastering rights is a candidate. FireWire was the original offender and allowed memory reads from an attached device with no authorisation at all. ExpressCard and PCMCIA followed. Today the relevant interfaces are PCI Express, including the M.2 and Thunderbolt slots inside a chassis, and Thunderbolt 3 and 4 over USB-C, which tunnel PCIe to an external connector on the side of a laptop.

The tooling is mature. PCILeech, with an inexpensive FPGA board, reads and writes host memory over PCIe and ships with modules that unlock Windows, macOS, and Linux login screens by patching the authentication routine in place, dump credentials, or spawn a shell. Inception did the same over FireWire and Thunderbolt a decade earlier. None of this requires the target to be logged out or the attacker to know a password.

The Research That Moved the Industry

Two bodies of work defined the modern picture. Thunderclap, presented at NDSS in February 2019 by researchers from Cambridge, Rice, and SRI, showed that even systems with an IOMMU enabled were exploitable, because operating systems configured the IOMMU too loosely, left memory windows mapped longer than necessary, or shared a mapping between a peripheral and unrelated kernel data.

Thunderspy followed in May 2020. Bjorn Ruytenberg documented seven vulnerabilities in Thunderbolt 2 and 3 controller firmware that allowed an attacker with brief physical access to clone the identity of a trusted device, disable security levels, and reach DMA on machines made before 2019. The attack takes a few minutes with a screwdriver and an SPI programmer, and it leaves no trace.

What an Attacker Gets

Unrestricted memory access is the end of the local security model. The practical outcomes are consistent: disk encryption keys extracted from RAM, the lock screen bypassed by rewriting a single comparison, kernel memory patched to load unsigned code, credentials and session tokens harvested, and persistence installed. Where a cold boot attack needs the machine to be restarted, a DMA attack works against a running, locked laptop and gives interactive control.

Stopping It

For travelling executives and anyone carrying regulated data, treat an unattended laptop as potentially compromised rather than merely out of sight. Our Hardware Penetration Test Services include DMA testing against your standard laptop build, which usually settles the argument about whether Kernel DMA Protection is actually switched on across the fleet.

FAQ – Frequently Asked Questions

Does an IOMMU Completely Prevent DMA Attacks?

It prevents the straightforward version by restricting each peripheral to the memory the operating system has mapped for it. The Thunderclap research showed that loose mappings, shared buffers, and windows left open longer than needed still allow exploitation, so the IOMMU has to be configured strictly and the operating system kept updated. It raises the bar substantially rather than closing the issue.

Is USB-C the Same Risk as Thunderbolt?

Only where the port carries Thunderbolt. A USB-C connector that supports USB data and DisplayPort alone does not expose PCIe, so a peripheral cannot perform direct memory access. Thunderbolt 3 and 4 use the same physical connector and do tunnel PCIe, which is why the risk is tied to the controller behind the port rather than the shape of the socket.

How Do I Check Kernel DMA Protection on Windows?

Run msinfo32 and look for the Kernel DMA Protection line in the system summary. It requires UEFI firmware support plus virtualisation-based security, so it is present on machines designed for it and cannot be enabled on older hardware. Where it reports Off, the fallback is to disable Thunderbolt PCIe tunnelling in firmware and rely on pre-boot authentication.

Can a Malicious Dock or Monitor Perform DMA?

Yes, if it connects over Thunderbolt. A dock is a PCIe device, and an attacker-built or modified dock can request memory access just as a dedicated attack board would. Public charging and conference docking stations deserve the same scepticism as unknown USB cables, which is why display-only Thunderbolt security levels exist for exactly that scenario.

Related Terms

You May Be Interested In These

What Is an Insider Threat?

Cybersecurity Terms

17 November 2026

What Is an Insider Threat?

Read More
What Is a CASB?

Cybersecurity Terms

17 November 2026

What Is a CASB?

Read More
What Is Hashcat?

Cybersecurity Terms

17 November 2026

What Is Hashcat?

Read More