Source profileQuality 97/100

brucesongs/kali-claw/skills/mobile-security/SKILL.md

mobile-security

Mobile security covers the complete attack/defense chain of Android/iOS application security testing, APK/IPA reverse engineering, runtime manipulation, certificate pinning bypass, and mobile data protection.

Source repository stars
65
Declared platforms
2
Static risk flags
1
Last source update
2026-08-19
Source checked
2026-08-25

Decision brief

What it does: where it fits

Supplementary Files: - payloads.md — Complete mobile security attack/defense chain payloads (APK/IPA analysis, Frida hooks, SSL bypass, storage extraction, Intent attacks, etc.) - test-cases.md — Structured test cases (static analysis, dynamic analysis, runtime manipulation, net…

Best for

  • Android/iOS Application Penetration Testing - Perform security assessments on target mobile applications, discovering vulnerabilities such as data leakage, insecure storage, and exposed components
  • APK Reverse Engineering and Code Audit - Decompile Android applications, auditing source code for hardcoded credentials, insecure API calls, and logic flaws
  • SSL Pinning Bypass - Bypass application certificate pinning mechanisms to intercept and analyze encrypted HTTPS traffic

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeDeclaredSource recordInstall path and trigger
CursorDeclaredSource recordInstall path and trigger
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/brucesongs/kali-claw --skill "skills/mobile-security"
Safe inspection promptEditorial

Inspect the Agent Skill "mobile-security" from https://github.com/brucesongs/kali-claw/blob/a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e/skills/mobile-security/SKILL.md at commit a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Summary

    Mobile Security skill domain covering mobile operations.

    Mobile Security skill domain covering mobile operations.Tools: frida, objection, apktool, jadx, mobsf, drozer
  2. 02

    Description

    Mobile security covers the complete attack/defense chain of Android/iOS application security testing, APK/IPA reverse engineering, runtime manipulation, certificate pinning bypass, and mobile data protection. The core objective is to identify security flaws in mobile application…

    Mobile security covers the complete attack/defense chain of Android/iOS application security testing, APK/IPA reverse engineering, runtime manipulation, certificate pinning bypass, and mobile data protection. The core o…Mastering this skill requires a deep understanding of Android APK structure (DEX, Manifest, Resources), iOS IPA structure (Mach-O, Info.plist), mobile sandbox mechanisms, Keychain/Keystore secure storage, and Frida dyna…
  3. 03

    Use Cases

    1. Android/iOS Application Penetration Testing - Perform security assessments on target mobile applications, discovering vulnerabilities such as data leakage, insecure storage, and exposed components 2. APK Reverse Engineering and Code Audit - Decompile Android applications, aud…

    Android/iOS Application Penetration Testing - Perform security assessments on target mobile applications, discovering vulnerabilities such as data leakage, insecure storage, and exposed componentsAPK Reverse Engineering and Code Audit - Decompile Android applications, auditing source code for hardcoded credentials, insecure API calls, and logic flawsSSL Pinning Bypass - Bypass application certificate pinning mechanisms to intercept and analyze encrypted HTTPS traffic
  4. 04

    Core Tools

    Review the “Core Tools” section in the pinned source before continuing.

    Review and apply the “Core Tools” source section.
  5. 05

    Methodology

    1. App Decompilation - apktool restores Manifest and smali code, jadx decompiles to readable Java, obtaining complete application structure 2. Static Analysis - Audit AndroidManifest.xml (exported components, permissions, debuggable flag), scan for hardcoded credentials and API…

    App Decompilation - apktool restores Manifest and smali code, jadx decompiles to readable Java, obtaining complete application structureStatic Analysis - Audit AndroidManifest.xml (exported components, permissions, debuggable flag), scan for hardcoded credentials and API keysDynamic Analysis - Configure proxy to intercept network traffic, analyze API communication patterns and authentication mechanisms, identify certificate pinning implementations

Permission review

Static risk signals and limitations

Writes files

medium · line 77

The documentation asks the agent to create, modify, or delete local files.

| **Root/Jailbreak Detection** | Detect whether device is rooted/jailbroken, blocking dangerous environments | Frida hook detection function return values, modify file existence checks |

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score97/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars65SourceRepository attention, not individual Skill quality
Compatibility2 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
brucesongs/kali-claw
Skill path
skills/mobile-security/SKILL.md
Commit
a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e
License
MIT
Collected
2026-08-25
Default branch
main
View the original SKILL.md

Skill: Mobile Security

Supplementary Files:

  • payloads.md — Complete mobile security attack/defense chain payloads (APK/IPA analysis, Frida hooks, SSL bypass, storage extraction, Intent attacks, etc.)
  • test-cases.md — Structured test cases (static analysis, dynamic analysis, runtime manipulation, network testing, data protection)

Summary

Mobile Security skill domain covering mobile operations.

Tools: frida, objection, apktool, jadx, mobsf, drozer

Domain: mobile

Description

Mobile security covers the complete attack/defense chain of Android/iOS application security testing, APK/IPA reverse engineering, runtime manipulation, certificate pinning bypass, and mobile data protection. The core objective is to identify security flaws in mobile applications, assess client-side defense strength, extract sensitive data, and develop hardening strategies.

Mastering this skill requires a deep understanding of Android APK structure (DEX, Manifest, Resources), iOS IPA structure (Mach-O, Info.plist), mobile sandbox mechanisms, Keychain/Keystore secure storage, and Frida dynamic instrumentation. The agent can comprehensively use tools such as apktool, jadx, Frida, objection, and MobSF to complete the full workflow from application decompilation to runtime manipulation.


Use Cases

  1. Android/iOS Application Penetration Testing - Perform security assessments on target mobile applications, discovering vulnerabilities such as data leakage, insecure storage, and exposed components
  2. APK Reverse Engineering and Code Audit - Decompile Android applications, auditing source code for hardcoded credentials, insecure API calls, and logic flaws
  3. SSL Pinning Bypass - Bypass application certificate pinning mechanisms to intercept and analyze encrypted HTTPS traffic
  4. Runtime Hooking and Data Extraction - Use Frida for dynamic instrumentation of running applications, hooking encryption functions, bypassing security checks, and extracting sensitive data from memory
  5. Mobile Malware Analysis - Analyze behavioral characteristics of suspicious APKs/IPAs, extract IoCs, and assess threat levels

Core Tools

ToolPurposeCommand Example
fridaDynamic instrumentation framework, runtime hooks, function tracing, memory read/writefrida -U -f com.target.app -l hook.js
objectionFrida-based mobile runtime exploration toolkitobjection -g com.target.app explore
apktoolAPK decompilation and repackaging, restoring Manifest and smaliapktool d app.apk -o app_source
jadxDEX decompilation to readable Java source codejadx app.apk -d app_java
mobsfMobile application automated security analysis framework (static + dynamic)docker run -p 8000:8000 opensecurity/mobsf
drozerAndroid IPC vulnerability scanning and exploitation frameworkdrozer console connect

Methodology

Attack Chain

App Decompilation     Static Analysis       Dynamic Analysis     Runtime Manipulation
(apktool, jadx)     (Code audit, Manifest) (Proxy, traffic)   (Frida, objection)
      |                 |                 |                |
      v                 v                 v                v
Information          Vulnerability      Communication        Data Extraction
Collection           Identification     Analysis             & Exploitation
(Package name,      (Hardcoded         (API endpoints,     (Sensitive data
 components,         credentials,       authentication       export,
 permissions, SDK)   exported            mechanisms,         auth bypass,
                       components,       SSL Pinning)        security check
                       insecure                              bypass)
                       storage)
  1. App Decompilation - apktool restores Manifest and smali code, jadx decompiles to readable Java, obtaining complete application structure
  2. Static Analysis - Audit AndroidManifest.xml (exported components, permissions, debuggable flag), scan for hardcoded credentials and API keys
  3. Dynamic Analysis - Configure proxy to intercept network traffic, analyze API communication patterns and authentication mechanisms, identify certificate pinning implementations
  4. Runtime Manipulation - Use Frida to hook key functions (encryption, authentication, checks), bypass security protections, extract runtime sensitive data
  5. Data Extraction and Exploitation - Export plaintext data from SharedPreferences/SQLite, exploit exported component vulnerabilities, construct Intent attack chains

Defense Perspective

Defense MeasurePurposeBypass Approach
Code ObfuscationProGuard/R8 obfuscate code, increasing reverse engineering difficultySpend time analyzing obfuscation mappings, dynamically hook to bypass static protections
Certificate PinningPin server certificate fingerprints, preventing MITM attacksFrida hook TrustManager / OkHttp CertificatePinner
Root/Jailbreak DetectionDetect whether device is rooted/jailbroken, blocking dangerous environmentsFrida hook detection function return values, modify file existence checks
Anti-TamperingDetect APK integrity, prevent repackagingModify signature verification logic, bypass integrity checks
Secure StorageUse Android Keystore / iOS Keychain for sensitive data storageHook encryption functions to intercept plaintext before encryption / after decryption
Anti-DebugDetect debugger attachment, preventing dynamic analysisModify anti-debugging flags, use Frida spawn mode to bypass

Practical Steps

1. APK Decompilation and Static Analysis

Decompile APK to obtain Manifest and smali code, scan for hardcoded credentials and insecure storage patterns.

2. Frida Hook Basics

Use Frida Java.perform to hook login methods for credential interception, hook encryption functions to intercept plaintext data.

3. SSL Pinning Bypass

Bypass certificate pinning through Frida hooking OkHttp CertificatePinner or replacing TrustManager. Shortcut: objection -g com.target.app explore -> android sslpinning disable.

4. Data Storage Analysis

Check SharedPreferences plaintext storage, SQLite database contents, external storage leakage, exploit allowBackup to extract application data.

5. Intent Exploitation and Component Attacks

Use drozer to discover exported components, construct malicious Intents via adb to attack exported Activities, Content Providers, Broadcast Receivers, and Deep Links.

Detailed payloads in payloads.md, complete test checklist in test-cases.md.


Cross-Platform Mobile Testing

Modern mobile apps increasingly use cross-platform frameworks that introduce unique attack surfaces:

FrameworkKey Attack SurfacePrimary Tools
React NativeJS bundle extraction, WebView bridges, AsyncStoragejadx, Frida, Burp
FlutterDart snapshot, libapp.so, platform channelsGhidra, Frida, reFlutter
XamarinDLL extraction, AOT compilationdnSpy, ILDasm
Capacitor/IonicWebView exposure, plugin APIChrome DevTools, Burp

See guides/react-native-flutter-security.md for framework-specific testing methodology.

Mobile-Cloud Integration Testing

Mobile apps connect to cloud backends (Firebase, AWS Amplify, custom APIs). Key test areas:

  1. Backend API exposure: Enumerate and test all API endpoints accessible from the app
  2. Cloud service misconfiguration: Firebase rules, Cognito pools, Storage buckets
  3. Authentication flow: OAuth 2.0/OIDC implementation flaws on mobile
  4. Third-party SDK security: Data collection, tracking, insecure defaults

See guides/mobile-api-security-testing.md and guides/mobile-cloud-integration.md.


Detection Methods

Mobile App Static Analysis

  • Hardcoded secrets: Strings analysis revealing API keys (AKIA...), JWT tokens, OAuth client secrets.
  • Insecure storage: Credentials in SharedPreferences (Android), NSUserDefaults (iOS) without encryption.
  • Exported components (Android): Activities/services/receivers exported without permission check.
  • Insecure transit: Apps not enforcing TLS; cleartext traffic allowed.

Dynamic Analysis Detection

  • Runtime manipulation: Frida-instrumented app accessing sensitive functions.
  • Insecure IPC: Apps sharing sensitive data via Intent (Android) / URL scheme (iOS) without verification.
  • WebView abuse: JavaScript bridge (addJavascriptInterface) exposing sensitive functions.

SIEM Detection Rules

  • Splunk SPL (mobile): index=mobile sourcetype=apk:analysis | where permission matches "android.permission.SMS"
  • MobSF (Mobile Security Framework): Automated static + dynamic analysis.
  • NowSecure / Veracode Mobile: Commercial mobile app scanning.

Defense Evasion Techniques

Mobile Exploit Stealth

  • Single-shot exploit: One exploit per app launch; below sustained-pattern detection.
  • Memory-only execution: Run from RAM; no disk artifacts in /data/data/<package>/.
  • Use legitimate intents: Abuse exported components that look legitimate (e.g., share, profile).

Anti-Analysis

  • Root/Jailbreak detection: Detect and exit if compromised (defender-side; red team needs to bypass).
  • Frida/Xposed detection: Check for Frida server on port 27042; check for Xposed hooks.
  • Emulator detection: Check for emulator-specific properties (ro.kernel.qemu, iSimulator).
  • SafetyNet / Play Integrity: Google's remote attestation; harder to bypass.

Persistence Stealth

  • Device admin (Android): Use Device Admin for persistence; harder to remove.
  • Accessibility service (Android): Use Accessibility for persistence; powerful and persistent.
  • Background app refresh (iOS): Use Background App Refresh; killed less often.

Network Stealth

  • Domain fronting: Use legitimate CDN for C2; appears as legitimate traffic.
  • Protocol mimicry: C2 over legitimate-looking API (e.g., JSON to attacker's "analytics" endpoint).
  • TLS fingerprinting: Match okhttp / URLSession JA3 signature.

Orchestration

ECC Loop Pattern

  • Pattern: Sequential Pipeline
  • Rationale: Mobile security testing follows a sequential approach — decompile → analyze → hook → verify — where each phase builds on the previous
  • Integration: codebase-onboarding (app structure understanding), browser-qa (WebView testing), verification-loop (finding confirmation)

Cross-Skill Pipeline

codebase-onboarding → mobile-security → verification-loop → article-writing

Quality Gate

  • Pre-condition: Target APK/IPA available, testing environment configured
  • Post-condition: All attack surfaces documented, findings independently verified
  • Verification: Use verification-loop Phase 4 (independent confirmation with different tool)

Hacker Laws

LawApplication in Mobile Security
First PrinciplesDon't rely on tools for one-click results; understand APK internal structure (DEX, Manifest, Resources) and Android runtime mechanisms. Only by understanding the underlying principles of Frida instrumentation can you write precise hook scripts
Trust but VerifyAll client-side security checks can be bypassed. Root Detection, SSL Pinning, and Anti-Debug are delays, not barriers, to attackers. Defense design must assume the client has been fully compromised
Minimize Attack SurfaceEvery exported=true component is an entry point. Follow the principle of least privilege: disable unnecessary exported components, remove debuggable flags, prohibit cleartext traffic, and implement Certificate Pinning

Learning Resources

This skill's supplementary files: payloads.md, test-cases.md Related skills: skills/binary-reverse/SKILL.md, skills/web-xss/SKILL.md External resources:

Frequently asked questions

What to verify before installation and use

What does the mobile-security source document cover?

Supplementary Files: - payloads.md — Complete mobile security attack/defense chain payloads (APK/IPA analysis, Frida hooks, SSL bypass, storage extraction, Intent attacks, etc.) - test-cases.md — Structured test cases (static analysis, dynamic analysis, runtime manipulation, net…

How do I install mobile-security?

The source record exposes this install command: npx skills add https://github.com/brucesongs/kali-claw --skill "skills/mobile-security". Inspect the command and pinned source before running it.

Which Agent platforms does the source record declare?

The pinned source record declares support for: claude code, cursor.

Which permission-related actions were detected?

Static rules flagged write-files in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing