main logo icon

Published on

December 5, 2026

|

21 min read

iOS App Penetration Testing (2026): What It Covers, How It Works and What It Finds

iOS app penetration testing for security and product leads: OWASP MASVS and MASTG applied to iOS, Keychain and Data Protection, ATS and pinning, links, WebViews, extensions, App Attest, the backend API, the report and duration.

Arafat Afzalzada

Arafat Afzalzada

Founder

Web App Security

Summarize with AI

ChatGPTPerplexityGeminiGrokClaude

TL;DR

iOS app penetration testing is a security test of an iPhone or iPad app and the backend API it calls: static analysis of the IPA, dynamic analysis on a device the testers control, and server-side testing, verified against OWASP MASVS v2.1.0. The OWASP MASTG test index listed 129 iOS tests on 5 December 2026, of which 88 are current; MASVS-PLATFORM (23), MASVS-RESILIENCE (15) and MASVS-STORAGE (12) carry the most. The iOS-specific checks follow Apple's own controls: Keychain and Data Protection classes, App Transport Security and its exceptions, certificate pinning, URL schemes and universal links, WKWebView, extensions and app groups, entitlements, privacy manifests and App Attest. OWASP's iOS guide says testers "should have a jailbroken iPhone or iPad"; a re-signed build or the Simulator covers less, and the Simulator does not reproduce the Secure Enclave or keychain protection classes. Stingrai's iOS testing is human-led by two named penetration testers, takes typically 3 to 5 testing days for one iOS build and its backend API, is quoted to scope, and every engagement comes with an attestation letter.

iOS app penetration testing is a security test of an iPhone or iPad app and the backend API it calls: penetration testers analyse the IPA, run it on a device they control, and try to defeat the controls Apple and the developer put in place. It is verified against OWASP MASVS v2.1.0 and its iOS test procedures.

Quick answer. An iOS penetration test covers the eight OWASP MASVS control groups (STORAGE, CRYPTO, AUTH, NETWORK, PLATFORM, CODE, RESILIENCE, PRIVACY) as they apply to iOS: Keychain and Data Protection classes, App Transport Security and certificate pinning, URL schemes and universal links, WKWebView, app extensions, entitlements, privacy manifests and App Attest, plus the backend API, where the MASVS says authorization "must be on the remote endpoint". The MASTG test index listed 129 iOS tests on 5 December 2026, 88 of them current. Stingrai runs iOS tests human-led, by two named penetration testers, typically in 3 to 5 testing days for one build and its backend API, quoted to scope, with an attestation letter.

This guide is for the security lead or product owner at a mid-market or enterprise company that ships an iPhone or iPad app with a backend API, and needs to know what a credible iOS test covers, how it runs, what it tends to find, what the report must show and how to pick a provider. It stays at the level a buyer and a defender need: no tool tutorials, no commands and no jailbreak instructions. For the platform-neutral method see mobile application security testing; for the price question see mobile app penetration testing cost.

What does an iOS app penetration test cover?

The scope is set by the OWASP Mobile Application Security project, which publishes three linked documents. The MASVS is the standard: eight control groups and 24 controls, from MASVS-STORAGE-1 ("The app securely stores sensitive data") to MASVS-PRIVACY-4. The MASWE names the weaknesses, and the MASTG holds the test procedures, written separately for Android and iOS. The current releases on OWASP's GitHub are MASVS v2.1.0 (18 January 2024), MASTG v2.0.0 (30 June 2026) and MASWE v1.0.0 (17 August 2026).

The MASVS states its own boundary. It is "designed to evaluate the security of mobile apps that can be analyzed statically by obtaining the app package, dynamically by running it on a potentially compromised device, and also considers any network-based attacks such as MITM". It assumes the backend was built to its own standard, and names the OWASP ASVS for the server. An iOS test that stops at the IPA therefore leaves out the part of the system most likely to hold a Critical finding, which is why Stingrai scopes the backend API into the same engagement.

How many iOS tests does the MASTG contain?

On 5 December 2026 the MASTG test index listed 294 tests across both platforms, 129 of them for iOS. Of the 129, 88 are current and 41 are deprecated. Counted by the MASVS group in each test's path, the current iOS tests are weighted towards the platform surface: 23 PLATFORM tests, 15 RESILIENCE, 12 STORAGE, 11 NETWORK, 8 CRYPTO, 8 CODE, 6 AUTH and 5 PRIVACY. Ask a provider whether its coverage statement refers to current tests, because a count that includes deprecated ones overstates coverage.

Horizontal stacked bar chart of the 129 iOS tests in the OWASP MASTG by MASVS group, current versus deprecated, 5 December 2026

Figure 1: iOS tests in the OWASP MASTG test index by MASVS control group, current versus deprecated, counted on 5 December 2026. Source: OWASP MASTG Tests.

Which MAS profile should the test run against?

