Skip to content

About

iOS-Pentesting-Skill

Resources

Stars

23 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

65 Commits

Folders and files

Repository files navigation

iOS App Security Audit Skill

Android Skill License Version Author EspaΓ±ol

Comprehensive iOS app security audit skill for AI agents. Performs static analysis, dynamic instrumentation, source-to-sink tracing, and generates CVSS 4.0 reports.

🎯 What This Skill Does

This skill transforms an AI agent into an iOS security auditor capable of:

  • Decompiling and analyzing IPAs β€” Mach-O analysis, dsdump, class-dump, IPA extraction
  • Detecting vulnerabilities β€” 20 pattern categories / 97 grep blocks, OWASP Mobile Top 10 aligned
  • Testing URL schemes and IPC β€” Custom URL scheme injection, universal link abuse, XPC, App Groups
  • Tracing data flows β€” Source-to-sink methodology with confidence levels
  • Bypassing protections β€” SSL pinning, jailbreak detection, RASP, native checks, encryption
  • Modifying IPAs β€” Binary patching, resource editing, re-signing, re-packaging
  • Unity IL2CPP on Simulator β€” Complete workflow for running Unity 2021+ IL2CPP apps on iOS Simulator (Metal heap fix, dylib embedding, no device needed)
  • Generating reports β€” CVSS 4.0 scoring, MASTG mapping, professional templates

πŸ“¦ Installation

Option 1: Clone into Agent Skills Directory

# For Claude Code / OpenCode agents
cd ~/.agents/skills/
git clone https://github.com/DragonJAR/iOS-Pentesting-Skill ios-app-security-audit

# For other agents, place in your skills directory

Option 2: Install Globally

# Clone to any location
git clone https://github.com/DragonJAR/iOS-Pentesting-Skill.git

# Add to your agent's skill path configuration

βš™οΈ Prerequisites

The skill works on macOS and Linux. macOS is recommended for full functionality; Linux has alternatives for most tools (~90% compatibility).

Tool Version Purpose
Frida see tool-versions.md Dynamic instrumentation β€” frida-server on device must match the host frida core version exactly
Objection 1.12.4+ Mobile exploration (maintenance mode)
dsdump 0.13+ Swift class dump
class-dump - Objective-C class dump (optional)
plutil system (macOS) / plistutil (Linux) plist manipulation
codesign system (macOS) / ldid (Linux) Code signing
security system (macOS) Keychain access
lipo system (macOS) / llvm-lipo (Linux) Fat binary manipulation
otool system (macOS) / llvm-objdump (Linux) Mach-O analysis
Python 3.10+ Script execution

Platform Support Matrix: See tool-installation-ios.md for complete macOS/Linux alternatives.

Verification

Run the preflight check to verify all dependencies:

./scripts/preflight-check.sh

Or use the Python version for cross-platform compatibility:

python3 scripts/preflight_check.py

PowerShell variant for Windows environments:

./scripts/preflight-check.ps1

πŸš€ Quick Setup (5 minutes)

Get your environment ready for iOS auditing with these steps:

Step 1: Verify Current Tools

./scripts/preflight-check.sh

Step 2: Install Missing Tools

macOS:

# Install Python and core tools
brew install [email protected] git wget jq tree ripgrep ipatool libimobiledevice ideviceinstaller

# Install Frida, Objection, dsdump
pip3 install frida-tools objection dsdump swift-demangle

Linux (Debian/Ubuntu):

# System packages
sudo apt update
sudo apt install python3 python3-pip python3-dev clang git wget jq tree ripgrep build-essential libimobiledevice-utils ideviceinstaller

# Python packages
pip3 install frida-tools objection dsdump swift-demangle

Or use the automated setup script:

./scripts/setup-environment.sh

Step 3: Verify Again

./scripts/preflight-check.sh

Step 4: Install Frida on Device (Optional)

For dynamic analysis on a jailbroken device, see references/frida-server-ios-install.md

