learntodriveai.dev/Cybersecurity/SIEM Deployment and Cross-Platform Detection
CybersecurityProject 087 unitsVerified on 16 October 2026

SIEM Deployment and Cross-Platform Detection

Tshering PemDirector of Digital Services · Government tourism body · Thimphu, Bhutan
Formal memo · from Tshering
These systems were developed at different times by different vendors and store sensitive data including tourist passport numbers, guide credentials, and internal communications.
Chat with Tshering

What you hand back

  • A scope document for the assessment
  • Wazuh running alongside Loki
  • Detection rules working on both SIEMs
  • A hardened SIEM deployment
  • Fixes for the SQL injection and API bypass
  • A compliance report for the directive committee

7 units

  1. Unit 1: The Directive and the Infrastructure

    Set up the three-portal environment, read the directive memo, and question the client about how the systems connect.

    Open unit 1
  2. Unit 2: Reconnaissance and the First Findings

    Map the network with Nmap, assess each portal, and find the unauthenticated APIs linking the three systems.

    Open unit 2
  3. Unit 3: Deploying Wazuh

    Deploy Wazuh alongside Loki, install agents on the three portals, and compare what each system sees.

    Open unit 3
  4. Unit 4: The Engagement Memory and the MCP Connection

    Write the engagement memory files that carry project conventions forward, then connect AI to Loki through MCP.

    Open unit 4
  5. Unit 5: Cross-SIEM Detection Rules

    Write a Sigma rule for the SQL injection and convert it for both Loki and Wazuh.

    Open unit 5
  6. Unit 6: Hardening the SIEM and Remediation

    Harden Wazuh against the CIS benchmark, fix the SQL injection and API bypass, and answer the visa portal request.

    Open unit 6
  7. Unit 7: The Compliance Report

    Write the compliance report for the directive committee and update the engagement memory with the final state of the work.

    Open unit 7
Read the full brief

You're deploying a SIEM and conducting a security assessment for the Bhutan Tourism Council — three government portals storing tourist passport numbers, guide credentials, and internal communications, with a compliance deadline from a Royal Government directive.

The discipline skills: deploying Wazuh alongside Loki as a second SIEM, writing cross-platform detection rules that convert via pySigma to both LogQL and OpenSearch, configuring Wazuh agents for container-level collection, tuning built-in rules to reduce noise, and hardening the SIEM deployment itself against CIS benchmarks.

The AI-direction lesson: you are building AI infrastructure for the first time — an engagement memory file (CLAUDE.md) that carries field mapping conventions, detection naming standards, and architecture decisions across sessions, plus an MCP connection that lets AI query Loki directly instead of relying on pasted output. Both change what AI can do. The engagement memory means AI starts each session with your conventions instead of its defaults. The MCP connection means AI can check its own detection rules against live log data. But both require configuration decisions: what goes in the memory file, what permissions the MCP connection gets. The infrastructure you build here shapes every AI interaction that follows.

Your Role

You are conducting a security assessment and deploying a second monitoring system alongside the one you already know. The assessment covers three portals, their interconnections, and the monitoring infrastructure itself.

Templates give you structure for the scope document, engagement memory, detection rules, and compliance report. No guides walk you through the work. You decide the deployment sequence, the tuning thresholds, and what goes in the report.

What's New

Last time you designed a multi-target security assessment for a coffee cooperative, mapped an attack surface across five services, performed multi-layer exploitation, managed cross-tool correlation, and produced a multi-audience report.

A second SIEM. Wazuh is a categorically different system from Loki. Loki stores logs and makes them queryable. Wazuh collects logs, applies rules, correlates events, maps to ATT&CK, and generates compliance reports. Deploying both is not redundant — it is an architecture decision. The challenge is making detection rules work across both platforms when they handle the same data differently.

Cross-SIEM detection portability. Sigma rules that worked on Loki need to run on Wazuh too. pySigma converts the rules, but the conversions are not guaranteed to produce equivalent results. Different field mappings, different query languages, different false positive profiles. Testing on one platform and assuming the other works is a common failure mode.

AI infrastructure. You will write your first engagement memory file — a CLAUDE.md that carries field mapping conventions, detection naming standards, and architecture decisions across sessions. You will also connect AI to the Loki API via MCP, giving it the ability to query logs directly instead of relying on you to copy-paste results. Both change what AI can do. Both require configuration decisions that affect every subsequent interaction.

The hard part: two monitoring systems that serve different purposes produce different views of the same activity. The tuning decisions you make on one do not transfer to the other.

Tools

  • Wazuh — SIEM deployment, agent-based collection, built-in rules, OpenSearch dashboard. New.
  • pySigma-backend-opensearch — Sigma-to-OpenSearch conversion for Wazuh. New.
  • MCP — Loki API connection for AI-directed log queries. New.
  • Grafana + Loki — log aggregation and querying. Continuing.
  • Grafana Alloy — log collection pipeline. Continuing.
  • Sigma + sigma-cli — detection rule authoring and validation. Continuing.
  • pySigma-backend-loki — Sigma-to-LogQL conversion. Continuing.
  • Nmap — reconnaissance. Continuing.
  • sqlmap — exploitation for generating test data. Continuing.
  • Docker — lab environment including the Wazuh deployment. Continuing.
  • Claude Code — AI directing with first engagement memory and MCP connection.

Materials

  • Docker environment — three vulnerable portals (Tourism Services Portal, Guide Management System, Internal Operations Platform) plus the Grafana/Loki/Alloy monitoring stack.
  • Wazuh Docker configuration — Docker Compose overlay and agent setup guide for deploying Wazuh alongside the existing stack.
  • Scope document template — assessment boundaries and rules of engagement aligned to Directive 2026/CS-04.
  • Engagement memory template — structure for the CLAUDE.md file that carries project context across AI sessions.
  • Detection naming guide — naming convention for detection rules across both SIEMs.
  • MCP configuration guide — setup instructions for connecting AI to the Loki API.
  • CIS Wazuh benchmark extract — hardening checks for the SIEM deployment itself.
  • Compliance report template — six-section structure aligned to the government directive.
  • Environment verification script — health check for all services.
Materials · 27 files
Start Project 8

You work at a computer with a terminal. Signed in, your place is saved.