Weaponizing Vtables: Detection Engineering for Kernel-Space Exploits in macOS
- Saturday, May 16, 2026, 14:00-15:00
- RM3707
- Mid-Range
Overview: macOS kernel drivers use C++ virtual method tables (vtables) as part of their object model via IOKit. These vtables are a longstanding attack vector: once corrupted, they enable arbitrary control flow through forged function pointers. This talk explores vtable structure and misuse in the macOS kernel space, focusing on exploitation methods, Apple's hardening (PAC, kalloc_type), and how threat detection engineering can surface this low-level abuse. We connect kernel vtable abuse to runtime behavior, showing detection opportunities and implementation strategies using macOS telemetry APIs and instrumentation.
Descriptive: This session explores exploiting virtual method tables (vtables) in the macOS kernel (via IOKit) and how to detect these techniques as they occur. We'll explore how kernel objects are structured, how use-after-free and fake vtable techniques bypass runtime protections, some CVEs, and how Pointer Authentication (PAC) plays a role in this.
Then, we will transition into detection engineering: how hijacked vtables manifest in kernel crashes, syscall behavior, and memory layout anomalies. We'll walk through detection strategies, including PAC failure crash signatures, Endpoint Security API telemetry, and architectural approaches like hypervisor-assisted integrity monitoring. Designed for engineers building telemetry pipelines or writing detection rules, this talk bridges internals and exploitation knowledge with security tooling.
Outline:
- Introduction and context (5 min)
- Role of vtables in macOS kernel (IOKit C++ object model)
- Why kernel-space vtable hijacking matters for local privilege escalation (LPE)
- Risks: sandbox escape + root escalation in enterprise fleet
- Vtable architecture in macOS kernel (3 min)
- How vtables are constructed (Itanium C++ ABI, vptr at offset 0)
- Object layout in IOKit (e.g., OSObject, IOUserClient)
- Location of vtables in memory: read-only kernel segments, post-KASLR
- Diagram: Object -> vptr -> vtable -> virtual method
- Exploit techniques in the kernel (7 min)
- Use-after-free and heap spraying to create fake objects
- Direct vptr overwrite via out-of-bounds write
- Oh no! Forging attacker-controlled vtables in kernel heap
- (DEMO) Example: CVE-2016-1828 (OSUnserializeBinary UAF) and/or CVE-2021-30735 (Pwn2Own Intel GPU driver)
- Attackers' need for KASLR bypass, PAC evasion
- macOS mitigations (5 min)
- Pointer Authentication (PAC) on Apple Silicon -- PACDA on vptr, PACIA on vtable function pointers kalloc_type heap segregation and its role in defeating type confusion
- Read-only vtable segments in kernel
- Memory protections (W^X), SIP, sandbox containment
- Visual: Defense matrix summarizing protections vs techniques
- Runtime detection engineering (7 min) (A) Crash telemetry:
- PAC failure codes (EXC_BAD_ACCESS with invalid PAC)
- Use-after-free signature patterns (retired vtable pointers)
(B) Behavioral signals:
- Sandbox-escaped process behavior (e.g., unexpected syscalls, privilege escalation)
- Kernel panic logs referencing virtual calls or unexpected dereference
(C) Endpoint Security API & audit hooks:
- Watch for syscall deviations (e.g., `task_for_pid`, `execve` by sandboxed app)
- Process anomalies post-crash
(D) (maybe) Advanced methods:
- Hypervisor integrity checks (e.g., guard kernel vptrs)
- Canary vtable monitoring
- Example detection rule sketch (pseudo-code)
- Conclusion (3 min)
- Overview of what was covered
- PAC has narrowed exploit scope but detection is still important -- Detection engineers should integrate: -- Crash telemetry correlation -- Kernel exploit behavioral heuristics -- PAC failure pattern analysis
- Suggestion: Build visibility layers early, even before full exploit signatures are known
Wiggle room (5 minutes)
Questions: 10 minutes
speaker
- Olivia Gallucci
Security Engineer at Datadog
More in AI/ML
Hallucinations, Hustlers & Human Hacking: AI’s New Role in Social Engineering
Erich Kron
Digital Colleague or Digital Double Agent? Curbing the Super-Privileged AI
Palanivel Mano
Security Frameworks & Red Teaming: A Powerful Duo for Protecting AI and LLM Applications
Samuel A. Cordoba
Trust Me, Bro: The Bro-Science of Windows Code Signing
Fagan Afandiyev