Now you're ready to audit IPAs! See Usage Examples below.

πŸš€ Usage Examples

Example 1: Basic IPA Audit

User prompt:

Audit this IPA: /path/to/app.ipa

Agent response:

I'll analyze the IPA for security vulnerabilities.

[Phase 0] Extracting IPA and detecting framework...
[Phase 1] Analyzing Info.plist and entitlements...
[Phase 2] Running targeted security patterns...
[Phase 3] Tracing data flows...
[Phase 5] Generating findings report...

Found 3 issues:
1. [HIGH] Insecure URL Scheme Handling (M8: Security Misconfiguration)
2. [MEDIUM] Hardcoded API Key in Info.plist (M1: Improper Credential Usage)
3. [LOW] Debug Logging Enabled (M8: Security Misconfiguration)

Example 2: SSL Pinning Bypass

User prompt:

The app has SSL pinning. Bypass it with Frida and intercept traffic.

Agent response:

I'll use the SSL pinning bypass script to intercept HTTPS traffic.

[1] Identifying SSL pinning implementation...
    Found: NSURLSession with custom certificate validation
[2] Loading Frida script: ssl-pinning-bypass-ios.js
[3] Hooking NSURLSessionDelegate methods
[4] SSL pinning bypassed. Traffic now decrypted.

Intercepted request:
POST /api/login
{"email": "[email protected]", "password": "secret123"}

Example 3: React Native Analysis

User prompt:

Analyze this React Native iOS app for hardcoded secrets in the JavaScript bundle.

Agent response:

[Phase 0] Detected React Native framework (libReactNative.a found)
[Phase 0] Extracting JavaScript bundle from Payload/YourApp.app/index.ios.bundle
[Phase 2] Scanning for secrets in JavaScript bundle...

Found 2 hardcoded secrets:
- API_KEY = "sk_live_abc123..." at index.ios.bundle:4521 (M1: Improper Credential Usage)
- AWS_SECRET = "wJalrXUtnFEMI/K7MDENG..." at index.ios.bundle:8912 (M1: Improper Credential Usage)

Example 4: IPA Modification

User prompt:

Disable jailbreak detection in this IPA and repackage it.

Agent response:

[1] Extracting IPA...
[2] Locating jailbreak detection code...
    Found: JailbreakDetector.checkJailbreak() in YourApp
[3] Patching binary to return false...
    NOP-ing comparison instruction
[4] Re-signing with code signing...
[5] Re-packaging IPA...
[6] Verifying signature...

Modified IPA ready: app_patched.ipa
SHA-256: abc123def456...

Example 5: Flutter Analysis

User prompt:

Analyze this Flutter iOS app. I need to intercept HTTPS traffic.

Agent response:

[Phase 0] Detected Flutter framework (Flutter.framework found)
[Phase 0] Flutter uses BoringSSL natively - ObjC/Swift SSL hooks won't work
[Phase 0] Using Blutter to extract Dart code: python3 blutter.py Frameworks/App.framework/App
[Phase 4] Loading Frida script: flutter-ios-hook.js (BoringSSL targets)
[Phase 4] Hooking SSL_CTX_set_custom_verify() for certificate bypass
[Phase 4] Hooking SSL_read/SSL_write() for traffic interception

Flutter traffic now intercepted and decrypted.

Example 6: Unity IL2CPP Simulator Testing

User prompt:

I have a Unity IL2CPP game IPA. I need to run it on the iOS Simulator for testing β€” no physical device available.

Agent response:

[Phase 0] Detected Unity 2021.3.56f2 IL2CPP (arm64)
[Phase 0] Converting for simulator with SimForge...
[SimForge] Patched LC_BUILD_VERSION for simulator ABI
[SimForge] Ad-hoc signed bundle
[Launch] App crashes: MTLHeap MTLReportFailure β€” Metal driver incompatibility
[Fix] Compiling metalheapfix.dylib (MTLSimDevice heap swizzle)
[Fix] Injecting via SIMCTL_CHILD_DYLD_INSERT_LIBRARIES
[Launch] App running on iOS 18.6 simulator!

