Debugging an Undebuggable App

The author discovered an app that has advanced protections like blocking debuggers, crashing the phone with a jailbreak, and exits if code is injected. The challenge is to bypass these protections to mod the app and see how it works. The app utilizes ptrace to prevent debugging, which is a private API on iOS. By understanding the inner workings of the ptrace function, the author successfully bypasses this protection using assembly code to skip the system call entirely. The author also demonstrates how to search for specific assembly instructions in the app’s binary and sets breakpoints to bypass the ptrace function effectively.

https://bryce.co/undebuggable/

To top