The old MASVS levels are now MAS Testing Profiles, defined by attacker model. MAS-L1 assumes "other applications installed on the device are adversaries"; MAS-L2 assumes "the operating system cannot be trusted, and attackers may have physical access to the device"; MAS-R assumes "the user of the device is an attacker, including reverse engineers and cheaters"; MAS-P covers privacy. Of the 88 current iOS tests, 40 carry the L1 tag, 69 the L2 tag, 13 the R tag and 6 the P tag (a test can carry more than one). OWASP says apps "should undergo a threat model" before choosing, and its examples put banking and insurance apps at L2+P+R and messaging and health apps at L2+P. For most mid-market and enterprise apps that hold accounts, payments or health data, Stingrai's guidance is to scope L2+P at least and add R where the business model depends on the client not being modified.

What does the tester check on each iOS surface?

The table below is the part of an iOS test that differs from Android app penetration testing. Each row pairs Apple's control, as Apple documents it, with what the test checks and the MASVS group and current MASTG iOS tests that verify it. The "what the test checks" column is Stingrai's guidance, not a standard's text.

iOS surface

Apple's control

What the penetration test checks

MASVS group

Current MASTG iOS tests (examples)

Keychain

Items encrypted with AES-256-GCM keys; accessibility classes; access control lists evaluated in the Secure Enclave

Accessibility class of every token and key; "this device only" versus migratory items; whether biometric checks are bound to the item or only to the screen

STORAGE, AUTH

0266, 0268 (biometric binding and fallback)

Files and Data Protection

Classes A to D; Class C is the default for third-party app data

Sensitive files in Complete Protection where the threat model needs it; backup exclusion; caches, logs and snapshots

STORAGE

0299, 0215, 0298

App Transport Security

TLS 1.2 or later by default for apps linked against the iOS 9.0 SDK or later

Every exception and its justification; traffic sent through low-level APIs that ATS does not cover

NETWORK

0322, 0323, 0342

Certificate pinning

NSPinnedDomains in Info.plist, or custom trust evaluation

Pins present for every endpoint the developer controls; delegates that weaken validation; how the release build holds up under instrumentation

NETWORK

0385, 0396, 0397

URL schemes and universal links

Apple calls both "a potential attack vector into your app"

Parameter validation, caller validation, and whether a link can trigger a sensitive action

PLATFORM

0370, 0371, 0395

WKWebView

Replaced UIWebView from iOS 8; navigation delegate controls what loads

Attacker-controlled URLs, file access, JavaScript-to-native bridges, deprecated web view APIs

PLATFORM

0331, 0332, 0333, 0376, 0379

App extensions and app groups

Extensions run sandboxed in their own container; app groups share a container

Sensitive data in shared app group containers; whether third-party keyboards are refused on sensitive screens

STORAGE, PLATFORM

0388, 0389, 0390

Entitlements

Key-value pairs in the code signature that "can't be changed"

Capabilities the app does not need; a debuggable entitlement in a release build

PRIVACY, RESILIENCE

0362, 0261

Privacy manifest and required-reason APIs

PrivacyInfo.xcprivacy; App Store Connect has refused undeclared required-reason API use since 1 May 2024

Declared data collection and tracking domains against what the app actually sends; purpose strings

PRIVACY

0281, 0360

App Attest and DeviceCheck

Secure Enclave key certified by Apple; the server verifies attestations and assertions

Whether the server verifies, which requests require an assertion, and what happens when a device cannot attest

RESILIENCE

MASWE-0054 (Device Attestation Not Implemented)

Jailbreak detection

Not an Apple control; the app's own check

Whether detection holds under instrumentation, and what the app and server do when it fires

RESILIENCE

0240, 0241

Backend API

Outside the device; MASVS-AUTH-1 puts enforcement "on the remote endpoint"

Object-level and function-level authorization for every role, token handling, business logic

AUTH (server side)

Scoped with the OWASP ASVS and API Security Top 10

The sections that follow explain each row at the level a defender needs.

Keychain and Data Protection classes

Apple's keychain data protection page describes the keychain as the place for "passwords and other short but sensitive bits of data, such as keys and login tokens". Items are encrypted "using two different AES-256-GCM keys", and "keychain items can be shared only between apps from the same developer". Each item has an accessibility class that mirrors the file classes: kSecAttrAccessibleWhenUnlocked, kSecAttrAccessibleAfterFirstUnlock, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly and so on. The "this device only" variants are protected so that a backup restored to another device renders the item useless. Items can also carry access control lists that require Face ID, Touch ID or the passcode, and can be invalidated if biometric enrolment changes; "ACLs are evaluated inside the Secure Enclave".

Files follow the Data Protection classes. Class A, Complete Protection, discards its key "shortly after the user locks a device (10 seconds, if the Require Password setting is Immediately)". Class C, Protected Until First User Authentication, keeps its key in memory after the first unlock, and Apple notes that it "is the default class for all third-party app data not otherwise assigned to a Data Protection class". Class D, No Protection, "only affords the benefit of fast remote wipe".

The test question is whether the classes chosen match the threat model. A refresh token in a migratory, after-first-unlock keychain item, a health record in a default Class C file, a biometric prompt that unlocks the screen but not the key: none of these is a coding error a scanner flags, and each matters under a MAS-L2 attacker who has the device. On a jailbroken device the testers read what the app stored and in which class, which is the evidence an L2 claim needs.

App Transport Security and its exceptions

Apple's App Transport Security "operates by default for apps linked against the iOS 9.0 or macOS 10.11 SDKs or later" and requires TLS 1.2 or later, SHA-256 certificates, RSA keys of at least 2048 bits or ECC keys of at least 256 bits, AES-128 or AES-256, and forward secrecy. Developers can loosen it in Info.plist, and Apple is blunt about the cost: "Exceptions reduce the security of your app." Five exceptions require a justification when the app is submitted to the App Store: NSAllowsArbitraryLoads, NSAllowsArbitraryLoadsForMedia, NSAllowsArbitraryLoadsInWebContent, NSExceptionAllowsInsecureHTTPLoads and NSExceptionMinimumTLSVersion.

Two details shape the test. First, NSAllowsArbitraryLoads "completely disable[s] ATS for all network connections", so one convenience setting left over from development undoes the default. Second, "ATS doesn't apply to calls your app makes to lower-level networking interfaces like the Network framework or CFNetwork". An app, or an SDK inside it, that opens its own sockets is outside ATS, and the MASTG has a current test for cleartext traffic sent through those low-level APIs (MASTG-TEST-0323). The testers read the Info.plist, then confirm on the wire what the app actually sends.

Certificate pinning

MASVS-NETWORK-2 says "the app performs identity pinning for all remote endpoints under the developer's control", so that "only very specific CAs are trusted". On iOS this can be declared rather than coded: NSPinnedDomains lists expected CA or sub-CA certificates and expected leaf certificates per domain, and "if you specify both, App Transport Security (ATS) requires a match in each category". Apple's ATS page adds that with ATS enabled you cannot loosen trust evaluation in code, but you can tighten it, for example to implement certificate pinning.

The test checks three things: whether pins exist for every endpoint the developer controls (MASTG-TEST-0385, "Missing Certificate Pinning in ATS", an L2 test), whether a URLSession or WKNavigationDelegate implementation weakens certificate validation (MASTG-TEST-0396 and 0397), and how the release build holds up when the testers instrument it. Pinning raises the cost of intercepting traffic; it does not stop someone who controls the device, which is why the server must not trust the client's checks. Stingrai's SSL pinning bypass write-up covers the defender's side of this in more depth.

Apple's documentation carries the same warning for both entry points. On custom URL schemes: "URL schemes offer a potential attack vector into your app, so make sure to validate all URL parameters and discard any malformed URLs." Apple adds that a reverse-DNS identifier "doesn't prevent other apps from registering the same scheme", that "if multiple apps register the same scheme, the app the system targets is undefined", and that "universal links are strongly recommended". Universal links require "a two-way association between your app and your website", but Apple still says to validate every parameter and not to let a link "directly delete content or access sensitive information about the user".

The current MASTG iOS tests split this into missing input validation in URL scheme handlers (0370), missing source validation in those handlers (0371) and missing input validation in universal link handlers (0395). In practice the testers enumerate every scheme and associated domain the app declares, then check whether a crafted link can complete a sign-in, change account state, open an attacker-chosen page inside a web view or skip a confirmation step. OWASP files the weakness as MASWE-0029, Insecure Deep Links, under MASVS-PLATFORM-1.

WKWebView and JavaScript bridges

WKWebView "replaces the UIWebView class in iOS 8 and later", and its navigation delegate lets the app "prevent the user from navigating to new content unless specific conditions are met". MASVS-PLATFORM-2 ("The app uses WebViews securely") singles out "sensitive functionality exposure (e.g. via JavaScript bridges to native code)". The current iOS tests follow that line: deprecated web view APIs (0331), attacker-controlled URLs loaded into a web view (0332), overly broad file read access (0333), native bridge APIs exposed to page script (0376) and evaluateJavaScript used without content world isolation (0379).

A hybrid app that renders account pages in a web view inherits web application risk inside the mobile binary. The test traces which origins each web view can load, whether a deep link can steer it, and which native functions page script can call. ATS also has a web-only exception, NSAllowsArbitraryLoadsInWebContent, which the testers check for.

App extensions and app groups

Extensions are where iOS apps quietly widen their attack surface. Apple's platform security guide on supporting extensions says extensions "run in their own address space", "are sandboxed like any other third-party app and have a container separate from the containing app's container", but "share the same access to privacy controls as the container app". To share data, the app and its extensions join an app group, which gives "multiple apps developed by the same team" access to "one or more shared containers".

That shared container is the test target: tokens, cached records or a database copied there for a widget or a share extension sit outside the main app's container (MASTG-TEST-0388). Custom keyboards are the other iOS-specific case. Apple runs them "in a very restrictive sandbox that blocks access to the network" unless the user grants Open Access, and "app developers can prevent the use of third-party keyboard extensions within their app". The testers check whether a banking or health app refuses third-party keyboards on sensitive fields (0389) and, if the company ships its own keyboard extension, whether it requests full access (0390).

