<?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 Fadıl Yeren on Medium]]></title>
        <description><![CDATA[Stories by Fadıl Yeren on Medium]]></description>
        <link>https://medium.com/@fadilyeren?source=rss-33c2710c091a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KT8XYPQ9zzSwR3oThULrww.jpeg</url>
            <title>Stories by Fadıl Yeren on Medium</title>
            <link>https://medium.com/@fadilyeren?source=rss-33c2710c091a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 20:00:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fadilyeren/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[My First Splunk Alert Didn’t Fire. Fixing It Taught Me the Most.]]></title>
            <link>https://medium.com/@fadilyeren/my-first-splunk-alert-didnt-fire-fixing-it-taught-me-the-most-d6b8a3d352ff?source=rss-33c2710c091a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6b8a3d352ff</guid>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[security-operations]]></category>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Fadıl Yeren]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 12:02:28 GMT</pubDate>
            <atom:updated>2026-11-24T12:02:28.986Z</atom:updated>
            <content:encoded><![CDATA[<p>To prepare for real SOC work, I built a home lab that simulates the events that happen in real environments. I ran five attacks, investigated the traces they left with SPL, and wrote a detection for each one. This post is about the one I’m proudest of: catching a brute-force attack with a scheduled alert.</p><h3>The lab</h3><p>A Windows 10 VM is the victim. It runs Sysmon, PowerShell script block logging and the Splunk Universal Forwarder, which sends its logs to Splunk Enterprise on my host machine. A Kali Linux VM is the attacker. Everything runs on an isolated host-only network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e8rN-RiS-QP4ZdRLZL3d1A.png" /></figure><h3>Look at normal first</h3><p>Before attacking, I checked what normal looked like. In the last 7 days there were only two failed logons (event 4625), and both were mine, at the screen: Windows had asked me to change an expired password that day. There were no failed logons over the network at all. So any burst of network failures would stand out.</p><h3>The attack</h3><p>I attacked the Windows VM over SMB from Kali. Hydra’s SMB module couldn’t talk to modern SMB versions, so I used netexec with a short password list.</p><p>After 10 wrong passwords, Windows locked the account (event 4740). I didn’t expect that. I was glad to see it, because it makes the attack a lot harder. But the lockout only protects the account. It doesn’t block the attacker’s IP, and the attacker can keep trying other accounts. For the repeat tests I used a non-existent account, which can’t be locked but still produces 4625.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_H5TjfUAiY0fNX5yXaixDA.png" /></figure><h3>The detection</h3><pre>index=wineventlog EventID=4625 Logon_Type IN (3,10)<br>| stats count by src_ip<br>| where count &gt; 9</pre><p>It counts failed network (type 3) and RDP (type 10) logons per source IP. I chose a threshold of 10: a user who forgets their password tries 5–6 times at most, and Windows also locks accounts at 10. The cost: on a machine with a lower lockout threshold, the account locks before reaching 10, and the rule can miss the attack.</p><h3>The alert that didn’t fire</h3><p>I saved the search as a scheduled alert: run every minute, look at the last 1 minute. Before testing, I synced the VM clock, which had drifted about 10 minutes behind; otherwise “the last minute” would mean different things to Splunk and to the VM.</p><p>I attacked again. Nothing triggered.</p><p>When I ran the query by hand, it found 27 failed logons from the attacker’s IP. So the query was fine. The problem was timing: logs take a little while to travel from the forwarder and get indexed, and by the time they arrived, the 1-minute window had already passed. I changed both the schedule and the window to 5 minutes and attacked once more.</p><p>At 20:00:01 the alert fired, with severity High.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RkG1156j5JLOsMCcCupNTQ.png" /></figure><h3>What I learned</h3><ul><li><strong>Measure normal before writing a rule.</strong> The baseline told me what a false positive would look like before I had one.</li><li><strong>A query that works is not an alert that works.</strong> Test the alert itself, and leave room for ingestion delay.</li><li><strong>Know what Windows does on its own.</strong> Account lockout changed both the attack and my threshold.</li></ul><h3>See the rest</h3><p>The site has all five scenarios: the SPL I wrote, my screenshots, the false positives I hit and the mistakes I fixed along the way.</p><ul><li>Site: <a href="https://fadilyeren.github.io/soc-home-lab/en/">https://fadilyeren.github.io/soc-home-lab/en/</a></li><li>GitHub: <a href="https://github.com/fadilyeren/soc-home-lab">https://github.com/fadilyeren/soc-home-lab</a></li></ul><p>I’m happy to walk through any of these detections. You can find me on LinkedIn: <a href="https://www.linkedin.com/in/fad%C4%B1l-yeren-87a19a36a">linkedin.com/in/fadıl-yeren-87a19a36a</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6b8a3d352ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>