☼
⌃
☰

REMnux

Table of Contents

Linux distribution preconfigured with malware and document analysis tooling — strings extraction, PE/ELF inspection, network simulation, deobfuscation utilities, and YARA all available without manual setup. Use as the working environment for static and network-simulation phases of Malware Analysis; pair with a separate isolated Windows VM for actual dynamic detonation.

Related: Malware Analysis YARA Wireshark Incident Response

Setup

SHELL
# Distributed as a VM image (OVA) or installable on existing Ubuntu
# Download: https://docs.remnux.org/install-distro/get-virtual-appliance

# Installer for existing Ubuntu/Debian system
wget --no-cache -O - https://remnux.org/install.sh | sudo bash

Key Tool Categories

Static File Analysis

SHELL
# File identification
file sample.exe

# PE analysis
pescanner sample.exe          # static PE analysis report
peframe sample.exe            # alternative PE analyser with scoring

# Strings — built-in REMnux floss handles obfuscated/stack strings
floss sample.exe              # extracts strings even from packed/obfuscated binaries
strings sample.exe | grep -i "http\|\.dll"

Document / Office Malware

SHELL
# Office macro extraction
olevba document.doc           # extracts and analyses VBA macros
oledump.py document.doc       # stream-level inspection of OLE files

# PDF analysis
pdfid.py suspicious.pdf       # quick triage — flags JS, embedded files, actions
pdf-parser.py suspicious.pdf  # detailed object-level inspection

Deobfuscation

SHELL
# Decode common encodings found in malicious scripts
base64 -d encoded.txt
python3 -c "import base64; print(base64.b64decode(open('encoded.txt').read()))"

# XOR brute force against a sample with unknown key
xortool sample.bin

# JavaScript deobfuscation (malicious email attachments, droppers)
box-js suspicious.js          # sandboxed JS execution, logs behaviour

Network Simulation

Isolate the analysis network and fake the internet so malware "succeeds" in reaching out, revealing its intended behaviour without real C2 contact.

SHELL
# INetSim — simulates common services (HTTP, DNS, FTP, SMTP)
sudo inetsim

# FakeDNS — resolves all queries to a chosen IP (e.g. REMnux itself)
sudo fakedns -i 0.0.0.0

# Capture traffic during detonation
sudo tcpdump -i any -w capture.pcap
# or use Wireshark directly — see [[file:Wireshark.org][Wireshark]]

YARA

SHELL
# Scan a sample or directory against rules
yara rule.yar sample.exe
yara -r rule.yar /path/to/samples/

# YARA rules included with REMnux for common malware families
ls /opt/yara-rules/

Typical Workflow

TEXT
1. Transfer sample to REMnux (isolated network, no direct internet)
2. file + hash the sample
3. Static triage — pescanner/peframe for PE, oledump/olevba for
   Office docs, pdfid/pdf-parser for PDFs
4. Extract strings with floss (handles obfuscation better than
   plain strings)
5. If scripts/macros present — deobfuscate (box-js, manual decode)
6. Start INetSim/FakeDNS to capture intended network behaviour
7. Detonate in a separate isolated Windows VM with network routed
   through REMnux
8. Capture traffic with tcpdump/Wireshark during detonation
9. Write YARA rule from confirmed indicators

Tips

  • REMnux itself is the analysis toolkit, not the detonation environment — for executables, detonate in a separate isolated Windows VM with REMnux acting as the simulated network/DNS
  • floss consistently outperforms plain strings on packed or obfuscated samples — use it as the default rather than a fallback
  • INetSim + FakeDNS together cover most "phone home" malware behaviour without needing live internet access — run both before detonating
  • oledump.py is the better starting point over olevba for Office documents — shows the raw stream structure first, letting you decide what to extract rather than relying on automatic macro detection alone