Creating the VMs
VyOS
VyOS is the router for this lab, but will also function like a switch. As a result, the VM will require 6 NICs. Additionally, it will be mirroring all network traffic to the Security Onion monitoring port, so it will need more memory than normal to ensure packets aren’t dropped.
- File -> New Virtual Machine…
- Custom (advanced) ->
Next > - Hardware compatibility: Workstation 15.x ->
Next > - Installer disc image file (iso): vyos-rolling-latest.iso ->
Next > - Linux, Version “Other Linux 5.x or later kernel 64-bit” ->
Next > - Virtual machine name: VyOS ->
Next > - Number of processors: 1, Number of cores per processor: 1 ->
Next > - Memory for this virtual machine: 4096 ->
Next > - Use host-only networking ->
Next > - LSI Logic (Recommended) ->
Next > - SCSI (Recommended) ->
Next > - Create a new virtual disk ->
Next > - Maximum disk size (GB): 10, Split virtual disk into multiple files ->
Next > Next >Customize Hardware- Network Adapter: Custom: Specific virtual network: VMnet2
- Add…, Network Adapter
- Network Adapter 2: Custom: Specific virtual network: VMnet3
- Add…, Network Adapter
- Network Adapter 3: Custom: Specific virtual network: VMnet4
- Add…, Network Adapter
- Network Adapter 4: Custom: Specific virtual network: VMnet5
- Add…, Network Adapter
- Network Adapter 5: Custom: Specific virtual network: VMnet6
- Add…, Network Adapter
- Network Adapter 6: Custom: Specific virtual network: VMnet6
CloseFinish
Win11
Windows 11 is what we’ll use as our end user (read: victim) machine. Windows 11 requires a TPM unless extra steps are taken, and since we want the environment to be reasonably realistic we’ll set up a virtual TPM.
- File -> New Virtual Machine…
- Custom (advanced) ->
Next > - Hardware compatibility: Workstation 15.x ->
Next > - Installer disc image file (iso): Win11_22H2_English_x64v1.iso ->
Next > - Microsoft Windows, Version “Windows 10 x64” ->
Next > - Virtual machine name: Win11 ->
Next > - UEFI, Secure Boot ->
Next > - Number of processors: 1, Number of cores per processor: 2 ->
Next > - Memory for this virtual machine: 4096 ->
Next > - Use host-only networking ->
Next > - LSI Logic SAS (Recommended) ->
Next > - NVME (Recommended) ->
Next > - Create a new virtual disk ->
Next > - Maximum disk size (GB): 100, Split virtual disk into multiple files ->
Next > Next >Customize Hardware- Network Adapter: Custom: Specific virtual network: VMnet3
CloseFinish- Right-click Win11 -> Settings…
- Options tab -> Access Control,
Encrypt... - Enter a password (“password” is perfectly acceptible for this) ->
Encrypt - Hardware tab -> Add…
- Trusted Platform Module
- OK
WS19
Windows Server 2019 will be our DC and DNS server. It requires no special hardware except we cannot load the ISO until after we’ve created the VM, because VMWare Workstation will try to set it up for us, but we don’t have a key to provide and it breaks setup.
- File -> New Virtual Machine…
- Custom (advanced) ->
Next > - Hardware compatibility: Workstation 15.x ->
Next > - I will install the operating system later. ->
Next > - Microsoft Windows, Version “Windows Server 2016” ->
Next > - Virtual machine name: WS19 ->
Next > - UEFI, Secure Boot ->
Next > - Number of processors: 2, Number of cores per processor: 1 ->
Next > - Memory for this virtual machine: 8192 ->
Next > - Use host-only networking ->
Next > - LSI Logic SAS (Recommended) ->
Next > - NVME (Recommended) ->
Next > - Create a new virtual disk ->
Next > - Maximum disk size (GB): 80, Split virtual disk into multiple files ->
Next > Next >Customize Hardware- Network Adapter: Custom: Specific virtual network: VMnet5
- New CD/DVD (SATA): Use ISO image file: ws19.iso
CloseFinish
Kali
For our attacker machine, we’ll be using a pre-generated version of Kali. All that needs to be done is to extract the .7z file, double -click the .vmx file, and load it with VMWare Workstation. Once it’s created, the settings can be modified but it’s really not necessary for what we need it for. The only setting that must be changed is to change the network adapter to connect to VMnet4
Security Onion
The star of the show, Security Onion is the IDS for the network and the center of our training. It needs a decent amount of RAM for processing logs and disk space for storing them, as well as an extra NIC for receiving packets.
- File -> New Virtual Machine…
- Custom (advanced) ->
Next > - Hardware compatibility: Workstation 15.x ->
Next > - Installer disc image file (iso): securityonion-2.3.240-20230436.iso ->
Next > - Linux, Version “CentOS 7 64-bit” ->
Next > - Virtual machine name: SO-Standalone ->
Next > - Number of processors: 2, Number of cores per processor: 2 ->
Next > - Memory for this virtual machine: 16384 ->
Next > - Use host-only networking ->
Next > - LSI Logic (Recommended) ->
Next > - SCSI (Recommended) ->
Next > - Create a new virtual disk ->
Next > - Maximum disk size (GB): 200, Split virtual disk into multiple files ->
Next > Next >Customize Hardware- Network Adapter: Custom: Specific virtual network: VMnet6
- Add…, Network Adapter
- Network Adapter 2: Custom: Specific virtual network: VMnet6
CloseFinish