analyzing-android-malware-with-apktool
About analyzing-android-malware-with-apktool
A skill for security analysts to statically inspect Android malware APKs without running them. It extracts manifest data, suspicious API calls, and network indicators, then produces a JSON risk report.
Key features
- 01Extract APK manifest metadata
- 02Review dangerous permissions and components
- 03Scan for suspicious API calls
- 04Detect dynamic code loading patterns
- 05Extract network indicators and map MITRE ATT&CK
Use cases
- 01Investigate Android malware incidents
- 02Extract APK indicators for threat hunting
- 03Build security monitoring detection rules
- 04Assess coverage for related attack techniques
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ mukul975/ anthropic-cybersecurity-skills --skill analyzing-android-malware-with-apktoolAfter installing, type/analyzing-android-malware-with-apktoolin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
LICENSEreferences/api-reference.mdscripts/agent.pyDetails
From the project READMEAnalyzing 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