Skip to content

meltedinhex/analyst-ai-pack / skills/analyzing-android-dex-malware

analyzing-android-dex-malware

Verified

Reverses Android malware: unpacking APKs, decompiling DEX bytecode to readable Java, auditing the manifest for abused permissions and components, and locating dynamically loaded or native payloads. Activates for requests to analyze an APK, decompile DEX, or investigate a suspicious Android app.

FileKindSize
LICENSEother340 B
SKILL.mdskill md3.1 KB
references/api-reference.mdmarkdown1.1 KB
scripts/analyst.pyscript2.0 KB

references/api-reference.md

View on GitHub
# API Reference: Analyzing Android DEX Malware

## Overview

`scripts/analyst.py` treats an APK as a ZIP and inventories its DEX files, native libraries,
assets, and manifest presence, flagging multidex and likely encrypted payload assets. It does
not decompile or execute — use jadx/apktool for decompilation.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | zipfile, file IO |

## External tools

| Tool | Purpose |
|------|---------|
| jadx | Decompile DEX bytecode to Java |
| apktool | Decode resources and binary AndroidManifest.xml |
| Android emulator | Dynamic analysis of dynamic/native payloads |

## Core functions

### `inspect(path)`
Returns the DEX list, native libraries, assets, manifest presence, multidex flag, and triage
notes.

## Usage

```bash
python scripts/analyst.py inspect sample.apk
```

## Sources

- Android DEX bytecode format — https://source.android.com/docs/core/runtime/dex-format
- APK packaging (ZIP container, AndroidManifest.xml) — Android documentation
- jadx DEX-to-Java decompiler — https://github.com/skylot/jadx
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall