reverser-ios-static
它能做什么
它介绍如何解开 iOS 应用文件,并读取其设置、证书和代码结构。适用于检查自有 iOS 应用的安全审查人员和开发者。
适用场景
- ✓当开发者想在发布前检查 iPhone 应用的权限和网络安全设置时。
- ✓当审查人员需要读取 iOS 应用描述文件中的授权项时。
- ✓当分析人员需要列出 iPhone 应用能够响应的自定义网页链接时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/ios-static/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查这个 iPhone 应用文件中的权限和网络设置。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能告诉 AI 解开应用安装包,读取其设置文件,检查描述文件,并查看程序结构。AI 会总结每项发现。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
iOS IPA Static Analysis
Acquire the IPA
# Option 1: App Store (encrypted FairPlay — needs decryption from a jailbroken device)
# Option 2: ipatool — pulls IPAs from your Apple ID
ipatool download -b com.target.app
# Option 3: Frida-iOS-Dump (jailbroken device required)
# Pulls a decrypted IPA from the device's memory
frida-ios-dump -o app.ipa "<bundle-id>"
Unpack the IPA
unzip app.ipa -d app/
# Structure:
# app/Payload/<AppName>.app/
# <AppName> — Mach-O binary
# Info.plist — metadata
# embedded.mobileprovision — provisioning profile
# en.lproj/, Frameworks/, ...
Quick triage
# 1. Info.plist — capabilities, URL schemes, ATS exceptions
plutil -p app/Payload/Foo.app/Info.plist
# Look for:
# CFBundleURLTypes — custom URL schemes (deep links)
# LSApplicationQueriesSchemes — schemes the app probes
# NSAppTransportSecurity — ATS exceptions (HTTP allowed?)
# UIBackgroundModes — long-running capabilities
# com.apple.developer.* — entitlements
# 2. Embedded provisioning profile — entitlements + cert chain
security cms -D -i app/Payload/Foo.app/embedded.mobileprovision | plutil -p -
# Look for:
# Entitlements (push, keychain access, app groups, network extension)
# Developer team ID (Apple-issued vs Enterprise)
# 3. Mach-O architecture + protection flags
file app/Payload/Foo.app/Foo
otool -hV app/Payload/Foo.app/Foo
# Flags: PIE (always on for iOS), STACK_PROTECT, MH_NO_HEAP_EXECUTION
# 4. Check encryption status
otool -l app/Payload/Foo.app/Foo | grep -A4 LC_ENCRYPTION_INFO
# cryptid 1 = encrypted (decrypt via frida-ios-dump first)
# cryptid 0 = ready to analyze
Class-dump (Objective-C metadata)
# class-dump-z, class-dump-ng — extract Objective-C interface
class-dump-z -H app/Payload/Foo.app/Foo -o headers/
# Output: one .h file per class. Reveals method names, ivars, properties.
# class-dump (newer):
class-dump --arch arm64 -H app/Payload/Foo.app/Foo -o headers/
# For Swift symbols: swift-demangle
nm app/Payload/Foo.app/Foo | swift-demangle | head
Headers tell you:
- Class hierarchy (subclasses of NSObject, UIViewController, etc.)
- Method signatures (often reveal business logic intent)
- Properties (often reveal stored data)
- Use of
NSURLSession/NSURLConnection(network) /Security.framework(crypto)
Disassembly
# Hopper Disassembler — UI-focused, decent Obj-C support
# IDA Pro — best Objective-C / Swift but $$$
# Ghidra — free, growing iOS support
# rizin / radare2 — CLI:
r2 -A app/Payload/Foo.app/Foo
> afl # function list
> s sym._-[FooViewController login:] # navigate to a method
> pdf # disassemble + decompile (Cutter UI helps)
Things to look for
Hardcoded secrets
strings app/Payload/Foo.app/Foo | grep -iE 'api[._-]?key|secret|token|password|bearer'
strings app/Payload/Foo.app/Foo | grep -iE '^[A-Za-z0-9+/]{40,}={0,2}$' # base64 candidates
strings app/Payload/Foo.app/Foo | grep -iE 'sk_live|pk_live|AKIA[0-9A-Z]{16}|AIza[0-9A-Za-z\-_]{35}' # AWS, Stripe, GCP
URLs / Endpoints
strings app/Payload/Foo.app/Foo | grep -iE 'https?://' | sort -u
Backend / firebase config
find app/Payload/Foo.app -name '*.plist' -exec plutil -p {} \; 2>/dev/null | grep -iE 'google|firebase|amazon|azure|api'
find app/Payload/Foo.app -name 'GoogleService-Info.plist' # Firebase config
Insecure ATS exceptions
plutil -p app/Payload/Foo.app/Info.plist | grep -A20 NSAppTransportSecurity
# NSAllowsArbitraryLoads = true → app allows HTTP. Why?
# NSExceptionDomains → list of allowed-HTTP domains
Insecure file storage
Search the binary for:
NSUserDefaults-stored secrets (no encryption)kSecAttrAccessibleAlways(keychain item accessible always — no device-lock requirement)NSFileProtectionNone(file readable when device locked)
URL scheme handlers
plutil -p app/Payload/Foo.app/Info.plist | grep -A4 CFBundleURLSchemes
# Each scheme is a potential entry point. Check what method handles it
# in headers/ — `application:openURL:` or `scene:openURLContexts:`.
Embedded JS bridge (WebView, React Native, Cordova)
find app/Payload/Foo.app -name '*.bundle' -o -name 'main.jsbundle' # React Native
find app/Payload/Foo.app -name 'cordova.js' # Cordova
# The
常见问题
它会运行 iPhone 应用吗?
不会。它是静态审查,即在不运行应用的情况下读取文件。
它检查哪些设置?
它检查应用设置、自定义 URL 方案、网络例外和后台模式。
它需要越狱手机吗?
该技能只提到越狱设备是获得解密应用副本的一种方式。
详情
作者的原始描述
iOS IPA static analysis — class-dump-z / class-dump-ng, Hopper / IDA / Ghidra for Mach-O ARM64, Objective-C runtime introspection, Swift demangling, App Transport Security check, plist analysis, embedded provisioning profile parse. For dynamic Frida/Objection see mobile/SKILL.md.
热度
- GitHub 星标
- 6.5k
- 排名
- #14170
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …