Skip to content

Lab 01 — Build Your Cybersecurity Analyst Lab Environment

Item Details
Lab 01
Lab Name Build Your Cybersecurity Analyst Lab Environment
Track CompTIA CySA+
Difficulty Beginner
Estimated Time 60–90 minutes
Primary Role Cybersecurity Analyst / SOC Analyst
Environment Local Virtual Lab
Primary Systems Windows + Linux
Skills Virtualization, networking, logging, security monitoring, analyst workstation setup

Welcome to your first CompTIA CySA+ hands-on mission.

You have joined the security operations team of a fictional organization called GHC Enterprise.

The organization is building a small Security Operations Center (SOC), and your first responsibility is to prepare an isolated environment where analysts can safely:

  • collect security logs

  • analyze suspicious activity

  • investigate endpoints

  • inspect network traffic

  • perform vulnerability assessments

  • investigate security alerts

  • practice incident response

  • conduct threat hunting

Instead of installing tools directly on production systems, you will create a dedicated Cybersecurity Analyst Lab.

This environment will become the foundation for the CySA+ labs that follow.

Mission Objective: Build a safe, reusable cybersecurity analysis environment containing an analyst workstation and monitored Windows and Linux endpoints.


Your initial environment will contain three primary systems.

CySA+ Security Lab
|
Virtual Network
|
+----------------+----------------+
| | |
| | |
Analyst VM Windows VM Linux VM
Kali Linux Windows 11 Ubuntu Server
| | |
| | |
Investigation Endpoint Server
Tools Logs Logs
System Purpose
Analyst Workstation Security investigation and analysis
Windows Endpoint Generate Windows security telemetry
Linux Server Generate Linux authentication and system telemetry

Later labs will extend this architecture with technologies such as:

SIEM
IDS/IPS
Zeek
Suricata
Vulnerability Scanner
Threat Intelligence
Endpoint Telemetry
Detection Rules
Threat Hunting

By completing this lab, you will be able to:

  • build an isolated cybersecurity analysis environment

  • understand basic SOC lab architecture

  • configure multiple virtual machines

  • configure virtual networking

  • verify communication between lab systems

  • identify important Windows security logs

  • identify important Linux security logs

  • install basic analyst utilities

  • generate security events

  • validate that systems are ready for future monitoring

  • document a basic security lab environment


CompTIA CySA+ focuses heavily on the analyst’s ability to interpret security information rather than simply memorize security technologies.

A cybersecurity analyst regularly works with:

  • endpoint telemetry

  • authentication events

  • network traffic

  • SIEM alerts

  • vulnerability information

  • indicators of compromise

  • threat intelligence

  • incident evidence

This lab gives you a controlled environment where those activities can be practiced repeatedly.


Before beginning, you should understand:

  • basic operating system concepts

  • IP addressing

  • basic TCP/IP networking

  • Windows administration fundamentals

  • Linux command-line fundamentals

You should also have approximately:

  • 16 GB RAM recommended

  • 100+ GB available disk space

  • virtualization support enabled

  • internet access for initial downloads

Systems with fewer resources can still complete the lab by running fewer virtual machines simultaneously.


You can use a virtualization platform such as:

  • Oracle VirtualBox

  • VMware Workstation

  • VMware Fusion on supported Mac systems

  • another hypervisor capable of running the required operating systems

For this learning path, the important concept is the architecture rather than the specific hypervisor.


Before creating the virtual machines, establish an organized workspace.

Example:

CySA-Lab/
├── VMs/
│ ├── Analyst/
│ ├── Windows/
│ └── Linux/
├── Evidence/
│ ├── Logs/
│ ├── PCAP/
│ ├── Screenshots/
│ └── Indicators/
├── Investigations/
├── Reports/
└── Notes/

This introduces an important analyst habit:

Keep evidence, investigation notes, and reports organized from the beginning.


Create an isolated virtual network.

Example network:

Network: 10.10.10.0/24

