iOS network checks
iOS App Transport Security (ATS) & pinning review
ATS enforces modern TLS defaults across Apple's URL loading system, while certificate pinning narrows trust to specific keys. A sound review separates weak defaults from verified interception.
How ATS protects iOS apps by default
App Transport Security is active by default for connections made through URLSession and higher-level Apple networking APIs. Without exceptions, iOS requires HTTPS over TLS 1.2 or higher, cipher suites that support forward secrecy, a server certificate signed with SHA-256 or stronger, and a valid chain to a system-trusted certificate authority. These baseline controls map directly to MASVS-NETWORK.
Teams weaken those defaults by adding keys under NSAppTransportSecurity in Info.plist. During review, inspect every exception key present in the app bundle and embedded extensions:
NSAllowsArbitraryLoads: disables ATS globally forURLSessionconnections, permitting cleartext HTTP and weaker TLS unless narrower keys override it.NSAllowsArbitraryLoadsInWebContent: relaxes ATS for embedded web views (WKWebView) while keeping ATS enforced for native API traffic.NSExceptionAllowsInsecureHTTPLoads: allows cleartext HTTP for a specific entry underNSExceptionDomains.NSExceptionMinimumTLSVersion: lowers the minimum protocol version (for example to TLS 1.0 or 1.1) for a named domain.NSExceptionRequiresForwardSecrecy: set tofalseto allow cipher suites without forward secrecy on a listed host.
Global vs scoped domain exceptions
Not every ATS exception carries the same risk. Setting NSAllowsArbitraryLoads to true removes platform transport protection across the entire app, making any accidental http:// URL or redirect reachable in plaintext. That configuration is a high-priority review candidate because a single misplaced endpoint can expose session tokens or user data.
A scoped NSExceptionDomains entry requires business-context triage. An exception targeting a local media host or legacy partner domain that carries no credentials has a different impact from an exception covering the primary authentication or billing API. Also check NSIncludesSubdomains and verify whether more specific keys such as NSAllowsArbitraryLoadsInWebContent cause iOS to ignore a broad NSAllowsArbitraryLoads flag on modern OS versions.
Keep configuration signals distinct from proven network compromise. In AppBreach's real iOS device reference run (public-iphone.pdf on the sample reports page), static IPA analysis flags a global ATS exception as a candidate for human confirmation rather than claiming live credential interception.
Custom TLS validation and certificate pinning on iOS
ATS does not prevent a user-installed or enterprise root CA from intercepting traffic, nor does it stop flawed custom trust handlers. When apps implement custom authentication challenges in URLSessionDelegate via urlSession(_:didReceive:completionHandler:), inspect how the SecTrust object is evaluated.
- Prefer standard evaluation first: call
SecTrustEvaluateWithErrorbefore applying extra checks, and never pass.useCredentialunconditionally when evaluation fails or when encountering an unknown host. - Declarative pinning via
Info.plist: since iOS 14, apps can declare pins underNSPinnedDomainsusing SHA-256 Subject Public Key Info (SPKI) hashes (NSPinnedLeafIdentitiesorNSPinnedCAIdentities) without writing custom delegate boilerplate. - Plan for rotation: include at least one backup SPKI hash from an independent key pair so an urgent certificate rotation does not lock users out of the app.
As on Android, distinguish missing pinning from broken validation. Missing pinning on an app with intact TLS validation is a defense-in-depth decision tied to the app's threat model; a delegate that unconditionally accepts invalid certificates allows active man-in-the-middle attacks on any untrusted network.
Static signals vs runtime verification
Static analysis of an authorized, unencrypted development or ad-hoc IPA reliably extracts Info.plist ATS dictionaries, NSPinnedDomains entries, embedded http:// strings, and Mach-O references to URLSessionDelegate or SecTrustEvaluateWithError. App Store binaries encrypted with FairPlay DRM leave Info.plist readable but prevent meaningful inspection of executable code.
Static configuration alone cannot prove live transport behavior. Confirming whether an app actually sends tokens over cleartext HTTP, enforces SPKI pins against a trusted test proxy CA, or bypasses trust errors inside a third-party SDK requires authorized runtime observation—for example, a tester-supplied Record Mode proxy capture or controlled proxy testing on an authorized device. Note also that low-level C/C++ sockets or bundled TLS stacks bypass ATS completely, so runtime traffic inspection catches gaps that Info.plist never mentions.
Reporting and remediation checklist
When writing an iOS network finding for engineering teams, anchor every claim to concrete artifacts and keep remediation actionable:
- Record the exact
Info.plistkey path (or Mach-O class/delegate location), build digest, and whether the finding is a static configuration candidate or backed by observed proxy traffic. - List each affected host and clarify whether the traffic carries credentials, session tokens, or public static assets.
- Prioritize fixing broken
URLSessionDelegatetrust logic and removing globalNSAllowsArbitraryLoadsflags before debating certificate pinning scope. - Replace broad disables with tightly scoped
NSExceptionDomainsentries where legacy hosts cannot be migrated immediately, and set a timeline to move remaining endpoints to HTTPS with TLS 1.2+. - Where high-value APIs require pinning, use SPKI hashes via
NSPinnedDomainsor vetted delegate logic with a tested backup key.
Review how AppBreach structures static candidates beside device observations on the sample reports page, or compare assessment tiers on the pricing page when planning an authorized iOS review.