NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Auditing Apple's DifferentialPrivacy.framework: Implementation Bugs, Misconfigurations, and Practical Risks

Rishav Chourasia, Ergute Bao, Uzair Javaid, Xiaokui Xiao

TL;DR

Researchers have conducted the first deep-dive privacy audit of Apple’s closed-source DifferentialPrivacy.framework, uncovering critical vulnerabilities in 5 out of 9 audited mechanisms. Due to legacy floating-point bugs and secure aggregation protocols configured with local differential privacy disabled, up to 87% of data collection streams in macOS Sonoma are exposed to potential reconstruction attacks.

What Problem Does This Paper Address?

Since 2016, Apple has claimed that the massive amounts of device analytics it collects—ranging from Safari browsing history to keyboard emojis—are protected by Local Differential Privacy (LDP). LDP mathematically guarantees user privacy by adding carefully calibrated noise to data on the device before it is uploaded to servers.

However, because Apple's DifferentialPrivacy.framework is closed-source, the scientific and privacy communities have been unable to independently verify these claims. This paper addresses this transparency gap by reverse-engineering Apple's native binaries on macOS Sonoma 14.2 and Sequoia 15.6 to evaluate whether the deployed algorithms actually deliver their advertised privacy and zero-knowledge guarantees.

Methods

To audit a completely black-box, proprietary framework, the authors combined reverse engineering with empirical privacy auditing:

  1. Binary Decompilation & Header Extraction: The authors used open-source tools (class-dump and ipsw) to extract Objective-C runtime headers directly from Apple's consolidated dyld_shared_cache.
  2. Dynamic Loading (Harnessing): Instead of interacting with the framework via protected system daemons (dprivacyd), the authors built custom executables that dynamically loaded the framework library directly into their own process space, bypassing Apple's Sandbox and Hardened Runtime restrictions.
  3. LLM-Assisted Analysis: Large Language Models (ChatGPT 4o and Gemini 2.5 Pro) were utilized to generate cleaner pseudocode hypotheses from complex decompiled binary snippets, which were then rigorously verified against binary constants and runtime behavior.
  4. Empirical DP Auditing: The authors implemented membership inference attacks using a state-of-the-art Bayesian auditing framework to calculate empirical lower bounds ($\epsilon_{\text{lower}}$) on the true privacy loss.
Distribution of DP mechanisms and privacy violations identified within macOS Sonoma 14.2.

Datasets

The study relied on synthetic inputs passed to the framework within author-controlled test environments to observe the exact behavior of the privatization algorithms. Additionally, the authors analyzed over 50 real-world instances of unencrypted, leaked plaintext analytics logs found on public internet repositories (such as GitHub and public forums) to demonstrate practical exploitation.

Key Insights and Ideas

  • The Floating-Point Vulnerability Trap: Mechanisms relying on continuous noise distributions (Laplace and Gaussian) use legacy sampling methods (inverse transform and Marsaglia polar sampling). These implementations suffer from floating-point regularities known since 2012. Because certain 64-bit double values can never be output for a given input, an adversary can identify "infeasible" outputs to perfectly reconstruct the original data.
  • Secure Aggregation Without Local DP: Apple utilizes Prio, a secure multi-party computation protocol, to aggregate data like photo attributes and typed text. Alarmingly, the audit revealed that for at least 40% of collected data in Sonoma, local DP was explicitly disabled. Apple relies solely on cryptographic splitting to hide data.
  • Centralized Multi-Party Computation: In standard secure aggregation, cryptographic shares are sent to independent, non-colluding servers. Apple’s client-side implementation splits data into just two shares but transmits both to the same "leader" server endpoint, undermining the core trust assumption of multi-party computation.
  • Excessively Large Privacy Budgets: Even where DP mechanisms operated correctly without bugs, the configured privacy budgets ($\epsilon$) were remarkably high, frequently ranging between 6 and 8. In pure DP terms, an $\epsilon = 6$ allows for a membership inference success rate of over 99.75%, offering very weak real-world protection.

Key Results

  • Widespread Violations: DP violations were proven in 5 out of 9 audited mechanisms, impacting 87% of data collection keys in macOS Sonoma 14.2 and 68% in Sequoia 15.6.
  • Quantifiable Privacy Loss:
  • For the NumberRandomizer (Laplace mechanism), a configured budget of $\epsilon = 1$ was shown to have an empirical lower bound of $\epsilon \ge 5.69$.
  • For Prio++ (Gaussian mechanism), a configured budget of $\epsilon = 4.377$ actually leaked a true privacy parameter exceeding $\epsilon \ge 15.6$.
Audit results on Apple's NumberRandomizer showing a clear DP violation against the theoretical Laplace PDF.
  • Practical Exploitation: The authors successfully built decoders that exploit unencrypted local logs (share1 and share2) generated on iOS devices. They demonstrated that an attacker with access to these logs can easily reconstruct highly sensitive user data, such as specific emojis typed or domains visited in Safari.

Limitations and Future Work

This study focuses entirely on the client-side, pre-aggregation behavior of the mechanisms. Because the authors did not instrument Apple's server-side infrastructure, they cannot verify whether Apple's servers securely forward cryptographic shares to independent helpers or if they collude internally. Furthermore, while the authors confirmed that newer protocols in macOS Sequoia (like PINE) still utilize the flawed Gaussian pseudorandom number generator, they did not fully instrument the newest Prio3 and PINE client-side variants.

Summary updated

BibTeX
@inproceedings{chourasia2026auditing,
  author = {Rishav Chourasia and Ergute Bao and Uzair Javaid and Xiaokui Xiao},
  title = {{Auditing Apple's DifferentialPrivacy.framework: Implementation Bugs, Misconfigurations, and Practical Risks}},
  booktitle = {SP},
  year = {2026},
  doi = {10.1109/sp63933.2026.00225},
}
Figure