Engineering:Apple T2

From HandWiki
Short description: System on a chip (SoC) designed by Apple Inc.
Apple T2
Apple T2 APL1027.jpg
General Info
LaunchedDecember 14, 2017
Designed byApple Inc.
Common manufacturer(s)
Product codeAPL1027
Cache
L1 cachePer core: 126 KB instruction + 126 KB data[1]
L2 cache3 MB shared[1]
Architecture and classification
ApplicationSecurity, Controller
Min. feature size16 nm[1]
MicroarchitectureARMv8: "Hurricane"/"Zephyr"
ARMv7: Cortex-A7
Instruction setARMv8.1-A: A64, A32, T32
ARMv7-A: A32
Physical specifications
Cores
  • 4 (2× Hurricane + 2× Zephyr)[1]
Products, models, variants
Variant(s)Apple A10
History
PredecessorApple T1
SuccessorApple M1

The Apple T2 (Apple's internal name is T8012)[2] security chip is a system on a chip "SoC" tasked with providing security and controller features to Apple's Intel based Macintosh computers. It is a 64-bit ARMv8 chip and runs bridgeOS 2.0.[3][4] T2 has its own RAM and is essentially a computer of its own, running in parallel to the main computer that the user interacts with.

Design

The main application processor in T2 is a variant of the Apple A10, which is a 64-bit ARMv8.1-A based CPU.[1] It is manufactured by TSMC on their 16 nm process, just as the A10. Analysis of the die reveals a nearly identical CPU macro as the A10 which reveals a four core design for its main application processor, with two large high performance cores, "Hurricane", and two smaller efficiency cores, "Zephyr". Analysis also reveals the same amount of RAM controllers, but a much reduced GPU facility; three blocks, only a quarter the size compared to A10.[1]

The die measures 9.6 × 10.8 mm, a die size of 104 mm2, which amounts to about 80% of the size of the A10.[1]

As it serves as a co-processor to its Intel based host, it also consists of several facilities handling a variety of functions not present in the host system's main platform. It is designed to stay active even though the main computer is in a halted low power mode. The main application processor in T2 is running an operating system called bridgeOS.

The secondary processor in T2 is an 32-bit ARMv7-A based CPU called Secure Enclave Processor (SEP) which has the task of generating and storing encryption keys. It is running an operating system called "sepOS" based on the L4 microkernel.[5]

The T2 module is built as a package on a package (PoP) together with its own 2 GB LP-DDR4 RAM in the case of iMac Pro[6] or 1 GB in the case of MacBook Pro 15" early 2019.[1][7]

The T2 communicates with the host via a USB-attached Ethernet port.[3]

Security features

There are numerous features regarding security.

The T2 is integral in securing powering up and the boot sequence and upgrading of operating systems, not allowing unsigned components to interfere.[4][8][9][10]

Other features

There are other facilities present not directly associated with security.

History

The Apple T2 was first released in the iMac Pro 2017. On July 12, 2018, Apple released an updated MacBook Pro that includes the T2 chip, which among other things enables the "Hey Siri" feature.[12][13]

On November 7, 2018, Apple released an updated Mac mini and MacBook Air with the T2 chip.[14][15]

On August 4, 2020, a refresh of the 5K iMac was announced, including the T2 chip.[16]

The functionality of the T2 is incorporated in the M series Apple silicon CPUs that Apple is transitioning to instead of Intel processors.[5]

Security vulnerabilities

In October 2019 security researchers began to theorize that the T2 might also be affected by the checkm8 bug as it was roughly based on the A10 design from 2016 in the original iMac Pro.[17] Rick Mark then ported libimobiledevice to work with the Apple T2 providing a free and open source solution to restoring the T2 outside of Apple Configurator and enabling further work on the T2.[18] On March 6, 2020 a team of engineers dubbed T2 Development Team exploited the existing checkm8 bug in the T2 and released the hash of a dump of the secure ROM as a proof of entry.[19] The checkra1n team quickly integrated the patches required to support jailbreaking the T2.[20][21][22][23]

The T2 Development Team then used Apple's undocumented vendor-defined messages over USB power delivery to be able to put a T2 device into Device Firmware Upgrade mode without user interaction. This compounded the issue making it possible for any malicious device to jailbreak the T2 without any interaction from a custom charging device.[24][25][26]

Later in the year the release of the blackbird SEP vulnerability further compounded the impact of the defect by allowing arbitrary code execute in the T2 Secure Enclave Processor.[27] This had the impact of potentially affecting encrypted credentials such as the FileVault keys as well as other secure Apple Keychain items.

Developer Rick Mark then determined that macOS could be installed over the same iDevice recovery protocols, which later ended up true of the M1 series of Apple Macs.[28] On September 10, 2020 a public release of checkra1n was published that allowed users to jailbreak the T2.[29][30] The T2 Development Team created patches to remove signature validation from files on the T2 such as the MacEFI as well as the boot sound. Members of the T2 Development Team begin answering questions in industry slack instances.[31] A member of the security community from IronPeak used this data to compile an impact analysis of the defect, which was later corrected to correctly attribute the original researchers[32] The original researchers made multiple corrections to the press that covered the IronPeak blog.[33]

In October 2020, a hardware flaw in the chip's security features was found that might be exploited in a way that cannot be patched, using a similar method as the jailbreaking of the iPhone with A10 chip, since the T2 chip is based on the A10 chip. Apple was notified of this vulnerability but did not respond before security researchers publicly disclosed the vulnerability.[34] It was later demonstrated that this vulnerability can allow users to implement custom Mac startup sounds.[35][36]

Products that include the Apple T2

  • iMac Pro 2017
  • iMac 27-inch (mid-2020)
  • MacBook Pro (13-inch, 2018,
    Four Thunderbolt 3 ports)
  • MacBook Pro (15-inch, 2018)
  • Mac mini (2018)
  • MacBook Air (2018)
  • MacBook Pro (15-inch, 2019)
  • MacBook Pro (13-inch, 2019)
  • MacBook Pro (13-inch, Early 2020)
  • MacBook Air (2019)
  • MacBook Pro (16-inch, 2019)
  • Mac Pro (2019)
  • MacBook Air (Early 2020)[37]

See also

References

  1. 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 Boldt, Paul (July 11, 2021). "Apple's Orphan Silicon" (in en). https://semiwiki.com/semiconductor-manufacturers/tsmc/301118-apples-orphan-silicon/. 
  2. "The iPhone Wiki: T8012". https://www.theiphonewiki.com/wiki/T8012. 
  3. 3.0 3.1 3.2 Davidov, Mikhail; Erickson, Jeremy (August 8, 2019). "Inside The Apple T2" (in en). https://i.blackhat.com/USA-19/Thursday/us-19-Davidov-Inside-The-Apple-T2.pdf. 
  4. 4.0 4.1 4.2 Parrish, Kevin (July 24, 2018). "Apple's T2 chip may be causing issues in iMac Pro and 2018 MacBook Pros". https://www.digitaltrends.com/computing/apple-t2-chip-may-be-causing-imac-pro-macbook-problems/. "Of all the error messages uploaded to these threads, there is one detail they seem to share: Bridge OS. This is an embedded operating system used by Apple’s stand-alone T2 security chip, which provides the iMac Pro with a secure boot, encrypted storage, live “Hey Siri” commands, and so on." 
  5. 5.0 5.1 5.2 5.3 5.4 "Apple Platform Security: Secure Enclave". https://support.apple.com/guide/security/secure-enclave-sec59b0b31ff/web. 
  6. "iMac Pro teardown" (in en). 2018-01-02. https://www.ifixit.com/Teardown/iMac+Pro+Teardown/101807. 
  7. "MacBook Pro 15" Touch Bar 2019 Teardown" (in en). 2019-05-24. https://www.ifixit.com/Teardown/MacBook+Pro+15-Inch+Touch+Bar+2019+Teardown/123653. 
  8. 8.0 8.1 8.2 8.3 8.4 "iMac Pro Features Apple's Custom T2 Chip With Secure Boot Capabilities". December 14, 2017. https://www.macrumors.com/2017/12/14/imac-pro-has-t2-chip-with-secure-boot/. 
  9. 9.0 9.1 9.2 9.3 9.4 9.5 Evans, Jonny (23 July 2018). "The MacBook Pro's T2 chip boosts enterprise security". Computerworld. https://www.computerworld.com/article/3290415/apple-mac/the-macbook-pro-s-t2-chip-boosts-enterprise-security.html. 
  10. 10.0 10.1 10.2 10.3 10.4 10.5 Snell, Jason (January 3, 2018). "The T2 chip makes the iMac Pro the start of a Mac revolution". Macworld. https://www.macworld.com/article/230870/the-t2-chip-makes-the-imac-pro-the-start-of-a-mac-revolution.html. 
  11. "Apple's T2 chip makes a giant difference in video encoding for most users". https://appleinsider.com/articles/19/04/09/apples-t2-chip-makes-a-giant-difference-in-video-encoding-for-most-users. 
  12. Rossignol, Joe (July 12, 2018). "Apple Launches 2018 MacBook Pros: 8th Gen Core, Up to 32GB of RAM, Third-Gen Keyboard, Quad-Core on 13-Inch and More" (in en). https://www.macrumors.com/2018/07/12/apple-launches-2018-macbook-pro-lineup/. 
  13. "Apple updates MacBook Pro with faster performance and new features for pros". Apple Inc.. https://www.apple.com/newsroom/2018/07/apple-updates-macbook-pro-with-faster-performance-and-new-features-for-pros/. 
  14. Broussard, Mitchel (October 30, 2018). "Apple Announces New MacBook Air With 13-Inch Retina Display and Touch ID" (in en). https://www.macrumors.com/2018/10/30/apple-new-macbook-air/. 
  15. Hardwick, Tim (October 30, 2018). "Apple Announces New Space Gray Mac mini With 4-Core or 6-Core Intel Processor and Up to 64GB RAM, Starting at $799" (in en). https://www.macrumors.com/2018/10/30/apple-announces-new-mac-mini/. 
  16. "27-inch iMac gets a major update" (Press release). Apple Inc. August 4, 2020. Archived from the original on July 12, 2021. Retrieved July 11, 2021.
  17. "Original GitHub issue". 2019-08-06. https://github.com/axi0mX/ipwndfu/issues/141. 
  18. "T2 Support in libimobiledeive". https://twitter.com/su_rickmark/status/1202129990545887233. 
  19. "t8012 SecureROM Hash". 2020-03-06. https://twitter.com/su_rickmark/status/1236108594182905856. 
  20. "checkra1n supports T2". https://twitter.com/su_rickmark/status/1237414287372500993. 
  21. Bouchard, Anthony (2020-03-18). "Checkra1n experimental pre-release adds preliminary support for iOS 13.4, Mac T2 chip" (in en-us). https://www.idownloadblog.com/2020/03/18/checkra1n-experimental-pre-release-adds-preliminary-support-for-ios-13-4-mac-t2-chip/. 
  22. "Hacker omzeilt beveiliging T2-chip in recente Mac-computers" (in NL). https://tweakers.net/nieuws/164492/hacker-omzeilt-beveiliging-t2-chip-in-recente-mac-computers.html. 
  23. Mark, Rick (2020-10-07). "On bridgeOS / T2 Research". Timeline of Events. https://blog.t8012.dev/on-bridgeos-t2-research/. 
  24. "Plug'nPwn - Connect to Jailbreak". 2020-10-12. https://blog.t8012.dev/plug-n-pwn/. 
  25. "T2 Debug Interface Exposed". https://twitter.com/h0m3us3r/status/1280432544731860993. 
  26. "Intel Debug Exposed over T2 interface". https://twitter.com/su_rickmark/status/1280590602690637824. 
  27. "Blackbird Exploit for Apple SEP". 24 July 2020. https://www.idownloadblog.com/2020/07/24/pangu-hacks-sep/. 
  28. "macOS restore via USB". https://twitter.com/su_rickmark/status/1298512629040910336. 
  29. "checkra1n". https://checkra.in/. 
  30. "Hackers jailbreak Apple's T2 security chip powered by bridgeOS". 23 September 2020. https://reportcybercrime.com/hackers-jailbreak-apples-t2-security-chip-powered-by-bridgeos/. 
  31. "Industry: bridgeOS / checkra1n Questions". https://paper.dropbox.com/doc/Industry-bridgeOS-checkra1n-Questions-IuejF6oBFWiUtGhYkAz2z. 
  32. "ironPeak". https://ironpeak.be/blog/crouching-t2-hidden-danger/. 
  33. "Paper". https://www.dropbox.com/paper?no_redirect=1. 
  34. "Hackers claim they can now jailbreak Apple's T2 security chip". October 6, 2020. https://www.zdnet.com/article/hackers-claim-they-can-now-jailbreak-apples-t2-security-chip/. 
  35. "Checkra1n tinkerer demonstrates custom boot sound on T2-equipped Mac" (in en-US). 2020-10-29. https://www.idownloadblog.com/2020/10/29/checkra1n-t2-mac-boot-up-sound/. 
  36. "Apple T2 hack means you can have PS5 sounds be your startup chime". 2020-11-23. https://www.imore.com/apple-t2-hack-means-you-can-have-ps5-sounds-be-your-startup-chime. 
  37. "Mac models with the Apple T2 Security Chip". https://support.apple.com/en-us/HT208862.