Malware Analysis Toolkit — Reverse engineering utility for malware analysts.
| Command | Description |
|---|---|
pe |
Parse PE structure (headers, sections, imports, exports, anomaly scan) |
elf |
Parse ELF structure (headers, segments, sections, symbol tables) |
dump |
Dump process memory regions with entropy analysis |
strings |
Extract ASCII/wide strings with Shannon entropy filter |
hash |
Compute MD5, SHA1, SHA256, and file entropy |
hooks |
Detect IAT and inline API hooks in PE files |
yara |
Scan files with YARA rules (requires libyara-dev) |
decode |
Decode shellcode — single/multi-byte XOR, ROL/ROR, ADD/SUB |
xorsearch |
Detect XOR keys via Hamming distance and frequency analysis |
git clone https://github.com/spiderxploit/malalyzercd malalyzergcc -O2 -Wall -Wextra -o malalyzer malalyzer.c -lcrypto -lmWith YARA support:
gcc -O2 -Wall -Wextra -o malalyzer malalyzer.c -lcrypto -lm -lyara -DYARA_ENABLED./malalyzer -hParse a PE file:
./malalyzer pe sample.exeExtract high-entropy strings:
./malalyzer strings -e 5.5 sample.binCompute file hashes:
./malalyzer hash malware.exeDecode shellcode:
./malalyzer decode shellcode.binSearch XOR-encoded content:
./malalyzer xorsearch -k 4 encrypted.binDump process memory:
./malalyzer dump 1337Detect API hooks:
./malalyzer hooks sample.exe- OpenSSL (
libcrypto) — required for hashing - YARA (
libyara-dev) — optional, for YARA scanning - math library (
-lm) — for entropy calculations
MIT