According to Apple's iOS security documents, the secure boot chain utilized by iOS on bootup is the following:
BootROM verifies Low Level Bootloader; if failed, device enters DFU mode
LLB verifies iBoot, which verifies the kernel; if failed, device enters recovery mode
If I restore my iPhone from iTunes by manually entering DFU mode, will all system software be erased from the LLB upward and replaced with the newest iOS? If not, I am concerned that malware could reside in the bootloader(s) and remain with my device after the reset. Because I jailbroke my device back in iOS 8.1, I haven't updated it since and I thereby have been vulnerable to browser exploits, etc. I have not exercised good usage practices with web browsing, so I assume my phone has been compromised.
BootROM verifies Low Level Bootloader; if failed, device enters DFU mode
LLB verifies iBoot, which verifies the kernel; if failed, device enters recovery mode
If I restore my iPhone from iTunes by manually entering DFU mode, will all system software be erased from the LLB upward and replaced with the newest iOS? If not, I am concerned that malware could reside in the bootloader(s) and remain with my device after the reset. Because I jailbroke my device back in iOS 8.1, I haven't updated it since and I thereby have been vulnerable to browser exploits, etc. I have not exercised good usage practices with web browsing, so I assume my phone has been compromised.