Mobile Pentest 标志

Mobile Pentest

社区
hypnguyen1209
mobile-pentest

用于对 Android/iOS 应用进行渗透测试:Frida 17 插桩、绕过 SSL 证书固定和 root/越狱检测、Android 14/15 CA 注入、滥用导出组件/内容提供程序、深层链接/WebView 调用链、生物识别绕过、Flutter/React-Native 逆向工程

Add to TypingMind

概览

发布者hypnguyen1209
代码仓库offensive-claude
技能名称mobile-pentest
星标数
396
复刻数
71
附带文件
12
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 12 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 hypnguyen1209 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Mobile Pentest AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/hypnguyen1209/offensive-claude/tree/main/skills/mobile-pentest
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hypnguyen1209/offensive-claude.git /tmp/offensive-claude
mkdir -p .claude/skills
cp -r /tmp/offensive-claude/skills/mobile-pentest .claude/skills/mobile-pentest
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Mobile Pentest,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Mobile Pentest。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Mobile Pentest 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Mobile Application Penetration Testing

When to Activate

  • Android/iOS application security assessment, bug-bounty mobile triage, or app-store reconnaissance
  • Need to intercept TLS traffic (SSL/cert pinning, Android 14/15 Conscrypt-APEX trust store, Flutter/RN stacks)
  • Bypass root/jailbreak or biometric-gating controls during dynamic analysis
  • Enumerate and exploit exported components, content providers, deep links, and WebViews
  • Extract secrets from insecure storage (SharedPrefs, SQLite, Keychain, Keystore) and reverse hybrid apps

Technique Map

