0:00
–:––
React at 0:00
DEF CON 34

Memory Laundering via Metal: What EDR Can't See on Your Mac

When and where

Day
Sat 8 Aug 2026
Time
10:00 to 10:30 PDT
Room
LVCC - L1 - Exhibit Hall West 3 - 1007 (Main Track 2)

Speaker

  • 15+ years specializing in Red Teaming, Adversary Emulation, and Application Security. Proven track record executing advanced offensive operations across enterprise environments. Active contributor to the cybersecurity community focused on evolving offensive tradecraft and automating purple team capabilities.

Abstract

# DEF CON Abstract Metal is Apple's GPU framework, it replaced OpenGL and is now the only way to talk to the GPU on macOS. Among its buffer types is StorageModePrivate: memory managed entirely by the GPU. The CPU can't read it, write to it, or map it into virtual address space. macOS endpoint security scans process memory through mach_vm_region and task_for_pid. Apple's own Endpoint Security framework watches mappings via ES_EVENT_TYPE_NOTIFY_MMAP. None of them see StorageModePrivate buffers. Those pages live in GPU firmware page tables, allocated through IOGPUDevice in the IOAccelerator family, completely outside Mach VM. No API exists to let a security tool inspect them from another process. I turned this gap into a working evasion technique. Incoming payload gets XOR-encoded to destroy signatures, staged through a shared MTLBuffer, then blitted into private GPU memory via MTLBlitCommandEncoder on AGXCommandQueue. All CPU-side artifacts get wiped, volatile pointers, __sync_synchronize barriers, multi-pass zeroing. At that point the data exists only in pages no process on the box can read. When I need it back, I reverse the blit, decode, execute, and wipe again. Total CPU exposure is milliseconds. Tested on the latest Apple Silicon hardware. 100% evasion. No entitlements, no kexts, no root. Runs from a sandbox Apple Metal Framework Documentation:MTLBuffer, MTLResourceStorageModePrivate, MTLBlitCommandEncoder https://developer.apple.com/documentation/metal Apple Endpoint Security Framework Documentation: ES_EVENT_TYPE_NOTIFY_MMAP https://developer.apple.com/documentation/endpointsecurity Apple Silicon Unified Memory Architecture: Apple Platform Security Guide https://support.apple.com/guide/security/welcome/web IOKit IOAccelerator Family: GPU driver interface for macOS kernel subsystem https://developer.apple.com/documentation/iokit

What you'll get from it

Security tools on macOS watch a process by inspecting its memory. Apple's GPU framework can hold data in a region the CPU can't read, so those tools can't read it either. Hxr1 shows how that blind spot becomes a way to hide, parking content in GPU-managed memory out of the endpoint protection's sight. It needs no special privileges and works on current Apple Silicon. It's for Mac defenders and people building endpoint security.

Did you find what you came for?