<?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 Ronak Mishra on Medium]]></title>
        <description><![CDATA[Stories by Ronak Mishra on Medium]]></description>
        <link>https://medium.com/@ronakonweb?source=rss-5de7e9afc0de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rfjBrAG8QI12jKVoHmVJSA@2x.jpeg</url>
            <title>Stories by Ronak Mishra on Medium</title>
            <link>https://medium.com/@ronakonweb?source=rss-5de7e9afc0de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:30:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ronakonweb/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[Your Company Wants to Allow ChatGPT. What Can the SOC Actually See?]]></title>
            <link>https://infosecwriteups.com/your-company-wants-to-allow-chatgpt-what-can-the-soc-actually-see-8cee3a66e419?source=rss-5de7e9afc0de------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cee3a66e419</guid>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Ronak Mishra]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 00:50:47 GMT</pubDate>
            <atom:updated>2026-10-09T00:50:47.658Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I built a detection for data leaving over curl on port 4444. Then I tried to picture the same data leaving through a browser tab.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qrDMdAkQrinS4Wk7GusDSA.png" /></figure><p><em>I haven’t tested any of this in a lab. This is a reasoning piece built from public documentation and vendor research. Sources are linked at the bottom.</em></p><p><strong>Short version:</strong> logs will tell you someone used an AI service. They rarely tell you what was sent. Below is what each log source can and can’t show, plus three Splunk detections I’d start with.</p><p>My Splunk insider threat detection looks for a Finance account reading a payment file, compressing it with PowerShell, and sending it out with curl over port 4444. It works because the attacker I wrote is lazy. Someone who wants to get a customer file into an AI chat doesn’t need curl. They open a browser, paste, and press enter. That’s ordinary HTTPS on port 443, like every other website, and my rule as written isn’t looking for it.</p><p>Security teams are being asked about this now. Leadership wants to allow AI tools, so what can the SOC see once they do? According to <a href="https://www.armorcode.com/blog/shadow-ai-detection-strategies-and-tools-for-enterprise-visibility">ArmorCode</a>, to a firewall that isn’t specifically looking, a call to a generative AI service looks a lot like a call to any other web service.</p><h3>Where the evidence lives</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pWfsckBqi3CrRYryYW1CtA.jpeg" /><figcaption><em>What each log source can and can’t tell a SOC about an employee pasting data into an AI chat.</em></figcaption></figure><p><strong>DNS logs.</strong> DNS, web proxy, and CASB records all capture where traffic is going, so you can compare it against a list of known AI domains, as <a href="https://www.armorcode.com/blog/shadow-ai-detection-strategies-and-tools-for-enterprise-visibility">ArmorCode</a> describes. <a href="https://www.deepinspect.ai/blog/shadow-ai-pillar-refresh">DeepInspect</a> notes that DNS is good for population sizing, meaning how many people use AI at all. It can’t show what was typed or pasted. And if a browser sends its DNS queries to an outside resolver instead of yours, those lookups never reach your logs, which is worth checking in your own environment.</p><p><strong>Endpoint DNS (Sysmon Event 22).</strong> According to <a href="https://system32.eventsentry.com/sysmon/event/22">EventSentry’s reference</a>, Sysmon logs a DNS query along with the process that made it and the user, whether the lookup succeeded, failed, or came from cache. That answers “which program asked for this domain.” It matters because a browser visiting an AI site and a script calling an AI API are very different events.</p><p><strong>Network connection logs.</strong> Windows connection events, like the 5156 events in my lab, record the destination address and port, plus the application that made the connection. An IP address owned by a big cloud provider says very little about what the traffic was.</p><p><strong>Proxy and CASB.</strong> Proxy logs carry the destination domain, and a proxy with TLS interception can even see request content. <a href="https://www.deepinspect.ai/blog/shadow-ai-pillar-refresh">DeepInspect</a>, a vendor in this space, says most deployments don’t have interception configured for AI providers, so the proxy sees the connection but not the prompt. CASBs have a similar gap. <a href="https://www.veeam.com/blog/detect-govern-shadow-ai.html">Veeam</a> argues that they only flag what’s on their list, and that tools built for shadow IT miss much of shadow AI because it often leaves no install footprint or hides inside platforms you’ve already approved.</p><p><strong>Extensions and app authorizations.</strong> <a href="https://radar.firstaimovers.com/shadow-ai-engineering-teams-detect-measure-decide.md">First AI Movers</a> points out that many AI tools run as Chrome or VS Code extensions, so a network-only view misses how they arrived. DeepInspect lists browser inventory and OAuth consent records as part of the detection picture too.</p><h3>Three detections I’d write first</h3><p>These are untested sketches. The index names and domain list need adapting, and the domain list needs ongoing maintenance.</p><p><strong>1. Inventory: who is talking to AI domains.</strong></p><pre>index=sysmon EventCode=22<br>  QueryName IN (&quot;*chatgpt.com&quot;, &quot;*openai.com&quot;, &quot;*claude.ai&quot;,<br>                &quot;*anthropic.com&quot;, &quot;*gemini.google.com&quot;)<br>| stats count dc(QueryName) as domains by host, User, Image<br>| sort - count</pre><p><strong>2. Wrong process.</strong> A non-browser process querying an AI domain deserves a look. The pattern is modeled on <a href="https://research.splunk.com/network/4d4332ae-792c-11ec-89c1-acde48001122/">Splunk’s published detection</a> for a process making DNS queries to Discord from outside legitimate application paths.</p><pre>index=sysmon EventCode=22<br>  QueryName IN (&quot;*chatgpt.com&quot;, &quot;*openai.com&quot;,<br>                &quot;*claude.ai&quot;, &quot;*anthropic.com&quot;)<br>| where NOT match(Image, &quot;(?i)(chrome|msedge|firefox)\.exe$&quot;)<br>| table _time, host, User, Image, QueryName</pre><p><strong>3. Sensitive file read, then AI domain, on the same host.</strong> This extends my insider threat correlation. It counts distinct stages instead of raw events, because counting raw events can fire on one noisy stage.</p><pre>(index=windows EventCode=4663 Object_Name=&quot;*CustomerExports*&quot;)<br>OR (index=sysmon EventCode=22<br>    QueryName IN (&quot;*chatgpt.com&quot;, &quot;*openai.com&quot;, &quot;*claude.ai&quot;))<br>| eval stage=if(EventCode=4663, &quot;file_read&quot;, &quot;ai_lookup&quot;)<br>| transaction host maxspan=30m<br>| eval stages=mvcount(mvdedup(stage))<br>| where stages=2</pre><p>It shows a sequence, not content. Plenty of innocent activity will match, so it needs a baseline and tuning before anyone trusts it.</p><h3>What the logs won’t settle</h3><p>Even perfect logs show that someone talked to an AI service. They don’t show whether the data was sensitive or whether the use was allowed, and that’s a policy question. One practical approach, from <a href="https://radar.firstaimovers.com/shadow-ai-engineering-teams-detect-measure-decide">First AI Movers</a>, is to triage every tool you find into govern, adopt, or block. Their view is that approving a tool with controls, when it fills a real gap, does the most to reduce future shadow AI, and that the fastest fix overall is shrinking the distance between what people need and what the approved stack offers. The same piece says shadow AI isn’t a compliance failure to punish, and that the simplest detection method is to ask people.</p><h3>If a manager asks: can we allow it?</h3><p>Yes, but decide the approved tools first and turn on DNS and endpoint DNS logging before rollout. Decide deliberately whether TLS interception on AI domains is something you want, since that’s a privacy and legal call as well as a technical one. And accept that the logs will show usage, not content.</p><p>The obvious next step is to see what my own lab logs show for a browser session and compare it to what I expect here.</p><p><strong>Sources:</strong> <a href="https://www.armorcode.com/blog/shadow-ai-detection-strategies-and-tools-for-enterprise-visibility">ArmorCode, “Shadow AI Detection”</a>; <a href="https://www.veeam.com/blog/detect-govern-shadow-ai.html">Veeam, “How to Detect and Govern Shadow AI”</a>; <a href="https://www.deepinspect.ai/blog/shadow-ai-pillar-refresh">DeepInspect, “Shadow AI in 2026”</a>; <a href="https://radar.firstaimovers.com/shadow-ai-engineering-teams-detect-measure-decide.md">First AI Movers, “Shadow AI in Engineering Teams”</a>; <a href="https://research.splunk.com/network/4d4332ae-792c-11ec-89c1-acde48001122/">Splunk Security Content, “Suspicious Process With Discord DNS Query”</a>; <a href="https://system32.eventsentry.com/sysmon/event/22">EventSentry, Sysmon Event 22 reference</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cee3a66e419" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/your-company-wants-to-allow-chatgpt-what-can-the-soc-actually-see-8cee3a66e419">Your Company Wants to Allow ChatGPT. What Can the SOC Actually See?</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Detected an Insider Threat in Splunk When Every Single Action Looked Legitimate]]></title>
            <link>https://infosecwriteups.com/how-i-detected-an-insider-threat-in-splunk-when-every-single-action-looked-legitimate-aeac34ea7190?source=rss-5de7e9afc0de------2</link>
            <guid isPermaLink="false">https://medium.com/p/aeac34ea7190</guid>
            <category><![CDATA[insider-threat]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Ronak Mishra]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 09:47:14 GMT</pubDate>
            <atom:updated>2026-07-10T09:48:57.738Z</atom:updated>
            <content:encoded><![CDATA[<p><em>No broken password. No exploit. No firewall alert. Just an employee using access they were supposed to have — to take data they weren’t. Here’s how I caught it with a three-stage correlation in Splunk.</em></p><p><em>By Ronak Mishra · SC-200 | Security+ | ISC2 CC · Splunk Enterprise SIEM Lab</em></p><p>Most detection content is about outsiders — brute force, phishing, exploits. The attacker is external, the activity is obviously malicious, and the logs light up.</p><p>Insider threats are the opposite. The account is valid. The access is authorized. Every individual action, viewed on its own, looks like normal work. There’s no single event you can alert on. And that’s exactly what makes them the hardest thing a SOC has to catch.</p><p>I built a Splunk lab to detect one end to end. This is how it worked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6GmRtez2BHftjN-yNHsBWw.png" /><figcaption><em>The Meridian SOC dashboard — six live panels built in Splunk, pulling from the same data this insider threat scenario generated.</em></figcaption></figure><p><strong>The scenario</strong></p><p>A fictional e-commerce company, Meridian Commerce Inc. A Finance account on a Windows 11 workstation (FIN-WKS-04) with legitimate access to customer payment data. The insider does three things:</p><ol><li><strong>Reads</strong> the payment file C:\CustomerExports\payments_export.csv. This account is allowed to. <em>(Event ID 4663)</em></li><li><strong>Compresses</strong> it with PowerShell’s Compress-Archive. Zipping a file isn&#39;t malicious. <em>(Event ID 4104)</em></li><li><strong>Exfiltrates</strong> it to an external host with curl.exe over port 4444. One outbound connection among thousands. <em>(Event ID 5156)</em></li></ol><p>Read, zip, upload. Three ordinary actions. No perimeter control catches this because nothing is breached. No auth alert fires because the login is valid. The attack lives entirely inside legitimate behavior. The only way to see it is to stop looking at events individually and start looking at the pattern they form together.</p><p><strong>Problem 1 — the workstation logs almost nothing by default</strong></p><p>Before correlating anything, I found the telemetry wasn’t even there. A default Windows 11 workstation doesn’t log these events. Three audit subcategories must be explicitly enabled: File System (4663) plus a SACL on the folder, PowerShell Script Block Logging (4104), and Filtering Platform Connection (5156). Without them, the read, the compression, and the exfiltration are all invisible. If these aren’t on <em>before</em> the attack, there’s nothing to detect after — the evidence was never written.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1LoptNEb58AKqbhooSulhA.png" /><figcaption><em>The file-read stage caught in Splunk via Event ID 4663 — the first of three subcategories that are disabled by default on a stock Windows 11 workstation.</em></figcaption></figure><p><strong>Problem 2 — the compression step tried to hide</strong></p><p>I expected to catch the compression via Event ID 4688 (Process Creation). It never fired. Compress-Archive is a native PowerShell cmdlet — it runs inside the existing PowerShell engine and doesn&#39;t spawn a child process, so there&#39;s no 4688. Any detection relying only on process-creation auditing is blind to PowerShell-native staging. That&#39;s why Script Block Logging (4104) matters — it captures the cmdlet with full parameter bindings, including exact source and destination paths.</p><p><strong>The detection — correlating three stages into one incident</strong></p><pre>index=windows (EventCode=4663 Object_Name=&quot;*CustomerExports*&quot;)<br>    OR (EventCode=4104 _raw=&quot;*CompressFilesHelper*&quot;)<br>    OR (EventCode=5156 Destination_Port=4444)<br>| transaction host maxspan=30m<br>| where eventcount &gt;= 3<br>| table _time, host, eventcount, duration</pre><p>The three OR conditions each match one stage. transaction host maxspan=30m groups events on the same host within a 30-minute window into one logical unit — the line that turns scattered events into a story. where eventcount &gt;= 3 only fires when all three stages hit the same host inside that window. One stage, nothing. Two, nothing. All three in sequence — that&#39;s a kill chain, not coincidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ChuETHBGAxo0WqS68UXnKA.png" /><figcaption><em>27 raw events correlated into 1 incident, spanning 25 minutes on FIN-WKS-04. Three innocent-looking actions revealed as one exfiltration chain.</em></figcaption></figure><p>Result: <strong>27 raw events correlated into 1 incident, spanning 25 minutes on FIN-WKS-04.</strong> One alert with the full narrative instead of 27 disconnected log lines nobody would piece together manually.</p><p><strong>What happens after the alert fires</strong></p><p>Detecting the chain is only step one. Here’s how I’d actually triage this in a live SOC:</p><p><strong>Severity:</strong> High. Confirmed customer PII touched, compressed, and sent to an external host — this isn’t “suspicious,” it’s a completed exfiltration, not an attempt.</p><p><strong>First move:</strong> Isolate FIN-WKS-04 from the network immediately to stop any further outbound activity, and disable the account pending investigation — not delete it, since the account and its full history are now evidence.</p><p><strong>Scope the blast radius:</strong> Pull every file that account touched in the same session window, not just the one flagged file — the transaction proves this exfiltration; it doesn’t rule out others in the same session.</p><p><strong>Escalate, don’t conclude:</strong> This is exactly the kind of finding that gets handed to IR and HR jointly, not closed solo by a SOC analyst. My job at this stage is to hand over a clean timeline, not decide intent — that’s a human resources and legal call, not a technical one.</p><p><strong>Tune after, don’t tune during:</strong> The 30-minute window and the 3-event threshold both need validation against real traffic before this becomes a production rule — a busy analyst doing legitimate bulk export-and-archive work could trip the same pattern. That tuning is exactly what separates a lab detection from a production one.</p><p>That last part matters more than the query itself. A rule that fires is only useful if someone downstream knows what to do the moment it does.</p><p><em>This is Phase 5 of a full Splunk Enterprise SIEM lab I built from scratch — 6 OWASP Top 10 detections, a live SOC dashboard, incident reports, and two documented detection gaps. Full lab and all SPL: github.com/ronakmishra28/meridian-soc-detection-lab</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aeac34ea7190" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/how-i-detected-an-insider-threat-in-splunk-when-every-single-action-looked-legitimate-aeac34ea7190">How I Detected an Insider Threat in Splunk When Every Single Action Looked Legitimate</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built a SOAR Automation in Microsoft Sentinel That Responds to Attacks Without a Single Click]]></title>
            <link>https://infosecwriteups.com/how-i-built-a-soar-automation-in-microsoft-sentinel-that-responds-to-attacks-without-a-single-click-e41226314564?source=rss-5de7e9afc0de------2</link>
            <guid isPermaLink="false">https://medium.com/p/e41226314564</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soar]]></category>
            <category><![CDATA[microsoft-sentinel]]></category>
            <category><![CDATA[soc]]></category>
            <dc:creator><![CDATA[Ronak Mishra]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 18:42:23 GMT</pubDate>
            <atom:updated>2026-06-12T07:10:38.514Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Logic App playbook, an automation rule, a real permissions error — and what it taught me about how automated incident response actually works.</h4><p>An SSH brute force incident fires in Sentinel. High severity. 260 failed attempts in 28 minutes. Without automation, an analyst gets paged, manually opens the incident, investigates, and responds. That process takes 15 to 30 minutes on a good day — longer if it’s 3am.</p><p>With SOAR, the moment that incident is created, a playbook runs automatically. No analyst needed. No manual trigger. The response is documented, timestamped, and logged before anyone even opens their laptop.</p><p>This is how I built that automation in Microsoft Sentinel from scratch — and what I ran into along the way.</p><h3>What SOAR actually is</h3><p>SOAR stands for Security Orchestration, Automation and Response. It’s the automation layer of the SOC — the thing that handles routine, well-understood incidents automatically so analysts can focus on threats that actually need human judgment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JJm9eaEwgmHCfTri2QA-aw.png" /></figure><p>In real enterprise SOCs, SOAR playbooks handle IP blocking on firewalls, disabling compromised accounts in Active Directory, sending alerts to Teams or Slack, opening ServiceNow tickets, enriching incidents with threat intelligence, and isolating endpoints — all without human intervention.</p><h3>The two pieces — and how they connect</h3><p>In Microsoft Sentinel, SOAR has two components that work together:</p><p><strong>The Logic App playbook</strong> — the actual workflow that runs when triggered. Built in Azure Logic App Designer without writing a single line of code. It defines what happens: add a comment, send an email, block an IP, disable an account.</p><p><strong>The automation rule</strong> — the connector between a Sentinel incident and the playbook. It listens for specific conditions and automatically calls the playbook when they’re met.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fJGyF6CQwp1c6D6ap_kk9g.png" /></figure><p>The whole chain executes in seconds. Zero analyst involvement required.</p><h3>Step 1 — The automation rule</h3><p>The automation rule lives in Sentinel’s Automation section. I configured it with three settings:</p><ul><li><strong>Trigger:</strong> When incident is created</li><li><strong>Condition:</strong> Analytics rule name contains “SSH Brute Force Attack Detected”</li><li><strong>Action:</strong> Run playbook → Sentinel-Block-IP-Playbook</li></ul><p>The condition scope matters — you don’t want every incident triggering the same playbook. By scoping it to the specific analytics rule name, only SSH Brute Force incidents trigger this automation. Every other incident type gets its own dedicated response logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HunBfuABf2Qq6hHL7mgAsg.png" /><figcaption>Automation rule ‘Auto-Respond to SSH Brute Force’ active in Sentinel — Status: Active, Workspace: sc200-lab, Action: Run Logic App. One rule, one condition, fully automated.</figcaption></figure><h3>Step 2 — The Logic App playbook</h3><p>The playbook is built in Azure Logic App Designer. Two steps, no code:</p><p><strong>Trigger — Microsoft Sentinel Incident:</strong> The playbook wakes up when called by the automation rule. It receives the full incident context — ID, title, severity, attacker entities, and the ARM resource ID needed to write back to the incident.</p><p><strong>Action — Add Comment to Incident (V3):</strong> The playbook adds this automated response comment to the incident:</p><p><strong>Automated comment added to incident:</strong></p><pre>AUTOMATED RESPONSE: High severity SSH Brute Force incident <br>detected. Attacker IP has been flagged. SOC analyst notified <br>to block IP via UFW on Ubuntu endpoint immediately.</pre><p>Every automated action gets logged in the incident timeline. This creates a timestamped audit trail essential for compliance, post-incident review, and SOC reporting. Even if no analyst touches the incident for an hour, there’s a record of exactly what the automation did and when.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h9wMIKKvowaAEItmGQd2ug.png" /><figcaption>Sentinel-Block-IP-Playbook in Logic App Designer — Microsoft Sentinel incident trigger connected to Add comment to incident (V3). The automated response message is visible in the right panel. Two steps, zero code.</figcaption></figure><h3>Step 3 — Testing it and what actually happened</h3><p>After building the playbook I manually triggered it against the SSH Brute Force incident to verify the end-to-end flow. Here’s what the run history showed:</p><ul><li>Trigger — Microsoft Sentinel Incident: <strong>Succeeded</strong> (green checkmark, 0s)</li><li>Action — Add comment to incident: <strong>BadRequest error</strong></li></ul><p>The trigger succeeded — the playbook correctly received the Sentinel incident and started executing. The action step hit a BadRequest error because manually triggering a playbook outside of a live incident doesn’t automatically pass the Incident ARM ID that the Add Comment action requires.</p><p>This is a known limitation of manual testing. When the automation rule triggers the playbook automatically on a real incident, the ARM ID is passed correctly as part of the incident context and the action completes successfully.</p><p>I’m documenting this because it’s a realistic troubleshooting scenario. In a real enterprise environment, this exact error shows up when permissions or context aren’t configured correctly and knowing why it happens is more valuable than a perfectly clean lab screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GJZpEcKBAfNlGnoy3976oQ.png" /><figcaption>Logic App run history — trigger succeeded (green checkmark, 0s), action hit BadRequest on manual test due to missing ARM ID context. In production triggered by automation rule, the full incident context is passed and the action completes.</figcaption></figure><h3>The permissions challenge — what no tutorial mentions</h3><p>Before any of this worked, the automation rule failed with a permissions error. This is worth documenting because it’s one of the most common SOAR configuration issues in real environments and almost no beginner tutorial covers it.</p><p>The root cause: Microsoft Sentinel uses a dedicated service account to run playbooks. That service account needs the <strong>Microsoft Sentinel Automation Contributor</strong> role on the resource group containing the playbook. Without it, the automation rule fires but the playbook silently fails.</p><p>The fix — navigate to the incident in Sentinel, click Run Playbook, and click “Grant permissions.” Sentinel automatically assigns the correct role to the resource group. Two clicks, but you need to know it exists.</p><p>Understanding this permission model is what separates someone who has configured SOAR in a real environment from someone who has only read about it.</p><h3>What this looks like at scale</h3><p>The playbook I built adds a comment. Real enterprise playbooks do far more with the same architecture:</p><ul><li>Push block rules to Palo Alto or Cisco firewalls via API</li><li>Disable compromised accounts in Azure Active Directory</li><li>Send high-priority alerts to a Teams SOC channel</li><li>Open a P1 ticket in ServiceNow automatically</li><li>Enrich incidents with VirusTotal intelligence on attacker IPs</li><li>Isolate compromised endpoints via Microsoft Defender</li></ul><p>The architecture is identical — Logic App trigger, automated actions, audit trail. The only difference is the action steps and the API integrations. Once you understand the trigger-condition-action chain, you can build any of these.</p><h3>The one thing that makes SOAR actually work</h3><p>SOAR only works for attacks you’ve already understood well enough to automate. You can’t automate a response you haven’t manually investigated first.</p><p>The SSH brute force playbook works because I spent Day 3 manually investigating the attack — building the timeline, identifying the attacker IP, confirming no successful logins, running the containment command. Only after doing that manually did I have enough understanding to say “this is repeatable and automatable.”</p><p>That sequence — manual investigation first, automation second — is how real SOC teams build their playbook library. Every automated response started as a manual one.</p><p>This is Day 6 of a 7-day Microsoft Sentinel enterprise lab I built from scratch. The full lab covers SSH and RDP brute force detection, KQL threat hunting, SOAR automation, and a live SOC dashboard — all documented on GitHub at <a href="https://github.com/ronakmishra28/microsoft-sentinel-enterprise-siem-lab"><strong>microsoft-sentinel-enterprise-siem-lab</strong></a>. Previous post in this series covered the KQL detection rule that generates the incident this playbook responds to.</p><p>If you’re building Sentinel SOAR automation for SC-200 prep or your own lab — feel free to connect on LinkedIn.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e41226314564" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/how-i-built-a-soar-automation-in-microsoft-sentinel-that-responds-to-attacks-without-a-single-click-e41226314564">How I Built a SOAR Automation in Microsoft Sentinel That Responds to Attacks Without a Single Click</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The KQL Query That Caught 260 Brute Force Attempts in Microsoft Sentinel]]></title>
            <link>https://infosecwriteups.com/the-kql-query-that-caught-260-brute-force-attempts-in-microsoft-sentinel-b305b68afb69?source=rss-5de7e9afc0de------2</link>
            <guid isPermaLink="false">https://medium.com/p/b305b68afb69</guid>
            <category><![CDATA[microsoft-sentinel]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[kql]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Ronak Mishra]]></dc:creator>
            <pubDate>Fri, 22 May 2026 13:01:01 GMT</pubDate>
            <atom:updated>2026-06-02T05:07:08.802Z</atom:updated>
            <content:encoded><![CDATA[<h4>A real SSH brute force attack, a custom detection rule built from scratch, and the exact query that caught every single attempt before a single successful login.</h4><p>At 05:05 UTC, the first wave started. 48 failed SSH authentication attempts. Then 120 more. Then another 88. In under 30 minutes, 260 password attempts hit my Ubuntu server from a single attacker IP.</p><p>Microsoft Sentinel caught all of it. Not because of a built-in rule — because of a custom KQL analytics rule I wrote from scratch. This post is about that query, what each line does, and why it works.</p><h3>The attack</h3><p>I’m building a Microsoft Sentinel enterprise lab — two endpoints (Windows 11 and Ubuntu 22.04) connected to Sentinel via Azure Arc, with a Kali Linux VM acting as the attacker. For this simulation I ran Hydra against the Ubuntu server’s SSH service — the same tool real attackers use against any Linux server exposed to the internet.</p><blockquote>The numbers: 260 failed attempts across 3 attack waves over 28 minutes. 0 successful logins.</blockquote><p>Each failed attempt produced a Syslog entry like this:</p><p><strong><em>What a single brute force attempt looks like in raw Syslog</em></strong></p><pre>Facility:      authpriv<br>SyslogMessage: Failed password for ronak from 10.0.0.100 port 54321 ssh2<br>Computer:      ronak<br>TimeGenerated: 2026-04-22T05:05:14Z</pre><p>One of these is noise. 260 in 28 minutes from the same IP is an attack. The challenge is making Sentinel tell the difference automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rUTJef7gR4vtnOo5rbYm-Q.png" /><figcaption>260 failed SSH authentication attempts from Kali Linux (10.0.0.100) flowing into Sentinel in real time — all captured in the Syslog table.</figcaption></figure><h3>The KQL detection rule — every line explained</h3><p><strong><em>SSH Brute Force Detection — Full Analytics Rule</em></strong></p><pre><br>Syslog<br>| where Facility == &quot;authpriv&quot;<br>| where SyslogMessage contains &quot;Failed password&quot;<br>      or SyslogMessage contains &quot;authentication failure&quot;<br>| where Computer == &quot;ronak&quot;<br>| summarize FailedAttempts = count()<br>      by Computer, HostName, bin(TimeGenerated, 5m)<br>| where FailedAttempts &gt; 10</pre><p>Syslog</p><p>Start with the Syslog table — this is where all Linux authentication events land after the Azure Monitor Agent ingests them from the Ubuntu endpoint.</p><p>| where Facility == &quot;authpriv&quot;</p><p>Filter to authentication events only. The authpriv facility captures SSH, sudo, and PAM authentication. This cuts all the noise — cron jobs, kernel messages, service logs — in one line.</p><p>| where SyslogMessage contains &quot;Failed password&quot; or &quot;authentication failure&quot;</p><p>Two conditions because SSH produces two different failure messages. “Failed password” fires when the user exists but the password is wrong. “Authentication failure” fires for invalid usernames. A real attacker generates both — you need to catch both.</p><p>| summarize FailedAttempts = count() by Computer, HostName, bin(TimeGenerated, 5m)</p><p>This is the most important line. bin(TimeGenerated, 5m) groups events into 5-minute buckets and counts them. Without this, you alert on every single failure — 260 individual alerts that create noise and hide the pattern. With it, you get one number per time window that immediately shows the rate of attack. This is what makes it a rate-based detection instead of a per-event alert.</p><p>| where FailedAttempts &gt; 10</p><p>The threshold. A legitimate user mistyping their password fails once or twice. 10 failures in 5 minutes from the same source is automated tooling, not a human. In my lab, the attacker hit 48 in the first wave alone — this fired almost immediately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1jaqxa6r06bUHL3ZnS-6Hg.png" /><figcaption>The analytics rule in Sentinel — High severity, MITRE T1110.001, runs every 5 minutes. Query results confirm detection logic works against real attack data.</figcaption></figure><blockquote><strong>T1110.001Brute Force</strong>: Password Guessing — mapped directly in the analytics rule. Every time this fires, Sentinel auto-generates a High severity incident.</blockquote><h3>What Sentinel generated automatically</h3><p>Within 90 minutes of the attack starting, the rule fired and Sentinel created Incident ID 1 — SSH Brute Force Attack Detected — High severity — Active. No manual trigger. No human needed to notice the pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yljNABRw31Z-hdGEq3y7Dw.png" /><figcaption>Sentinel auto-generated Incident ID 1 — SSH Brute Force Attack Detected — High severity. This is the end-to-end detection pipeline working as intended.</figcaption></figure><h3>The investigation — two more KQL queries</h3><p>Once the incident fired, two hunting queries confirmed everything I needed to know:</p><p><strong><em>Identify the attacker IP and targeted account</em></strong></p><pre>Syslog<br>| where SyslogMessage contains &quot;Failed password&quot;<br>| where TimeGenerated &gt; ago(7d)<br>| parse SyslogMessage with * &quot;from &quot; AttackerIP &quot; port&quot; *<br>| parse SyslogMessage with * &quot;for &quot; TargetUser &quot; from&quot; *<br>| summarize TotalAttempts = count() by AttackerIP, TargetUser, HostName<br>| order by TotalAttempts desc</pre><p><strong><em>Confirm no successful logins</em></strong></p><pre>Syslog<br>| where SyslogMessage contains &quot;Accepted password&quot;<br>      or SyslogMessage contains &quot;Accepted publickey&quot;<br>| where TimeGenerated &gt; ago(7d)<br>| project TimeGenerated, HostName, SyslogMessage</pre><p>Result: 10.0.0.100–260 attempts. Zero successful authentications anywhere in the logs. The attacker ran for 28 minutes and never got in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Wjd7Eiawgem3m2lKxlAcg.png" /><figcaption>KQL forensics confirmed attacker IP, targeted username, and 260 total attempts. Zero successful logins — attack failed completely.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*crPT7r-sLK9jKlHPgWyMhQ.png" /><figcaption>Attack timeline showing 3 distinct waves — 48, 120, and 88 attempts. Multi-wave pattern is characteristic of Hydra brute force tool behavior.</figcaption></figure><h3>The one thing that makes this query actually work</h3><p>Everything in this rule comes down to one decision: rate-based detection vs per-event alerting.</p><p>If I had alerted on every single failed login, I’d have had 260 alerts to triage. Each one would be identical. None of them would tell me anything the others didn’t. That’s alert fatigue — the thing that burns out SOC analysts in real environments.</p><p>By aggregating with bin(TimeGenerated, 5m), I got one incident that showed the complete picture: 260 attempts, 3 waves, 28 minutes, one attacker IP, zero successful logins. Everything a SOC analyst needs to investigate and contain in a single incident.</p><p>That’s the shift from writing a query to writing a detection rule.</p><blockquote>This is one piece of a 7-day Microsoft Sentinel enterprise lab I built from scratch — SSH and RDP brute force detection, post-exploitation recon detection, KQL threat hunting, SOAR automation, and a full SOC dashboard. Full lab on GitHub at <strong>github.com/ronakmishra28</strong>. More writeups coming.</blockquote><blockquote>If you’re building your own Sentinel lab or studying for SC-200 — feel free to connect on LinkedIn. Always good to compare notes with people doing the actual work.</blockquote><p>#microsoftsentinel #kql #soc #cybersecurity #blueteam #siem #sc200 #azure #infosec #detectionengineering #homelab</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b305b68afb69" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/the-kql-query-that-caught-260-brute-force-attempts-in-microsoft-sentinel-b305b68afb69">The KQL Query That Caught 260 Brute Force Attempts in Microsoft Sentinel</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Windows Event IDs Every SOC Analyst Should Know (With Real Lab Evidence)]]></title>
            <link>https://infosecwriteups.com/5-windows-event-ids-every-soc-analyst-should-know-with-real-lab-evidence-9bf8d1f88bca?source=rss-5de7e9afc0de------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bf8d1f88bca</guid>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ronak Mishra]]></dc:creator>
            <pubDate>Thu, 23 Apr 2026 13:35:46 GMT</pubDate>
            <atom:updated>2026-06-04T08:15:44.300Z</atom:updated>
            <content:encoded><![CDATA[<h4>These aren’t just numbers from a study guide — they’re the fingerprints attackers leave behind. Here’s what each one looks like inside a real SIEM.</h4><p>By Ronak Mishra · Security+ Certified · Wazuh Home Lab</p><p>Most cybersecurity courses hand you a list of Windows Event IDs and tell you to memorize them. What they don’t show you is what these events actually look like when they fire — the raw fields, the timestamps, the account names, the parent processes.</p><p>I set up a home lab running Wazuh SIEM connected to a Windows 11 agent and deliberately triggered each of these events to see exactly what gets captured. Every screenshot in this post is from that lab. No stock images, no theory — just real detections.</p><p>Here are the 5 event IDs that matter most when something bad is happening on a Windows machine.</p><p><strong>Event ID 4625 Failed logon attempt</strong></p><blockquote>“An attacker is outside your network trying passwords one by one, hoping something works. This is what it looks like inside your SIEM before they get in.”</blockquote><p>Event ID 4625 fires every time a Windows logon attempt fails. One or two of these is completely normal — people mistype passwords. But when you see a cluster of them hitting in rapid succession targeting the same account, that’s a brute force attack in progress.</p><p>The fields that matter most: targetUserName (who they’re targeting), subStatus (why it failed), and logonType (how they’re trying to get in). SubStatus code 0xc0000064 means the targeted user doesn’t even exist — a classic sign of username enumeration before a brute force.</p><p>I simulated this by running repeated failed logon attempts against a non-existent account called “fakeuser” on my Windows 11 VM. Here’s what Wazuh captured:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uO_J5UloBalrsiFH6Zbq2A.png" /><figcaption>12 failed logon attempts against a non-existent user, captured in Wazuh in under 2 minutes. The spike on the right shows the exact moment the attempts were made.</figcaption></figure><p>Expanding one of those alerts reveals exactly what happened at the field level — the targeted account name, the failure reason code, and the plain-English confirmation from Windows itself:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uqbu6PO1boxwZ6si5R3xdg.png" /><figcaption>subStatus 0xc0000064 confirms the targeted account doesn’t exist. The event ID 4625 is highlighted in yellow by Wazuh — and Windows confirms it in plain English at the bottom.</figcaption></figure><p><strong>Event ID 4688 New process created</strong></p><blockquote>“Malware can’t do anything without running a process. This event fires the moment something executes — including the tools attackers use to steal credentials or move through a network.”</blockquote><p>Every time a new process starts on Windows, Event ID 4688 fires — if process creation auditing is enabled. The key isn’t just what process ran, it’s what spawned it. The parent-child relationship tells the real story.</p><p>A legitimate user opening Notepad looks completely different from malware spawning PowerShell from inside a Word document. In an attack scenario, watch for: PowerShell or cmd spawned by Office applications, encoded command line arguments, or executables running from temp folders.</p><p>I triggered this by launching cmd, PowerShell, and Notepad from my Windows VM. Wazuh captured 345 process creation events — the spike you see in the chart is the exact moment those commands ran:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X_mI5GD9gfhVcW0TAgojqg.png" /><figcaption>345 process creation events captured — the spike at 20:29 is when the test commands executed. Row 1 shows Notepad being spawned by Notepad itself, row 2 shows PowerShell as the parent process.</figcaption></figure><p>The expanded view shows the full execution chain in one log entry — exactly what process ran, what launched it, and who triggered it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5zPKT7oOwM-0W74fY-phvA.png" /><figcaption>newProcessName shows what ran. parentProcessName shows PowerShell launched it. In a real attack this parent-child chain is where you catch malicious execution.</figcaption></figure><p><strong>Event ID 4720 User account created</strong></p><blockquote>“The attacker is already inside. Now they’re creating a backdoor account so they can return even if their original access gets cut off.”</blockquote><p>Event ID 4720 fires whenever a new local or domain user account is created. In a normal environment this should be rare and expected — IT provisioning a new employee, for example. If you see this event at 2am, created by a non-admin process, with no change ticket backing it up, that’s a persistence mechanism being installed.</p><p>This maps directly to MITRE ATT&amp;CK T1136 — Create Account. It’s one of the most reliable persistence indicators in Windows environments because attackers almost always need a fallback entry point.</p><p>I created a test account called “testattacker” using PowerShell to simulate this. Wazuh caught it immediately — a single isolated event with zero noise around it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fA0xpczARnXj6ZfJ3PuWVg.png" /><figcaption>1 hit. That’s it. One account creation event isolated at 20:37 — both samAccountName and targetUserName confirm the backdoor account name: testattacker.</figcaption></figure><p>The expanded view shows every detail Wazuh captured — the account name, who created it, and the event ID confirmed in yellow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wab9Fvo5SnaYgH6-3TZJ1Q.png" /><figcaption>samAccountName and targetUserName both show testattacker. subjectUserName shows ronakmishra — the account that created it. Event ID 4720 highlighted in yellow by Wazuh.</figcaption></figure><p><strong>Event ID 4663 File or object accessed</strong></p><blockquote>“Ransomware touches hundreds of files in seconds. A credential-stealing tool targets one specific file. Either way — this event is watching.”</blockquote><p>Event ID 4663 logs access attempts to specific files and folders when auditing is enabled. In Wazuh, the File Integrity Monitoring module captures this same behavior in real time — logging every file that gets created, modified, or deleted in monitored directories, including SHA1 and MD5 hashes before and after so you can prove exactly what changed.</p><p>Ransomware behavior looks like hundreds of these events firing in rapid sequence across multiple directories. A targeted attack looks like one precise access to a credential store or sensitive config file. Volume and pattern are everything.</p><p>My Wazuh FIM is running in realtime mode on monitored directories. I created a file called “you are hacked.txt” to trigger it deliberately. Here’s what got captured the moment that file was created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ohvTMhz7_0TvchgmdYkYXA.png" /><figcaption>Wazuh FIM detected the file in real time — path, user, SHA1 hash, and permissions all captured the moment it appeared. The filename makes the scenario obvious.</figcaption></figure><p><strong>How to think about these as a SOC analyst</strong></p><p>Knowing what each event ID means in isolation is only half the skill. The real work is correlation — one event rarely tells the full story. Here’s how these connect in real attack scenarios:</p><ul><li>Multiple 4625s from one source followed by a 4624 right after — brute force that succeeded</li><li>4688 showing PowerShell spawned by an Office application — likely a phishing payload executing</li><li>4720 outside business hours with no change ticket — unauthorized persistence attempt</li><li>Hundreds of 4663s firing across many files in under 30 seconds — ransomware encryption in progress</li></ul><p>That pattern — two or more signals, a time window, a threshold — is the foundation of detection engineering. It’s what separates someone who reads logs from someone who builds detection rules. And it’s exactly the thinking SOC roles are looking for in interviews.</p><blockquote><strong>I’m building out more detection scenarios in my home lab and documenting everything as I go — Wazuh, Splunk, MITRE ATT&amp;CK mapping, and more. If you’re on the same path — studying for CySA+, building your first SIEM lab, or working toward your first SOC role — feel free to connect on LinkedIn. Always good to compare notes with people actually doing the work.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bf8d1f88bca" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/5-windows-event-ids-every-soc-analyst-should-know-with-real-lab-evidence-9bf8d1f88bca">5 Windows Event IDs Every SOC Analyst Should Know (With Real Lab Evidence)</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built a Web Security Lab and Watched SQL Injection Get Blocked in Real Time]]></title>
            <link>https://ronakonweb.medium.com/i-built-a-web-security-lab-and-watched-sql-injection-get-blocked-in-real-time-5f3bc8697dd8?source=rss-5de7e9afc0de------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f3bc8697dd8</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[waf]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <dc:creator><![CDATA[Ronak Mishra]]></dc:creator>
            <pubDate>Thu, 19 Mar 2026 05:55:20 GMT</pubDate>
            <atom:updated>2026-03-19T06:01:13.972Z</atom:updated>
            <content:encoded><![CDATA[<p>From deploying DVWA to blocking real attacks with SafeLine WAF — here’s everything I learned as a beginner (with screenshots &amp; code)</p><h4><strong>Introduction</strong></h4><p>A few weeks ago I decided it was time to stop just watching YouTube tutorials and actually build something real.</p><p>I wanted to understand how web attacks work and how to stop them. So I created a complete home lab: I deployed <strong>Damn Vulnerable Web Application (DVWA)</strong>, attacked it from Kali Linux, then put <strong>SafeLine WAF</strong> in front of it to see how it actually detects and blocks attacks.</p><p>The result? I went from “SQL injection works” to seeing it blocked instantly— with full logs showing exactly what happened.</p><p>Here’s the full story of the lab, what I learned, and why this kind of project is perfect for anyone preparing for a SOC analyst role.</p><h4><strong>1. Setting Up the Vulnerable Target (DVWA)</strong></h4><p>I started by spinning up an Ubuntu VM and installing the LAMP stack (Apache + MariaDB + PHP). Then I cloned DVWA from GitHub.</p><p>This part was harder than expected. I hit multiple MariaDB errors — “Access denied” and “Unknown database”. After fixing user permissions and resetting the database via setup.php, DVWA finally came alive.</p><p>I set the security level to <strong>Low</strong> so I could easily trigger vulnerabilities for testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z6WwQZS4e2C89TRLJyaEFw.png" /><figcaption>DVWA login page after successful setup (vulnerable state)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JWc_-jsH6vaNMDB7qvWpmw.png" /><figcaption>DVWA main dashboard with all vulnerability modules visible</figcaption></figure><p><strong>Lesson learned:</strong> Real-world setup is never as clean as the documentation says. Troubleshooting database connection issues taught me more about Linux services than any course ever did.</p><h4><strong>2. Installing SafeLine WAF</strong></h4><p>Next came the star of the show — SafeLine.</p><p>I ran the official one-liner on Ubuntu:</p><pre>sudo bash -c &quot;$(curl -fsSLk https://waf.chaitin.com/release/latest/manager.sh)&quot; -- --en</pre><p>It pulled Docker containers and set everything up automatically. A few minutes later, the management dashboard was live at <a href="https://10.0.0.61:9443/sites.">https://10.0.0.61:9443/sites</a></p><p>I logged in, changed the password, and activated the 7-day Pro trial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SvJ-u-05Mzd82Xw_ODHX4A.png" /><figcaption>Terminal showing SafeLine installation complete</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LNgIqoucWNiQIdZVrjSNAw.png" /><figcaption>SafeLine login screen</figcaption></figure><p><strong>Lesson learned:</strong> Modern security tools are surprisingly easy to deploy if you follow the official script. The real skill comes in configuring them properly.</p><h4><strong>3. Adding HTTPS with Self-Signed Certificate</strong></h4><p>To make the setup realistic, I generated a self-signed SSL certificate using OpenSSL:</p><pre>openssl genrsa -out priv.key 4096<br>openssl req -new -key priv.key -out priv.csr<br>openssl x509 -req -days 365 -in priv.csr -signkey priv.key -out priv.crt</pre><p>Then I uploaded the .crt and .key files in SafeLine and assigned them to the DVWA application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pw-cn0nuRHgw4AF5Wn8f9Q.png" /><figcaption>OpenSSL commands running in terminal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AG_j74vhp-gMxfPubwopoQ.png" /><figcaption>Certificate successfully imported in SafeLine</figcaption></figure><p><strong>Lesson learned:</strong> Even in a lab, proper HTTPS configuration matters. It taught me how reverse proxies handle certificates in real environments.</p><h4><strong>4. Configuring the Protected Application &amp; Security Rules</strong></h4><p>I added DVWA as an application in SafeLine with:</p><ul><li>Domain: dvwa-lab</li><li>Backend: <a href="http://127.0.0.1:8080/">http://127.0.0.1:8080</a></li><li>Frontend: HTTPS</li></ul><p>Then I enabled and tuned these rules:</p><ul><li><strong>HTTP Flood Defense</strong> (block after 3 requests in 10 seconds)</li><li><strong>Custom Authentication</strong> (forced login for the attacker IP)</li><li><strong>Custom Deny Rule</strong> (instant block of Kali’s IP)</li><li><strong>SQL Injection &amp; XSS Protection</strong> in Balance mode</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wt0Z5DvCQee727Nm6RyL-g.png" /><figcaption>DVWA added in SafeLine dashboard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U2bvv-XAbhLFqb75q11FUQ.png" /><figcaption>HTTP Flood, Custom Auth, and Deny rules configured</figcaption></figure><p><strong>Lesson learned:</strong> A WAF is only as good as its rules. Tuning them gave me real insight into how security teams balance protection vs. false positives.</p><h4><strong>5. Attack Simulation &amp; Blocking (The Fun Part)</strong></h4><p>From Kali I targeted <a href="https://dvwa-lab./">https://dvwa-lab</a></p><p><strong>Without protection:</strong></p><ul><li>SQL Injection payload ‘ OR ‘1’=’1 → successfully dumped all users</li></ul><p><strong>With SafeLine enabled:</strong></p><ul><li>Same payload → instantly blocked (403 Forbidden)</li><li>Reflected XSS → blocked</li><li>HTTP Flood → IP temporarily blocked</li><li>Custom deny rule → immediate block</li></ul><p>Every block showed up in the SafeLine dashboard with full details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W3GOi97POF0lWpMj2l886g.png" /><figcaption>Successful SQL injection without WAF</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x3sp9LH4PUpqNSHAUQEiSw.png" /><figcaption>Same attack blocked — Access Forbidden page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gJG_YHjbtfjW0-8_TputBg.png" /><figcaption>SafeLine logs showing blocked SQL injection with payload</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-8ypE6nWX7K8w37fof_AbQ.png" /><figcaption>SafeLine statistics dashboard after attacks</figcaption></figure><p><strong>Lesson learned:</strong> Seeing an attack go from “success” to “blocked in real time” was incredibly satisfying. This is exactly the kind of visibility SOC analysts need.</p><h4><strong>What I Learned (The Most Valuable Part)</strong></h4><p>This lab taught me way more than I expected:</p><ul><li>How real web vulnerabilities actually work and look in traffic</li><li>How a WAF acts as a reverse proxy and inspects every request</li><li>The importance of proper configuration (certificates, hosts file, rule tuning)</li><li>How to read and interpret security logs (very useful for SOC work)</li><li>Troubleshooting skills under pressure (MariaDB issues, service restarts, networking)</li></ul><p>Most importantly, I now understand the <strong>attacker → defender</strong> cycle that happens every day in security operations.</p><p><strong>Future plan:</strong> Forward SafeLine logs into my Splunk lab to build correlation searches.</p><h4><strong>Resources I Used</strong></h4><ul><li>“EASY CYBERSECURITY Home Lab — SafeLine WAF” by The Social Dork</li><li>SafeLine official documentation</li><li>DVWA GitHub repository</li><li>Full project &amp; documentation: <a href="https://github.com/ronakmishra28/waf-dvwa-detection-lab">https://github.com/ronakmishra28/waf-dvwa-detection-lab</a></li></ul><h4><strong>Final Thoughts</strong></h4><p>This was my first complete cybersecurity home lab, and it changed how I think about web security.</p><p>Instead of just reading about attacks, I was able to see them happen and understand how they are detected and stopped.</p><p>This lab was the first time I felt like I wasn’t just learning security — I was actually doing it.</p><p>If you’re preparing for a SOC role, I’d highly recommend building something like this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f3bc8697dd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding SIEM: A Practical Look at Security Information and Event Management in Cybersecurity]]></title>
            <link>https://ronakonweb.medium.com/understanding-siem-a-practical-look-at-security-information-and-event-management-in-cybersecurity-61d295ab572d?source=rss-5de7e9afc0de------2</link>
            <guid isPermaLink="false">https://medium.com/p/61d295ab572d</guid>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[log-analysis]]></category>
            <category><![CDATA[threat-detection]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ronak Mishra]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 03:51:18 GMT</pubDate>
            <atom:updated>2026-02-21T03:51:18.526Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey, it’s Ronak checking in late night here on February 20, 2026, as usual when I’m digging into this stuff. I’ve been through the CompTIA Security+ already, but SIEM keeps coming up in everything I read and every discussion about real defensive security. It’s one of those core pieces that separates just knowing about threats from actually spotting and handling them effectively. In this post, I want to share what SIEM really involves, how it fits into everyday cybersecurity work, and some hands-on ways I’ve explored it through platforms like TryHackMe. The goal here is straightforward: break it down clearly so anyone interested in the field can get a solid grasp without any sales pitch — just straight info to help learn and apply.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUTAxzpCzO04TM03-YB49Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KxWGxIphHnD-4E1yYPJvgw.jpeg" /></figure><h3>What SIEM Actually Does</h3><p>Security Information and Event Management (SIEM) is basically a system that pulls together logs and events from all parts of an IT setup servers, firewalls, endpoints, cloud services, applications — and makes sense of them in one place. It collects data in real time, standardizes it so everything can be compared, looks for patterns or odd behavior, and flags potential issues so teams can act.</p><p>At its heart, SIEM helps with visibility: instead of staring at separate logs from dozens of devices, you get a centralized view that can spot things like repeated failed logins followed by unusual file access, which might point to an attack. It’s used for ongoing monitoring, investigating incidents, and even meeting compliance needs by keeping records of what happened when.</p><p>Common tools people mention include Splunk, Elastic Stack (ELK), Microsoft Sentinel, and others like QRadar. The concepts matter more than any one vendor, though — SIEM is about the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I-IYhs8SxBRaIPr-w54FAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xAFGcFyHhj4ONJQv7uJHsA.png" /></figure><h3>Core Components and How the Process Flows</h3><p>Here’s the typical flow of how SIEM handles data:</p><ol><li><strong>Log Collection</strong> — Agents or forwarders grab events from sources like Windows Event Logs, Syslog from Linux/network devices, firewall traffic, endpoint detections.</li><li><strong>Normalization and Parsing</strong> — Raw logs come in messy formats; SIEM converts them to a common structure (fields like timestamp, source IP, user, action) so analysis works across everything.</li><li><strong>Storage</strong> — Data gets indexed and stored, often with options for long-term retention for forensics or audits.</li><li><strong>Correlation and Analysis</strong> — This is the smart part: rules or algorithms link events (e.g., a login from a new country right after credential theft elsewhere) to detect threats.</li><li><strong>Alerting</strong> — When something matches a rule or anomaly threshold, it triggers an alert — prioritized by severity.</li><li><strong>Investigation and Response</strong> — Analysts dig in via dashboards, queries, or timelines; integrate with incident response tools to contain issues.</li><li><strong>Reporting</strong> — Generates summaries for compliance, management overviews, or post-incident reviews.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hyw2bX9R00HAHEw7DtpI1A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ltrGsF4maUJUXFIhzdm9bA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BTwokOeoMmouWT9Of-vnsQ.png" /></figure><h3>Theory vs. Getting Hands-On</h3><p>Reading about correlation rules is one thing; actually querying logs to find a suspicious process is another. Hands-on practice helps you understand why normalization matters (different log formats would make patterns invisible otherwise) and how false positives happen (a rule too broad floods you with noise).</p><p>Platforms like TryHackMe offer rooms that simulate this without needing your own expensive setup. The SOC Level 1 path covers basics like intro to SIEM, Splunk fundamentals, Elastic Stack, log analysis, and alert triage. Specific rooms worth checking:</p><ul><li>Introduction to SIEM</li><li>Splunk: The Basics</li><li>Elastic Stack: The Basics</li><li>Log Analysis with SIEM</li><li>Alert Triage With Splunk / Elastic</li></ul><p>These let you deploy a mini environment, ingest sample logs, write simple queries, and chase down simulated incidents. It’s practical for seeing how SIEM fits into SOC workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nrk2w1q_c7qDxmTn5WqcFg.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IUuNuavQjSsI4TFxVOTnfg.png" /></figure><h3>Common Real-World Scenarios SIEM Helps With</h3><p>From what I’ve seen in labs and discussions:</p><ul><li>Detecting brute-force attacks by correlating multiple failed logins from one IP.</li><li>Spotting malware callbacks through unusual outbound traffic patterns.</li><li>Identifying insider threats via abnormal user behavior (e.g., large data exfil after hours).</li><li>Investigating phishing follow-ons by linking email logs to endpoint changes.</li><li>Meeting audit requirements with searchable historical data.</li></ul><p>A quick comparison of key aspects:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y9vMW9jfd8ZTT_y_ImZn8A.png" /></figure><h3>Tips If You’re Exploring SIEM</h3><ul><li>Start with free/open-source options like Elastic Stack to experiment locally.</li><li>Focus on one tool’s query language first (SPL for Splunk, Query DSL for Elastic) before jumping around.</li><li>Practice writing correlation rules — think sequences like “failed login x5 then successful from same IP.”</li><li>Tune alerts in labs to cut noise; real SOCs drown without it.</li><li>Combine with threat intel feeds for better context.</li><li>Read logs from actual systems (safely) to see real formats.</li></ul><p>SIEM is a foundational tool in defensive cybersecurity — it’s about turning raw data into meaningful security insights. If you’ve played with any rooms or have questions on specific concepts like writing effective rules, feel free to drop a note. Always happy to chat about this stuff.</p><p>Stay curious and keep learning! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61d295ab572d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>