CAPEC-660
Root/Jailbreak Detection Evasion via Hooking
An adversary forces a non-restricted mobile application to load arbitrary code or code files, via Hooking, with the goal of evading Root/Jailbreak detection. Mobile device users often Root/Jailbreak their devices in order to gain administrative control over the mobile operating system and/or to install third-party mobile applications that are not provided by authorized application stores (e.g. Google Play Store and Apple App Store). Adversaries may further leverage these capabilities to escalate privileges or bypass access control on legitimate applications. Although many mobile applications check if a mobile device is Rooted/Jailbroken prior to authorized use of the application, adversaries may be able to "hook" code in order to circumvent these checks. Successfully evading Root/Jailbreak detection allows an adversary to execute administrative commands, obtain confidential data, impersonate legitimate users of the application, and more.
Abstraction
Detailed
Typical severity
Very High
Likelihood of attack
Medium
Understand the attack
What is this attack pattern?
Execution flow
How does the attack proceed, step by step?
Explore
Identify application with attack potential
Techniques used
- Search application stores for mobile applications worth exploiting
Experiment
Develop code to be hooked into chosen target application
Techniques used
- Develop code or leverage existing code to bypass Root/Jailbreak detection methods.
- Test the code to see if it works.
- Iteratively develop the code until Root/Jailbreak detection methods are evaded.
Exploit
Execute code hooking to evade Root/Jailbreak detection methods
Techniques used
- Hook code into the target application.
Requirements
What does the attack require?
Prerequisites
- The targeted application must be non-restricted to allow code hooking.
Skills required
- High: Knowledge about Root/Jailbreak detection and evasion techniques.
- Medium: Knowledge about code hooking.
Resources required
- The adversary must have a Rooted/Jailbroken mobile device.
- The adversary needs to have enough access to the target application to control the included code or file.
Impact
What does a successful attack lead to?
Affected scopes: Integrity, Authorization
Affected scopes: Confidentiality, Access Control, Authorization
Affected scopes: Confidentiality, Access Control
Defence
How is it prevented and mitigated?
Real world