Skip to content
Back to skills

Analyzing Java Jar Malware

ASecurity

'Analyzes Java/JAR malware (such as Adwind/jRAT-class cross-platform RATs) by

  • 22 stars
  • 0 votes
  • 0 copies
  • 10 views
  • Added September 11, 2026
securitypythonjavabashapisecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add meltedinhex/analyst-ai-pack --skill analyzing-java-jar-malware --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyzing Java Jar Malware?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyzing Java Jar Malware
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/meltedinhex-analyzing-java-jar-malware/badge)](https://www.skillsdirectory.com/skills/meltedinhex-analyzing-java-jar-malware)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: analyzing-java-jar-malware
description: 'Analyzes Java/JAR malware (such as Adwind/jRAT-class cross-platform RATs) by
  inventorying the archive, reading the manifest entry point, detecting obfuscators and string
  encryption, and flagging suspicious runtime, reflection, and networking class usage. Activates
  for requests to analyze a malicious JAR, inspect Java malware, or identify a Java RAT.'
domain: cybersecurity
subdomain: reverse-engineering
tags:
  - reverse-engineering
  - java
  - jar
  - rat
  - decompilation
version: 1.0.0
author: analyst-ai-pack
license: Apache-2.0
mitre_attack:
  - T1059
  - T1027
  - T1620
d3fend:
  - D3-SDA
  - D3-DA
references:
  - 'JAR/ZIP and Java class file format — https://docs.oracle.com/javase/specs/jvms/se17/html/'
  - 'MITRE ATT&CK T1027 Obfuscated Files or Information — https://attack.mitre.org/techniques/T1027/'
---

# Analyzing Java/JAR Malware

## When to Use

- You have a malicious or suspicious `.jar` (often a cross-platform RAT) and need to map its
  structure, entry point, obfuscation, and capability surface before decompiling.
- You want to triage a Java payload without running the JVM.

**Do not use** `java -jar` to run it — that executes the malware. Treat the JAR as a ZIP and read
its contents statically.

## Prerequisites

- The JAR file, read inertly. Optional: a Java decompiler (CFR, Procyon) for the next stage.

## Safety & Handling

- Read the archive statically; never launch the JVM on the sample. Defang any URLs found.

## Workflow

### Step 1: Inventory the archive and entry point

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

Lists `.class` files, embedded resources/payloads (nested JARs, scripts, encrypted blobs), and
reads `META-INF/MANIFEST.MF` for `Main-Class`/`Premain-Class`.

### Step 2: Detect obfuscation and packers

Flags obfuscator fingerprints (Allatori, ProGuard, Zelix), single-character class/package names,
and string-decryption indicators.

### Step 3: Flag capability classes

Surface dangerous API usage in strings/constant pools: `Runtime.exec`/`ProcessBuilder`,
`java.lang.reflect`, `URLClassLoader`, `javax.crypto`, `java.net.Socket`, registry/persistence
helpers.

### Step 4: Route to decompilation

Hand the key classes to a decompiler (CFR/Procyon) for source recovery; record IOCs.

## Validation

- The manifest entry point is read and reported.
- Embedded payloads/nested archives are enumerated.
- Capability flags are backed by concrete class/string evidence.

## Pitfalls

- String-encrypted samples where capability strings appear only after decryption.
- Multi-stage droppers that unpack a second JAR at runtime.
- Benign obfuscated commercial JARs — corroborate with capability and delivery context.

## References

- See [`references/api-reference.md`](references/api-reference.md) for the inspector.
- JVM/JAR format and ATT&CK T1027 references (linked in frontmatter).

Files in this skill

  • LICENSE340 B
  • SKILL.md2.9 KB
  • references/api-reference.md1.3 KB
  • scripts/analyst.py3.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.