Build Steps¶
Domain Controller:¶
Build stock Windows Server VM.
Go into Server and download this repo into the
C:\directory. If you downloaded the .zip of the repo, move the child folder to the C: directory and rename toMarvel-Lab.Go into the
Marvel-Labfolder.Import Marvel-Lab Module -
Import-Module Marvel-Lab.psd1You can either run the scripts separately or automate the process:
Automated:
Rename-DC -Password <password> -AutomateNote: If you choose to perform the build in an automated fashion, you will need to log into the box after the Rename-DC module runs and restarts the box.Separately:
Rename-DCInitialize-MarvelDomain -Password 'Changeme1!'Update-Workstation- Install Logging. Go to Logging below and follow steps.
- Build logs will be stored in
C:\Marvel-Lab\DeploymentLog.txt.
Workstations (Windows):¶
Build Windows 10 VM.
Go into Server and download this repo into the
C:\directory. If you downloaded the .zip of the repo, move the child folder to the C: directory and rename toMarvel-Lab.Go into the
Marvel-Labfolder.Import Marvel-Lab Module -
Import-Module Marvel-Lab.psd1Go into network adapters and set the DNS to the DC’s IP. If you can’t ping
marvel.localthe domain joining script will fail.You can either run the scripts separately or automate the process:
Automated:
Rename-Workstation -AutomateNote: If you choose to perform the build in an automated fashion, you will need to log into the box after the Rename-DC module runs and restarts the box.Separately:
Rename-WorkstationJoin-DomainUpdate-WorkstationGet-Tools- Install Logging. Go to Logging below and follow steps.
- Build logs will be stored in
C:\Marvel-Lab\DeploymentLog.txt.
Logging:¶
Steps to get logging set up:¶
Install the required scripts on the Ubuntu box first before setting up logging on endpoints.
On Ubuntu box:¶
- Install Docker by following these steps, assuming you’re on Ubuntu: https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository.
- Install Docker Compose by following the documentation here: https://docs.docker.com/compose/install/.
- On the Ubuntu machine download the Marvel-Lab repository.
- Go into
Marvel-Lab\Logging\and runsetup_logging.sh.
Note: Only Ubuntu 22.04+ is supported for this script.
On Windows Workstation and DC:¶
Note: In order to receive logs in Splunk, the setup_logging.sh script must have succeeded on the Logger box (Ubuntu).
Go into the Server and download this repo into the
C:\directory. If you downloaded the .zip of the repo, move the child folder to the C:directory and rename toMarvel-Lab.Go into the
Marvel-Labfolder.Import Marvel-Lab Module -
Import-Module Marvel-Lab.psd1Logging supports ELK and Splunk * For ELK: - Pull the
elk.certfrom the Ubuntu box.Install-Logging -SIEM_IP 127.0.0.1 -ELK -ELK_Cert_Path C:\elk.crt- For Splunk:
Install-Logging -SIEM_IP 127.0.0.1 -Splunk
Note: The Sysmon configuration is up to date with version - 14.0.
FileDelete Events will only be logged within the
\Downloads folder of each user. Deletions are saved within
the C:\ArchivedFiles folder.