iOS is a strong and widely used mobile device system. It’s annual profits make up about 90% of the total profits of all mobile phone brands. Though it is famous for its security, there have been many attacks on the iOS operating system, such as the Trident apt attack in 2016. So it is important to research the iOS security mechanism and understand its weaknesses and put forward targeted protection and security check framework. By studying these attacks and previous jailbreak tools, we can see that an attacker could only run a ROP code and gain kernel read and write permissions based on the ROP after exploiting kernel and user layer vulnerabilities. However, the iOS operating system is still protected by the code signing mechanism, the sandbox mechanism, and the not-writable mechanism of the system’s disk area. This is far from the steady, long-lasting control that attackers expect. Before iOS 9, breaking these security mechanisms was usually done by modifying the kernel’s important data structures and security mechanism code logic. However, after iOS 9, the kernel integrity protection mechanism was added to the 64-bit operating system and none of the previous methods were adapted to the new versions of iOS [1]. But this does not mean that attackers can not break through. Therefore, based on the analysis of the vulnerability of KPP security mechanism, this paper implements two possible breakthrough methods for kernel security mechanism for iOS9 and iOS10. Meanwhile, we propose a defense method based on kernel integrity detection and sensitive API call detection to defense breakthrough method mentioned above. And we make experiments to prove that this method can prevent and detect attack attempts or invaders effectively and timely.

1.
Team
,
Pangu
.
Hacking from iOS 8 to iOS 9
[EB/OL]. http://blog.pangu.io/wp-content/uploads/2015/11/POC2015_RUXCON2015.pdf.
2.
Levin
J.
*OS Internals Volume III Security&Insecurity
[M]. Technologeeks.com,
2016
.
3.
Bazaliy
M.
Hude
A.
Putin
V.
Fried Apples: Jailbreak DIY
[J].
Black Hat Asia
,
2017
.
4.
Tielei
Wang
.
Hao
Xu
.
Xiaobo
Chen
.
Pangu 9 Internals
.[J].
Black Hat US
,
2016
.
5.
Qwertyoruiop. Kpwn/yalu102
[EB/OL]. https://github.com/kpwn/yalu102.
6.
Xerub
.
Tick (FPU) Tock (IRQ)
[EB/OL]. https://xerub.github.io/ios/kpp/2017/04/13/tick-tock.html.
This content is only available via PDF.