Join our Newsletter — 33% off our NHI Course

How do attackers use DMA attacks?

Attackers use DMA attacks to read or modify system memory through devices that have direct memory access, sometimes bypassing normal operating-system controls. They target unlocked or poorly protected machines, especially during physical access. Defenders restrict risky ports, enable IOMMU or equivalent protections, use full-disk encryption with pre-boot authentication, and lock devices before unattended exposure.

How DMA attacks work in practice

DMA attacks abuse hardware or peripherals that can access memory directly, so the attacker is trying to reach data before normal operating-system defenses can mediate it. That makes the technique especially effective when a machine is unattended, unlocked, or exposed through ports that accept external devices. The practical goal is usually fast memory theft, memory tampering, or both.

In the field, the attack path depends on physical proximity and on whether the platform enforces I/O protections such as an IOMMU. If those controls are weak or disabled, a malicious device or adapter can interact with memory in ways that look ordinary at the hardware layer but bypass many software-only assumptions. That is why DMA abuse is often discussed alongside boot-time and device-access hardening.

What attackers target with direct memory access

Attackers use DMA to capture live secrets from memory, such as session material, credentials, encryption keys, and sensitive application data that may never touch disk in readable form. They can also modify memory to alter program behavior, inject code, or weaken security checks, depending on the device, platform, and timing.

The technique is most attractive when the defender relies on operating-system controls alone. A locked screen is not enough if the machine is left exposed and the hardware path remains open, and a compromise can occur before any user or EDR alert has a chance to react. For broader attacker tradecraft around device access, credential theft, and lateral movement, see The State of NHI & AI Agent Breach Report 2026.

Modern platform hardening guidance also treats DMA as a firmware and boot-security problem as much as an endpoint problem. Controls such as measured boot, platform protections, and locked-down external interfaces reduce the window where a device can be physically abused, which is why Firmware and Boot Security Guide is relevant to DMA defense.

How to reduce exposure before a device is touched

Defensive priority should go to the attack surface that exists before the operating system can help. That means restricting high-risk ports, using IOMMU or equivalent DMA remapping protections, enabling full-disk encryption, and requiring pre-boot authentication so a stolen or unattended system is harder to probe meaningfully.

Physical-state discipline matters as much as configuration. A machine that is powered on, logged in, or left with accessible Thunderbolt, USB-C, or similar interfaces has a much larger attack surface than the same machine when powered down and secured. If remote staff, travelers, or high-risk roles routinely carry sensitive data, the policy should treat unattended exposure as a control failure, not a convenience issue.

Risk and Threat Considerations

DMA attacks are dangerous because they turn physical access into memory access, which can bypass the ordinary trust boundary between user space, the kernel, and some endpoint defenses. The main risk is not just theft of data in RAM, but the possibility of changing memory state in a way that undermines integrity before the compromise is visible.

Failure mechanism: A malicious peripheral, adapter, or externally attached device uses direct memory access to read or write RAM while the host is in an exposed state, especially when I/O protections are absent, misconfigured, or bypassable.

Impact: Attackers may recover secrets, hijack sessions, tamper with security-relevant memory, or gain a foothold that survives long enough to defeat software-only monitoring and response.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

Framework Control / Reference Relevance
NIST SP 800-53 Rev 5 IA-3 — Device Identification and Authentication DMA defense depends on trusted device access to the host.
SC-7 — Boundary Protection DMA exposure rises when external interfaces are left broadly reachable.
SC-12 — Cryptographic Key Establishment and Management Pre-boot protection and encrypted data reduce memory-exposure value.
Recommendation — Require trusted device authentication and restrict untrusted peripherals. Limit and isolate high-risk external interfaces and paths. Protect sensitive data at rest so memory exposure is less useful.
CIS Controls v8 CIS-4 — Secure Configuration of Enterprise Assets and Software DMA hardening is part of secure endpoint configuration and port control.
Recommendation — Harden endpoint settings that govern ports, boot trust, and device exposure.
ISO/IEC 27001:2022 A.8.9 — Configuration management DMA defenses rely on enforced secure settings for ports and boot paths.
Recommendation — Maintain secure device configurations that enforce DMA protections.

Practitioner Guidance

What to verify: Confirm that the platform actually enforces DMA protections on the hardware class you deploy, not just in policy. Check that external ports are controlled, that encryption starts before user access, and that unattended devices are physically secured whenever they contain sensitive credentials or data.

Decision rule: If a device may be left accessible in public, shared, or travel environments, treat DMA hardening as mandatory baseline protection rather than optional hardening. If you cannot guarantee that baseline, reduce what the device can hold in memory, shorten exposure windows, and require faster response to loss or tampering.

Practitioner takeaway: DMA attacks succeed when defenders assume software controls can compensate for physical exposure; the correct response is to shrink the physical attack surface first, then layer memory-protection controls on top.