Reverse Engineering Android Malware With Jadx
Overview
Cybersecurity skill for reverse engineering android malware with jadx. Follows industry best practices and security standards.
When to Use
Trigger phrases:
"reverse engineering android malware with jadx"
"reverseing engineering android malware with jadx"
"Reverse engineers malicious Android APK files using JADX decompiler to analyze J"
A suspicious Android APK has been reported as malicious or flagged by mobile threat detection
Analyzing Android banking trojans, spyware, SMS stealers, or adware samples
Determining what data an app collects, where it sends it, and what permissions it abuses
Extracting C2 server addresses, encryption keys, and configuration data from Android malware
Understanding overlay attack mechanisms used by banking trojans
Do not use for analyzing obfuscated native (.so) libraries within APKs; use Ghidra or IDA for native ARM binary analysis.
When NOT to Use
- When you lack proper authorization for testing
- For production systems without change management
- When the task requires legal or compliance expertise beyond technical scope
Prerequisites
- JADX 1.5+ installed (download from https://github.com/skylot/jadx/releases)
- Android SDK with
aapt2 and adb tools for APK inspection
- apktool for full APK disassembly including smali code and resources
- Python 3.8+ with
androguard library for automated APK analysis
- Frida for dynamic instrumentation (optional, for runtime analysis)
- Isolated Android emulator (Genymotion or Android Studio AVD) without Google services
Workflow
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Define Objectives — Clarify the goals and scope for engineering android malware.
- Gather Resources — Collect tools, data, and access needed for engineering android malware.
- Execute Process — Carry out engineering android malware operations methodically.
- Verify Quality — Check results against acceptance criteria.
- Document Outcomes — Record findings, decisions, and next steps.
Tools
- jadx — Primary tool for this skill
- Analysis Platform — Data processing and visualization
- Collaboration Tools — Team coordination and knowledge sharing
Process
- Reconnaissance — Gather target information, identify attack surface, enumerate services
- Analysis/Exploitation — Execute the technique, analyze results, document findings
- Reporting — Document IOCs, write findings, provide remediation recommendations
Verification
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: reverse-engineering-android-malware-with-jadx3description: 'Use when reverse engineers malicious Android APK files using JADX decompiler4 to analyze Java/Kotlin source code, identify malicious functionality including data5 theft, C2 communication, privilege escalation, and overlay attacks. Examines manifest6 permissions, receivers, services, and native libraries. Activates for requests involving7 Android malware analysis, APK reverse engineering, mobile malware investigation,8 or Android threat analysis.910 ''.'11domain: cybersecurity12tags:13- malware14- Android15- reverse-engineering16- JADX17- mobile-malware18subdomain: malware-analysis19version: 1.0.020author: oyi7721license: Apache-2.022nist_csf:23- DE.AE-0224- RS.AN-0325- ID.RA-0126- DE.CM-0127category: cybersecurity28metadata:29 source: https://skillmd.com/skills/oyi77/reverse-engineering-android-malware-with-jadx30---3132# Reverse Engineering Android Malware With Jadx3334## Overview3536Cybersecurity skill for reverse engineering android malware with jadx. Follows industry best practices and security standards.3738## When to Use39**Trigger phrases:**40- "reverse engineering android malware with jadx"41- "reverseing engineering android malware with jadx"42- "Reverse engineers malicious Android APK files using JADX decompiler to analyze J"434445- A suspicious Android APK has been reported as malicious or flagged by mobile threat detection46- Analyzing Android banking trojans, spyware, SMS stealers, or adware samples47- Determining what data an app collects, where it sends it, and what permissions it abuses48- Extracting C2 server addresses, encryption keys, and configuration data from Android malware49- Understanding overlay attack mechanisms used by banking trojans5051**Do not use** for analyzing obfuscated native (.so) libraries within APKs; use Ghidra or IDA for native ARM binary analysis.525354## When NOT to Use5556- When you lack proper authorization for testing57- For production systems without change management58- When the task requires legal or compliance expertise beyond technical scope596061## Prerequisites6263- JADX 1.5+ installed (download from https://github.com/skylot/jadx/releases)64- Android SDK with `aapt2` and `adb` tools for APK inspection65- apktool for full APK disassembly including smali code and resources66- Python 3.8+ with `androguard` library for automated APK analysis67- Frida for dynamic instrumentation (optional, for runtime analysis)68- Isolated Android emulator (Genymotion or Android Studio AVD) without Google services6970## Workflow7172```python73# Example: IOC detection74import re7576IOC_PATTERNS = {77 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",78 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",79 "hash_md5": r"\b[a-f0-9]{32}\b",80 "hash_sha256": r"\b[a-f0-9]{64}\b",81}8283def extract_iocs(text: str) -> dict:84 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}85```86871. **Define Objectives** — Clarify the goals and scope for engineering android malware.882. **Gather Resources** — Collect tools, data, and access needed for engineering android malware.893. **Execute Process** — Carry out engineering android malware operations methodically.904. **Verify Quality** — Check results against acceptance criteria.915. **Document Outcomes** — Record findings, decisions, and next steps.9293## Tools9495- **jadx** — Primary tool for this skill96- **Analysis Platform** — Data processing and visualization97- **Collaboration Tools** — Team coordination and knowledge sharing9899100## Process1011021. **Reconnaissance** — Gather target information, identify attack surface, enumerate services1031. **Analysis/Exploitation** — Execute the technique, analyze results, document findings1041. **Reporting** — Document IOCs, write findings, provide remediation recommendations105106## Verification107108- [ ] All engineering android malware procedures executed completely and documented109- [ ] Findings validated against multiple data sources110- [ ] False positives identified and filtered111- [ ] Results documented with evidence and timestamps112- [ ] Recommendations provided with risk-based prioritization113114## Anti-Rationalization Table115116| Rationalization | Reality |117|---|---|118| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |119| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |120| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |