Analyzing Android Malware with Apktool
Overview
Android malware distributed as APK files can be statically analyzed to extract permissions, activities, services, broadcast receivers, and suspicious API calls without executing the sample. This skill uses androguard for programmatic APK analysis, identifying dangerous permission combinations, obfuscated code patterns, dynamic code loading, reflection-based API calls, and network communication indicators.
When to Use
- When investigating security incidents that require analyzing android malware with apktool
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Python 3.9+ with
androguard
- apktool (for resource decompilation)
- jadx (for Java source recovery, optional)
- Isolated analysis environment (VM or sandbox)
- Sample APK files for analysis
Steps
- Parse APK with androguard to extract manifest metadata
- Enumerate requested permissions and flag dangerous combinations
- List activities, services, receivers, and providers from manifest
- Scan for suspicious API calls (reflection, crypto, SMS, telephony)
- Detect dynamic code loading patterns (DexClassLoader, Runtime.exec)
- Extract hardcoded URLs, IPs, and C2 indicators from strings
- Generate risk assessment report with MITRE ATT&CK mobile mappings
Expected Output
- JSON report with permission analysis, component listing, suspicious API calls, network indicators, and risk score
- Extracted strings and potential IOCs from the APK
Source: mukul975/Anthropic-Cybersecurity-Skills → skills/analyzing-android-malware-with-apktool/SKILL.md
1---
2name: analyzing-android-malware-with-apktool
3description: "Perform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source recovery, and androguard for permission analysis, manifest inspection, and suspicious API call detection."
4category: mobile-and-platform
5source_repo: mukul975/Anthropic-Cybersecurity-Skills
6source_path: "skills/analyzing-android-malware-with-apktool/SKILL.md"
7source_url: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/HEAD/skills/analyzing-android-malware-with-apktool/SKILL.md
8metadata:
9 source: https://skillmd.com/skills/thedixitjain/analyzing-android-malware-with-apktool
10---
11
12
13# Analyzing Android Malware with Apktool
14
15## Overview
16
17Android malware distributed as APK files can be statically analyzed to extract permissions, activities, services, broadcast receivers, and suspicious API calls without executing the sample. This skill uses androguard for programmatic APK analysis, identifying dangerous permission combinations, obfuscated code patterns, dynamic code loading, reflection-based API calls, and network communication indicators.
18
19
20## When to Use
21
22- When investigating security incidents that require analyzing android malware with apktool
23- When building detection rules or threat hunting queries for this domain
24- When SOC analysts need structured procedures for this analysis type
25- When validating security monitoring coverage for related attack techniques
26
27## Prerequisites
28
29- Python 3.9+ with `androguard`
30- apktool (for resource decompilation)
31- jadx (for Java source recovery, optional)
32- Isolated analysis environment (VM or sandbox)
33- Sample APK files for analysis
34
35## Steps
36
371. Parse APK with androguard to extract manifest metadata
382. Enumerate requested permissions and flag dangerous combinations
393. List activities, services, receivers, and providers from manifest
404. Scan for suspicious API calls (reflection, crypto, SMS, telephony)
415. Detect dynamic code loading patterns (DexClassLoader, Runtime.exec)
426. Extract hardcoded URLs, IPs, and C2 indicators from strings
437. Generate risk assessment report with MITRE ATT&CK mobile mappings
44
45## Expected Output
46
47- JSON report with permission analysis, component listing, suspicious API calls, network indicators, and risk score
48- Extracted strings and potential IOCs from the APK
49
50---
51
52**Source:** [`mukul975/Anthropic-Cybersecurity-Skills`](https://github.com/mukul975/Anthropic-Cybersecurity-Skills) → `skills/analyzing-android-malware-with-apktool/SKILL.md`