Software:iBoot
Developer(s) | Apple Inc. |
---|---|
Operating system | Darwin, macOS,[1] iPadOS and iOS[2] |
Platform | x86, ARM |
Type | Boot loader |
License | Proprietary software |
iBoot is the stage 2 bootloader for all Apple products.[3] It replaces the old bootloader, BootX. Compared with its predecessor, iBoot improves authentication performed in the boot chain.[2]
For x86-based Macs, the boot process starts by running code stored in secured UEFI Boot ROM (stage 1). Boot ROM has two primary responsibilities: to initialize system hardware and to select an operating system to run (the POST and UEFI component). For ARM-based Macs, the Boot ROM does not include UEFI.[4]
For iOS, iPadOS and ARM macOS, the boot process starts by running the device's Boot ROM. The Boot ROM loads the Low-Level Bootloader (LLB), which is the stage 1 bootloader and loads iBoot. If all goes well, iBoot will then proceed to load the iOS, iPadOS or macOS kernel as well as the rest of the operating system.[5][6] If the iBoot fails to load or fails to verify iOS, iPadOS or macOS, the bootloader jumps to DFU (Device Firmware Update)[7] mode; otherwise it loads the remaining kernel modules.[2]
On x86 macOS, iBoot is located in /System/Library/CoreServices/boot.efi
.[8] Once the kernel and all drivers necessary for booting are loaded, the boot loader starts the kernel’s initialization procedure. At this point, enough drivers are loaded for the kernel to find the root device.[9]
Memory safety
Apple has modified the C compiler toolchain that is used to build iBoot in order to advance memory safety since iOS 14. This advancement is designed to mitigate entire classes of common memory corruption vulnerabilities such as buffer overflows, heap exploitations, type confusion vulnerabilities, and use-after-free attacks. These modifications can potentially prevent attackers from successfully escalating their privileges to run malicious code, such as an attack involving arbitrary code execution.[10]
Source code leak incident
in 2018, a portion of iBoot source code for iOS 9 was leaked on GitHub,[11] Apple then issued a copyright takedown request (DMCA) to GitHub to remove the repository. It was believed an Apple employee was responsible for the leak. However, this was not confirmed by Apple.
References
- ↑ "Darwin 9.2 Source Code". Apple Inc.. https://opensource.apple.com/release/mac-os-x-1052.html. Retrieved January 19, 2020.
- ↑ 2.0 2.1 2.2 Ryan, Peter Y. A.; Naccache, David; Quisquater, Jean-Jacques (2016-03-17) (in en). The New Codebreakers: Essays Dedicated to David Kahn on the Occasion of His 85th Birthday. Springer. ISBN 9783662493014. https://books.google.com/books?id=NA_NCwAAQBAJ&q=apple+bootloader&pg=PA419.
- ↑ Hayes, Darren R. (2014-12-17) (in en). A Practical Guide to Computer Forensics Investigations. Pearson IT Certification. ISBN 9780132756150. https://books.google.com/books?id=s5beBQAAQBAJ.
- ↑ "boot process for T2, M1, and iOS devices". https://khronokernel.github.io/images/posts/2021-02-07-BOOT/basic-boot.png.
- ↑ Apple Inc. (May 2016). "iOS Security Guide". Archived from the original on February 27, 2016. https://web.archive.org/web/20160227071343/http://www.apple.com/business/docs/iOS_Security_Guide.pdf.
- ↑ "Boot process for a Mac with Apple silicon - Apple Support". Jan 2024. https://support.apple.com/en-us/guide/security/boot-process-secac71d5623/web.
- ↑ "iFixit Support: DFU Restore" (in en). https://help.ifixit.com/article/108-dfu-restore.
- ↑ "rEFIt - The Intel Mac boot process". http://refit.sourceforge.net/info/boot_process.html.
- ↑ "The Early Boot Process" (in en). https://developer.apple.com/library/content/documentation/Darwin/Conceptual/KernelProgramming/booting/booting.html.
- ↑ "Memory safe iBoot implementation". Apple. https://support.apple.com/guide/security/memory-safe-iboot-implementation-sec30d8d9ec1/web.
- ↑ "Apple confirms iPhone source code leak". BBC News. 9 February 2018. https://www.bbc.com/news/technology-43001911.
External links
- Mac OS X at osxbook.com
Original source: https://en.wikipedia.org/wiki/IBoot.
Read more |