All skills
hardw00t avatar

/android-pentest

@f9bb3b2

Comprehensive Android mobile application penetration testing with rooted-device ADB and Frida-based MCP tooling. Covers OWASP MASTG full methodology: recon, static + dynamic analysis, SSL/root bypass, IPC fuzzing, data exfiltration, crypto audit, and reporting. Triggers on requests to pentest Android apps, analyze APKs, bypass mobile security controls, or run MASVS/MASTG assessments.

Use this Skill: https://skilld.dev/gh/hardw00t/ai-security-arsenal/android-pentest

This session only. Nothing lands on disk.

workflowsssl_pinning_bypass.md

≈395 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Workflow: SSL Pinning Bypass

Three progressive methods — try in order, escalate only on failure.

Method 1 — Universal Frida bypass

Covers OkHttp, TrustManager, WebView, and Conscrypt pinning.

pid = frida_spawn("com.target.app")
frida_bypass_ssl(pid)

Method 2 — Custom app-specific pinner

Identify the pinner class with jadx (search: certificate, pin, ssl, trust), then:

frida_run_script(pid, """
Java.perform(function() {
    var CustomPinner = Java.use('com.target.app.security.Pinner');
    CustomPinner.verify.implementation = function() {
        console.log('[+] Bypassed custom pinner');
        return true;
    };
});
""")

Method 3 — Flutter / native SSL (BoringSSL)

frida_run_script(pid, """
Interceptor.attach(Module.findExportByName("libssl.so", "SSL_CTX_set_custom_verify"), {
    onEnter: function(args) {
        args[2] = new NativeCallback(function() { return 0; }, 'int', ['pointer', 'pointer']);
    }
});
""")

Escalation checklist if traffic still fails

  1. Confirm Burp CA installed into system store (not just user store on Android 7+).
  2. Check network_security_config.xml for cleartextTrafficPermitted=false and custom trust anchors.
  3. Try objection -g com.target.app explore → android sslpinning disable.
  4. Embed frida-gadget into APK for persistent injection.
  5. Hook pthread_create to evade Frida-thread detection (see anti_tampering_bypass.js).

Verification

Drive a login through the proxy; confirm TLS handshake succeeds and request body appears in Burp.

Source: SKILL.md on GitHub

1 warning16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill provides a comprehensive environment and automated workflows for Android mobile application penetration testing. It interfaces with standard industry tools like ADB and Frida to perform security audits aligned with the OWASP MASTG methodology. While it performs sensitive operations like command execution and remote tool downloads, these are transparently implemented for its stated purpose using trusted sources.

  • Socket16d

    21 alerts: gptSecurity, gptAnomaly

  • Snyk16d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    2 findings · Score: 80/100

Signed by skilld at f9bb3b2. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 6 months ago

README badge

README badge for hardw00t/ai-security-arsenal/android-pentest