Optional: Embedding dylib permanently with LC_LOAD_DYLIB...
[Patch] Added @executable_path/Frameworks/metalheapfix.dylib to main binary
[Sign] Re-signed bundle
[Launch] App launches by tapping the icon β€” no env vars needed

Tested with: Idle Planet Miner v3.0.8 (Unity 2021.3.56f2 IL2CPP arm64) on iOS 18.6 simulator

πŸ“– Skill Capabilities

Static Analysis (Phases 0-3)

Capability Description
IPA Extraction Unzip IPA, access Payload/YourApp.app/
Mach-O Analysis otool, lipo, nm for binary structure
Framework Detection React Native, Flutter, Cordova, Xamarin, Native
Obfuscation Analysis Swift obfuscation, LLVM, custom patterns
Info.plist Analysis Security checks for URL schemes, entitlements, permissions (47-key checklist)
URL Scheme / IPC Abuse Custom schemes, universal links, XPC, App Groups, pasteboard
Secrets Detection API keys, passwords, tokens in code and plists
Data Flow Tracing Source-to-sink methodology with confidence levels
Supply Chain (SBOM) CycloneDX/SPDX generation, dependency CVE + license scan, third-party SDK review
Enterprise / MDM Configuration profiles, managed app config, enterprise cert trust testing

Dynamic Analysis (Phase 4)

Capability Description
Frida Scripts 73 scripts for hooking, bypass, interception, and native triage
SSL Pinning Bypass NSURLSession, AFNetworking, Alamofire, TrustKit, BoringSSL (SSL Kill Switch), React Native, Flutter
Jailbreak Detection Bypass 22 jailbreak indicators, native hooks (fopen, access, stat), native jailbreak probe
RASP Bypass Debugger detection, anti-frida, simulator detection
Crypto Interception Monitor SecKey, SecKeyDecrypt, CommonCrypto operations
Biometric Bypass LAContext, biometric prompt, fallback to PIN
Keychain Inspection List entries, extract metadata, check accessibility
Network Interception URLSession, AFNetworking, Alamofire, WebSocket monitoring
Native Hooking Objective-C runtime, Swift bridging, by-offset hooks

IPA Modification

Capability Description
Binary Patching otool, jtool2, hex editor for direct binary modification
Resource Editing Modify Info.plist, embedded plists, strings
ATS Bypass Override NSAppTransportSecurity, enable cleartext traffic
Re-signing codesign with provisioning profile, entitlements
Re-packaging Rebuild IPA, maintain structure

Reporting (Phase 5)

Capability Description
CVSS 4.0 Scoring FIRST.org compliant severity ratings
OWASP MASTG Mapping Test IDs and MASVS categories
Professional Templates Executive summary, findings, remediation

πŸ”§ Skill Structure

iOS-Pentesting-Skill/
β”œβ”€β”€ SKILL.md                              # Skill definition (Phases 0-5)
β”œβ”€β”€ requirements.txt                      # Python dependencies of scripts/
β”œβ”€β”€ ruff.toml                             # Declared lint rule set
β”œβ”€β”€ references/                           # 94 reference documents
β”‚   β”œβ”€β”€ Start here
β”‚   β”‚   β”œβ”€β”€ ios-pentesting-decision-tree.md              # Which check to run for which finding
β”‚   β”‚   β”œβ”€β”€ troubleshooting-ios.md                       # Common failures and fixes
β”‚   β”‚   └── getting-started-ios.md                     # 15-minute orientation guide
β”‚   β”œβ”€β”€ Phase 0 (extraction & framework)
β”‚   β”‚   β”œβ”€β”€ environment-setup-ios.md      # macOS toolchain install
β”‚   β”‚   β”œβ”€β”€ tool-installation-ios.md      # Per-tool install + troubleshooting
β”‚   β”‚   β”œβ”€β”€ static-analysis-patterns-ios.md  # Grep patterns by category
β”‚   β”‚   β”œβ”€β”€ macho-binary-analysis.md      # Mach-O structure & flags
β”‚   β”‚   β”œβ”€β”€ framework-detection-ios.md    # RN/Flutter/Cordova/Xamarin/Unity
β”‚   β”‚   β”œβ”€β”€ ipa-extraction-guide.md       # IPA structure & decryption
β”‚   β”‚   β”œβ”€β”€ advanced-tools-ios.md         # Corellium, Hopper, Ghidra, lldb
β”‚   β”‚   β”œβ”€β”€ bitcode-analysis.md           # Bitcode-enabled binaries
β”‚   β”‚   β”œβ”€β”€ mobsf-integration-guide.md    # Optional MobSF setup
β”‚   β”‚   β”œβ”€β”€ libimobiledevice-guide.md                    # libimobiledevice toolchain
β”‚   β”‚   β”œβ”€β”€ linux-ios-analysis-workarounds.md            # Linux without macOS
β”‚   β”‚   └── tool-versions.md                             # Tool version requirements (source of truth)
β”‚   β”œβ”€β”€ Phase 1 (attack surface)
β”‚   β”‚   β”œβ”€β”€ info-plist-checklist.md       # Info.plist key checklist (47 keys)
β”‚   β”‚   β”œβ”€β”€ entitlements-security-guide.md
β”‚   β”‚   β”œβ”€β”€ ios-version-security-changes.md  # iOS 15 β†’ 18
β”‚   β”‚   β”œβ”€β”€ app-extensions-security.md    # WidgetKit / Share / Keyboard
β”‚   β”‚   β”œβ”€β”€ url-scheme-security-guide.md   # Scheme hijacking, OAuth callback, parameter injection
β”‚   β”‚   β”œβ”€β”€ universal-links-guide.md       # apple-app-site-association
β”‚   β”‚   β”œβ”€β”€ ats-configuration-guide.md    # NSAppTransportSecurity
β”‚   β”‚   β”œβ”€β”€ privacy-manifest-ios.md       # PrivacyInfo.xcprivacy (iOS 17+)
β”‚   β”‚   β”œβ”€β”€ app-groups-security.md        # Shared container abuse
β”‚   β”‚   β”œβ”€β”€ cloudkit-security-ios.md                     # CloudKit / iCloud sync
β”‚   β”‚   β”œβ”€β”€ insecure-deserialization-ios.md              # NSKeyedUnarchiver / deserialization
β”‚   β”‚   β”œβ”€β”€ passkeys-security-ios.md                     # Passkeys / WebAuthn (iOS 16+)
β”‚   β”‚   └── swift-concurrency-security.md                # async/await, actors, data races
β”‚   β”œβ”€β”€ Phase 2 (storage & crypto)
β”‚   β”‚   β”œβ”€β”€ commoncrypto-analysis.md
β”‚   β”‚   β”œβ”€β”€ keychain-security-guide.md
β”‚   β”‚   β”œβ”€β”€ userdefaults-security.md
β”‚   β”‚   β”œβ”€β”€ coredata-security.md
β”‚   β”‚   β”œβ”€β”€ pasteboard-security.md
β”‚   β”‚   β”œβ”€β”€ data-protection-api-guide.md
β”‚   β”‚   β”œβ”€β”€ objc-security-patterns.md     # swizzling, KVO, nil dispatch
β”‚   β”‚   β”œβ”€β”€ swift-security-patterns.md    # type safety, generics
β”‚   β”‚   β”œβ”€β”€ memory-analysis-ios.md                       # In-memory secret scanning
β”‚   β”‚   └── side-channel-analysis-ios.md                 # Timing / cache side channels
β”‚   β”œβ”€β”€ Phase 3 (data flow)
β”‚   β”‚   β”œβ”€β”€ deep-link-exploitation-ios.md
β”‚   β”‚   β”œβ”€β”€ xpc-services-security.md
β”‚   β”‚   β”œβ”€β”€ ipc-xpc-guide.md
β”‚   β”‚   β”œβ”€β”€ webview-security-ios.md
β”‚   β”‚   β”œβ”€β”€ notification-security.md
β”‚   β”‚   β”œβ”€β”€ phishing-attacks-ios.md                      # Phishing via deep links / OAuth
β”‚   β”‚   └── deep-link-security-checklist.md                        # Deep link security checklist, testing and remediation
β”‚   β”œβ”€β”€ Phase 4 (dynamic / Frida)
β”‚   β”‚   β”œβ”€β”€ jailbreak-setup-guide.md
β”‚   β”‚   β”œβ”€β”€ frida-server-ios-install.md
β”‚   β”‚   β”œβ”€β”€ frida-ios-guide.md
β”‚   β”‚   β”œβ”€β”€ objection-ios-guide.md
β”‚   β”‚   β”œβ”€β”€ ssl-pinning-bypass-ios.md
β”‚   β”‚   β”œβ”€β”€ dynamic-analysis-setup-ios.md
β”‚   β”‚   β”œβ”€β”€ debugger-detection-bypass.md
β”‚   β”‚   β”œβ”€β”€ runtime-integrity-bypass.md
β”‚   β”‚   β”œβ”€β”€ secure-enclave-testing.md
β”‚   β”‚   β”œβ”€β”€ icloud-private-relay-testing.md
β”‚   β”‚   β”œβ”€β”€ frida-scripts-index.md        # Canonical bundled script catalog
β”‚   β”‚   β”œβ”€β”€ frida-dynamic-analysis-ios.md                # Frida dynamic analysis on device
β”‚   β”‚   β”œβ”€β”€ frida-ios-simulator-workflow.md              # Frida on iOS Simulator
β”‚   β”‚   β”œβ”€β”€ jailbreak-detection-bypass-ios.md            # Jailbreak detection bypass
β”‚   β”‚   β”œβ”€β”€ rasp-guide-ios.md                            # RASP detection and bypass
β”‚   β”‚   β”œβ”€β”€ rasp-patterns-ios.md                         # RASP patterns and mitigations
β”‚   β”‚   β”œβ”€β”€ rasp-framework-stub-guide.md                 # Stubbing RASP frameworks
β”‚   β”‚   β”œβ”€β”€ simforge-emulation-flow.md                   # Canonical 10-step SimForge flow
β”‚   β”‚   β”œβ”€β”€ simforge-ios-testing.md                      # SimForge simulator testing
β”‚   β”‚   β”œβ”€β”€ simforge-crash-triage.md                     # Parsing .ips crash reports
β”‚   β”‚   β”œβ”€β”€ simforge-compatibility.md                    # SimForge compatibility matrix
β”‚   β”‚   β”œβ”€β”€ simforge-scripts-index.md                    # SimForge script usage index
β”‚   β”‚   β”œβ”€β”€ simforge-legacy-loadcmd-cleanup.md           # Legacy LC command cleanup
β”‚   β”‚   └── simulator-mitm-setup.md                      # MITM setup on the simulator
β”‚   β”œβ”€β”€ Phase 5 (reporting)
β”‚   β”‚   β”œβ”€β”€ cvss-scoring-ios.md           # CVSS 4.0 methodology
β”‚   β”‚   β”œβ”€β”€ cvss-examples-ios.md          # 10 worked examples
β”‚   β”‚   β”œβ”€β”€ reporting-templates-ios.md
β”‚   β”‚   β”œβ”€β”€ owasp-mastg-ios-checklist.md
β”‚   β”‚   β”œβ”€β”€ ios-privacy-testing.md
β”‚   β”‚   └── runtime-hardening-checks-ios.md  # 12 frequently-missed checks
β”‚   β”œβ”€β”€ Mod (repackaging)
β”‚   β”‚   β”œβ”€β”€ repackaging-ios-guide.md
β”‚   β”‚   └── obfuscation-detection-ios.md
β”‚   β”œβ”€β”€ Framework deep-dives
β”‚   β”‚   β”œβ”€β”€ react-native-ios-security.md
β”‚   β”‚   β”œβ”€β”€ flutter-ios-security.md
β”‚   β”‚   β”œβ”€β”€ cordova-ios-security.md
β”‚   β”‚   β”œβ”€β”€ xamarin-ios-security.md
β”‚   β”‚   β”œβ”€β”€ unity-ios-security.md
β”‚   β”‚   β”œβ”€β”€ swiftui-security-deep-dive.md
β”‚   β”‚   β”œβ”€β”€ core-ml-security.md
β”‚   β”‚   └── core-ml-security-expanded.md
β”‚   β”œβ”€β”€ Tools / CI / SC / Ent
β”‚   β”‚   β”œβ”€β”€ automation-scripts-ios.md
β”‚   β”‚   β”œβ”€β”€ ci-cd-integration-ios.md
β”‚   β”‚   β”œβ”€β”€ github-actions-ios-security.md
β”‚   β”‚   β”œβ”€β”€ fastlane-security.md
β”‚   β”‚   β”œβ”€β”€ sbom-supply-chain-guide.md
β”‚   β”‚   β”œβ”€β”€ third-party-sdk-analysis.md
β”‚   β”‚   β”œβ”€β”€ enterprise-app-testing.md
β”‚   β”‚   β”œβ”€β”€ mdm-security-testing.md
β”‚   β”‚   └── configuration-profile-abuse.md
β”œβ”€β”€ assets/frida-scripts/                 # 73 Frida scripts
β”‚   β”œβ”€β”€ ssl-pinning-bypass-ios.js         # SSL pinning bypass (STABLE)
β”‚   β”œβ”€β”€ jailbreak-detection-bypass.js     # Jailbreak detection bypass (STABLE)
β”‚   β”œβ”€β”€ biometric-bypass-ios.js           # LAContext bypass (STABLE)
β”‚   β”œβ”€β”€ objc-method-tracer.js             # Generic ObjC/Swift tracer (STABLE)
β”‚   β”œβ”€β”€ network-interceptor-ios.js        # NSURLSession capture (STABLE)
β”‚   β”œβ”€β”€ crypto-hook-ios.js                # CommonCrypto hooks
β”‚   β”œβ”€β”€ keychain-dumper.js                # Keychain extraction
β”‚   β”œβ”€β”€ url-scheme-monitor.js             # openURL / Universal Links
β”‚   β”œβ”€β”€ pasteboard-monitor.js             # UIPasteboard read/write
β”‚   β”œβ”€β”€ file-protection-enumerator.js     # NSFileProtection audit
β”‚   β”œβ”€β”€ data-protection-check.js          # File-level protection
β”‚   β”œβ”€β”€ sdk-tracer.js                     # Third-party SDK behavior
β”‚   β”œβ”€β”€ mdm-bypass.js                     # MDM restriction bypass
β”‚   β”œβ”€β”€ enterprise-cert-bypass.js         # Enterprise cert trust bypass
β”‚   β”œβ”€β”€ react-native-ios-hook.js          # RCTBridge module hooks
β”‚   β”œβ”€β”€ flutter-ios-hook.js               # FlutterMethodChannel hooks
β”‚   β”œβ”€β”€ flutter-ssl-pinning-ios.js        # Flutter pinning bypass
β”‚   β”œβ”€β”€ tls-keylogger-ios.js              # BoringSSL TLS key extraction (no MITM)
β”‚   β”œβ”€β”€ rasp-bypass-ios.js                # RASP bypass (IOSSecuritySuite/FreeRASP/JailMonkey)
β”‚   β”œβ”€β”€ anti-debugging-bypass-ios.js      # ptrace/sysctl/getppid anti-debug bypass
β”‚   └── ... (53 more)
β”œβ”€β”€ assets/dylibs/                        # Compiled interposer dylibs
β”‚   β”œβ”€β”€ metalheapfix.m                    # Unity IL2CPP Metal heap crash fix (source)
β”‚   └── README.md                         # Build & usage instructions
β”œβ”€β”€ scripts/                              # Utility, validation & reporting
β”‚   β”œβ”€β”€ preflight-check.sh                # Bash dependency verification
β”‚   β”œβ”€β”€ preflight_check.py                # Cross-platform dependency verification
β”‚   β”œβ”€β”€ preflight-check.ps1               # PowerShell dependency verification
β”‚   β”œβ”€β”€ auto-audit-static-ios.sh          # Static audit driver (Phases 0-3)
β”‚   β”œβ”€β”€ generate-report.py                # HTML / Markdown report generator
β”‚   β”œβ”€β”€ test-findings.json                # Sample report input
β”‚   β”œβ”€β”€ sbom_generator.py                 # CycloneDX / SPDX SBOM from IPA
β”‚   β”œβ”€β”€ dependency_scanner.py             # OSV.dev CVE + license scan
β”‚   β”œβ”€β”€ _scripts_path.py                  # Internal sys.path helper (do not run)
β”‚   β”œβ”€β”€ check_docs_consistency.py                  # Docs / code / tooling consistency gate
β”‚   β”œβ”€β”€ selftest.py                       # Functional self-test (no device, no network)
β”‚   β”œβ”€β”€ frida_harness.js                  # Load every Frida script under a mocked API
β”‚   β”œβ”€β”€ simforge_binaries.py                        # Internal Mach-O binary inventory (do not run)
β”‚   β”œβ”€β”€ setup_mobsf.py                    # Optional MobSF installer
β”‚   β”œβ”€β”€ mobsf_config.py                   # MobSF URL + API key config
β”‚   β”œβ”€β”€ mobsf_detect.py                   # Auto-detect running MobSF
β”‚   β”œβ”€β”€ mobsf_upload.py                   # Upload IPA + wait for scan
β”‚   β”œβ”€β”€ mobsf_export.py                   # Export findings (json / html)
β”‚   β”œβ”€β”€ mobsf_client.py                   # MobSF REST API client
β”‚   β”œβ”€β”€ mobsf_findings_correlator.py      # Merge manual + MobSF findings
β”‚   β”œβ”€β”€ install-mobsf-docker.sh
β”‚   β”œβ”€β”€ install-mobsf-local.sh
β”‚   β”œβ”€β”€ run-mobsf-local.sh
β”‚   β”œβ”€β”€ simforge_preflight.py             # SimForge: simulator compatibility preflight
β”‚   β”œβ”€β”€ simforge_apply.py                 # SimForge: patch IPA for the iOS Simulator
β”‚   β”œβ”€β”€ simforge_install_launch.sh        # SimForge: install + launch on booted simulator
β”‚   β”œβ”€β”€ simforge_triage.py                # SimForge: triage simulator launch crashes
β”‚   β”œβ”€β”€ simforge_iterate.sh               # SimForge: iterate patch β†’ install β†’ launch
β”‚   β”œβ”€β”€ simforge_cleanup.py               # SimForge: strip incompatible load commands
β”‚   β”œβ”€β”€ binpatch_util.py                  # Shared length-preserving Mach-O string patcher
β”‚   β”œβ”€β”€ patch_is_simulator.py             # Disable 'isSimulator' detection string
β”‚   β”œβ”€β”€ patch_jailbreak_strings.py        # Neutralize jailbreak-detection strings
β”‚   β”œβ”€β”€ patch_nudetect.py                 # Disable NuDetect SDK references
β”‚   β”œβ”€β”€ patch_termination_calls.py        # Neutralize termination error strings
β”‚   β”œβ”€β”€ quick-static-analysis.sh          # Fast static triage driver
β”‚   β”œβ”€β”€ screenshot-extractor.sh           # Capture app screenshots (device / simulator)
β”‚   β”œβ”€β”€ unity_sim_metalfix.sh             # Unity IL2CPP Metal heap fix (compile + inject)
β”‚   └── setup-environment.sh              # Automated environment setup

For the canonical Frida script catalog (each script's hook targets, maturity level, and example invocation), see references/frida-scripts-index.md β€” the SKILL.md References Index has a condensed table that maps every script to its workflow phase.

πŸŽ“ Trigger Phrases

The skill activates when the user says:

  • "audit this IPA"
  • "analyze iOS app"
  • "iOS pentest"
  • "app security"
  • "decompile IPA"
  • "iOS vulnerability assessment"
  • "reverse engineer iOS"
  • "modify IPA"
  • "bypass SSL pinning"
  • "bypass jailbreak detection"
  • "URL scheme abuse"

⚠️ Limitations

  1. Platform requirements β€” macOS recommended for full functionality; Linux has ~90% compatibility with alternatives (see tool-installation-ios.md)
  2. Dynamic analysis requires a jailbroken device β€” Frida needs full access (unless using simulator on macOS or Corellium). Unity IL2CPP apps can run on simulator with the Metal heap fix workaround.
  3. Encrypted binaries β€” App Store binaries are encrypted; need to decrypt with Clutch or frida-ios-dump
  4. Frida version matching β€” frida-server on device must match frida-tools on host exactly
  5. Flutter uses BoringSSL natively β€” ObjC/Swift SSL hooks don't work, need native hooks
  6. Unity IL2CPP on older simulators β€” The Metal heap swizzle is tested on iOS 18.6; older runtimes (17.x) may have different MTLSimDriver behavior

πŸ“š Standards Alignment

This skill is aligned with:

  • OWASP MASTG β€” Mobile Application Security Testing Guide (iOS section)
  • OWASP MASVS β€” Mobile Application Security Verification Standard
  • OWASP Mobile Top 10 2024 β€” Top 10 mobile risks
  • CVSS 4.0 β€” Common Vulnerability Scoring System

πŸ” OWASP Mobile Top 10 (2024)

ID Category
M1 Improper Credential Usage
M2 Inadequate Supply Chain Security
M3 Insecure Authentication/Authorization
M4 Insufficient Input/Output Validation
M5 Insecure Communication
M6 Inadequate Privacy Controls
M7 Insufficient Binary Protections
M8 Security Misconfiguration
M9 Insecure Data Storage
M10 Insufficient Cryptography

πŸ“š Where to Start?

Depending on your situation, choose the right guide:

Your Situation Read This
New to iOS pentesting getting-started-ios.md - 15-minute guide
Setting up a new Mac environment-setup-ios.md - Complete 14-section setup
Missing a specific tool tool-installation-ios.md - Per-tool guide
Need tool version reference tool-versions.md - Single source of truth
Ready to audit IPAs SKILL.md - Full 6-phase methodology
Want to master Frida frida-ios-guide.md + frida-scripts-index.md
Testing in Simulator simforge-ios-testing.md - No jailbreak needed

🀝 Contributing

Contributions are welcome! Please see the references/ directory for areas that need expansion.

πŸ“„ License

Apache License 2.0 β€” See LICENSE for details.

πŸ‘¨β€πŸ’» Author

DragonJAR SAS β€” https://www.DragonJAR.org

Experts in IT security services, proactive validation, and offensive security.


⚠️ Disclaimer: This skill is intended for authorized security testing only. Users must obtain proper authorization before conducting any security assessment. The authors are not responsible for misuse of this tool.

About

iOS-Pentesting-Skill

Resources

Stars

23 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages