Explore our new Cybersecurity Terms Glossary, explained by our experts.
Cybersecurity Terms Glossary
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.

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.
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.
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.
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.
iommu=force and iommu.strict=1 where performance allows.msinfo32 rather than assuming; older hardware cannot be retrofitted.boltctl manages the same authorisation state.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.
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.
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.
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.
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.
You May Be Interested In These
We use a few cookies that are needed to make this website work, and they are always on. We would also like to set analytics cookies, to see which pages are useful; functional cookies, so that our live chat works; and advertising cookies, to measure our campaigns. We will not set any of those until you say yes, and you can change your mind at any time from the Cookie Settings link in the footer.
Choose the cookies you are happy for us to use. Strictly necessary cookies are always on; everything else is off until you turn it on.
These cookies keep the website working: they hold your security checks, your form submissions and the choice you make here. The site cannot run without them, so they are always on.
These let our live chat open and remember your conversation, and let the newsletter sign-up work. Switch them off and the chat window will not appear.
These tell us which pages are read and how people find us, so that we can improve the site. The reports are about groups of visitors, never about you personally.
These let us measure our advertising and show you our adverts on other websites, such as LinkedIn, Google and Meta. Switch them off and you will still see adverts, but they will be less relevant.