offensive-mobile
它能做什么
这是一套 Android 和 iOS 应用渗透测试的方法论。涵盖反编译应用、运行时插桩、证书固定检查,以及导出组件和存储的审查。适合在获得书面许可的情况下测试应用的安全专业人员。
适用场景
- ✓你在授权评估中测试 Android 或 iOS 应用的安全缺陷的时候。
- ✓你想审查移动应用中的导出 Activity、深层链接或 URL 方案的时候。
- ✓你需要检查移动应用如何存储机密和令牌的时候。
技能链接
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/mobile/offensive-mobile/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们已获得授权测试我们的 iOS 应用。请检查它如何存储令牌,以及暴露了哪些 URL 方案。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能首先对应用包进行静态分析,然后在测试设备上进行运行时插桩。它梳理导出的攻击面,检查机密的存储方式,并将应用所连接的后端视为测试范围。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Mobile (Android + iOS) — Offensive Testing Methodology
Quick Workflow
- Static: pull the IPA/APK, decompile, dump resources/strings, identify endpoints
- Dynamic: install on rooted/jailbroken device, hook with Frida, intercept TLS
- Map exported attack surface: deep links, URL schemes, exported components
- Storage / Keystore audit: where do secrets live, what protects them
- API: every backend the app talks to is your scope — test like a web app
Lab Setup
Android
- Rooted device or Genymotion / Android Studio AVD with
userdebugbuild - Magisk for systemless root; LSPosed for hooks; Frida server matching device arch
- Burp / Mitmproxy with system-trusted CA via Magisk module (
MagiskTrustUserCerts)
iOS
- Jailbroken device (palera1n / checkra1n / Dopamine depending on iOS version)
- Frida + Objection + Filza + SSH via USB (iproxy 2222 22)
- Burp CA installed via Settings → General → Device Management → Certificate Trust Settings
Static Analysis
Android
# Decode resources + smali
apktool d app.apk -o app
# Decompile to Java
jadx -d app_src app.apk
# Manifest review
xmllint --format app/AndroidManifest.xml | less
# Look for: android:exported="true", intent-filters, custom permissions, debuggable, allowBackup, networkSecurityConfig
# Secrets and endpoints
grep -rE '(https?://[a-z0-9.-]+|api[_-]?key|secret|token|firebase|amazonaws|appspot)' app_src/
grep -r "Log\.[dwief]" app_src/ # leftover debug logs
# Native libs
file app/lib/*/*.so
# RE in Ghidra/IDA; look for JNI_OnLoad and exported Java_* functions
iOS
# Pull IPA from device
frida-ios-dump -o app.ipa "com.vendor.app"
# Or via App Store via 3rd-party tools (Apple Configurator with paid acct, etc.)
unzip app.ipa
# Decrypt if needed (jailbroken device): bagbak / clutch
bagbak com.vendor.app
# Class dump
class-dump-dyld -H Payload/App.app/App -o headers/
# Or for Swift symbols, use Hopper / IDA
# Strings / endpoints
strings -a Payload/App.app/App | grep -E '(https?://|key|secret|api)'
# Info.plist analysis
plutil -p Payload/App.app/Info.plist
# Look for: NSAppTransportSecurity exceptions, CFBundleURLTypes (URL schemes),
# associated-domains entitlements, UIFileSharingEnabled, ATS exemptions
Dynamic Analysis & Frida
Common Hooks
// Bypass SSL pinning (Android — generic OkHttp/CertificatePinner/TrustManager)
Java.perform(() => {
const X509TrustManager = Java.use('javax.net.ssl.X509TrustManager');
const TrustManagerFactory = Java.use('javax.net.ssl.TrustManagerFactory');
// ... full bypass scripts: codeshare.frida.re/@pcipolloni/universal-android-ssl-pinning-bypass-with-frida
});
// Bypass root detection
Java.perform(() => {
const File = Java.use('java.io.File');
File.exists.implementation = function () {
const path = this.getAbsolutePath();
if (path.includes('su') || path.includes('Magisk')) return false;
return this.exists();
};
});
// iOS — bypass jailbreak detection
const stat = Module.findExportByName(null, 'stat');
Interceptor.attach(stat, {
onEnter(args) {
const path = args[0].readUtf8String();
if (/Cydia|jailbreak|substrate|frida/i.test(path)) {
args[0] = Memory.allocUtf8String('/nonexistent');
}
}
});
Objection (Frida-based shortcuts)
objection -g com.vendor.app explore
# Then inside:
android sslpinning disable
android root disable
android hooking list activities
android intent launch_activity com.vendor.app/.SecretActivity
ios sslpinning disable
ios jailbreak disable
ios keychain dump
SSL / TLS Interception
Android Network Security Config
App with <network-security-config> requiring its own pinned CA: edit res/xml/network_security_config.xml, repack:
apktool b app -o app-patched.apk
apksigner sign --ks debug.keystore app-patched.apk
Or live-bypass with Frida (preferred — no recompile).
iOS ATS / Pinning
For pinning, use Frida hooks against SecTrustEvaluate* / NSURLSession delegate methods. ATS exceptions in Info.plist (NSAllowsArbitraryLoads) make MITM trivial without pinning.
Exported / IPC Attack Surface
Android — Exported Components
drozer console connect
> run app.package.attacksurface com.vendor.app
> run app.activity.start --component com.vendor.app .ExportedActivity \
--extra string url 'javascript:alert(1)'
> run app.provider.query content:/
常见问题
它涵盖哪些平台?
它同时涵盖 Android 和 iOS,并为两者分别设置实验环境。
它涵盖应用的服务器吗?
涵盖。这个技能指出应用连接的所有后端都在范围内,并应像网页应用一样进行测试。
这只用于授权测试吗?
是的。它是为你有权测试的应用而编写的。
详情
作者的原始描述
Mobile (Android + iOS) application penetration testing methodology. Covers static analysis (apktool/jadx for Android, class-dump/Hopper/IDA for iOS), dynamic instrumentation with Frida and Objection, SSL pinning bypass strategies, root/jailbreak detection bypass, deep-link / URL-scheme abuse, exported component attacks (Android activities, services, providers, receivers; iOS XPC, URL schemes, universal links), insecure data storage (SharedPrefs, KeyStore misuse, NSUserDefaults, Keychain ACL bypass), IPC / Intent redirection, WebView vulnerabilities (JavaScriptInterface, file:// access), Fireba
repo: SnailSploit/Claude-Red
热度
- GitHub 星标
- 10k
- 排名
- #11962
- 许可证
- MIT
- 更新时间
- 2026/10/12
评论
- …
同一仓库的更多技能
offensive-active-directory
10k帮你的智能体规划经授权的 Active Directory 安全测试,从梳理网络到找出通往域管理员的攻击路径。
offensive-netexec
10k帮你的智能体使用 NetExec(nxc)工具进行经授权的网络测试,涵盖协议、认证和凭据检查。
offensive-api-abuse
10k帮你的智能体规划经授权的 API 安全测试,查找业务逻辑滥用、GraphQL 风险和竞态条件。
offensive-api-security
10k帮你的智能体依据 OWASP API Top 10,对 REST、gRPC 和 WebSocket API 进行经授权的安全测试。