0:00
–:––
React at 0:00
Black Hat USA 2026

When Queues Become Vulnerabilities: Reverse Engineering GCD, XPC Races, and macOS Detection Engineering

When and where

Day
Wed 5 Aug 2026
Time
10:15 to 10:45 PDT
Room
Oceanside B, Level 2

Speaker

  • Olivia Gallucci is a Security Engineer at Datadog focused on macOS internals and detection engineering. She previously worked in offensive security at Apple, SECUINFRA GmbH, the U.S. Government, and Deloitte. Olivia is also the founder of two ventures: Offensive Services, a security consultancy, and OG Health & Fitness. She graduated top of her class and is passionate about low-level systems, free and open-source software, and security research. Outside of cybersecurity, she enjoys competitive sailing, cooking, and reading about the history of computing.

Abstract

While many macOS services rely on Grand Central Dispatch (GCD) for concurrency, the underlying kernel integration is often treated as a black box, even by experienced engineers. This Briefing opens that box. From the perspective of a detection engineer and macOS security researcher, this Briefing will map how libdispatch interfaces with the XNU kernel's scheduling infrastructure, focusing on pthread work queues, Mach ports, and quality of service (QoS) propagation. Using GSSCred, I will show how queue-targeting mistakes, sync/async misuse, and scheduler-induced starvation affect the exploitability of race conditions and state-management bugs. Rather than treating these failures as isolated coding mistakes, I map them into a repeatable bug class spanning dispatch queues, XPC handlers, and kernel-managed worker threads. Then, I translate those findings into guidance for detection engineering. Attendees will see which telemetry sources expose abnormal queue pressure, starvation, cross-QoS blocking, and suspicious XPC execution patterns, and how those signals can be operationalized into analytics for macOS threat detection. Attendees will leave with a methodology for reversing queue behavior in privileged services, identifying security-relevant concurrency patterns, and converting low-level scheduling behavior into detections.

What you'll get from it

Plenty of macOS services lean on Grand Central Dispatch for concurrency, but few engineers look at how it meets the XNU kernel underneath. Olivia Gallucci, a macOS detection engineer at Datadog, maps that link through work queues, Mach ports and quality-of-service propagation. Using GSSCred, she shows how queue mistakes and scheduler starvation make race conditions exploitable, and groups them into one repeatable bug class. The second half is for defenders: which telemetry exposes queue pressure, starvation and odd XPC activity, and how to build detections from it. Mac researchers and detection engineers both come away with a method.

Did you find what you came for?