meltedinhex/analyst-ai-pack / skills/analyzing-java-jar-malware
analyzing-java-jar-malware
UnverifiedAnalyzes 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.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.9 KB |
| references/api-reference.md | markdown | 1.3 KB |
| scripts/analyst.py | script | 3.6 KB |
references/api-reference.md
View on GitHub# API Reference: Analyzing Java/JAR Malware
## Overview
`scripts/analyst.py` treats a JAR as a ZIP and inventories `.class` files and embedded payloads,
reads the manifest entry point, detects obfuscator fingerprints and name obfuscation, and scans
class constant pools for dangerous API usage. It reads the archive statically, never launches the
JVM, and defangs URLs.
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | zipfile, regex, JSON, file IO |
| CFR / Procyon | optional | decompile recovered classes downstream (not required here) |
## Core functions
### `inspect(path)`
Returns class count, `Main-Class`, embedded payloads, resources, obfuscators, a name-obfuscation
flag, capability APIs, and defanged URLs.
## Capability APIs flagged
`Runtime`/`ProcessBuilder` (exec), `java.lang.reflect` + `URLClassLoader` (reflective loading),
`javax.crypto` (encryption), `java.net.Socket`/`URL` (networking), `java.awt.Robot` (surveillance).
## Usage
```bash
python scripts/analyst.py inspect sample.jar
```
## Sources
- JVM specification (class file format, constant pool) — https://docs.oracle.com/javase/specs/jvms/se17/html/
- JAR/ZIP structure and `MANIFEST.MF` `Main-Class` from the Java platform documentation
- Obfuscator fingerprints (Allatori/ProGuard/Zelix) from public Java-malware analyses
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |