Difference between revisions of "Firmware Keys"

From The iPhone Wiki
Jump to: navigation, search
(Beta: 5.0b3)
(Firmware Versions: 16.x placeholder)
 
(588 intermediate revisions by 27 users not shown)
Line 1: Line 1:
  +
__NOTOC__
This page is info on the keys [[VFDecrypt]]
 
  +
'''Firmware Keys''' are keys which decrypt bootloaders, ramdisks, and [[:/|root filesystem]] of iOS [[firmware]], if those components are encrypted. Apple uses encryption to make it harder to analyze and modify them. Over time Apple changed the way they encrypt firmware files, hence the way to decrypt them and get decryption keys changed as well.
   
== Gaps ==
+
== History ==
  +
With the release of the iPhone came the [[S5L File Formats#IMG2|IMG2]] file format. They were used on all known [[iOS|iPhone OS]] [[#1.x|1.x]] firmwares. For the 1.1.x series, they were encrypted with the [[AES Keys#Key 0x837|0x837 key]]. The discovery of the 0x837 key led to the ability to decrypt ''any'' 1.x firmware.
As you will notice, there may be a gap or two, or a key for a current build that is not there. Please feel free to add them, but please be sure that it is only the key for a User or Developer build, as if you gave the key for another type of build that might or may not be out there '''people could get in trouble, and we do not want that'''. Thanks for contributing!
 
   
  +
Following IMG2 came the [[IMG3 File Format|IMG3]] file format. They were introduced with iPhone OS [[#1.x.2F2.x|2.0 beta 4]], and have been in use ever since. In order to maintain their integrity, they use multiple layers of encryption. Apple took encryption seriously with IMG3 by utilizing [[wikipedia:Advanced Encryption Standard|AES]] (based on the [[wikipedia:Rijndael key schedule|Rinjndael key schedule]]). In terms of the pre-iPhone OS 3 [[VFDecrypt]] key, it is stored as plain-text in the "__restore" segment of the ASR image within the [[ramdisk]]s.
  +
  +
The ramdisk keys can ''only'' be retrieved with the processor specific [[GID Key]]. The GID key is currently unretrievable and can only be utilized through the built-in [[AES Keys|AES engine]]. To complicate things ''even more'', the engine is only accessible through a special [[bootrom]] or [[iBoot]] exploit ([[jailbreak]]s typically expose it with [[/dev/aes_0]]). This makes usage of the key nearly impossible.
  +
  +
However, once you have access to the AES engine, the entire system falls apart. You are able to upload an encrypted ramdisk and grab the decryption keys for it. Once you manage to decrypt the ramdisk, you can run it through [[GenPass]] to decrypt the firmware key.
  +
  +
To find the keys, you can either use the methods on [[AES Keys]] or the easier option for OS X, [[keylimepie]].
  +
  +
== Decrypting ==
  +
{{main|Decrypting Firmwares}}
 
== Notes ==
 
== Notes ==
  +
Certain files share the same key and IV per [[Application Processor|application processor]] (per build) provided the devices have the same pixel resolution:
The root filesystem is by far the largest (~500 MB in the case of iOS 4 (~800MB for [[Retina display|Retina]], [[iPad]], or [[Apple TV]])), for which there is one key per device model, with no IV. Use [[VFDecrypt]] to decrypt this. You can mount/this once it has been decrypted using your program of choice. (For example, 7-zip on Windows (after extracting the DMG on Windows, extract the 5.hfx file with {{wp|7-Zip}})
 
  +
* [[Update Ramdisk]]
  +
* [[Restore Ramdisk]]
  +
* [[AppleLogo]]
  +
* [[BatteryCharging0]]
  +
* [[BatteryCharging1]]
  +
* [[BatteryFull]]
  +
* [[BatteryLow0]]
  +
* [[BatteryLow1]]
  +
* [[GlyphCharging]]
  +
* [[GlyphPlugin]]
  +
* [[Kernelcache]]
  +
* [[NeedService]]
  +
* [[RecoveryMode]]
  +
* [[SEP Firmware]]
  +
* [[WTF]]
  +
  +
You can use [[img3decrypt]] or [[xpwntool]] to decrypt these files as described in [[Decrypting Firmwares]]. Once done, mount or extract using the tool of your choice.
  +
  +
The firmware version number for the [[List of Apple TVs|Apple TV]] builds are the ones that the Apple TV reports (also known as the "marketing version").
   
  +
All dates are relative to [[wikipedia:Coordinated Universal Time|UTC]].
The Update and Restore ramdisks share the same IV and key per type of Application Processor (current choices are [[S5L8900]] in the [[M68ap|iPhone]], [[N82ap|iPhone 3G]], and [[N45ap|iPod touch]], [[S5L8720]] in the [[N72ap|iPod touch 2G]], [[S5L8920]] in the [[N88ap|iPhone 3GS]], [[S5L8922]] in the [[N18ap|iPod touch 3G]], [[S5L8940]] in the [[iPad 2]]). Use [http://code.google.com/p/img3decrypt/ img3decrypt] or [http://github.com/planetbeing/xpwn/tree/master xpwntool] to decrypt these. Likewise, once this is decrypted, you can mount this as well, using the tool of your choice.
 
   
  +
GID AES is used by iBoot to decrypt firmware images. When iBoot loads the kernelcache, GID AES is disabled. This means in order to get firmware keys, you must gain code execution in a setting where GID AES is still enabled. In most cases, this means exploiting iBoot itself, before the kernelcache is loaded.
You may find [[Ramdisk Decryption]] to be helpful.
 
   
  +
==Firmware Versions==
For those wanting to decrypt their own keys, you must use [[GenPass]] to get the keys for 3.x/4.x.
 
  +
{{see also|Prototypes}}
  +
This is a full and comprehensive list of all firmwares Apple Inc. has made available to the public in some way, be it the [[Apple Developer|dev center]] or [[iTunes]]. This list also contains a few firmwares for which there never was an IPSW (as far as can be told) such as 4.2.5 for the [[N92AP|CDMA iPhone 4]] (iPhone3,3). These few builds came preinstalled on the device, but are not available for download.
   
== Firmware versions ==
+
* [[Firmware Keys/1.x|1.x]]
  +
* [[Firmware Keys/2.x|2.x]]
=== Final ===
 
  +
* [[Firmware Keys/4.x|4.x]]
{| border="1" class="wikitable" style="text-align: center; width: auto; table-layout: fixed; border-collapse: collapse;"
 
  +
* [[Firmware Keys/5.x|5.x]]
|-
 
  +
* [[Firmware Keys/6.x|6.x]]
|
 
  +
* [[Firmware Keys/7.x|7.x]]
! [[m68ap|iPhone]]
 
  +
* [[Firmware Keys/8.x|8.x]]
! [[n82ap|iPhone 3G]]
 
  +
* [[Firmware Keys/9.x|9.x]]
! [[n88ap|iPhone 3GS]]
 
  +
* [[Firmware Keys/10.x|10.x]]
! [[n90ap|iPhone 4 (GSM)]]
 
  +
* [[Firmware Keys/11.x|11.x]]
! [[n92ap|iPhone 4 (CDMA)]]
 
  +
* [[Firmware Keys/12.x|12.x]]
! [[n45ap|iPod touch]]
 
  +
* [[Firmware Keys/13.x|13.x]]
! [[n72ap|iPod touch 2G]]
 
  +
* [[Firmware Keys/14.x|14.x]]
! [[n18ap|iPod touch 3G]]
 
  +
* [[Firmware Keys/15.x|15.x]]
! [[n81ap|iPod touch 4G]]
 
{{main|Firmware}}
+
* [[Firmware Keys/3.x|3.x]]
! [[k48ap|iPad]]
+
* [[Firmware Keys/16.x|16.x]]
! [[k93ap|iPad 2 (WiFi)]]
 
! [[k94ap|iPad 2 (GSM)]]
 
! [[k95ap|iPad 2 (CDMA)]]
 
! [[k66ap|Apple TV 2G]]
 
|-
 
! style="text-align:left;" | 1.0
 
| [[Alpine 1A420 (iPhone)|1A420]]
 
| rowspan="10" | Unavailable
 
| rowspan="17" | Unavailable
 
| rowspan="26" | Unavailable
 
| rowspan="32" | Unavailable
 
| rowspan="4" | Unavailable
 
| rowspan="14" | Unavailable
 
| rowspan="20" | Unavailable
 
| rowspan="29" | Unavailable
 
| rowspan="23" | Unavailable
 
| rowspan="36" colspan="3" | Unavailable
 
| rowspan="29" | Unavailable
 
|-
 
! style="text-align:left;" | 1.0.0
 
| [[Heavenly 1A543a (iPhone)|1A543a]]
 
|-
 
! style="text-align:left;" | 1.0.1
 
| [[Heavenly 1C25 (iPhone)|1C25]]
 
|-
 
! style="text-align:left;" | 1.0.2
 
| [[Heavenly 1C28 (iPhone)|1C28]]
 
|-
 
! style="text-align:left;" | 1.1
 
| Unavailable
 
| [[Snowbird 3A100a (iPod touch)|3A100a]]+[[Snowbird 3A101a (iPod touch)|3A101a]]
 
|-
 
! style="text-align:left;" | 1.1.1
 
| [[Snowbird 3A109a (iPhone)|3A109a]]
 
| [[Snowbird 3A110a (iPod touch)|3A110a]]
 
|-
 
! style="text-align:left;" | 1.1.2
 
| [[Oktoberfest 3B48b (iPhone)|3B48b]]
 
| [[Oktoberfest 3B48b (iPod touch)|3B48b]]
 
|-
 
! style="text-align:left;" | 1.1.3
 
| [[Little Bear 4A93 (iPhone)|4A93]]
 
| [[Little Bear 4A93 (iPod touch)|4A93]]
 
|-
 
! style="text-align:left;" | 1.1.4
 
| [[Little Bear 4A102 (iPhone)|4A102]]
 
| [[Little Bear 4A102 (iPod touch)|4A102]]
 
|-
 
! style="text-align:left;" | 1.1.5
 
| Unavailable
 
| [[Little Bear 4B1 (iPod touch)|4B1]]
 
|-
 
! style="text-align:left;" | 2.0
 
| [[Big Bear 5A347 (iPhone)|5A347]]
 
| [[Big Bear 5A345 (iPhone 3G)|5A345]]+[[Big Bear 5A347 (iPhone 3G)|5A347]]
 
| [[Big Bear 5A347 (iPod touch)|5A347]]
 
|-
 
! style="text-align:left;" | 2.0.1
 
| [[Big Bear 5B108 (iPhone)|5B108]]
 
| [[Big Bear 5B108 (iPhone 3G)|5B108]]
 
| [[Big Bear 5B108 (iPod touch)|5B108]]
 
|-
 
! style="text-align:left;" | 2.0.2
 
| [[Big Bear 5C1 (iPhone)|5C1]]
 
| [[Big Bear 5C1 (iPhone 3G)|5C1]]
 
| [[Big Bear 5C1 (iPod touch)|5C1]]
 
|-
 
! style="text-align:left;" | 2.1
 
| [[Sugar Bowl 5F136 (iPhone)|5F136]]
 
| [[Sugar Bowl 5F136 (iPhone 3G)|5F136]]
 
| [[Sugar Bowl 5F137 (iPod touch)|5F137]]
 
|-
 
! style="text-align:left;" | 2.1.1
 
| colspan="2" | Unavailable
 
| Unavailable
 
| [[Sugar Bowl 5F138 (iPod touch 2G)|5F138]]
 
|-
 
! style="text-align:left;" | 2.2
 
| [[Timberline 5G77 (iPhone)|5G77]]
 
| [[Timberline 5G77 (iPhone 3G)|5G77]]
 
| [[Timberline 5G77 (iPod touch)|5G77]]
 
| [[Timberline 5G77a (iPod touch 2G)|5G77a]]
 
|-
 
! style="text-align:left;" | 2.2.1
 
| [[SUTimberline 5H11 (iPhone)|5H11]]
 
| [[SUTimberline 5H11 (iPhone 3G)|5H11]]
 
| [[SUTimberline 5H11 (iPod touch)|5H11]]
 
| [[SUTimberline 5H11a (iPod touch 2G)|5H11a]]
 
|-
 
! style="text-align:left;" | 3.0
 
| [[Kirkwood 7A341 (iPhone)|7A341]]
 
| [[Kirkwood 7A341 (iPhone 3G)|7A341]]
 
| [[Kirkwood 7A341 (iPhone 3GS)|7A341]]
 
| [[Kirkwood 7A341 (iPod touch)|7A341]]
 
| [[Kirkwood 7A341 (iPod touch 2G)|7A341]]
 
|-
 
! style="text-align:left;" | 3.0.1
 
| [[Kirkwood 7A400 (iPhone)|7A400]]
 
| [[Kirkwood 7A400 (iPhone 3G)|7A400]]
 
| [[Kirkwood 7A400 (iPhone 3GS)|7A400]]
 
| colspan="2" rowspan="2"| Unavailable
 
|-
 
! style="text-align:left;" | 3.1
 
| [[Northstar 7C144 (iPhone)|7C144]]
 
| [[Northstar 7C144 (iPhone 3G)|7C144]]
 
| [[Northstar 7C144 (iPhone 3GS)|7C144]]
 
|-
 
! style="text-align:left;" | 3.1.1
 
| colspan="3" | Unavailable
 
| [[Northstar 7C145 (iPod touch)|7C145]]
 
| [[Northstar 7C145 (iPod touch 2G)|7C145]]
 
| [[Northstar 7C145 (iPod touch 3G)|7C145]]+[[Northstar 7C146 (iPod touch 3G)|7C146]]
 
|-
 
! style="text-align:left;" | 3.1.2
 
| [[Northstar 7D11 (iPhone)|7D11]]
 
| [[Northstar 7D11 (iPhone 3G)|7D11]]
 
| [[Northstar 7D11 (iPhone 3GS)|7D11]]
 
| [[Northstar 7D11 (iPod touch)|7D11]]
 
| [[Northstar 7D11 (iPod touch 2G)|7D11]]
 
| [[Northstar 7D11 (iPod touch 3G)|7D11]]
 
|-
 
! style="text-align:left;" | 3.1.3
 
| [[SUNorthstarTwo 7E18 (iPhone)|7E18]]
 
| [[SUNorthstarTwo 7E18 (iPhone 3G)|7E18]]
 
| [[SUNorthstarTwo 7E18 (iPhone 3GS)|7E18]]
 
| [[SUNorthstarTwo 7E18 (iPod touch)|7E18]]
 
| [[SUNorthstarTwo 7E18 (iPod touch 2G)|7E18]]
 
| [[SUNorthstarTwo 7E18 (iPod touch 3G)|7E18]]
 
|-
 
! style="text-align:left;" | 3.2
 
| rowspan="17" | Unavailable
 
| colspan="2" rowspan="3" | Unavailable
 
| rowspan="17" | Unavailable
 
| colspan="2" rowspan="3" | Unavailable
 
| [[Wildcat 7B367 (iPad)|7B367]]
 
|-
 
! style="text-align:left;" | 3.2.1
 
| [[Wildcat 7B405 (iPad)|7B405]]
 
|-
 
! style="text-align:left;" | 3.2.2
 
| [[Wildcat 7B500 (iPad)|7B500]]
 
|-
 
! style="text-align:left;" | 4.0
 
| [[Apex 8A293 (iPhone 3G)|8A293]]
 
| [[Apex 8A293 (iPhone 3GS)|8A293]]
 
| [[Apex 8A293 (iPhone 4)|8A293]]
 
| [[Apex 8A293 (iPod touch 2G)|8A293]]
 
| [[Apex 8A293 (iPod touch 3G)|8A293]]
 
| rowspan="5" | Unavailable
 
|-
 
! style="text-align:left;" | 4.0.1
 
| [[Apex 8A306 (iPhone 3G)|8A306]]
 
| [[Apex 8A306 (iPhone 3GS)|8A306]]
 
| [[Apex 8A306 (iPhone 4)|8A306]]
 
| colspan="2" | Unavailable
 
|-
 
! style="text-align:left;" | 4.0.2
 
| [[Apex 8A400 (iPhone 3G)|8A400]]
 
| [[Apex 8A400 (iPhone 3GS)|8A400]]
 
| [[Apex 8A400 (iPhone 4)|8A400]]
 
| [[Apex 8A400 (iPod touch 2G)|8A400]]
 
| [[Apex 8A400 (iPod touch 3G)|8A400]]
 
|-
 
! style="text-align:left;" | 4.1
 
| [[Baker 8B117 (iPhone 3G)|8B117]]
 
| [[Baker 8B117 (iPhone 3GS)|8B117]]
 
| [[Baker 8B117 (iPhone 4)|8B117]]
 
| [[Baker 8B117 (iPod touch 2G)|8B117]]
 
| [[Baker 8B117 (iPod touch 3G)|8B117]]
 
| [[Baker 8B117 (iPod touch 4G)|8B117]]+[[Baker 8B118 (iPod touch 4G)|8B118]]
 
| [[Mojave 8M89 (Apple TV 2G)|8M89]]<!-- 4.0/4.1 -->
 
|-
 
! style="text-align:left;" | 4.2
 
| colspan="3" | Unavailable
 
| colspan="3" | Unavailable
 
| [[Jasper 8C150 (Apple TV 2G)|8C150]]<!-- 4.1/4.2 -->
 
|-
 
! style="text-align:left;" | 4.2.1
 
| [[Jasper 8C148 (iPhone 3G)|8C148]]
 
| [[Jasper 8C148a (iPhone 3GS)|8C148a]]
 
| [[Jasper 8C148 (iPhone 4)|8C148]]
 
| [[Jasper 8C148 (iPod touch 2G)|8C148]]
 
| [[Jasper 8C148 (iPod touch 3G)|8C148]]
 
| [[Jasper 8C148 (iPod touch 4G)|8C148]]
 
| [[Jasper 8C148 (iPad)|8C148]]
 
| [[Jasper 8C154 (Apple TV 2G)|8C154]]<!-- 4.1.1/4.2.1 -->
 
|-
 
! style="text-align:left;" | 4.2.5
 
| rowspan="8" | Unavailable
 
| rowspan="4" colspan="2" | Unavailable
 
| [[Phoenix 8E128 (iPhone 4 CDMA)|8E128]]
 
| rowspan="8" | Unavailable
 
| rowspan="4" colspan="3" | Unavailable
 
| rowspan="4" | Unavailable
 
|-
 
! style="text-align:left;" | 4.2.6
 
| [[Phoenix 8E200 (iPhone 4 CDMA)|8E200]]
 
|-
 
! style="text-align:left;" | 4.2.7
 
| [[Phoenix 8E303 (iPhone 4 CDMA)|8E303]]
 
|-
 
! style="text-align:left;" | 4.2.8
 
| [[Phoenix 8E401 (iPhone 4 CDMA)|8E401]]
 
|-
 
! style="text-align:left;" | 4.3
 
| [[Durango 8F190 (iPhone 3GS)|8F190]]
 
| [[Durango 8F190 (iPhone 4)|8F190]]
 
|rowspan="4"| Unavailable
 
| [[Durango 8F190 (iPod touch 3G)|8F190]]
 
| [[Durango 8F190 (iPod touch 4G)|8F190]]
 
| [[Durango 8F190 (iPad)|8F190]]
 
| [[Durango 8F191 (iPad 2 Wi-Fi)|8F191]]
 
| [[Durango 8F191 (iPad 2 GSM)|8F191]]
 
| [[Durango 8F191 (iPad 2 CDMA)|8F191]]
 
| [[Durango 8F191m (Apple TV 2G)|8F191m]]+[[Durango 8F202 (Apple TV 2G)|8F202]]+[[Durango 8F305 (Apple TV 2G)|8F305]]<!-- 4.3/4.2 & 4.3.1/4.2.1 & 4.3.2/4.2.2 -->
 
|-
 
! style="text-align:left;" | 4.3.1
 
| [[Durango 8G4 (iPhone 3GS)|8G4]]
 
| [[Durango 8G4 (iPhone 4)|8G4]]
 
| [[Durango 8G4 (iPod touch 3G)|8G4]]
 
| [[Durango 8G4 (iPod touch 4G)|8G4]]
 
| [[Durango 8G4 (iPad)|8G4]]
 
| [[Durango 8G4 (iPad 2 Wi-Fi)|8G4]]
 
| [[Durango 8G4 (iPad 2 GSM)|8G4]]
 
| [[Durango 8G4 (iPad 2 CDMA)|8G4]]
 
|rowspan="3"| Unavailable
 
|-
 
! style="text-align:left;" | 4.3.2
 
| [[Durango 8H7 (iPhone 3GS)|8H7]]
 
| [[Durango 8H7 (iPhone 4)|8H7]]
 
| [[Durango 8H7 (iPod touch 3G)|8H7]]
 
| [[Durango 8H7 (iPod touch 4G)|8H7]]
 
| [[Durango 8H7 (iPad)|8H7]]
 
| [[Durango 8H7 (iPad 2 Wi-Fi)|8H7]]
 
| [[Durango 8H7 (iPad 2 GSM)|8H7]]
 
| [[Durango 8H8 (iPad 2 CDMA)|8H8]]
 
|-
 
! style="text-align:left;" | 4.3.3
 
| [[Durango 8J2 (iPhone 3GS)|8J2]]
 
| [[Durango 8J2 (iPhone 4)|8J2]]
 
| [[Durango 8J2 (iPod touch 3G)|8J2]]
 
| [[Durango 8J2 (iPod touch 4G)|8J2]]
 
| [[Durango 8J3 (iPad)|8J3]]
 
| [[Durango 8J2 (iPad 2 Wi-Fi)|8J2]]
 
| [[Durango 8J2 (iPad 2 GSM)|8J2]]
 
| [[Durango 8J2 (iPad 2 CDMA)|8J2]]
 
|}
 
   
=== Beta ===
+
== See also ==
  +
* [[Application Processor]]
{{main|Beta Firmware}}
 
{| border="1" class="wikitable" style="text-align: center; width: auto; table-layout: fixed; border-collapse: collapse;"
 
|-
 
|
 
! [[m68ap|iPhone]]
 
! [[n82ap|iPhone 3G]]
 
! [[n88ap|iPhone 3GS]]
 
! [[n90ap|iPhone 4 (GSM)]]
 
! [[n92ap|iPhone 4 (CDMA)]]
 
! [[n45ap|iPod touch]]
 
! [[n72ap|iPod touch 2G]]
 
! [[n18ap|iPod touch 3G]]
 
! [[n81ap|iPod touch 4G]]
 
! [[k48ap|iPad]]
 
! [[k93ap|iPad 2 (WiFi)]]
 
! [[k94ap|iPad 2 (GSM)]]
 
! [[k95ap|iPad 2 (CDMA)]]
 
! [[k66ap|Apple TV 2G]]
 
|-
 
! style="text-align:left;" | 1.2b1
 
| [[Big Bear 5A147p (iPhone)|5A147p]]
 
| rowspan="10" | Unavailable
 
| rowspan="16" | Unavailable
 
| rowspan="24" | Unavailable
 
| rowspan="35" | Unavailable
 
| [[Big Bear 5A147p (iPod touch)|5A147p]]
 
| rowspan="11" | Unavailable
 
| rowspan="19" | Unavailable
 
| rowspan="26" | Unavailable
 
| rowspan="26" | Unavailable
 
| rowspan="35" colspan="3" | Unavailable
 
| rowspan="31" | Unavailable
 
|-
 
! style="text-align:left;" | 2.0b2
 
| [[Big Bear 5A225c (iPhone)|5A225c]]
 
| [[Big Bear 5A225c (iPod touch)|5A225c]]
 
|-
 
! style="text-align:left;" | 2.0b3
 
| [[Big Bear 5A240d (iPhone)|5A240d]]
 
| [[Big Bear 5A240d (iPod touch)|5A240d]]
 
|-
 
! style="text-align:left;" | 2.0b4
 
| [[Big Bear 5A258f (iPhone)|5A258f]]
 
| [[Big Bear 5A258f (iPod touch)|5A258f]]
 
|-
 
! style="text-align:left;" | 2.0b5
 
| [[Big Bear 5A274d (iPhone)|5A274d]]
 
| [[Big Bear 5A274d (iPod touch)|5A274d]]
 
|-
 
! style="text-align:left;" | 2.0b6P
 
| [[Big Bear 5A292g (iPhone)|5A292g]]
 
| [[Big Bear 5A292g (iPod touch)|5A292g]]
 
|-
 
! style="text-align:left;" | 2.0b6F
 
| [[Big Bear 5A308 (iPhone)|5A308]]
 
| [[Big Bear 5A308 (iPod touch)|5A308]]
 
|-
 
! style="text-align:left;" | 2.0b7
 
| [[Big Bear 5A331 (iPhone)|5A331]]
 
| [[Big Bear 5A331 (iPod touch)|5A331]]
 
|-
 
! style="text-align:left;" | 2.0b8[[Golden Master|GM]]
 
| [[Big Bear 5A345 (iPhone)|5A345]]
 
| [[Big Bear 5A345 (iPod touch)|5A345]]
 
|-
 
! style="text-align:left;" | 2.1b1
 
| [[Sugar Bowl 5F90 (iPhone)|5F90]]
 
| [[Sugar Bowl 5F90 (iPod touch)|5F90]]
 
|-
 
! style="text-align:left;" | 2.2b1
 
| [[Sugar Bowl 5G27 (iPhone)|5G27]]
 
| [[Sugar Bowl 5G27 (iPhone 3G)|5G27]]
 
| [[Sugar Bowl 5G27 (iPod touch)|5G27]]
 
|-
 
! style="text-align:left;" | 3.0b1
 
| [[Kirkwood 7A238j (iPhone)|7A238j]]
 
| [[Kirkwood 7A238j (iPhone 3G)|7A238j]]
 
| [[Kirkwood 7A238j (iPod touch)|7A238j]]
 
| [[Kirkwood 7A238j (iPod touch 2G)|7A238j]]
 
|-
 
! style="text-align:left;" | 3.0b2
 
| [[Kirkwood 7A259g (iPhone)|7A259g]]
 
| [[Kirkwood 7A259g (iPhone 3G)|7A259g]]
 
| [[Kirkwood 7A259g (iPod touch)|7A259g]]
 
| [[Kirkwood 7A259g (iPod touch 2G)|7A259g]]
 
|-
 
! style="text-align:left;" | 3.0b3
 
| [[Kirkwood 7A280f (iPhone)|7A280f]]
 
| [[Kirkwood 7A280f (iPhone 3G)|7A280f]]
 
| [[Kirkwood 7A280f (iPod touch)|7A280f]]
 
| [[Kirkwood 7A280f (iPod touch 2G)|7A280f]]
 
|-
 
! style="text-align:left;" | 3.0b4
 
| [[Kirkwood 7A300g (iPhone)|7A300g]]
 
| [[Kirkwood 7A300g (iPhone 3G)|7A300g]]
 
| [[Kirkwood 7A300g (iPod touch)|7A300g]]
 
| [[Kirkwood 7A300g (iPod touch 2G)|7A300g]]
 
|-
 
! style="text-align:left;" | 3.0b5
 
| [[Kirkwood 7A312g (iPhone)|7A312g]]
 
| [[Kirkwood 7A312g (iPhone 3G)|7A312g]]
 
| [[Kirkwood 7A312g (iPod touch)|7A312g]]
 
| [[Kirkwood 7A312g (iPod touch 2G)|7A312g]]
 
|-
 
! style="text-align:left;" | 3.1b1
 
| [[NorthVail 7C97d (iPhone)|7C97d]]
 
| [[NorthVail 7C97d (iPhone 3G)|7C97d]]
 
| [[NorthVail 7C97d (iPhone 3GS)|7C97d]]
 
| [[NorthVail 7C97d (iPod touch)|7C97d]]
 
| [[NorthVail 7C97d (iPod touch 2G)|7C97d]]
 
|-
 
! style="text-align:left;" | 3.1b2
 
| [[NorthVail 7C106c (iPhone)|7C106c]]
 
| [[NorthVail 7C106c (iPhone 3G)|7C106c]]
 
| [[NorthVail 7C106c (iPhone 3GS)|7C106c]]
 
| [[NorthVail 7C106c (iPod touch)|7C106c]]
 
| [[NorthVail 7C106c (iPod touch 2G)|7C106c]]
 
|-
 
! style="text-align:left;" | 3.1b3
 
| [[NorthVail 7C116a (iPhone)|7C116a]]
 
| [[NorthVail 7C116a (iPhone 3G)|7C116a]]
 
| [[NorthVail 7C116a (iPhone 3GS)|7C116a]]
 
| [[NorthVail 7C116a (iPod touch)|7C116a]]
 
| [[NorthVail 7C116a (iPod touch 2G)|7C116a]]
 
|-
 
! style="text-align:left;" | 4.0b1
 
| rowspan="19" | Unavailable
 
| [[ApexVail 8A230m (iPhone 3G)|8A230m]]
 
| [[ApexVail 8A230m (iPhone 3GS)|8A230m]]
 
| rowspan="19" | Unavailable
 
| [[ApexVail 8A230m (iPod touch 2G)|8A230m]]
 
| [[ApexVail 8A230m (iPod touch 3G)|8A230m]]
 
|-
 
! style="text-align:left;" | 4.0b2
 
| [[ApexVail 8A248c (iPhone 3G)|8A248c]]
 
| [[ApexVail 8A248c (iPhone 3GS)|8A248c]]
 
| [[ApexVail 8A248c (iPod touch 2G)|8A248c]]
 
| [[ApexVail 8A248c (iPod touch 3G)|8A248c]]
 
|-
 
! style="text-align:left;" | 4.0b3
 
| [[ApexVail 8A260b (iPhone 3G)|8A260b]]
 
| [[ApexVail 8A260b (iPhone 3GS)|8A260b]]
 
| [[ApexVail 8A260b (iPod touch 2G)|8A260b]]
 
| [[ApexVail 8A260b (iPod touch 3G)|8A260b]]
 
|-
 
! style="text-align:left;" | 4.0b4
 
| [[ApexVail 8A274b (iPhone 3G)|8A274b]]
 
| [[ApexVail 8A274b (iPhone 3GS)|8A274b]]
 
| [[ApexVail 8A274b (iPod touch 2G)|8A274b]]
 
| [[ApexVail 8A274b (iPod touch 3G)|8A274b]]
 
|-
 
! style="text-align:left;" | 4.0[[Golden Master|GM]]
 
| [[Apex 8A293 (iPhone 3G)|8A293]]
 
| [[Apex 8A293 (iPhone 3GS)|8A293]]
 
| [[Apex 8A293 (iPod touch 2G)|8A293]]
 
| [[Apex 8A293 (iPod touch 3G)|8A293]]
 
|-
 
! style="text-align:left;" | 4.1b1
 
| [[BakerVail 8B5080c (iPhone 3G)|8B5080c]]
 
| [[BakerVail 8B5080c (iPhone 3GS)|8B5080c]]
 
| [[BakerVail 8B5080c (iPhone 4)|8B5080c]]
 
| [[BakerVail 8B5080 (iPod touch 2G)|8B5080]]
 
| [[BakerVail 8B5080 (iPod touch 3G)|8B5080]]
 
|-
 
! style="text-align:left;" | 4.1b2
 
| [[BakerVail 8B5091b (iPhone 3G)|8B5091b]]
 
| [[BakerVail 8B5091b (iPhone 3GS)|8B5091b]]
 
| [[BakerVail 8B5091b (iPhone 4)|8B5091b]]
 
| [[BakerVail 8B5091b (iPod touch 2G)|8B5091b]]
 
| [[BakerVail 8B5091b (iPod touch 3G)|8B5091b]]
 
|-
 
! style="text-align:left;" | 4.2b1
 
| [[JasperVail 8C5091e (iPhone 3G)|8C5091e]]
 
| [[JasperVail 8C5091e (iPhone 3GS)|8C5091e]]
 
| [[JasperVail 8C5091e (iPhone 4)|8C5091e]]
 
| [[JasperVail 8C5091e (iPod touch 2G)|8C5091e]]
 
| [[JasperVail 8C5091e (iPod touch 3G)|8C5091e]]
 
| [[JasperVail 8C5091e (iPod touch 4G)|8C5091e]]
 
| [[JasperVail 8C5091e (iPad)|8C5091e]]
 
|-
 
! style="text-align:left;" | 4.2b2
 
| [[JasperVail 8C5101c (iPhone 3G)|8C5101c]]
 
| [[JasperVail 8C5101c (iPhone 3GS)|8C5101c]]
 
| [[JasperVail 8C5101c (iPhone 4)|8C5101c]]
 
| [[JasperVail 8C5101c (iPod touch 2G)|8C5101c]]
 
| [[JasperVail 8C5101c (iPod touch 3G)|8C5101c]]
 
| [[JasperVail 8C5101c (iPod touch 4G)|8C5101c]]
 
| [[JasperVail 8C5101c (iPad)|8C5101c]]
 
|-
 
! style="text-align:left;" | 4.2b3
 
| [[JasperVail 8C5115c (iPhone 3G)|8C5115c]]
 
| [[JasperVail 8C5115c (iPhone 3GS)|8C5115c]]
 
| [[JasperVail 8C5115c (iPhone 4)|8C5115c]]
 
| [[JasperVail 8C5115c (iPod touch 2G)|8C5115c]]
 
| [[JasperVail 8C5115c (iPod touch 3G)|8C5115c]]
 
| [[JasperVail 8C5115c (iPod touch 4G)|8C5115c]]
 
| [[JasperVail 8C5115c (iPad)|8C5115c]]
 
|-
 
! style="text-align:left;" | 4.2[[Golden Master|GM]]
 
| [[JasperVail 8C134 (iPhone 3G)|8C134]]
 
| [[JasperVail 8C134 (iPhone 3GS)|8C134]]
 
| [[JasperVail 8C134 (iPhone 4)|8C134]]
 
| [[JasperVail 8C134 (iPod touch 2G)|8C134]]
 
| [[JasperVail 8C134 (iPod touch 3G)|8C134]]
 
| [[JasperVail 8C134 (iPod touch 4G)|8C134]]
 
| [[JasperVail 8C134 (iPad)|8C134]]+[[JasperVail 8C134b (iPad)|8C134b]]
 
|-
 
! style="text-align:left;" | 4.2.1[[Golden Master|GM]]
 
| [[JasperVail 8C148 (iPhone 3G)|8C148]]
 
| [[JasperVail 8C148 (iPhone 3GS)|8C148]]
 
| [[JasperVail 8C148 (iPhone 4)|8C148]]
 
| [[JasperVail 8C148 (iPod touch 2G)|8C148]]
 
| [[JasperVail 8C148 (iPod touch 3G)|8C148]]
 
| [[JasperVail 8C148 (iPod touch 4G)|8C148]]
 
| [[JasperVail 8C148 (iPad)|8C148]]
 
|-
 
! style="text-align:left;" | 4.3b1
 
| rowspan="7" | Unavailable
 
| [[DurangoVail 8F5148b (iPhone 3GS)|8F5148b]]
 
| [[DurangoVail 8F5148b (iPhone 4)|8F5148b]]
 
| rowspan="7" | Unavailable
 
| [[DurangoVail 8F5148b (iPod touch 3G)|8F5148b]]
 
| [[DurangoVail 8F5148b (iPod touch 4G)|8F5148b]]
 
| [[DurangoVail 8F5148b (iPad)|8F5148b]]
 
| [[DurangoVail 8F5148c (Apple TV 2G)|8F5148c]]<!-- 4.3b1/4.2b1 -->
 
|-
 
! style="text-align:left;" | 4.3b2
 
| [[DurangoVail 8F5153d (iPhone 3GS)|8F5153d]]
 
| [[DurangoVail 8F5153d (iPhone 4)|8F5153d]]
 
| [[DurangoVail 8F5153d (iPod touch 3G)|8F5153d]]
 
| [[DurangoVail 8F5153d (iPod touch 4G)|8F5153d]]
 
| [[DurangoVail 8F5153d (iPad)|8F5153d]]
 
| [[DurangoVail 8F5153d (Apple TV 2G)|8F5153d]]<!-- 4.3b2/4.2b2 -->
 
|-
 
! style="text-align:left;" | 4.3b3
 
| [[DurangoVail 8F5166b (iPhone 3GS)|8F5166b]]
 
| [[DurangoVail 8F5166b (iPhone 4)|8F5166b]]
 
| [[DurangoVail 8F5166b (iPod touch 3G)|8F5166b]]
 
| [[DurangoVail 8F5166b (iPod touch 4G)|8F5166b]]
 
| [[DurangoVail 8F5166b (iPad)|8F5166b]]
 
| [[DurangoVail 8F5166b (Apple TV 2G)|8F5166b]]<!-- 4.3b3/4.2b3 -->
 
|-
 
! style="text-align:left;" | 4.3[[Golden Master|GM]]
 
| [[Durango 8F190 (iPhone 3GS)|8F190]]
 
| [[Durango 8F190 (iPhone 4)|8F190]]
 
| [[Durango 8F190 (iPod touch 3G)|8F190]]
 
| [[Durango 8F190 (iPod touch 4G)|8F190]]
 
| [[Durango 8F190 (iPad)|8F190]]
 
| Unavailable
 
|-
 
! style="text-align:left;" | 5.0b1
 
| [[TellurideVail 9A5220p (iPhone 3GS)|9A5220p]]
 
| [[TellurideVail 9A5220p (iPhone 4)|9A5220p]]
 
| [[TellurideVail 9A5220p (iPhone 4 CDMA)|9A5220p]]
 
| [[TellurideVail 9A5220p (iPod touch 3G)|9A5220p]]
 
| [[TellurideVail 9A5220p (iPod touch 4G)|9A5220p]]
 
| [[TellurideVail 9A5220p (iPad)|9A5220p]]
 
| [[TellurideVail 9A5220p (iPad 2 Wi-Fi)|9A5220p]]
 
| [[TellurideVail 9A5220p (iPad 2 GSM)|9A5220p]]
 
| [[TellurideVail 9A5220p (iPad 2 CDMA)|9A5220p]]
 
| [[TellurideVail 9A5220p (Apple TV 2G)|9A5220p]]
 
|-
 
! style="text-align:left;" | 5.0b2
 
| [[TellurideVail 9A5248d (iPhone 3GS)|9A5248d]]
 
| [[TellurideVail 9A5248d (iPhone 4)|9A5248d]]
 
| [[TellurideVail 9A5248d (iPhone 4 CDMA)|9A5248d]]
 
| [[TellurideVail 9A5248d (iPod touch 3G)|9A5248d]]
 
| [[TellurideVail 9A5248d (iPod touch 4G)|9A5248d]]
 
| [[TellurideVail 9A5248d (iPad)|9A5248d]]
 
| [[TellurideVail 9A5248d (iPad 2 Wi-Fi)|9A5248d]]
 
| [[TellurideVail 9A5248d (iPad 2 GSM)|9A5248d]]
 
| [[TellurideVail 9A5248d (iPad 2 CDMA)|9A5248d]]
 
| [[TellurideVail 9A5248d (Apple TV 2G)|9A5248d]]
 
|-
 
! style="text-align:left;" | 5.0b3
 
| [[TellurideVail 9A5259f (iPhone 3GS)|9A5259f]]
 
| [[TellurideVail 9A5259f (iPhone 4)|9A5259f]]
 
| [[TellurideVail 9A5259f (iPhone 4 CDMA)|9A5259f]]
 
| [[TellurideVail 9A5259f (iPod touch 3G)|9A5259f]]
 
| [[TellurideVail 9A5259f (iPod touch 4G)|9A5259f]]
 
| [[TellurideVail 9A5259f (iPad)|9A5259f]]
 
| [[TellurideVail 9A5259f (iPad 2 Wi-Fi)|9A5259f]]
 
| [[TellurideVail 9A5259f (iPad 2 GSM)|9A5259f]]
 
| [[TellurideVail 9A5259f (iPad 2 CDMA)|9A5259f]]
 
| [[TellurideVail 9A5259f (Apple TV 2G)|9A5259f]]
 
|}
 
   
[[Category:VFDecrypt]]
+
[[Category:Decryption]]

Latest revision as of 10:42, 6 June 2022

Firmware Keys are keys which decrypt bootloaders, ramdisks, and root filesystem of iOS firmware, if those components are encrypted. Apple uses encryption to make it harder to analyze and modify them. Over time Apple changed the way they encrypt firmware files, hence the way to decrypt them and get decryption keys changed as well.

History

With the release of the iPhone came the IMG2 file format. They were used on all known iPhone OS 1.x firmwares. For the 1.1.x series, they were encrypted with the 0x837 key. The discovery of the 0x837 key led to the ability to decrypt any 1.x firmware.

Following IMG2 came the IMG3 file format. They were introduced with iPhone OS 2.0 beta 4, and have been in use ever since. In order to maintain their integrity, they use multiple layers of encryption. Apple took encryption seriously with IMG3 by utilizing AES (based on the Rinjndael key schedule). In terms of the pre-iPhone OS 3 VFDecrypt key, it is stored as plain-text in the "__restore" segment of the ASR image within the ramdisks.

The ramdisk keys can only be retrieved with the processor specific GID Key. The GID key is currently unretrievable and can only be utilized through the built-in AES engine. To complicate things even more, the engine is only accessible through a special bootrom or iBoot exploit (jailbreaks typically expose it with /dev/aes_0). This makes usage of the key nearly impossible.

However, once you have access to the AES engine, the entire system falls apart. You are able to upload an encrypted ramdisk and grab the decryption keys for it. Once you manage to decrypt the ramdisk, you can run it through GenPass to decrypt the firmware key.

To find the keys, you can either use the methods on AES Keys or the easier option for OS X, keylimepie.

Decrypting

Main article: Decrypting Firmwares

Notes

Certain files share the same key and IV per application processor (per build) provided the devices have the same pixel resolution:

You can use img3decrypt or xpwntool to decrypt these files as described in Decrypting Firmwares. Once done, mount or extract using the tool of your choice.

The firmware version number for the Apple TV builds are the ones that the Apple TV reports (also known as the "marketing version").

All dates are relative to UTC.

GID AES is used by iBoot to decrypt firmware images. When iBoot loads the kernelcache, GID AES is disabled. This means in order to get firmware keys, you must gain code execution in a setting where GID AES is still enabled. In most cases, this means exploiting iBoot itself, before the kernelcache is loaded.

Firmware Versions

See also: Prototypes

This is a full and comprehensive list of all firmwares Apple Inc. has made available to the public in some way, be it the dev center or iTunes. This list also contains a few firmwares for which there never was an IPSW (as far as can be told) such as 4.2.5 for the CDMA iPhone 4 (iPhone3,3). These few builds came preinstalled on the device, but are not available for download.

See also