<?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 Hacer Aynur Sari on Medium]]></title>
        <description><![CDATA[Stories by Hacer Aynur Sari on Medium]]></description>
        <link>https://medium.com/@irasnuray?source=rss-e755c00c6af0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vHDPEh_1jtITkkEv</url>
            <title>Stories by Hacer Aynur Sari on Medium</title>
            <link>https://medium.com/@irasnuray?source=rss-e755c00c6af0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:54:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@irasnuray/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[Building a Home SOC Automation Lab: Deploying Wazuh, TheHive, and Elasticsearch]]></title>
            <link>https://medium.com/@irasnuray/building-a-home-soc-automation-lab-deploying-wazuh-thehive-and-elasticsearch-aea9f9d541b4?source=rss-e755c00c6af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/aea9f9d541b4</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[incident-response]]></category>
            <dc:creator><![CDATA[Hacer Aynur Sari]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 05:47:25 GMT</pubDate>
            <atom:updated>2026-04-04T05:52:22.989Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Home SOC Automation Lab: Deploying Wazuh, TheHive, and Elasticsearch (And Surviving the Errors)</h3><p>To truly understand how logs travel from an endpoint to analyst’s dashboard, I decided to build the engine myself. I wanted to learn what is going on in the background of pre-configured cloud SIEM. I can definitely say it was a lot harder than I thought, with the errors and configurations it was a lot to handle. I followed the MyDfir videos on Youtube which helped a lot.</p><p><strong>Resource Management:</strong> Open-source security tools are incredibly resource-hungry. Elasticsearch and TheHive (which is Java-based) require a massive amount of RAM. If I tried to run all of these servers simultaneously on my local laptop alongside the Windows VM, my computer would have crashed. Hosting them in the cloud offloaded that heavy lifting and allowed the SIEM to be “always on” and ready to receive logs.</p><p><strong>The Unsung Hero: Elasticsearch</strong></p><p>Before we trace the alert, I need to mention what is running in the background: Elasticsearch. If Wazuh is the brain that analyzes the logs, Elasticsearch is the memory.</p><p>Since Sysmon generates hundreds of logs a minute, Wazuh doesn’t actually store them long-term. It just processes the logs and sends them straight to Elasticsearch, which acts as a massive data lake. I realized that in a real environment, you need to search through millions of logs instantly. If I want to find a specific IP address from the last 30 days, Elasticsearch gives me that answer in milliseconds. TheHive also uses it as its search engine to look up past cases. Simply put, without Elasticsearch, our SOC would have no memory, and threat hunting wouldn’t be possible.</p><h3>The Lifecycle of an Alert: How the Architecture Flows</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O7o7G1WXVrBf4kKRI5U2SA.png" /><figcaption>SOC Automation Workflow</figcaption></figure><p>First, we built a diagram to understand the connections between the apps. Let’s trace the exact path of cyber threat through the architecture diagram that is designed for this lab.</p><p><strong>Phase 1: Detection &amp; Ingestion</strong></p><p>Let’s start with the endpoint. The Windows 11 Client armed with Sysmon and Wazuh agent detects suspicious activity.</p><p>When a suspicious program, such as malware script or Mimikatz, attempts to steal credentials, Sysmon acts as the primary observer by detecting the request for permission to read the memory of the LSASS process (the sensitive area where Windows store passwords). Operating at the Kernel level Sysmon captures this interaction as an Event ID 10 and generates detailed log containing the specific access code (0x1010). The Wazuh Agent immediately picks up the raw data and securely transmits to Wazuh Manager. Finally the Wazuh Manager acts as the judge, it parses the log against its internal rulebook, recognizes that a normal program like Word or Chrome would never need this level of access, and triggers a Level 12 High Alert to notify the security team of attempted theft.</p><blockquote><strong>The Lab Reality: </strong>Before I could generate alerts, I hit the wall with the endpoint’s security camera itself. Sysmon. I realized my initial Sysmon deployment needed to be wiped so I could apply a new, customized configuration. I tried to forcefully remove the existing Sysmon files via the command line, but Windows repeatedly blocked me with “access denied” errors because the service was deeply hooked into the OS. After wrestling with terminal commands, I stepped out of the CLI, navigated through the Windows File Explorer, and simply deleted the files from there to clear it from computer. Finally, it worked.</blockquote><blockquote>Then, I tried to test the pipeline by executing “ .\mimikatz.exe “ . Instantly, Windows Defender intercepted it, throwing a “file contains a virus” error. I turned off real-time protection and clicked “Allow” , but then Powershell mocked me with: “The system cannot find the file specified.” Defender had aggressively quarantined and deleted the executable. To finally get the Mimikatz prompt, I had to configure a strict folder exclusion within Windows Security and completely re-extract the original .zip file into that safe zone.</blockquote><p><strong>Phase 2: Analysis &amp; Automation (The SOAR Magic)</strong></p><p>The Wazuh Manager correlates the logs, realizes it’s an attack, and fires a high priority alert. But instead of just logging it, Wazuh pushes this alert directly to Shuffle, our SOAR ( Security Orchestration, Automation, and Response) platform.</p><blockquote><strong>The Lab Reality: </strong>To make Wazuh actually flag my Mimikatz test, I had to navigate the Linux file system. I found the raw data in archives and edit the “local_rules.xml” file. I found Rule ID 100001 and modified it. However, the most critical lesson was operational: Wazuh does not dynamically update. I had to learn to manually restart the Wazuh Manager service after every single save, or my new rules were completely ignored.</blockquote><p>This is where automation saves hours of manual work. Shuffle intercepts the alert, parses out the malicious Indicators of Compromise (IoCs), like file hashes or IP addresses, and automatically checks them against OSINT platforms (like VirusTotal) to gather threat intelligence.</p><blockquote><strong>The Lab Reality: </strong>I crafted a regular expression capture group “ SHA256=([0–9A-Fa-f]{64}) “ in Shuffle to parse out malicious file hashes. Yet, the automation node kept failing. After intense troubleshooting, I realized my Regex was mathematically correct but my testing methodology was the actual problem. I had been testing my regex against Shuffle’s default placeholder dummy text instead of feeding it a real Wazuh alert payload.</blockquote><p><strong>Phase 3: Case Management &amp; Notification</strong></p><p>Once Shuffle has the enriched data, it automatically creates a detailed alert inside TheHive. I realized that in a real SOC environment, analysts would quickly get alert fatigue if they had to read raw JSON logs all day. By integrating TheHive, I was able to turn a noisy Wazuh alert into a clean, actionable incident ticket.</p><p>Shuffle doesn’t just pass the log along; it actually takes the extracted IOCs (like the malicious file hashes) and puts them right on TheHive’s dashboard. This means all the important evidence and attack details are organized in one place. When an analyst logs in, they don’t have to waste time jumping between different databases or tools to figure out what happened. The whole story of the attack is already put together and waiting for them to handle it.</p><p>Simultaneously, Shuffle sends an automated email out to the SOC Analyst, notifying them that a critical, verified threat requires their immediate attention.</p><p><strong>Conclusion</strong></p><p>While studying for certifications, I learned the theory, but I struggled to visualize how everything actually works together. This project gave me hands-on practice just like a real analyst. Every deleted payload, failed regex, and missed restart forced me to dig deeper into system configurations. By piecing together this architecture, I didn’t just learn how a SOC operates on a perfect day; I learned how to fix it when it breaks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FZJSTycVw8fRmV61ATkjWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5wrm0Z518v9t-BF8pS5NyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2iftj6yWSgsW2NHsxuAbjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DWD0X4SVqBuY5gmQh3rsYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pDnHIW-AJ-fFMd0zTtnVKg.png" /></figure><h3>📚 References &amp; Resources</h3><p>If you want to build this architecture yourself, I highly recommend starting with the original tutorial series that inspired this project:</p><ul><li><strong>Part 1: Routing &amp; Diagramming:</strong> <a href="https://www.youtube.com/watch?v=ahrSFdiWzis">SOC Automation Project Updated | Part 1/4</a></li><li><strong>Part 2: Configuring Wazuh &amp; TheHive:</strong> <a href="https://www.youtube.com/watch?v=BraQGiJGNpE">SOC Automation Project Updated | Part 2/4</a></li><li><strong>Part 3: Generating Telemetry &amp; Alerts:</strong> <a href="https://www.youtube.com/watch?v=aqxY2gQxlww">SOC Automation Project Updated | Part 3/4</a></li><li><strong>Part 4: SOAR Integration with Shuffle:</strong> <a href="https://www.youtube.com/watch?v=f18isDfMIlY">SOC Automation Project Updated | Part 4/4</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aea9f9d541b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>