Kali Purple SOC: Part 11 – Installing Kali Eminence VM and Elastic Agent

Setting Up the VM
Follow along with the screenshots below to configure the VM.


Add serial port

Start the graphical install
Go through the language and region setup, then follow along with the screenshots below.
Reboot, then login
Enable SSH for remote administration
sudo apt-get install ssh -y
sudo systemctl enable ssh --now
Install XRDP for remote administration
sudo apt update && sudo apt install xrdp -y
sudo systemctl enable xrdp --now
Fix XRDP error message on login
sudo wget -P /etc/polkit-1/localauthority/50-local.d https://gitlab.com/kalilinux/documentation/kali-purple/-/raw/main/401_kali-eminence/overlays/etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla
Enable serial console
sudo nano /etc/default/grub
Add the following under the existing config
## Kali Eminence: Enable serial console
GRUB_CMDLINE_LINUX_DEFAULT="quiet console=ttyS0,115200n8 console=tty1"
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
sudo update-grub
Reboot.
Install Elastic agent dependencies
sudo apt install -y rsyslog
Add agent
In Elastic, go to Management > Fleet > Agent policies.
Select “Linux Server Policy” and click “Add Agent”
Copy the content from the “Linux Tar” tab. Install Elastic Agent on your host by copy and pasting that content into the command line on Kali-Eminence, and add --insecure to the end before executing.
Type y when prompted.
sudo apt install curl -y
You should see the agent enrollment turn green. Click close.