cve.bz

CAPEC-660

Root/Jailbreak Detection Evasion via Hooking

Very High severityMedium likelihoodDetailed pattern

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.

On this page

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-660: Root/Jailbreak Detection Evasion via Hooking: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/660.html and https://cve.bz/cve/capec/660?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.

How the attack unfolds

  1. Explore

    The attacker looks for a way in.

    1. [Identify application with attack potential] The adversary searches for and identifies a mobile application that could be exploited for malicious purposes (e.g. banking, voting, or medical applications).

      1 technique
      • Search application stores for mobile applications worth exploiting
  2. Experiment

    They probe what they found.

    1. [Develop code to be hooked into chosen target application] The adversary develops code or leverages existing code that will be hooked into the target application in order to evade Root/Jailbreak detection methods.

      3 techniques
      • 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.
  3. Exploit

    They carry out the attack.

    1. [Execute code hooking to evade Root/Jailbreak detection methods] Once hooking code has been developed or obtained, execute the code against the target application to evade Root/Jailbreak detection methods.

      1 technique
      • Hook code into the target application.

Prerequisites

  • The targeted application must be non-restricted to allow code hooking.

Skills required

  • High skill

    Knowledge about Root/Jailbreak detection and evasion techniques.

  • Medium skill

    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.

Consequences

What a successful attack can lead to
ImpactAffectsNote
Execute Unauthorized CommandsIntegrity, AuthorizationThrough Root/Jailbreak Detection Evasion via Hooking, the adversary compromises the integrity of the application.
Gain PrivilegesConfidentiality, Access Control, Authorization
Read DataConfidentiality, Access ControlAn adversary may leverage Root/Jailbreak Detection Evasion via Hooking in order to obtain sensitive information.

Mitigations

  • Ensure mobile applications are signed appropriately to avoid code inclusion via hooking.

  • Inspect the application's memory for suspicious artifacts, such as shared objects/JARs or dylibs, after other Root/Jailbreak detection methods.

  • Inspect the application's stack trace for suspicious method calls.

  • Allow legitimate native methods, and check for non-allowed native methods during Root/Jailbreak detection methods.

  • For iOS applications, ensure application methods do not originate from outside of Apple's SDK.

Weaknesses it exploits

  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere

Recent CVEs with these weaknesses

  1. 8.4CVE-2026-128115

    claw-code versions 0.1.11 through 0.1.16 load stdio MCP server definitions from project-controlled configuration files and start their configured commands during startup tool discovery. A repository can therefore cause a program to execute…

  2. 7.8CVE-2026-137191

    Vite+ is a unified toolchain and entry point for web development. From 0.2.9 until 1.5.1, the global vp setup path downloads the pinned pnpm package manager through download_package_manager and executes it without comparing the bytes to a …

  3. 8.1CVE-2026-135802

    When Request::getBaseUrl() does not find the script name at the start of the request URI, it looks for it further into the path. This supports web servers that rewrite every URL to a front controller in a subdirectory. The base URL then ke…

  4. 7.3CVE-2026-133781

    The controllers.json loader of @symfony/stimulus-bridge loads the package.json file of each package listed in controllers.json with require(). Node resolves this path through the exports field of the package, which can map ./package.json t…

  5. 7.5CVE-2026-129840

    In the nrfconnect/ncs-zigbee repository, the GitHub Actions workflow .github/workflows/build_documentation.yml used the pull_request_target trigger while checking out and executing untrusted pull request code. This allowed a pull request f…

  6. 8.8CVE-2026-131261

    In Splunk SOAR versions below 8.8.0, a user that holds a role with the Apps edit permission could execute arbitrary code as the user account that runs Splunk SOAR by installing a malicious app. The vulnerability is possible because Splunk …

  7. 7.2CVE-2026-131256

    In Splunk SOAR versions below 8.8.0, an authenticated user that holds a role with the System Settings edit permission could execute arbitrary code on the host that runs Splunk SOAR. The vulnerability is possible because the Representationa…

  8. 5.9CVE-2026-131201

    In Splunk Enterprise Security versions below 8.7.0, an unauthenticated user with network-path interception capability could cause attacker-controlled JavaScript to run in the browser of a security analyst who previews a Portable Document F…

The newest records naming one of them. Each weakness's page lists them all.

Part of

Examples

An adversary targets a non-restricted iOS banking application in an attempt to compromise sensitive user data…

An adversary targets a non-restricted iOS banking application in an attempt to compromise sensitive user data. The adversary creates Objective-C runtime code that always returns "false" when checking for the existence of the Cydia application. The malicious code is then dynamically loaded into the application via the DYLD_INSERT_LIBRARIES environment variable. When the banking applications checks for Cydia, the hooked code returns "false", so the application assumes the device is stock (i.e. not Jailbroken) and allows it to access the application. However, the adversary has just evaded Jailbreak detection and is now able to glean user credentials and/or transaction details.

An adversary targets a mobile voting application on an Android device with the goal of committing voter fraud…

An adversary targets a mobile voting application on an Android device with the goal of committing voter fraud. Leveraging the Xposed framework, the adversary is able to create and hook Java code into the application that bypasses Root detection methods. When the voting application attempts to detect a Rooted device by checking for commonly known installed packages associated with Rooting, the hooked code removes the suspicious packages before returning to the application. As a result, the application believes the device is stock (i.e. not Rooted) when in actuality this is not the case. Having evading Root detection, the adversary is now able to cast votes for the candidate of their choosing as a variety of different users.

MITRE's words, unchanged: CAPEC-660 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.