Analyzing java jar malware

From meltedinhex/analyst-ai-pack · View interactive version

Analyzing java jar malware is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. 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

How to use this skill

Skill file

Analyzing Java/JAR Malware

When to Use

structure, entry point, obfuscation, and capability surface before decompiling.

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

its contents statically.

Prerequisites

Safety & Handling

Workflow

Step 1: Inventory the archive and entry point

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

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.