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.

examplesauth_bypass.md

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

Example: Authentication Bypass

Goal: find logic flaws in login, biometric, and session handling.

Tool-call blueprint

frida_run_script(pid, "credential_hooks.js")
frida_run_script(pid, "biometric_bypass.js")
frida_hook_method(pid, "com.megabank.mobile.auth.SessionManager", "*")
frida_run_script(pid, """
Java.perform(function() {
    var JWT = Java.use('com.auth0.jwt.JWT');
    JWT.decode.implementation = function(t) { console.log('[JWT] ' + t); return this.decode(t); };
});
""")

Observations to flag

  • credential_hooks.js: password written to SharedPreferences, token appears in Authorization: Bearer … header
  • biometric_bypass.js: BiometricPrompt.authenticate() success callback invoked without server verification → bypass
  • SessionManager.*: validateSession() only checks local JWT expiry; refreshSession() skips server round-trip
  • JWT decode: alg=HS256 with low-entropy secret, claims include account_id, role, permissions

Findings table

Issue Severity MASTG Impact
Biometric bypass (client-only) HIGH MASTG-TEST-0015 Full account access
Client-side session validation HIGH MASTG-TEST-0016 Persistent unauth access
Weak JWT algorithm + sensitive claims MEDIUM MASTG-TEST-0014 Token forgery

UI-driven repro

Use Mobile MCP get_screen_state → tap_element to replay the biometric prompt while hooks are active; capture a screenshot at the unlocked-home state as evidence.

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