<?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 Shadin  on Medium]]></title>
        <description><![CDATA[Stories by Shadin  on Medium]]></description>
        <link>https://medium.com/@shdnkval?source=rss-327bceb076ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QOv9vvbuKd69luVE</url>
            <title>Stories by Shadin  on Medium</title>
            <link>https://medium.com/@shdnkval?source=rss-327bceb076ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:59:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shdnkval/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 My Own Cloud SOC from Scratch on AWS]]></title>
            <link>https://medium.com/@shdnkval/%EF%B8%8F-building-my-own-cloud-soc-from-scratch-on-aws-786f3c5b61e4?source=rss-327bceb076ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/786f3c5b61e4</guid>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Shadin ]]></dc:creator>
            <pubDate>Mon, 06 Oct 2025 17:51:02 GMT</pubDate>
            <atom:updated>2025-10-06T17:51:02.655Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZxEJvyTNdx9BWdpUjhaGLg.png" /></figure><p>Ever wondered what it really takes to build a full-fledged <strong>Security Operations Center (SOC)</strong> — not just a theory lab, but a working environment that detects, analyzes, and responds to real threats?</p><p>That was exactly what I wanted to do. As a cybersecurity student, I wanted to go beyond “reading” about detection and response — I wanted to <strong>see it happen</strong>. So I took the challenge:</p><blockquote><strong><em>Build my own Cloud-based SOC on AWS from scratch.</em></strong></blockquote><p>This post walks you through every phase of that journey — from architecture design to automation — showing how I turned a set of EC2 instances into a live, functional detection-and-response environment.</p><h3>🧠 Why I Wanted to Build It</h3><p>Learning cybersecurity is one thing. But seeing how attacks are detected, correlated, and responded to in real time? That’s a different level.</p><p>In a corporate SOC, multiple tools work together — <strong>EDR, IDS, SIEM, SOAR, WAF</strong>, and more. I wanted to simulate that in a way where I could:</p><ul><li>Understand <strong>how data flows</strong> between systems.</li><li>See <strong>how alerts get triggered</strong>.</li><li>And finally, <strong>automate</strong> what a real SOC analyst would do.</li></ul><p>This was my playground to connect all the puzzle pieces.</p><h3>☁️ Phase 1: Setting up the Cloud Infrastructure</h3><p>I started on <strong>AWS</strong> because it gave me flexibility, scalability, and easy networking between instances.</p><p>I deployed <strong>five EC2 instances </strong>using <strong>t3.large</strong> instance types, each serving a specific role in the SOC architecture:</p><p>Instance Purpose <strong>wazuh-manager </strong>The brain — collects logs and runs detection rules. <strong>wazuh-agent-1 </strong>A vulnerable host running DVWA for attack simulation. <strong>suricata-ids </strong>Network-level intrusion detection system.<strong>nginx-proxy </strong>Reverse proxy + ModSecurity for web app protection.<strong>windows-server </strong>Windows environment integrated with Elastic Agent for endpoint visibility.</p><p>Every instance had <strong>Wazuh Agent</strong> installed (except the manager), forwarding logs to the Wazuh Manager.</p><p>Networking was configured so I could simulate real attacks — SSH brute force, web exploits, SQLi — and trace them through my SOC pipeline.</p><h3>🔍 Phase 2: Integrating Detection Layers</h3><p>A strong SOC depends on <strong>visibility</strong>. So I started layering detection from both <strong>network</strong> and <strong>endpoint</strong> perspectives.</p><h3>🧱 Suricata IDS (Network Layer)</h3><ul><li>Deployed on the suricata-ids instance.</li><li>Operated in IDS mode to <strong>monitor mirrored traffic</strong>.</li><li>Used custom rule sets for SSH brute force, port scans, and HTTP anomalies.</li></ul><p>Each alert generated by Suricata was forwarded to the <strong>Wazuh Manager</strong>, where it got enriched with host-level context.<br> This meant that when a network attack occurred, I could see <strong>which host</strong> was targeted and <strong>what process</strong> responded.</p><h3>💡 Wazuh (Host Layer + SIEM)</h3><p>Wazuh was my <strong>central SIEM and detection engine</strong>.</p><p>I created custom rules — like triggering an alert when <strong>five consecutive SSH login failures</strong> occurred within a minute.</p><p>Wazuh also ingested logs from:</p><ul><li>Nginx (reverse proxy logs)</li><li>ModSecurity (web attack events)</li><li>Suricata (network alerts)</li><li>System logs (auth.log, syslog, etc.)</li></ul><p>This combination gave me <strong>end-to-end visibility</strong> across layers.</p><h3>⚙️ Phase 3: Automating Incident Response</h3><p>Detection is cool. But <strong>response</strong> is what separates a SOC from a log collector.</p><p>Here’s how I took automation to the next level:</p><h3>🧩 Lambda + WAF + Security Groups</h3><p>When a Wazuh alert detected a <strong>brute-force attack</strong>, it triggered an <strong>AWS Lambda function</strong> that:</p><ol><li>Extracted the attacker’s IP.</li><li>Blocked it automatically in both:</li></ol><ul><li>AWS <strong>WAF</strong>, and</li><li>AWS <strong>Security Groups</strong> (network-level firewall).</li></ul><p>This made my SOC capable of <strong>real-time mitigation</strong> — the moment an attacker crossed the line, AWS itself shut them down.</p><h3>🤖 Phase 4: Adding SOAR Automation with Shuffle</h3><p>To take it further, I integrated <strong>Shuffle SOAR</strong> — an open-source automation platform.</p><p>When Wazuh generated an alert:</p><ol><li>It was sent to a <strong>Shuffle webhook</strong>.</li><li>Shuffle ran a playbook that:</li><li>Queried <strong>VirusTotal</strong> for IP reputation.</li><li>Classified the severity (e.g., “Critical” if VirusTotal showed multiple detections).</li><li>Sent an <strong>email notification</strong> to the SOC lead (me 😎) with full details.</li></ol><p>This became my first <strong>end-to-end automated threat response loop</strong> — detection → enrichment → notification → action.</p><h3>🪟 Phase 5: Adding the Windows Detection Layer via ELK</h3><p>To make the environment more realistic, I integrated a <strong>Windows Server</strong> into the SOC — not just as a log source, but as an intelligent detection node.</p><p>Here’s how it worked:</p><ul><li>The <strong>Elastic Agent</strong> on the Windows instance shipped event logs (like login attempts) to <strong>Elastic Cloud</strong>.</li><li>Inside <strong>Kibana</strong>, I created <strong>custom correlation rules</strong> — for example:</li></ul><p>“Trigger an alert if there are 5 consecutive SSH login failures within 1 minute.”</p><ul><li>When the rule fired, <strong>Elasticsearch sent a webhook</strong> directly to <strong>Shuffle SOAR</strong>.</li><li>Shuffle then:</li></ul><ol><li>Performed a <strong>VirusTotal check</strong> on the source IP.</li><li>Compiled the results into an <strong>automated incident report.</strong></li><li>Sent a detailed <strong>email alert</strong> to the SOC team lead with the attacker’s IP reputation and event timeline.</li></ol><p>This added an entire new dimension — now both <strong>Linux and Windows</strong> hosts were actively contributing to detection, correlation, and automated response.</p><p>It made my SOC feel closer to a <strong>real-world, hybrid enterprise environment.</strong></p><h3>🧩 Architecture Overview + Validation</h3><p>Here’s a simplified flow of how everything connected:</p><pre>Attacker → Nginx Proxy → DVWA (Wazuh Agent) → Wazuh Manager<br>      ↘ Suricata IDS → Wazuh<br>      ↘ Windows Logs → Elastic Cloud<br>      ↘ Alert → AWS Lambda → WAF/Security Group → Block IP <br>              ↘ Shuffle → VirusTotal → Mail </pre><p>Once the architecture was complete, I validated the setup through <strong>controlled attack simulations</strong>:</p><ul><li><strong>Hydra</strong> for SSH brute force and DVWA login</li></ul><p>Each attack was tracked end-to-end — Suricata detected it, Wazuh correlated it, and AWS Lambda auto-blocked the attacker’s IP while Shuffle alerted me instantly.</p><p>That’s when the SOC came alive — seeing alerts fire, automation kick in, and defences respond was like watching a digital battlefield unfold. ⚔️</p><h3>See it in Action</h3><p>Watch the SOC project live in action on YouTube:</p><p><strong>Visual:</strong> Cloud-Based SOC Project | Real-Time Threat Detection on AWS</p><blockquote><strong><em>YouTube Video (Windows) :</em></strong><em> </em><a href="https://youtu.be/7rIzMLEmPbA">https://youtu.be/7rIzMLEmPbA</a></blockquote><blockquote><strong><em>YouTube Video (Linux) : </em></strong><a href="https://youtu.be/_K8RWR_9hto">https://youtu.be/_K8RWR_9hto</a></blockquote><p>This video demonstrates how traffic flows through the system, how alerts are generated, and how automated responses block attacks in real-time.</p><h3>🧩 Lessons Learned</h3><ol><li><strong>Correlation is king — </strong>A single log is meaningless until you connect it with others.</li><li><strong>Automation saves time — </strong>SOAR platforms like Shuffle make response lightning-fast.</li><li><strong>Visibility matters</strong> — Suricata + Wazuh + Elastic is a powerful combo for full visibility.</li><li><strong>Real attacks teach better than theory</strong> — Simulating brute force, web attacks, and scans made me truly understand detection logic.</li></ol><h3>🚀 What’s Next</h3><p>This was just the beginning. My next steps are:</p><ul><li>Integrating <strong>EDR (like CrowdStrike or Velociraptor)</strong> for deeper endpoint visibility.</li><li>Adding <strong>Threat Intelligence feeds</strong> into Wazuh correlation rules.</li><li>Building <strong>custom dashboards</strong> in Kibana for attacker profiling.</li><li>Reduce the amount of <strong>False Positives</strong> in the environment</li></ul><p>Ultimately, I want this to evolve into a <strong>fully autonomous SOC lab</strong> — one that detects, decides, and defends on its own.</p><h3>💭 Final Thoughts</h3><p>Building this SOC from scratch taught me more than months of theoretical learning ever could.</p><p>It’s not just about setting up tools — it’s about <strong>understanding how defenders think</strong>, how data moves, and how automation can give you the upper hand in cybersecurity.</p><p>If you’re a learner like me, don’t wait for a “perfect lab setup.”<br> Start small.<br> Break things.<br> Connect systems.<br> And most importantly, <strong>learn from the alerts you trigger</strong>.</p><p>That’s how you turn from a student… into a real SOC analyst. 🕵️‍♂️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=786f3c5b61e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>