Overview

This test verifies whether the app detects and responds to instrumentation and hooking attempts at runtime. For example, if the app does not terminate immediately when the following methods are called:

Warning

This list is just indicative, and each app may have its own defensive response mechanisms.

Steps

  1. Use MASTG-TECH-0005 to install the app.
  2. Use MASTG-TECH-0043 to hook the relevant API calls.
  3. Exercise the app extensively to trigger as many flows as possible and enter sensitive data wherever you can.

Observation

The output should contain one of the following:

Evaluation

The test case fails if the hook executes successfully and returns the expected data, indicating the app lacks runtime integrity verification.

The test case passes if the hooking attempt fails due to the app's defensive response (e.g., session terminates unexpectedly, hook callbacks never execute, or the process exits).

Note

Even if the test case passes, it might still be possible to bypass the app's defensive response. MASTG-KNOW-0030 and MASTG-KNOW-0032 describe such challenges.

Συνδεδεμένα ζητήματα

Συνδέσεις
Τύπος σύνδεσης Ζήτημα
is related to MASTG-BEST-0041 Hardening Against Runtime Hooking (Android)