singtreb/sword-riding/analyzing-android-malware-with-apktool

Claude Code and agent skill by singtreb/sword-riding

Trust tier 3
  • community
Source check pending

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 singtreb/sword-riding/analyzing-android-malware-with-apktool

SKILL.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/loadDex or decrypts a blob in assets/, res/raw/, or lib/*.so. Grep smali for DexClassLoader, System.loadLibrary, and Cipher/Base64 near asset reads before concluding it is benign.
  • Reflection + string obfuscation defeat keyword scans. sendTextMessage/Runtime.exec are reached via Class.forName/getMethod/invoke with 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 dexdump or 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

  1. Parse APK with androguard to extract manifest metadata
  2. Enumerate requested permissions and flag dangerous combinations
  3. List activities, services, receivers, and providers from manifest
  4. Scan for suspicious API calls (reflection, crypto, SMS, telephony)
  5. Detect dynamic code loading patterns (DexClassLoader, Runtime.exec)
  6. Extract hardcoded URLs, IPs, and C2 indicators from strings
  7. 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, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/singtreb/sword-riding/analyzing-android-malware-with-apktool/badge)](https://verified-skill.com/skills/singtreb/sword-riding/analyzing-android-malware-with-apktool)

Something wrong with this skill or its page? Tell us.