<?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 IntenseWeb on Medium]]></title>
        <description><![CDATA[Stories by IntenseWeb on Medium]]></description>
        <link>https://medium.com/@intenseweb?source=rss-a46e1cd88eaa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AxpGi_vs32iMhB6_yvaNHQ.png</url>
            <title>Stories by IntenseWeb on Medium</title>
            <link>https://medium.com/@intenseweb?source=rss-a46e1cd88eaa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 22:12:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@intenseweb/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[Linux Memory Forensics]]></title>
            <link>https://medium.com/@intenseweb/linux-memory-forensics-4911f80e33f5?source=rss-a46e1cd88eaa------2</link>
            <guid isPermaLink="false">https://medium.com/p/4911f80e33f5</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <dc:creator><![CDATA[IntenseWeb]]></dc:creator>
            <pubDate>Tue, 13 Aug 2024 11:46:36 GMT</pubDate>
            <atom:updated>2024-08-13T11:54:02.738Z</atom:updated>
            <content:encoded><![CDATA[<p>Ghazy, my friend, is new to web development and started his website, but it seems that the website was vulnerable and one of the attackers was able to get root access. Could you examine this memory dump for us?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*QbvY2dH-F2vO5eTG" /></figure><p>Tools we will use: <strong>Volatility 2.</strong></p><h4>In this guide, we’re diving into Linux memory forensics using Volatility 2 — powerful tool that let us peek inside a computer’s memory. Whether you’re hunting down hidden malware, investigating what happened during a security incident, or trying to recover data, these tools have you covered. Think of it as using a microscope to see what’s really going on inside your computer’s brain.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3am-uBlbw9vPZ4UKBypuAg.png" /></figure><p>Here is our Linux memory dump after extracting.</p><blockquote><strong>Question 1</strong></blockquote><blockquote>What is the Linux kernel version of this memory dump?</blockquote><p>To answer this question, we will use this command:</p><p><strong><em>strings /root/Desktop/ChallengeFile/MyW3B.vmem | grep “BOOT_IMAGE”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_lYzNe_sKigFDIiT0MjWw.png" /></figure><ol><li>strings is a tool that searches a binary file (in this case, a memory dump) and extracts all human-readable strings.</li></ol><ul><li>/root/Desktop/ChallengeFile/MyW3B.vmem is the path to the memory dump you are analyzing.</li><li>This tells the strings tool which file to search.</li></ul><p>2. grep is a text-searching tool that filters results to find lines containing a specific string, in this case, &quot;BOOT_IMAGE&quot;.</p><ul><li>BOOT_IMAGE is a keyword typically associated with the kernel command line, where the Linux kernel version is recorded.</li></ul><h4>Now we can answer the first question.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IrtQOhBRH2nIcwpxYxDzUQ.png" /><figcaption>Q1 answer</figcaption></figure><blockquote><strong>Question 2</strong></blockquote><blockquote>What was the command that our friend Ghazy used to run his website?</blockquote><p>First, we will use command <strong>vol.py -f MyW3B.vmem imageinfo</strong> to determine the profile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*zSvt9jThzGXnLTCMDJzPyA.png" /></figure><p>And then we will use Volatility 2 again to check our bash history for this profile.</p><blockquote><strong><em>vol.py -f /root/Desktop/ChallengeFile/MyW3B.vmem --profile=LinuxUbuntu_5_4_0-150-generic_profilex64 linux.bash</em></strong></blockquote><ul><li><strong>--profile=LinuxUbuntu_5_4_0-150-generic_profilex64</strong>: This part tells Volatility the specific profile or operating system type that matches the memory dump. Here, it&#39;s telling Volatility that the memory dump comes from a system running Ubuntu Linux with kernel version 5.4.0-150 on a 64-bit architecture. This profile is crucial because it ensures that Volatility interprets the memory data correctly.</li><li><strong>linux.bash</strong>: This is the Volatility plugin we&#39;re using. The linux.bash plugin digs into the memory dump to extract the bash command history, showing us what commands were run on the system before the memory was captured. It&#39;s like peeking into the terminal history of the compromised system.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*jdCPhb4TyFELiDmqHejjZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-c4zVaF0ekTsB1uM45PKNg.png" /><figcaption>Q2 Answer</figcaption></figure><blockquote><strong>Question 3</strong></blockquote><blockquote>We are sure that the attacker has uploaded a shell to the site. Can you get the Inode address?</blockquote><h3>Answering the Third Question: Finding the Inode Address</h3><ol><li>To find the inode address of the shell uploaded by the attacker, we can use the linux_enumerate_files plugin in Volatility. Here&#39;s how to do it:</li></ol><blockquote><strong><em>vol.py -f /root/Desktop/ChallengeFile/MyW3B.vmem — profile=LinuxUbuntu_5_4_0–150-generic_profilex64 linux_enumerate_files</em></strong></blockquote><p>However, this can return a large number of files, making it difficult to locate the specific shell file.</p><p>2. <strong>Filter the Results with </strong>grep: To narrow down the results, we use grep to search for files that might be shells, typically identified by their <strong><em>.php</em></strong> extension:</p><blockquote><strong><em>vol.py -f /root/Desktop/ChallengeFile/MyW3B.vmem — profile=LinuxUbuntu_5_4_0–150-generic_profilex64 linux_enumerate_files | grep “\.php”</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nH6UF8exx76UzHYhhblxSg.png" /></figure><p>By filtering the results with grep, we quickly identified the shell file and its inode address, which was crucial for completing the task. This approach saves time and ensures accuracy when working with large amounts of data in memory forensics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mhPrE5bc76m7CwIFHCzBug.png" /><figcaption>Q3 Answer</figcaption></figure><blockquote><strong>Question 4</strong></blockquote><blockquote>What is the attacker’s IP address and port?</blockquote><h4>How I Found the Attacker’s IP Address and Port</h4><ol><li><strong>Extract the Shell File</strong>: After locating the file, I used the linux_find_file plugin to dump the contents of the shell.php file based on its inode address (0xffff9c4fdee03448).</li></ol><blockquote>vol.py — profile=LinuxUbuntu_5_4_0–150-generic_profilex64 -f /root/Desktop/ChallengeFile/MyW3B.vmem <strong>linux_find_file -i 0xffff9c4fdee03448 -O ~/Desktop/ChallengeFile/shell.php</strong></blockquote><p>This command saved the contents of the shell.php file to my local directory.</p><p>2. <strong>Analyze the Shell File</strong>: I then opened the shell.php file to examine its contents. Within the file, I found the IP address 89.187.162.105 and the port 3351 hardcoded, which were being used by the attacker to establish a reverse shell connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2po9llQPNZ9LL6ZXu_qdxQ.png" /></figure><h4>Scroll down a bit and there we have it:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsW234OID7idpHRgawwWPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AwpWRNT_VJceyLaBnmONwg.png" /><figcaption>Q4 Answer</figcaption></figure><blockquote><strong>Question 5</strong></blockquote><blockquote><strong>According to the IP address you got, what is the country of the attacker?</strong></blockquote><p>Let’s use some OSINT Tools. There are many which can do the job, but I will use the most common: <a href="https://www.iplocation.net/ip-lookup"><strong>https://www.iplocation.net/ip-lookup</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*GSFM5KzV-KP__YKZEoIJfA.png" /></figure><h4>Country of attacker: Singapore</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PeodGLz2DZy6KFh9khtEMA.png" /><figcaption>Q5 Answer</figcaption></figure><blockquote><strong>Question 6</strong></blockquote><blockquote><strong>What is the name of the user with UID value 1000?</strong></blockquote><ol><li><strong>Identify the File Location in Memory:</strong> We used the following command to locate the passwd file in memory. The passwd file contains essential information about users on the system, including their UIDs.</li></ol><blockquote><strong><em>vol.py -f /root/Desktop/ChallengeFile/MyW3B.vmem — profile=LinuxUbuntu_5_4_0–150-generic_profilex64 linux_find_file -F “/etc/passwd”</em></strong></blockquote><p>linux_find_file -F &quot;/etc/passwd&quot; searches for the passwd file in the memory image and returns its inode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*d1k7uSaOmEfboVkwmZtkTA.png" /></figure><p><strong>2. Extract and Examine the passwd File:</strong> With the inode number identified, we use the following command to extract the passwd file from memory:</p><blockquote><strong>vol.py -f /root/Desktop/ChallengeFile/MyW3B.vmem — profile=LinuxUbuntu_5_4_0–150-generic_profilex64 linux_find_file -i 0xffff9c500abd7480 -O ~/Desktop/ChallengeFile/passwd</strong></blockquote><ul><li>-i 0xffff9c500abd7480 specifies the inode number we found earlier.</li><li>-O ~/Desktop/ChallengeFile/passwd outputs the extracted file to our local system.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZgxHxPDIH5ya_em79bBVXA.png" /></figure><h4>After successfully dumping the passwd file, we opened it using a text editor to view its contents. By examining the file, we found that the user with UID 1000 is named <strong>kirito</strong>.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3TXFmG2eMYFo2iWST00-Kw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rj66LRyGV7WDzvo_BqA_Mg.png" /><figcaption>Q6 Answer</figcaption></figure><blockquote><strong>Question 6</strong></blockquote><blockquote><strong>What is the IP address of the victim?</strong></blockquote><p><strong>Run the </strong><strong>linux_ifconfig Plugin:</strong> This plugin will extract the network configuration information from the memory dump, including the IP address of the victim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*tiJETFZ4RPQ5L6eOHkv1Gw.png" /></figure><ul><li><strong>Primary Network Interface (ens33)</strong>: The <strong>ens33</strong> interface is typically associated with the main network adapter of the machine. This adapter connects the machine to the local network and assigns it an IP address that other devices on the network can use to communicate with it.</li><li><strong>Private IP Range</strong>: The IP address 192.168.245.129 falls within the 192.168.x.x range, which is commonly used for local networks (LANs). This suggests it&#39;s the IP address used for the machine&#39;s communication over the network.</li><li><strong>Loopback and Docker Addresses</strong>: Other addresses, such as 127.0.0.1, are loopback addresses used by the system for internal communication and are not accessible externally. The <strong>docker0</strong> interface with the IP 172.17.0.1 is specific to Docker containers and not the primary network communication channel for the host machine.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VZzNnod3C0JjvP1vtCiYmw.png" /><figcaption>Q7 Answer</figcaption></figure><h4>In this guide, we dived into Linux memory forensics using Volatility. We kicked things off by figuring out the Linux kernel version and matching it up with the right memory profile. From there, we dug into the attacker’s actions by checking out the bash history and pinpointing the inode of a sneaky PHP shell they uploaded. We wrapped things up by pulling key network details, like the IPs of both the attacker and the victim, with a few handy Volatility plugins. It’s a straightforward, step-by-step approach that shows you how to get the crucial info you need from a memory dump without breaking a sweat.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RMdZI1r-RNLwRCkLcNKV0w.png" /></figure><p>Thank you!</p><p>Daniel Suwaj</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4911f80e33f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PHP-CGI (CVE-2024–4577)]]></title>
            <link>https://medium.com/@intenseweb/php-cgi-cve-2024-4577-27efe634d4d2?source=rss-a46e1cd88eaa------2</link>
            <guid isPermaLink="false">https://medium.com/p/27efe634d4d2</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cve-2024-4577]]></category>
            <dc:creator><![CDATA[IntenseWeb]]></dc:creator>
            <pubDate>Thu, 01 Aug 2024 16:41:05 GMT</pubDate>
            <atom:updated>2024-08-01T20:42:23.149Z</atom:updated>
            <content:encoded><![CDATA[<p>You will confront an attempted exploitation of a newly discovered and unpatched vulnerability (CVE-2024–4577) in a critical software component within your organization’s infrastructure. The CVE allows for remote code execution, posing a significant threat if successfully exploited. At 12:05 PM UTC, an alert is generated by the Intrusion Detection System (IDS) and Intrusion Prevention System (IPS), indicating an attack on one of your web servers. Your task is to analyze the provided artifacts, confirm the exploitation attempt, and answer the provided questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*3-eSr9CDdW-k2ez8" /></figure><p>First, let’s take a look at what security vendors are saying about this CVE, and maybe we can grab something useful from their analysis. For instance, <a href="https://www.tarlogic.com/blog/cve-2024-4577-critical-vulnerability-php/">Tarlogic has published an article on CVE-2024–4577</a> that can provide us with a detailed overview of this critical vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*VZIePJj-a6LX6jFSCe3w_w.png" /></figure><p>They’ve listed versions of PHP which this vulnerability applies to. Let’s check the version of our PHP.exe by right-clicking on it and moving to <strong>properties &gt; details.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ngvYKoOhdNfVtqCDCVCH3A.png" /></figure><p>We’ve determined that our PHP is indeed affected by this vulnerability and can now answer the first question:</p><blockquote>Question 1</blockquote><blockquote>What version of PHP was running on the server during the incident?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*17o7kK3N5FGz4ngQyZKo_A.png" /><figcaption>Q1 answer</figcaption></figure><blockquote>Question 2</blockquote><blockquote>When PHP is configured to run as CGI, which directive in httpd.conf specifies the scripts that handle requests for PHP files?</blockquote><p>Here is another detail that can help us further identify whether this vulnerability affects our PHP. Specifically, the PHP software must be configured in CGI mode, which we will address shortly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*lbTYc90d6Xndrq3syMwdiA.png" /></figure><p>First, we need to examine the <strong>httpd.conf</strong> file to determine how PHP is configured. This file is crucial as it contains configuration directives for the Apache web server, which our PHP application relies on.</p><p>Let’s look at directives related to CGI configuration for PHP.</p><p>There are plenty, but this is the one that interests us:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L-I5s91_Lvp1WvllhqJvYQ.png" /></figure><p>This “<strong>Action</strong>” directive specifies that PHP scripts should be handled by <strong>php-cgi.exe</strong> when PHP is configured to run as CGI. Let’s check it.</p><p>Based on our findings, the directive that specifies the scripts handling requests for PHP files in CGI mode is “<strong>Action</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YDLi7T-EDZLBUqMdP5NOkw.png" /><figcaption>Q2 answer</figcaption></figure><blockquote>Question 3</blockquote><blockquote>What is the IP address of the attacker who attempted to exploit our server?</blockquote><p>Let’s go to the <strong>access.log </strong>of our Apache24 server, and look for any unusual or suspicious requests. These may include requests with strange parameters or patterns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*HYCmT6vBqHWWPSvjVPGfAA.png" /></figure><p><strong>Why are these requests suspicious?</strong></p><p>Requests containing the parameters <strong>allow_url_include</strong> and <strong>auto_prepend_file </strong>are suspicious because these PHP settings can be exploited for Remote File Inclusion (RFI) and Local File Inclusion (LFI) attacks. Here’s why these parameters are dangerous:</p><ol><li><strong>allow_url_include</strong>:</li></ol><ul><li>This PHP setting, when enabled, allows for remote file inclusion via URLs. This can lead to a situation where a malicious actor can inject and execute remote code on the server by supplying an external URL to a malicious script.</li></ul><p>2.<strong> auto_prepend_file</strong>:</p><ul><li>This PHP setting allows a specified file to be automatically included before executing any PHP script. A malicious actor can exploit this feature to inject malicious code that will run every time a PHP script is executed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNjWSiYEoNSd0qaQURrkiA.png" /><figcaption>Q3 Answer</figcaption></figure><blockquote>Question 4</blockquote><blockquote>The attacker targeted a specific page on the server with malicious payloads. Which page did the attacker target with malicious payloads?</blockquote><p>Open the <strong>error.log</strong> file and look for entries related to the same timeframe as the suspicious POST requests.</p><p>We got the timeframe:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eZy-bceHHRM3d8q2If0iGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tgcNT5TNhpltITjJrXF2kA.png" /></figure><p>These error messages confirm that the attacker attempted to exploit the server by targeting the<strong> /upload.php</strong> page, but the attempt resulted in errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5fHbXdPW841uEgPWcWq5ag.png" /><figcaption>Q4 Answer</figcaption></figure><blockquote>Question 5</blockquote><blockquote>What version of Apache is running on the server?</blockquote><p>To check Apache version, let’s open <strong>error.log </strong>and there we will find many entries which will tell us this information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*5eA9EkmNHH8OrKir7D2Q_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jhoSyix06-8vEVEBBwWkiQ.png" /><figcaption>Q5 answer</figcaption></figure><blockquote>Question 6</blockquote><blockquote>The attacker managed to execute commands on the server. What was the first process initiated by the attacker’s commands during their successful attempt?</blockquote><p>To determine the first process initiated by the attacker’s commands, we need to analyze the prefetch files. We will use the PECmd tool for this purpose. Here are the steps to do it:</p><ol><li>Let’s open command prompt and launch PECmd.exe from there.</li></ol><p><strong>PECmd.exe</strong>: This command runs the PECmd tool.</p><p><strong>-d &quot;C:\Users\LetsDefend\Desktop\ChallengeFile\artifacts\Prefetch&quot;</strong>: The -d option specifies the directory where the prefetch files are located.</p><p><strong>--csv pecmd_output</strong>: The --csv option tells PECmd to save the analysis results in CSV format, and pecmd_output is the name of the output file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dhwx2dw9qWTKb6CTAwdXMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*811okQRx3K89e7hV_C28LA.png" /></figure><p>2. The “Tools” folder contains <strong>Timeline Explorer</strong>, which will ease our investigation. Open it and then open both files as shown in the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ShzXSFBGES3r4fY5foWMJQ.png" /></figure><p>3. From the access.log, we identified that the attack occurred around 15:03:07 +0300. The +0300 indicates that the local time is three hours ahead of UTC. Therefore, the attack time in UTC should be around 12:03:07.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3q9Qhhh1K2VTdKp2uyQAcA.png" /></figure><p>4. Now let’s compare this to our PECmd output. The closest entry to this time is the one with the command <strong>WHOAMI.exe</strong> (which is a command used in reconnaissance and would be fitting for starting an attack).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rBFCLEpa0AFIhgshxvrdbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VMOtIKmuaLaIMMI6XTRGig.png" /><figcaption>Q6 answer</figcaption></figure><blockquote>Question 7</blockquote><blockquote>Before the attacker was detected and blocked, they executed another command, launching a new process. What process was launched by this command?</blockquote><p>After identifying <strong>WHOAMI.EXE</strong> as the first process, we look for the next process initiated around the same time. From the prefetch analysis in Timeline Explorer, we find that the next process after <strong>WHOAMI.EXE</strong> is <strong>CALC.EXE</strong>.</p><p>The timeline shows <strong>CALC.EXE</strong> was initiated at <strong>12:03:33</strong>, shortly after WHOAMI.EXE at <strong>12:03:14</strong>.</p><p>It was executed immediately after a known malicious action, which is not typical behavior for a legitimate user.</p><p>Attackers often use <strong>CALC.EXE</strong> to test if they can execute commands on a compromised system. It&#39;s a harmless-looking application that can indicate successful command execution. It’s commonly used in penetration testing and by attackers as an initial test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dH3bfJJja_-8xvIntzyB8w.png" /><figcaption>Q7 Answer</figcaption></figure><blockquote>Question 8</blockquote><blockquote>What is the CVE number of the exploit used by the attacker?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gRU0ZPPUPgydqQUx3GCwrg.png" /><figcaption>Q8 Answer</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*62_s60Tnn8-qzIpjVTOGkQ.png" /></figure><p>And that’s all guys! As part of this project, we conducted a detailed analysis of a security incident related to the CVE-2024–4577 vulnerability. We analyzed Apache server logs, identifying suspicious HTTP requests, and then used PECmd and Timeline Explorer tools to analyze prefetch files to identify suspicious processes initiated by the attacker. The WHOAMI.exe and CALC.exe processes were identified as key elements of the attack, allowing us to fully understand and document the incident.</p><p>Thank you for reading.</p><p>Daniel Suwaj.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27efe634d4d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brute Force Attacks Challenge on LetsDefend.io]]></title>
            <link>https://medium.com/@intenseweb/brute-force-attacks-challenge-on-letsdefend-io-f5f49bd15292?source=rss-a46e1cd88eaa------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5f49bd15292</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[brute-force]]></category>
            <dc:creator><![CDATA[IntenseWeb]]></dc:creator>
            <pubDate>Mon, 29 Jul 2024 11:49:41 GMT</pubDate>
            <atom:updated>2024-07-31T10:13:25.101Z</atom:updated>
            <content:encoded><![CDATA[<h4>Our web server has been compromised, and it’s up to you to investigate the breach. Dive into the system, analyze logs, dissect network traffic, and uncover clues to identify the attacker and determine the extent of the damage. Are you up for the challenge?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*GOhYhqK6yEUpP2oD" /></figure><p><strong>In this tutorial, I will guide you through the steps to identify and analyze a brute-force attack on a compromised web server using Wireshark and authentication logs.</strong></p><p>After connecting to the Linux VM, we are presented with an archive file containing a .pcap file and auth.log. Navigate to the folder and extract the file using 7z:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gUNp8KD0G_vo7rWa-yTBVg.png" /></figure><p>Open the .pcap file in Wireshark to start the investigation.</p><p>Identify the Threat Actor’s IP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*3SJdQueeYMmfeFTmiHWzKg.png" /></figure><p>We can observe RDP connections originating from a specific IP address to a private IP address, which likely belongs to the web server from which this network capture file was obtained.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*36ocqb9JZzXyp802laKRdQ.png" /></figure><p>After filtering out the External IP Address, we are ready to answer the question.</p><ul><li><strong>External IP Address</strong>: <strong><em>51.116.96.181</em></strong> - This is the IP address of the server that was targeted by the brute-force attack.</li><li><strong>Internal IP Address</strong>: 192.168.100.137 - This is the private IP address from the internal network where the traffic originated.</li></ul><p><strong><em>Answer:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ogx0hQ_zZjiXXwoNv_JGTw.png" /><figcaption>Answer Q1</figcaption></figure><blockquote>Question 2</blockquote><blockquote><strong>Which directory was targeted by the attacker’s brute-force attempt?</strong></blockquote><p>We don’t have to look further, our answer is right where we filtered out the external IP Address.</p><p>Look at the HTTP traffic to find the directory targeted: http.host == “51.116.96.181”</p><p>The targeted directory is index.php.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*-EkExfVqe2BZQ_JzxICTTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C7_cxQYcZIVrPn-ooAUgRQ.png" /><figcaption>Answer Q2</figcaption></figure><blockquote>Question 3</blockquote><blockquote><strong>Identify the correct username and password combination used for login.</strong></blockquote><p>Filter for successful HTTP responses: http.response.code == 200</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Frg5FeJWAnvc8zUSKmMbw.png" /></figure><p>After filtering out successful HTTP response codes, we notice a subtle detail: one successful response code has 1 less byte than the others. Let’s right-click on it and follow the HTTP stream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*Ay8s94sGdUP4HJcHRHy0RQ.png" /></figure><p>Ladies and gentlemen, we got him:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rx7WeHRtNilHSwu_BMVUaw.png" /><figcaption>Answer Q3</figcaption></figure><blockquote>Question 4</blockquote><blockquote>How many user accounts did the attacker attempt to compromise via RDP brute-force?</blockquote><p>To identify RDP packets related to brute-force attempts, we can use a specific filter in Wireshark. The filter <strong>rdp.neg_type == 0x01</strong> allows us to display only the packets that are Negotiation Requests in the RDP protocol which can indicate brute-force attempts.</p><p>Let’s determine all the unique users that sent a negotiation request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zvC1G5ElwQOYhj0hQCWmaw.png" /></figure><p>Determine unique users targeted: t3m0, MoSalah, Messi, Kareem, Mostafa, mmox, Mohamed, Ali, Mohsen, web-hacker.</p><p>Only 7 accounts were brute-forced successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9p9F75ljYHgk5FmwglIyNQ.png" /><figcaption>Answer Q4</figcaption></figure><blockquote>Question 5</blockquote><blockquote>What is the “clientName” of the attacker’s machine?</blockquote><p>Apply the filter: <em>rdp.client.name</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NbnDHUCDgsnEc7gcRuPjMA.png" /></figure><p>Click on any packet to find clientName.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Lyslauwqj9r4cxASVyAyQ.png" /><figcaption>Answer Q5</figcaption></figure><blockquote>Question 6</blockquote><blockquote>When did the user last successfully log in via SSH, and who was it?</blockquote><p>Analyzing<strong><em> auth.log </em></strong>provides insights into successful and unsuccessful login attempts, helping us understand the attacker&#39;s activity.</p><p>Let’s start by opening our “auth.log” file in the terminal and using grep to search for accepted passwords: <strong>grep “Accepted password” auth.log</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*vRx6-7JLsEwICcQ___21Mg.png" /></figure><p>We are interested in latest successful login, so the latest login in this case is: <strong><em>mmox:11:43:54</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yyrQeveEo-tiSHGCOayOKw.png" /><figcaption>Q6 Answer</figcaption></figure><blockquote>Question 7</blockquote><blockquote>How many unsuccessful SSH connection attempts were made by the attacker?</blockquote><p>Simple case, Use the command: grep -i “failed password” auth.log | wc -l</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*ZgdnZ75vzhWAfCKuY3WaPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X0Ln_vYLKdyqQWKgB2QA8Q.png" /><figcaption>Answer Q7</figcaption></figure><blockquote>Question 8</blockquote><blockquote>What technique is used to gain access?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-tQCMmaF4MhlUkIusC1Wfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*quJ7RzoMtYsqwc9IEguwkg.png" /></figure><h3>Conclusion</h3><p>In this challenge, we analyzed network traffic using Wireshark to identify the attacker’s IP address and detect brute-force attacks on the web server and RDP. We also examined authentication logs to find the attacker’s last successful login attempt and the number of failed attempts.</p><p>Thank you for reading.</p><p>Daniel Suwaj.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5f49bd15292" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC235 — Atlassian Confluence Broken Access Control 0-Day CVE-2023–22515 Walkthrough (LetsDefend.io)]]></title>
            <link>https://medium.com/@intenseweb/soc235-atlassian-confluence-broken-access-control-0-day-cve-2023-22515-walkthrough-letsdefend-io-cdbb996bd861?source=rss-a46e1cd88eaa------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdbb996bd861</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[defending]]></category>
            <dc:creator><![CDATA[IntenseWeb]]></dc:creator>
            <pubDate>Tue, 16 Apr 2024 17:26:49 GMT</pubDate>
            <atom:updated>2024-07-31T10:13:53.244Z</atom:updated>
            <content:encoded><![CDATA[<h3>SOC235 — Atlassian Confluence Broken Access Control 0-Day CVE-2023–22515 Walkthrough (LetsDefend.io)</h3><p>Hello, since this is my first write-up and I’ve observed many others, I want it to be by an entry-level person for entry-level people. :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hBLj_1_iAf2IQQjnY3L-1Q.png" /></figure><p>Examining the case, we see that we have been provided with sources to collect information. Pressing the “SHOW HINT” button will yield a link.</p><p><a href="https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-289a">Threat Actors Exploit Atlassian Confluence CVE-2023-22515 for Initial Access to Networks | CISA</a></p><p>For detailed information about this CVE, including C2s, TTPs, etc., the most crucial elements for us are the <strong>IOCs</strong> (<strong>Indicators of Compromise</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*vezCo1IOHvqeHQ08Tr1Zeg.png" /></figure><ol><li>Let’s begin the playbook. By examining the rule name, we can determine that it pertains to a<strong> Broken Access Control</strong> issue (SOC235 — Atlassian Confluence <strong>Broken Access Control</strong>).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*veUQuJ8gNlaJR2OO9mZhCw.png" /></figure><p>Upon reviewing the Endpoint Security for (172.16.17.234), it has been identified as a Confluence Data Center v8.0.3.</p><p>Ok let’s dive into CISA report for this CVE to collect some intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0g0VOIXX2ey0dQwkUgFOA.png" /><figcaption>I</figcaption></figure><p>I have highlighted key information that will aid in comprehending this attack. It is evident that CISA, among other entities, advocates the collection of Indicators of Compromise (IOC). We should examine the report to identify the necessary details.</p><p>Everybody (hopefully) is aware of the cybersecurity principle crucial for blue teams — ATTENTION TO DETAIL. From our observations, we find that versions of Confluence Data Center and Server below 8.0.0 are not impacted by this vulnerability.</p><ul><li>Our <strong>Confluence Data Center</strong> host is on version <strong>8.0.3</strong> which means it IS <strong>affected by this vulnerability.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0GStDWEIAM1rTjUjslGHg.png" /></figure><ul><li><strong>Potential User-Agent strings to keep in mind when investigating logs. </strong>but we can already see that the second User-Agent is the same as in our alert <strong>curl/7.88.1</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*gOCGRo7gKxynimhWzKUCAQ.png" /></figure><ul><li><strong>And here we have IOC’s. </strong>We see that the second IP is the same as <strong>source IP</strong> on our alert:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GzqCo3vZv8Q1PvRg5e3zlQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*cIlxMryhPO-cba2j9OP0kg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1E8BvkY13HFb08NptFmAoQ.png" /><figcaption>VirusTotal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*swf3vjWT1UjGiiNX89FBsw.png" /><figcaption>AlienVault</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nAkdDX9VKgxpp-G3Y0kjMw.png" /></figure><p>And LetsDefend Threat Intel includes this IP in its database, which is final nail in the coffin for that address.</p><h3>Since our host has been hit by this vulnerability and we’ve got User-Agent strings and an IP flagged as bad news by OTX AlienVault, VirusTotal, and our own Threat Intel, we’re all set to start digging into this.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*4mQtp26m1PBXetHHew9jQA.png" /></figure><p>Here is a <strong>log </strong>we are looking for:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RQp65dUPmZSdLJHLQrDTtw.png" /></figure><p>It looks like something sketchy is going on with that <strong>malicious IP</strong> and <strong>User-Agent</strong> mentioned in the <strong>CISA report</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*qAG5Gv9BCv95dyHdZb4OLg.png" /></figure><ol><li>Upon reviewing the collected data, it has been determined that it is<strong> indeed malicious</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*-ImYmTfU2z4mDi0k6qo0qA.png" /></figure><p>2. We don’t see any signs of those attacks in logs so the only logical option is <strong>“Other</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*rqArqUdH4Hcotq4vyKSpIg.png" /></figure><p>3. I searched for associated artifacts from the alert in Email Security field, such as the source IP, destination IP, or server name, but nothing appears to be connected, therefore this was <strong>not planned</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*duneV1e-s5lp47UY0iu6rw.png" /></figure><p>4. In our alert <strong>Source IP</strong> (<strong>43.130.1.222</strong>) belongs to the external company network. But <strong>172.16.17.234 </strong>destination address belongs to our company internal network (Confluence Data Center v8.0.3) which means the answer is<strong> Internet → Company Network</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*F3T3ddCqjQ6sbRImv-3YBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*OW7DKa0-G4bzU0FK_uFW-Q.png" /></figure><p>5. The answer is <strong>Yes, </strong>the attack was successful. The HTTP response code <strong>200</strong> means success in traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*HNSHBN2EKSSEBiW0Zq4OQw.png" /></figure><p>6.The attack was successful and the machine has ben compromised — <strong>containment</strong> is our next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-sw58SJMIMFHRgrQ9KeT5g.png" /></figure><p>7. After we contained compromised machine it’s time to collect artifacts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*nMfW6RWjKvJkH8NaZ-pk0A.png" /></figure><p>8. As analysts, our role is complete. It is now time to escalate the matter to Tier 2, given the success of the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*Fy87luxzmTqnroyzxiH2HQ.png" /></figure><p>9. Quick analyst note.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*tahVpao7juVv8k2gD3uwtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2L_cZBX1WLCIYTD-53ADUw.png" /></figure><h4>And that’s a wrap. Full points awarded.</h4><p>Thank you for reading.</p><p>Daniel Suwaj.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdbb996bd861" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>