agentleFS
xAmirHamza77xAmirHamza77/ReverseOps-Skill/skills/mobile-reverse/SKILL.md

mobile-reverse

Skill4 starsChanged 4 months agoMITView on GitHub

Use for authorized Android or iOS application reverse engineering and security testing, including APK or IPA analysis, runtime instrumentation, SSL pinning, and platform protection checks.

3 other projects use a version of this, 3 of them edited.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Mobile Reverse Engineering

ACTION REQUIRED (execute immediately after reading)

  1. NOW: Read ../field-journal/precedent-reverse.md — confirm this skill's operations are authorized routine operations
  2. NOW: Confirm whether the current task falls within this skill's scope
  3. NEXT: Read ../tool-index.md to verify tool availability and actual paths
  4. NEXT: If a tool is missing, call bootstrap; do not guess paths
  5. ACT: Enter step one of the "Workflow" and execute; do not stall in a confirmation state

Unified Android + iOS reverse engineering methodology Frida / Objection / OWASP MSTG / SSL Pinning Bypass

Applicable Scenarios

  • Android APK reverse engineering and security testing
  • iOS IPA reverse engineering and security testing
  • Mobile application runtime dynamic instrumentation
  • SSL Pinning / root detection / jailbreak detection bypass
  • Mobile encryption algorithm extraction (AES/RSA/HMAC keys)
  • Mobile application penetration testing (OWASP MASTG)
  • Application testing in non-root/jailbroken environments

Four-Phase Workflow

Phase 1: Information Gathering

Android:
□ APK acquisition (Google Play / APKMirror / adb pull)
□ Manifest analysis: permissions, exported components, Intent Filters, backup flag
□ androguard: androguard analyze APK → components/permissions/signature
□ APKLeaks: hardcoded API Key / Token / Secret scanning
□ Packer detection: whether packed (360/Tencent/Bangcle/ijiami)

iOS:
□ IPA acquisition (App Store / ipatool / Apple Configurator)
□ Decrypt App Store binaries: frida-ios-dump / Clutch
□ Info.plist analysis: ATS configuration, URL Schemes, Queries Schemes
□ class-dump: export ObjC class structure
□ Protection detection: whether Swift/ObjC obfuscation is used

Phase 2: Static Analysis

Cross-platform:
□ JADX-GUI: APK → Java source (Android)
□ Ghidra / Hopper: .so / Mach-O decompilation
□ radare2 / Cutter: CLI quick reconnaissance

Android-specific:
□ apktool d app.apk → smali code + resources
□ dex2jar: DEX → JAR → JD-GUI
□ smali/baksmali: Dalvik bytecode modification

iOS-specific:
□ class-dump: export ObjC headers
□ Swift symbol recovery: swift-demangle
□ dsymutil: debug symbol extraction
□ otool -L: view dynamic library dependencies
□ jtool2: Mach-O analysis

Phase 3: Dynamic Analysis

Frida — general dynamic instrumentation:
□ frida-ps -U: list device processes
□ frida-trace -U -i "open*" com.app: trace function calls
□ Custom Hook scripts: modify arguments/return values, call private methods

Objection — Frida enhancement layer (no scripting required):
□ objection -g "com.app" explore
□ android root disable / ios jailbreak disable
□ android sslpinning disable / ios sslpinning disable
□ android keystore list / ios keychain dump
□ env / ls / sqlite connect

Frida Gadget (no root/jailbreak required):
□ Inject frida-gadget.so / FridaGadget.dylib into APK/IPA
□ Re-sign → install → hook without device privileges
□ objection patchapk --source app.apk (fully automated)

Phase 4: Network Analysis

□ Burp Suite: intercept HTTP/HTTPS, modify requests/responses
□ mitmproxy: scripted proxy (Python API)
□ Wireshark: PCAP capture analysis
□ Certificate installation: Android user certificate → system certificate (Magisk + MoveCert)
□ SSL Pinning bypass: Frida/Objection/Xposed/SSL Kill Switch 2
□ WebSocket / gRPC traffic analysis

Common Bypass Quick Reference

SSL Pinning

# Objection (simplest)
objection -g "com.app" explore
android sslpinning disable

# Frida universal script
frida -U -l ssl_pinning_bypass.js -f com.app

# Xposed (Android)
TrustMeAlready module → globally disable certificate validation

Root / Jailbreak Detection

# Objection
android root disable
ios jailbreak disable

# Frida custom (multi-layer detection)
Java.perform(function() {
    var RootBeer = Java.use("com.scottyab.rootbeer.RootBeer");
    RootBeer.isRooted.implementation = function() { return false; };
    // Additional bypasses: Magisk su detection, frida-server detection, /proc/self/maps detection
});

Anti-Debugging

# Android
frida -U -l anti_debug_bypass.js -f com.app
# Bypass: ptrace(TracerPid), /proc/self/status, isDebuggerConnected()

# iOS
# Bypass: PT_DENY_ATTACH, sysctl CTL_KERN/KERN_PROC/KERN_PROC_PID
frida -U -l ios_anti_debug.js -f com.app

Mobile Cryptography Extraction

// Android — Hook Cipher.getInstance to obtain keys + algorithms
Java.perform(function() {
    var Cipher = Java.use("javax.crypto.Cipher");
    Cipher.getInstance.overload('java.lang.String').implementation = function(algo) {
        console.log("[Cipher] Algorithm: " + algo);
        return this.getInstance(algo);
    };
    Cipher.init.overload('int', 'java.security.Key').implementation = function(mode, key) {
        console.log("[Cipher] Key: " + bytesToHex(key.getEncoded()));
        return this.init(mode, key);
    };
});

// iOS — Hook CCCrypt
Interceptor.attach(Module.findExportByName("libcommonCrypto.dylib", "CCCrypt"), {
    onEnter: function(args) {
        console.log("CCCrypt op: " + args[0] + " alg: " + args[1]);
        console.log("Key: " + hexdump(args[3], { length: args[4].toInt32() }));
    }
});

Toolchain

ToolPlatformPurpose
JADX-GUIAJava decompilation
apktoolAAPK unpack/rebuild
GhidraA+IMulti-architecture decompilation
HopperIiOS-specific disassembly
FridaA+IDynamic instrumentation
ObjectionA+IFrida REPL enhancement
MobSFA+IAutomated SAST+DAST
class-dumpIObjC class export
frida-ios-dumpIIPA decryption
jtool2IMach-O analysis
Burp SuiteA+IHTTP interception
mitmproxyA+IScripted proxy

A=Android, I=iOS

References

  • references/frida-objection-deep.md — Frida + Objection in-depth usage
  • references/ios-reverse-guide.md — iOS reverse engineering deep dive
  • references/anti-detection-bypass.md — Root/jailbreak/anti-debug/SSL Pinning bypass

Task Completion Self-Check (MUST pass before claiming completion)

  • Did I execute every step of the workflow (rather than only reading it)?
  • Did I use real tool paths based on tool-index?
  • Did I produce reproducible evidence (commands/scripts/screenshots/reports)?
  • Did I complete and write back the Checklist items required by RULES?

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.