REMnux: The Linux Half of Your Malware Lab
On this page

If you’ve set up a FLARE-VM Windows box, you have half a malware lab. REMnux is the other half. It’s a free Linux toolkit, built on Ubuntu and maintained by Lenny Zeltser (who also authors the SANS FOR610 malware course), that collects hundreds of analysis tools into one system so you can pull a sample apart without spending a weekend compiling things. Where FLARE-VM is where you detonate and debug on Windows, REMnux is where you inspect, decode and observe — and, crucially, where you stand up fake services so a specimen reveals its network behaviour while never touching the real internet.
The two work as a pair, and most of the time REMnux is the one I open first, because the safest move with any unknown file is to understand it before you ever run it.
Same rules as always: analyse only samples you’re authorised to handle, inside an isolated VM you can snapshot and revert. Everything here lives in a lab — this is the companion Linux VM to the isolated two-VM setup from the FLARE-VM post.
Where REMnux fits
Picture the lab: a Windows analysis VM and a Linux one on an isolated host-only network. REMnux plays two roles at once — your Linux analysis bench, and the fake internet that answers the malware’s callbacks.
Getting it running
REMnux gives you four ways in, which is one of its nicest features — you can match it to how you work:
- The virtual appliance (easiest). Download the OVA from remnux.org and import it into VMware or VirtualBox. It boots ready to go.
- On a dedicated Ubuntu host. Install the toolkit straight onto a clean Ubuntu box.
- Add it to an existing system. Layer the REMnux tools onto an Ubuntu machine you already have.
- As Docker containers. Pull individual tools as containers when you just need one thing and don’t want the whole VM.
For installing onto or adding to Ubuntu, the one-liner is:
# Install the REMnux distro (dedicated or add-on modes) onto Ubuntu
wget -qO- https://REMnux.org/remnux-cli > remnux-cli
# review the script, then:
chmod +x remnux-cli && sudo mv remnux-cli /usr/local/bin/remnux
sudo remnux install
Keep it current the same way — REMnux pins tool versions and updates them together:
remnux upgrade
Snapshot discipline: whichever route you choose, take a clean snapshot before you touch a sample, and revert after each one — exactly like the Windows side. A malware lab you can’t reset is a malware lab you’ll eventually regret.
The toolbox, by job
REMnux organises its tools by the question you’re asking. This is the map I keep in my head:
Static triage: know the file first
Start, as always, without running anything. A couple of commands tell you most of what you need:
file suspicious.bin # file type — is it really a PDF, or a PE in disguise?
die suspicious.bin # Detect It Easy: compiler, packer, entropy
exiftool suspicious.doc # metadata: author, tool, timestamps
capa suspicious.exe # capabilities in plain English (HTTP, persistence, crypto…)
floss suspicious.exe # strings, including obfuscated ones
High entropy from die, or a mismatch between the extension and what file reports, immediately tells you you’re dealing with packing or disguise before you’ve committed any real effort.
Malicious documents: REMnux’s home turf
So much malware arrives as a weaponised Office doc or PDF, and REMnux is especially strong here. Didier Stevens’ tools do the heavy lifting:
# Office documents — find and extract the macro streams
oledump.py invoice.doc # list OLE streams; macros are flagged with 'M'
olevba invoice.doc # extract and deobfuscate VBA macros, with IOC hints
# PDFs — is there anything active hiding inside?
pdfid.py statement.pdf # count JavaScript, OpenAction, Launch, embedded files
pdf-parser.py --search JavaScript statement.pdf # pull the suspicious objects out
olevba in particular often hands you the attacker’s whole macro, auto-deobfuscated, with the URLs and commands it would have run — the entire first stage of an attack, without ever opening the document.
Network behaviour: be the whole internet
This is REMnux’s signature trick and the reason it pairs so well with FLARE-VM. You want to watch what a sample does on the network, but you can’t let it actually reach its command-and-control server. So REMnux pretends to be every server it tries to contact.
INetSim simulates common services (HTTP, HTTPS, DNS, FTP, SMTP…) and answers whatever the malware asks for. Point your Windows VM’s DNS and gateway at the REMnux IP, start the simulator, detonate on Windows, and capture everything:
# On REMnux: resolve ALL domains to this box, and fake every service
sudo inetsim # starts the simulated services
# (or use fakedns to answer every DNS query with the REMnux IP)
# Capture the traffic while the Windows VM detonates the sample
sudo tcpdump -i eth0 -w capture.pcap
# …then read it back
wireshark capture.pcap
Within a few minutes you usually have the sample’s C2 domains, the URLs it beacons to, and the shape of its callbacks — all safely answered by your own machine. For HTTPS specifically, mitmproxy lets you sit in the middle and read the encrypted traffic.
Memory and the rest
REMnux also ships Volatility 3 for memory forensics (the same vol workflow from my SIFT Workstation post), scdbg for emulating shellcode, and a long list of threat-intel and extraction helpers. For a quick memory look:
vol -f mem.raw windows.pstree # process tree from a captured memory image
vol -f mem.raw windows.malfind # regions that look like injected code
A static-first workflow
Putting it together, the loop I follow on REMnux — and recommend to anyone building the habit:
FLARE-VM and REMnux are the two halves of a complete bench: Windows to detonate and debug, Linux to inspect and to be the fake internet. Build both once, snapshot them well, and you can take almost any sample from “unknown file” to “here are its indicators” in an afternoon — and if the course side appeals, this toolkit is the one behind SANS FOR610 and the natural companion to my practical malware analysis field guide.
REMnux is free and open, maintained by Lenny Zeltser. Start at the REMnux site and the excellent documentation, which lists every tool grouped by exactly the jobs above.