Entitlements

An entitlement "is a right or privilege that grants particular capabilities to an executable", stored "as key-value pairs embedded in the code signature". Apple's runtime security page adds that "since entitlements are digitally signed, they can't be changed". The test reads the signed entitlements of the app and of every extension and asks two questions: does the app hold capabilities it does not use (MASTG-TEST-0362, a privacy test), and does a release build carry a debugging entitlement (0261, a resilience test). Entitlements also define keychain access groups and app groups, so they decide which other apps from the same team can read the app's secrets.

Privacy manifests and required-reason APIs

Since WWDC23 Apple has asked apps and third-party SDKs to describe their data use in a privacy manifest, a property list "named PrivacyInfo.xcprivacy" that records collected data types, tracking domains and the "required reasons APIs" the code uses. The required-reason API rule exists because some APIs can be "misused to access device signals to try to identify the device or user, also known as fingerprinting", and "starting May 1, 2024, apps that don't describe their use of required reason API in their privacy manifest file aren't accepted by App Store Connect". Apple also keeps a list of third-party SDKs that must ship a privacy manifest and a signature; it named 86 SDKs on 5 December 2026, and it reminds developers that "you are responsible for all the code the SDK includes in your app".

A privacy manifest is a declaration, and a penetration test compares declarations with behaviour. The current MASTG privacy tests check for undeclared known tracking domains (0281) and whether purpose strings match the protected resources the app actually reaches (0360). Where the manifest declares tracking domains, Apple says requests to them fail if the user has not granted tracking permission, so traffic to an undeclared tracker is a finding with a privacy and a store-review dimension.

App Attest and DeviceCheck

Apple's App Attest documentation opens with the principle every mobile security programme should adopt: "You can't rely on your app's logic to perform security checks on itself because a compromised app can falsify the results." App Attest creates a key in the Secure Enclave, "from where no process can ever directly read or modify it", has Apple certify it, and signs requests the server then verifies. The server-side guide lists the checks: a one-time challenge, the certificate chain, the App ID hash, a counter, the environment and a stored public key that must not already belong to another user.

The limits are in Apple's own text. "Not all devices can use the App Attest service." Among extensions, only action, extensible SSO and watchOS extensions are supported. Keys "don't survive app reinstallation, device migration, or restoration of a device from a backup." And on the DeviceCheck overview: "App Attest can't definitively pinpoint a device with a compromised operating system." So the test does not ask "is App Attest present?" but whether the server verifies it, which requests require an assertion, and what the server does for devices that cannot attest. OWASP records the absence as MASWE-0054, Device Attestation Not Implemented, under MASVS-RESILIENCE-1.

Jailbreak detection as defence in depth

MASVS-RESILIENCE-1 says "the app validates the integrity of the platform", because a tampered OS "may disable certain security features". OWASP's iOS guide is equally clear about the limit: some apps detect jailbroken devices, "however, there are several ways to get around these detections". Jailbreak detection is therefore a cost-raising control in the MAS-R profile (MASTG-TEST-0240 and 0241 are both R-tagged), not a boundary. The test measures how long the detection holds under instrumentation and, more importantly, whether anything on the server changes when it fires. The finding and its fix are covered in detail in root and jailbreak detection bypass.

The backend API

The MASVS-AUTH-1 commentary settles where the important controls live: "the enforcement of these mechanisms must be on the remote endpoint." The iOS client can hide a button; only the server can refuse the request. Broken object-level authorization, missing function-level checks, mass assignment and business logic that trusts a client-supplied price or role are the findings most likely to be rated Critical in a mobile engagement, and none of them is visible from the IPA alone. Stingrai tests the API the app calls in the same engagement, with an account for every role, using the checks in the API penetration testing checklist.

How does an iOS penetration test work?

The MASTG describes five phases (preparation, intelligence gathering, mapping the application, exploitation and reporting), and an iOS engagement follows them with three methods that cover different ground.

Static analysis of the IPA. The testers unpack the app and read the Info.plist (ATS exceptions, URL schemes, associated domains, usage descriptions), the signed entitlements of the app and each extension, the privacy manifests, the embedded frameworks and their versions, and the compiled code. Hardcoded keys, ATS exceptions, weak validation delegates, over-broad entitlements and vulnerable SDKs surface here. The MASTG advises "that you request the source code so that you can use the testing time as efficiently as possible", and source access turns many runtime hypotheses into quick confirmations.

