---
title: "iOS Pentesting Checklist"
section: "Mobile"
sectionSlug: "mobile-pentesting"
sourcePath: "src/mobile-pentesting/ios-pentesting-checklist.md"
sourceUrl: "https://github.com/HackTricks-wiki/hacktricks/blob/188de82beb54e70956b2952367a0af91d26758b8/src/mobile-pentesting/ios-pentesting-checklist.md"
sha: "188de82beb54e70956b2952367a0af91d26758b8"
isIndex: false
modified: true
license: "CC-BY-NC-4.0"
---
# iOS Pentesting Checklist
### Preparation
- [ ] Read [**iOS Basics**](/hacktricks/mobile-pentesting/ios-pentesting/ios-basics)
- [ ] Read [**iOS Basic Testing Operations**](/hacktricks/mobile-pentesting/ios-pentesting/basic-ios-testing-operations) to learn current extraction, installation, and filesystem access workflows
- [ ] Prepare your environment reading [**iOS Testing Environment**](/hacktricks/mobile-pentesting/ios-pentesting/ios-testing-environment)
- [ ] If you are testing on **iOS 16+**, enable **Developer Mode** and decide if you need a simulator, a paired physical device (`xcrun devicectl`), or a jailbroken/rootless device
- [ ] If a jailbreak isn't available, review [**iOS Pentesting without Jailbreak**](/hacktricks/mobile-pentesting/ios-pentesting/ios-pentesting-without-jailbreak)
- [ ] Read all the sections of [**iOS Initial Analysis**](ios-pentesting/index.html#initial-analysis) to learn common actions to pentest an iOS application
- [ ] Extract [**entitlements**](/hacktricks/mobile-pentesting/ios-pentesting/extracting-entitlements-from-compiled-application) early and review **Associated Domains**, **App Groups**, **keychain access groups**, extension points, `get-task-allow`, and unusual capabilities
- [ ] Review `Info.plist` for `CFBundleURLTypes`, `LSApplicationQueriesSchemes`, `NSAppTransportSecurity`, `WKAppBoundDomains`, and `.appex` extension declarations
### Data Storage
- [ ] [**Plist files**](ios-pentesting/index.html#plist) can be used to store sensitive information.
- [ ] [**Core Data**](ios-pentesting/index.html#core-data) (SQLite database) can store sensitive information.
- [ ] [**YapDatabases**](ios-pentesting/index.html#yapdatabase) (SQLite database) can store sensitive information.
- [ ] [**Firebase**](ios-pentesting/index.html#firebase-real-time-databases) misconfiguration.
- [ ] [**Realm databases**](ios-pentesting/index.html#realm-databases) can store sensitive information.
- [ ] [**Couchbase Lite databases**](ios-pentesting/index.html#couchbase-lite-databases) can store sensitive information.
- [ ] [**Binary cookies**](ios-pentesting/index.html#cookies) can store sensitive information
- [ ] [**Cache data**](ios-pentesting/index.html#cache) can store sensitive information
- [ ] [**Automatic snapshots**](ios-pentesting/index.html#snapshots) can save visual sensitive information
- [ ] [**Keychain**](ios-pentesting/index.html#keychain) is usually used to store sensitive information that can be left when reselling the phone.
- [ ] If the app uses **App Groups**, inspect the **shared container** and **shared preferences** reachable by the main app, widgets, and share extensions<sup>[[1]](#references)</sup>
- [ ] Review **Data Protection / NSFileProtection** classes in both the app container and any group container, especially files left as `NSFileProtectionNone` or `NSFileProtectionCompleteUntilFirstUserAuthentication`
- [ ] Review **Keychain** item protections (`kSecAttrAccessible*`, `SecAccessControl`) and any **keychain access groups**; secrets intended to be device/biometry-bound should use restrictive flags such as `ThisDeviceOnly` / `biometryCurrentSet`
- [ ] In summary, just **check for sensitive information saved by the application in the filesystem**
### Keyboards
- [ ] Does the application [**allow the use of custom keyboards**](ios-pentesting/index.html#custom-keyboards-keyboard-cache)?
- [ ] Check if sensitive information is saved in the [**keyboards cache files**](ios-pentesting/index.html#custom-keyboards-keyboard-cache)
### **Logs**
- [ ] Check if [**sensitive information is being logged**](ios-pentesting/index.html#logs)
- [ ] Check **unified logging** and crash artifacts in addition to app-controlled logs, especially after login, token refresh, deep link handling, and WebView activity
### Backups
- [ ] [**Backups**](ios-pentesting/index.html#backups) can be used to **access sensitive information** saved in the file system (check the initial point of this checklist)
- [ ] Also, [**backups**](ios-pentesting/index.html#backups) can be used to **modify some configurations of the application**, then **restore** the backup on the phone, and then as the **modified configuration** is **loaded** some (security) **functionality** may be **bypassed**
- [ ] Verify whether secrets expected to be **device-only** or **non-migratable** survive backup / restore or device-to-device migration because the app uses a migratable Keychain class
### **Applications Memory**
- [ ] Check for sensitive information inside the [**application's memory**](ios-pentesting/index.html#testing-memory-for-sensitive-data)
### **Broken Cryptography**
- [ ] Check if you can find [**passwords used for cryptography**](ios-pentesting/index.html#broken-cryptography)
- [ ] Check for the use of [**deprecated/weak algorithms**](ios-pentesting/index.html#broken-cryptography) to send/store sensitive data
- [ ] [**Hook and monitor cryptography functions**](ios-pentesting/index.html#broken-cryptography)
### **Local Authentication**
- [ ] If a [**local authentication**](ios-pentesting/index.html#local-authentication) is used in the application, you should check how the authentication is working.
- [ ] If the app treats a successful [**Local Authentication Framework**](ios-pentesting/index.html#local-authentication-framework) callback as the only authorization check, test whether hooking that callback bypasses the gate. Stronger designs bind access to a Keychain key protected by `SecAccessControl` rather than trusting a Boolean result alone.
- [ ] If it's using a [**function that can be dynamically bypassed**](ios-pentesting/index.html#local-authentication-using-keychain) you could create a custom Frida script
- [ ] Check for **`LAContext` reuse** / `touchIDAuthenticationAllowableReuseDuration` so sensitive actions succeed because the device was recently unlocked instead of triggering a fresh biometric prompt
- [ ] If keychain items are unlocked with biometrics, verify whether biometric enrollment changes invalidate them (`biometryCurrentSet`) or if they remain accessible unexpectedly
### Sensitive Functionality Exposure Through IPC
- [**Custom URI Handlers / Deeplinks / Custom Schemes**](ios-pentesting/index.html#custom-uri-handlers-deeplinks-custom-schemes)
- [ ] Check if the application is **registering any protocol/scheme**
- [ ] Check if the application is **registering to use** any protocol/scheme
- [ ] Check if the application **expects to receive any kind of sensitive information** from the custom scheme that can be **intercepted** by another application registering the same scheme
- [ ] Check if the application **isn't checking and sanitizing** user input via the custom scheme and some **vulnerability can be exploited**
- [ ] Check if the application **exposes any sensitive action** that can be called from anywhere via the custom scheme
- [ ] If OAuth / SSO callbacks use **custom schemes**, test **scheme hijacking** with a malicious app and prefer claimed `https` / Universal Links for auth callbacks
- [**Universal Links**](ios-pentesting/index.html#universal-links)
- [ ] Check if the application is **registering any universal protocol/scheme**
- [ ] Check the `apple-app-site-association` file
- [ ] Audit the AASA for **wildcards / over-broad `paths` or `components`** and sensitive or unpublished routes
- [ ] Verify undefined routes that still match AASA rules return **404** and that wildcard subdomains are not over-trusted
- [ ] Check if the application **isn't checking and sanitizing** user input via the universal link and some **vulnerability can be exploited**
- [ ] Check if the application **exposes any sensitive action** that can be called from anywhere via the universal link
- [**UIActivity Sharing**](/hacktricks/mobile-pentesting/ios-pentesting/ios-uiactivity-sharing)
- [ ] Check if the application can receive UIActivities and if it's possible to exploit any vulnerability with specially crafted activity
- [**UIPasteboard**](/hacktricks/mobile-pentesting/ios-pentesting/ios-uipasteboard)
- [ ] Check if the application is **copying anything to the general pasteboard**
- [ ] Check if the application is **using the data from the general pasteboard for anything**
- [ ] Monitor the pasteboard to see if any **sensitive data is copied**
- [**App Extensions**](/hacktricks/mobile-pentesting/ios-pentesting/ios-app-extensions)
- [ ] Is the application **using any extension**?
- [ ] Enumerate every `.appex`, inspect `NSExtensionActivationRule`, and map which **App Group** / shared container each extension can reach
- [**WebViews**](/hacktricks/mobile-pentesting/ios-pentesting/ios-webviews)
- [ ] Check which kind of webviews are being used
- [ ] Check the status of **`javaScriptEnabled`**, **`JavaScriptCanOpenWindowsAutomatically`**, **`hasOnlySecureContent`**
- [ ] Check if the webview can **access local files** with the protocol **`file://`** (`allowFileAccessFromFileURLs`, `allowUniversalAccessFromFileURLs`)
- [ ] Check if JavaScript can access **native methods** (`JSContext`, `postMessage`)
- [ ] Check if the app opted into `WKAppBoundDomains` / `limitsNavigationsToAppBoundDomains` when using hybrid content or privileged JS bridges<sup>[[2]](#references)</sup>
- [ ] If `WKScriptMessageHandler` / `postMessage` bridges exist, confirm they validate the **current URL/origin/frame** before dispatching privileged native functionality
- [ ] Check whether `WKWebView.isInspectable` / `JSContext.isInspectable` is enabled in production builds or can be flipped at runtime to inspect embedded JavaScript
### Network Communication
- [ ] Perform a [**MitM to the communication**](ios-pentesting/index.html#network-communication) and search for web vulnerabilities.
- [ ] Check if the [**hostname of the certificate**](ios-pentesting/index.html#hostname-check) is checked
- [ ] Check/Bypass [**Certificate Pinning**](ios-pentesting/index.html#certificate-pinning)
- [ ] Review `NSAppTransportSecurity` for `NSAllowsArbitraryLoads`, `NSAllowsArbitraryLoadsInWebContent`, `NSAllowsLocalNetworking`, per-domain `NSExceptionDomains`, and legacy `NSTemporaryException*` keys
- [ ] If the app uses lower-level sockets, IP literals, or `.local` hosts, test those flows separately because ATS protections may not apply
### **Misc**
- [ ] Check for [**automatic patching/updating**](ios-pentesting/index.html#hot-patching-enforced-updateing) mechanisms
- [ ] Check for [**malicious third party libraries**](ios-pentesting/index.html#third-parties)
- [ ] Review third-party SDKs / hybrid frameworks for embedded **WebViews**, **App Groups**, **custom URL schemes**, analytics beacons, or hot-patching logic that silently widens the attack surface
## References
- [1] [Apple Platform Security: App protection and app groups in iOS, iPadOS, and visionOS](https://support.apple.com/en-us/guide/security/sec1a976c067/web)
- [2] [WebKit: App-Bound Domains](https://webkit.org/blog/10882/app-bound-domains/)