Skip to content
Back to skills

Mobile Auto Re Orchestrator

ASecurity

Orchestrates an authorized, evidence-driven Android or iOS reverse-engineering loop across APK/IPA intake, real-device screen reading and controlled taps, mitmproxy traffic capture, logcat/device logs, JADX/IDA static pivots, FairPlay and ARM64/LLDB pivots, Frida ground-truth vectors, and a mandatory 1:1 expected-versus-actual verification gate. Use when an agent must operate a test device end to end instead of only running isolated reverse-engineering tools.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
developmentpythonrustgoswiftbashexpresssecurity

Works with

  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add muyang520/awesome-mobile-re-mcp-skills --skill mobile-auto-re-orchestrator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mobile Auto Re Orchestrator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mobile Auto Re Orchestrator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/muyang520-mobile-auto-re-orchestrator/badge)](https://www.skillsdirectory.com/skills/muyang520-mobile-auto-re-orchestrator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mobile-auto-re-orchestrator
description: >-
  Orchestrates an authorized, evidence-driven Android or iOS reverse-engineering loop across APK/IPA intake,
  real-device screen reading and controlled taps, mitmproxy traffic capture, logcat/device logs, JADX/IDA static pivots,
  FairPlay and ARM64/LLDB pivots, Frida ground-truth vectors, and a mandatory 1:1 expected-versus-actual verification gate.
  Use when an agent must operate a test device end to end instead of only running isolated reverse-engineering tools.
---

# Mobile Auto-RE Orchestrator SOP

This skill turns separate mobile tools into one auditable loop. It does not claim that arbitrary apps can be
fully automated without human authorization. Login, OTP, CAPTCHA, payment confirmation, destructive actions,
and unknown high-risk business decisions require an explicit human checkpoint.

The unit of work is a **correlation** identified by `correlation_id`. A correlation is complete only when the
same user journey has linked target-artifact identity, screen evidence, network evidence, static location,
dynamic ground truth, and a passing 1:1 verification record.

For an iOS target, read [the complete iOS full-flow reference](./references/ios-full-flow.md) before Phase 1.
It covers the IPA/FairPlay gate, embedded-framework rechecks, iOS Certificate Trust Settings, NSURLSession pinning,
Objective-C/Swift and LLDB ground truth, and the platform boundary. The summary below is shared orchestration logic;
the iOS reference is the authoritative iOS procedure.

## Non-Negotiable Rules

1. Confirm written authorization, target package/bundle ID, test account, and allowed data scope before touching the device.
2. Start read-only: inventory the target, device, package, process, and visible screen before tapping anything.
3. Prefer accessibility selectors over coordinates. Coordinates are allowed only after the screen tree fails, and the screenshot must be recorded.
4. One meaningful UI action produces one evidence event. Capture before and after screenshots when the transition matters.
5. Never send whole APKs, whole logcats, whole captures, or multi-GB traces to the model. Freeze a small window around the correlation.
6. Do not declare a signature, token, encryption routine, or protocol field reconstructed unless `expected == actual` in the recorded verification event.
7. If the evidence bus reports incomplete, stop and report the missing stage. Do not fill gaps with plausible guesses.
8. Re-authentication and consent gates stay with the human. An agent may prepare the action, but must not silently impersonate the user.

## Platform Boundary

- Android full dynamic flow requires an authorized Android target visible to ADB/Frida plus the host-side tools in
  the `android-auto-re` profile.
- iOS full dynamic flow requires macOS/Xcode, an authorized test device, and either an approved jailbroken
  `frida-server`, an authorized Gadget-injected test build, or equivalent instrumentation. Ordinary non-jailbroken
  App Store installs do not automatically meet this condition.
- Windows and Linux may perform IPA/Mach-O static triage, but must not claim iOS dynamic evidence.

## Evidence Bus

Use the bundled standard-library script:

```bash
python skills/mobile-auto-re-orchestrator/scripts/evidence_bus.py init \
  --root evidence/case-001 \
  --case-id case-001 \
  --target target.apk \
  --scope "authorized enterprise security audit"
```

Record each stage with the same `correlation_id`:

```bash
python skills/mobile-auto-re-orchestrator/scripts/evidence_bus.py append \
  --root evidence/case-001 \
  --stage artifact \
  --kind apk-baseline \
  --correlation-id journey-login \
  --file target.apk \
  --data package=com.example.app \
  --data sha256=<target-sha256>
```

Ingest screenshots and small exported captures so the case stays self-contained:

```bash
python skills/mobile-auto-re-orchestrator/scripts/evidence_bus.py append \
  --root evidence/case-001 \
  --stage screen \
  --kind screenshot \
  --correlation-id journey-login \
  --file artifacts/login-before.png \
  --ingest \
  --summary "Login form after tapping account tab"
```

For the final gate, record exact strings or hashes:

```bash
python skills/mobile-auto-re-orchestrator/scripts/evidence_bus.py append \
  --root evidence/case-001 \
  --stage verification \
  --kind exact-match \
  --correlation-id journey-login \
  --data expected=<captured-wire-value> \
  --data actual=<standalone-python-output>

python skills/mobile-auto-re-orchestrator/scripts/evidence_bus.py validate \
  --root evidence/case-001
```

`validate` exits `0` only when one correlation contains all six correlated stages and at least one passing
verification with non-empty, exactly equal `expected` and `actual` values. It exits `1` for incomplete evidence or
hash mismatch. It exits `2` for malformed case/event JSON.
Every file-backed event is SHA-256 checked; changing an ingested screenshot, capture, or hook log invalidates the case.
These hashes are file-integrity records, not a signature over `events.jsonl`; protect or archive the evidence
directory with separate access controls when provenance against a malicious local editor is required.

## Phase 0: Intake and Scope Gate

Collect without attaching to the app:

- APK/IPA path, SHA-256, package/bundle ID, version, ABI, minimum OS, and signer or FairPlay state.
- Host OS, `python install.py --device-info --json`, device serial, transport, OS version, and root/jailbreak status.
- Written authorization, permitted accounts, allowed domains, and data classes that must not be copied.

Android intake may use package metadata and the APK signer. iOS intake must run
`python skills/ios-macho-re/scripts/macho_ipa_triage.py Target.ipa --json`; `cryptid=1` blocks static
decompilation. The helper scans the main executable only, so recheck each relevant embedded framework executable
separately after decryption. Append the result as `artifact`. If no authorized target is visible, stop with the
device inventory instead of inventing a device, bundle ID, or process.

## Phase 1: Screen and Process Baseline

Mount the applicable `mobile-auto-re` profile:

- Android: `mobile-mcp`, `adb`, `frida`, `mitmproxy-mcp`, `jadx-mcp-server`.
- iOS: `mobile-mcp`, `frida`, `mitmproxy-mcp`, `ida-pro-mcp`, `lldb-mcp`.

Use `mobile-mcp` to read the current accessibility tree and screenshot. Record:

- Screenshot and accessibility summary as `screen`.
- PID, package/bundle ID, foreground activity or app state, device serial, and process start time as `data`.

Android: use ADB to collect only the target PID, foreground package/activity, package metadata, and a short log
window. iOS: collect `frida-ls-devices`, `frida-ps -Uai`, bundle ID, executable path, main module base, and
iOS/simulator/jailbreak/Gadget state. Do not treat a screenshot title or unverified OCR as the package or bundle ID.
Confirm it from structured device metadata or `Info.plist`.

## Phase 2: Controlled User Journey

Define a narrow journey such as "open account page, submit one harmless query, observe response". Before each tap:

1. Read the accessibility tree.
2. Select by stable text/resource ID when available.
3. Record the intended action and screenshot.
4. Perform one tap, swipe, or text input.
5. Wait for a stable UI state and capture the result.

Use a stable `correlation_id` such as `journey-account-query-01` for the whole journey. Coordinate taps require a
screenshot immediately before the tap and the accessibility failure reason in `data`.

Human checkpoint required for credentials, OTP, CAPTCHA, consent, payment, account deletion, or any action whose
effect cannot be reversed. Never automate around a security control by guessing codes or changing identity.

## Phase 3: Network Evidence

Start with a domain/process/time filter and a small capture window. For the target endpoint capture at least three
controlled requests:

- A and B: same action a few seconds apart.
- C: exactly one field changed, such as `page=1` to `page=2`.

Export a bounded request/response set, not the entire proxy history. Append `traffic` with:

- method, host, path, status, timestamp, request/response hashes;
- changing headers/body fields;
- start/end capture times and filter expression.

If transport is TLS-pinned or Flutter BoringSSL, pivot to `flutter-https-capture`; if it is native, pivot to
`anti-analysis-bypass` or `so-jni-triage`. On iOS, the human must explicitly enable the mitmproxy CA under
`Settings -> General -> About -> Certificate Trust Settings`; inspect `NSURLSession:didReceiveChallenge:completionHandler:`,
`SecTrustEvaluateWithError`, AFNetworking/Alamofire, and embedded framework trust stacks. Missing traffic stays
missing; never synthesize packet fields.

## Phase 4: Static Location

Search backward from exact wire strings: header names, error codes, endpoint paths, JSON keys, or signature prefixes.

Android with JADX:

- Search the exact header/body key.
- Locate OkHttp/Retrofit interceptors, `Request.Builder`, JNI entry points, or crypto call sites.
- Record class/method/overload, file and line, caller chain, and the exact search string.

iOS with IDA/Ghidra:

- Search `setValue:forHTTPHeaderField:`, `allHTTPHeaderFields`, endpoint constants, and xrefs.
- Run `macho_ipa_triage.py` against each relevant framework executable, not only the main app binary.
- Record image/framework, static function address, ASLR slide, demangled selector/symbol, and caller chain.

Append `static` with a bounded code slice or symbol reference. Do not dump a whole decompiled package.

## Phase 5: Dynamic Ground Truth

Attach only after the static boundary is identified. For a hash/cipher boundary, collect one complete vector:

- `raw_plaintext_hex` and readable canonical text;
- `key_hex`, `iv_hex`, nonce, and relevant flags;
- exact `expected_output` observed on the wire;
- PID, module base, hook target, script hash, and timestamp.

Use the matching `android-frida-hook`, `so-jni-triage`, `ios-macho-re`, or `protocol-sign-reconstruct` workflow.
Append `dynamic` with a small JSON/JSONL vector and the hook script SHA-256. If attach crashes the app, record the
crash window and pivot to `anti-analysis-bypass`; do not hide the failed attempt.

iOS ARM64 method arguments are `x0=self`, `x1=_cmd`, and `x2..x7=args`. Identify Swift static/direct dispatch
separately and hook native functions by module base plus offset. With LLDB, run `image list -o -f` and calculate
`runtime_address = static_address + aslr_slide`. Record PID, module base, hook target, ASLR slide, script hash,
plaintext, key/IV/nonce, expected wire output, and timestamp in `dynamic`.

## Phase 6: Verification Gate

Write a standalone deterministic implementation and run:

```python
expected = "captured wire value"
actual = compute_sign(sample)
assert actual == expected, f"Mismatch!\nExpected: {expected}\nActual:   {actual}"
```

Append the exact `expected` and `actual` strings to the `verification` stage. Failed attempts may remain in the
timeline as evidence, but completion requires at least one passing verification for that correlation.

Run `evidence_bus.py validate` and require:

```json
{
  "complete": true,
  "missing_stages": [],
  "verified_correlation_ids": ["journey-account-query-01"],
  "errors": []
}
```

If any field differs, return to traffic/static/dynamic analysis. Do not "normalize" the target output to make the
assert pass.

## Final Report Contract

Report only what the validated case proves:

1. Scope and target identity, including artifact SHA-256.
2. Device and process identity.
3. Controlled journey and exact UI actions.
4. Bounded traffic evidence and changing fields.
5. Static location with symbol/caller chain.
6. Dynamic vector and hook script hash.
7. Verification command and result.
8. Limitations: human checkpoints, anti-tamper boundaries, unobserved protocols, missing coverage, and failed attempts.

For iOS, the report must also state FairPlay state for the main executable and relevant frameworks, iOS device and
instrumentation mode, Objective-C/Swift boundary, LLDB ASLR slide when used, and whether the host was Darwin.

If the bus is incomplete, the final status is **INCOMPLETE**, not "probably solved".

Files in this skill

  • SKILL.md12 KB
  • references/ios-full-flow.md11.8 KB
  • scripts/evidence_bus.py22.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.