Dynamic analysis on a device. The app runs on a device the testers control, with traffic through an intercepting proxy and runtime instrumentation (Stingrai's service page names Frida and Objection) to observe keychain writes, file classes, pinning, jailbreak checks and the logic behind each screen. Every role and every workflow is walked, and every request is replayed and tampered with.

Backend API testing. The same requests are then tested against the server for authorization, business logic and token handling, because that is where the MASVS puts enforcement.

The MASTG also recommends asking for "two of the app's build variants": a release build "so that you can determine whether the implemented controls are working properly and can't be bypassed easily", and "a debug build for which certain security controls have been deactivated", so pinning and jailbreak detection do not consume the testing days needed for storage, logic and the API. Stingrai's guidance: provide both, plus a TestFlight or ad hoc build the testers can install, and agree in writing which controls the debug build disables.

Does the test need a jailbroken iPhone?

For full MAS-L2 evidence, yes. OWASP's iOS testing guide says "you should have a jailbroken iPhone or iPad for running tests", because it gives "root access to the file system", "unrestricted debugging and dynamic analysis" and "access to the Objective-C or Swift runtime". Without one, the guide warns, "be prepared for a more difficult experience". Jailbreaks exist only for some iOS versions and Apple patches them, so the guide notes "it is a challenge to have a device which is running a version of iOS for which a jailbreak is available"; established testing teams keep dedicated devices for that reason.

There are two alternatives, and each covers less. OWASP's MASTG-TECH-0146 describes instrumenting a repackaged, re-signed build on a stock device "while remaining inside the standard iOS sandbox". It "requires a non-encrypted app binary"; a development, enterprise or self-built build needs no jailbreak at any stage, while an App Store binary needs temporary jailbroken access to decrypt. The iOS Simulator runs only apps built for it ("apps compiled for a real device can't run in the Simulator") and, in OWASP's words, "does not perfectly replicate real-device behavior, especially for hardware-backed features such as Secure Enclave, biometrics, keychain protection classes, push notifications, and certain anti-debugging or jailbreak-detection checks". A test run only on the Simulator cannot support a claim about keychain classes or jailbreak detection.

Table comparing a jailbroken device, a repackaged build on a stock device and the iOS Simulator for iOS penetration testing

Figure 2: Three ways to run an iOS penetration test, and what each can verify. Sources: OWASP MASTG, iOS Security Testing, OWASP MASTG-TECH-0146. The last column is Stingrai's reading.

For a buyer, the practical consequence is a question to ask every provider: which iOS versions and which device setups will you test on, and which findings depend on a jailbroken device? A report should say which setup produced each finding.

How does the OWASP Mobile Top 10 map to an iOS test?

The OWASP Mobile Top 10 (2024) is the awareness list many RFPs quote. It maps onto iOS checks as follows; the right-hand column is Stingrai's reading, and the full list is explained in the OWASP Mobile Top 10 guide.

OWASP Mobile Top 10 (2024)

Where it shows up in an iOS test

M1: Improper Credential Usage

Hardcoded API keys in the IPA; credentials in UserDefaults or plist files instead of the keychain

M2: Inadequate Supply Chain Security

Embedded frameworks with known vulnerabilities; SDKs missing privacy manifests or signatures

M3: Insecure Authentication/Authorization

Biometric checks not bound to a keychain item; object-level authorization missing on the API

M4: Insufficient Input/Output Validation

URL scheme and universal link handlers; web view bridges; deserialization of untrusted data

M5: Insecure Communication

ATS exceptions; low-level networking outside ATS; missing or weakened pinning

M6: Inadequate Privacy Controls

Undeclared tracking domains; purpose strings that do not match behaviour; pasteboard and snapshot leaks

M7: Insufficient Binary Protections

Jailbreak, debugger and hook detection; obfuscation of security-relevant code

M8: Security Misconfiguration

Debugging entitlement in a release build; over-broad entitlements; shared app group containers

M9: Insecure Data Storage

Data Protection class choices; backups; caches, logs and keyboard caches

M10: Insufficient Cryptography

Weak algorithms and modes; hardcoded keys; insecure random number generation

The Top 10 is a list of risk categories, not a test plan. A report that only maps findings to M1 to M10, without a MASVS coverage statement, cannot show what was tested and found clean.

What does an iOS penetration test usually find?

The findings cluster where Apple leaves a decision to the developer. In Stingrai's engagements, without client detail, the recurring iOS findings are:

  • Storage class choices. Session and refresh tokens in migratory keychain items or UserDefaults; sensitive files left in the default Class C; data copied into an app group container for a widget and never protected there.

  • Transport exceptions. A broad ATS exception added during development and shipped; an analytics or chat SDK sending traffic through a socket that ATS does not see; pinning present for the main API but not for an authentication or file-upload host.

  • Link handling. A universal link or URL scheme that completes an action (accept an invitation, link an account, open a payment screen) without confirming the caller or the user's intent.

  • Web views. An in-app browser that loads a URL taken from a link parameter, or a bridge that exposes native functions to any page the web view can reach.

  • Client-side trust. Jailbreak detection, App Attest or a "premium" flag checked only on the device, with the server serving the request regardless.

  • The backend API. Records belonging to other users returned by changing an identifier, administrative endpoints reachable with a standard user's token, prices or limits taken from the client. These are usually the Criticals.

What should an iOS penetration test report contain?

The MASTG says a good report "should include information such as, but not limited to" an executive summary, scope and context, methods used, sources of information, prioritised findings, detailed findings and "recommendations for fixing each defect". For iOS, Stingrai's guidance adds items that make the report usable as engineering input and audit evidence:

  1. Build identification. App version, build number and hash of the IPA tested, plus the iOS versions and device models used and whether each was jailbroken, stock or a Simulator.

  2. A MASVS coverage matrix. Eight rows, each marked tested, tested with exceptions or out of scope, with the MAS profile and the current MASTG test identifiers exercised.

  3. Per-finding evidence engineers can replay. The request and response, the code location or plist key, the device setup that produced it and whether it reproduces on the release build.

  4. Server-side findings separated from client-side ones, so the API team and the iOS team each get their own list.

  5. Retest results and an attestation letter. The status of every finding after the fix, and a letter stating scope and testing dates for customers and auditors.

How long does an iOS penetration test take, and what drives scope?

Stingrai's mobile service page gives "typically 3 to 5 testing days" for one iOS or Android build "and its backend API, with test accounts for each role in scope", and typically 5 to 10 testing days for iOS and Android together, and notes that large APIs and deep resilience testing add days. The page lists the variables that set the number of days:

  • Platforms. iOS alone, or iOS and Android; each is a separate binary with its own storage, IPC and resilience surface.

  • User roles. Each role adds authorization testing on the device and the API.

  • Backend API size. The number of endpoints the app calls, and any API not reachable from the app.

  • Resilience depth. How far pinning, jailbreak detection, anti-tamper and obfuscation are tested; MAS-R work adds days.

  • Source code access. White-box review shortens discovery and adds code-level findings.

  • Cadence. A one-time assessment or a continuous program that tests significant releases.

Two inputs move the calendar more than the testing does: an installable build the testers can instrument, ideally the release and debug pair the MASTG recommends, and one test account per role. Stingrai publishes no package price for mobile work; engagements are quoted to scope through Get a Quote, with pricing within 24 hours and the retest included. Published market prices and a quote worksheet are in the mobile app penetration testing cost guide.

How often should an iOS app be tested?

The MASTG observes that internal tests "can be performed quite often, but third-party testing happens at most once or twice a year". Stingrai's guidance is to tie the third-party test to major releases and to changes in authentication, payments or data handling, not only to the audit date, and to run automated checks on every build in between. Automated tools have a place there, but the MASTG is clear that they "will only find what they have been programmed to find" and that "a security professional must therefore always review the results".

How do you choose an iOS penetration testing provider?

Stingrai's guidance is to ask every provider the same eight questions and compare the written answers:

  1. Which MAS profile will you test against, and will the report include a MASVS coverage matrix with current MASTG test identifiers?

  2. Which iOS versions and devices will you use, and do you test on jailbroken hardware? Which findings depend on it?

  3. Is the backend API in scope, with an account for every role, and tested by the same people?

  4. Will you test the release build's pinning and jailbreak detection as well as a debug build?

  5. Do you review entitlements, app extensions, app group containers and privacy manifests, not only the main app?

  6. How do you verify App Attest or other attestation on the server side?

  7. Is a retest included, and is an attestation letter issued?

  8. Who are the named penetration testers, and what certifications do they hold?

A provider that answers 1 to 3 vaguely is selling a scan. For the broader view of providers, see best mobile app penetration testing companies and mobile application penetration testing services.

How Stingrai tests iOS apps

Stingrai is a global CREST-accredited penetration testing services company founded in Toronto, Canada in 2021, trusted by companies from startups to enterprises to meet audit requirements for SOC 2, ISO 27001, CMMC, PCI DSS and HIPAA. OSCE³, OSWE, OSEP, CREST CRT certified penetration testers, who are also world-class security researchers and bug bounty hunters. Choose from fully human-led or hybrid (AI agents plus human penetration testers) engagements across web, API, mobile, AI and LLM, cloud, network, Active Directory and social engineering penetration tests and red team engagements. On the CREST Marketplace, Stingrai Inc holds the Penetration Testing and AI-Enabled Penetration Testing accreditations and the CREST AI Charter company certification.

Stingrai's mobile application penetration testing is human-led. On iOS it covers static and dynamic analysis of the IPA: Keychain and local data storage, App Transport Security and certificate pinning, jailbreak detection, Swift and Objective-C runtime instrumentation, URL schemes, universal links, WebViews and third-party SDK behaviour, with the backend API tested by the same penetration testers in the same engagement. Two named penetration testers from a team holding OSCE³, OSWE, OSEP, CREST CRT and CISSP certifications run the work, reviewed by the team lead and an engagement partner. Findings are posted to the PTaaS portal as they are confirmed; the report carries a MASVS coverage matrix; fixed findings are retested; and every engagement comes with an attestation letter stating scope and testing dates. The testing supports SOC 2, ISO 27001, PCI DSS and HIPAA programs and produces the evidence they consume. Stingrai runs both one-time (annual) mobile engagements and continuous programs that test significant releases.

Where the backend the iOS app calls is also a web application with its own users, Stingrai's Hybrid Pentest covers it: Snipe, Stingrai's autonomous agent for web applications and associated APIs, tests the full application while Stingrai's penetration testers test the same application manually alongside it and validate Snipe's findings, so coverage is wider and deeper than either alone. The Hybrid Pentest is US$6,800 per assessment one-time, or US$1,275 per month on a 12-month engagement for monthly Snipe testing, human-verified, plus a quarterly deep dive by Stingrai's penetration testers, for one web application and associated APIs, as listed on the pricing page. The iOS binary itself is always tested by Stingrai's penetration testers and quoted through Get a Quote.

How to prepare for an iOS penetration test

Stingrai's checklist for the weeks before testing starts:

  1. Pick the MAS profile. Run a short threat model and choose L1, L2, R and P combinations for the app.

  2. Provide the builds. A release build and a debug build with the disabled controls listed, installable through TestFlight or ad hoc distribution.

  3. Create the accounts. One test account per role, with realistic data, on a non-production backend where possible.

  4. Share the API description. An OpenAPI or GraphQL schema and the list of hosts the app calls, including third-party services.

  5. List the extensions and SDKs. Every extension target, app group and embedded SDK, with versions.

  6. Offer source access. Read access to the repository shortens discovery and turns hypotheses into confirmations.

  7. Name an engineering contact. One iOS engineer and one backend engineer who can answer questions during testing.

Frequently Asked Questions

What is iOS app penetration testing?

iOS app penetration testing is a security test of an iPhone or iPad app and the backend API it calls. Penetration testers analyse the IPA statically, run the app on a device they control, and test the server-side controls the app relies on. The work is verified against the OWASP MASVS v2.1.0, whose eight control groups are STORAGE, CRYPTO, AUTH, NETWORK, PLATFORM, CODE, RESILIENCE and PRIVACY, using the iOS procedures in the OWASP MASTG.

How many OWASP MASTG tests apply to iOS?

The OWASP MASTG test index listed 129 iOS tests on 5 December 2026, of which 88 were current and 41 deprecated. By MASVS group, the current iOS tests were 23 PLATFORM, 15 RESILIENCE, 12 STORAGE, 11 NETWORK, 8 CRYPTO, 8 CODE, 6 AUTH and 5 PRIVACY. A provider's coverage statement should refer to current tests and to the MAS profile chosen for the app.

Do iOS penetration testers need a jailbroken device?

For full evidence on storage and resilience, yes. The OWASP MASTG says testers "should have a jailbroken iPhone or iPad for running tests", because it gives root access to the file system, unrestricted debugging and access to the Objective-C or Swift runtime. A repackaged, re-signed build on a stock device covers app logic and traffic, and the iOS Simulator does not reproduce the Secure Enclave, biometrics or keychain protection classes.

Is the backend API part of an iOS penetration test?

It should be, and it is worth confirming in writing. The MASVS-AUTH-1 commentary says enforcement of authentication and authorization "must be on the remote endpoint", so broken authorization and business logic flaws live on the API, where Critical findings usually are. Stingrai tests the iOS binary and the backend API in the same engagement, with a test account for every role.

What iOS-specific issues does a penetration test look for?

The iOS-specific checks follow Apple's own controls: the accessibility class of keychain items and the Data Protection class of files, App Transport Security exceptions and traffic outside ATS, certificate pinning, custom URL schemes and universal links, WKWebView configuration and JavaScript bridges, app extensions and shared app group containers, entitlements, privacy manifests and required-reason APIs, and whether the server verifies App Attest.

Is jailbreak detection required for an iOS app?

Not for every app. Jailbreak detection belongs to MASVS-RESILIENCE and the MAS-R profile, which assumes the device's user is the attacker, and OWASP notes there are "several ways to get around these detections". It is defence in depth. The control that holds is on the server: verify App Attest assertions there and decide what a request from an unattested or modified client may do.

How long does an iOS app penetration test take?

Stingrai's published duration is typically 3 to 5 testing days for one iOS build and its backend API, with test accounts for each role in scope, and typically 5 to 10 testing days for iOS and Android together. Large APIs and deep resilience testing add days. The calendar depends on an installable build, ideally a release and a debug build, and one test account per role.

How much does an iOS penetration test cost?

Stingrai publishes no package price for mobile work; iOS engagements are quoted to scope through Get a Quote, with pricing within 24 hours and the retest included. The variables that move a quote are the number of platforms, user roles, backend API size, resilience depth, source code access and cadence. Published market prices and a quote worksheet are in Stingrai's mobile app penetration testing cost guide.

References

  1. OWASP. OWASP MASVS; Using the MASVS; MASVS controls AUTH-1, NETWORK-2, PLATFORM-1, PLATFORM-2, RESILIENCE-1, STORAGE-1. Read 5 December 2026. https://mas.owasp.org/MASVS/, https://mas.owasp.org/MASVS/03-Using_the_MASVS/, https://mas.owasp.org/MASVS/controls/MASVS-AUTH-1/. Control groups, scope assumptions, control text.

  2. OWASP. MAS Testing Profiles. Read 5 December 2026. https://mas.owasp.org/Profiles/. Attacker models and example apps.

  3. OWASP. MASTG Tests index. Read 5 December 2026. https://mas.owasp.org/MASTG/tests/. Counts by platform, status, profile and MASVS group; test titles.

  4. OWASP. MASTG, iOS Security Testing. Read 5 December 2026. https://mas.owasp.org/MASTG/0x06b-iOS-Security-Testing/. Jailbroken devices, the Simulator, detection bypass.

  5. OWASP. MASTG-TECH-0146, Dynamic Analysis on Non-Jailbroken Devices. Read 5 December 2026. https://mas.owasp.org/MASTG/techniques/ios/MASTG-TECH-0146/. Repackaged builds and Simulator limits.

  6. OWASP. MASTG, Mobile Application Security Testing. Read 5 December 2026. https://mas.owasp.org/MASTG/0x04b-Mobile-App-Security-Testing/. Phases, build variants, report contents, automated tools.

  7. OWASP. GitHub releases: OWASP/masvs v2.1.0, OWASP/mastg v2.0.0, OWASP/maswe v1.0.0. Read 5 December 2026. https://github.com/OWASP/masvs/releases/tag/v2.1.0, https://github.com/OWASP/mastg/releases/tag/v2.0.0, https://github.com/OWASP/maswe/releases/tag/v1.0.0.

  8. OWASP. Mobile Top 10, 2024 Final Release. Read 5 December 2026. https://owasp.org/www-project-mobile-top-10/2023-risks/.

  9. Apple. Apple Platform Security: Keychain data protection; Data Protection classes; Security of runtime process; Supporting extensions. Published 19 December 2024, read 5 December 2026. https://support.apple.com/guide/security/keychain-data-protection-secb0694df1a/web, https://support.apple.com/guide/security/data-protection-classes-secb010e978a/web, https://support.apple.com/guide/security/security-of-runtime-process-sec15bfe098e/web, https://support.apple.com/guide/security/supporting-extensions-secabd3504cd/web.

  10. Apple. Preventing Insecure Network Connections; NSPinnedDomains. Read 5 December 2026. https://developer.apple.com/documentation/security/preventing-insecure-network-connections, https://developer.apple.com/documentation/bundleresources/information-property-list/nsapptransportsecurity/nspinneddomains.

  11. Apple. Defining a custom URL scheme for your app; Supporting universal links in your app; WKWebView. Read 5 December 2026. https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app, https://developer.apple.com/documentation/xcode/supporting-universal-links-in-your-app, https://developer.apple.com/documentation/webkit/wkwebview.

  12. Apple. Configuring app groups; Entitlements. Read 5 December 2026. https://developer.apple.com/documentation/xcode/configuring-app-groups, https://developer.apple.com/documentation/bundleresources/entitlements.

  13. Apple. Privacy manifest files; Describing use of required reason API; Third-party SDK requirements. Read 5 December 2026. https://developer.apple.com/documentation/bundleresources/privacy-manifest-files, https://developer.apple.com/documentation/bundleresources/describing-use-of-required-reason-api, https://developer.apple.com/support/third-party-SDK-requirements/.

  14. Apple. Establishing your app's integrity; Validating apps that connect to your server; DeviceCheck. Read 5 December 2026. https://developer.apple.com/documentation/devicecheck/establishing-your-app-s-integrity, https://developer.apple.com/documentation/devicecheck/validating-apps-that-connect-to-your-server, https://developer.apple.com/documentation/devicecheck.

  15. Stingrai. Mobile Application Penetration Testing; Pricing. Read 5 December 2026. https://www.stingrai.io/services/mobile-application-penetration-testing, https://www.stingrai.io/pricing. iOS scope, durations, deliverables and the web application package prices.

  16. CREST. CREST Marketplace: Stingrai Inc. Read 5 December 2026. https://marketplace.crest.org/supplier/stingrai-inc/.

Talk to Stingrai

Tell us the iOS build, the roles and the API behind it, and the engagement comes back scoped to the MAS profile your threat model needs. Get a Quote for pricing within 24 hours, or book a free discovery call to walk through builds, devices and the API boundary first.

0 views

0

X

Related reading

Access Control Vulnerability Statistics 2026: Authorization, IDOR and Privilege CVEs
Web App Security

Access Control Vulnerability Statistics 2026: Authorization, IDOR and Privilege CVEs

Access control vulnerability statistics 2026: 19,319 NVD CVEs to 4 December, 17.6% of all, and 56.0% need only a low-privilege login. Stingrai's count.

14 min read

Android App Penetration Testing (2026): What It Covers, How It Works and What It Finds
Web App Security

Android App Penetration Testing (2026): What It Covers, How It Works and What It Finds

Android app penetration testing for buyers: MASVS and MASTG coverage, the backend API, Keystore, intents, WebViews, Play Integrity, MASA and reporting.

19 min read

Business Logic Vulnerabilities (2026): Examples, Why Scanners Miss Them and How to Test
Web App Security

Business Logic Vulnerabilities (2026): Examples, Why Scanners Miss Them and How to Test

Business logic vulnerabilities explained: nine classes with examples, why scanners miss them, how penetration testers test each one, and the fix for each.

24 min read

Contents

X