3.7 KiB
layout, permalink, title
| layout | permalink | title |
|---|---|---|
| default | /RE101/section1/ | Fundamentals |
Go Back to Reverse Engineering Malware 101
Section 1: Fundamentals
Environment Setup
In this section you will be setting up a safe virtual malware analysis environment. The virtual machine (VM) that you will be running the malware on should not have internet access nor network share access to the host system. This VM will be designated as the Victim VM. On the other hand, the Sniffer VM will have a passive role in serving and monitoring the internet traffic of the Victim VM. This connection remains on a closed network within virtualbox.
Installing VirtualBox
For windows and osx, follow the instructions in the install binary.
| Windows | Mac OSX | Linux |
|---|---|---|
![]() |
![]() |
![]() |
Download Victim and Sniffer VMs
Unzip the files below and open the .ovf or .vbox file with VirtualBox
These VMs require an Intel Architecture. AMD will not work for these snapshots (I will update support for them later).
- MD5sum: 4ad7b30b341db57dffb97e44189aed38
- OS: Windows 7 Service Pack 1
- Architecture: Intel 32bit
- Username: victim
- Password: re1012017
- IP Address: 192.168.0.2
- Gateway: 192.168.0.1
- MD5sum: be459de4cdee86f0c35582973356d506
- OS: Ubuntu 16.04.2 LTS Desktop
- Architecture: Intel 64bit
- Username: sniffer
- password re1012017
- IP Address: 192.168.0.1
- Gateway: 192.168.0.1
Post Install Instructions
- Install VirtualBox CD on both VMs: Devices->Insert Guest Additions CD Image
- If it doesn't auto appear, navigate to the CD Drive to install
- Follow install directions from the Guest Additions Dialog
- Note: it will require install privileges so insert passwords for each VM
- Shutdown Both VMs after you have installed the Guest Additions CD.
- Victim VM: Devices->Drag and Drop->Bidrectional
- Victim VM: Devices->Shared Clipboard->Bidirectional
- Both VMs: Devices->Network->Network Settings
- Select Attached to
Internal Network - Name should mirror both VMs. Default is
intnet
- Run/Play both VMs to verify network connectivity
- Sniffer VM: Ensure
inetsimis running
- Open terminal and run:
ps -ef | grep inetsim - If no output, run:
/etc/init.d/inetsim start - Run the ps command again to confirm it's running.
- Expected output:

- Victim VM: test connection to Sniffer VM
- Sniffer VM: Devices->Shared Folders->Shared Folders Settings
- On your Host, create a folder called
sniffershare - In virtual box select Add New Shared Folder icon and navigate to the folder you just created (sniffershare)
- In Sniffer VM, open the terminal and run command:
mkdir ~/host; sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) sniffershare ~/host



