Skip to main content
QUICK REVIEW

[Paper Review] SandBlaster: Reversing the Apple Sandbox

Răzvan Deaconescu, Luke Deshotels|arXiv (Cornell University)|Aug 15, 2016
Digital Games and MediaSocial Sciences2 references7 citations
TL;DR

SandBlaster is a software bundle that reverse-decompiles Apple's binary sandbox profiles from iOS 7, 8, and 9 into human-readable SBPL (Sandbox Profile Language) format. By leveraging reverse engineering of serialized filter graphs and automaton reconstruction, it enables full analysis of Apple’s sandbox policies, with validated recompilation proving syntactic correctness of the reversed profiles.

ABSTRACT

In order to limit the damage of malware on Mac OS X and iOS, Apple uses sandboxing, a kernel-level security layer that provides tight constraints for system calls. Particularly used for Apple iOS, sandboxing prevents apps from executing potentially dangerous actions, by defining rules in a sandbox profile. Investigating Apple's built-in sandbox profiles is difficult as they are compiled and stored in binary format. We present SandBlaster, a software bundle that is able to reverse/decompile Apple binary sandbox profiles to their original human readable SBPL (SandBox Profile Language) format. We use SandBlaster to reverse all built-in Apple iOS binary sandbox profiles for iOS 7, 8 and 9. Our tool is, to the best of our knowledge, the first to provide a full reversing of the Apple sandbox, shedding light into the inner workings of Apple sandbox profiles and providing essential support for security researchers and professionals interested in Apple security mechanisms.

Motivation & Objective

  • To reverse-engineer Apple’s compiled binary sandbox profiles used in iOS 7, 8, and 9 into human-readable SBPL format.
  • To overcome the lack of public documentation and the complexity of binary sandbox profiles, which are stored as serialized graphs and are difficult to analyze.
  • To provide a toolchain that enables security researchers to inspect, modify, and validate sandbox policies for iOS applications.
  • To automate the extraction and decompilation process using firmware files (.ipsw) without requiring a physical device.
  • To clean up reversed profiles by removing implicit rules and standard policy constructs added during compilation.

Proposed method

  • Reverse-engineer binary sandbox profiles by analyzing serialized graph structures representing filter transitions and operations.
  • Reconstruct regular expressions from NFA-like automata using state removal techniques on transitions labeled with string patterns.
  • Map binary filter keys and values to their SBPL equivalents using known mappings from system libraries and reverse-engineered patterns.
  • Integrate existing tools (e.g., from Blazakis and Esser) with custom scripts to automate profile extraction and decompilation from .ipsw firmware files.
  • Apply cleanup heuristics to remove implicitly added rules (e.g., (allow signal (target self))) and standard policy constructs not present in original SBPL.
  • Recompile reversed SBPL profiles on Mac OS X to validate syntactic correctness, with minor adjustments for platform-specific token differences.

Experimental results

Research questions

  • RQ1Can Apple’s binary sandbox profiles in iOS 7, 8, and 9 be fully reversed into human-readable SBPL format?
  • RQ2What are the structural and semantic characteristics of Apple’s default sandbox profiles, particularly the container profile for third-party apps?
  • RQ3To what extent do implicit rules and compilation artifacts affect the fidelity of reversed sandbox profiles?
  • RQ4Can the reversed SBPL profiles be successfully recompiled and used to reproduce the original policy behavior?
  • RQ5How can the reverse-engineering process be automated and scaled across multiple iOS firmware versions?

Key findings

  • SandBlaster successfully reversed all built-in binary sandbox profiles for iOS 7, 8, and 9 into human-readable SBPL format.
  • The reversed profiles were validated by successful recompilation with minimal modifications, confirming syntactic correctness.
  • The tool identified and removed implicit rules (e.g., (allow signal (target self))) that are automatically injected during compilation.
  • The reverse-engineered profiles revealed detailed system call constraints, including network, file, and Mach service access policies.
  • The decompiled profiles closely match the original SBPL semantics, with only minor platform-specific token differences requiring adjustment.
  • The process of reconstructing regular expressions from serialized filter automata proved effective and scalable for complex filter patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.