Cyber Services / All lessons / CEH — Ethical Hacking / OpenSearch SIEM for Windows

OpenSearch SIEM for Windows

Module 103 of 130 · 4 min read · Free to read

MODULES ↓ Command blocks have a COPY button

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

Note: OpenSearch is natively designed for Linux. However, CEH (Certified Ethical Hacker) students can use Windows Subsystem for Linux (WSL 2) to run OpenSearch on Windows for learning and lab purposes.

🔍 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

🔬

Hands-On Lab Tasks for CEH Students

Task 1: OpenSearch Installation

Beginner

Install OpenSearch & Dashboards on Windows using WSL2 with proper security configuration.

WSL2 Installation

Task 2: Brute-Force Detection

Intermediate

Simulate and detect brute-force attacks using custom log ingestion and visualization.

Log Analysis Visualization

Task 3: Anomaly Detection

Intermediate

Configure machine learning-based anomaly detection for security event spikes.

ML Monitoring

Task 4: Windows Log Integration

Advanced

Forward Windows Event Logs to OpenSearch for centralized security monitoring.

Windows Log Forwarding

Task 5: Threat Dashboard

Intermediate

Create a comprehensive CEH threat dashboard with multiple visualization panels.

Dashboard Reporting
🚀

Step-by-Step Lab Implementation

Setup Detection Anomaly Integration Dashboard
Task 1: Installation
Task 2: Brute-Force
Task 3: Anomaly
Task 4: Windows Logs
Task 5: Dashboard

1Install OpenSearch & Dashboards on Windows (via WSL2)

  1. Enable WSL2: Open PowerShell as Admin → Run:
    wsl --install -d Ubuntu-22.04
  2. Reboot, then set up Ubuntu username/password
  3. 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
                
  4. Repeat installation process for OpenSearch Dashboards (default port: 5601)
  5. Access the web UI at http://localhost:5601 on your Windows browser

2Simulate & Detect Brute-Force Attacks

  1. 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
  2. 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"
    }'
                
  3. In Dashboards → Discover → Create index pattern bruteforce*
  4. Visualize top attacking IPs using a bar chart visualization
  5. Create an alert for multiple failed login attempts from the same IP

3Enable Anomaly Detection for Log Spikes

  1. In OpenSearch Dashboards, navigate to Anomaly Detection
  2. Create a new detector named Login_Failures_Spike
  3. Configure the detector:
    • Index: bruteforce
    • Feature: Count of documents where status = "failed"
    • Set interval to 1 minute
  4. Enable the detector and start real-time monitoring
  5. Generate 10+ fake failed login logs within 60 seconds to trigger an anomaly alert
  6. Observe the anomaly score and investigate the results

4Forward Windows Event Logs to OpenSearch

  1. On Windows, download and install NXLog Community Edition
  2. Edit the nxlog.conf configuration file to send Windows Security logs to your WSL2 IP on port 514 (Syslog)
  3. In OpenSearch Dashboards, create an index pattern windows-logs*
  4. Trigger test security events on Windows (e.g., failed login attempts, user account changes)
  5. Verify the events appear in OpenSearch Dashboards Discover view
  6. Create visualizations for common Windows security events

5Create a Comprehensive CEH Threat Dashboard

  1. In Dashboards → Dashboard → Create new dashboard
  2. 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)
  3. Arrange panels for optimal visibility and workflow
  4. Save dashboard as CEH_Home_Lab_Dashboard
  5. 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
Important: These lab exercises are designed for educational purposes in controlled environments. Always ensure you have proper authorization before performing security testing on any network or system.
Career Development Tip: Document your OpenSearch lab work with screenshots and detailed explanations. This practical experience with enterprise-grade SIEM technology is highly valuable for cybersecurity roles and demonstrates hands-on capability to potential employers.
Modules (130) ← CEH — Ethical Hacking