A Complete Hands-On Guide for CEH Students & Cybersecurity Professionals
🚀 Important Update (September 2024)
The OpenSearch Project has entered a new era as the OpenSearch Software Foundation, a Linux Foundation project. This means OpenSearch is now fully community-driven, open governance, and built collaboratively by global contributors—making it an ideal platform for education, innovation, and ethical cybersecurity training.
Learn more at: opensearch.org
🔍 Why OpenSearch as a SIEM?
OpenSearch includes built-in security, observability, alerting, anomaly detection, and machine learning—making it an excellent SIEM (Security Information and Event Management) platform for cybersecurity education.
- Real-time log analysis and correlation
- Built-in anomaly detection
- Custom alerting and monitoring
- Powerful visualization with Dashboards
🎯 Learning Objectives
This guide will help you master:
- OpenSearch installation on Windows via WSL2
- Log ingestion and parsing techniques
- Anomaly detection configuration
- Security dashboard creation
- Real-world threat simulation
Official Download Links
Get Started with OpenSearch
✅ Always download from official sources maintained by the OpenSearch Software Foundation:
Hands-On Lab Tasks for CEH Students
Task 1: OpenSearch Installation
Install OpenSearch & Dashboards on Windows using WSL2 with proper security configuration.
WSL2 InstallationTask 2: Brute-Force Detection
Simulate and detect brute-force attacks using custom log ingestion and visualization.
Log Analysis VisualizationTask 3: Anomaly Detection
Configure machine learning-based anomaly detection for security event spikes.
ML MonitoringTask 4: Windows Log Integration
Forward Windows Event Logs to OpenSearch for centralized security monitoring.
Windows Log ForwardingTask 5: Threat Dashboard
Create a comprehensive CEH threat dashboard with multiple visualization panels.
Dashboard ReportingStep-by-Step Lab Implementation
1Install OpenSearch & Dashboards on Windows (via WSL2)
- Enable WSL2: Open PowerShell as Admin → Run:
wsl --install -d Ubuntu-22.04
- Reboot, then set up Ubuntu username/password
- In Ubuntu terminal, install OpenSearch:
sudo apt update curl -o- https://artifacts.opensearch.org/publickeys/opensearch-release.pgp | sudo gpg --dearmor -o /usr/share/keyrings/opensearch-release-keyring echo "deb [signed-by=/usr/share/keyrings/opensearch-release-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch/3.x/apt stable main" | sudo tee /etc/apt/sources.list.d/opensearch-3.x.list sudo apt update sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=HackMe123! apt install opensearch -y sudo systemctl enable opensearch && sudo systemctl start opensearch - Repeat installation process for OpenSearch Dashboards (default port:
5601) - Access the web UI at
http://localhost:5601on your Windows browser
2Simulate & Detect Brute-Force Attacks
- Create simulated SSH attack logs in WSL:
echo 'May 12 10:00:01 server sshd[123]: Failed password for root from 192.168.1.50' > ~/attack.log
- Ingest logs into OpenSearch using curl:
curl -XPOST "https://localhost:9200/bruteforce/_doc" -H 'Content-Type: application/json' -u 'admin:HackMe123!' --insecure -d '{ "timestamp": "2025-05-12T10:00:01", "message": "Failed password for root from 192.168.1.50", "src_ip": "192.168.1.50", "status": "failed" }' - In Dashboards → Discover → Create index pattern
bruteforce* - Visualize top attacking IPs using a bar chart visualization
- Create an alert for multiple failed login attempts from the same IP
3Enable Anomaly Detection for Log Spikes
- In OpenSearch Dashboards, navigate to Anomaly Detection
- Create a new detector named
Login_Failures_Spike - Configure the detector:
- Index:
bruteforce - Feature:
Countof documents wherestatus = "failed" - Set interval to
1 minute
- Index:
- Enable the detector and start real-time monitoring
- Generate 10+ fake failed login logs within 60 seconds to trigger an anomaly alert
- Observe the anomaly score and investigate the results
4Forward Windows Event Logs to OpenSearch
- On Windows, download and install NXLog Community Edition
- Edit the
nxlog.confconfiguration file to send Windows Security logs to your WSL2 IP on port514(Syslog) - In OpenSearch Dashboards, create an index pattern
windows-logs* - Trigger test security events on Windows (e.g., failed login attempts, user account changes)
- Verify the events appear in OpenSearch Dashboards Discover view
- Create visualizations for common Windows security events
5Create a Comprehensive CEH Threat Dashboard
- In Dashboards → Dashboard → Create new dashboard
- Add the following visualization panels:
- Top 5 source IPs with failed logins (Vertical Bar Chart)
- Anomaly score timeline (Line Chart)
- Windows vs Linux event distribution (Pie Chart)
- Real-time event stream (Data Table)
- Geographic location of attacking IPs (Map Visualization)
- Arrange panels for optimal visibility and workflow
- Save dashboard as
CEH_Home_Lab_Dashboard - Export the dashboard as PDF for your cybersecurity portfolio
Best Practices & Security Considerations
Security Best Practices
- Never use default passwords in production environments
- Enable TLS/SSL for all OpenSearch communications
- Configure proper role-based access control (RBAC)
- Regularly update OpenSearch components
- Monitor OpenSearch logs for suspicious activity
Lab Management Tips
- Backup your WSL instance regularly
- Use version control for configuration files
- Document your lab setup and procedures
- Test restore procedures from backups
- Keep a lab journal of findings and issues