TechniqueATT&CKCWEReferenceScript
Lab build + Frida 17 server/gadgetT1635CWE-1188references/environment-interception.md-
Android 14/15 Conscrypt-APEX CA injectionT1521.001CWE-295references/environment-interception.mdscripts/android_ca_inject.sh
SSL/cert-pinning bypass (Java TM/OkHttp/native)T1521.001CWE-295references/environment-interception.mdscripts/universal_unpin.js
Root detection bypass (RootBeer/native stat)T1633.001CWE-693references/environment-interception.mdscripts/universal_unpin.js
Exported activity/service/receiver abuseT1626.001CWE-926references/android-component-attacks.mdscripts/manifest_attack_surface.py
Content-provider SQLi / path traversal (CVE-2025-48609)T1409CWE-22, CWE-89references/android-component-attacks.mdscripts/component_fuzz.sh
Task hijacking / StrandHogg / TapTrap (USENIX '25)T1517CWE-1021references/android-component-attacks.mdscripts/manifest_attack_surface.py
Deep-link / intent-redirect / scheme hijackT1635, T1577CWE-939references/webview-deeplink-exploitation.mdscripts/component_fuzz.sh
WebView JS-interface RCE + file:// theftT1577CWE-749references/webview-deeplink-exploitation.mdscripts/component_fuzz.sh
OAuth custom-scheme callback interceptionT1635CWE-940references/webview-deeplink-exploitation.md-
Insecure storage (SharedPrefs/SQLite/external)T1409CWE-312references/insecure-storage-crypto.mdscripts/manifest_attack_surface.py
Keystore/Keychain misuse + dumpingT1634CWE-522references/insecure-storage-crypto.mdscripts/ios_bypass_suite.js
Biometric bypass (BiometricPrompt/LAContext)T1634CWE-287references/insecure-storage-crypto.mdscripts/ios_bypass_suite.js
iOS jailbreak + JB-detection bypassT1635CWE-693references/ios-offensive.mdscripts/ios_bypass_suite.js
IPA decrypt / class-dump / URL-scheme abuseT1409, T1635CWE-200references/ios-offensive.mdscripts/ios_bypass_suite.js
Flutter RE / reFlutter pinning bypassT1521.001CWE-295references/crossplatform-re-instrumentation.mdscripts/hermes_triage.py
React Native Hermes bytecode decompileT1640CWE-656references/crossplatform-re-instrumentation.mdscripts/hermes_triage.py

Quick Start

bash
# ---- ANDROID ----
# 0. Pull + statically triage the APK (manifest, secrets, exported surface, framework ID)
adb shell pm path com.target.app                              # locate split APKs
adb pull /data/app/.../base.apk .
python3 scripts/manifest_attack_surface.py base.apk -o surface.json
jadx -d src base.apk &  apktool d base.apk -o decoded

# 1. Frida 17: match server to host tools; push + run
frida --version                                              # e.g. 17.x  -> use matching server
adb push frida-server-17.x-android-arm64 /data/local/tmp/frida-server
adb shell "su -c 'chmod 755 /data/local/tmp/frida-server && /data/local/tmp/frida-server &'"

# 2. Trust Burp CA on Android 14/15 (APEX is immutable -> Zygote namespace bind-mount)
bash scripts/android_ca_inject.sh 9a5ba575.0 cacert.pem      # see reference for cert hashing

# 3. Spawn target with universal unpinning + root-detection bypass
frida -U -f com.target.app -l scripts/universal_unpin.js --no-pause

# 4. Hit the exported attack surface from surface.json
bash scripts/component_fuzz.sh com.target.app surface.json

# ---- iOS ----
frida-ios-dump -o app.ipa com.target.app                     # decrypt + pull (jailbroken)
frida -U -f com.target.app -l scripts/ios_bypass_suite.js --no-pause   # JB + pinning + biometric + keychain

# ---- HYBRID ----
file decoded/assets/index.android.bundle                     # "Hermes JavaScript bytecode" => RN
python3 scripts/hermes_triage.py base.apk                    # detect Flutter/RN, drive reFlutter/hermes-dec

OPSEC & Detection (summary)

TechniqueTelemetry / IOCDetection (Sigma / app-side)OPSEC note
Frida instrumentationfrida-server/gadget ports (27042), re.frida.server, suspicious maps regions, named pipes linjectorApp scans /proc/self/maps for frida, checks D-Bus port, thread gum-js-loop; Play IntegrityUse frida-gadget renamed lib, custom port frida-server -l 0.0.0.0:1337, magisk-hide / Shamiko
CA injection (APEX)New trust anchor in process trust store; cert CN mismatch on pinned hostsNetwork Security Config <trust-anchors> excludes user store; pinning catches itMount lives only in Zygote ns, vanishes on Zygote crash — re-inject; nothing written to /system
SSL-pinning bypassTLS handshake to proxy IP; cert chain not app-pinned certApp-side pin failure callbacks fire (if logged); telemetry SDK sees proxy certHook before first request; for Flutter prefer reFlutter patch over runtime to avoid crash loops
Root/JB bypassgetprop ro.debuggable, su binaries, magisk paths queriedRootBeer/iXGuard SDK reports; SafetyNet/Play Integrity attestation server-sideBypass client checks only; server-side attestation (Play Integrity / DeviceCheck) is unaffected
Exported component abuseam start/startservice/broadcast from adb; foreign UID intentApp logs unexpected caller UID; Binder.getCallingUid() checksUse on-device malicious app for realism; adb leaves shell history
Content-provider traversalcontent query with ../; openFile on out-of-dir pathFileProvider canonical-path check; CVE-2025-48609 patched Mar 2026 SPLURL-encode ..%2f to dodge naive filters; read-only first
TapTrap / task hijackTransparent activity transition, taskAffinity overlap, animationScale abuseTapTrap fixed Dec 2025 SPL; check targetSdk, taskAffinity=""Zero-permission; works <Dec-2025 patch; user study: 100% missed at least one variant
Keychain/Keystore dumpkeychain_dumper, frida memory scrape, SecItemCopyMatching hooksKeychain items with .biometryCurrentSet resist hooking; SE-backed keys unextractableJB device dumps keychain plaintext regardless of ACL; flag SE vs SW keys in report
Biometric bypassLAContext evaluatePolicy / BiometricPrompt callback hookOnly works on boolean-result pattern, NOT SecAccessControl-gated cryptoReport root cause: auth result not bound to a crypto/keychain operation

Deep Dives

  • references/environment-interception.md — Rooted/jailbroken lab, Genymotion/AVD, Magisk+Shamiko, Frida 17 breaking changes (bridge removal, frida-pm, frida-compile), gadget mode for non-root, Android 14/15 Conscrypt-APEX CA injection via Zygote namespace bind-mount, universal SSL-pinning bypass (Java TrustManager/OkHttp/Network Security Config/native BoringSSL), root-detection bypass.
  • references/android-component-attacks.md — Manifest attack-surface enumeration, exported activity/service/broadcast/provider exploitation, content-provider SQLi & path traversal (CVE-2025-48609 MmsProvider), intent:// redirection to non-exported components, task hijacking (StrandHogg 1.0/2.0 CVE-2020-0096) and TapTrap animation-driven tapjacking (USENIX Security '25), drozer + adb workflows.
  • references/webview-deeplink-exploitation.md — addJavascriptInterface RCE, setAllowUniversalAccessFromFileURLs/file:// local-file theft, deep-link → WebView open-redirect/XSS chains, intent:// browsable-activity pivots, OAuth custom-scheme callback hijack (RFC 8252), iOS URL-scheme & Universal Link abuse, one-click browser-to-WebView exploitation.
  • references/insecure-storage-crypto.md — Android SharedPreferences/SQLite/internal+external storage, Android Keystore misuse (non-hardware-backed keys, no setUserAuthenticationRequired), iOS Keychain ACLs & keychain_dumper, NSUserDefaults/plist leaks, biometric bypass (BiometricPrompt CryptoObject vs result-only, LAContext evaluatePolicy), hardcoded secrets & Firebase/S3 misconfig, MASVS-STORAGE mapping.
  • references/ios-offensive.md — Jailbreak tooling matrix (palera1n checkm8 A8–A11/T2 iOS 15–18.x, Dopamine A8–A16 iOS 15–16.6.1, Dopamine HideJailbreak), JB-detection bypass (Frida stat/fopen/dlopen hooks + Shadow), IPA decryption (frida-ios-dump/bagbak), class-dump/Swift demangling, entitlements & URL-scheme analysis, Frida-version pinning gotchas.
  • references/crossplatform-re-instrumentation.md — Flutter Dart-stack interception (reFlutter libflutter.so patch of ssl_crypto_x509_session_verify_cert_chain, iptables/proxydroid fallback), React Native Hermes bytecode RE (hermes-dec, hbctool patch/reassemble, hermes-decomp, CatalystInstanceImpl.loadScriptFromAssets Frida hook), native .so JNI/JNI_OnLoad analysis in Ghidra/IDA.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Mobile Pentest AI 技能有什么作用?

用于对 Android/iOS 应用进行渗透测试:Frida 17 插桩、绕过 SSL 证书固定和 root/越狱检测、Android 14/15 CA 注入、滥用导出组件/内容提供程序、深层链接/WebView 调用链、生物识别绕过、Flutter/React-Native 逆向工程

为什么在 TypingMind 中使用 Mobile Pentest?

因为您只需安装一次,就能搭配任何模型使用。Mobile Pentest 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Mobile Pentest?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/hypnguyen1209/offensive-claude/tree/main/skills/mobile-pentest。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Mobile Pentest?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Mobile Pentest 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Mobile Pentest 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Mobile Pentest AI 技能免费吗?

是的。hypnguyen1209 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