Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计异常

android-pentest安卓渗透测试

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

626

周安装

34

GitHub Stars

39

下载量

280
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:android-pentest(安卓渗透测试)
来源仓库:https://github.com/hardw00t/ai-security-arsenal
仓库路径:skills/android-pentest
安装命令:
npx skills add https://github.com/hardw00t/ai-security-arsenal --skill android-pentest
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hardw00t/ai-security-arsenal --skill android-pentest

简介

用于辅助测试设计、自动化测试、用例整理和回归验证。

  • 适用于 Android 应用安全评估,包括 ADB + Frida + Mobile MCP 工具链的使用。
  • 提供 SSL 证书锁定绕过、本地存储提取、组件暴露测试和安全合规性映射。
  • 安装命令:npx skills add https://github.com/hardw00t/ai-security-arsenal --skill android-pentest
  • 注意权限范围和维护状态,避免触发不必要的联网或文件操作。

SKILL.md

Android Mobile Application Penetration Testing

Thin router for full MASTG-aligned Android assessments via ADB + Frida + Mobile MCP. Load workflow / methodology / reference files on demand; do not attempt to memorise the whole skill up front.

When to Use

  • Start a new Android app security assessment
  • Bypass SSL pinning, root detection, anti-tamper, or biometric checks
  • Extract/triage local storage (SharedPreferences, DBs, files, logs)
  • Test exported activities, services, providers, receivers, deep links
  • Hook crypto / auth / session / keystore at runtime
  • Map a build to OWASP MASVS / MASTG for compliance evidence
  • Produce structured findings + remediation guidance

Trigger Phrases

"pentest this Android app" • "security test the APK" • "bypass SSL pinning on " • "extract data from " • "test Android authentication" • "fuzz Android intents" • "MASTG testing for " • "mobile app security assessment"

When NOT to Use This Skill

  • iOS apps → use ios-pentest (if available) or generic mobile skill
  • Server-side API fuzzing of mobile backends → use api-security / web-pentest
  • Decompiling Android malware for IR → use malware-analysis, not this pentest-focused skill
  • Supply-chain / SCA on third-party SDKs → use sca / dependency-audit
  • Cloud backend of the mobile app → use cloud-pentest

Decision Tree

Do you have the APK or only package name?
├─ package only → get_app_info + pull_apk (parallel), then branch on protections
└─ APK on disk  → static analysis first (jadx, apktool), then dynamic
                 └─ App runs? → frida_spawn → bypass_ssl → bypass_root → proxy
                 └─ App crashes on root? → see references/troubleshooting.md (Root detection)
                 └─ TLS still not decrypted? → workflows/ssl_pinning_bypass.md Methods 2→3

What's the objective?
├─ Full assessment          → workflows/complete_assessment.md
├─ SSL pinning only         → workflows/ssl_pinning_bypass.md
├─ Auth / session           → workflows/auth_testing.md
├─ Deep links / IPC / fuzz  → workflows/deeplink_intent_testing.md
├─ Crypto audit             → workflows/crypto_analysis.md
└─ Data storage / exfil     → workflows/data_exfiltration.md

Parallelism Hints

Run concurrently (independent, same device):

  • get_app_info + pull_apk + list_exported_components
  • dump_databases + dump_shared_prefs + dump_internal_storage + dump_external_storage + get_logcat
  • Multiple frida_run_script calls against the same PID (crypto_hooks.js ∥ credential_hooks.js ∥ intent_monitor.js)
  • Static APK analysis (decompile, secrets scan) ∥ dynamic runtime hooks

Must be sequential:

  • frida_spawnfrida_bypass_sslfrida_bypass_root (scripts need the PID and must attach before the app finishes its protection init)
  • setup_proxy before any traffic-capture or network workflow
  • install_ca_cert before setup_proxy on a fresh device
  • capture_traffic_start → drive app → capture_traffic_stop

