sohan-a11y/ageis-ai-pentester/analyzing-android-malware-with-apktool
Claude Code and agent skill by sohan-a11y/ageis-ai-pentester
- community
Checking that the SKILL.md file is still in the repository.
Perform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source
Install
npx vskill@latest install sohan-a11y/ageis-ai-pentester/analyzing-android-malware-with-apktoolSKILL.md
The same SKILL.md was published earlier as singtreb/sword-riding/analyzing-android-malware-with-apktool.
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
Detection Gaps & Validation
- Dynamic code loading hides the payload. apktool/jadx only show the shipped DEX; malware pulls a second-stage DEX/JAR via
DexClassLoader/loadDexor decrypts a blob inassets/,res/raw/, orlib/*.so. Grep smali forDexClassLoader,System.loadLibrary, andCipher/Base64 near asset reads before concluding it is benign. - Reflection + string obfuscation defeat keyword scans.
sendTextMessage/Runtime.execare reached viaClass.forName/getMethod/invokewith XOR/Base64 strings, so literals never appear. Decode with androguard or dex-oracle/simplify first. - Packers leave a stub. Jiagu/Bangcle/ApkProtect ship a loader DEX and unpack at runtime; detect the packer signature, then dump the real DEX from a rooted emulator.
- Confirm a hit: re-decompile the runtime-dumped DEX (Frida
dexdumpor pull from/data/data/<pkg>), validate dangerous permissions against actual API usage and exported<service>/<receiver>flags, and prove extracted C2 URLs are live via mitmproxy rather than dead/decoy strings. - False positives: ad/analytics SDKs (AdMob, Firebase, Facebook) legitimately request broad permissions, reflection, and network. Confirm the suspect class sits in the app's own package, not a bundled third-party SDK, before flagging.
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
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingxalgorix-main/internal/tools/skills/data/malware-analysis/analyzing-android-malware-with-apktool/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sohan-a11y/ageis-ai-pentester/analyzing-android-malware-with-apktool)