This repository guides you in setting up an Active Directory (AD) home lab with Splunk, Kali Linux, and Atomic Red Team (ART) to simulate real-world cyber threats. It is ideal for cybersecurity enthusiasts, SOC analysts, and IT professionals, providing hands-on experience in threat detection, log analysis, and attack simulation in a safe environment.
- Build a Logical Diagram
- System Requirements
- Install Virtual Machines
- Install and Configure Software
- Configure Active Directory
- Generate Telemetry With Kali
For drawing a logical diagram visit: draw.io
Watch Tutorial: Build a Logical Diagram
Here's a table summarizing your VM system requirements:
Virtual Machine | RAM | Storage | CPU Cores |
---|---|---|---|
Windows 10 Pro VM | 8 GB | 50 GB | 1 |
Windows Server 2022 VM (AD) | 8 GB | 50 GB | 1 |
Ubuntu Server VM (Splunk Server) | 8 GB | 100 GB | 2 |
Kali Linux VM (Attacker) | 4 GB | 50 GB | 1 |
Total | 28 GB | 250 GB | 5 |
Here's the table summarizing the download links and sizes for your virtual machines:
Virtual Machine | Download Link | Size |
---|---|---|
Kali Linux | Kali Linux | 3 GB approx |
Windows 10 Pro | Windows 10 Pro | 5 GB approx |
Windows Server 2022 | Windows Server 2022 | 5 GB approx |
Ubuntu Server | Ubuntu Server | 3 GB approx |
Watch Tutorial: Install Virtual Machines
Install and configure Sysmon and Splunk on Windows Server 2022 (Active Directory) and Windows 10 Pro. The configuration steps are the same for both systems. The process will be demonstrated on Windows 10 Pro, and the same steps can be applied to Windows Server 2022 with the appropriate IP address changes (192.168.10.100 for Windows 10 Pro and 192.168.10.7 for Windows Server 2022).
- Open VirtualBox.
- Click on the three dots on the Tools tab.
- Go to Networks -> NAT Networks -> Click on "Create".
- Give your subnet a name and IPv4 prefix.
- Tick "Enable DHCP" and press "Apply".
Now, go to each VM setting and change the network adapter to the NAT network. Your specified network name will appear automatically, e.g., ad-project
.
- Install Splunk on the Ubuntu server.
- Follow the Splunk setup instructions to complete the configuration.
- Configure network settings to access the subnet created above.
- Verify the subnet configuration by pinging the Ubuntu server, e.g.,
ping 192.168.10.4
. - Download and install Sysmon on Windows 10 Pro.
- Configure Sysmon with the appropriate configuration file.
- Download and install Splunk Universal Forwarder on Windows 10 Pro.
- Configure the Splunk Universal Forwarder to forward logs to the Splunk server.
If configured properly, you can access the Splunk dashboard at:
http://your-splunk-server-ip:8000
For example: http://192.168.10.4:8000
in this case.
Note: Allow ports 8000 and 9997 on the Ubuntu server.
Follow the same steps as in Step 3 for Windows Server 2022. Use the corresponding IP address for Windows Server 2022 (192.168.10.7).
Watch Tutorial: Install and Configure Software
Install and configure Windows Server 2022 (AD) to promote it to a Domain Controller and join Windows 10 Pro to the domain.
- On your Windows Server 2022, open Server Manager.
- Navigate to
Add roles and features
. - Select
Role-based or feature-based installation
and choose your server. - In the
Server Roles
section, selectActive Directory Domain Services
and complete the installation. - After installation, promote the server to a domain controller by opening the AD DS Configuration Wizard. Follow the prompts to create a new forest named
splunk.local
(replace with your own domain if different).
- Open
Active Directory Users and Computers
. - Right-click on your domain and select
New > Organizational Unit
. - Create two OUs:
IT
andHR
.
- In the
IT
OU, right-click and selectNew > User
. - Create a user (e.g., ITUser) and set a password.
- Repeat the
HR
OU steps to create a user (e.g., HRUser) and set a password. - Note down the usernames and passwords for later use.
- Open your Windows 10 Pro VM.
- Navigate to
Network and Sharing Center > Change adapter settings
. - Right-click on your network adapter and select
Properties
. - Select
Internet Protocol Version 4 (TCP/IPv4)
and click onProperties
. - Set the
Preferred DNS server
to the IP address of your Windows Server 2022 (e.g., 192.168.10.7).
- Open
Settings
on Windows 10 Pro VM. - Go to
Accounts > Access work or school
. - Click
Connect
and selectJoin this device to a local Active Directory domain
. - Enter the domain name (e.g., splunk.local) and click
Next
. - Enter the Windows 10 Pro administrator credentials (e.g., Administrator: YourPassword).
- Restart your Windows 10 Pro VM.
- On the login screen, select
Other user
. - Enter the username and password of one of the users created in Step 3 (e.g., ITUser or HRUser).
- Login and verify that the domain join was successful.
Watch Tutorial: Configure Active Directory
- Make a firewall rule on Windows 10 Pro for port 3389 (RDP) and ICMP.
- Simulate attacks using Kali Linux.
Watch Video Walkthrough: Generate Telemetry