Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Darreon Phillips Homepage

Centralized SIEM/XDR: Multi-Platform Telemetry Aggregation and Detection Engineering with Wazuh

Repository Structure

/scripts
  deploy-agent.ps1
  harden-manager.sh
/rules
  local_rules.xml
LICENSE
README.md

1. Executive Summary & Objective

  • Problem Statement: Enterprise environments suffer from visibility gaps and alert fatigue when telemetry streams go untuned, making it hard to separate high-fidelity indicators of compromise from routine system activity.
  • Solution Overview: This project builds a full detection engineering loop: a central Wazuh (v4.11) management plane, automated endpoint telemetry forwarding across an isolated network, simulated adversary behavior, and custom rule overrides to reduce ingestion noise.
  • Core Capabilities:
    • Segmented network architecture with stateful transport-layer access controls.
    • Headless deployment of host-based security agents.
    • Behavioral threat simulation mapped to Windows security event logs.
    • Continuous vulnerability assessment and detection logic tuning.

2. Architecture & Environment Topology

The lab runs on VMware Workstation Pro, using a bridged network segment to model a small enterprise network. This same environment is reused across the related detection, SOAR, IDS, and vulnerability management projects.

  • Deployment Environment: VMware Workstation Pro
  • Network Segment: 10.10.0.0/24 (bridged adapter, host-firewall restricted)
  • Management Plane: Ubuntu Server — SRV-SOC01 (8 GB RAM, local indexing volume)
  • Endpoint: Windows 10 Enterprise — WKSTN-01 (8 GB RAM)
  • Domain Controller: Windows Server — SRV-DC01
  • SIEM/XDR Core: Wazuh Manager & Indexer (v4.11) with OpenSearch Dashboards

3. Engineering Thought Process & Methodology

  • Design Considerations: A bridged adapter puts the endpoints and the Wazuh manager on the same network segment, so agent traffic behaves the way it would on a physical LAN. Wazuh was selected as a unified platform for log aggregation, compliance tracking, and active endpoint detection.
  • Technical Challenges & Resolution:
    • Challenge: SYSTEM services invoke privileged operations routinely during startup, and each one triggered default rule 60107 ("Failed attempt to perform a privileged operation"), inflating log volume with low-value alerts.
    • Resolution: Reviewed the raw JSON telemetry to establish a baseline of which processes generated the noise, then authored an override in local_rules.xml that drops those events to level 0 when the calling process is services.exe under the SYSTEM account.

4. Cyber Kill Chain & Threat Lifecycle Mapping

  • Delivery: Simulated malicious indicator delivery via download methods to validate host anti-malware telemetry capture.
  • Actions on Objectives: Generated concurrent authentication failures to simulate brute-force credential access and validate multi-event correlation.

5. MITRE ATT&CK Matrix Alignment

Tactic Technique ID Technique Name Detection Mechanism
Credential Access T1110 Brute Force Windows Event ID 4625 matched by rule 60122, with repeated failures correlated by rule 60204 (Level 10).
Execution T1204.002 Malicious File Parsing Windows Defender event channels via Rule ID 61603 to expose payload paths.
Defense Evasion T1562.004 Disable or Modify System Firewall Stateful host firewalls (UFW, Windows Defender Firewall) enforced on port 1514.

6. Telemetry & Vulnerability Intelligence Integrated

  • Wazuh Vulnerability Detector: Automated software inventory auditing that cross-references installed endpoint applications against CVE indexes, classifying findings by risk rating and outstanding patch state.

7. Implementation & Configuration

Headless Agent Deployment

scripts/deploy-agent.ps1

$AgentVersion = "4.11.2-1"
$ManagerIP    = "10.10.0.10"

# Retrieve the deployment package
Invoke-WebRequest -Uri "https://packages.wazuh.com/4.x/windows/wazuh-agent-$AgentVersion.msi" -OutFile "wazuh-agent.msi"

# Silent install. WAZUH_MANAGER registers the agent against the manager;
# without it the agent installs with no manager configured and never connects.
msiexec.exe /i "wazuh-agent.msi" /q WAZUH_MANAGER="$ManagerIP" WAZUH_AGENT_NAME="WKSTN-01"

# Start the agent service
Start-Service WazuhSvc

Custom Tuning Rule

rules/local_rules.xml (deployed to /var/ossec/etc/rules/local_rules.xml)

Rule 60107 fires on Windows Event ID 577/4673, a failed attempt to perform a privileged operation. SYSTEM services trigger it routinely at startup, so this override silences that specific pattern without touching the parent rule.

<group name="windows,security_tuning,">
  <rule id="100005" level="0">
    <if_sid>60107</if_sid>
    <field name="win.eventdata.subjectUserName">SYSTEM</field>
    <field name="win.eventdata.processName">C:\\Windows\\System32\\services.exe</field>
    <description>Tuning: Suppress routine SYSTEM-level privileged service calls to reduce ingestion volume.</description>
  </rule>
</group>

Host Network Hardening

scripts/harden-manager.sh

sudo ufw enable
sudo ufw allow 1514/tcp     # Agent telemetry
sudo ufw allow 1514/udp     # Agent telemetry
sudo ufw allow 1515/tcp     # Agent enrollment
sudo ufw allow 55000/tcp    # Wazuh server REST API
sudo ufw allow 9200/tcp     # Wazuh indexer API
sudo ufw allow 443/tcp      # Wazuh dashboard (HTTPS)

8. Operational Verification & Validation

Use Case 1: Brute-Force Authentication (T1110)

  • Simulation: Executed rapid authentication attempts with invalid credentials:
    net use \\localhost /user:fakeuser invalidpassword123
  • Verification: Each failed attempt matched rule 60122 ("Logon Failure - Unknown user or bad password") at level 5. The repeated failures within the correlation window then triggered rule 60204 ("Multiple Windows Logon Failures") at level 10, which is the alert that actually indicates brute-force activity rather than a single mistyped password.

Use Case 2: Malicious Indicator Drop via EICAR (T1204.002)

  • Simulation: Wrote the standard EICAR anti-malware test string to local storage:
    Set-Content -Path "C:\Users\Public\eicar_test.txt" -Value 'X5O!P%@AP[4\PX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*'
  • Verification: Windows Defender intercepted the file. Wazuh ingested the defense event, triggered Rule ID 61603, and surfaced the file path and signature classification in OpenSearch.

9. Hardening & Future Enhancements

  • Current Posture: The manager enforces ingress boundaries with UFW. Endpoints transmit over authenticated channels restricted by Windows Defender Firewall rules.
  • Future Roadmap:
    • Configure Active Response playbooks to block source IPs at the host layer on brute-force thresholds.
    • Integrate syslog ingestion for edge networking components (OPNsense).

License

MIT — see LICENSE.


Appendix: Deployment Screenshots

Wazuh Overview Dashboard

Wazuh Dashboard Figure 1: The main Wazuh dashboard showing event volume, alert severity levels, authentication activity, and system performance.

Agent Management

Wazuh Endpoints Figure 2: The agent inventory showing connected endpoints, their operating systems, and current connection status.

Endpoint Detail View

Wazuh Endpoint-1 Figure 3: Detail view for a single endpoint, including system metadata, configuration baseline, and compliance status.

Vulnerability Detection

Wazuh Endpoint-2 Figure 4: Vulnerability findings for the endpoint, prioritized by CVE severity and patch status.

Silent Agent Installation

Windows10-Wazuh Install Figure 5: The silent agent install running from an elevated prompt on the Windows endpoint, with the manager IP and port passed as install parameters.




Darreon Phillips Homepage

About

Wazuh SIEM/XDR deployment with custom detection rule tuning and simulated adversary behavior mapped to MITRE ATT&CK.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages