DevPrep

All topics › Security

Jailbreak detection: what can it do and where are its limits?

Senior PRO

Essence

A jailbreak lifts the sandbox and code-signing restrictions: the device can run any code, inject libraries into other processes and hook function calls. For an app this means the device owner controls its process: they can read memory, change the results of checks and call internal methods. Jailbreak detection tries to notice such an environment, but it operates on the same ground as the attacker.

The rest of this answer, with code and interview follow-ups, is in the DevPrep app.

Read the full answer in DevPrep

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store