Skip to content
Skillpedia
Security6.5k Β· #14160

reverser-android-malware

What it does

It describes a workflow for reviewing suspicious Android apps, from reading permissions to watching network traffic. It is for security analysts examining malware samples.

When to use it

  • βœ“When an analyst receives a suspicious Android APK and needs to know what it asks permission for.
  • βœ“When a security team wants to see where a suspicious app connects on the network.
  • βœ“When a researcher needs to decode an Android app to read its code.

Skill link

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/android-malware/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/android-malware/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œThis Android app file looks suspicious. What does it ask permission for, and where does it connect?”

5 new skills a week. 1 minute to read.

How it works

The skill gives steps to decode the app, read its permissions and code, and watch its behavior in a controlled setup. The AI records what each step shows.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Android APK Malware Analysis

Full analysis workflow for suspicious Android APKs β€” from static manifest review through dynamic instrumentation and C2 extraction.

Quick Reference

# Decode APK resources and smali
apktool d <TARGET>.apk -o ./decoded/

# Decompile to Java source
jadx -d ./java_src/ <TARGET>.apk

# Quick permission audit
aapt dump permissions <TARGET>.apk

# Hash and signature check
sha256sum <TARGET>.apk
apksigner verify --print-certs <TARGET>.apk

# Automated scan
docker run -p 8000:8000 opensecurity/mobile-security-framework-mobsf
# Upload APK to http://localhost:8000

# List Frida processes on device
frida-ps -U

MITRE ATT&CK Mapping

Technique ID How It Appears
Exploitation for Privilege Escalation T1404 Root exploits, DirtyCOW, Magisk abuse in APK payloads
Software Discovery T1418 Enumerating installed apps to detect security tools or targets
Input Capture T1417 Keyloggers, accessibility service abuse for credential capture
SMS/MMS Collection T1636.004 Banking trojans intercepting OTP SMS messages
Location Tracking T1430 Stalkerware GPS tracking via background services
Obfuscated Files T1406 ProGuard, DexGuard, string encryption, native packer
Application Layer Protocol T1437 C2 over HTTPS, Telegram bot API, Firebase messaging

1. Static Analysis β€” APK Structure

Unpack and examine the APK structure and manifest.

# Decode APK (keeps smali + resources)
apktool d <TARGET>.apk -o ./apk_decoded/

# Examine AndroidManifest.xml for suspicious permissions
cat ./apk_decoded/AndroidManifest.xml | grep -iE 'permission|receiver|service|provider'

# High-risk permissions to flag:
# SEND_SMS, RECEIVE_SMS, READ_SMS β€” SMS interception (banking trojans)
# READ_CONTACTS, READ_CALL_LOG β€” data exfiltration
# RECORD_AUDIO, CAMERA β€” spyware
# ACCESSIBILITY_SERVICE β€” overlay attacks, keylogging
# BIND_DEVICE_ADMIN β€” device admin abuse (ransomware)
# INSTALL_PACKAGES β€” dropper / sideloader
# REQUEST_IGNORE_BATTERY_OPTIMIZATIONS β€” persistent background service

# Check for accessibility service (major red flag for credential stealers)
grep -r "android.accessibilityservice" ./apk_decoded/AndroidManifest.xml

# List receivers (broadcast receivers for SMS, boot, etc.)
grep -A5 "receiver" ./apk_decoded/AndroidManifest.xml

# Check for native libraries
ls -la ./apk_decoded/lib/*/

# Certificate analysis
apksigner verify --print-certs -v <TARGET>.apk
# Self-signed with debug key? β†’ highly suspicious
# Check: keytool -printcert -jarfile <TARGET>.apk

2. Decompile to Java

Recover readable source from DEX bytecode.

# jadx β€” best-in-class Android decompiler
jadx -d ./java_src/ --show-bad-code <TARGET>.apk
# --show-bad-code includes methods that failed to decompile cleanly

# Search for key behaviors
grep -rn "SmsManager\|sendTextMessage\|getDefault()" ./java_src/
grep -rn "HttpURLConnection\|OkHttpClient\|Retrofit\|Volley" ./java_src/
grep -rn "getDeviceId\|getSubscriberId\|getLine1Number\|IMEI" ./java_src/
grep -rn "getInstalledPackages\|getInstalledApplications" ./java_src/
grep -rn "TelephonyManager\|PackageManager" ./java_src/
grep -rn "Runtime\.exec\|ProcessBuilder\|\"su\"" ./java_src/
grep -rn "DexClassLoader\|PathClassLoader\|InMemoryDexClassLoader" ./java_src/
grep -rn "crypto\|Cipher\|SecretKey\|AES\|DES" ./java_src/
grep -rn "AccessibilityService\|onAccessibilityEvent" ./java_src/

# Extract hardcoded URLs / IPs / domains
grep -rnE 'https?://[^\s"]+|[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' ./java_src/

# Alternative: dex2jar + JD-GUI
d2j-dex2jar <TARGET>.apk -o <TARGET>.jar
# Open <TARGET>.jar in JD-GUI

3. Smali Analysis

For obfuscated samples where jadx fails, work at smali level.

# Smali is already extracted by apktool in step 1
# Navigate to entry points
find ./apk_decoded/smali* -name "*.smali" | head -20

# Find the main activity
grep -r "android.intent.action.MAIN" ./apk_decoded/AndroidManifest.xml
# Then read the corresponding smali file

# Search for reflection (used to hide API calls)
grep -rn "Ljava/lang/reflect" ./apk_decoded/smali*/
grep -rn "invoke-virtual.*Method;->invoke" ./apk_decoded/smali*/

# Search for dynamic class loading (dropper behavior)
grep -rn "DexClassLoader\|InMemoryDexClassLoader" ./apk_decoded/smali*/

# Search for crypto operations
grep -rn "Ljavax/crypto" ./apk_decoded/smali*/

# Search for command execution (root exploits)
grep -rn "Runt
FAQ

Does it run the app?

Yes. One stage describes dynamic analysis in a controlled setup.

What does the analysis produce?

It produces a list of permissions, code findings and any servers the app contacts.

Who is it for?

It is for malware analysts and security teams working with samples.

Details

Original description by the author

Android APK malware analysis β€” manifest permission review, smali disassembly, Java decompilation with jadx, dynamic instrumentation with Frida, network traffic interception, native library analysis, and automated scanning with MobSF.

repo: BitterSecurity/Decepticon

Popularity

GitHub stars
6.5k
Ranking position
#14160
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills