<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Arfan Abid on Medium]]></title>
        <description><![CDATA[Stories by Arfan Abid on Medium]]></description>
        <link>https://medium.com/@ArfanAbid?source=rss-a6f9ac00ac30------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NjKc1aeEtPbwyQZMZD_BVQ.png</url>
            <title>Stories by Arfan Abid on Medium</title>
            <link>https://medium.com/@ArfanAbid?source=rss-a6f9ac00ac30------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:35:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ArfanAbid/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Wazuh Alert Triage & Escalation Playbook: Automating SOC Workflows with Shuffle, DFIR-IRIS &…]]></title>
            <link>https://medium.com/@ArfanAbid/wazuh-alert-triage-escalation-playbook-automating-soc-workflows-with-shuffle-dfir-iris-84ed2b9eb758?source=rss-a6f9ac00ac30------2</link>
            <guid isPermaLink="false">https://medium.com/p/84ed2b9eb758</guid>
            <dc:creator><![CDATA[Arfan Abid]]></dc:creator>
            <pubDate>Fri, 29 May 2026 10:00:48 GMT</pubDate>
            <atom:updated>2026-05-29T10:02:48.430Z</atom:updated>
            <content:encoded><![CDATA[<h3>Wazuh Alert Triage &amp; Escalation Playbook: Automating SOC Workflows with Shuffle, DFIR-IRIS &amp; Discord/Gmail 🛡️</h3><blockquote>Part of the Open-Source SIEM/SOC Stack series, building a complete, production-grade security operations environment using 100% open-source tools.</blockquote><h3>Series Context</h3><p>If you’ve been following this series, you’ve already walked through deploying Wazuh, onboarding agents, enriching logs with Graylog, and visualizing everything in Grafana. Now it’s time to close the loop, <strong>turning raw Wazuh alerts into structured, triaged, actionable incidents</strong> without a human doing it manually for every event.</p><p>This post covers the full alert-to-case automation pipeline:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*1M4PrC1I_QuUxd6X3gtiEg.png" /><figcaption>Playbook</figcaption></figure><p><strong>Wazuh → Shuffle → DFIR-IRIS → Discord / Gmail</strong></p><p>By the end, your SOC will automatically:</p><ul><li>Receive alerts from Wazuh via webhook</li><li>Filter noise from signal based on severity level</li><li>Enrich, map, and create structured alerts in DFIR-IRIS</li><li>Escalate high-severity alerts into full incident cases</li><li>Notify your SOC team in real time via Discord or email</li></ul><h3>Stack Overview</h3><p>Before diving in, here’s a quick summary of each component and why it’s here.</p><p>Tool Role <strong>Wazuh</strong> SIEM/XDR — detects threats, generates alerts <strong>Shuffle</strong> SOAR — orchestrates automation workflows <strong>DFIR-IRIS</strong> Case management — tracks alerts, investigations, and evidence <strong>Discord / Gmail</strong> Notifications — real-time SOC team alerting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypbw4KEJwWl2tYA7On4D0g.png" /><figcaption>DFIR-IRIS</figcaption></figure><p>Each tool is open-source, containerized, and designed to integrate cleanly. The beauty of this stack is that <strong>no vendor lock-in, no licensing costs, and no black-box logic</strong> — you control everything.</p><h3>Architecture at a Glance</h3><pre>Wazuh Manager<br>     │<br>     │  (Webhook / ossec.conf integration)<br>     ▼<br> Shuffle Workflow<br>     │<br>     ├── Level &lt; 7 ──────────► Discord (informational channel)<br>     │<br>     └── Level ≥ 7<br>           │<br>           ├── Severity Mapping (Python)<br>           ├── Create Alert in DFIR-IRIS<br>           ├── Create Case from Alert<br>           └── Notify SOC (Gmail / Discord)</pre><h3>Step 1 — Set Up the Webhook in Shuffle</h3><p>The entire pipeline begins with a webhook. Shuffle will listen for incoming Wazuh alert data on this endpoint.</p><ol><li>Open Shuffle and create a <strong>new workflow</strong>.</li><li>Add a <strong>Webhook Trigger</strong> as the starting node.</li><li>Name it Wazuh Alerts.</li><li>Copy the generated endpoint URL — you’ll need this in the next step.</li></ol><blockquote><strong><em>Tip:</em></strong><em> Keep this workflow in an active/started state before you configure Wazuh. Shuffle needs to be listening when the first test alert arrives.</em></blockquote><h3>Step 2 — Configure Wazuh to Forward Alerts</h3><p>Now tell Wazuh to push alerts to your Shuffle webhook. Open your Wazuh manager’s ossec.conf and add the following integration block:</p><pre>&lt;integration&gt;<br>  &lt;name&gt;custom-webhook&lt;/name&gt;<br>  &lt;hook_url&gt;http://&lt;your-shuffle-ip&gt;:3001/api/v1/webhook/&lt;webhook-id&gt;&lt;/hook_url&gt;<br>  &lt;level&gt;1&lt;/level&gt;<br>  &lt;alert_format&gt;json&lt;/alert_format&gt;<br>&lt;/integration&gt;</pre><p><strong>Key fields:</strong></p><ul><li>&lt;hook_url&gt; — paste the Shuffle webhook URL here</li><li>&lt;level&gt;1&lt;/level&gt; — forward all alerts starting at level 1 (Shuffle will filter later)</li><li>&lt;alert_format&gt;json&lt;/alert_format&gt; — ensures structured JSON payloads</li></ul><p>After saving, restart the Wazuh manager:</p><pre>sudo systemctl restart wazuh-manager</pre><p>From this point forward, every Wazuh alert will be forwarded to Shuffle as a JSON payload in real time.</p><h3>Step 3 — Ingest &amp; Repeat the Alert in Shuffle</h3><p>Once logs start arriving, add a <strong>Repeat Back to Me</strong> app node in your Shuffle workflow. Name it Repeat Alert.</p><p>This node makes the incoming alert data accessible throughout the rest of the workflow using the $repeat_alert variable. Think of it as binding the raw webhook payload to a reusable reference — every subsequent step in the pipeline will read from it.</p><h3>Step 4 — Filter by Alert Level</h3><p>Not every Wazuh alert warrants an incident case. Wazuh uses a rule severity scale from 0–15. Here’s what the levels generally mean:</p><p>Level Meaning 0–3 Informational / system events 4–6 Low severity 7–9 Medium severity — potential threats 10–12 High severity — likely threats 13–15 Critical</p><p>In the Shuffle workflow, add a <strong>condition node</strong> to branch on alert level:</p><p><strong>If</strong> $repeat_alert.all_fields.rule.level <strong>&lt; 7</strong> → send to Discord (informational only)</p><blockquote><strong><em>Note:</em></strong><em> This workflow is a </em><strong><em>general-purpose playbook</em></strong><em> — a baseline that handles all incoming Wazuh alerts uniformly. In upcoming posts, we’ll build dedicated playbooks tailored to specific threat scenarios: brute force detection, file integrity monitoring violations, SOC AI-assisted triage, and more. Each will have its own logic, enrichment steps, and response actions suited to that attack pattern.</em></blockquote><h3>Step 5 — Discord Notification for Low-Severity Alerts</h3><p>For levels below 7, you still want visibility — just without triggering full incident workflows. Set up a dedicated Discord channel for informational alerts.</p><h3>Creating the Discord Webhook</h3><ol><li>Open your Discord server</li><li>Create a new text channel, e.g., #wazuh-alerts</li><li>Go to <strong>Channel Settings → Integrations → Webhooks</strong></li><li>Click <strong>New Webhook</strong>, name it (e.g., Wazuh-SIEM-Alerts), and copy the webhook URL</li></ol><h3>Shuffle Payload for Discord</h3><p>In Shuffle, add an HTTP node with a POST request to your Discord webhook URL. Use this JSON body:</p><pre>{<br>  &quot;content&quot;: &quot;**[Wazuh Informational Alert]**\n\n**Level:** $repeat_alert.all_fields.rule.level\n**Rule ID:** $repeat_alert.rule_id\n**Title:** $repeat_alert.all_fields.rule.description\n**Source:** $repeat_alert.all_fields.agent.name\n**Detected IP:** $repeat_alert.all_fields.agent.ip\n**Timestamp:** $repeat_alert.timestamp\n\n_No immediate action required. Logged for visibility._&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eJf6Wje7vN9ZzkBdw0FYQQ.png" /><figcaption>Discord notification</figcaption></figure><p>This keeps your SOC team aware of lower-level activity without flooding the incident queue.</p><h3>Step 6 — Severity Mapping for IRIS</h3><p>DFIR-IRIS uses its own severity scale (numeric IDs) that doesn’t directly match Wazuh’s 0–15 level system. You need to translate between them before creating alerts in IRIS.</p><p>Add a <strong>Python script</strong> node in Shuffle named severity_map:</p><pre>try:<br>    rule_level = int(&quot;{{ repeat_alert.all_fields.rule.level or 0 }}&quot;)<br>except Exception:<br>    rule_level = 0</pre><pre># Map Wazuh level to IRIS severity ID<br>if rule_level &lt; 5:<br>    severity = 2   # Low<br>elif rule_level &lt; 7:<br>    severity = 3   # Medium-Low<br>elif rule_level &lt; 10:<br>    severity = 4   # Medium<br>elif rule_level &lt; 13:<br>    severity = 5   # High<br>else:<br>    severity = 6   # Critical</pre><pre>output = {<br>    &quot;severity&quot;: severity<br>}<br>print(severity)</pre><p><strong>IRIS Severity IDs reference:</strong></p><p>IRIS ID Label 1 Informational 2 Low 3 Medium 4 High 5 Critical 6 Emergency</p><blockquote><strong><em>Note:</em></strong><em> Wazuh alerts include a default severity field. If you’d rather skip the custom script, you can map that field directly. The script above is useful if you need fine-grained control over the mapping logic.</em></blockquote><h3>Step 7 — Create Alert in DFIR-IRIS</h3><p>Now for the core of the pipeline — automatically creating a structured alert in DFIR-IRIS for every high-severity Wazuh event.</p><h3>Authentication</h3><p>In Shuffle, add DFIR-IRIS as an app and authenticate using a <strong>non-admin service account API key</strong>. Creating a dedicated account for Shuffle integrations is a security best practice — it limits blast radius if credentials are ever compromised.</p><h3>Alert Creation Payload</h3><p>Use the following body in your IRIS node:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zVbjURcwg0kVd3KQE_oQIw.png" /></figure><pre>{<br>  &quot;alert_title&quot;: &quot;$repeat_alert.all_fields.rule.description&quot;,<br>  &quot;alert_description&quot;: &quot;Rule ID: $repeat_alert.all_fields.rule.id\nRule Level: $repeat_alert.all_fields.rule.level\nRule Description: $repeat_alert.all_fields.rule.description\nAgent ID: $repeat_alert.all_fields.agent.id\nAgent Name: $repeat_alert.all_fields.agent.name\nMITRE IDs: $repeat_alert.all_fields.rule.mitre.id\nMITRE Tactics: $repeat_alert.all_fields.rule.mitre.tactic\nMITRE Techniques: $repeat_alert.all_fields.rule.mitre.technique\nLocation: $repeat_alert.all_fields.location&quot;,<br>  &quot;alert_source&quot;: &quot;Wazuh&quot;,<br>  &quot;alert_source_ref&quot;: &quot;$repeat_alert.id&quot;,<br>  &quot;alert_source_link&quot;: &quot;https://&lt;your-wazuh-dashboard&gt;/app/wz-home&quot;,<br>  &quot;alert_severity_id&quot;: $severity_map.message,<br>  &quot;alert_status_id&quot;: 2,<br>  &quot;alert_note&quot;: &quot;Rule level: $repeat_alert.all_fields.rule.level, Event ID: $repeat_alert.all_fields.data.win.system.eventID&quot;,<br>  &quot;alert_tags&quot;: &quot;wazuh,$repeat_alert.all_fields.agent.name&quot;,<br>  &quot;alert_customer_id&quot;: 1,<br>  &quot;alert_source_content&quot;: &quot;&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*THrZfWvpEtqksJEVmFQCcA.png" /><figcaption>IRIS Alert interface</figcaption></figure><p><strong>What each field does:</strong></p><ul><li>alert_title — pulled directly from the Wazuh rule description</li><li>alert_description — rich context block including MITRE ATT&amp;CK mapping, agent info, and location</li><li>alert_source_ref — the Wazuh alert ID, so you can cross-reference</li><li>alert_severity_id — the mapped severity from your Python script</li><li>alert_status_id: 2 — sets the initial status to &quot;Assigned&quot; in IRIS</li><li>alert_tags — tags the alert with the source agent name for filtering</li></ul><blockquote><strong><em>MITRE ATT&amp;CK context is automatically included.</em></strong><em> If Wazuh’s detection rules map to MITRE tactics/techniques, that context flows directly into your IRIS alert — giving analysts immediate threat framing without manual lookup.</em></blockquote><h3>Step 8 — Escalate to a Full Incident Case</h3><p>An alert in IRIS is a triage item. A <em>case</em> is a full investigation. You can create cases manually after analyst review, or automate case creation for critical alerts.</p><p>To automate, add a second IRIS node (Create Case) with this body:</p><pre>{<br>  &quot;case_customer&quot;: $create_alert.body.data.customer.customer_id,<br>  &quot;case_description&quot;: &quot;$create_alert.body.data.alert_description&quot;,<br>  &quot;case_name&quot;: &quot;Wazuh - $create_alert.body.data.alert_title&quot;,<br>  &quot;case_soc_id&quot;: &quot;$create_alert.body.data.alert_source_ref&quot;,<br>  &quot;cid&quot;: &quot;$create_alert.body.data.alert_id&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJId2JFkTyJry1P7Ncrz9A.png" /><figcaption>IRIS case interface</figcaption></figure><p>This case is now linked to the originating alert, pre-populated with context, and ready for an analyst to pick up. IRIS tracks timelines, evidence, IOCs, and team assignments — all from this single automated creation point.</p><blockquote><strong><em>Recommendation:</em></strong><em> For mature SOC workflows, consider creating cases automatically only for levels ≥ 10 (high/critical), and leaving levels 7–9 as alerts only. This avoids case queue bloat while ensuring the worst threats are always escalated.</em></blockquote><h3>Step 9 — Notify the SOC Team</h3><p>The final step is getting eyes on the alert immediately. Add a notification node — either Gmail or Discord (or both) — at the end of your high-severity branch.</p><p>For Discord, reuse the webhook approach from Step 5, but point to a dedicated #soc-critical-alerts channel. For Gmail, use Shuffle&#39;s built-in Gmail app to send a formatted email to your SOC distribution list.</p><p>A good notification message should include:</p><ul><li>Alert title and severity</li><li>Source agent and IP</li><li>IRIS alert/case link</li><li>MITRE tactic if present</li><li>Timestamp</li></ul><h3>Step 10 — Enable IOC Enrichment</h3><p>With alerts and cases flowing into IRIS automatically, the next power-up is <strong>automatic IOC enrichment</strong> — having every IP address, hash, or domain checked against threat intelligence databases the moment it’s extracted.</p><h3>Option A: Via Shuffle Workflow</h3><p>Add VirusTotal or MISP app nodes after case creation in your Shuffle workflow. Extract IOCs from the alert payload and pass them to the enrichment app. Results come back and can be written back to the IRIS case as notes or IOC tags.</p><h3>Option B: Built-in IRIS Modules</h3><p>IRIS has native module support for VirusTotal and MISP:</p><ol><li>Go to <strong>IRIS → Modules</strong></li><li>Enable the <strong>VirusTotal</strong> or <strong>MISP</strong> module</li><li>Set <strong>Auto-trigger upon IOC creation</strong> to True</li></ol><p>Once enabled, every IOC added to any case — automatically or manually — gets enriched in the background. Analysts see reputation scores, known-bad flags, and related threat intel without leaving IRIS.</p><h3>Complete Workflow Summary</h3><pre>Wazuh Alert Generated<br>        │<br>        ▼<br>Shuffle Webhook Receives Alert<br>        │<br>        ▼<br>Repeat Alert Node (bind $repeat_alert)<br>        │<br>   [Level Check]<br>   /           \<br>&lt; 7             ≥ 7<br> │               │<br> ▼               ▼<br>Discord      Severity Map<br>(info only)      │<br>                 ▼<br>            Create IRIS Alert<br>                 │<br>                 ▼<br>            Create IRIS Case<br>                 │<br>                 ▼<br>            Notify SOC (Discord/Gmail)<br>                 │<br>                 ▼<br>            Auto-Enrich IOCs (VT/MISP)</pre><h3>What You’ve Built</h3><p>At the end of this setup, you have a fully automated alert triage pipeline that:</p><ul><li><strong>Eliminates manual triage</strong> for structured, recurring alert types</li><li><strong>Maintains full audit trails</strong> in DFIR-IRIS for every incident</li><li><strong>Maps to MITRE ATT&amp;CK</strong> automatically — every alert arrives with threat context</li><li><strong>Scales</strong> — adding new detection rules in Wazuh automatically flows through the entire pipeline</li><li><strong>Costs $0</strong> in licensing — every component is open-source</li></ul><h3>What’s Next</h3><p>In the next post in this series, we’ll look at integrating <strong>MISP for threat intelligence sharing</strong> — so your SOC isn’t just reacting to known-bad indicators, but contributing intelligence back to the community and receiving enriched feeds in return.</p><h3>Previous Posts in This Series</h3><ul><li><a href="https://medium.com/@ArfanAbid/deploying-wazuh-with-docker-single-multi-node-0c7547c1c47a">Deploying Wazuh with Docker (Single/Multi-Node)</a></li><li><a href="https://medium.com/@ArfanAbid/configuring-wazuh-agents-groups-and-vulnerability-detection-7db429836d8b">Configuring Wazuh Agents, Groups, and Vulnerability Detection</a></li><li><a href="https://medium.com/@ArfanAbid/sysmon-config-and-sending-logs-to-wazuh-enhancing-endpoint-visibility-ee2ef3ad5e96">Sysmon Config and Sending Logs to Wazuh: Enhancing Endpoint Visibility</a></li><li><a href="https://medium.com/@ArfanAbid/wazuh-graylog-architecture-normalizing-enriching-security-logs-%EF%B8%8F-fe2348e916e8">Wazuh–Graylog Architecture: Normalizing &amp; Enriching Security Logs</a></li><li><a href="https://medium.com/@ArfanAbid/configuring-wazuh-to-send-logs-to-graylog-for-normalization-setting-up-filebeat-563db817a030">Configuring Wazuh to Send Logs to Graylog for Normalization</a></li><li><a href="https://medium.com/@ArfanAbid/parsing-normalizing-streamlining-wazuh-logs-in-graylog-a722b7e5d76f">Parsing, Normalizing &amp; Streamlining Wazuh Logs in Graylog</a></li><li><a href="https://medium.com/@ArfanAbid/setting-up-grafana-to-visualize-wazuh-siem-alerts-and-opnsense-firewall-logs-752cce12d2ef">Setting Up Grafana to Visualize Wazuh (SIEM) Alerts and OPNsense Logs</a></li></ul><p><em>Building a complete open-source SIEM/SOC stack. All configs, playbooks, and Docker files available on </em><a href="https://github.com/ArfanAbid/Open-Source-SIEM_SOC-Stack"><em>GitHub</em></a><em>.</em></p><p><em>Connect on </em><a href="https://www.linkedin.com/in/arfan-abid-152217270/"><em>LinkedIn</em></a></p><p><strong>Tags:</strong> #cybersecurity #siem #wazuh #dfir #soar #shuffle #incidentresponse #opensourcesecurity #soc #infosec</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84ed2b9eb758" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up Grafana to Visualize Wazuh (SIEM) Alerts and OPNsense (Firewall) Logs]]></title>
            <link>https://medium.com/@ArfanAbid/setting-up-grafana-to-visualize-wazuh-siem-alerts-and-opnsense-firewall-logs-752cce12d2ef?source=rss-a6f9ac00ac30------2</link>
            <guid isPermaLink="false">https://medium.com/p/752cce12d2ef</guid>
            <category><![CDATA[firewall]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Arfan Abid]]></dc:creator>
            <pubDate>Sun, 16 Nov 2025 10:01:21 GMT</pubDate>
            <atom:updated>2025-11-16T10:06:18.830Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Cp_TVbWQysOQGOVvFMAqQ.png" /></figure><p>In the previous steps, we successfully configured <strong>Graylog</strong> to normalize, parse, and enrich our Wazuh logs before storing them in a common backend (OpenSearch/Elasticsearch):<br><a href="https://medium.com/@ArfanAbid/parsing-normalizing-streamlining-wazuh-logs-in-graylog-a722b7e5d76f"><strong><em>https://medium.com/@ArfanAbid/parsing-normalizing-streamlining-wazuh-logs-in-graylog-a722b7e5d76f</em></strong></a></p><p>While the logs are now structured, raw data alone doesn’t give actionable insight, this is where <strong>Grafana</strong> comes in.</p><p>Grafana allows us to turn raw security events into visually intuitive dashboards, enabling SOC analysts to quickly identify anomalies, monitor threats, and make data-driven decisions.</p><h3>Why Use Grafana?</h3><p>While Kibana or Wazuh Dashboards can display logs, they have limitations:</p><ul><li>Limited customization and flexibility</li><li>Slower response times with complex queries</li><li>Difficult to integrate multiple data sources</li><li><strong>Field name conversion issue</strong>: Graylog automatically replaces dots (.) in field names with underscores (_), which can break Wazuh Dashboard visualizations since it expects dotted fields. This is one reason we prefer Grafana for visualization.</li></ul><p>Grafana solves these issues by providing:</p><ul><li>Multi-source dashboards (Wazuh, firewall logs, threat intel)</li><li>Real-time and historical data visualization</li><li>Flexible panel types (charts, tables, heatmaps, maps)</li><li>Alerting and notifications via Slack, email, or webhooks</li></ul><p>In short, Grafana is the <strong>go-to tool for production-grade SIEM visualization</strong>.</p><h3>Preparing Logs for Visualization</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s21h8veioFApDNvpOhdPeA.png" /><figcaption>Architecture Diagram</figcaption></figure><p>Before creating dashboards, it’s crucial that logs are properly normalized. Here’s what we did:</p><ol><li><strong>Graylog</strong> receives Wazuh alerts and other log sources (like OPNsense firewall logs).</li><li><strong>Extractors</strong> in Graylog parse JSON fields.</li><li><strong>Pipelines and Streams</strong> normalize logs (e.g., unifying source IP fields across Linux, Windows, and firewall logs).</li><li>Enriched and structured logs are stored in <strong>OpenSearch</strong>, ready for Grafana.</li></ol><blockquote><em>Without this preprocessing step, dashboards would be inconsistent, and it would be difficult to correlate alerts across different sources.</em></blockquote><h3>Installing and Configuring Grafana</h3><ol><li>Install Grafana and start the service:</li></ol><pre>sudo systemctl start grafana-server<br>sudo systemctl enable grafana-server</pre><ul><li>Open Grafana: http://&lt;server-ip&gt;:3000</li><li>Default login: admin/admin (Change password on first login)</li></ul><h4>Adding Data Sources</h4><p>We add <strong>OpenSearch/Elasticsearch</strong> as our primary data source:</p><p><strong>Steps:</strong></p><ol><li>Navigate to: <strong>Configuration → Data Sources → Add Data Source</strong></li><li>Select <strong>OpenSearch</strong></li><li>Configure the connection:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*vQs_seTalklLDFwBpc_lKg.png" /><figcaption>Data Source Config</figcaption></figure><h3>Verify Logs Using Explore</h3><p>Go to <strong>Explore → Choose Data Source (Wazuh-Alerts)</strong><br> Run a simple query such as:</p><pre>* <br>#OR<br>rule.level: &gt; 7</pre><p>If logs appear, everything is working correctly.</p><h3>Creating Dashboards:</h3><blockquote><strong>GitHub Repo:</strong> Wazuh &amp; OPNsense Dashboards: <a href="https://github.com/ArfanAbid/Wazuh_OPNsense-Grafana_Dashboard">https://github.com/ArfanAbid/Wazuh_OPNsense-Grafana_Dashboard</a></blockquote><h4>Wazuh SIEM Dashboard</h4><ol><li><strong>Create a new dashboard</strong> → Add panel</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sAlDeM4G4P1nXgQcPlRlDA.png" /><figcaption>Wazuh (SIEM) Dashboard</figcaption></figure><p>Suggested panels:</p><ul><li>Top 10 Wazuh alerts by rule name</li><li>Critical alerts (Level ≥ 10) over time</li><li>Agent activity per host</li><li>Failed authentication attempts</li><li>Malware detection trends</li></ul><h4>OPNsense Firewall Dashboard</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2rsbWzQwlOPeLnEICFN_UQ.png" /><figcaption>OPNsense Firewall Dashboard</figcaption></figure><p>Suggested panels:</p><ul><li>Top destination IPs and ports</li><li>Allowed vs. blocked connections</li><li>Traffic volume over time</li><li>Top source IPs by connection attempts</li><li>Threat-related firewall events</li></ul><p><strong>Tip:</strong> You can combine multiple sources into a single dashboard for full SOC visibility. e.g., showing Wazuh alerts alongside firewall traffic anomalies.</p><h3>Conclusion:</h3><p>With Grafana integrated into our <strong>Wazuh + Graylog + OpenSearch</strong> pipeline, we’ve successfully built <strong>production-ready dashboards</strong> that provide <strong>real-time monitoring, actionable insights, and historical trend analysis</strong>.</p><ul><li>Wazuh alerts and OPNsense firewall logs are now normalized, enriched, and visualized in a unified interface.</li><li>Analysts can quickly identify threats, correlate events across endpoints and network devices, and make informed decisions.</li><li>Grafana’s flexibility allows combining multiple data sources, custom visualizations, and alerting, making it ideal for a modern SOC environment.</li></ul><p>This setup ensures a <strong>scalable, efficient, and analyst-friendly SIEM visualization layer</strong>, turning raw logs into actionable intelligence.</p><blockquote><strong><em>Arfan Abid</em></strong></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/arfan-abid-152217270/"><em>https://www.linkedin.com/in/arfan-abid-152217270/</em></a><em><br></em><strong>GitHub Repo:</strong> Wazuh &amp; OPNsense Dashboards: <a href="https://github.com/ArfanAbid/Wazuh_OPNsense-Grafana_Dashboard">https://github.com/ArfanAbid/Wazuh_OPNsense-Grafana_Dashboard</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=752cce12d2ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Parsing, Normalizing & Streamlining Wazuh Logs in Graylog]]></title>
            <link>https://medium.com/@ArfanAbid/parsing-normalizing-streamlining-wazuh-logs-in-graylog-a722b7e5d76f?source=rss-a6f9ac00ac30------2</link>
            <guid isPermaLink="false">https://medium.com/p/a722b7e5d76f</guid>
            <category><![CDATA[normalization]]></category>
            <category><![CDATA[graylog]]></category>
            <category><![CDATA[pipeline]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[siem]]></category>
            <dc:creator><![CDATA[Arfan Abid]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 17:01:55 GMT</pubDate>
            <atom:updated>2025-10-02T17:01:55.878Z</atom:updated>
            <content:encoded><![CDATA[<p>In the previous setup, we successfully configured a <strong>common backend database (Elasticsearch/OpenSearch)</strong> and routed logs through <strong>Graylog</strong>, which acts as the smart middleman. Logs from Wazuh, firewalls flowing into Graylog.</p><p>However, these logs initially appear <strong>raw and unstructured</strong>, making it difficult to analyze, correlate, or build dashboards. That’s why the next step is to <strong>parse, normalize, and streamline</strong> these logs — turning raw data into clean, consistent, and actionable security events.</p><p>But raw logs alone aren’t enough. They’re messy, inconsistent, and sometimes full of noise. To turn logs into actionable security data, we need to:</p><ol><li><strong>Parse</strong> them into structured fields</li><li><strong>Normalize</strong> them into standard formats</li><li><strong>Streamline</strong> them into indexes for better management</li></ol><p>This article will guide you through how to do exactly that with Graylog.</p><h3>Step 1: Parsing Logs with Extractors</h3><p>When logs arrive in Graylog, they usually come in the message field as raw text.<br> To make them useful, we must break them down into structured fields.</p><p>Example with <strong>Wazuh alerts</strong>:</p><ul><li>Open a Wazuh log message in Graylog</li><li>Click <strong>Create Extractor → JSON Extractor</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pIxWDzYh6UeH2bZWOX5YMw.png" /></figure><p>Now, instead of digging through one long text field, you have clean, searchable fields.</p><h3>Step 2: Creating a Wazuh Alerts Index</h3><p>Since we’re ingesting multiple log types (firewalls, cloud, Wazuh, etc.), mixing everything into one index can get messy.</p><p>Solution: Create a <strong>Wazuh-Alerts Index</strong></p><ul><li>Go to <strong>System → Indices → Create Index Set</strong></li><li>Name it Wazuh-Alerts</li><li>Assign a rotation/retention strategy (important for production!)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FRoE6rTg8XLdhbei597qKQ.png" /></figure><p>This keeps Wazuh logs separate and easier to query while still being part of the same unified Elasticsearch backend.</p><h3>Step 3: Routing Logs with Streams</h3><p>Streams in Graylog let us filter and route specific logs into the right indexes.</p><p>Example:</p><p>I receive Wazuh alerts, and I would like them to be stored in the ‘Wazuh-Alert’ index, as I may have other logs, such as firewall logs, in different indexes.</p><ul><li>Create a stream called <strong>Wazuh Alerts</strong></li><li>Add a rule: log_type = wazuh</li><li>Route these logs into the Wazuh-Alerts index</li></ul><p>Goto stream&gt;manage_rules&gt; Add Stream Rules&gt; log_type match to Wazuh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ewKwReAh2DUqbHMdy7KOGA.png" /></figure><p>Now, when you ingest firewall logs later, they can go into a different stream (e.g., Firewall-Logs).</p><h3>Normalizing Log Fields</h3><p>Here’s where things get powerful. Logs from Linux, Windows, firewalls, and Wazuh all have different field names for the same thing.</p><p>For this, we would have to make two dashboards (one for the Linux network and one for the Windows network) and two alerts.We ought to standardize our log fields in order to streamline this procedure. No matter the log source (Linux, Windows, MacOS, etc.), common information like destination IP addresses should always have the same field name.</p><p>Example:</p><ul><li>A Linux Sysmon log may use data_eventdata_sourceIp</li><li>A Windows Sysmon log may use data_win_eventdata_sourceIp</li></ul><p>Both mean the <strong>source IP</strong>, but if we don’t standardize them, queries and dashboards become a nightmare.</p><h4>Fix: Create Normalization Rules in Pipelines</h4><p>Select System -&gt; Pipelines -&gt; Manage rules -&gt; Create Rules</p><h4>Linux Sysmon Event 3 Normalization:</h4><pre>rule &quot;LINUX SYSMON EVENT 3 LOG NORMALIZATION&quot;<br>when<br>    $message.rule_group1 == &quot;linux&quot; AND $message.rule_group3 == &quot;sysmon_event3&quot;<br>then<br>    set_field(&quot;process_image&quot;, $message.data_eventdata_image);<br>    set_field(&quot;process_id&quot;, $message.data_eventdata_processId);<br>    set_field(&quot;protocol&quot;, $message.data_eventdata_protocol);<br>    set_field(&quot;user_name&quot;, $message.data_eventdata_user);<br>    set_field(&quot;dst_ip&quot;, $message.data_eventdata_DestinationIp);<br>    set_field(&quot;dst_port&quot;, $message.data_eventdata_destinationPort);<br>    set_field(&quot;src_ip&quot;, $message.data_eventdata_sourceIp);<br>    set_field(&quot;src_port&quot;, $message.data_eventdata_sourcePort);</pre><h4>Windows Sysmon Event 3 Normalization</h4><pre>rule &quot;WINDOWS SYSMON EVENT 3 LOG NORMALIZATION&quot;<br>when<br>    $message.rule_group1 == &quot;windows&quot; AND $message.rule_group3 == &quot;sysmon_event3&quot;<br>then<br>    set_field(&quot;process_image&quot;, $message.data_win_eventdata_image);<br>    set_field(&quot;process_id&quot;, $message.data_win_eventdata_processId);<br>    set_field(&quot;protocol&quot;, $message.data_win_eventdata_protocol);<br>    set_field(&quot;user_name&quot;, $message.data_win_eventdata_user);<br>    set_field(&quot;dst_ip&quot;, $message.data_win_eventdata_destinationIp);<br>    set_field(&quot;dst_port&quot;, $message.data_win_eventdata_destinationPort);<br>    set_field(&quot;src_ip&quot;, $message.data_win_eventdata_sourceIp);<br>    set_field(&quot;src_port&quot;, $message.data_win_eventdata_sourcePort);<br>end</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8yFQDScjFcoAJFKB9gVKQ.png" /><figcaption>Creating Rules for normalizing wazuh logs</figcaption></figure><p>Now, both Linux and Windows logs share a <strong>universal field set</strong> (src_ip, dst_ip, process_id, etc.).</p><p>Note: This is for Sysmon event Normalization. Likewise, you can make it according to your needs.</p><h3>Step 5: Filtering Noise with Pipelines</h3><p>Not every alert deserves attention. Low-level alerts often flood dashboards and overwhelm analysts.</p><p>Rule to drop alerts with severity &lt; 7:</p><pre>rule &quot;drop_low_level_alerts&quot;<br>when<br>  has_field(&quot;rule.level&quot;) &amp;&amp; to_long($message.rule_level) &lt; 7<br>then<br>  drop_message();<br>end</pre><p>This immediately reduces noise in your SIEM pipeline.</p><h3>Step 6: Building Pipelines</h3><p>Graylog Pipelines allow you to chain these rules in <strong>stages</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-QZw7oUjRl0opfZ-Oj-Vw.png" /><figcaption>Creating Pipeline</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WU0FBFIBNjgjUPkTgwD8dA.png" /><figcaption>Connect Pipeline to a Stream</figcaption></figure><ul><li>A <strong>pipeline</strong> is made up of <strong>stages</strong> (Stage 0, Stage 1, Stage 2 …).</li><li>Each stage can contain <strong>one or more rules</strong>.</li><li>Messages flow through the stages in order.</li><li>If a rule matches, its then part executes (e.g. set fields, drop message, route).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m5xPn7_uvhGpP1Ae285gmA.png" /><figcaption>Add a stage</figcaption></figure><ul><li><strong>Stage 0 (Noise Filtering)</strong> → Drop low-level alerts</li><li><strong>Stage 1 (Normalization)</strong> → Standardize fields across OS and log types</li><li><strong>Stage 2 (Enrichment)</strong> → Add GeoIP, threat intel, or MISP lookups</li></ul><p>Logs flow through each stage in order, becoming <strong>clean, normalized, and enriched security events</strong>.</p><h3>Conclusion:</h3><p>Parsing, normalizing, and streamlining logs in Graylog transforms your SIEM from a noisy log collector into a true <strong>security intelligence platform</strong>.</p><p>By introducing <strong>extractors, streams, and pipelines</strong>, we:</p><ul><li>Turn raw Wazuh alerts into structured data</li><li>Normalize fields across Linux, Windows, and network logs</li><li>Filter out noise to highlight only meaningful alerts</li><li>Store everything cleanly in dedicated indexes</li></ul><p>The result is a <strong>production-grade SIEM pipeline</strong> where Wazuh focuses on detection, Graylog handles parsing + enrichment, Elasticsearch stores everything, and Grafana provides rich visualizations.</p><p>This layered approach ensures that security teams have <strong>consistent, searchable, and actionable data</strong> — making investigations faster, alerts smarter, and operations more scalable.</p><blockquote><strong>Arfan Abid</strong></blockquote><blockquote><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/arfan-abid-152217270/">https://www.linkedin.com/in/arfan-abid-152217270/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a722b7e5d76f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring Wazuh to Send Logs to Graylog for Normalization (Setting up Filebeat)]]></title>
            <link>https://medium.com/@ArfanAbid/configuring-wazuh-to-send-logs-to-graylog-for-normalization-setting-up-filebeat-563db817a030?source=rss-a6f9ac00ac30------2</link>
            <guid isPermaLink="false">https://medium.com/p/563db817a030</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[graylog]]></category>
            <dc:creator><![CDATA[Arfan Abid]]></dc:creator>
            <pubDate>Wed, 01 Oct 2025 18:42:02 GMT</pubDate>
            <atom:updated>2025-10-01T18:50:58.140Z</atom:updated>
            <content:encoded><![CDATA[<h3>Integrating Wazuh Alerts with Graylog Pipelines for Normalization</h3><p>In the previous steps, we successfully built a <strong>common architecture for Wazuh and Graylog</strong> by using a shared OpenSearch/Elasticsearch backend. With that foundation ready, the next task is to configure <strong>Filebeat</strong> so that Wazuh alerts are sent into Graylog first, instead of going directly to OpenSearch.</p><h3>How Wazuh Handles Logs and Alerts:</h3><p>Let’s first understand how the log flow works inside Wazuh:</p><ol><li><strong>Agents Send Logs → Manager</strong><br> Wazuh agents continuously forward logs to the Wazuh Manager.</li><li><strong>Raw Logs Storage</strong><br> These incoming logs are written to: /var/ossec/logs/alerts/arc.json</li><li><strong>Rule Matching and Decoding</strong><br> The Wazuh Manager parses these logs and matches them against its detection rules.</li></ol><ul><li>If a rule is triggered, the manager generates an <strong>alert</strong>.</li><li>This is the core SIEM functionality: detecting suspicious activity from raw log data.</li></ul><p>4.<strong> Alert Storage</strong><br> All generated alerts are stored here:/var/ossec/logs/alerts/alerts.json</p><p>5.<strong> Filebeat Shipping</strong><br> Filebeat runs on the Wazuh node and continuously monitors alerts.json.</p><ul><li>By default, Filebeat forwards these alerts directly to OpenSearch (port 9200) where they are indexed.</li></ul><h3>Why Change This Flow?</h3><p>In our integrated setup, we want <strong>Graylog</strong> to sit in between Wazuh and OpenSearch:</p><ul><li>Instead of Filebeat → OpenSearch</li><li>We configure <strong>Filebeat → Graylog → OpenSearch</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IP2i5Y6h5YpNVApISrQwQg.png" /><figcaption>Architecture Workflow</figcaption></figure><p>This way:</p><ul><li>Graylog receives the alerts first.</li><li>We can apply <strong>pipelines and normalization rules</strong> inside Graylog (e.g., enrich fields, map to ECS format, drop noise).</li><li>Finally, Graylog forwards the normalized alerts to the <strong>shared Wazuh Indexer (OpenSearch)</strong> where they are stored.</li></ul><p>We’ll configure <strong>Filebeat to stop sending alerts directly to OpenSearch</strong> and instead forward them to <strong>Graylog</strong>. From there, we’ll set up <strong>pipelines for normalization</strong> so our alerts are consistent and enriched before being indexed.</p><h3>Configuring Filebeat to Forward Wazuh Alerts into Graylog</h3><h4>Step 1: Verify Alerts are Being Generated</h4><pre>sudo docker ps -a<br>sudo docker exec -it multi-node_wazuh.master_1 bash<br>tail -f /var/ossec/logs/alerts/alerts.json<br><br># If you see alerts scrolling by, it means Wazuh rules are firing correctly.</pre><h4>Step 2: Inspect Current Filebeat Configuration</h4><p>Inside the Wazuh master container:</p><pre>sudo docker exec -it multi-node_wazuh.master_1 bash<br>cat /etc/filebeat/filebeat.yml</pre><p>By default, it looks something like this:</p><pre># Wazuh - Filebeat configuration file<br>filebeat.modules:<br>  - module: wazuh<br>    alerts:<br>      enabled: true<br>    archives:<br>      enabled: false<br><br>setup.template.json.enabled: true<br>setup.template.overwrite: true<br>setup.template.json.path: &#39;/etc/filebeat/wazuh-template.json&#39;<br>setup.template.json.name: &#39;wazuh&#39;<br>setup.ilm.enabled: false<br>output.elasticsearch:<br>  hosts: [&#39;https://192.168.18.100:9200&#39;]<br>  username: &#39;admin&#39;<br>  password: &#39;SecretPassword&#39;<br>  ssl.verification_mode: &#39;full&#39;<br>  ssl.certificate_authorities: [&#39;/etc/ssl/root-ca.pem&#39;]<br>  ssl.certificate: &#39;/etc/ssl/filebeat.pem&#39;<br>  ssl.key: &#39;/etc/ssl/filebeat.key&#39;<br><br>logging.metrics.enabled: false<br><br>seccomp:<br>  default_action: allow<br>  syscalls:<br>  - action: allow<br>    names:<br>    - rseq</pre><h4>Step 3: Copy Config Out of the Container:</h4><p>To make permanent changes, we need to mount the Filebeat config from the host into the container. First, copy the config out:</p><pre>sudo docker cp multi-node_wazuh.master_1:/etc/filebeat ./config/filebeat</pre><p>Now you have a copy on the host at:</p><pre>./config/filebeat/filebeat.yml</pre><h4>Step 4: Update Filebeat to Send Logs to Graylog:</h4><p>Open ./config/filebeat/filebeat.yml inside host machine and update the output section:</p><pre># Wazuh - Filebeat configuration file<br>filebeat.modules:<br>  - module: wazuh<br>    alerts:<br>      enabled: true<br>    archives:<br>      enabled: false<br><br>setup.template.json.enabled: true<br>setup.template.overwrite: true<br>setup.template.json.path: &#39;/etc/filebeat/wazuh-template.json&#39;<br>setup.template.json.name: &#39;wazuh&#39;<br>setup.ilm.enabled: false<br># Change from Elasticsearch output to Graylog (Logstash input)<br>output.logstash:<br>  hosts: [&quot;192.168.18.104:5044&quot;] # set according to your graylog ip and port for input you created inside graylog<br><br>logging.metrics.enabled: false<br><br>seccomp:<br>  default_action: allow<br>  syscalls:<br>  - action: allow<br>    names:<br>    - rseq</pre><p>Now Filebeat will forward alerts to Graylog’s <strong>Beats/Logstash input</strong> (port 5044).</p><h4>Step 5: Mount the Config into the Container</h4><p>Edit your Wazuh container’s docker-compose.yml (or Docker run command) so Filebeat uses the external config. Do this for both <strong>master</strong> and <strong>worker</strong> containers:</p><pre>volumes:<br>  - ./config/filebeat:/etc/filebeat</pre><p>At the same time, remove any environment: variables that define the default output.elasticsearch (since we’re overriding it with our mounted config).</p><p>Wazuh Docker-compose looks like this:</p><pre># Wazuh App Copyright (C) 2017, Wazuh Inc. (License GPLv2)<br>version: &#39;3.7&#39;<br><br>services:<br>  wazuh.master:<br>    image: wazuh/wazuh-manager:4.12.0<br>    hostname: wazuh.master<br>    restart: always<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>      nofile:<br>        soft: 655360<br>        hard: 655360<br>    ports:<br>      - &quot;1515:1515&quot;<br>      - &quot;514:514/udp&quot;<br>      - &quot;55000:55000&quot;<br>    environment:<br>      - API_USERNAME=wazuh-wui<br>      - API_PASSWORD=MyS3cr37P450r.*-<br>    volumes:<br>      - master-wazuh-api-configuration:/var/ossec/api/configuration<br>      - master-wazuh-etc:/var/ossec/etc<br>      - master-wazuh-logs:/var/ossec/logs<br>      - master-wazuh-queue:/var/ossec/queue<br>      - master-wazuh-var-multigroups:/var/ossec/var/multigroups<br>      - master-wazuh-integrations:/var/ossec/integrations<br>      - master-wazuh-active-response:/var/ossec/active-response/bin<br>      - master-wazuh-agentless:/var/ossec/agentless<br>      - master-wazuh-wodles:/var/ossec/wodles<br>      - ./config/filebeat:/etc/filebeat<br>      - master-filebeat-var:/var/lib/filebeat<br>      - ./config/wazuh_indexer_ssl_certs/root-ca-manager.pem:/etc/ssl/root-ca.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.master.pem:/etc/ssl/filebeat.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.master-key.pem:/etc/ssl/filebeat.key<br>      - ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf<br><br>  wazuh.worker:<br>    image: wazuh/wazuh-manager:4.12.0<br>    hostname: wazuh.worker<br>    restart: always<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>      nofile:<br>        soft: 655360<br>        hard: 655360<br><br>    volumes:<br>      - worker-wazuh-api-configuration:/var/ossec/api/configuration<br>      - worker-wazuh-etc:/var/ossec/etc<br>      - worker-wazuh-logs:/var/ossec/logs<br>      - worker-wazuh-queue:/var/ossec/queue<br>      - worker-wazuh-var-multigroups:/var/ossec/var/multigroups<br>      - worker-wazuh-integrations:/var/ossec/integrations<br>      - worker-wazuh-active-response:/var/ossec/active-response/bin<br>      - worker-wazuh-agentless:/var/ossec/agentless<br>      - worker-wazuh-wodles:/var/ossec/wodles<br>      - ./config/filebeat:/etc/filebeat<br>      - worker-filebeat-var:/var/lib/filebeat<br>      - ./config/wazuh_indexer_ssl_certs/root-ca-manager.pem:/etc/ssl/root-ca.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.worker.pem:/etc/ssl/filebeat.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.worker-key.pem:/etc/ssl/filebeat.key<br>      - ./config/wazuh_cluster/wazuh_worker.conf:/wazuh-config-mount/etc/ossec.conf<br><br>  wazuh1.indexer:<br>    image: wazuh/wazuh-indexer:4.12.0<br>    hostname: wazuh1.indexer<br>    restart: always<br>    ports:<br>      - &quot;9200:9200&quot;<br>    environment:<br>      - &quot;OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g&quot;<br>      - &quot;bootstrap.memory_lock=true&quot;<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>      nofile:<br>        soft: 65536<br>        hard: 65536<br>    volumes:<br>      - wazuh-indexer-data-1:/var/lib/wazuh-indexer<br>      - ./config/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-indexer/certs/root-ca.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh1.indexer-key.pem:/usr/share/wazuh-indexer/certs/wazuh1.indexer.key<br>      - ./config/wazuh_indexer_ssl_certs/wazuh1.indexer.pem:/usr/share/wazuh-indexer/certs/wazuh1.indexer.pem<br>      - ./config/wazuh_indexer_ssl_certs/admin.pem:/usr/share/wazuh-indexer/certs/admin.pem<br>      - ./config/wazuh_indexer_ssl_certs/admin-key.pem:/usr/share/wazuh-indexer/certs/admin-key.pem<br>      - ./config/wazuh_indexer/wazuh1.indexer.yml:/usr/share/wazuh-indexer/opensearch.yml<br>      - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml<br><br>  wazuh2.indexer:<br>    image: wazuh/wazuh-indexer:4.12.0<br>    hostname: wazuh2.indexer<br>    restart: always<br>    environment:<br>      - &quot;OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g&quot;<br>      - &quot;bootstrap.memory_lock=true&quot;<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>      nofile:<br>        soft: 65536<br>        hard: 65536<br>    volumes:<br>      - wazuh-indexer-data-2:/var/lib/wazuh-indexer<br>      - ./config/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-indexer/certs/root-ca.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh2.indexer-key.pem:/usr/share/wazuh-indexer/certs/wazuh2.indexer.key<br>      - ./config/wazuh_indexer_ssl_certs/wazuh2.indexer.pem:/usr/share/wazuh-indexer/certs/wazuh2.indexer.pem<br>      - ./config/wazuh_indexer/wazuh2.indexer.yml:/usr/share/wazuh-indexer/opensearch.yml<br>      - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml<br><br>  wazuh3.indexer:<br>    image: wazuh/wazuh-indexer:4.12.0<br>    hostname: wazuh3.indexer<br>    restart: always<br>    environment:<br>      - &quot;OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g&quot;<br>      - &quot;bootstrap.memory_lock=true&quot;<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>      nofile:<br>        soft: 65536<br>        hard: 65536<br>    volumes:<br>      - wazuh-indexer-data-3:/var/lib/wazuh-indexer<br>      - ./config/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-indexer/certs/root-ca.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh3.indexer-key.pem:/usr/share/wazuh-indexer/certs/wazuh3.indexer.key<br>      - ./config/wazuh_indexer_ssl_certs/wazuh3.indexer.pem:/usr/share/wazuh-indexer/certs/wazuh3.indexer.pem<br>      - ./config/wazuh_indexer/wazuh3.indexer.yml:/usr/share/wazuh-indexer/opensearch.yml<br>      - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml<br><br>  wazuh.dashboard:<br>    image: wazuh/wazuh-dashboard:4.12.0<br>    hostname: wazuh.dashboard<br>    restart: always<br>    ports:<br>      - 443:5601<br>    environment:<br>      - OPENSEARCH_HOSTS=&quot;https://192.168.18.100:9200&quot;<br>      - WAZUH_API_URL=&quot;https://wazuh.master&quot;<br>      - API_USERNAME=wazuh-wui<br>      - API_PASSWORD=MyS3cr37P450r.*-<br>      - DASHBOARD_USERNAME=kibanaserver<br>      - DASHBOARD_PASSWORD=kibanaserver<br>    volumes:<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.dashboard.pem:/usr/share/wazuh-dashboard/certs/wazuh-dashboard.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.dashboard-key.pem:/usr/share/wazuh-dashboard/certs/wazuh-dashboard-key.pem<br>      - ./config/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-dashboard/certs/root-ca.pem<br>      - ./config/wazuh_dashboard/opensearch_dashboards.yml:/usr/share/wazuh-dashboard/config/opensearch_dashboards.yml<br>      - ./config/wazuh_dashboard/wazuh.yml:/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml<br>      - wazuh-dashboard-config:/usr/share/wazuh-dashboard/data/wazuh/config<br>      - wazuh-dashboard-custom:/usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom<br>    depends_on:<br>      - wazuh1.indexer<br>    links:<br>      - wazuh1.indexer:wazuh1.indexer<br>      - wazuh.master:wazuh.master<br><br>  nginx:<br>    image: nginx:stable<br>    hostname: nginx<br>    restart: always<br>    ports:<br>      - &quot;1514:1514&quot;<br>    depends_on:<br>      - wazuh.master<br>      - wazuh.worker<br>      - wazuh.dashboard<br>    links:<br>      - wazuh.master:wazuh.master<br>      - wazuh.worker:wazuh.worker<br>      - wazuh.dashboard:wazuh.dashboard<br>    volumes:<br>      - ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro<br><br>volumes:<br>  master-wazuh-api-configuration:<br>  master-wazuh-etc:<br>  master-wazuh-logs:<br>  master-wazuh-queue:<br>  master-wazuh-var-multigroups:<br>  master-wazuh-integrations:<br>  master-wazuh-active-response:<br>  master-wazuh-agentless:<br>  master-wazuh-wodles:<br>  master-filebeat-var:<br>  worker-wazuh-api-configuration:<br>  worker-wazuh-etc:<br>  worker-wazuh-logs:<br>  worker-wazuh-queue:<br>  worker-wazuh-var-multigroups:<br>  worker-wazuh-integrations:<br>  worker-wazuh-active-response:<br>  worker-wazuh-agentless:<br>  worker-wazuh-wodles:<br>  worker-filebeat-var:<br>  wazuh-indexer-data-1:<br>  wazuh-indexer-data-2:<br>  wazuh-indexer-data-3:<br>  wazuh-dashboard-config:<br>  wazuh-dashboard-custom:</pre><h4>Step 6: Restart Wazuh:</h4><pre>sudo docker-compose down<br>sudo docker-compose up -d</pre><h4>Step 7: Configure Graylog Input for Wazuh Alerts:</h4><p>Now that Filebeat is shipping alerts to Graylog on port <strong>5044</strong>, we need to make sure Graylog is listening on that port. This is done by creating a <strong>Beats/Logstash input</strong> in the Graylog web UI.</p><p>Go to <strong>System → Inputs</strong>, launch a new <strong>Beats/Logstash input</strong>, and set it to:</p><ul><li><strong>Title:</strong> Wazuh Alerts</li><li><strong>Bind Address:</strong> 0.0.0.0</li><li><strong>Port:</strong> 5044</li></ul><p>Save the input and ensure it’s running (green dot).<br>To double-check that Graylog is actually listening on port 5044You can use:</p><pre>netstat -ltpnd   # list all listening ports<br>telnet &lt;graylog_ip&gt; 5044   # test connectivity from Filebeat host</pre><pre>sudo docker logs -f multi-node_wazuh.master_1 | grep filebeat <br># For checking filebeat logs </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NTAywcorcRfMxsmpzMAWOw.png" /></figure><p>Adds a static field log_type: wazuh so we can filter or query only Wazuh logs.</p><p>Check Alerts coming:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osyhgdOtkGthXX1W2cB8Jw.png" /><figcaption>Logs are comming</figcaption></figure><p><strong><em>Now, Wazuh → Filebeat → Graylog → OpenSearch .<br></em></strong>Okay, until now, our logs are coming in Graylog successfully :)</p><h3>Conclusion:</h3><p>In this step, we configured <strong>Filebeat</strong> to route Wazuh alerts into <strong>Graylog</strong>, rather than sending them directly to OpenSearch/Elasticsearch. This makes Graylog the <strong>central hub</strong> for all incoming logs, where it can parse, enrich, and normalize data before storage.</p><p>With this configuration:</p><ul><li>All Wazuh alerts successfully flow into Graylog</li><li>We’ve established a <strong>common backend pipeline</strong> for security logs</li><li>The architecture is now ready for the <strong>next step — parsing, normalization, and enrichment via Graylog pipelines</strong></li></ul><p>This foundation ensures that our SIEM is not only centralized but also prepared for deeper <strong>log intelligence and advanced security analytics</strong>.</p><blockquote><strong>Arfan Abid</strong></blockquote><blockquote><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/arfan-abid-152217270/">https://www.linkedin.com/in/arfan-abid-152217270/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=563db817a030" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wazuh–Graylog Architecture: Normalizing & Enriching Security Logs ️]]></title>
            <link>https://medium.com/@ArfanAbid/wazuh-graylog-architecture-normalizing-enriching-security-logs-%EF%B8%8F-fe2348e916e8?source=rss-a6f9ac00ac30------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe2348e916e8</guid>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[graylog]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Arfan Abid]]></dc:creator>
            <pubDate>Mon, 29 Sep 2025 17:17:54 GMT</pubDate>
            <atom:updated>2025-09-29T17:17:54.430Z</atom:updated>
            <content:encoded><![CDATA[<p>When we deploy <strong>Wazuh</strong> for log collection and threat detection, we also need a strong way to normalize, enrich, and manage the incoming logs. This is where <strong>Graylog</strong> comes in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQMwg8Q5yXL6lNrcYWgyvw.png" /><figcaption>Architecture Diagram</figcaption></figure><p>Think of <strong>Graylog as the middleman</strong> between your log sources and your backend storage (Wazuh Indexer/Elasticsearch/OpenSearch). It receives logs, cleans them up, adds intelligence, and then sends them off for storage and analysis.</p><h3>Building a <strong>common backend database</strong></h3><p>In any <strong>production-grade SIEM solution</strong>, building a <strong>common backend database</strong> is crucial. Rather than storing Wazuh logs, firewall logs, and cloud logs separately, we need a <strong>single, scalable indexer (Elasticsearch/OpenSearch)</strong> that holds <em>all</em> security data in one place.</p><p>In this architecture, we achieve that by sending logs through <strong>Graylog</strong>, which acts as the middleman:</p><ul><li>All logs (Wazuh, firewalls, AWS etc.) are first ingested by Graylog.</li><li>Graylog then <strong>normalizes, parses, and enriches</strong> the data.</li><li>Finally, the cleaned and structured logs are stored in the <strong>common Elasticsearch indexer</strong>.</li></ul><p>This way, no matter the log source, everything ends up in one consistent, enriched database that powers the SIEM.</p><h3>Why Graylog Matters in a Wazuh SIEM Architecture</h3><p>By default, Wazuh collects logs from agents and syslog sources, but without proper normalization and enrichment, those logs can be messy and inconsistent. Graylog solves this problem.</p><h3>Here’s what Graylog adds to the stack:</h3><ul><li><strong>Log ingestion flexibility</strong> → Can accept logs from Wazuh Manager, firewalls, AWS, endpoints, or any device/service with syslog forwarding.</li><li><strong>Supports multiple input types</strong> → CloudTrail, Beats, Syslog, GELF, plaintext, and more.</li><li><strong>Index management</strong> → Helps rotate and manage indices to avoid bloating disk usage with old logs.</li><li><strong>Normalization</strong> → Ensures fields from different log sources map to a common format (e.g., source_ip_ipv4 → src_ip).</li><li><strong>Enrichment</strong> → Can integrate with external threat feeds (MISP, VirusTotal, etc.) to tag logs with known malicious IPs, domains, or hashes.</li></ul><p>In short: <strong>Graylog makes logs cleaner, smarter, and easier to analyze.</strong></p><h3>Where Graylog Fits in the Architecture</h3><p>In this setup:</p><ol><li><strong>Firewalls, endpoints, AWS services, and Wazuh agents</strong> send logs.</li><li><strong>Wazuh Manager</strong> forwards its logs to <strong>Graylog</strong>.</li><li><strong>Graylog normalizes and enriches</strong> all logs.</li><li>The processed logs are then sent to the <strong>Wazuh Indexer</strong> (Elasticsearch/OpenSearch).</li><li>Finally, the data can be visualized in dashboards.</li></ol><p>This makes <strong>Graylog the middle layer</strong> between raw logs and your SIEM storage, ensuring everything is structured and enriched before analysis.</p><h3>The “. to _” Error in Graylog</h3><p>While using Graylog, you may notice an issue:</p><ul><li>Graylog automatically replaces dots (.) in field names with underscores (_).</li><li>This can break compatibility with the <strong>Wazuh Dashboard</strong>, causing crashes since the dashboard expects fields with dots.</li></ul><h4><strong>Solution:</strong></h4><ul><li>This is expected behavior.</li><li>Instead of relying on the Wazuh Dashboard for visualization, we use <strong>Grafana</strong>. Grafana works perfectly with the normalized/enriched data from Graylog.</li><li>The Wazuh Dashboard is still valuable — but mainly for tasks like managing rules, agent groups, and basic monitoring. For visualization and advanced queries, <strong>Grafana is the better choice</strong>.</li></ul><h4>Future Outlook</h4><p>There is already a <strong>pull request (PR)</strong> in Graylog to address this behavior. If it gets merged, future versions may handle dots in field names more gracefully. But for now, we design around this limitation and rely on Grafana for dashboards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osyhgdOtkGthXX1W2cB8Jw.png" /><figcaption>Successfully Configured Graylog and receiving input</figcaption></figure><h3>Conclusion:</h3><p>By integrating <strong>Graylog</strong> with <strong>Wazuh</strong>, we:</p><ul><li>Gain structured, enriched, and normalized logs.</li><li>Ensure consistent dashboards and alerts.</li><li>Offload log parsing and normalization to Graylog while Wazuh focuses on detection and response.</li><li>Avoid dashboard crashes by moving the visualization to Grafana.</li></ul><p>If you’re ingesting firewall logs, endpoint logs, or cloud logs, <strong>Graylog is your go-to middleman</strong> for clean, enriched data. Combined with Wazuh, Indexer, and Grafana, it builds a reliable open-source SIEM architecture.</p><blockquote><strong>Arfan Abid</strong></blockquote><blockquote><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/arfan-abid-152217270/">https://www.linkedin.com/in/arfan-abid-152217270/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe2348e916e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sysmon Config and Sending Logs to Wazuh: Enhancing Endpoint Visibility]]></title>
            <link>https://medium.com/@ArfanAbid/sysmon-config-and-sending-logs-to-wazuh-enhancing-endpoint-visibility-ee2ef3ad5e96?source=rss-a6f9ac00ac30------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee2ef3ad5e96</guid>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[sysmon]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[log-analysis-sysmon]]></category>
            <dc:creator><![CDATA[Arfan Abid]]></dc:creator>
            <pubDate>Thu, 18 Sep 2025 14:36:15 GMT</pubDate>
            <atom:updated>2025-09-18T14:36:15.984Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*XBNsoFlilKk2B0Duyot8mA.png" /><figcaption>Architecture Diagram</figcaption></figure><p>By default, the <strong>Wazuh Agent</strong> collects Windows and system logs. While this provides a basic level of monitoring, it does not deliver enough visibility into endpoint activity to effectively detect modern threats. To build a strong EDR solution, we need to go beyond standard logs and capture details such as <strong>process executions, command-line activity, and network connections</strong>.</p><p>The strength of Wazuh lies in its flexibility. We can extend its capabilities by integrating additional tools like <strong>Sysmon</strong> and <strong>Packetbeat</strong>, which provide deeper insights into what is happening on our endpoints. Once these tools are deployed, we simply configure the Wazuh Agent to forward their logs, giving analysts a richer data set to work with for threat detection and incident response.</p><h3>Why Sysmon?</h3><p>Sysmon, part of Microsoft’s Sysinternals Suite, is a lightweight system service and driver that monitors and logs critical system events. With the right configuration, Sysmon records things like:</p><ul><li>Process creation (with hashes and parent/child relationships)</li><li>Command-line arguments</li><li>Network connections</li><li>File changes</li><li>Registry modifications</li><li>Driver and DLL loading</li></ul><h3>Installation:</h3><h4>Step 1: Install Sysmon:</h4><p>Download Sysmon from Microsoft Sysinternals:<br><a href="https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon">https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon</a><br>(In this example, we’re using <strong>Sysmon v15.15</strong>.)</p><p>Extract the downloaded archive into a folder, e.g.:</p><pre>C:\Users\arfan\Downloads\Sysmon</pre><h4>Step 2: Download a Sysmon Configuration:</h4><p>Sysmon requires an XML configuration file to define <strong>what events to log</strong>. Instead of starting from scratch, we can use a well-maintained community config.</p><p>Download Olaf Hartong’s <strong>sysmon-modular</strong> config:<br><a href="https://github.com/olafhartong/sysmon-modular/blob/master/sysmonconfig.xml">https://github.com/olafhartong/sysmon-modular/blob/master/sysmonconfig.xml</a></p><p>Save this sysmonconfig.xml into the same folder as Sysmon.</p><h4>Step 3: Install Sysmon with Config</h4><p>Open <strong>PowerShell as Administrator</strong> and navigate to the Sysmon folder:</p><pre>C:\Users\arfan\Downloads\Sysmon</pre><p>Now install Sysmon with the config file:</p><pre>.\Sysmon64.exe -i .\sysmonconfig.xml</pre><p>Click <strong>Agree</strong> when prompted.</p><p>At this point, Sysmon is running as a service. You can verify it under:<br><strong>Services → Sysmon (System Monitor)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*NJsek1l_KBVur7OmApeMrA.png" /><figcaption>Sysmon Service Running Successfully</figcaption></figure><p>You should also start seeing logs here:</p><pre>Event Viewer → Applications and Services Logs → Microsoft → Windows → Sysmon → Operational</pre><blockquote>Next, we need Wazuh to collect Sysmon’s event logs.</blockquote><h4>Step 4: Configure Wazuh Agent to Collect Sysmon Logs:</h4><ol><li>Open <strong>Notepad as Administrator</strong>.</li><li>Edit the Wazuh agent configuration file (replace path if different):</li></ol><p>C:\Program Files (x86)\ossec-agent\ossec.conf</p><p>3. Add the following block inside the &lt;ossec_config&gt; section:</p><pre>&lt;localfile&gt;<br>  &lt;location&gt;Microsoft-Windows-Sysmon/Operational&lt;/location&gt;<br>  &lt;log_format&gt;eventchannel&lt;/log_format&gt;<br>&lt;/localfile&gt;</pre><p>⚠️ Important: The &lt;location&gt; value must match the exact event channel path from Event Viewer → Sysmon → Properties.</p><p>4. Save the file.</p><p>5. Restart the Wazuh agent service:</p><ul><li>Services → Wazuh Agent → Restart</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sXUWYNwAgoq34e_S-1p3FQ.png" /><figcaption>Sysmon Logs sending to Wazuh Successfully</figcaption></figure><h3>Extending Wazuh on Linux</h3><p>While Sysmon enhances endpoint monitoring on Windows, Linux endpoints have their own options for deeper visibility:</p><ul><li><strong>Packetbeat (Elastic Beat):</strong><br>Useful for <strong>network monitoring</strong> on Linux. It captures traffic data such as DNS queries, HTTP requests, and SQL queries, giving analysts visibility into communication patterns and potential exfiltration attempts.<br> <em>(On Windows, Sysmon already captures network connections, so Packetbeat is most valuable for Linux.)</em></li><li><strong>Sysmon for Linux:</strong><br>Microsoft now officially provides a <strong>Linux version of Sysmon</strong>. Although still developing, it offers similar functionality to its Windows counterpart by monitoring <strong>process creation, file changes, and network connections</strong>. Logs are sent to the Wazuh Agent just like on Windows, providing consistent visibility across platforms.</li></ul><p>By combining these tools with the Wazuh Agent, SOC analysts can achieve the same level of insight on Linux endpoints as they do on Windows.</p><h3>Conclusion</h3><p>By combining Sysmon with Wazuh, we unlock powerful endpoint visibility.</p><ul><li><strong>Sysmon</strong> collects detailed forensic-level event data.</li><li><strong>Wazuh Agent</strong> forwards this data into your SIEM/EDR pipeline.</li></ul><p>The <strong>Wazuh Agent</strong> is a highly capable EDR solution, and its true strength lies in its flexibility. By extending it with services like <strong>Sysmon</strong> and <strong>Packetbeat</strong>, SOC analysts gain deep visibility into endpoint activity. Beyond endpoints, Wazuh can also aggregate logs from applications such as <strong>Nginx, ModSecurity, and MySQL</strong>, creating a unified view of both system and application behavior. This expanded visibility gives security teams the comprehensive insight they need to detect, investigate, and respond to threats effectively.</p><blockquote><strong><em>Arfan Abid</em></strong></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/arfan-abid-152217270/"><em>https://www.linkedin.com/in/arfan-abid-152217270/</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee2ef3ad5e96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring Wazuh Agents, Groups, and Vulnerability Detection]]></title>
            <link>https://medium.com/@ArfanAbid/configuring-wazuh-agents-groups-and-vulnerability-detection-7db429836d8b?source=rss-a6f9ac00ac30------2</link>
            <guid isPermaLink="false">https://medium.com/p/7db429836d8b</guid>
            <category><![CDATA[vulnerability-management]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Arfan Abid]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 15:56:47 GMT</pubDate>
            <atom:updated>2025-09-15T15:56:47.106Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WM4nw0zdD_ux_kbVU-_16Q.png" /><figcaption>Agents installed and their status in wazuh</figcaption></figure><p>Wazuh is a powerful open-source security platform for <strong>log analysis, intrusion detection, and endpoint monitoring</strong>. While deploying the Wazuh Manager, Indexer, and Dashboard gives us the core platform, the <strong>real power comes from agents</strong>.</p><blockquote><strong>Previously</strong>, we deployed the full Wazuh stack using <strong>Docker Compose</strong>, including the Manager, Indexer, and Dashboard. If you missed that, check it out here:<em><br></em><a href="https://medium.com/@iffionex111/deploying-wazuh-with-docker-single-multi-node-0c7547c1c47a"><em>https://medium.com/@iffionex111/deploying-wazuh-with-docker-single-multi-node-0c7547c1c47a</em></a></blockquote><p>Agents run on your endpoints (Linux, Windows, macOS) and forward logs and security data to the manager for analysis. By default, agents can register with the manager <strong>without authentication, </strong>but that’s not secure.</p><h3>Setting Up Wazuh Agents with Authentication and Groups</h3><p>By default, Wazuh allows agents to register with the manager <strong>without authentication</strong>, which introduces a potential security risk. Any system that can reach the manager could attempt to register as an agent. For enterprise-grade deployments, this is not acceptable.</p><p>We’ll configure <strong>secure agent authentication</strong> and organize agents into <strong>groups</strong> for centralized management.</p><h4>Step 1: Enable Password-Based Authentication</h4><pre># /var/ossec/etc/ossec.conf<br>&lt;auth&gt;<br>  &lt;use_password&gt;yes&lt;/use_password&gt;<br>&lt;/auth&gt;<br><br># Note: If running wazuh with docker-compose set accordingly<br>wazuh.master:<br>  ...<br>  volumes:<br>    - ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf<br><br># Edit ./config/wazuh_cluster/wazuh_manager.conf</pre><h4>Step 2: Create an Agent Enrollment Password</h4><p>Now, create the authd.pass file that contains your chosen password:</p><p>Replace &lt;YOUR_PASSWORD&gt; with your chosen agent enrollment password and run the following command:</p><pre>echo &quot;&lt;YOUR_PASSWORD&gt;&quot; &gt; /var/ossec/etc/authd.pass</pre><p>Secure the file with proper ownership and permissions:</p><pre>chmod 640 /var/ossec/etc/authd.pass<br>chown root:wazuh /var/ossec/etc/authd.pass</pre><h4>Step 3: Configure Agent Groups Files:</h4><p>One of the most powerful features of Wazuh is the ability to <strong>centrally manage agent configurations</strong>. Instead of configuring every endpoint individually, you can create <strong>groups</strong>, for example, linux, windows, or macos — and assign agents to them.</p><p>Each group contains its own configuration file (agent.conf), which defines things like:</p><ul><li>Which logs to collect</li><li>File Integrity Monitoring (FIM) policies</li><li>Wodles (modules like VirusTotal, AWS, etc.)</li></ul><p><strong>Configure via Dashboard:</strong></p><p>Go to <strong>Wazuh Dashboard</strong></p><ul><li>Navigate to:<br><strong> Agents Management→ Groups</strong></li><li>Create a new group (e.g., linux)</li><li>Add your desired configuration inside the group’s agent.conf</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u7n8Ul-MbdYHDMv1eiIo4w.png" /></figure><p>Linux Group:</p><pre>&lt;agent_config&gt;<br> &lt;client_buffer&gt;<br>  &lt;!-- Agent buffer options --&gt;<br>  &lt;disabled&gt;no&lt;/disabled&gt;<br>  &lt;queue_size&gt;5000&lt;/queue_size&gt;<br>  &lt;events_per_second&gt;500&lt;/events_per_second&gt;<br> &lt;/client_buffer&gt;<br> &lt;!-- Policy monitoring --&gt;<br> &lt;rootcheck&gt;<br>  &lt;disabled&gt;no&lt;/disabled&gt;<br>  &lt;!-- Frequency that rootcheck is executed - every 12 hours --&gt;<br>  &lt;frequency&gt;43200&lt;/frequency&gt;<br>  &lt;rootkit_files&gt;/var/ossec/etc/shared/rootkit_files.txt&lt;/rootkit_files&gt;<br>  &lt;rootkit_trojans&gt;/var/ossec/etc/shared/rootkit_trojans.txt&lt;/rootkit_trojans&gt;<br>  &lt;system_audit&gt;/var/ossec/etc/shared/system_audit_rcl.txt&lt;/system_audit&gt;<br>  &lt;system_audit&gt;/var/ossec/etc/shared/system_audit_ssh.txt&lt;/system_audit&gt;<br>  &lt;system_audit&gt;/var/ossec/etc/shared/cis_debian_linux_rcl.txt&lt;/system_audit&gt;<br>  &lt;skip_nfs&gt;yes&lt;/skip_nfs&gt;<br> &lt;/rootcheck&gt;<br> &lt;wodle name=&quot;open-scap&quot;&gt;<br>  &lt;disabled&gt;yes&lt;/disabled&gt;<br>  &lt;timeout&gt;1800&lt;/timeout&gt;<br>  &lt;interval&gt;1d&lt;/interval&gt;<br>  &lt;scan-on-start&gt;yes&lt;/scan-on-start&gt;<br>  &lt;content type=&quot;xccdf&quot; path=&quot;ssg-debian-8-ds.xml&quot;&gt;<br>   &lt;profile&gt;xccdf_org.ssgproject.content_profile_common&lt;/profile&gt;<br>  &lt;/content&gt;<br>  &lt;content type=&quot;oval&quot; path=&quot;cve-debian-oval.xml&quot;/&gt;<br> &lt;/wodle&gt;<br> &lt;!-- File integrity monitoring --&gt;<br> &lt;syscheck&gt;<br>  &lt;disabled&gt;no&lt;/disabled&gt;<br>  &lt;!-- Frequency that syscheck is executed default every 12 hours --&gt;<br>  &lt;frequency&gt;43200&lt;/frequency&gt;<br>  &lt;scan_on_start&gt;yes&lt;/scan_on_start&gt;<br>  &lt;!-- Directories to check  (perform all possible verifications) --&gt;<br>  &lt;directories&gt;/etc,/usr/bin,/usr/sbin&lt;/directories&gt;<br>  &lt;directories&gt;/bin,/sbin,/boot&lt;/directories&gt;<br>  &lt;!-- Files/directories to ignore --&gt;<br>  &lt;ignore&gt;/etc/mtab&lt;/ignore&gt;<br>  &lt;ignore&gt;/etc/hosts.deny&lt;/ignore&gt;<br>  &lt;ignore&gt;/etc/mail/statistics&lt;/ignore&gt;<br>  &lt;ignore&gt;/etc/random-seed&lt;/ignore&gt;<br>  &lt;ignore&gt;/etc/random.seed&lt;/ignore&gt;<br>  &lt;ignore&gt;/etc/adjtime&lt;/ignore&gt;<br>  &lt;ignore&gt;/etc/httpd/logs&lt;/ignore&gt;<br>  &lt;ignore&gt;/etc/utmpx&lt;/ignore&gt;<br>  &lt;ignore&gt;/etc/wtmpx&lt;/ignore&gt;<br>  &lt;ignore&gt;/etc/cups/certs&lt;/ignore&gt;<br>  &lt;ignore&gt;/etc/dumpdates&lt;/ignore&gt;<br>  &lt;ignore&gt;/etc/svc/volatile&lt;/ignore&gt;<br>  &lt;ignore&gt;/sys/kernel/security&lt;/ignore&gt;<br>  &lt;ignore&gt;/sys/kernel/debug&lt;/ignore&gt;<br>  &lt;!-- File types to ignore --&gt;<br>  &lt;ignore type=&quot;sregex&quot;&gt;.log$|.swp$&lt;/ignore&gt;<br>  &lt;!-- Check the file, but never compute the diff --&gt;<br>  &lt;nodiff&gt;/etc/ssl/private.key&lt;/nodiff&gt;<br>  &lt;skip_nfs&gt;yes&lt;/skip_nfs&gt;<br>  &lt;skip_dev&gt;yes&lt;/skip_dev&gt;<br>  &lt;skip_proc&gt;yes&lt;/skip_proc&gt;<br>  &lt;skip_sys&gt;yes&lt;/skip_sys&gt;<br>  &lt;!-- Nice value for Syscheck process --&gt;<br>  &lt;process_priority&gt;10&lt;/process_priority&gt;<br>  &lt;!-- Maximum output throughput --&gt;<br>  &lt;max_eps&gt;100&lt;/max_eps&gt;<br>  &lt;!-- Database synchronization settings --&gt;<br>  &lt;synchronization&gt;<br>   &lt;enabled&gt;yes&lt;/enabled&gt;<br>   &lt;interval&gt;5m&lt;/interval&gt;<br>   &lt;response_timeout&gt;30&lt;/response_timeout&gt;<br>   &lt;queue_size&gt;16384&lt;/queue_size&gt;<br>   &lt;max_eps&gt;10&lt;/max_eps&gt;<br>  &lt;/synchronization&gt;<br> &lt;/syscheck&gt;<br> &lt;!-- Log analysis --&gt;<br> &lt;localfile&gt;<br>  &lt;log_format&gt;syslog&lt;/log_format&gt;<br>  &lt;location&gt;/var/ossec/logs/active-responses.log&lt;/location&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;log_format&gt;syslog&lt;/log_format&gt;<br>  &lt;location&gt;/var/log/messages&lt;/location&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;log_format&gt;syslog&lt;/log_format&gt;<br>  &lt;location&gt;/var/log/auth.log&lt;/location&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;log_format&gt;syslog&lt;/log_format&gt;<br>  &lt;location&gt;/var/log/syslog&lt;/location&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;log_format&gt;command&lt;/log_format&gt;<br>  &lt;command&gt;df -P&lt;/command&gt;<br>  &lt;frequency&gt;360&lt;/frequency&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;log_format&gt;full_command&lt;/log_format&gt;<br>  &lt;command&gt;netstat -tan |grep LISTEN |grep -v 127.0.0.1 | sort&lt;/command&gt;<br>  &lt;frequency&gt;360&lt;/frequency&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;log_format&gt;full_command&lt;/log_format&gt;<br>  &lt;command&gt;last -n 5&lt;/command&gt;<br>  &lt;frequency&gt;360&lt;/frequency&gt;<br> &lt;/localfile&gt;<br> &lt;wodle name=&quot;osquery&quot;&gt;<br>  &lt;disabled&gt;yes&lt;/disabled&gt;<br>  &lt;run_daemon&gt;yes&lt;/run_daemon&gt;<br>  &lt;log_path&gt;/var/log/osquery/osqueryd.results.log&lt;/log_path&gt;<br>  &lt;config_path&gt;/etc/osquery/osquery.conf&lt;/config_path&gt;<br>  &lt;add_labels&gt;yes&lt;/add_labels&gt;<br> &lt;/wodle&gt;<br> &lt;wodle name=&quot;syscollector&quot;&gt;<br>  &lt;disabled&gt;no&lt;/disabled&gt;<br>  &lt;interval&gt;24h&lt;/interval&gt;<br>  &lt;scan_on_start&gt;yes&lt;/scan_on_start&gt;<br>  &lt;packages&gt;yes&lt;/packages&gt;<br>  &lt;os&gt;yes&lt;/os&gt;<br>  &lt;hotfixes&gt;yes&lt;/hotfixes&gt;<br>  &lt;ports all=&quot;no&quot;&gt;yes&lt;/ports&gt;<br>  &lt;processes&gt;yes&lt;/processes&gt;<br> &lt;/wodle&gt;<br>&lt;/agent_config&gt;</pre><p>Windows Group:</p><pre>&lt;agent_config&gt;<br> &lt;client_buffer&gt;<br>  &lt;!-- Agent buffer options --&gt;<br>  &lt;disabled&gt;no&lt;/disabled&gt;<br>  &lt;queue_size&gt;5000&lt;/queue_size&gt;<br>  &lt;events_per_second&gt;500&lt;/events_per_second&gt;<br> &lt;/client_buffer&gt;<br> &lt;!-- Policy monitoring --&gt;<br> &lt;rootcheck&gt;<br>  &lt;disabled&gt;no&lt;/disabled&gt;<br>  &lt;windows_apps&gt;./shared/win_applications_rcl.txt&lt;/windows_apps&gt;<br>  &lt;windows_malware&gt;./shared/win_malware_rcl.txt&lt;/windows_malware&gt;<br> &lt;/rootcheck&gt;<br> &lt;sca&gt;<br>  &lt;enabled&gt;yes&lt;/enabled&gt;<br>  &lt;scan_on_start&gt;yes&lt;/scan_on_start&gt;<br>  &lt;interval&gt;12h&lt;/interval&gt;<br>  &lt;skip_nfs&gt;yes&lt;/skip_nfs&gt;<br> &lt;/sca&gt;<br> &lt;!-- File integrity monitoring --&gt;<br> &lt;syscheck&gt;<br>  &lt;disabled&gt;no&lt;/disabled&gt;<br>  &lt;!-- Frequency that syscheck is executed default every 12 hours --&gt;<br>  &lt;frequency&gt;43200&lt;/frequency&gt;<br>  &lt;!-- Default files to be monitored. --&gt;<br>  &lt;directories recursion_level=&quot;0&quot; restrict=&quot;regedit.exe$|system.ini$|win.ini$&quot;&gt;%WINDIR%&lt;/directories&gt;<br>  &lt;directories recursion_level=&quot;0&quot; restrict=&quot;at.exe$|attrib.exe$|cacls.exe$|cmd.exe$|eventcreate.exe$|ftp.exe$|lsass.exe$|net.exe$|net1.exe$|netsh.exe$|reg.exe$|regedt32.exe|regsvr32.exe|runas.exe|sc.exe|schtasks.exe|sethc.exe|subst.exe$&quot;&gt;%WINDIR%\SysNative&lt;/directories&gt;<br>  &lt;directories recursion_level=&quot;0&quot;&gt;%WINDIR%\SysNative\drivers\etc&lt;/directories&gt;<br>  &lt;directories recursion_level=&quot;0&quot; restrict=&quot;WMIC.exe$&quot;&gt;%WINDIR%\SysNative\wbem&lt;/directories&gt;<br>  &lt;directories recursion_level=&quot;0&quot; restrict=&quot;powershell.exe$&quot;&gt;%WINDIR%\SysNative\WindowsPowerShell\v1.0&lt;/directories&gt;<br>  &lt;directories recursion_level=&quot;0&quot; restrict=&quot;winrm.vbs$&quot;&gt;%WINDIR%\SysNative&lt;/directories&gt;<br>  &lt;!-- 32-bit programs. --&gt;<br>  &lt;directories recursion_level=&quot;0&quot; restrict=&quot;at.exe$|attrib.exe$|cacls.exe$|cmd.exe$|eventcreate.exe$|ftp.exe$|lsass.exe$|net.exe$|net1.exe$|netsh.exe$|reg.exe$|regedit.exe$|regedt32.exe$|regsvr32.exe$|runas.exe$|sc.exe$|schtasks.exe$|sethc.exe$|subst.exe$&quot;&gt;%WINDIR%\System32&lt;/directories&gt;<br>  &lt;directories recursion_level=&quot;0&quot;&gt;%WINDIR%\System32\drivers\etc&lt;/directories&gt;<br>  &lt;directories recursion_level=&quot;0&quot; restrict=&quot;WMIC.exe$&quot;&gt;%WINDIR%\System32\wbem&lt;/directories&gt;<br>  &lt;directories recursion_level=&quot;0&quot; restrict=&quot;powershell.exe$&quot;&gt;%WINDIR%\System32\WindowsPowerShell\v1.0&lt;/directories&gt;<br>  &lt;directories recursion_level=&quot;0&quot; restrict=&quot;winrm.vbs$&quot;&gt;%WINDIR%\System32&lt;/directories&gt;<br>  &lt;directories realtime=&quot;yes&quot;&gt;%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Startup&lt;/directories&gt;<br>  &lt;ignore&gt;%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Startup\desktop.ini&lt;/ignore&gt;<br>  &lt;ignore type=&quot;sregex&quot;&gt;.log$|.htm$|.jpg$|.png$|.chm$|.pnf$|.evtx$&lt;/ignore&gt;<br>  &lt;!-- Windows registry entries to monitor. --&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\Software\Classes\batfile&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\Software\Classes\cmdfile&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\Software\Classes\comfile&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\Software\Classes\exefile&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\Software\Classes\piffile&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\Software\Classes\AllFilesystemObjects&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\Software\Classes\Directory&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\Software\Classes\Folder&lt;/windows_registry&gt;<br>  &lt;windows_registry arch=&quot;both&quot;&gt;HKEY_LOCAL_MACHINE\Software\Classes\Protocols&lt;/windows_registry&gt;<br>  &lt;windows_registry arch=&quot;both&quot;&gt;HKEY_LOCAL_MACHINE\Software\Policies&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\Security&lt;/windows_registry&gt;<br>  &lt;windows_registry arch=&quot;both&quot;&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\KnownDLLs&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SecurePipeServers\winreg&lt;/windows_registry&gt;<br>  &lt;windows_registry arch=&quot;both&quot;&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run&lt;/windows_registry&gt;<br>  &lt;windows_registry arch=&quot;both&quot;&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce&lt;/windows_registry&gt;<br>  &lt;windows_registry&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx&lt;/windows_registry&gt;<br>  &lt;windows_registry arch=&quot;both&quot;&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\URL&lt;/windows_registry&gt;<br>  &lt;windows_registry arch=&quot;both&quot;&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies&lt;/windows_registry&gt;<br>  &lt;windows_registry arch=&quot;both&quot;&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Windows&lt;/windows_registry&gt;<br>  &lt;windows_registry arch=&quot;both&quot;&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon&lt;/windows_registry&gt;<br>  &lt;windows_registry arch=&quot;both&quot;&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components&lt;/windows_registry&gt;<br>  &lt;!-- Windows registry entries to ignore. --&gt;<br>  &lt;registry_ignore&gt;HKEY_LOCAL_MACHINE\Security\Policy\Secrets&lt;/registry_ignore&gt;<br>  &lt;registry_ignore&gt;HKEY_LOCAL_MACHINE\Security\SAM\Domains\Account\Users&lt;/registry_ignore&gt;<br>  &lt;registry_ignore type=&quot;sregex&quot;&gt;\Enum$&lt;/registry_ignore&gt;<br>  &lt;registry_ignore&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MpsSvc\Parameters\AppCs&lt;/registry_ignore&gt;<br>  &lt;registry_ignore&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MpsSvc\Parameters\PortKeywords\DHCP&lt;/registry_ignore&gt;<br>  &lt;registry_ignore&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MpsSvc\Parameters\PortKeywords\IPTLSIn&lt;/registry_ignore&gt;<br>  &lt;registry_ignore&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MpsSvc\Parameters\PortKeywords\IPTLSOut&lt;/registry_ignore&gt;<br>  &lt;registry_ignore&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MpsSvc\Parameters\PortKeywords\RPC-EPMap&lt;/registry_ignore&gt;<br>  &lt;registry_ignore&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MpsSvc\Parameters\PortKeywords\Teredo&lt;/registry_ignore&gt;<br>  &lt;registry_ignore&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\PolicyAgent\Parameters\Cache&lt;/registry_ignore&gt;<br>  &lt;registry_ignore&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx&lt;/registry_ignore&gt;<br>  &lt;registry_ignore&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ADOVMPPackage\Final&lt;/registry_ignore&gt;<br>  &lt;!-- Frequency for ACL checking (seconds) --&gt;<br>  &lt;windows_audit_interval&gt;60&lt;/windows_audit_interval&gt;<br>  &lt;!-- Nice value for Syscheck module --&gt;<br>  &lt;process_priority&gt;10&lt;/process_priority&gt;<br>  &lt;!-- Maximum output throughput --&gt;<br>  &lt;max_eps&gt;100&lt;/max_eps&gt;<br>  &lt;!-- Database synchronization settings --&gt;<br>  &lt;synchronization&gt;<br>   &lt;enabled&gt;yes&lt;/enabled&gt;<br>   &lt;interval&gt;5m&lt;/interval&gt;<br>   &lt;max_interval&gt;1h&lt;/max_interval&gt;<br>   &lt;max_eps&gt;10&lt;/max_eps&gt;<br>  &lt;/synchronization&gt;<br> &lt;/syscheck&gt;<br> &lt;!-- System inventory --&gt;<br> &lt;wodle name=&quot;syscollector&quot;&gt;<br>  &lt;disabled&gt;no&lt;/disabled&gt;<br>  &lt;interval&gt;1h&lt;/interval&gt;<br>  &lt;scan_on_start&gt;yes&lt;/scan_on_start&gt;<br>  &lt;hardware&gt;yes&lt;/hardware&gt;<br>  &lt;os&gt;yes&lt;/os&gt;<br>  &lt;network&gt;yes&lt;/network&gt;<br>  &lt;packages&gt;yes&lt;/packages&gt;<br>  &lt;ports all=&quot;no&quot;&gt;yes&lt;/ports&gt;<br>  &lt;processes&gt;yes&lt;/processes&gt;<br>  &lt;!-- Database synchronization settings --&gt;<br>  &lt;synchronization&gt;<br>   &lt;max_eps&gt;10&lt;/max_eps&gt;<br>  &lt;/synchronization&gt;<br> &lt;/wodle&gt;<br> &lt;!-- CIS policies evaluation --&gt;<br> &lt;wodle name=&quot;cis-cat&quot;&gt;<br>  &lt;disabled&gt;yes&lt;/disabled&gt;<br>  &lt;timeout&gt;1800&lt;/timeout&gt;<br>  &lt;interval&gt;1d&lt;/interval&gt;<br>  &lt;scan-on-start&gt;yes&lt;/scan-on-start&gt;<br>  &lt;java_path&gt;\\server\jre\bin\java.exe&lt;/java_path&gt;<br>  &lt;ciscat_path&gt;C:\cis-cat&lt;/ciscat_path&gt;<br> &lt;/wodle&gt;<br> &lt;!-- Osquery integration --&gt;<br> &lt;wodle name=&quot;osquery&quot;&gt;<br>  &lt;disabled&gt;yes&lt;/disabled&gt;<br>  &lt;run_daemon&gt;yes&lt;/run_daemon&gt;<br>  &lt;bin_path&gt;C:\Program Files\osquery\osqueryd&lt;/bin_path&gt;<br>  &lt;log_path&gt;C:\Program Files\osquery\log\osqueryd.results.log&lt;/log_path&gt;<br>  &lt;config_path&gt;C:\Program Files\osquery\osquery.conf&lt;/config_path&gt;<br>  &lt;add_labels&gt;yes&lt;/add_labels&gt;<br> &lt;/wodle&gt;<br> &lt;!-- Active response --&gt;<br> &lt;active-response&gt;<br>  &lt;disabled&gt;no&lt;/disabled&gt;<br>  &lt;ca_store&gt;wpk_root.pem&lt;/ca_store&gt;<br>  &lt;ca_verification&gt;yes&lt;/ca_verification&gt;<br> &lt;/active-response&gt;<br> &lt;!-- Log analysis --&gt;<br> &lt;localfile&gt;<br>  &lt;location&gt;Microsoft-Windows-Sysmon/Operational&lt;/location&gt;<br>  &lt;log_format&gt;eventchannel&lt;/log_format&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;location&gt;Windows PowerShell&lt;/location&gt;<br>  &lt;log_format&gt;eventchannel&lt;/log_format&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;location&gt;Microsoft-Windows-CodeIntegrity/Operational&lt;/location&gt;<br>  &lt;log_format&gt;eventchannel&lt;/log_format&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;location&gt;Microsoft-Windows-TaskScheduler/Operational&lt;/location&gt;<br>  &lt;log_format&gt;eventchannel&lt;/log_format&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;location&gt;Microsoft-Windows-PowerShell/Operational&lt;/location&gt;<br>  &lt;log_format&gt;eventchannel&lt;/log_format&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;location&gt;Microsoft-Windows-Windows Firewall With Advanced Security/Firewall&lt;/location&gt;<br>  &lt;log_format&gt;eventchannel&lt;/log_format&gt;<br> &lt;/localfile&gt;<br> &lt;localfile&gt;<br>  &lt;location&gt;Microsoft-Windows-Windows Defender/Operational&lt;/location&gt;<br>  &lt;log_format&gt;eventchannel&lt;/log_format&gt;<br> &lt;/localfile&gt;<br>&lt;/agent_config&gt;</pre><p>Restart Wazuh Manager:</p><pre>sudo docker-compose restart wazuh.master</pre><h4>Step 4: Register a Wazuh Agent</h4><p><strong>Use the Dashboard to Generate the Agent Command</strong></p><ol><li>Log in to the <strong>Wazuh Dashboard</strong></li><li>Go to:<br> <strong>Agents Management → Summary → Deploy New Agent</strong></li><li>Choose your <strong>OS type</strong> (e.g., Windows)</li><li>Enter the <strong>Wazuh Server IP or domain name</strong></li><li>Select the <strong>group</strong> you created earlier (e.g., windows)</li><li>The Dashboard will generate the exact command you need to run on the endpoint</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*14ZwZIZT8qnmWNrfbpqKew.png" /></figure><p><strong>Run the Command on the Endpoint</strong></p><p>On your Windows machine:</p><ul><li>Open <strong>PowerShell </strong>as Administrator</li><li>Paste the generated command (it looks like this):</li></ul><pre>Invoke-WebRequest -Uri https://packages.wazuh.com/4.x/windows/wazuh-agent-4.12.0-1.msi....</pre><p><strong>Start the Wazuh Agent Service</strong></p><p>Once installed, start the agent service:</p><pre>NET START WazuhSvc</pre><p><strong>Verify Registration</strong></p><ul><li>Go back to the <strong>Wazuh Dashboard → Agents → Management → Summary</strong></li><li>You should see your new agent listed</li><li>It will show as Active once communication with the manager is established</li></ul><h4>Step 5: Enable Vulnerability Detection</h4><p>Wazuh comes with a <strong>Vulnerability Detector module</strong> that scans installed applications and system packages against known vulnerabilities (using OVAL feeds). By default, it’s <strong>disabled, </strong>so we need to enable it in the manager configuration.</p><pre>&lt;vulnerability-detector&gt;<br> &lt;enabled&gt;yes&lt;/enabled&gt; <br><br># Similarly for Ubuntu, Debian, Windows set vulnerabilities to<br> &lt;enabled&gt;yes&lt;/enabled&gt;<br><br></pre><pre><br># Note: If you are running Wazuh using docker-compose then:wazuh.master:<br>  volumes:<br>    - ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf<br><br># Open ./config/wazuh_cluster/wazuh_manager.conf and add the vulnerability-detector block:<br><br>&lt;vulnerability-detector&gt;<br>  &lt;enabled&gt;yes&lt;/enabled&gt;<br><br>  &lt;!-- Ubuntu vulnerabilities --&gt;<br>  &lt;provider name=&quot;canonical&quot;&gt;<br>    &lt;enabled&gt;yes&lt;/enabled&gt;<br>  &lt;/provider&gt;<br><br>  &lt;!-- Debian vulnerabilities --&gt;<br>  &lt;provider name=&quot;debian&quot;&gt;<br>    &lt;enabled&gt;yes&lt;/enabled&gt;<br>  &lt;/provider&gt;<br><br>  &lt;!-- Windows vulnerabilities --&gt;<br>  &lt;provider name=&quot;msu&quot;&gt;<br>    &lt;enabled&gt;yes&lt;/enabled&gt;<br>  &lt;/provider&gt;<br>&lt;/vulnerability-detector&gt;</pre><pre>sudo docker-compose restart wazuh.master</pre><blockquote><strong><em>Arfan Abid</em></strong></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/arfan-abid-152217270/"><em>https://www.linkedin.com/in/arfan-abid-152217270/</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7db429836d8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Wazuh with Docker (Single/Multi-Node).]]></title>
            <link>https://medium.com/@ArfanAbid/deploying-wazuh-with-docker-single-multi-node-0c7547c1c47a?source=rss-a6f9ac00ac30------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c7547c1c47a</guid>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[defensive-security]]></category>
            <category><![CDATA[wazuh]]></category>
            <dc:creator><![CDATA[Arfan Abid]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 09:02:23 GMT</pubDate>
            <atom:updated>2025-08-27T09:27:22.347Z</atom:updated>
            <content:encoded><![CDATA[<p>When we think of security monitoring, log collection, and threat detection, most people imagine expensive enterprise tools. But there’s an <strong>open-source powerhouse</strong> that rivals many commercial SIEMs: <strong>Wazuh</strong>.</p><p>Wazuh is an <strong>open-source security platform</strong> that helps organizations with:</p><ul><li><strong>Log collection &amp; monitoring</strong> (from servers, endpoints, firewalls, cloud services, etc.)</li><li><strong>Threat detection</strong> using built-in and custom rules</li><li><strong>Compliance monitoring</strong> (PCI DSS, HIPAA, GDPR, etc.)</li><li><strong>Incident response</strong> through integrations with other tools</li></ul><p>Think of it as your <strong>all-in-one SIEM and security monitoring solution</strong>, but <em>open-source</em> and flexible</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*89TSf4fx-OvskzSLmzcxrA.png" /></figure><p>Wazuh is an open-source security platform composed of several key components that work together to provide SIEM and XDR capabilities. The main components are:</p><h4><strong>1. Wazuh Agents</strong></h4><ul><li>Installed on endpoints (servers, workstations, containers).</li><li>Collect logs, system events, and security data.</li><li>Send data securely to the Wazuh Manager.</li></ul><h4>2. <strong>Wazuh Manager</strong></h4><ul><li>The brain of Wazuh.</li><li>Receives data from agents, applies rules and decoders, and generates alerts.</li><li>Can forward alerts to external tools (like Graylog, Elastic, or SIEMs).</li></ul><h4>3. <strong>Wazuh Indexer</strong></h4><ul><li>The <strong>Wazuh Indexer</strong> is the storage and search engine for Wazuh events.</li><li>It is based on <strong>OpenSearch</strong>, which is a community-driven fork of Elasticsearch.</li><li>Its main role is to <strong>store, index, and make security events searchable at scale</strong>.</li><li>Thanks to its distributed design, the indexer can handle very large datasets by <strong>spreading data across multiple nodes</strong> in a cluster.</li><li>This allows <strong>fast data retrieval</strong>, even when dealing with millions of log entries.</li></ul><p>In a <strong>single-node setup</strong>, the indexer runs as a single container/service.<br> In a <strong>multi-node setup</strong>, you run an <strong>indexer cluster</strong> (usually 3+ nodes) for:</p><ul><li>High availability</li><li>Load balancing</li><li>Faster queries across distributed data</li></ul><h4>4. <strong>Wazuh Dashboard</strong></h4><ul><li>A web interface for visualization.</li><li>Lets you explore logs, alerts, compliance reports, and threat data in real time.</li></ul><p>Together, these components create a complete <strong>log monitoring and security detection ecosystem</strong>.</p><h3>Wazuh Indexer Cluster Essentials</h3><h4>Master Node</h4><p>The <strong>Master Node</strong> is responsible for the overall <strong>health and coordination of the cluster</strong>.</p><ul><li>It does <strong>not store data</strong> or handle search queries directly.</li><li>Instead, it manages <strong>cluster-wide settings</strong>:</li><li>Creating or deleting indices</li><li>Tracking which nodes are part of the cluster</li><li>Deciding where shards should be allocated</li><li>Each cluster has <strong>one active master node</strong> (elected from all “master-eligible” nodes using a consensus algorithm).</li><li>If the current master node fails, another node is automatically elected, ensuring the cluster keeps functioning.</li></ul><p>Think of the master node as the <strong>cluster’s brain</strong>, it makes the big decisions but doesn’t do the heavy lifting of storing/searching data.</p><h4>Data Node</h4><p>The <strong>Data Node</strong> is where the real work happens.</p><ul><li>Stores and manages the <strong>actual data (shards)</strong>.</li><li>Performs all data-related operations:</li><li>Indexing new events</li><li>Running searches and queries</li><li>Handling aggregations (e.g., counts, averages, reports)</li><li>Data nodes require the <strong>most disk space</strong> and often more CPU/memory than other node types.</li><li>In a multi-node setup, data is <strong>split across multiple data nodes</strong> for performance and redundancy.</li></ul><p>Think of data nodes as the <strong>workers of the cluster</strong>, they hold the information and process the queries, while the master node coordinates them.</p><h4>How They Work Together</h4><p>When new data (logs) comes in:</p><ol><li>The <strong>master node</strong> decides which <strong>data node</strong> will store the shard.</li><li>The <strong>data node</strong> stores the data and handles queries related to it.</li><li>If replicas are enabled, the master ensures the data is copied to other data nodes for redundancy.</li></ol><p><strong>Example:</strong><br> You have 3 nodes, Node 1 (Master), Node 2 (Data), Node 3 (Data).</p><ul><li>The master node tells Node 2 to store new logs.</li><li>Node 3 stores a replica copy of those logs.</li><li>When a user searches for data, the query can be answered by Node 2 or Node 3, improving speed and resilience.</li></ul><h3>Installation</h3><h4>System Requirements &amp; Configuration Tips for a Smooth Wazuh Stack Deployment:</h4><p>To run the full Wazuh stack reliably, it’s important to allocate enough resources to your host machine. Here are a few key recommendations:</p><ul><li><strong>Memory:</strong> Allocate at least <strong>6 GB of RAM</strong> specifically for hosting the Wazuh stack. More is better, especially if you’re expecting high volumes of logs or many monitored agents.</li><li><strong>CPU:</strong> A <strong>multi-core processor</strong> is strongly recommended. Wazuh components, especially the Indexer, can be resource-intensive, so having multiple cores will help distribute the load and improve performance.</li></ul><p>The <strong>Wazuh Indexer</strong> makes extensive use of memory-mapped areas. To avoid stability issues, you’ll need to increase the vm.max_map_count value on your host system. This tells the Linux kernel how many memory-mapped areas a process can have, which is critical for Wazuh Indexer&#39;s performance.</p><pre>sysctl -w vm.max_map_count=262144<br># Note: This command must be run with root permissions</pre><ol><li>Clone the repo for Wazuh Docker Compose:</li></ol><pre>git clone https://github.com/wazuh/wazuh-docker.git -b v4.12.0<br><br>cd wazuh-docker/multi-node/<br><br># or single-Node in my case I am doing multi-Node <br># cd wazuh-docker/single-node/</pre><p>2. Certificate generation:</p><pre>docker compose -f generate-indexer-certs.yml run --rm generator<br># or<br>docker-compose -f generate-indexer-certs.yml run --rm generator</pre><pre><br># Wazuh App Copyright (C) 2017, Wazuh Inc. (License GPLv2)<br>version: &#39;3.7&#39;<br><br>services:<br>  wazuh.master:<br>    image: wazuh/wazuh-manager:4.12.0<br>    hostname: wazuh.master<br>    restart: always<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>      nofile:<br>        soft: 655360<br>        hard: 655360<br>    ports:<br>      - &quot;1515:1515&quot;<br>      - &quot;514:514/udp&quot;<br>      - &quot;55000:55000&quot;<br>    environment:<br>      - INDEXER_URL=https://wazuh1.indexer:9200<br>      - INDEXER_USERNAME=admin<br>      - INDEXER_PASSWORD=SecretPassword<br>      - FILEBEAT_SSL_VERIFICATION_MODE=full<br>      - SSL_CERTIFICATE_AUTHORITIES=/etc/ssl/root-ca.pem<br>      - SSL_CERTIFICATE=/etc/ssl/filebeat.pem<br>      - SSL_KEY=/etc/ssl/filebeat.key<br>      - API_USERNAME=wazuh-wui<br>      - API_PASSWORD=MyS3cr37P450r.*-<br>    volumes:<br>      - master-wazuh-api-configuration:/var/ossec/api/configuration<br>      - master-wazuh-etc:/var/ossec/etc<br>      - master-wazuh-logs:/var/ossec/logs<br>      - master-wazuh-queue:/var/ossec/queue<br>      - master-wazuh-var-multigroups:/var/ossec/var/multigroups<br>      - master-wazuh-integrations:/var/ossec/integrations<br>      - master-wazuh-active-response:/var/ossec/active-response/bin<br>      - master-wazuh-agentless:/var/ossec/agentless<br>      - master-wazuh-wodles:/var/ossec/wodles<br>      - master-filebeat-etc:/etc/filebeat<br>      - master-filebeat-var:/var/lib/filebeat<br>      - ./config/wazuh_indexer_ssl_certs/root-ca-manager.pem:/etc/ssl/root-ca.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.master.pem:/etc/ssl/filebeat.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.master-key.pem:/etc/ssl/filebeat.key<br>      - ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf<br><br>  wazuh.worker:<br>    image: wazuh/wazuh-manager:4.12.0<br>    hostname: wazuh.worker<br>    restart: always<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>      nofile:<br>        soft: 655360<br>        hard: 655360<br>    environment:<br>      - INDEXER_URL=https://wazuh1.indexer:9200<br>      - ELASTICSEARCH_VERSION=7.10.2<br>      - INDEXER_USERNAME=admin<br>      - INDEXER_PASSWORD=SecretPassword<br>      - FILEBEAT_SSL_VERIFICATION_MODE=full<br>      - SSL_CERTIFICATE_AUTHORITIES=/etc/ssl/root-ca.pem<br>      - SSL_CERTIFICATE=/etc/ssl/filebeat.pem<br>      - SSL_KEY=/etc/ssl/filebeat.key<br>    volumes:<br>      - worker-wazuh-api-configuration:/var/ossec/api/configuration<br>      - worker-wazuh-etc:/var/ossec/etc<br>      - worker-wazuh-logs:/var/ossec/logs<br>      - worker-wazuh-queue:/var/ossec/queue<br>      - worker-wazuh-var-multigroups:/var/ossec/var/multigroups<br>      - worker-wazuh-integrations:/var/ossec/integrations<br>      - worker-wazuh-active-response:/var/ossec/active-response/bin<br>      - worker-wazuh-agentless:/var/ossec/agentless<br>      - worker-wazuh-wodles:/var/ossec/wodles<br>      - worker-filebeat-etc:/etc/filebeat<br>      - worker-filebeat-var:/var/lib/filebeat<br>      - ./config/wazuh_indexer_ssl_certs/root-ca-manager.pem:/etc/ssl/root-ca.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.worker.pem:/etc/ssl/filebeat.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.worker-key.pem:/etc/ssl/filebeat.key<br>      - ./config/wazuh_cluster/wazuh_worker.conf:/wazuh-config-mount/etc/ossec.conf<br><br>  wazuh1.indexer:<br>    image: wazuh/wazuh-indexer:4.12.0<br>    hostname: wazuh1.indexer<br>    restart: always<br>    ports:<br>      - &quot;9200:9200&quot;<br>    environment:<br>      - &quot;OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g&quot;<br>      - &quot;bootstrap.memory_lock=true&quot;<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>      nofile:<br>        soft: 65536<br>        hard: 65536<br>    volumes:<br>      - wazuh-indexer-data-1:/var/lib/wazuh-indexer<br>      - ./config/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-indexer/certs/root-ca.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh1.indexer-key.pem:/usr/share/wazuh-indexer/certs/wazuh1.indexer.key<br>      - ./config/wazuh_indexer_ssl_certs/wazuh1.indexer.pem:/usr/share/wazuh-indexer/certs/wazuh1.indexer.pem<br>      - ./config/wazuh_indexer_ssl_certs/admin.pem:/usr/share/wazuh-indexer/certs/admin.pem<br>      - ./config/wazuh_indexer_ssl_certs/admin-key.pem:/usr/share/wazuh-indexer/certs/admin-key.pem<br>      - ./config/wazuh_indexer/wazuh1.indexer.yml:/usr/share/wazuh-indexer/opensearch.yml<br>      - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml<br><br>  wazuh2.indexer:<br>    image: wazuh/wazuh-indexer:4.12.0<br>    hostname: wazuh2.indexer<br>    restart: always<br>    environment:<br>      - &quot;OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g&quot;<br>      - &quot;bootstrap.memory_lock=true&quot;<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>      nofile:<br>        soft: 65536<br>        hard: 65536<br>    volumes:<br>      - wazuh-indexer-data-2:/var/lib/wazuh-indexer<br>      - ./config/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-indexer/certs/root-ca.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh2.indexer-key.pem:/usr/share/wazuh-indexer/certs/wazuh2.indexer.key<br>      - ./config/wazuh_indexer_ssl_certs/wazuh2.indexer.pem:/usr/share/wazuh-indexer/certs/wazuh2.indexer.pem<br>      - ./config/wazuh_indexer/wazuh2.indexer.yml:/usr/share/wazuh-indexer/opensearch.yml<br>      - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml<br><br>  wazuh3.indexer:<br>    image: wazuh/wazuh-indexer:4.12.0<br>    hostname: wazuh3.indexer<br>    restart: always<br>    environment:<br>      - &quot;OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g&quot;<br>      - &quot;bootstrap.memory_lock=true&quot;<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>      nofile:<br>        soft: 65536<br>        hard: 65536<br>    volumes:<br>      - wazuh-indexer-data-3:/var/lib/wazuh-indexer<br>      - ./config/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-indexer/certs/root-ca.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh3.indexer-key.pem:/usr/share/wazuh-indexer/certs/wazuh3.indexer.key<br>      - ./config/wazuh_indexer_ssl_certs/wazuh3.indexer.pem:/usr/share/wazuh-indexer/certs/wazuh3.indexer.pem<br>      - ./config/wazuh_indexer/wazuh3.indexer.yml:/usr/share/wazuh-indexer/opensearch.yml<br>      - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml<br><br>  wazuh.dashboard:<br>    image: wazuh/wazuh-dashboard:4.12.0<br>    hostname: wazuh.dashboard<br>    restart: always<br>    ports:<br>      - 443:5601<br>    environment:<br>      - OPENSEARCH_HOSTS=&quot;https://wazuh1.indexer:9200&quot;<br>      - WAZUH_API_URL=&quot;https://wazuh.master&quot;<br>      - API_USERNAME=wazuh-wui<br>      - API_PASSWORD=MyS3cr37P450r.*-<br>      - DASHBOARD_USERNAME=kibanaserver<br>      - DASHBOARD_PASSWORD=kibanaserver<br>    volumes:<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.dashboard.pem:/usr/share/wazuh-dashboard/certs/wazuh-dashboard.pem<br>      - ./config/wazuh_indexer_ssl_certs/wazuh.dashboard-key.pem:/usr/share/wazuh-dashboard/certs/wazuh-dashboard-key.pem<br>      - ./config/wazuh_indexer_ssl_certs/root-ca.pem:/usr/share/wazuh-dashboard/certs/root-ca.pem<br>      - ./config/wazuh_dashboard/opensearch_dashboards.yml:/usr/share/wazuh-dashboard/config/opensearch_dashboards.yml<br>      - ./config/wazuh_dashboard/wazuh.yml:/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml<br>      - wazuh-dashboard-config:/usr/share/wazuh-dashboard/data/wazuh/config<br>      - wazuh-dashboard-custom:/usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom<br>    depends_on:<br>      - wazuh1.indexer<br>    links:<br>      - wazuh1.indexer:wazuh1.indexer<br>      - wazuh.master:wazuh.master<br><br>  nginx:<br>    image: nginx:stable<br>    hostname: nginx<br>    restart: always<br>    ports:<br>      - &quot;1514:1514&quot;<br>    depends_on:<br>      - wazuh.master<br>      - wazuh.worker<br>      - wazuh.dashboard<br>    links:<br>      - wazuh.master:wazuh.master<br>      - wazuh.worker:wazuh.worker<br>      - wazuh.dashboard:wazuh.dashboard<br>    volumes:<br>      - ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro<br><br>volumes:<br>  master-wazuh-api-configuration:<br>  master-wazuh-etc:<br>  master-wazuh-logs:<br>  master-wazuh-queue:<br>  master-wazuh-var-multigroups:<br>  master-wazuh-integrations:<br>  master-wazuh-active-response:<br>  master-wazuh-agentless:<br>  master-wazuh-wodles:<br>  master-filebeat-etc:<br>  master-filebeat-var:<br>  worker-wazuh-api-configuration:<br>  worker-wazuh-etc:<br>  worker-wazuh-logs:<br>  worker-wazuh-queue:<br>  worker-wazuh-var-multigroups:<br>  worker-wazuh-integrations:<br>  worker-wazuh-active-response:<br>  worker-wazuh-agentless:<br>  worker-wazuh-wodles:<br>  worker-filebeat-etc:<br>  worker-filebeat-var:<br>  wazuh-indexer-data-1:<br>  wazuh-indexer-data-2:<br>  wazuh-indexer-data-3:<br>  wazuh-dashboard-config:<br>  wazuh-dashboard-custom:</pre><p>3. Start the environment with Docker Compose:</p><pre>docker compose up -d<br># or<br>docker-compose up -d</pre><p>4. Log in to the Wazuh interface with the default credentials:</p><pre>username: admin<br>password: SecretPassword</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jf6435tNegXlAcIFcfGWLQ.png" /></figure><h3>Why Wazuh?</h3><p>Wazuh is one of the most powerful and versatile <strong>open-source EDR (Endpoint Detection and Response)</strong> solutions available. It provides a complete platform for monitoring endpoints, integrating with third-party tools, meeting compliance standards, supporting multi-tenant environments, and much more, all at zero licensing cost.</p><p>On top of this, Wazuh is highly customizable. You can create <strong>custom detection rules, decoders, and integrations</strong> to fit your specific use cases. That’s the beauty of open source!</p><h3>Conclusion</h3><p>Wazuh supports a wide range of log sources out of the box, from Windows Event Viewer to Syslog, JSON logs, and more. With custom decoders and rules, you can extend this to ingest virtually <strong>any log format</strong>.</p><p>The flexibility here is crucial because it gives you <strong>full visibility across all endpoints and services</strong> in your environment.</p><blockquote><strong>Arfan Abid</strong></blockquote><blockquote><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/arfan-abid-152217270/">https://www.linkedin.com/in/arfan-abid-152217270/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c7547c1c47a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>