312-50 exam dumps

312-50 practice question 400 of 473

Certified Ethical Hacker (CEH). Associate level, EC-Council. Free question with the correct answer and a full explanation.

312-50 Question 400

Single answer▪ Hacking iOS

During an authorized mobile application assessment, you are testing an iOS app that appears to enforce certificate pinning and additional jailbreak checks. The client has provided a test iPhone and approved dynamic analysis. Your goal is to observe the app's runtime behavior and intercept HTTPS traffic without modifying the server. Which approach is the MOST appropriate and realistic for bypassing these protections during the assessment?

  1. A

    Use a jailbroken test device and attach Frida/Objection to the app to hook certificate validation and jailbreak-detection routines at runtime

  2. B

    Install a user-added root CA certificate on the iPhone; this alone will bypass certificate pinning in most production iOS apps

  3. C

    Extract the IPA, decompile it, and directly read all Objective-C or Swift source to disable pinning before reinstalling the modified app

  4. D

    Use ARP spoofing on the Wi-Fi network to force the app to trust your proxy certificate and ignore jailbreak checks

Show answer and explanation

Correct answer: A

Explanation

The best answer is to use dynamic instrumentation on an authorized test device. In iOS app assessments, certificate pinning commonly defeats simple proxying even when a custom CA certificate is installed. Jailbreak checks may also prevent the app from running in a test environment. Tools such as Frida allow testers to hook Objective-C and native functions at runtime, which is a standard technique for bypassing both app-layer pinning and local environment checks during authorized assessments. This aligns with common mobile security testing methodology, including guidance from OWASP Mobile Application Security Testing Guide (MASTG), which discusses dynamic analysis, TLS interception challenges, and runtime instrumentation approaches for mobile applications. By contrast, merely adding a root certificate addresses only standard trust evaluation, not pinning; decompilation does not reliably provide editable source code; and ARP spoofing affects traffic routing, not application trust decisions or local anti-tamper logic.

  • A. Correct.

    Correct. In a legitimate iOS penetration test, using a jailbroken device together with dynamic instrumentation such as Frida or frameworks like Objection is a practical way to bypass runtime protections such as jailbreak checks and certificate pinning. Frida can hook methods involved in TLS trust evaluation or custom pinning logic and can also neutralize common jailbreak-detection APIs. This reflects real-world mobile app testing practice when the engagement rules permit runtime analysis on a test device.

  • B. Incorrect.

    Incorrect. Installing a user-trusted root CA is enough to intercept traffic only when the app relies on the default iOS trust store behavior. If the app implements certificate pinning, it compares the server certificate or public key against embedded expected values, so a proxy CA certificate alone will not bypass the pinning logic. This is a common misconception among testers new to mobile assessments.

  • C. Incorrect.

    Incorrect. An IPA can often be unpacked and analyzed, and class/method information may be recovered from Objective-C binaries, but you do not get the original source code simply by decompiling. Swift binaries are especially harder to reconstruct cleanly. In addition, modifying and reinstalling a resigned app may change behavior, trigger integrity protections, or be unnecessary when runtime instrumentation is available. This is less realistic as the best first approach for observing live traffic under pinning.

  • D. Incorrect.

    Incorrect. ARP spoofing may position a tester as a man-in-the-middle on the network, but it does not make the app trust a forged certificate and does nothing to disable local jailbreak checks. Certificate validation and jailbreak detection happen on the device and in the app, so network position alone is insufficient against pinning-aware iOS applications.

Timed practice exam

Take a 312-50 practice test under exam conditions

125 questions in 240 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam