agentleFS
mahumadadmahumadad/quarry/skills/platform/mobile-ios/SKILL.md

mobile-ios

Skill1 starsChanged 12 days agoMITView on GitHub

iOS application security testing for authorized engagements: IPA static analysis, keychain data review, URL scheme / universal link abuse, ATS (App Transport Security) exception abuse, jailbreak detection bypass. Keywords: iOS, IPA, keychain, URL scheme, universal link, ATS, jailbreak detection, Frida, objection, class-dump. Do NOT use for Android (see mobile-android), or for a backend API the app merely talks to — hand identified endpoints to standard web/API testing skills; this skill covers the client binary and on-device attack surface only.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always test against a build/bundle ID explicitly confirmed in scope — App Store apps are live production software affecting real users.

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Signals

  • .ipa file provided in scope, or app downloadable from App Store for an in-scope target.
  • App registers custom URL schemes (CFBundleURLTypes in Info.plist) or universal links (apple-app-site-association).
  • App makes API calls to an in-scope backend.

Prerequisites

  • Written authorization naming the specific app bundle ID in scope.
  • Jailbroken iOS device (checkra1n/palera1n for compatible iOS versions) or a jailbroken simulator/corellium instance; frida-server running on-device.
  • objection, class-dump/class-dump-dyld, ideviceinstaller, plutil, mitmproxy/Burp.

Methodology

1. Static analysis — extract and inspect the IPA

unzip target.ipa -d target_ipa
plutil -convert xml1 -o - target_ipa/Payload/Target.app/Info.plist | grep -A3 "CFBundleURLSchemes\|NSAppTransportSecurity"
class-dump -H target_ipa/Payload/Target.app/Target -o headers/
# Look for hardcoded secrets/API keys in binary strings
strings target_ipa/Payload/Target.app/Target | grep -iE "api[_-]?key|secret|http://"

2. ATS exception review (plaintext HTTP / weak TLS allowed)

plutil -convert xml1 -o - target_ipa/Payload/Target.app/Info.plist | grep -B2 -A10 "NSAppTransportSecurity"
# NSAllowsArbitraryLoads=true or a domain exception with NSExceptionAllowsInsecureHTTPLoads=true is a finding

3. Install and connect for dynamic testing

ideviceinstaller -i target.ipa
frida-ps -Ua | grep -i target
objection -g com.target.app explore

4. Jailbreak detection bypass

objection -g com.target.app explore
ios jailbreak disable
# Or targeted Frida script hooking common checks (file existence, fork(), Cydia URL scheme)
frida -U -f com.target.app -l frida-scripts/ios-jailbreak-bypass.js --no-pause

5. Certificate pinning bypass (for Burp/mitmproxy interception)

objection -g com.target.app explore
ios sslpinning disable
# Or SSL Kill Switch 2 style universal bypass if objection's hooks don't cover custom pinning

6. URL scheme / universal link abuse

# Trigger a custom scheme directly to test for auth bypass, data leak, or injection
xcrun simctl openurl booted "targetapp://reset?token=injected"
# On a real device via SSH (jailbroken)
ssh root@<device-ip> "uiopen targetapp://admin/debug"

7. Keychain and local storage review

objection -g com.target.app explore
ios keychain dump
ios plist cat Info.plist
ios cookies get
# Direct filesystem access on jailbroken device
ssh root@<device-ip> "find /var/mobile/Containers/Data/Application -iname '*.sqlite' -path '*target*'"

8. Runtime class/method inspection and hooking

objection -g com.target.app explore
ios hooking list classes
ios hooking search methods isJailbroken
ios hooking watch class_method "TargetApp.AuthManager.validateToken:"

Tooling

Frida+frida-server, objection, class-dump, ideviceinstaller, libimobiledevice suite, mitmproxy/Burp Suite, r2 (radare2) for binary analysis.

Validation Gate

  • Keychain/local-storage findings must show actual extracted sensitive data (token, credential, PII), not just "keychain is accessible on a jailbroken device" (expected on any jailbroken device regardless of app).
  • ATS exception findings must be confirmed as actually reachable/used in a real request flow, not just present in Info.plist but dead code.
  • Capture exact objection/Frida output and the plist excerpt as evidence.

Gotchas

  • Jailbreak detection bypass results can be device/iOS-version specific — a script working on checkra1n/iOS 14 may not work on palera1n/iOS 16; verify the bypass actually holds before building further tests on top of it.
  • App Store builds strip debug symbols and often harden against Frida (anti-debugging, ptrace self-attach) more than client-provided TestFlight/ad-hoc builds — confirm which build is in scope.
  • NSAllowsArbitraryLoads findings should be weighed against whether the exception is scoped to a specific non-sensitive domain vs. global.
  • Always test against a build/bundle ID explicitly confirmed in scope — App Store apps are live production software affecting real users; destructive dynamic testing should stay confined to test accounts.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.