Assign the following addresses:

System IP Address
Analyst Workstation 10.10.10.10
Windows Endpoint 10.10.10.20
Linux Server 10.10.10.30

Example:

10.10.10.0/24
10.10.10.10 Analyst
10.10.10.20 Windows
10.10.10.30 Linux

Do not expose intentionally vulnerable services directly to the public internet.

For later attack simulations, use the isolated lab network.


Your analyst workstation will be the primary system used throughout the labs.

A Kali Linux VM is convenient because many security analysis utilities are already available.

Recommended configuration:

Hostname: CYSA-ANALYST
CPU: 2–4 vCPU
RAM: 4 GB minimum
Disk: 40–60 GB
IP: 10.10.10.10

After installation, open a terminal.

Verify your identity:

Terminal window
whoami

Check the hostname:

Terminal window
hostname

Check network interfaces:

Terminal window
ip addr

Check routing:

Terminal window
ip route

Update the package information:

Terminal window
sudo apt update

Install available updates:

Terminal window
sudo apt upgrade

Install useful utilities:

Terminal window
sudo apt install curl wget git jq tcpdump net-tools dnsutils

These tools will be used throughout future investigations.


Check whether Wireshark is available:

Terminal window
wireshark --version

Check Nmap:

Terminal window
nmap --version

Check tcpdump:

Terminal window
tcpdump --version

Check curl:

Terminal window
curl --version

You do not need every security tool installed yet.

Additional technologies will be introduced when their corresponding labs require them.


Create a Windows virtual machine.

Recommended configuration:

Hostname: CYSA-WIN01
CPU: 2 vCPU
RAM: 4 GB
Disk: 50 GB
IP: 10.10.10.20

After installation, rename the computer if necessary.

Open PowerShell as Administrator.

Check the hostname:

Terminal window
hostname

Check network configuration:

Terminal window
ipconfig /all

Verify the Windows version:

Terminal window
Get-ComputerInfo | Select-Object WindowsProductName, WindowsVersion

Windows Event Logs are one of the most important telemetry sources for security analysts.

Open:

Event Viewer

Navigate to:

Windows Logs
├── Application
├── Security
├── Setup
└── System

Spend several minutes examining the events.

Pay attention to:

Timestamp
Event ID
Source
User
Computer
Event Details

13. Query Windows Security Events with PowerShell

Section titled “13. Query Windows Security Events with PowerShell”

Instead of relying entirely on the GUI, analysts should become comfortable querying logs programmatically.

Run:

Terminal window
Get-WinEvent -LogName Security -MaxEvents 10

Display selected fields:

Terminal window
Get-WinEvent -LogName Security -MaxEvents 10 |
Select-Object TimeCreated, Id, ProviderName

You should see recent security events.


Authentication telemetry is extremely important during incident investigations.

Common Windows Event IDs include:

Event ID Meaning
4624 Successful logon
4625 Failed logon
4634 Account logged off
4648 Logon using explicit credentials
4672 Special privileges assigned
4688 Process creation

Query successful logons:

Terminal window
Get-WinEvent -FilterHashtable @{
LogName='Security'
Id=4624
} -MaxEvents 10

If no events appear, generate additional login activity and try again.


Lock the Windows workstation:

Windows Key + L

Log back in.

Return to PowerShell and search for recent successful logons:

Terminal window
Get-WinEvent -FilterHashtable @{
LogName='Security'
Id=4624
} -MaxEvents 5

You have now generated and investigated your first authentication telemetry.


Process execution is extremely valuable during security investigations.

Open:

Local Security Policy

Navigate to:

Advanced Audit Policy Configuration
→ System Audit Policies
→ Detailed Tracking
→ Audit Process Creation

Enable:

Success

Apply the configuration.

Open Command Prompt or PowerShell and run:

Terminal window
whoami

Then:

Terminal window
ipconfig

Query process creation events:

Terminal window
Get-WinEvent -FilterHashtable @{
LogName='Security'
Id=4688
} -MaxEvents 10

You should begin seeing process creation telemetry.


Create an Ubuntu Server VM.

Recommended configuration:

Hostname: CYSA-LINUX01
CPU: 2 vCPU
RAM: 2–4 GB
Disk: 30 GB
IP: 10.10.10.30

After installation:

Terminal window
hostname

Verify the IP address:

Terminal window
ip addr

Check routing:

Terminal window
ip route

Run:

Terminal window
sudo apt update

Then:

Terminal window
sudo apt upgrade

Install several basic utilities:

Terminal window
sudo apt install curl wget net-tools openssh-server

Check SSH:

Terminal window
sudo systemctl status ssh

If required:

Terminal window
sudo systemctl enable --now ssh

Linux systems commonly store logs under:

/var/log/

List the directory:

Terminal window
ls -lah /var/log/

Depending on the distribution and logging configuration, important telemetry may include:

/var/log/auth.log
/var/log/syslog
/var/log/kern.log

View authentication activity:

Terminal window
sudo tail /var/log/auth.log

Monitor it in real time:

Terminal window
sudo tail -f /var/log/auth.log

Press:

Ctrl + C

to stop monitoring.


Modern Linux environments commonly use systemd-journald.

Display recent events:

Terminal window
journalctl -n 20

View SSH service events:

Terminal window
sudo journalctl -u ssh

Display recent errors:

Terminal window
journalctl -p err

Security analysts should be comfortable working with both traditional log files and journalctl.


From the analyst workstation:

Terminal window
ping 10.10.10.20

Then:

Terminal window
ping 10.10.10.30

Expected architecture:

CYSA-ANALYST
10.10.10.10
|
+------> CYSA-WIN01
| 10.10.10.20
|
+------> CYSA-LINUX01
10.10.10.30

If ping fails, investigate:

  • virtual network configuration

  • IP addresses

  • subnet masks

  • Windows Firewall

  • Linux firewall

  • virtual adapters

Troubleshooting connectivity is itself an important analyst skill.


From the analyst workstation:

Terminal window
ssh <username>@10.10.10.30

Replace <username> with your Linux account.

After successfully connecting, run:

Terminal window
whoami

Then:

Terminal window
hostname

Exit:

Terminal window
exit

Return to the Linux server.

Run:

Terminal window
sudo grep ssh /var/log/auth.log | tail

Or:

Terminal window
sudo journalctl -u ssh --since "10 minutes ago"

Look for information such as:

Source IP
Username
Authentication Result
Timestamp
SSH Process

You have now generated a remote authentication event and investigated its telemetry.


Return to the analyst workstation.

Identify the correct network interface:

Terminal window
ip addr

Start a packet capture:

Terminal window
sudo tcpdump -i <interface>

Replace <interface> with your lab network interface.

Generate traffic by pinging the Linux server:

Terminal window
ping 10.10.10.30

Observe the packets.

Stop the capture using:

Ctrl + C

Capture traffic to a file:

Terminal window
sudo tcpdump -i <interface> -w cysa-lab01.pcap

Generate traffic between your systems.

Stop the capture.

Verify the file:

Terminal window
ls -lh cysa-lab01.pcap

You have created your first packet-capture evidence file.

This file can later be analyzed with Wireshark.


26. Create Your Analyst Evidence Workspace

Section titled “26. Create Your Analyst Evidence Workspace”

On your analyst workstation:

Terminal window
mkdir -p ~/CySA-Lab/{Evidence,Investigations,Reports,Notes}

Inside Evidence:

Terminal window
mkdir -p ~/CySA-Lab/Evidence/{Logs,PCAP,Screenshots,Indicators}

Move the packet capture:

Terminal window
mv cysa-lab01.pcap ~/CySA-Lab/Evidence/PCAP/

Verify:

Terminal window
find ~/CySA-Lab -type f

Once all systems are functioning correctly, create snapshots.

Recommended snapshot names:

CYSA-ANALYST
Snapshot: Lab01-Clean
CYSA-WIN01
Snapshot: Lab01-Clean
CYSA-LINUX01
Snapshot: Lab01-Clean

Snapshots provide a known-good state you can return to after future attack simulations or configuration changes.


Document your environment.

Example:

Asset Hostname IP Role OS
Analyst CYSA-ANALYST 10.10.10.10 Investigation Kali Linux
Endpoint CYSA-WIN01 10.10.10.20 User Endpoint Windows
Server CYSA-LINUX01 10.10.10.30 Linux Server Ubuntu

Save this information in:

CySA-Lab/Notes/Lab-Asset-Inventory.md

Maintaining an accurate asset inventory is an important part of security operations.


You have configured the environment.

Now perform a small investigation without following exact commands.

A security analyst reports that someone recently connected to:

CYSA-LINUX01

using SSH.

Determine:

  1. When did the connection occur?

  2. Which account authenticated?

  3. What source IP initiated the connection?

  4. Was authentication successful?

  5. Which log source contains the evidence?

Record your findings.

Example investigation record:

Incident:
LAB01-SSH-001
System:
CYSA-LINUX01
Event:
Remote SSH authentication
Source:
10.10.10.x
Account:
<username>
Result:
Successful / Failed
Evidence Source:
Linux authentication logs / systemd journal

Do not worry about producing a full incident report yet.

That skill will be developed in later labs.


Before completing the mission, verify:

  • Analyst virtual machine is operational

  • Windows endpoint is operational

  • Linux server is operational

  • All systems use the isolated lab network

  • IP addresses are documented

  • Analyst workstation can communicate with both endpoints

  • Windows Event Viewer is accessible

  • Windows Security events can be queried

  • Linux authentication logs can be investigated

  • SSH telemetry has been generated

  • Network traffic has been captured

  • PCAP evidence has been saved

  • Evidence folders have been created

  • Asset inventory has been documented

  • Clean VM snapshots have been created


Save evidence demonstrating successful completion of the mission.

Capture:

01-analyst-ip.png
02-windows-ip.png
03-linux-ip.png
04-windows-security-events.png
05-windows-4624-event.png
06-linux-authentication-log.png
07-ssh-investigation.png
08-network-connectivity.png
09-packet-capture.png
10-vm-snapshots.png

Place the evidence under:

CySA-Lab/
└── Evidence/
├── Logs/
├── PCAP/
│ └── cysa-lab01.pcap
└── Screenshots/

You started this lab with individual operating systems.

You now have a small cybersecurity analysis environment containing:

Analyst Workstation
Isolated Security Network
Windows + Linux Systems
Security Telemetry
Logs + Network Evidence
Analyst Investigation

More importantly, you performed the beginning of the same workflow used in security operations:

Generate Activity
Collect Telemetry
Identify Evidence
Investigate Activity
Document Findings

That workflow will become progressively more advanced throughout the CySA+ labs.


After completing this mission, you should understand:

  • cybersecurity analyst lab architecture

  • virtual security environments

  • endpoint telemetry

  • Windows Event Logs

  • Linux security logs

  • authentication telemetry

  • basic packet capture

  • evidence organization

  • security investigation fundamentals


Lab 02 — Security Log Analysis Fundamentals

Section titled “Lab 02 — Security Log Analysis Fundamentals”

Your environment is ready.

In the next lab, you will move from building the environment to investigating security telemetry.

You will work with multiple log sources and learn how analysts identify:

  • successful and failed authentication

  • suspicious login patterns

  • unusual system activity

  • important timestamps

  • usernames and source addresses

  • event IDs

  • related events

  • potential indicators of compromise

The goal is to begin thinking like a cybersecurity analyst:

Don’t look at an event in isolation. Build the story around it.

➡️ Next: Lab 02 — Security Log Analysis Fundamentals