dynamic
Skill này làm gì
Hướng dẫn này nói về kiểm thử ứng dụng iOS khi chạy trên thiết bị thử nghiệm đã jailbreak, dùng công cụ instrumentation. Dành cho nhà phát triển và người kiểm thử được ủy quyền kiểm tra ứng dụng và muốn xem nó hoạt động ra sao khi đang chạy.
Khi nào nên dùng
- ✓Khi một bài kiểm thử được ủy quyền cần xem một ứng dụng iOS hoạt động ra sao khi đang chạy.
- ✓Khi một nhóm muốn kiểm tra xem certificate pinning của ứng dụng có giữ vững trên thiết bị thử nghiệm không.
- ✓Khi một ứng dụng lưu dữ liệu trong keychain và cần rà soát khi chạy.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/mobile/ios/dynamic/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể giúp tôi kiểm tra cách ứng dụng iOS của chúng tôi lưu dữ liệu đăng nhập khi đang chạy, trên thiết bị thử nghiệm của chúng tôi không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent thiết lập công cụ chạy trên thiết bị thử nghiệm, quan sát cách ứng dụng lưu và gửi dữ liệu, rồi báo cáo biện pháp bảo vệ nào đang hoạt động và biện pháp nào không.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Vì sao cần thiết bị đã jailbreak?
Hướng dẫn nói truy cập khi chạy đầy đủ cần thiết bị đã jailbreak, còn kiểm tra tĩnh thì không cần.
Keychain là gì?
Đó là vùng lưu trữ an toàn trên iOS dành cho mật khẩu và token.
Cần làm gì với một phát hiện?
Hướng dẫn coi mỗi kết quả khi chạy là một manh mối cần xác nhận, không phải lỗ hổng từ xa đã được chứng minh.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14110
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
android-clean-architecture
280kGiúp agent của bạn tổ chức dự án Android hiệu quả, cấu trúc code để việc bảo trì và phát triển tính năng mới dễ dàng hơn.
compose-multiplatform-patterns
280kGiúp agent của bạn dùng các mẫu Compose Multiplatform và Jetpack Compose trong dự án KMP, gồm trạng thái, điều hướng, giao diện và hiệu năng.
dart-flutter-patterns
280kGiúp agent của bạn viết code cho ứng dụng Dart và Flutter. Agent dùng các mẫu hiện đại để tạo ứng dụng vững chắc và dễ quản lý.