dynamic
它能做什么
这份指南涵盖在越狱测试设备上使用插桩工具对 iOS 应用进行的运行时测试。适合获得授权检查应用、并希望观察其运行时行为的开发人员和测试人员。
适用场景
- ✓当授权测试需要观察 iOS 应用运行时的行为时。
- ✓当团队想检查其应用的证书固定在测试设备上是否有效时。
- ✓当应用将数据存储在钥匙串中,需要进行运行时审查时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/mobile/ios/dynamic/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我用我们自己的测试设备检查,我们的 iOS 应用在运行时如何存储登录数据?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体在测试设备上设置运行时工具,观察应用如何存储和发送数据,并报告哪些保护措施有效、哪些无效。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
iOS Dynamic Instrumentation Playbook
Jailbroken device required for full Frida/Objection access. Most enterprise and bounty-program iOS testing falls here. For static-only analysis (no jailbreak) see
reverser/ios-static/SKILL.md.
Prerequisites
- iOS device jailbroken with palera1n (A8-A11 on iOS 16+),
checkra1n (A5-A11, up to iOS 14.8), or unc0ver (A12+ up to
iOS 14.8 with supported blobs). Confirm with
uname -vin SSH. - Frida server installed via Cydia / Sileo (search "Frida") or manually:
# SSH to device (default Cydia SSH cred: alpine)
ssh root@<device-ip>
# Verify jailbreak + SSH works
id # should return uid=0(root)
uname -v
- Host side:
pip install frida-tools objection - Confirm connectivity:
frida-ps -U # lists processes on USB-connected device
Path A: SSL Pinning Bypass
SSL Kill Switch 2 / 3
Install via Cydia/Sileo (search "SSL Kill Switch 2" or "SSL Kill Switch 3" for iOS 15+). Toggle per-app in Settings → SSL Kill Switch. Relaunch the app; verify traffic appears in Burp (set device proxy to Burp listener IP:8080, install Burp CA as trusted profile via Settings → General → VPN & Device Management).
Objection pinning disable (preferred for on-demand toggle)
# Attach to running app
objection --gadget "TargetApp" explore
# In the Objection REPL:
ios sslpinning disable
# Verify: open the app, check Burp proxy for decrypted HTTPS
Frida codeshare scripts (NSURLSession / AFNetworking / TrustKit)
# Universal iOS pinning bypass (covers NSURLSession, Alamofire, AFNetworking)
frida -U -f com.target.bundle \
--codeshare "wan-make/ios-ssl-pinning-bypass" \
--no-pause
# TrustKit-specific bypass
frida -U -f com.target.bundle \
--codeshare "machorka/trustkit-bypass" \
--no-pause
Manual Frida script for custom pinners
// Hook SecTrustEvaluate + SecTrustEvaluateWithError
// Load with: frida -U -f com.target -l bypass-pin.js
if (ObjC.available) {
var SecTrustEvaluateWithError = Module.findExportByName(
"Security", "SecTrustEvaluateWithError");
if (SecTrustEvaluateWithError) {
Interceptor.replace(SecTrustEvaluateWithError,
new NativeCallback(function(trust, error) {
if (error !== 0) Memory.writePointer(error, ptr(0));
return 1; // errSecSuccess
}, 'int', ['pointer', 'pointer']));
}
}
Verify in Burp: HTTPS traffic from the target app appears decrypted.
Path B: Jailbreak-Detection Bypass
Objection built-in
objection --gadget "TargetApp" explore
# Disable JB detection (covers fileExistsAtPath Cydia checks + fork())
ios jailbreak disable
Common detection patterns to hook manually
| Pattern | API to hook |
|---|---|
File presence (/Applications/Cydia.app, /bin/bash) |
NSFileManager fileExistsAtPath: |
URL scheme (cydia://) |
UIApplication canOpenURL: |
fork() syscall return |
fork (libc) |
/proc/self/maps inspection |
open / fopen |
| Dyld image name scan | _dyld_get_image_name |
// Frida: hook fileExistsAtPath to suppress JB file checks
var NSFileManager = ObjC.classes.NSFileManager;
var orig = NSFileManager["- fileExistsAtPath:"].implementation;
Interceptor.replace(orig, ObjC.implement(
NSFileManager["- fileExistsAtPath:"],
function(self, sel, path) {
var p = ObjC.Object(path).toString();
var jbPaths = ["/Applications/Cydia.app", "/bin/bash",
"/usr/sbin/sshd", "/etc/apt", "/private/var/lib/apt/"];
for (var i = 0; i < jbPaths.length; i++) {
if (p.indexOf(jbPaths[i]) !== -1) return 0; // false
}
return orig(self, sel, path);
}
));
Liberty Lite / A-Bypass (tweak-side)
Install Liberty Lite or A-Bypass from Cydia/Sileo → enable per-app toggle before launch. Faster than scripting for commodity JB checks.
Path C: Keychain Dump
Objection keychain dump
objection --gadget "TargetApp" explore
# Dump all items accessible in app context
ios keychain dump
# Output: account, service, access group, kSecAttrAccessible class, value
Frida hook on SecItemCopyMatching
// Log every keychain query result
var SecItemCopyMatching = Module.findExportByName(
"Security", "SecItemCopyMatching");
Interceptor.attach(SecItemCopyMatching, {
onEnter: function(args) { this.result = args[1]; },
onLeave: funct
常见问题
为什么需要越狱设备?
该指南指出,完整的运行时访问需要越狱设备,而静态检查则不需要越狱。
什么是钥匙串?
它是 iOS 上用于存储密码和令牌的安全存储区域。
对发现的问题应如何处理?
该指南将每个运行时结果都视为需要确认的线索,而不是已证实的远程漏洞。
详情
作者的原始描述
iOS dynamic instrumentation on jailbroken device — Frida/Objection setup, SSL Kill Switch pinning bypass, jailbreak-detection bypass, keychain dump, biometric/LAContext bypass, and ObjC runtime method hooking.
热度
- GitHub 星标
- 6.5k
- 排名
- #14110
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …