IOS PENTESTING // JAILBREAK // DYNAMIC ANALYSIS LAB
IOS APPLICATION SECURITY

Jailbreaking iPhone and Setting Up Dynamic Analysis Lab

FRIDA // CYDIA // APPSYNC // BURP SUITE // AFC2

researcher
Naveen Jagadeesan
published
2021-03-10
platform
iOS / Dynamic Analysis

iOS Pen-testing dynamic analysis lab setup.

dynamic analysis lab

This article documents the complete setup process for building an iOS dynamic analysis lab for penetration testing.

The guide covers:

Hardware Information

device info

Preface

  1. Disclaimer
  2. Jailbreaking iPhone 6
  3. Installing Tools and Components
  4. Installing IPA Files
  5. Connecting via OpenSSH
  6. Installing Burp Certificates

Disclaimer

This research is intended strictly for educational purposes and security testing in authorized environments.

Jailbreaking

Several jailbreak frameworks exist for iOS devices. During testing, checkra1n was initially used successfully on iOS 11.4.8.

However, after device reboot the jailbreak state was lost and the device repeatedly entered recovery mode without reaching DFU mode.

The workaround involved using unc0ver directly from Safari.

Install unc0ver

Navigate to:


https://ipa-apps.me

Download unc0ver v6.1.1 for iOS 11.0–14.3 devices.

unc0ver

Run unc0ver

Launch unc0ver and select Jailbreak.

run unc0ver

If the jailbreak process fails:

restore rootfs

Once successful the device installs Cydia automatically.

What is Cydia?

Cydia acts as an unofficial package manager for jailbroken iOS devices and enables installation of tweaks, tooling and unsigned applications.

cydia

Install AppSync Unified

AppSync Unified allows installation of unsigned IPA files.

Add the repository:


cydia.angelxwind.net
repo

Search and install:


AppSync Unified
appsync appsync installed

Install AFC2 Patch

AFC2 enables full filesystem access over USB.

Search for:


Apple File Conduit "2"
afc2 afc2 installed

Install Frida

Frida is a dynamic instrumentation framework widely used for runtime analysis and application hooking.


frida-ps -U

Installing IPA Files

Unsigned IPA files can be installed using 3uTools.

3utools ipa install

Installing Burp Suite Certificates

To intercept HTTPS traffic:

burp burp config certificate install certificate verified trust certificate

Connect via OpenSSH

OpenSSH is automatically installed after jailbreaking.


ssh root@

Default password:


alpine

Permanent Jailbreaking

Untethered jailbreak state can be preserved using SafeShutdown.

Add the repository:


http://apt.cydiakk.com
safeshutdown repo install safeshutdown install tweak

Configure SafeShutdown

safeshutdown config disable tweak hold lock enable tweak

SafeShutdown prevents jailbreak core files from being removed during unexpected power loss or shutdown.

Additional Resources

Conclusion

A properly configured iOS dynamic analysis environment significantly improves application assessment capabilities.

Combining jailbreak tooling, Frida instrumentation, Burp Suite, and filesystem access provides a complete platform for advanced mobile application testing.

Thank you for reading.