Skip to main content
NEW · APP STORE Now on iOS · macOS · iPad Android & Windows soon GET IT
Prompts Android APK Malware Static Analysis

analyst security skill risk: medium

Android APK Malware Static Analysis

The prompt provides an overview, prerequisites, and seven-step procedure for statically analyzing Android APK malware using androguard, apktool, and jadx to extract permissions, co…

SKILL 4 files · 2 folders

SKILL.md
---
name: analyzing-android-malware-with-apktool
description: "Perform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source"
---
# 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

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

REQUIRED CONTEXT

  • Python 3.9+ with androguard
  • apktool
  • isolated analysis environment
  • sample APK files

OPTIONAL CONTEXT

  • jadx

EXPECTED OUTPUT

Format
json
Schema
json · permission analysis, component listing, suspicious API calls, network indicators, risk score, Extracted strings and potential IOCs
Constraints
  • include permission analysis, component listing, suspicious API calls, network indicators, and risk score
  • include extracted strings and potential IOCs from the APK

CAVEATS

Dependencies
  • 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
Missing context
  • Exact input format or parameter for the APK file path
  • Precise JSON schema or field names for the expected report
  • Tool version pins beyond 'Python 3.9+'
Ambiguities
  • Title and description emphasize apktool while body states the skill 'uses androguard for programmatic APK analysis'
  • Steps reference high-level actions without specifying exact commands or parameters

QUALITY

OVERALL
0.65
CLARITY
0.72
SPECIFICITY
0.58
REUSABILITY
0.68
COMPLETENESS
0.62

IMPROVEMENT SUGGESTIONS

  • Replace 'apktool' in the name/description with 'androguard' (or add apktool steps) to remove the tool-name mismatch
  • Add concrete command examples under each step (e.g., 'androguard analyze ...')
  • Define the exact JSON keys and risk-scoring formula in the Expected Output section

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR ANALYST