Sub-Agent Delegation

  • Spawn a static-analysis sub-agent on the pulled APK (jadx decompile → secrets grep → manifest review → native-lib inventory) while the main agent runs dynamic Frida hooks. Rejoin before reporting.
  • Spawn a per-component sub-agent when fuzzing many exported components: one agent per activity/provider/service batch; each owns its own Frida PID and logcat filter. Avoids cross-contamination of hook state.
  • Spawn a reporting sub-agent to normalise findings into schemas/finding.json and render templates once the main testing pass completes.

Reasoning Budget

  • Extended thinking (high): triaging findings across evidence, classifying severity, writing CWE/MASTG mappings, designing custom Frida hooks for obfuscated classes, reverse-engineering native SSL-pinning paths.
  • Low / no extended thinking: repetitive Frida hook runs, standard dumps, canned payload fuzzing, applying the universal SSL bypass, invoking known MCP tool sequences.
  • Don't burn tokens reasoning about which universal bypass to try first — just run frida_bypass_ssl(pid) and escalate on failure.

Multimodal Hooks

  • Use Mobile MCP get_screen_state + screenshot for UI-driven auth flows (biometric prompts, OAuth redirects, MFA steps). Attach screenshots as evidence.screenshot on the finding.
  • Capture a screenshot at the point of bypass (e.g., authenticated home screen after biometric spoof) — visual evidence strengthens severity justification.
  • For deep-link repros, screenshot the resulting activity to prove the unintended state is reachable.

Structured Output

All findings MUST validate against schemas/finding.json. Android-specific required/common fields: package_name, app_version, target_sdk, device_id, frida_pid, mastg_id, masvs_control, component.{type,class_name,exported}, evidence.{logcat,frida_output,screenshot,pcap}.

Workflow Index

WorkflowWhen
workflows/complete_assessment.mdEnd-to-end MASTG pass
workflows/ssl_pinning_bypass.mdEnable TLS interception
workflows/auth_testing.mdLogin, session, biometric, JWT
workflows/deeplink_intent_testing.mdIPC fuzz, deep links, providers
workflows/crypto_analysis.mdWeak algos, hardcoded keys, keystore
workflows/data_exfiltration.mdLocal storage + logcat leakage

Methodology Index

DocumentCoverage
methodology/recon.mdInfo gathering, attack-surface map
methodology/static_analysis.mdAPK/smali/secrets review
methodology/dynamic_analysis.mdRuntime hooking, instrumentation
methodology/network_testing.mdTraffic, API, TLS verification
methodology/data_storage.mdLocal storage, DBs, file perms
methodology/crypto_testing.mdEncryption and key management
methodology/auth_testing.mdAuth, session, biometric
methodology/client_side_injection.mdWebViews, deep links, providers

Payloads Index

FileUse
payloads/intent_injection.txtIntent/IPC fuzz inputs
payloads/path_traversal.txtFile/provider path escapes
payloads/sql_injection.txtContent provider SQLi
payloads/xss_payloads.txtWebView XSS
payloads/xxe_payloads.txtXML parsers in-app

Examples Index

ExampleScenario
examples/new_assessment.mdKickoff blueprint for a new target
examples/data_storage_investigation.mdEnumerating local sensitive data
examples/auth_bypass.mdBiometric / session / JWT bypass

References Index

DocumentCoverage
references/owasp_mobile_top10.mdOWASP Mobile Top 10 mapping
references/android_security_checklist.mdTesting checklist
references/frida_snippets.mdReusable Frida one-liners
references/troubleshooting.mdFrida / SSL / root / ADB / SQLCipher fixes
references/bounty_patterns_2024_2026.mdPost-2023 bounty TTPs (deep-link hijack / App-Links bypass, WebView deep-link XSS, unprotected broadcast-receiver leakage)

Checklists

FilePurpose
checklists/owasp_mastg_full.mdFull MASTG compliance
checklists/quick_wins.mdFast-vuln sweep
checklists/pre_engagement.mdSetup verification
checklists/report_items.mdReport completeness

Templates

TemplatePurpose
templates/finding_template.mdPer-finding doc
templates/executive_summary.mdManagement summary
templates/technical_report.mdFull technical report
templates/remediation_guide.mdDeveloper-facing fixes

MCP Tool Reference

Device interaction

ToolPurpose
get_screen_state()Current screen / UI tree
tap_element(x,y) / long_press(x,y)Tap / long-press
input_text(text)Type into focused field
press_key(keycode)BACK=4 HOME=3 ENTER=66
swipe(x1,y1,x2,y2)Scroll, pattern unlock

Frida instrumentation

ToolPurpose
frida_spawn(pkg) / frida_attach(pkg)Start or attach
frida_run_script(pid, script)Load JS hooks
frida_bypass_ssl(pid) / frida_bypass_root(pid)Universal bypasses
frida_hook_method(pid, class, method)Trace a single method
frida_trace_crypto(pid) / frida_dump_credentials(pid)Canned traces
frida_enumerate_classes(pid, pattern)Class discovery under obfuscation
frida_memory_search(pid, pattern)Find secrets / keys in process memory

Network

ToolPurpose
setup_proxy(device, host, port) / clear_proxy(device)Proxy wiring
install_ca_cert(device, path)Trust Burp CA (system store)
capture_traffic_start(pkg) / capture_traffic_stop()PCAP

Data extraction

ToolPurpose
dump_databases(pkg) / dump_shared_prefs(pkg)SQLite + prefs
dump_internal_storage(pkg) / dump_external_storage(pkg)Files
get_logcat(pkg)Package-filtered logs

Components

ToolPurpose
list_exported_components(pkg)Attack surface
launch_activity(pkg, activity, extras, data_uri)Deep link / intent
send_broadcast(action, extras)Broadcast injection
start_service(pkg, service, extras)Service abuse
query_content_provider(uri)Provider SQLi / leakage
fuzz_intent_extra(pkg, comp, key, payloads)Automated fuzz

App management

ToolPurpose
install_apk(path) / uninstall_app(pkg)Deploy / remove
clear_app_data(pkg)Fresh state
get_app_info(pkg)Metadata, permissions, SDK
list_installed_apps() / pull_apk(pkg)Discovery / extraction

Frida Script Library (scripts/)

ssl_pinning_bypass.js, root_bypass.js, crypto_hooks.js, credential_hooks.js, network_hooks.js, biometric_bypass.js, anti_tampering_bypass.js, intent_monitor.js, webview_hooks.js, dynamic_dex_hooks.js, keystore_hooks.js, method_tracer.js.

Tools

ToolPurposeInstall
ADBDevice commsapt install adb (Android SDK platform-tools)
Frida / frida-toolsDynamic instrumentationpip install frida-tools (≥16.4)
ObjectionMobile explorationpip install objection
apktoolAPK decompileapt install apktool (≥2.9)
jadxJava decompilegithub.com/skylot/jadx releases (≥1.5)
Burp SuiteTraffic interceptionportswigger.net
Android StudioEmulator, SDKdeveloper.android.com

Setup scripts: setup/setup_pentest_env.sh, setup/setup_physical_device.sh, setup/setup_emulator.py, setup/frida_server_manager.py, setup/burp_cert_installer.sh, setup/check_environment.py.

MCP servers expected: android-pentest (Android Dynamic MCP), mobile-mcp (mobile-next for UI). Configure in ~/.claude/mcp.json.

Related Resources

Last Validated

2026-04 — minimum versions: Frida ≥16.4, apktool ≥2.9, jadx ≥1.5, Android platform-tools ≥35.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.66%
按下载量换算103

Claude

32.1%
按下载量换算90

Cursor

18.77%
按下载量换算53

Gemini CLI

9.07%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/hardw00t/ai-security-arsenal --skill android-pentest 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills