The attacker can place a man-in-the-middle between the app and its backend, then read or alter the traffic in transit. That exposes tokens, session data, and other sensitive information. In practice, the app may still appear to work, which makes the compromise harder for users to notice quickly.
What certificate pinning changes in a mobile app connection
certificate pinning is meant to make the app trust only a specific certificate, public key, or tightly controlled set of trust anchors for its backend. Without that check, the app usually falls back to the device trust store, which means any certificate the operating system accepts can be used to intercept the session. That is the opening a malicious certificate relies on.
In practice, the failure is not just “the app is insecure,” but that the trust decision becomes shared with the device and its installed certificates. A user who adds a hostile root or intermediate certificate can make a forged server certificate look valid to the app, so the connection can be decrypted and re-encrypted in the middle without obvious breakage.
That matters because mobile apps often carry authentication cookies, bearer tokens, API responses, and other session material over the same channel. When the app does not pin, the attacker can observe those values, alter responses, or inject content while the user still sees a normal login flow or a functioning app. The control failure is therefore about trust binding, not just encryption in transit.
How the attacker can exploit the missing pinning
Once the malicious certificate is trusted, the attacker can stand up a man-in-the-middle position between the app and its backend. The proxy presents a forged certificate to the app, establishes a separate legitimate session to the backend, and relays traffic in both directions. If the app does not perform additional certificate or public key checks, this breaks the end-to-end trust the user expected.
The most serious consequence is disclosure of anything that the app sends or receives over that path. If the backend relies on bearer tokens, the attacker may capture enough material to reuse the session elsewhere. If the app exposes request bodies, identifiers, or business data, the attacker can collect or modify that traffic in real time. The breach can also be silent, because HTTPS indicators still look normal from the app’s perspective.
Mobile platforms and backend teams often underestimate how much damage a trusted local certificate can do when the app accepts the system CA set without stronger validation. This is why the IOS app secrets leakage report is relevant here: once sensitive material is exposed in transit or in the app, it becomes much easier to turn interception into real account or data compromise.
What good defenses look like for mobile transport trust
Pinning is one control, but the broader goal is to make the app verify that it is speaking to the intended backend and that the trust chain cannot be casually replaced on the client device. For systems that use mutual TLS or certificate-bound tokens, the trust relationship becomes even tighter, because both sides are asserting identity, not just encrypting a channel. The RFC 8705 mutual-TLS token binding model is a useful reference for that pattern.
Certificate lifecycle is also part of the defense, because teams that pin to a specific leaf certificate without a rotation plan can create outages when certificates change. A more resilient approach is to pin a stable public key, a controlled intermediate, or another design that supports planned rollover. For the certificate and key lifecycle side of that problem, Machine Identity, PKI and Certificate Lifecycle Guide is the right internal navigation point.
Where the app depends on broader certificate hygiene, the issuing and lifecycle rules outside the app also matter. The CA/Browser Forum helps explain why certificate issuance, revocation, and lifetime discipline are central to reducing the window in which a trusted certificate can be abused. NIST SP 800-57 Key Management is also useful when the security decision depends on key protection, rotation, and cryptoperiod discipline.
Risk and Threat Considerations
When pinning is absent, a hostile certificate can turn the user’s own device into a trust bypass. The main risk is not only eavesdropping, but also session theft and response tampering, which can preserve the appearance of a healthy app while the attacker quietly controls the exchange.
Failure mechanism: The app accepts a certificate chain anchored in the device trust store instead of verifying a backend-specific trust relationship, so the attacker’s certificate can terminate TLS and proxy the session.
Impact: Tokens, personal data, API payloads, and command responses can be read or modified in transit, creating account compromise, data exposure, and undetected manipulation.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP ASVS, NIST SP 800-53 Rev 5 and NIST SP 800-57 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V12 — Secure Communication | Mobile TLS trust and interception resistance directly concern secure transport validation. |
| Recommendation — Verify backend trust handling and reject client-side trust bypasses in transport security tests. | ||
| NIST SP 800-53 Rev 5 | SC-8 — Transmission Confidentiality and Integrity | The question is about protecting data in transit from MITM interception and alteration. |
| Recommendation — Enforce cryptographic protection and validate that transport paths resist interception and tampering. | ||
| ISO/IEC 27001:2022 | A.8.24 — Use of cryptography | Certificate pinning and TLS trust controls are cryptographic safeguards for transmitted data. |
| Recommendation — Specify and verify cryptographic transport controls for mobile backend connections. | ||
| NIST SP 800-57 | Key Management Recommendations | Certificate pinning and rollover depend on disciplined key and certificate lifecycle management. |
| Recommendation — Apply key lifecycle controls that preserve rotation safety without weakening trust. | ||
Practitioner Guidance
What to verify: Confirm whether the mobile client pins at the certificate, public key, or trust-anchor level, and test whether a locally installed user CA can still intercept traffic. If it can, treat the app as MITM-exposed rather than assuming HTTPS alone is sufficient.
Decision rule: If the app exchanges bearer tokens, session cookies, or other reusable credentials, prioritize transport trust hardening before you rely on backend-only compensating controls. Backend authorization does not prevent an attacker from stealing the material that authorizes the session in the first place.
Common mistake: Teams often pin too tightly to a single leaf certificate and then discover that certificate renewal breaks production. The better operational question is whether the pinning design supports safe rotation without reopening the trust boundary.
Practitioner takeaway: The real objective is to make interception fail closed, while still leaving enough certificate agility to renew and recover without forcing users or release teams into emergency exceptions.
Related resources from NHI Mgmt Group
- What happens when biometric authentication or certificate pinning is implemented poorly in a mobile app?
- What happens when mobile banking is used on a device with a malicious message-forwarding app?
- What happens when a user authorizes a malicious OAuth app in a consent phishing attack?
- What happens when a malicious mobile app passes code review but behaves differently at runtime?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org