From Binary to Bug: Generation-Based Fuzzing for macOS MIG Services via Constraint Recovery
Abstract
The Mach Interface Generator (MIG) underpins core macOS IPC services, yet fuzzing these services remains largely manual and service-specific due to their complex message formats and implicit semantic constraints. Existing approaches lack a generalized and automated pipeline that extends from binary analysis to crash reproduction. In this paper, we present MIGFuzz, an automated fuzzing framework for MIG services. First, by employing a phased analysis strategy supported by Chain-of-Thought (CoT) reasoning, MIGFuzz accurately reconstructs complex Mach message structures, resolving ambiguities in field layout and constraints. Then, MIGFuzz introduces a verification-driven refinement loop to autonomously synthesize and optimize routine-specific generators, enabling effective message construction across the entire MIG landscape. Lastly, MIGFuzz utilizes a system-level reproduction mechanism to ensure that all discovered vulnerabilities are fully verifiable in a live system environment. We have implemented a prototype of MIGFuzz and evaluated it on 94 MIG-enabled macOS services covering 1,284 routines. MIGFuzz successfully synthesized valid message generators for 1,006 routines (78.3%). In a 24-hour comparative evaluation, MIGFuzz demonstrated an average increase of 14% in code coverage over the state-of-the-art baseline, with a maximum improvement reaching 22.1%. Notably, MIGFuzz discovered 7 previously unknown vulnerabilities in system services across recent macOS versions ranging from 15.6 to 26.3, all of which are triggerable from an unprivileged user context. Furthermore, we have been formally acknowledged by Apple in the macOS Tahoe 26.4 security update for these discoveries.