К основному содержанию
скилл CX Codex

mobile-security · transilienceai — скилл для Claude Code: проверка безопасности мобильных приложений

Скилл mobile-security проверяет безопасность Android- и iOS-приложений по OWASP MASVS/MASTG: анализирует сборки, настройки и поведение во время работы.

MIT 194 установок ★ 632 обновлён 2026-07-29

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add transilienceai/communitytools --skill mobile-security -a claude-code
Открыть на GitHub

Что делает mobile-security

Скилл проводит статический анализ APK/AAB и IPA, изучает манифесты, IPC, хранилища, криптографию и подписи. Для Flutter, Unity и React Native с Hermes предусмотрен разбор скомпилированных артефактов. Результаты оформляются как находки с метками MASVS/MASTG.

Динамическая часть охватывает перехват трафика, проверку TLS pinning, хранилищ и защит от root или jailbreak. Такие проверки нужны, когда контроль можно подтвердить только во время работы приложения: статический анализ не докажет, что pinning действует. При проверке в режиме coverage обязательны анализ самого приложения и проверка API-поверхности, восстановленной из его сборки.

Скилл подходит для аудита мобильной сборки и перехода от найденных в клиенте адресов к проверке серверных API. Статические проверки нельзя отложить из-за отсутствия устройства: манифест, подпись и секреты в артефакте всё равно нужно изучить.

Какие задачи решает

  • проверить APK/AAB или IPA на слабые настройки безопасности
  • найти секреты и адреса API в собранном приложении
  • проверить TLS pinning и защиту от root или jailbreak во время работы
  • сопоставить сбор данных приложения с его декларациями
  • перейти от найденных в клиенте API к проверке серверной поверхности

Примеры запросов агенту

  • Проверь этот APK по OWASP MASVS и перечисли найденные проблемы.
  • Изучи iOS-сборку на утечки данных, слабые настройки и проблемы с Keychain.
  • Проверь, как приложение защищает трафик и API во время работы.

Как установить mobile-security

1Через Skills CLI (Vercel)

npx skills add transilienceai/communitytools --skill mobile-security -a claude-code

2Вручную: положить файлы

~/.claude/skills/mobile-security/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/mobile-security/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о mobile-security

Как установить mobile-security в Claude Code?

Выполните npx skills add transilienceai/communitytools --skill mobile-security -a claude-code. Файл скилла появится по пути ~/.claude/skills/mobile-security/SKILL.md.

Что делает mobile-security?

Скилл анализирует Android- и iOS-приложения статически и во время работы, а находки связывает с OWASP MASVS/MASTG. Также он помогает перейти от содержимого сборки к проверке связанных API.

Можно ли проверить TLS pinning только статически?

Нет. Статический анализ может выявить неиспользуемую защиту, но подтвердить работающий pinning можно только динамической проверкой с попыткой обхода.

Исходный текст

SKILL.md · MIT
---
name: mobile-security
description: Mobile application security testing (Android + iOS) mapped to OWASP MASVS/MASTG — static reversing (Flutter AOT, Unity IL2CPP, React Native/Hermes, native ARM64, Mach-O/Swift), SAST (manifest/IPC, storage, crypto, signing), dynamic analysis (Frida/objection, TLS-pinning + root/jailbreak bypass, traffic interception), and privacy testing.
---

# Mobile Security

## Scope

End-to-end mobile application VAPT for **Android (APK/AAB)** and **iOS (IPA)**, aligned to the OWASP **MASVS v2.x** control groups and the **MASTG** testing process. Four complementary tiers:

1. **Static reverse engineering** of compiled artifacts — Dart AOT snapshots, Unity IL2CPP, React Native/Hermes bytecode, native ARM64 `.so`/Mach-O, smali. Recover secrets, endpoints, and the crypto contract without a device.
2. **SAST** — manifest / `Info.plist`, exported-component & IPC surface, WebView, local storage, cryptographic-primitive weakness, code-signing, and automated baseline (MobSF/apkid/apkleaks) → then manual deep-dive.
3. **Dynamic analysis (DAST)** — Frida/objection instrumentation, traffic interception, TLS-pinning bypass across stacks, Keychain/Keystore runtime dumps, IPC probing, and root/jailbreak/anti-tamper defeat for MAS-L2 / MASA scope.
4. **Privacy** — data-collection inventory, tracker/SDK enumeration, PII leakage, declared-vs-actual (Play Data Safety / Apple Privacy Manifest).

**Static dump first** (faster, no device); dynamic is a first-class phase whenever a control can only be proven at runtime (enforced pinning, Keystore-backed keys, root reaction, IPC guards). Cross-asset stitching, scoring, and reporting are owned by sibling skills — this skill produces MASVS/MASTG-tagged findings and hands them off.

## Coverage contract

In a coverage-mode engagement (`pentest-engagement` mobile mode) completion is **code-enforced, not narrative**. Two surfaces are gated, and both are mandatory:

| Surface | File | Classes |
|---|---|---|
| The app bundle | `recon/inventory/mobile-surface.json` | the 15 `MAS-*` MASVS classes |
| The backend recovered **from** the bundle | `<apex>-api/recon/inventory/surface.json` | the ordinary OWASP API/web classes |

The second row is where the material risk has historically been. A decompiled bundle hands you the full server contract, and that surface is not browser-reachable — so it is systematically under-tested by everyone, including the app's own developers. Recovering the endpoint inventory and driving it through the API classes is not an optional extra; a bundle that yields zero endpoints is treated as a **failed acquisition**.

Per-class detail: [`reference/masvs-class-map.md`](reference/masvs-class-map.md). Two rules worth internalising before you write a negative:

- **`proof_mode: runtime` cannot be closed statically.** Pinning and root detection are the classic traps: static analysis can prove a control is *inert* (a `CertificatePinner` built and never attached, a RootBeer that no DEX references) — raise that as a positive. It can never prove the control is *effective*; that needs a bypass attempt that failed, and a failed bypass is a legitimate, reportable result.
- **`proof_mode: static` can never be device-deferred.** No device does not excuse the manifest, the signature, the bundled dependencies, or the secrets in the artifact.

## When to use

- Target ships an **Android APK/AAB** or **iOS IPA** — extract and inspect before any runtime testing.
- Built with **Flutter** (`lib/arm64-v8a/libapp.so` / iOS `App.framework`), **Unity** (`libil2cpp.so` + `global-metadata.dat`), or **React Native + Hermes** (`libhermes.so` + `index.android.bundle`) — needs a runtime-aware decompiler, not just jadx.
- Stock Android/iOS app — you need the manifest/IPC/storage/crypto/signing attack surface (SAST) and, where a control is runtime-only, dynamic confirmation.
- App uses **encrypted API envelopes** (KEY/IV/SALT/SIGNATURE headers) and you need to reverse the crypto contract, then replay against the live API.
- **TLS pinning / root / jailbreak detection** blocks testing — bypass it dynamically (or defeat it statically) and demonstrate the protected flow.
- You suspect **IDOR / mass assignment / business-logic** flaws easier to find in the dumped client, then confirmed server-side.
- You need a **MASVS-PRIVACY** pass (trackers, over-collection, PII leakage, declared-vs-actual).

## Methodology

Start at **[reference/methodology.md](reference/methodology.md)** — the phase backbone (ACQUIRE → TRIAGE → STATIC → DYNAMIC → NETWORK → STORAGE → PLATFORM/IPC → BACKEND PIVOT → REPORT), app acquisition + evidence integrity, the MASVS→file coverage map, finding-tagging convention, and the client→API pivot. It routes to every reference below. Do preflight ([../coordination/reference/preflight-checklist.md](../coordination/reference/preflight-checklist.md)) first.

## References

**Cross-cutting**
- [reference/methodology.md](reference/methodology.md) — the hub: phases, acquisition (adb pull / bundletool / ipatool), MASVS/MASTG tagging, backend pivot.
- [reference/privacy-testing.md](reference/privacy-testing.md) — MASVS-PRIVACY for both platforms: trackers/SDKs, PII channels, declared-vs-actual.

**Android**
- [reference/android-static-analysis.md](reference/android-static-analysis.md) — SAST: MobSF/apkid/apkleaks baseline, manifest & exported-component/IPC, ContentProvider SQLi/traversal, PendingIntent, deep links, native WebView RCE, storage & Keystore review, crypto-primitive weakness pass, NSC, apksigner/Janus, SBOM.
- [reference/android-dynamic-analysis.md](reference/android-dynamic-analysis.md) — DAST: device/Magisk/Zygisk setup, frida-server bring-up, objection recipes, interception + Android-7 user-CA workarounds, cross-stack pinning bypass (OkHttp/BoringSSL-Flutter/RN), drozer IPC, runtime storage, RESILIENCE active bypass + repack/resign.

**iOS**
- [reference/ios-static-analysis.md](reference/ios-static-analysis.md) — SAST: IPA acquisition + FairPlay decrypt (cryptid), Mach-O/ObjC/Swift RE, ATS, entitlements/provisioning, binary hardening, Keychain accessibility + Data Protection, URL schemes/Universal Links, WKWebView, pasteboard/snapshot, MobSF/SBOM.
- [reference/ios-dynamic-analysis.md](reference/ios-dynamic-analysis.md) — DAST: jailbroken vs non-JB (objection patchipa / frida-gadget) bring-up, objection/Frida on iOS, SSL Kill Switch / SecTrust pinning bypass, Keychain dump, LAContext biometric bypass, jailbreak/anti-debug defeat, method tracing.

**Framework-specific reverse engineering**
- [reference/flutter-aot-reversing.md](reference/flutter-aot-reversing.md) — Flutter/Dart AOT with blutter; HTTP crypto-envelope patterns (fast_rsa OAEP-SHA256 + AES-256-CBC) and the weaknesses to report.
- [reference/scenarios/android/react-native-hermes.md](reference/scenarios/android/react-native-hermes.md) — RN+Hermes: HBC-version check, decompile `index.android.bundle` with hermes-dec, BuildConfig secret fast-path, RN-specific MASVS surface.
- [reference/scenarios/android/native-lib-host-extraction.md](reference/scenarios/android/native-lib-host-extraction.md) — host-side `dlopen` of an Android `.so` with a Bionic→glibc forwarder + `strcmp`/`memcmp` interceptor (no Frida/emulator).

**Cross-skill (reused capabilities — cross-linked, not duplicated)**
- [../reverse-engineering/reference/scenarios/static-analysis/unity-il2cpp-recipe.md](../reverse-engineering/reference/scenarios/static-analysis/unity-il2cpp-recipe.md) — Unity `libil2cpp.so` + `global-metadata.dat` dump (Il2CppDumper/Il2CppInspector).
- [../reverse-engineering/reference/scenarios/dynamic-analysis/frida-hooking.md](../reverse-engineering/reference/scenarios/dynamic-analysis/frida-hooking.md) — Frida hooking primitives (spawn/attach, Interceptor, Stalker, `Java.perform`, ObjC hooks) used by both dynamic files.
- [../reverse-engineering/reference/scenarios/obfuscation/packed-binaries.md](../reverse-engineering/reference/scenarios/obfuscation/packed-binaries.md) — packer / anti-analysis unpacking for obfuscated APKs/`.so`.
- [../reverse-engineering/reference/scenarios/obfuscation/hash-dispatcher-chain.md](../reverse-engineering/reference/scenarios/obfuscation/hash-dispatcher-chain.md) — Z3 over polynomial-hash dispatcher chains in a native `.so`.
- [../api-security/reference/scenarios/rest/owasp-bola-bopla.md](../api-security/reference/scenarios/rest/owasp-bola-bopla.md) · [../api-security/reference/scenarios/rest/mass-assignment.md](../api-security/reference/scenarios/rest/mass-assignment.md) — the client→API pivot for endpoints/IDOR recovered from the client.

**Deterministic control-wiring detector**
- [`../../tools/apk_control_wiring.py`](../../tools/apk_control_wiring.py) — static cross-reference over a decompiled Android tree that distinguishes a REAL applied control from an ORPHANED one: RootBeer/SafetyNet/Play-Integrity **shipped-but-unwired** (referenced but the result gates nothing), `CertificatePinner` **built-but-not-attached** to an OkHttpClient, hardcoded AES/DES key literals + their invoke-sites, and bundled-but-never-loaded `.so`. Run it in the STATIC phase BEFORE authoring remediation verdicts — a naive re-test that only greps for the control's presence wrongly reports an inert control "fixed" (a recurring mobile re-test crux).

## Anti-patterns

- Reaching for Frida/emulator before the static dump exists — static-first is faster and needs no device. But do not treat dynamic as out of scope: pinning enforcement, Keystore binding, root reaction, and IPC reachability are runtime-only.
- Reporting a control as *present* (root/pinning/tamper detection) without an active bypass attempt — MAS-L2 / MASA require you defeat it or prove you can't.
- Concluding "no pinning" from an empty `network_security_config.xml`, or "no secrets" from a `cryptid 1` iOS binary — check the JS/native pin layers, and decrypt the IPA first.
- Stopping at a client-side IDOR — it is a server-side hypothesis; confirm via the api-security pivot.
- Reporting a CVE from a library's mere presence — confirm the exact version *and* a reachable code path.

© transilienceai · MIT · transilienceai/communitytools

Похожие скиллы

Все скиллы по теме «Безопасность» →

Сначала — mobile-security от других авторов.

mobile-security gmh5225 Скилл mobile-security для Claude Code разбирает границы доверия и защиту мобильных игр на Android и iOS. Учитывает ОС и устройство при выводах. CX Codex +1 206установок mobile-audit briiirussell Скилл mobile-audit проверяет мобильные приложения для iOS и Android по стандартам OWASP MASVS и MASTG. Находит уязвимости в хранилищах данных, криптографии, диплинках и сетевых настройках. CX Codex +1 490установок 17-mobile-security Masriyan Скилл 17-mobile-security для Claude Code проверяет безопасность мобильных приложений на Android и iOS по OWASP MASVS и MASTG. Анализирует файлы APK и IPA, настройки хранилища и сетевой трафик. CX Codex +1 ★ 71звёзд репо mobile-security-coder Seth Hobson Субагент mobile-security-coder для безопасной разработки мобильных приложений. Специализируется на валидации ввода. CX Codex ★ 42 780звёзд репо testing-mobile-api-authentication mahipal Скилл testing-mobile-api-authentication для Claude Code проверяет аутентификацию и авторизацию мобильных API: JWT, OAuth, токены, сессии и IDOR. Помогает проводить разрешённые API-аудиты. CX Codex +1 276установок mobile-code-review OWASP Скилл mobile-code-review проверяет исходный код мобильных приложений под Android и iOS на уязвимости по стандарту OWASP MASVS v2.1.0. CX Codex +1 224установок mobile-ssl-pinning-bypass yaklang Скилл mobile-ssl-pinning-bypass описывает обход SSL pinning в мобильных приложениях на Android и iOS, включая приёмы для Flutter, React Native и Xamarin. CX Codex +1 4 000установок

Из того же набора42

Весь набор →
essential-tools Скилл essential-tools для Claude Code, Codex, Cursor, Copilot, Gemini CLI и OpenCode — загружает методологию пентеста, Burp Suite, Playwright, Nuclei и стандарты отчётности. CX Codex +1 202установок coordination Скилл coordination для координации агентов при проведении тестов безопасности. Управляет выполнением и валидацией, хранит состояние engagement в одном контексте и не делегирует мышление подагентам. CX Codex +1 198установок cloud-containers Скилл cloud-containers проверяет настройки AWS, Azure, GCP, Docker и Kubernetes на уязвимости. Он пригодится для атаки на облачную цель или отдельной проверки конфигурации с доступом только на чтение. CX Codex +1 197установок github-workflow Скилл github-workflow для Claude Code автоматизирует GitHub-операции: ветки, коммиты, пуши, pull requests, issues и code review. Выполняет запросы агента на коммит, пуш, создание PR и управление веткой. CX Codex +1 195установок system Скилл system для тестирования безопасности на уровне системы: атаки на Active Directory, повышение привилегий в Linux и Windows, разработка эксплойтов. Пригодится пентестерам и исследователям безопасности. CX Codex +1 194установок firewall-review Скилл firewall-review для Claude Code помогает проверять конфигурации межсетевых экранов и готовить отчёт об аудите. Вызывается для разбора правил, включая проверки FortiGate. CX Codex +1 186установок cve-risk-score Скилл cve-risk-score ищет сведения о CVE в NVD и показывает оценку CVSS, уровень серьёзности, CWE и описание. Срабатывает, когда CVE ID появляется в разговоре. CX Codex +1 185установок script-generator Скилл script-generator генерирует готовые скрипты на Python, Bash и PowerShell с проверкой синтаксиса и защитой от зависания. Сам код агент никогда не запускает. CX Codex +1 176установок

Ещё в каталоге

Спонсоры проекта

Компании, которые помогают держать аналитику открытой