Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Mobile Application Security Testing

БесплатноБез исполняемых скриптовНе проверен

This skill should be used when the user asks to "perform mobile application penetration testing", "test Android app security", "bypass SSL pinning", "analyze…

zebbernот zebbern★ 34 звезды на GitHub9 установок в других каталогах

Об этом скилле

Mobile Application Security Testing

Purpose

Conduct comprehensive security assessments of Android mobile applications through static and dynamic analysis. This skill covers APK reverse engineering, code analysis, runtime manipulation, SSL pinning bypass, root detection bypass, and identification of OWASP Mobile Top 10 vulnerabilities.

Prerequisites

Required Tools

# Android Debug Bridge
sudo apt-get install adb

# Jadx-GUI (Java Decompiler)
wget https://github.com/skylot/jadx/releases/download/v1.4.7/jadx-1.4.7.zip
unzip jadx-1.4.7.zip

# Apktool
sudo apt-get install apktool

# Frida
pip3 install frida-tools

# Objection
pip3 install objection

# MobSF (Docker)
docker pull opensecurity/mobile-security-framework-mobsf

# Drozer
docker pull fsecurelabs/drozer

Required Hardware

  • Android device or emulator (Genymotion recommended)
  • USB debugging cable
  • Computer with 8GB+ RAM for emulation

Required Knowledge

  • Android application architecture
  • Java/Kotlin programming basics
  • HTTP/HTTPS protocols
  • Basic reverse engineering concepts

Required Access

  • Target APK file
  • Written authorization for testing
  • Root access on test device (for some tests)

Outputs and Deliverables

  1. Mobile Security Assessment Report - Comprehensive vulnerability findings
  2. Static Analysis Results - Hardcoded secrets, misconfigurations, code issues
  3. Dynamic Analysis Results - Runtime vulnerabilities, API issues
  4. Proof of Concept Exploits - Demonstrated vulnerabilities with evidence

Core Workflow

Phase 1: Lab Setup

Configure the testing environment:

# Verify ADB connection
adb devices

# Enable USB debugging on device
# Settings > Developer Options > USB Debugging

# Connect over network
adb tcpip 5555
adb connect DEVICE_IP:5555

# Install Frida server on device
wget https://github.com/frida/frida/releases/download/16.0.8/frida-server-16.0.8-android-x86.xz
unxz frida-server-16.0.8-android-x86.xz
mv frida-server-16.0.8-android-x86 frida-server
adb push frida-server /data/local/tmp/
adb shell chmod +x /data/local/tmp/frida-server
adb shell /data/local/tmp/frida-server &

# Verify Frida connection
frida-ps -U

Phase 2: Reconnaissance

Gather information about the target application:

# App store research
- Developer information
- Version history and patch notes
- User reviews (bug reports)
- Required permissions
- Related apps from same developer

# Extract APK from device
adb shell pm list packages | grep target
adb shell pm path com.target.app
adb pull /data/app/com.target.app-1/base.apk target.apk

# Basic APK info
aapt dump badging target.apk

Phase 3: APK Structure Analysis

Understand APK file contents:

# APK is a ZIP archive containing:
# - AndroidManifest.xml (app configuration)
# - classes.dex (compiled code)
# - resources.arsc (compiled resources)
# - res/ (resource files)
# - lib/ (native libraries)
# - META-INF/ (signatures)
# - assets/ (raw assets)

# Extract APK contents
unzip target.apk -d target_extracted/

# View manifest with aapt
aapt dump xmltree target.apk AndroidManifest.xml

Phase 4: Static Analysis with Jadx

Decompile and analyze source code:

# Launch Jadx-GUI
./jadx-gui

# Open APK file and analyze:
# 1. AndroidManifest.xml - permissions, components, settings
# 2. Source code - hardcoded secrets, API keys
# 3. Resources - strings.xml, configuration files

# Search for sensitive data
# - API keys: grep -r "api_key\|apikey\|API_KEY"
# - Passwords: grep -r "password\|passwd\|secret"
# - URLs: grep -r "http://\|https://"
# - Firebase: grep -r "firebaseio.com"

Key areas to analyze:

// AndroidManifest.xml checks
android:debuggable="true"     // Debuggable app - VULNERABLE
android:allowBackup="true"    // Backup allowed - DATA EXPOSURE
android:exported="true"       // Exported components - ACCESS CONTROL

// Hardcoded credentials
String apiKey = "AIzaSyAB1234567890";  // VULNERABLE
String password = "admin123";           // VULNERABLE

// Insecure HTTP
URL url = new URL("http://api.example.com");  // VULNERABLE

// Weak cryptography
Cipher.getInstance("DES");     // WEAK
Cipher.getInstance("AES/ECB"); // WEAK

Phase 5: Static Analysis with MobSF

Automated static analysis:

# Start MobSF
docker run -it --rm -p 8000:8000 opensecurity/mobile-security-framework-mobsf:latest

# Access at http://127.0.0.1:8000
# Upload APK for analysis

# MobSF checks:
# - Security score
# - Permissions analysis
# - Code analysis
# - Manifest analysis
# - Binary analysis
# - Hardcoded secrets
# - Insecure configurations

Phase 6: Reverse Engineering with Apktool

Decompile, modify, and recompile APK:

# Decompile APK
apktool d target.apk -o target_decompiled/

# Analyze smali code
ls target_decompiled/smali/

# Modify smali code (example: disable root detection)
# Find and modify relevant smali files

# Recompile APK
apktool b target_decompiled/ -o modified.apk
Полный SKILL.md на GitHub

Установить Mobile Application Security Testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

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

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Mobile Application Security Testing?

This skill should be used when the user asks to "perform mobile application penetration testing", "test Android app security", "bypass SSL pinning", "analyze APK files", "reverse engineer mobile apps", "test for insecure data storage", or "assess mobile app vulnerabilities". It provides comprehensive techniques for Android application security assessment.

Как установить скилл Mobile Application Security Testing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Mobile Application Security Testing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Mobile Application Security Testing с