<?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 Piyushkkr12 on Medium]]></title>
        <description><![CDATA[Stories by Piyushkkr12 on Medium]]></description>
        <link>https://medium.com/@piyushkkr12?source=rss-e06aa92fd440------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Dc6-buJF9qY6LRAhRpXf6Q.jpeg</url>
            <title>Stories by Piyushkkr12 on Medium</title>
            <link>https://medium.com/@piyushkkr12?source=rss-e06aa92fd440------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:49:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@piyushkkr12/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[Tools]]></title>
            <link>https://medium.com/@piyushkkr12/tools-e3265c474a3b?source=rss-e06aa92fd440------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3265c474a3b</guid>
            <dc:creator><![CDATA[Piyushkkr12]]></dc:creator>
            <pubDate>Mon, 14 Sep 2026 03:26:58 GMT</pubDate>
            <atom:updated>2026-09-14T03:26:58.626Z</atom:updated>
            <content:encoded><![CDATA[<p>In order to respond effectively, it is necessary to have the tools available (USB key, on a dedicated workstation outside the network). Here is a list of tools that would help to respond during the investigation of a crisis.</p><h3>CAINE Linux</h3><p>Italian live Linux distribution managed by Giovanni “Nanni” Bassetti. The project started in 2008 as an environment supporting digital forensics and incident response, with several related tools pre-installed.</p><h3>TSURUGI Linux</h3><p>Tsurugi Linux is a DFIR open source project that is and will be totally free, independent, without involving any commercial brand. They state that their main goal is to share knowledge and “give back to the community”.</p><h3>Forensicator</h3><p>This script automates the collection of information using tools like “winpmem” and more.</p><p><a href="https://github.com/Johnng007/Live-Forensicator">Go to the tool website.</a></p><h3><a href="https://github.com/Johnng007/Live-Forensicator">Netstat with Timestamps</a></h3><p><a href="https://github.com/Johnng007/Live-Forensicator">This script allows you to see the connections with the indication of the timestamps. A must-have!</a></p><p><a href="https://github.com/gtworek/PSBits/tree/master/NetstatWithTimestamps">Go to the tool website.</a></p><h3><a href="https://github.com/gtworek/PSBits/tree/master/NetstatWithTimestamps">Mandiant RedLine</a></h3><p><a href="https://github.com/gtworek/PSBits/tree/master/NetstatWithTimestamps">Mandiant’s free Redline tool enables rapid memory analysis by integrating indicators of compromise (IOC) performed using Mandiant’s free IOC Editor tool.</a></p><p><a href="https://fireeye.market/apps/211364">Go to the tool website.</a></p><h3><a href="https://fireeye.market/apps/211364">Velociraptor</a></h3><p><a href="https://fireeye.market/apps/211364">Velociraptor is a far too underrated tool. It allows retrieving information on workstations such as CPU and RAM consumption along with many others. It is also helpful to carry out investigations from its interface in order to check the content of prefetches, event log, extract RAM, etc.</a></p><p><a href="https://velociraptor.velocidex.com/">Go to the tool website.</a></p><h3><a href="https://velociraptor.velocidex.com/">THOR APT Scanner</a></h3><p><a href="https://velociraptor.velocidex.com/">A full-featured YARA and IOC scanner to automate compromise assessments</a></p><p><a href="https://www.nextron-systems.com/thor/">Go to the tool website.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3265c474a3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Acquisition and Triage of Disks Using Autopsy]]></title>
            <link>https://medium.com/@piyushkkr12/acquisition-and-triage-of-disks-using-autopsy-f75ece4ae9b8?source=rss-e06aa92fd440------2</link>
            <guid isPermaLink="false">https://medium.com/p/f75ece4ae9b8</guid>
            <dc:creator><![CDATA[Piyushkkr12]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 08:28:14 GMT</pubDate>
            <atom:updated>2026-08-26T08:28:14.391Z</atom:updated>
            <content:encoded><![CDATA[<h3>Acquisition and Triage of Disks Using Autopsy</h3><p>Autopsy® is the premier end-to-end open source digital forensics platform. Built by Basis Technology with the core features you expect to have in commercial forensic tools. Autopsy is a fast, thorough, and efficient hard drive investigation solution that evolves with your needs. Autopsy can parse Windows, Linux and Android based file systems. (<a href="https://www.autopsy.com/">https://www.autopsy.com/</a>)</p><p>Some of the features of this tool are:</p><pre>- Multi-User Cases: Collaborate with fellow examiners on large cases.<br>- Timeline Analysis: Displays system events in a graphical interface to help identify activity.<br>- Keyword Search: Text extraction and index searched modules enable you to find files that mention specific terms and find regular expression patterns.<br>- Web Artifacts: Extracts web activity from common browsers to help identify user activity.<br>- Registry Analysis: Uses RegRipper to identify recently accessed documents and USB devices.<br>- LNK File Analysis: Identifies shortcuts and accessed documents.<br>- Email Analysis: Parses MBOX format messages, such as Thunderbird.<br>- EXIF: Extracts geo location and camera information from JPEG files.<br>- Media Playback and Thumbnail viewer.<br>- Robust File System Analysis: Support for common file systems, including NTFS, FAT12/FAT16/FAT32/ExFAT, HFS+, ISO9660 (CD-ROM), Ext2/Ext3/Ext4, Yaffs2.<br>- Unicode Strings Extraction: Extracts strings from unallocated space and unknown file types in many languages.<br>- File Type Detection based on signatures and extension mismatch detection.<br>- Interesting Files Module will flag files and folders based on name and path.<br>- Android Support: Extracts data from SMS, call logs, contacts, Tango, Words with Friends, and more.<br>(Source: https://www.cybervie.com/blog/introduction-to-autopsy-an-open-source-digital-forensics-tool/)</pre><p>You can download the Autopsy at: <a href="https://github.com/sleuthkit/autopsy/releases/download/autopsy-4.19.3/autopsy-4.19.3-64bit.msi">https://github.com/sleuthkit/autopsy/releases/download/autopsy-4.19.3/autopsy-4.19.3-64bit.msi</a></p><p>Run the tool as administrator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/0*XWHb3zudWsuYyf_x.png" /></figure><p>The app will start with this screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q9t6gWYUIPFqdFpC.png" /></figure><p>Select “New Case” to start a new investigation as in our case. Then we will be prompted to give our case a name and directory where our case files will be stored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/0*8JnVhNRbrWc_qSlP.png" /></figure><p>Then click next. We can then give additional information about the case or investigation we are about to conduct. This is encouraged as it keeps track of the proper chain of custody. This is to maintain tabs on forensics investigations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/0*8GPtUarp-aT1tHhH.png" /></figure><p>We filled some data for demonstration purposes. Now, click Finish. Then, we will be prompted to another window as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/0*YlhvsKxv-QtGaxRX.png" /></figure><p>Data source would be the disk image or a hard drive which we want to acquire or analyse. Click next in this window to select the data source type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/0*WVA0Zjmsau4G0kUi.png" /></figure><p>If we want to analyze a disk image which was already acquired and we wish to analyze its content, we would leave it at the first option. Let’s say we want to analyze the local disk of the computer we are analyzing/triaging during an incident. Then we will select the second option and click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/0*Io3iPjpWEi9A04TS.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/0*PrmIyt8p0elCb0I0.png" /></figure><p>Here, we need to select the local disk we wish to analyze, and the timezone for which we want to configure the forensics timeline. It’s recommended to set the timezone the same as the timezone which is configured for the computer under investigation. If we need a disk image of the disk too, we can enable the option “Make a VHD image of the drive while it is analyzed”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/0*3IMqv-u0DrOoPndq.png" /></figure><p>Click next. Now the “Configure Ingest” is the core feature of Autopsy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/0*ZRIDuuc_1nGK_TvT.png" /></figure><p>Here, we can select what plugins we need for Autopsy to run against our disk to parse the data. For example, the “Email Parser” will try to find any emails found on the disk (maybe in the logs, files, programs, deleted unallocated space, etc). Then, we click “Next” and the analysis results start coming in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h0vS3haNzYjHl2Qy.png" /></figure><p>You can see how the data is categorized. Let’s see 1 or 2 examples for a quick demonstration as forensics analysis is out of scope for this course, we will not go into much details.</p><p>In OS accounts, we can see present users on the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mXbCuh0pY5bpj-BE.png" /></figure><p>We discussed “Recent Documents” artifact in “Windows Registry Forensics” course. Here in Autopsy, we see an option to view this artifact data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YvIAtz48hyMyUtcF.png" /></figure><p>We can also view all images/videos present on the disk by going to the option “Images/Videos”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/0*GqaW2RxXG0-Ee9WX.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*VjIL0U8WaqnSzOZ4.png" /></figure><p>There’s not much data in this disk because it’s a virtual machine. If it were from a user’s computer or a server, there would be much more data available.</p><p>Live triage drive feature:</p><p>Autopsy has a feature which allows analysts to automatically setup Autopsy tools in a removable media drive like a USB. It creates scripts for triage mode, which then analysts simply need to run the script from the USB and Autopsy will automatically triage and acquire data from the computer to which removable drive is attached.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/0*evzC6HCDWLeNClt1.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/0*lV2NDsuhHPhWlHAU.png" /></figure><p>This lesson was in no way a detailed demonstration of the Autopsy tool which is rich in features for disk analysis in a proper GUI. We will cover Autopsy in detail in the future course(s). In this lesson, we have discussed the power of Autopsy and how to get started using it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f75ece4ae9b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Live Data Acquisiton tools]]></title>
            <link>https://medium.com/@piyushkkr12/live-data-acquisiton-tools-2f8d17251452?source=rss-e06aa92fd440------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f8d17251452</guid>
            <dc:creator><![CDATA[Piyushkkr12]]></dc:creator>
            <pubDate>Sat, 15 Aug 2026 18:00:56 GMT</pubDate>
            <atom:updated>2026-08-15T18:00:56.593Z</atom:updated>
            <content:encoded><![CDATA[<p>There are many tools used for live data acquisition. We will cover some of these tools in this part of the course.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*9FvHG18OdVNYPZWFmJYdmw.png" /></figure><h3>Microsoft Sysinternals Tools</h3><p>Microsoft Sysinternals Tools are free utilities designed for comprehensive management and troubleshooting of the Windows operating system. These tools can help learn more about how Windows works, optimize performance, debug errors, and improve system security. You can download Microsoft Sysinternals tools from the following address:</p><p><strong>Microsoft Sysinternals Tools</strong> : <a href="https://learn.microsoft.com/en-us/sysinternals/downloads/">https://learn.microsoft.com/en-us/sysinternals/downloads/</a></p><p><strong>Note: </strong>You can connect to the machine below to practice the tools and methods mentioned in this course.</p><p>This toolkit can be used for various tasks in live data acquisition, such as memory dump, registry capture, and system process monitoring.</p><p>The full list of tools included in this toolkit is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-V3TgcXlDSVyK84Z.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FTZYNhClBHg_VW4U.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CAVPTazCtifA0haj.png" /></figure><p>The list of tools available for Live Data Acquisition, including the above tools, and their intended use are as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5BHB4O1Dd7-4YY5s.png" /></figure><h3>WinPmem</h3><p>WinPmem is a useful, small, and installation-free Memory Dump tool. It is available at the following address:</p><p><strong>WinPmem</strong> : <a href="https://github.com/Velocidex/WinPmem/releases">https://github.com/Velocidex/WinPmem/releases</a></p><p>After unzipping the downloaded zip file, open PowerShell or the command line with “Administrator” privilege and run the following command:</p><pre>Winpmem_mini_x64_rc2.exe memdump.raw</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kUZ4eTjsJXaG1tuU.png" /></figure><p>Within a few minutes, a memory dump file called “memdump.raw” will be created in the directory where the command was executed. Then, this memory dump file can be analyzed with memory analysis tools.</p><h3>FTK Imager</h3><p>FTK Imager is a useful tool for taking images of both the drives connected to the system and the memory on Windows systems. The FTK Imager tool installation file can be downloaded from the following address:</p><p><strong>FTK Imager</strong> : <a href="https://go.exterro.com/l/43312/2023-05-03/fc4b78">https://go.exterro.com/l/43312/2023-05-03/fc4b78</a></p><p>After the installation file is downloaded, the tool will be ready for use when the installer is run and the installation steps are completed.</p><p>After the installation is completed, you can start the memory image taking process by running with the “Run As Administrator” option and following the “File &gt; Capture Memory” menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/0*riyJORc1NgIB-WUd.png" /></figure><p>When the process is started, select where to save the memory dump file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QwByP1IAqGRXgmFZ.png" /></figure><p>The last step is to click on the “Capture Memory” button. When the process is complete, a memory dump file named “memdump.mem” will be created in the “C:\volatility” directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*AyJkod7k-ndQ8hLs.png" /></figure><p>In the following sections of the course, we will explain the analysis of this memory image with the Volatility tool.</p><h3>Volatility</h3><p>Volatility is a powerful tool for analyzing both Linux and Windows memory images. Developed in Python, it can be used on almost any system with Python.</p><p>To install Volatility on Windows (assuming Python 3.11 is installed on the system), first download Volatility from the address below:</p><p><strong>Volatility</strong> : <a href="https://github.com/volatilityfoundation/volatility3/releases">https://github.com/volatilityfoundation/volatility3/releases</a></p><p><strong>Volatility Plugins (for Windows)</strong> : <a href="https://github.com/volatilityfoundation/volatility/wiki/Command-Reference">https://github.com/volatilityfoundation/volatility/wiki/Command-Reference</a></p><p><strong>Note</strong> : While preparing this course content, Volatility3 v2.5.2 was the last released version.</p><p>The contents of the downloaded zip file are extracted into a folder.</p><p><strong>Note</strong> : The following example uses the directory “C:\volatility”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3Oisaz-dX__fW6Dz.png" /></figure><p>To complete the installation of Volatility, download the “Microsoft C++ Build Tools”. It is available at the following address:</p><p><strong>Microsoft C++ Build Tools</strong> : <a href="https://visualstudio.microsoft.com/visual-cpp-build-tools/">https://visualstudio.microsoft.com/visual-cpp-build-tools/</a></p><p>The Volatility installation requires a few more installations. One of them is the “Snappy” package for Python. There are different versions of this package available in many repositories, but the versions except the one downloaded from the link below do not work:</p><p><strong>Python Snappy</strong> : <a href="https://download.lfd.uci.edu/pythonlibs/archived/python_snappy-0.6.1-cp311-cp311-win_amd64.whl">https://download.lfd.uci.edu/pythonlibs/archived/python_snappy-0.6.1-cp311-cp311-win_amd64.whl</a></p><p>After copying the downloaded file for Python Snappy to the “C:\volatility” directory, open a PowerShell session and install this library. For this process, firstly, switch to the path containing the file on PowerShell. Then, you can install it with the following command:</p><p><strong>Command</strong> : pip install .\python_snappy-0.6.1-cpp311-cpp311-win_amd64.whl</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lckjTRHZLNPInKsE.png" /></figure><p>After all these installations are complete, the last step is to install Volatility’s other dependencies. You can use the following command for this process:</p><pre>pip install -r .\requirements.txt</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qPYgG-R6cgfbCYTB.png" /></figure><p>If all these installations are successful, the Volatility tool is ready for use. You can use the following command to run the Volatility tool:</p><pre>python .\vol.py</pre><pre>Copy</pre><p>In order to analyze the memory image with Volatility, you must run a command like the following:</p><pre>python .\vol.py -f memdump.mem windows.info.Info</pre><pre>Copy</pre><p>The “-f” parameter in the command is to specify the memory image file. The last parameter in the command refers to the volatility plugin to be used for the analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bt6_kK4N_zNQSjll.png" /></figure><h3>Conclusion</h3><p>Live data acquisition is an indispensable method for collecting volatile data on the Windows operating system, especially in the context of digital forensics and security analysis. This process enables the secure collection of critical data while preserving system performance and user privacy as much as possible.</p><p>In this lesson, we discussed the tools used for Live Data Acquisition. The next lesson will cover “ <strong>Dynamic Acquisition on Windows</strong> ”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f8d17251452" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Linux memory forensics]]></title>
            <link>https://medium.com/@piyushkkr12/introduction-to-linux-memory-forensics-397b659c3aaf?source=rss-e06aa92fd440------2</link>
            <guid isPermaLink="false">https://medium.com/p/397b659c3aaf</guid>
            <dc:creator><![CDATA[Piyushkkr12]]></dc:creator>
            <pubDate>Fri, 07 Aug 2026 05:00:11 GMT</pubDate>
            <atom:updated>2026-08-07T05:00:11.520Z</atom:updated>
            <content:encoded><![CDATA[<p>part : 2</p><h3>Basic Memory Analysis</h3><p>Memory Forensics Fundamentals is an essential aspect of digital forensics, providing critical information for understanding potential security breaches or system failures. Analyzing the extracted memory dump file is a fundamental part of the forensics process and is performed with advanced tools such as Volatility.</p><p>Before moving on to the memory dump analysis process, let’s look at the plug-ins that can be used for Linux memory forensics with the Volatility 3 tool:</p><pre>python3 vol.py --help | grep -i linux.</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Kpyw65X3YB90PiQt.png" /></figure><p>To get detailed information about a plugin, look at the output of the help command for that plugin.</p><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime linux.sockstat --help</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gT_QJ3MbXnWWvLEG.png" /></figure><h3>Memory Dump Analysis</h3><p>A basic “Linux memory dump analysis process” should consist of the following steps:</p><ul><li>Image Identification</li><li>Processes and Threads</li><li>Network Connections</li><li>Linux Bash History / User Activities</li><li>File Analysis</li><li>Malware Analysis</li></ul><h3>Image Identification</h3><p>First, verify the type and format of the memory dump. Choosing the right profile affects the reliability of the results, so this is a critical step for the accuracy of the analysis. Factors such as operating system version, architecture, and kernel version must be correctly identified.</p><p>It is also necessary to take the hash information of the memory dump and check the hash on the system we are going to analyze, because usually the memory capacities of the systems are large (8–16–24–32 GB). You should take into account the possibility of corruption when transferring a file of this size between systems.</p><p>Using commands that use md5sum or other hashing algorithms, you can quickly hash the memory dump file.</p><pre>md5sum /var/dumps/ubuntu-memdump.lime</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gVDB8CvSGkSbI9jq.png" /></figure><h3>Processes and Threads</h3><p>Next, obtain a comprehensive list of processes and threads running on the system. This can help identify suspicious or malicious processes and distinguish between normal and abnormal activity on the system. In addition, the process tree and parent-child process relationships can provide important clues for tracking down malware.</p><p>The “linux.psaux”, “linux.pstree”, and “linux.psscan” plugins included in Volatility 3 allow you to view and analyze the processes running on the memory dump file. The details of the information in this output are as follows:</p><p><strong>PID: </strong>Process Identifier is a number that uniquely identifies each process.</p><p><strong>PPID:</strong> Parent Process Identifier refers to the identifier of the parent process of a process that was started.</p><p><strong>COMM: </strong>The Command Name is the name of the program that the process is running.</p><p><strong>ARGS:</strong> Arguments is the set of command line arguments used in the process startup.</p><p>Based on this information, the commands executed on the system are analyzed one by one, and if there are abnormal or suspicious commands, the forensics process proceeds for those commands.</p><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime linux.psaux</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*deIlcfeCHlhH9e-V.png" /></figure><p>The details of the “linux.psscan” plugin output are as follows:</p><p><strong>OFFSET (P):</strong> Specifies the position (offset) of the process in memory in the physical address space.</p><p><strong>PID:</strong> Process Identifier is a number that uniquely identifies each process.</p><p><strong>TID:</strong> Thread Identifier identifies each thread within the process.</p><p><strong>PPID:</strong> Parent Process Identifier is the identifier of the parent process from which a process was created.</p><p><strong>COMM:</strong> Command Name is the name of the program that the process is executing.</p><p><strong>EXIT_STATE: </strong>Indicates the exit state of the process, i.e. whether the process has been killed or is still running.</p><p>The details of the most important EXIT_STATES are as follows:</p><p><strong>TASK_RUNNING:</strong> The process is actively running and does not specify an exit state.</p><p><strong>EXIT_DEAD:</strong> The process has ended and is no longer running. This indicates that the process has ended and its resources have been reclaimed by the operating system.</p><p><strong>EXIT_ZOMBIE:</strong> The process has ended, but is still listed in the operating system logs because an exit code has not yet been received from the parent process.</p><p><strong>EXIT_TRACE:</strong> The process has been stopped for monitoring or debugging purposes and is waiting for an exit state.</p><p><strong>TASK_STOPPED:</strong> The process was stopped by a signal and is no longer running.</p><p><strong>TASK_TRACED: </strong>The process is being traced by a debugging tool.</p><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime linux.psscan.PsScan</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5bw39qorpZOsUeW2.png" /></figure><h3>Network Connections</h3><p>Examine active and past network connections to understand which external servers the system is communicating with. This analysis is critical for identifying potential data leaks or connections to command and control (C&amp;C) servers. Open ports and network traffic can help identify external attacks or remote access attempts.</p><p>The “linux.sockstat” plugin included with Volatility 3 allows you to view and analyze currently active network accesses on the memory dump file. The information in the details of this output is as follows:</p><p><strong>NetNS: </strong>Network Namespace Number, refers to the network namespaces used for isolation, routing and management in Linux.</p><p><strong>Pid: </strong>Process Identifier, a number used to uniquely identify each process.</p><p><strong>FD:</strong> File Descriptor, refers to a process file descriptor associated with a socket or other file type.</p><p><strong>Sock Offset:</strong> Specifies the physical location (offset) of the socket structure in memory.</p><p><strong>Family:</strong> Specifies the socket family (for example, AF_INET is used for IPv4 Internet protocols).</p><p><strong>Type:</strong> Specifies the type of socket (for example, STREAM is used for connection-oriented communication such as TCP).</p><p><strong>Proto: </strong>Specifies the protocol used (for example, TCP).</p><p><strong>Source Addr:</strong> Indicates the local source address, i.e. the local IP address to which the socket sends or receives data.</p><p><strong>Source Port:</strong> Indicates the local source port, i.e. the local port number to which the socket sends or receives data.</p><p><strong>Destination Addr:</strong> Specifies the remote destination address, i.e. the destination IP address to which the socket sends or receives data.</p><p><strong>Destination Port:</strong> Specifies the remote destination port, i.e. the destination port number to which the socket sends or receives data.</p><p><strong>State:</strong> Indicates the current state of the socket (e.g. ESTABLISHED indicates that the connection is established, LISTEN indicates that the socket is listening).</p><p><strong>FilterRAW:</strong> Indicates the raw data filtering status (if any), usually including information about firewall or packet filtering rules. This column indicates whether or not a particular filter is applied.</p><p>In this example, only the connections of processes with PID numbers 829 and 907 are filtered and output.</p><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime linux.sockstat --pids 829 907</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pBfSVnNX1RVPzysT.png" /></figure><h3>Linux Bash History / User Activities</h3><p>In this step, examine the command line activity performed on the system. The bash history is an important resource for detecting malicious commands, suspicious activity, or changes to the system because it reveals what commands users run and what types of operations they perform on the system.</p><p>With the “linux.bash” plugin included in Volatility 3, you can view and analyze the linux bash history on the memory dump file. The details of this output are as follows:</p><p><strong>PID:</strong> Process Identifier refers to the unique identifier number of the process being analyzed.</p><p><strong>Process: </strong>This is the name of the process with a particular PID.</p><p><strong>CommandTime:</strong> This is the date and time when the command was executed.</p><p><strong>Command:</strong> Displays the command that was executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pl-f4GE98QJbRgzm.png" /></figure><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime linux.bash</pre><pre>Copy</pre><h3>File Analysis</h3><p>Analyze file and directory structures on the system. Files left behind by malware, temporary files, or files that have been deleted but still exist in memory can be critical to understanding how a security incident unfolded.</p><p>With the “linux.lsof” plugin included in Volatility 3, you can see and analyze which process is associated with which file on the memory dump file.</p><p>In this example, only the file activity of the nginx process with PID 838 was filtered and output. The details of this output are as follows:</p><p><strong>PID: </strong>Process Identifier is the unique number of the analyzed process.</p><p><strong>Process: </strong>This is the name of the process. That is, the name of the process with a particular PID.</p><p><strong>FD: </strong>File Descriptor is a number that identifies a specific file or socket used by the process.</p><p><strong>Path:</strong> This is the path in the system to the file or resource that the file descriptor (FD) points to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8-jjwKW00_LMzBTq.png" /></figure><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime linux.lsof --pid 838</pre><pre>Copy</pre><h3>Malware Analysis</h3><p>The next step is to look for malware artifacts in the memory dump. Malware often uses sophisticated techniques to disguise itself. You should perform a detailed scan for signatures, hidden processes, or malicious installation mechanisms. The presence of rootkits, backdoors, and other malware is a serious threat to system security.</p><p>The “linux.vmayarascan” plugin included in Volatility 3 is an invaluable plugin for detecting potential threats or important information on a memory dump file.</p><p><strong>Uses include:</strong></p><p><strong>Malware Analysis:</strong> It can be used to detect malware samples, hidden processes, or rootkits from memory.</p><p><strong>Pattern Search: </strong>It can be used to find specific patterns or strings (such as sensitive information or encryption keys) in system memory.</p><p>As shown in the command image below, specific strings were searched in process 838 PID, and the output in HEX form was decoded with the “xxd” tool and displayed as a string.</p><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime linux.vmayarascan --pid 838 --yara-file /root/tools/yara-rules/custom/string_search.yar</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mqquo2qjpbwTnVnE.png" /></figure><pre>echo “6572726f72” | xxd -r -p</pre><pre>Copy</pre><p>Thanks to the custom rule “string_search.yar”, the expressions “error” and “access” were searched as strings in the analyzed memory dump.</p><pre>cat ../yara-rules/custom/string_search.yar</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M1vDKMpEF2lDUZuF.png" /></figure><h3>Drawing Conclusions and Writing a Report</h3><p>Finally, all information gained from the analysis should be reported in an understandable and actionable format. This report should include the timeline of the incident, systems affected, threats identified, and recommended actions to be taken. Effective reporting is a key resource for further incident response and potential legal proceedings.</p><h3>Conclusion</h3><p>Memory dump analysis is performed using tools such as Volatility 3 and reveals potential threats, anomalous behavior, and user activity on the system. The basic Linux memory dump analysis process includes examining processes, network connections, user activity, file analysis, and malware analysis. Each step provides a detailed examination of activity on the system, helping forensic experts uncover the truth behind the incidents. The results are reported in detail to help determine the nature of the incident and the security-related issues.</p><p>In Linux memory analysis, what is the state that indicates a process is still running?</p><p>TASK_RUNNING</p><p>What is the name of the plugin used for malware analysis in Linux memory forensics in Volatility 3?</p><p>linux.vmayarascan</p><p>What is the step to verify memory dump type and format in Linux memory analysis?</p><p>Image Identification</p><p>When examining the memory dump file “/var/dumps/forensic.lime”, what is the command and parameter corresponding to the MITRE technique “T1070.003 — Indicator Removal: Clear Command History” activity?</p><p>rm -f</p><p>Examine the memory dump file “/var/dumps/forensic.lime”. What is the name of the process that accesses the file “/etc/sudoers”?</p><p>sudo</p><h3>Case Studies and Practical Examples</h3><p>This course covers real-world scenarios and practical examples related to Linux memory forensics. The focus will be on how forensics processes are implemented, how various challenges are overcome, and how results are evaluated.</p><h3>Example-1</h3><p><strong>Case: Monitoring Suspicious User Activity</strong></p><p>System administrators have a suspicion of unauthorized access to the system where they are investigating a service crash. As part of this investigation, they begin to examine the commands and user activity that were executed on the system using bash commands from the memory dump.</p><p>The first step in the investigation is an examination of the bash history output in the memory dump. In such cases, since too many commands will have been executed first, it will be useful to quickly search for commands that the attackers are likely to run using the Mitre Attack Framework.</p><p>Examples of these commands include:</p><p><strong>“T1105 — Ingress Tool Transfer”:</strong> Uses the Linux ‘wget’ command. Attackers can use this command to download tools or malware to the target system.</p><p><strong>“T1021.001 — Remote Services: SSH”:</strong> Uses the Linux ‘ssh’ command. An attacker could use the “ssh” command to remotely access the system and execute commands.</p><p><strong>“T1070.004 — Indicator Removal on Host: File Deletion”:</strong> Uses the Linux ‘rm’ command. Attackers can use this command to cover their tracks or remove malicious files.</p><p><strong>“T1046 — Network Service Scanning”:</strong> Use of the Linux ‘nmap’ command. Attackers can use the nmap command to discover other devices and open ports on the network.</p><p><strong>“T1562.001 — Impair Defenses: Disable or Modify Tools”:</strong> Uses the Linux ‘chmod’ command. Attackers can use this command to modify or disable the permissions of security tools.</p><p><strong>“T1037.004 — Boot or Logon Autostart Execution: .bashrc”:</strong> Modifies the Linux “.bashrc” file. Attackers can modify this file to ensure that any malware they inject into the system is executed at login.</p><p><strong>“T1027.004 — Obfuscated Files or Information: Compile After Delivery”:</strong> Compiles source code using the Linux “gcc” command. Attackers can first transfer obfuscated source code that is difficult to understand and detect to the target system. They then use compilers such as gcc to convert the source code into binary files on the target system.</p><p>In this case, when the activity before and after the wget command that stood out in the memory dump was filtered, it was found that the attackers gathered information about the system using commands such as “whoami” “uname -a”, likely discovered a vulnerability in the kernel version and downloaded the exploit to the system using “wget”.</p><p>The attackers then adapted the exploit code, made it executable, and ran it.</p><pre>python3 vol.py -f /var/dumps/test-memdump.lime linux.bash | grep wget</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XWYsF_1IJA6c6W3b.png" /></figure><p><strong>In summary:</strong> You can quickly identify the security incident by examining the history output associated with suspicious situations. Just look for infrequently used commands whose use might be suspicious.</p><h3>Example-2</h3><p><strong>Case: Leaked passwords and sensitive information</strong></p><p>Based on the data leak information reported by the Cyber Threat Intelligence solution used by the organization, an investigation was initiated by taking a memory dump from the server containing the data exposed in the leak. The leak detail shows that there are “/etc/shadow”, “/etc/passwd” files belonging to a server.</p><p>During the investigation, the bash history, network activity, and file movements in the memory dump need to be checked.</p><p>On the received memory dump, it first examines the activities related to these files from the history.</p><p>Then, among these activities, the network activity of the data transfer process with “scp” is checked.</p><p>Finally, the file movements are examined to ensure that the corresponding files are actually read and transferred by “scp”.</p><p>Below is a step-by-step view of the output of these checks. Analysis of the output shows that the files ‘/etc/shadow’ and ‘/etc/passwd’ were transferred from the server to the IP address ‘8.7.6.5’.</p><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime linux.bash | egrep &quot;passwd|shadow&quot;</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BtTtIS42qBvAm5nl.png" /></figure><h3>Conclusion</h3><p>This lesson presents 2 different perspectives on what and how to view a dump analysis of a suspicious event. In general, you can detect suspicious situations by examining the path taken for such situations, executed commands, network activity, and file activity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=397b659c3aaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Linux Memory Forensics]]></title>
            <link>https://medium.com/@piyushkkr12/introduction-to-linux-memory-forensics-7107db0470c1?source=rss-e06aa92fd440------2</link>
            <guid isPermaLink="false">https://medium.com/p/7107db0470c1</guid>
            <dc:creator><![CDATA[Piyushkkr12]]></dc:creator>
            <pubDate>Fri, 07 Aug 2026 04:56:46 GMT</pubDate>
            <atom:updated>2026-08-07T04:56:46.291Z</atom:updated>
            <content:encoded><![CDATA[<p>In the ever-evolving landscape of the digital age, cybersecurity and forensics have become more important than ever. In this fast-paced environment, “Memory Forensics”, or memory forensic analysis, has emerged as an indispensable tool in the investigation of cybercrimes and security breaches. Developing memory forensics skills, especially on systems running Linux operating systems, allows professionals to more effectively identify, analyze, and mitigate these threats.</p><p>Memory Forensics involves the examination of a system’s physical memory (RAM). This is vital to understanding what a computer is currently doing or has done in the past. In the event of a system crash, malware infection, or other security breach, the data stored in RAM can be extremely valuable information. The Linux Memory Forensics course provides a comprehensive guide to accessing, analyzing, and reporting this valuable information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d8eRrhb4fK5CG2Ta.png" /></figure><p>Memory forensics is primarily used for malware analysis, debugging, analyzing system performance issues, detecting data leaks, and monitoring user activity. It is also critical for root cause analysis of system crashes and understanding of attackers’ actions during a security breach.</p><h3>Required Tools</h3><p>LiME (Linux Memory Extractor) and Volatility for Linux Memory Forensics are essential tools that are widely used for memory analysis. The purpose and use of each tool is described in detail below:</p><h3>LiME (Linux Memory Extractor)</h3><p>LiME is a tool designed for use in Linux operating systems to create a secure copy of the system’s RAM. It works as a kernel module and can export the contents of memory in various formats (e.g. raw, lime format) to a disk file.</p><p>LiME is used during forensic analysis and security investigations to collect data from system memory. This includes valuable information about running system processes, network connections, user sessions, and even potentially malicious software. LiME allows retrospective analysis of events that occurred while the system was down or active by creating a complete and unaltered copy of the data.</p><p><strong>Features of LiME:</strong></p><ul><li>Hash of dumped memory</li><li>Acquisition via network interface</li><li>Minimal process footprint</li><li>Full Android memory capture</li></ul><p>LiME can be installed on Ubuntu Linux distribution as shown in the screenshot below. These commands will create the required LiME module for the system. In Linux, the module is used for memory dumping.</p><p># The ‘lime’ repository is downloaded.</p><pre>git clone https://github.com/504ensicsLabs/LiME.git</pre><pre>Copy</pre><p># You change to the ‘lime/src’ directory.</p><pre>cd LiME/src/</pre><pre>Copy</pre><p># The code is compiled with the make command.</p><pre>make</pre><pre>Copy</pre><p># The ‘lime’ is searched for within the kernel modules using the lsmod command.</p><pre>lsmod | grep -i lime</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DKBKBbe0uSpxzZAo.png" /></figure><p>This concludes the Linux LiME installation and the Linux LiME tool is ready to use. We will explain how to use it in the next lessons.</p><h3>Volatility</h3><p>Volatility is an open-source memory analysis framework. It is available for both Linux and Windows environments. Volatility is a powerful tool for analyzing the information contained in the RAM of operating systems. Compatible with a wide range of operating systems and memory dump formats, Volatility provides a comprehensive framework for memory analysis. It is written in Python and has an extensive library of plug-ins.</p><p>Volatility is used to analyze memory dump output from tools such as LiME. It allows users to list processes in RAM, DLLs, network connections, open files, registry keys, and more. It is also used to detect malware, reveal hidden codes, and examine general user activity on the system. Volatility is one of the most widely used memory forensics tools and is essential for performing detailed memory analysis.</p><p>Volatility supports several sample file formats and can convert one to another. The supported file formats are listed below:</p><ul><li>Raw linear sample (dd)</li><li>Hibernation file (from Windows 7 and earlier)</li><li>Crash dump file</li><li>VirtualBox ELF64 core dump</li><li>VMware saved state and snapshot files</li><li>EWF format (E01)</li><li>LiME format</li><li>Mach-O file format</li><li>QEMU virtual machine dumps</li><li>Firewire</li><li>HPAK (FDPro)</li></ul><p>Installing Ubuntu 22.04 Volatility3 can be done as shown below.</p><p>Python3 or higher is required to use Volatility3.</p><p># The latest version of Volatility is downloaded from the official repository.</p><pre>git clone https://github.com/volatilityfoundation/volatility3.git</pre><pre>Copy</pre><p># You change to the ‘volatility3’ directory</p><pre>cd volatility3/</pre><pre>Copy</pre><p># Run “python3 setup.py build” command</p><pre>python3 setup.py build</pre><pre>Copy</pre><p># Run “python3 setup.py install” command</p><pre>python3 setup.py install</pre><pre>Copy</pre><p># To install the most minimal set of dependencies use a command such as</p><pre>pip3 install -r requirements-minimal.txt</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z-TZLXlWA5UXmHGO.png" /></figure><p>The installation of Volatility3 is now complete and the tool is ready for use. We will explain how to use Volatility3 in the next lessons.</p><h3>Conclusion</h3><p>In the digital age, cybersecurity, and forensics have become increasingly important, and memory forensics has become a fundamental tool for analyzing cybercrimes and security breaches, especially on Linux systems. At its core, LiME is a memory dump collection and analysis tool that securely retrieves valuable data from system memory, while Volatility provides detailed analysis of that data. Both tools are valuable resources for forensic analysts and are used in a variety of areas including malware detection, debugging, and user activity monitoring. Effective use of these tools allows for more detailed and accurate forensic analysis.</p><p>In the next lesson, we will discuss creating a memory dump using the LiME tool.</p><h3>Capturing Memory Dumps</h3><p>On Linux systems, “memory dumping”, that is, taking a snapshot of system memory (RAM) and saving it to disk for later analysis, is extremely important, especially for forensics and troubleshooting.</p><p>This is especially important when the system is rebooted. When the system is rebooted, the information stored in memory is lost. Thus, it is important to take a snapshot of memory and store it securely for anyone who needs to access this information later for debugging or forensic investigation.</p><p>Memory data can contain critical information about the running programs, user activity, system status, and potentially malicious software. Securely storing this information in memory before it is lost is a fundamental step in maintaining its integrity and enabling future analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jFSH45XwieV8qSmg.png" /></figure><p>Some memory dump tools that can be used for memory forensics on Linux systems are:</p><p><strong>LiME (Linux Memory Extractor): </strong>LiME is a kernel module designed specifically for Linux operating systems that can safely transfer the contents of memory to a disk file.</p><p><strong>Fmem:</strong> Fmem is a simple kernel module for Linux operating systems that can export system memory in raw format.</p><p><strong>Avml:</strong> Avml is a portable memory dump tool for Linux-based systems, designed to create Volatility-compatible memory images.</p><p><strong>Crash:</strong> Crash is a tool for analyzing kernel crashes on Linux systems, and can also be used to get memory dumps from live systems.</p><p><strong>Memdump:</strong> Memdump is an old process dump tool on Linux systems; it is used to dump the memory of a given process.</p><p><strong>Coredump:</strong> Often used for debugging and system analysis, coredump is a mechanism unique to Linux systems that records the memory state of a program at the time it crashes.</p><p>Memory dumping is important in forensic analysis for several reasons. Forensics is the process of collecting, preserving, analyzing, and reporting data from digital devices for use in forensic investigations. In this process, a memory dump provides a frozen snapshot of the system’s current state, which contains:</p><p><strong>Running programs and processes: </strong>A memory dump contains a detailed list of all programs and processes running on a system. This information can be used to detect the presence of malware or malicious processes on the system.</p><p><strong>System failures: </strong>When system failures or crashes occur, the memory dump can provide critical information to understand the causes of these events. Faulty code pieces, memory leaks, or incompatible drivers can be the cause of these problems.</p><p><strong>Network Connections: </strong>Network information such as active network connections and open ports can be extracted from the memory dump. Note that this is important to determine what external servers the system is communicating with or to identify malicious network activity.</p><p><strong>User activity and session information: </strong>User activity such as system logins, file access, and session information can be stored in the memory dump. This can be particularly valuable for unauthorized access or insider threat analysis.</p><p><strong>Cryptographic keys and sensitive data: </strong>In some cases, cryptographic keys, passwords, and other sensitive information can be retrieved from the memory dump and used to gain access to protected data or decrypt encrypted communications.</p><p><strong>Malware analysis: </strong>Malware often uses various techniques to hide from detection. Memory dump provides a rich resource for analyzing the presence and behavior of such software.</p><p>Memory dump is extremely valuable in digital forensic investigations to gather the above information, understand criminal activity, assess system security, and respond to potential security breaches. Thus, it can be said that memory dumps play a critical role in forensic analysis.</p><h3>Extracting Memory Dumps from Linux systems with LiME (Linux Memory Extractor)</h3><p>LiME (Linux Memory Extractor) is a tool for the extraction of memory dumps from Linux-based systems. Memory dumps contain a copy of the system’s current memory state and are essential for forensic investigations. LiME can provide valuable information about running processes, network connections, user sessions, and potential malware that may be present. For debugging, malware detection, and forensic investigations, it plays a critical role.</p><p>After the installation of the LiME module, you can start the memory dump process. To obtain the memory dump, you can specify various parameters and formats. For example, you can follow the path below to dump:</p><p># The disk usage status and total memory size are checked. There must be as much free space on the disk as the total memory area.</p><pre>df -h</pre><pre>Copy</pre><pre>free -m</pre><pre>Copy</pre><p># You switch to the Lime/src directory.</p><pre>cd tools/LiME/src/</pre><pre>Copy</pre><p># The name of the lime kernel module file is found.</p><pre>ls -l lime*.ko</pre><pre>Copy</pre><p># This command loads the LiME kernel module named ‘lime-6.5.0–25-generic.ko’ into the Linux kernel and initiates a memory dump</p><pre>insmod lime-6.5.0-25-generic.ko &quot;path=/var/dumps/ubuntu-memdump.lime format=lime&quot;</pre><pre>Copy</pre><p># The created memory dump is checked.</p><pre>ls /var/dumps/</pre><pre>Copy</pre><pre>du -sch /var/dumps/ubuntu-memdump.lime</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PwlC7vzzwLBUJrF9.png" /></figure><p>As you can see in the image above, the total size of the memory is 4 GB and the size of the image is 4 GB.</p><p>Using the lime kernel module with the “insmod” command, a memory dump of the system “/var/dumps/ubuntu-memdump.lime” was created in lime format.</p><h3>Conclusion</h3><p>Memory dumping on Linux systems is a fundamental step in forensic and technical troubleshooting. In this lesson’s example, the disk space and memory size were checked first, then the LiME module was loaded, and a memory dump was created in the specified format and directory. For forensics and troubleshooting, the memory dump is a valuable resource. The next lesson will provide information on how to analyze this memory dump.</p><h3>Analyzing the Memory Dump</h3><p>Analyzing memory dumps is a critical part of forensic investigations and gathering diagnostic information for troubleshooting. A memory dump of a system provides detailed information about running processes, active user sessions, network connections, and potentially malicious software. This lesson explains how to analyze a memory dump step-by-step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bKVUUoXdYDIp1ceV.png" /></figure><p>Here are the tools that can be used for memory forensics on Linux systems and their brief descriptions:</p><p><strong>Volatility:</strong> An open-source memory analysis framework that supports a wide range of operating systems and memory dump formats. It offers various features such as malware analysis and user activity analysis.</p><p><strong>Rekall (or GRR): </strong>Similar to Volatility, Rekall (or GRR) is a memory analysis tool primarily developed by Google with a wide range of analysis features; it is known for its timeline analysis and fast data collection features.</p><p><strong>Redline: </strong>A tool for analyzing memory and file systems; offers a user-friendly interface and allows examination of various indicators and artifacts.</p><p><strong>Memoryze for Linux: </strong>Another tool used for memory analysis and malware detection; it offers various memory analysis features, but can be more technical to use.</p><p><strong>Linux Memory Grabber:</strong> A scripting tool used to take a memory dump from the system and gather the necessary tools for analysis; it can be used swiftly by forensic analysts.</p><p>Before memory dump analysis can be performed, the appropriate tools must be installed and configured. Volatility, one of the most popular memory analysis tools, is generally preferred because of its compatibility with a wide range of operating systems and memory dump formats.</p><h3>Key Differences Between Volatility 2 &amp; 3</h3><p>Volatility is a well-known open-source memory forensics tool, and there are two versions, Volatility 2 and Volatility 3, with different features. Here are some of the key differences between Volatility 2 and Volatility 3:</p><h3>Software Architecture</h3><p><strong>Volatility 2:</strong> Has a more traditional architecture based on Python 2. It uses a plugin-based structure and includes a set of scripts and modules for memory forensics analysis.</p><p><strong>Volatility 3: </strong>Has a completely redesigned, modular, and flexible architecture. It is based on Python 3 and offers improved performance and extensibility.</p><h3>Supported Operating Systems and Memory Formats</h3><p><strong>Volatility 2:</strong> Compatible with memory dumps from various Windows, Linux, Mac OSX, and other operating systems, but has limitations in supporting newer operating systems and memory formats.</p><p><strong>Volatility 3: </strong>Supports a wider range of operating systems and memory dump formats. Offers faster updates and support for new operating systems and memory formats.</p><h3>User Interface and Usability</h3><p><strong>Volatility 2:</strong> Has a familiar command line interface for its early users, but the learning curve for new users can be high.</p><p><strong>Volatility 3:</strong> Offers a more intuitive user interface and improved command-line interface. It also provides better error messages and documentation to help users perform analysis more effectively.</p><h3>Analytic Capabilities and Performance</h3><p><strong>Volatility 2:</strong> Has strong analysis capabilities, but may experience performance issues when working with large memory dumps.</p><p><strong>Volatility 3:</strong> Provides improved performance and scalability. It can work more effectively with large dumps and perform more complex analyses faster.</p><h3>Development and Community Support</h3><p><strong>Volatility 2:</strong> Due to the end of Python 2 and reduced community support, development and update support has decreased.</p><p><strong>Volatility 3: </strong>Actively developed and supported. As an open-source project supported by a large community, it often gets new plugins, updates, and fixes.</p><p>Overall, Volatility 3 is a newer, faster, and more flexible tool for modern memory forensic analysis. However, some users may still prefer Volatility 2 for specific scenarios or older systems. Both versions have their own strengths and weaknesses, and the choice should be made based on the user’s needs.</p><h3>About Volatility 3</h3><p>Volatility divides memory analysis into several components. The main ones are as follows:</p><ul><li>Memory Layers</li><li>Templates and Objects</li><li>Symbol Tables</li></ul><p><strong>Memory Layers:</strong></p><p>Memory layers are one of the basic components that Volatility 3 uses for memory analysis. They represent different memory resources such as physical memory, virtual memory, file system, etc. These layers provide abstraction between different parts of the analyzed memory image, allowing the tool to access the memory image at different levels. For example, a physical memory layer provides direct access to the raw memory image, while a virtual address translation layer mimics the virtual memory layout of the operating system. This gives Volatility more flexibility to handle different types of memory structures and operating systems.</p><p><strong>Templates and Objects:</strong></p><p>Volatility 3 uses templates and objects to represent memory structures. Templates contain definitions of in-memory data structures, while objects are concrete examples created according to the templates. For example, the process list of an operating system can be defined using a template, and each process can be constructed as an object that conforms to that template. This structure allows Volatility to understand and present complex in-memory data structures to the user. Objects and templates provide consistency and clarity when accessing data in the memory image.</p><p><strong>Symbol Tables:</strong></p><p>Symbol tables contain the addresses and layouts of data structures and functions used by operating system kernels and other system components. These tables allow Volatility to recognize and interpret specific structures within the memory image. For example, the locations of syscalls, operating system objects, and other important kernel structures can be found in a Windows symbol table. Volatility 3 uses these symbol tables to determine which data structures to use in-memory image analysis and how to interpret them.</p><p>Volatility 3 stores all this in a context that serves as a container for all the different layers and tables required for memory analysis.</p><p>The wide range of plug-ins and commands provided by Volatility meet various memory analysis needs and allow users to perform in-depth system analysis. However, it must be noted that effective memory dump analysis requires an understanding of the operating system and the structure of the system from which the memory dump is taken.</p><p>Below are some of the basic Volatility3 commands and their application to Linux memory dumps:</p><p>Displays the operating system, version, and other basic information from the memory dump file:</p><pre>python3 vol.py -f &lt;memory_dump&gt; banner</pre><pre>Copy</pre><p>Displays a list of processes running on the system:</p><pre>python3 vol.py -f &lt;memory_dump&gt; linux.pslist</pre><pre>Copy</pre><p>Displays the tree structure of processes, showing parent and child relationships:</p><pre>python3 vol.py -f &lt;memory_dump&gt; linux.pstree</pre><pre>Copy</pre><p>Lists all processes in memory. Unlike Pslist, it also lists processes that have been killed but still have traces in memory:</p><pre>python3 vol.py -f &lt;memory_dump&gt; linux.psscan</pre><pre>Copy</pre><p>Displays the bash commands and history that are executed on Linux systems:</p><pre>python3 vol.py -f &lt;memory_dump&gt; linux.bash</pre><pre>Copy</pre><p>Lists open file objects on Linux systems:</p><pre>python3 vol.py -f &lt;memory_dump&gt; linux.lsof</pre><pre>Copy</pre><p>Lists installed Linux kernel modules:</p><pre>python3 vol.py -f &lt;memory_dump&gt; linux.lsmod</pre><pre>Copy</pre><p>Lists all network connections for all processes:</p><pre>python3 vol.py -f &lt;memory_dump&gt; linux.sockstat</pre><pre>Copy</pre><p>Allows you to search Linux memory dumps using YARA rules:</p><pre>python3 vol.py -f &lt;memory_dump&gt; linux.vmayarascan --yara-rules &quot;/path/to/yara_rules.yar&quot;</pre><pre>Copy</pre><p>You can learn more about Volatility 3 at: <a href="https://volatility3.readthedocs.io/en/latest/basics.html">https://volatility3.readthedocs.io/en/latest/basics.html</a></p><h3>Memory Dump Analysis with Volatility 3</h3><p>For memory dump analysis with Volatility, we will analyze the “ubuntu-memdump.lime” memory dump from the previous lesson.</p><p>First, we will use Volatility to get the operating system and version information from the dump file.</p><p>Banner information will be extracted from this memory dump file:</p><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime banner</pre><pre>Copy</pre><p>Based on this information, the appropriate Volatility symbol is determined. The analysis continues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cKxFjX_xKYsF5n9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FRHVi2qbZTCVFqZ0.png" /></figure><p>( <strong>Image Source</strong> : <a href="https://volatility3.readthedocs.io/en/latest/basics.html#symbol-tables">https://volatility3.readthedocs.io/en/latest/basics.html#symbol-tables</a> )</p><p>Check whether the symbol is the correct symbol for the operating system and kernel version.</p><pre>ls -l volatility3/symbols/</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0Rl0lf4K2AriHeYG.png" /></figure><p><strong>Please Note Below About Linux ISF:</strong></p><p>Previously, Volatility 2 used the concept of a “profile”. However, with the advent of Volatility 3, a “symbol table” was introduced as a new method to replace the profile. Essentially, this approach interprets the Linux kernel’s symbol information based on stored tables, allowing the meaning of values in memory to be revealed. Volatility performs the analysis of the kernel’s symbol table and stores the data in a unique format known as the ISF (Intermediate Symbol Format) file format. Thus, the analysis of a Linux memory dump can be performed using an “ISF” file instead of the traditional “profile”.</p><p>There are two ways to get an ISF file. One is to use an existing file, the other is to create one yourself.</p><p>You can obtain existing ISF files from the Volatility3 Linux ISF server: <a href="https://isf-server.techanarchy.net/">https://isf-server.techanarchy.net/</a></p><p>You can search this address for the kernel version in the banner information of the memory dump file we obtained above, or you can search for the kernel version you obtained using the “uname -r” command on the system in question.</p><p>When we searched for the kernel version of the system from which we obtained our memory dump, no ISF file was found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ydBn6G5Xkljyk_S4.png" /></figure><p>If the ISF file is found, it can be downloaded for one hour, after which it should be searched for again to obtain the download link. The downloaded file should be placed in the “/volatility3/symbols” directory within the Volatility3 directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q8whAb4k7unVHGUN.png" /></figure><p>If no symbol format is available, we have to create an ISF file ourselves to analyze the memory dump.</p><p><strong>Note:</strong> If you try to analyze the corresponding memory dump without an ISF file, you will see an output like the one below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xD8vypCFTnONOer5.png" /></figure><p>Dwarf2json is a utility that processes files containing symbol and type information to produce Volatility3 Intermediate Symbol Format (ISF) JSON output suitable for Linux and MacOS analysis (Go 1.14 or later is required to use it).</p><p>You can create a custom ISF file using the “dwarf2json” utility.</p><p><strong>Installing dwarf2json on Ubuntu 22.04</strong></p><p># The latest version of “Dwarf2json” is downloaded from the official repository.</p><pre>git clone https://github.com/volatilityfoundation/dwarf2json.git</pre><pre>Copy</pre><p># You change to the dwarf2json directory</p><pre>cd dwarf2json/</pre><pre>Copy</pre><p># We use the go build command to perform the compilation process.</p><pre>go build</pre><pre>Copy</pre><p># Check the command</p><pre>./dwarf2json --help</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7QElmo51Gh93A4Ye.png" /></figure><p># To install debug symbols packages etc.</p><pre>echo &quot;deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse</pre><pre>Copy</pre><pre>deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse</pre><pre>Copy</pre><pre>deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse&quot; | \</pre><pre>Copy</pre><pre>sudo tee -a /etc/apt/sources.list.d/ddebs.list</pre><pre>Copy</pre><pre>sudo apt install ubuntu-dbgsym-keyring</pre><pre>Copy</pre><pre>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F2EDC64DC5AEE1F6B9C621F0C8CAB6595FDFF622</pre><pre>Copy</pre><pre>sudo apt-get update</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*17FGqD8cjj4VJwcc.png" /></figure><p>Now you can load the dbgsym information for the kernel image version that you want to use:</p><p># Check kernel version</p><pre>uname -r</pre><pre>Copy</pre><p># Install dbgsym</p><pre>apt install linux-image-6.5.0-25-generic-dbgsym</pre><pre>Copy</pre><p># Check vmlinux file</p><pre>ls -lh /usr/lib/debug/boot</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tSwgwXsK3otzhnHJ.png" /></figure><p>As shown above, the vmlinux file containing the kernel debugging symbols is located in the ‘/usr/lib/debug/boot’ folder. Based on the vmlinux file, you can use the dwarf2json tool to extract the ISF “output.json” file.</p><pre>./dwarf2json linux --elf /usr/lib/debug/boot/vmlinux-6.5.0-25-generic &gt; /root/tools/volatility3/volatility3/symbols/vmlinux-6.5.0-25-generic.json</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GksIxQ-u6hqSfT7Q.png" /></figure><p>Repeating the step we tried a few steps ago and got an error, we see that we can now analyze the memory dump file.</p><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime linux.pslist</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4PmsRL1anixXdkai.png" /></figure><p>The following is an example of some Linux memory dump analysis output.</p><p>The Linux Sockstat memory dump output:</p><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime linux.sockstat</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4-czrScfS9u8C0ZV.png" /></figure><p>The “Linux Bash History” dump output is shown in the figure below:</p><pre>python3 vol.py -f /var/dumps/ubuntu-memdump.lime linux.bash</pre><pre>Copy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xQGC4uYF3YbkzJ_u.png" /></figure><p>At this point, you are familiar with Volatility’s memory analysis capabilities. We have also shown you how to create an ISF file, which is not included with Volatility.</p><h3>Conclusion</h3><p>This lesson covered the analysis of the memory dump extracted in the previous lesson and demonstrated how to create an ISF file in Volatility, one of the most commonly used analysis tools. Volatility 3 goes beyond traditional profile-based approaches. It provides users with flexible analysis based on the symbol information of the Linux kernel. Specifically, this new method includes the use of the Intermediate Symbol Format (ISF) and allows forensic analysts to analyze systems in detail. This advanced approach contributes to a comprehensive understanding and resolution of incidents on Linux systems by enabling a thorough examination of malware, user behavior, and network activity. Volatility 3 provides a deeper understanding and a clearer perspective on forensics through these analysis techniques.</p><p>In the next lesson, we will discuss the basics of Memory Forensics.</p><p>What is the md5 hash of “/var/dumps/forensic.lime”?</p><p>dcecd22f1c5f086b342b67a88168a4be</p><p>In Linux memory analysis, which Volatility3 plugin shows processes in a tree structure?</p><p>linux.pstree</p><p>The dump file “/var/dumps/forensic.lime” is from which Linux kernel version?</p><p>6.5.0–25-generic</p><p>Examine the memory dump file “/var/dumps/forensic.lime”. What is the name of the process that is listening on port 9000?</p><p>python3</p><p>Examine the dump file “/var/dumps/forensic.lime”. What is the PID number of the process listening on port 8080?</p><p>2950</p><p>Examine the memory dump file “/var/dumps/forensic.lime”. To which directory/file is the output of process 3015 PID sent?</p><p>/tmp/output.txt</p><p>Examine the memory dump file “/var/dumps/forensic.lime”. What is the password for the SSH connection to the IP address 172.16.8.54?</p><p>11S3cR3T22</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7107db0470c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing the unified kill chain]]></title>
            <link>https://medium.com/@piyushkkr12/introducing-the-unified-kill-chain-6d0ed251ada2?source=rss-e06aa92fd440------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d0ed251ada2</guid>
            <dc:creator><![CDATA[Piyushkkr12]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 12:52:49 GMT</pubDate>
            <atom:updated>2026-07-05T12:52:49.569Z</atom:updated>
            <content:encoded><![CDATA[<p>Paul Pols’ Unified Kill Chain, (opens in new tab) published in 2017, aims to complement (not compete with) other cybersecurity kill chain frameworks, such as Lockheed Martin’s and</p><p>MITRE’s ATT&amp;CK.</p><p>The<br>states that there are 18 phases to an attack: Everything from reconnaissance to data exfiltration and understanding an attacker’s motive. These phases have been grouped together in this room into a few areas of focus for brevity, which will be detailed in the remaining tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*512G5uKleO9FlVLgqXxcZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lI6R9FGdE7Iu6PPzl2Vr6w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d0ed251ada2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Wazuh 4.12 on Kali Linux: Troubleshooting Dashboard, Indexer, and Manager Issues]]></title>
            <link>https://medium.com/@piyushkkr12/installing-wazuh-4-12-on-kali-linux-troubleshooting-dashboard-indexer-and-manager-issues-0f643ede02ef?source=rss-e06aa92fd440------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f643ede02ef</guid>
            <dc:creator><![CDATA[Piyushkkr12]]></dc:creator>
            <pubDate>Thu, 04 Jun 2026 03:17:33 GMT</pubDate>
            <atom:updated>2026-06-04T04:32:07.985Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>I recently installed Wazuh 4.12 on Kali Linux and encountered several issues during the setup process. Although Wazuh officially recommends Ubuntu, CentOS, RHEL, and Amazon Linux, I wanted to run it on Kali for my security lab.</p><p>This post documents every problem I faced, the commands I used to troubleshoot, the outputs I received, and the solutions that ultimately worked.</p><h3>Environment</h3><ul><li>Operating System: Kali Linux</li><li>Wazuh Version: 4.12.0</li><li>Components Installed:</li><li>Wazuh Indexer</li><li>Wazuh Dashboard</li><li>Wazuh Manager</li><li>Filebeat</li></ul><h3>Problem 1: Wazuh Indexer Failed to Start</h3><p>After installation, the indexer service would not start.</p><h3>Checking the service status</h3><pre>sudo systemctl status wazuh-indexer --no-pager -l</pre><p>Output:</p><pre>Failed to start wazuh-indexer.service<br>status=1/FAILURE</pre><p>The logs showed:</p><pre>Error opening log file &#39;/var/log/wazuh-indexer/gc.log&#39;:<br>No such file or directory</pre><p>and</p><pre>Invalid -Xlog option<br>Could not create the Java Virtual Machine</pre><h3>Solution 1: Create the Missing Log Directory</h3><p>I checked the JVM configuration:</p><pre>grep -n &quot;gc.log&quot; /etc/wazuh-indexer/jvm.options</pre><p>Output:</p><pre>-Xloggc:/var/log/wazuh-indexer/gc.log</pre><p>The required directory did not exist.</p><p>I created it:</p><pre>mkdir -p /var/log/wazuh-indexer<br>chown wazuh-indexer:wazuh-indexer /var/log/wazuh-indexer</pre><p>Verification:</p><pre>ls -ld /var/log/wazuh-indexer</pre><p>Output:</p><pre>drwxr-xr-x wazuh-indexer wazuh-indexer</pre><h3>Problem 2: Indexer Start Timeout</h3><p>After fixing the log directory, the service no longer crashed immediately but timed out.</p><p>Logs:</p><pre>start operation timed out<br>Failed with result &#39;timeout&#39;</pre><p>I checked memory settings:</p><pre>grep -E &quot;^-Xms|^-Xmx&quot; /etc/wazuh-indexer/jvm.options</pre><p>Output:</p><pre>-Xms1024m<br>-Xmx1024m</pre><p>The machine had limited RAM, causing startup delays.</p><h3>Verifying Indexer Startup</h3><p>Eventually the Indexer process came online.</p><p>Checking port 9200:</p><pre>sudo ss -tulnp | grep 9200</pre><p>Output:</p><pre>LISTEN 127.0.0.1:9200</pre><p>Testing connectivity:</p><pre>curl -k https://localhost:9200</pre><p>Output:</p><pre>Unauthorized</pre><p>This was actually good news.</p><p>“Unauthorized” meant:</p><ul><li>OpenSearch was running</li><li>HTTPS was working</li><li>Authentication was enabled</li></ul><p>The Indexer was alive.</p><h3>Problem 3: Dashboard Could Not Connect to Indexer</h3><p>Dashboard installation succeeded:</p><pre>wazuh-dashboard service started</pre><p>But initialization failed with:</p><pre>Cannot connect to Wazuh dashboard<br>Wazuh indexer security settings not initialized</pre><p>Dashboard logs showed repeated errors:</p><pre>ResponseError</pre><p>This indicated that Dashboard could not authenticate to the Indexer.</p><h3>Investigating Authentication</h3><p>I tried:</p><pre>curl -k https://localhost:9200</pre><p>Output:</p><pre>Unauthorized</pre><p>I then attempted authentication:</p><pre>curl -k -u admin:&#39;password&#39; https://localhost:9200</pre><p>The response still indicated authorization issues.</p><p>At this point I realized that only the Dashboard and Indexer had been installed.</p><p>The Wazuh Manager component was missing.</p><h3>Problem 4: Wazuh Manager Not Installed</h3><p>Checking installed packages:</p><pre>dpkg -l | grep wazuh</pre><p>Output:</p><pre>wazuh-dashboard<br>wazuh-indexer</pre><p>Missing:</p><pre>wazuh-manager</pre><p>This explained why:</p><pre>/var/ossec/bin/manage_agents</pre><p>did not exist.</p><p>And why:</p><pre>ls /var/ossec</pre><p>returned nothing.</p><h3>Attempting Manager Installation</h3><p>I tried:</p><pre>sudo ./wazuh-install.sh -ws wazuh-1</pre><p>But received:</p><pre>Cannot find wazuh-install-files.tar</pre><h3>Problem 5: Missing Installation Configuration Files</h3><p>The installer required:</p><pre>wazuh-install-files.tar</pre><p>But it did not exist.</p><p>Searching for configuration files:</p><pre>find / -name config.yml</pre><p>I found:</p><pre>/tmp/wazuh-install-files/config.yml</pre><p>Contents:</p><pre>nodes:<br>  indexer:<br>    - name: node-1<br>      ip: &quot;127.0.0.1&quot;</pre><pre>  server:<br>    - name: wazuh-1<br>      ip: &quot;127.0.0.1&quot;</pre><pre>  dashboard:<br>    - name: dashboard<br>      ip: &quot;127.0.0.1&quot;</pre><p>Unfortunately the file later disappeared.</p><h3>Solution 5: Recreate config.yml</h3><p>I manually recreated:</p><pre>nodes:<br>  indexer:<br>    - name: node-1<br>      ip: &quot;127.0.0.1&quot;<br><br>  server:<br>    - name: wazuh-1<br>      ip: &quot;127.0.0.1&quot;<br>  dashboard:<br>    - name: dashboard<br>      ip: &quot;127.0.0.1&quot;</pre><p>Then generated installation files.</p><h3>Successful Manager Installation</h3><p>Running:</p><pre>sudo ./wazuh-install.sh -ws wazuh-1</pre><p>Finally produced:</p><pre>INFO: Wazuh manager installation finished.<br>INFO: Starting service wazuh-manager.<br>INFO: wazuh-manager service started.</pre><pre>INFO: Filebeat installation finished.<br>INFO: filebeat service started.</pre><pre>INFO: Installation finished.</pre><p>Success!</p><h3>Verifying All Components</h3><h3>Check Services</h3><pre>sudo systemctl status wazuh-manager<br>sudo systemctl status wazuh-indexer<br>sudo systemctl status wazuh-dashboard<br>sudo systemctl status filebeat  <br><br><br></pre><h3>Check Listening Ports</h3><pre>sudo ss -tulnp | egrep &#39;1514|1515|55000|9200|443&#39;</pre><p>Expected:</p><pre>1514 -&gt; Agent communication<br>1515 -&gt; Agent enrollment<br>55000 -&gt; Wazuh API<br>9200 -&gt; Wazuh Indexer<br>443  -&gt; Wazuh Dashboard</pre><h3>Verify Dashboard</h3><p>Open:</p><pre>https://&lt;server-ip&gt;</pre><p>Login using:</p><pre>Username: admin<br>Password: &lt;generated-password&gt;</pre><h3>Agent Enrollment</h3><p>After Manager installation, agent tools became available:</p><pre>ls /var/ossec/bin</pre><p>Important utilities:</p><pre>manage_agents<br>agent_control<br>wazuh-control</pre><p>To add agents:</p><pre>sudo /var/ossec/bin/manage_agents</pre><h3>Inspecting the Generated Wazuh Credentials</h3><p>One important step during the installation was checking the credentials generated by the Wazuh installation assistant.</p><pre>cat /tmp/wazuh-install-files/wazuh-passwords.txt<br></pre><p>Location where default wazuh password stored</p><p>/usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-passwords-tool.sh</p><p>Reset services</p><pre>sudo systemctl restart wazuh-indexer<br>sudo systemctl restart wazuh-manager<br>sudo systemctl restart filebeat<br>sudo systemctl restart wazuh-dashboard</pre><h3>Lessons Learned</h3><ol><li>Kali Linux is not officially supported by Wazuh.</li><li>Missing log directories can prevent Indexer startup.</li><li>“Unauthorized” from port 9200 often means the Indexer is actually running.</li><li>Dashboard requires a functioning Indexer and proper credentials.</li><li>Installing only Dashboard and Indexer is not enough; Manager must also be installed.</li><li>The Wazuh Manager creates the /var/ossec directory and agent management tools.</li><li>Filebeat is required to forward alerts from Manager to Indexer.</li></ol><h3>Final Result</h3><p>After troubleshooting:</p><p>✅ Wazuh Indexer Running</p><p>✅ Wazuh Dashboard Running</p><p>✅ Wazuh Manager Running</p><p>✅ Filebeat Running</p><p>✅ Agent Enrollment Available</p><p>✅ Wazuh Web Interface Accessible</p><p>The Wazuh deployment was fully operational on Kali Linux despite the platform not being officially recommended.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f643ede02ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Server Attacks — I]]></title>
            <link>https://medium.com/@piyushkkr12/web-server-attacks-i-a82407eee513?source=rss-e06aa92fd440------2</link>
            <guid isPermaLink="false">https://medium.com/p/a82407eee513</guid>
            <dc:creator><![CDATA[Piyushkkr12]]></dc:creator>
            <pubDate>Sun, 31 May 2026 10:40:06 GMT</pubDate>
            <atom:updated>2026-05-31T10:40:06.574Z</atom:updated>
            <content:encoded><![CDATA[<h3>Web Server Attacks — I</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*7L7c6eZY5T4jY3cuTyKMmg.png" /></figure><p>Task-1 Introduction</p><p>During a penetration test, you will almost always run into at least one web server. Sometimes it is a production Apache site with careful configuration. Sometimes it is a forgotten Python HTTP server that a developer spun up two years ago and never shut down. Both of them are in scope. Both of them can lead somewhere interesting.</p><p>This room focuses on the reconnaissance and misconfiguration-identification phase of web application testing. We have four different web servers running: Apache2, Python’s built-in HTTP server, a Node.js Express application, and Nginx. These four were chosen because they represent the dominant server types you will encounter on Linux-based infrastructure: Apache and Nginx cover the traditional web server space, Node.js represents the modern application server pattern, and Python’s HTTP server covers the accidental or improvisational server that appears more often than expected. Each one has distinct behaviours, default configurations, and common mistakes that testers encounter regularly.</p><p>The room stops at misconfiguration identification. We will not exploit vulnerabilities in the traditional sense, no shells, no RCE, no privilege escalation. The goal is to build reconnaissance skills that tell you what is exposed and why it matters, a prerequisite for every technique that follows.</p><p><strong>Info:</strong> In a real engagement, these services would typically run on separate hosts. This lab consolidates them onto one machine to keep things manageable. The HTTP behaviour, response headers, and misconfigurations you will see are identical to what you would find in a distributed environment.</p><h3>Learning Objectives</h3><ul><li>Identify web server software and versions using response headers and default error pages</li><li>Recognise the risks of Python’s built-in HTTP server when accidentally exposed</li><li>Enumerate Apache directory listings, exposed status pages, and unlinked backup files</li><li>Identify debug endpoints, verbose error messages, and environment variable exposure in Node.js Express applications</li><li>Detect Nginx autoindex directory listings and exposed nginx_status metrics</li><li>Perform a security header audit across multiple servers using curl and nikto</li></ul><h3>Prerequisites</h3><ul><li><a href="https://tryhackme.com/room/websecurityessentials"><strong>Web Security Essentials</strong></a><strong>:</strong> Understanding of HTTP request/response cycles, status codes, and response headers</li><li><a href="https://tryhackme.com/room/linuxclibasics"><strong>Linux CLI Basics</strong></a><strong>:</strong> Comfortable using the terminal for basic navigation and running commands</li><li><a href="https://tryhackme.com/room/networkingessentials"><strong>Networking Essentials</strong></a><strong>:</strong> Familiarity with IP addresses and ports</li></ul><p>Task-2 Identifying Web servers</p><p>Before you start enumerating directories or testing inputs, you need to know what you are dealing with. The web server software itself shapes which misconfigurations are possible, which paths are worth checking, and which tools will be most effective. Identifying the server is not a formality. It directly influences every decision that follows.</p><p>The good news is that most web servers announce themselves. Developers and administrators often leave default configurations in place, and default configurations tend to be verbose about version information. There are a few reliable places to look.</p><h3>The Server Response Header</h3><p>The most direct fingerprinting signal is the Server header in an HTTP response. When you make any request to a web server, the server includes this header in its reply. Different server software formats it differently, and those formats are consistent enough to use as positive identifiers.</p><p>Run curl with the -I flag to request only the headers, not the response body:</p><pre># -s suppresses the progress bar<br># -I sends a HEAD request, returning only response headers<br>curl -sI http://MACHINE_IP:80</pre><p>You should see output similar to the following for Apache running on port 80:</p><p>Terminal</p><pre>ubuntu@tryhackme-2404:~$ curl -sI http://MACHINE_IP:80<br>HTTP/1.1 200 OK<br>Date: Wed, 08 Apr 2026 13:59:00 GMT<br>Server: Apache/2.4.58 (Ubuntu)<br>Last-Modified: Fri, 03 Apr 2026 18:12:44 GMT<br>ETag: &quot;29af-64e9243796aa2&quot;<br>Accept-Ranges: bytes<br>Content-Length: 10671<br>Vary: Accept-Encoding<br>Content-Type: text/html</pre><p>The Server header tells you the software and version outright. Not every server exposes this much detail. A hardened deployment might show only Apache or suppress the header entirely, but the default configuration on most Ubuntu servers leaves this information visible.</p><p>Here is what each server in this lab returns by default:</p><p>PortServerDefault Server Header80Apache2Apache/2.4.x (Ubuntu)8000Python HTTP ServerSimpleHTTP/0.6 Python/3.xx.x3000Node.js ExpressNone (set by application)8080Nginxnginx/1.xx.x</p><p>Notice that the Node.js Express entry shows no Server header. Express does not set one by default; the Node.js HTTP layer beneath it does not either. the Node.js HTTP layer beneath it does not either. A developer has to add it explicitly. On a real Express application, the absence of a Server header is itself a signal. The reliable identifier for Express is the X-Powered-By header, which Express sets automatically unless the developer removes it.</p><h3>The X-Powered-By Header</h3><p>Some frameworks add an X-Powered-By header that reveals the application layer behind the server. Express sets this by default:</p><pre>X-Powered-By: Express</pre><p>This header is separate from Server, and for Express, it is the primary fingerprint. Unlike Apache or Nginx, which announce themselves in the Server header, Express relies on X-Powered-By as its identifier. Check for it on any port where Server is missing or generic.</p><h3>Browser DevTools</h3><p>If you are working in a browser, the <strong>Network</strong> tab in DevTools provides the same header information without any additional tools. Open http://MACHINE_IP:3000 in Mozilla Firefox, then right-click anywhere on the page and choose <strong>Inspect</strong> (or press F12) to launch Developer Tools. Navigate to the <strong>Network</strong> tab and refresh the page to capture the requests. Select the main request from the list, and under the Headers section, view the Response Headers to inspect the server’s response details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bBVfjo1LiMZbnYdw.png" /></figure><h3>Default Error Pages</h3><p>The -sI flag sends a HEAD request, which returns headers only and no body. To see default error pages, you need a GET request switch to -s without the -I:</p><pre># HEAD request: headers only, no body<br>curl -sI http://MACHINE_IP:PORT/</pre><pre># GET request: full response including body<br>curl -s <a href="http://MACHINE_IP:PORT/nonexistent-page-xyz">http://MACHINE_IP:PORT/nonexistent-page-xyz</a></pre><p>When you request a path that does not exist, most servers return a default 404 error page. Each server’s default page has a distinctive look. Python is a plain text response. Nginx includes its version in the HTML footer. Apache includes its name in the page body. These differences let you fingerprint a server even when the Server header has been suppressed. Check this across all four ports, and you will see how differently each server handles the same situation.</p><p>Answer the questions below</p><p>What value does the Server header return for the Python HTTP Server running on port 8000? (Answer Format: SimpleHTTP/X.X Python/X.X.X)</p><ul><li>SimpleHTTP/0.6 Python/3.12.3</li></ul><p>Which HTTP header reveals the application framework running on port 3000?</p><ul><li>X-Powered-By</li></ul><p>What web server software is running on port 8080?</p><ul><li>nginx</li></ul><p>Task-3 python HTTP server</p><p><strong>Python</strong> ships with a built-in HTTP server that any developer can start with a single command. That convenience is exactly why it shows up on pentests.</p><pre># This command serves the current working directory over HTTP on port 8000<br>python3 -m http.server 8000</pre><p>Developers use it to quickly share files, test static websites, or transfer something between two machines on the same network. The problem is that “quickly share files” sometimes becomes “accidentally exposed to the internet for six months”, running on public-facing servers, internal network shares, and cloud instances where someone opened port 8000 in the firewall and forgot about it. The server has no access control, no authentication, and no logging beyond what the OS captures.</p><h3>What It Serves</h3><p>Python’s HTTP server serves the entire working directory, including every file in it, including dotfiles like .env. There is no .htaccess equivalent, no blocklist, no configuration file. If the file exists in the directory, anyone who can reach port 8000 can download it.</p><p>This is different from Apache or Nginx, where directory listing is disabled by default, and administrators can restrict individual paths. Python’s HTTP server has one mode: serve everything.</p><h3>Directory Listing</h3><p>When no index.html file is present in the directory, the Python HTTP server generates an HTML page listing every file it can see. Browse to the root of the server using the following command or directly browse http://MACHINE_IP:8000 in the browser:</p><pre>curl -s http://MACHINE_IP:8000/</pre><p>You should see an HTML directory listing with a page title of Directory listing for /. Everything in that listing is directly accessible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/0*ttuvA3NwUPhyMbnf.png" /></figure><h3>Accessing Dotfiles</h3><p>Dotfiles like .env are hidden from normal directory navigation on Linux, but Python&#39;s HTTP server does not respect that convention. It serves them like any other file. The .env file is a common target because developers use it to store environment-specific configuration, and that configuration often includes credentials:</p><p>Terminal</p><pre>root@attackbox:~# curl -s http://MACHINE_IP:8000/.env<br>SECRET_KEY=dev-secret-key-do-not-use<br>DATABASE_URL=postgresql://webapp:S3cur3DBPass!@localhost/production<br>DEBUG=True</pre><h3>Downloading and Inspecting Archives</h3><p>If you see a .zip, .tar.gz, or other archive in the directory listing, download it and inspect the contents. Developers sometimes leave backup archives in the same directory they are serving, which may contain source code, database dumps, or configuration files.</p><p>Terminal</p><pre>root@attackbox:~# curl -s http://MACHINE_IP:8000/backup.zip -o backup.zip<br>root@attackbox:~# unzip backup.zip -d backup-contents/<br>root@attackbox:~# cat backup-contents/db_dump.sql<br>Archive:  backup.zip<br>  inflating: backup-contents/db_dump.sql<br>-- Database dump for staging environment</pre><pre>CREATE TABLE users (id INTEGER PRIMARY KEY, username VARCHAR(50));<br>INSERT INTO users VALUES (1, &#39;admin&#39;, &#39;admin@company.com&#39;);<br>INSERT INTO users VALUES (2, &#39;jsmith&#39;, &#39;jsmith@company.com&#39;);</pre><pre>-- End of dump</pre><h3>Why This Matters</h3><p>The Python HTTP server is a realistic finding because it requires no exploitation. There is no vulnerability to trigger. The server is functioning exactly as designed. The misconfiguration is that it is running in a location where it should not be, serving files that should not be public. Documenting this in a real engagement means explaining not just that the server exists, but also what it exposes and what an attacker could do with that information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/20/0*M3xUq7l33wh2oFn1" /></figure><p><strong>Note:</strong> If the directory shows an index.html file, Python will serve that file instead of showing the directory listing. If you do not see a directory listing at the root, try requesting paths directly or navigating to subdirectories.</p><p>Answer the questions below</p><p>What database password is stored in the .env file served by the Python HTTP Server?</p><p>S3cur3DBPass!</p><p>What is the flag found inside the backup archive served by the Python HTTP Server?</p><p>THM{py_server_exposed}</p><p>Task-4 Apache2</p><p><strong>Apache</strong> is the most widely deployed web server in the world, which means it appears in nearly every engagement that touches web infrastructure. Its default Ubuntu configuration leaves several things enabled that testers regularly find and report. The three most common are directory listing on specific paths, the server-status module, and backup files sitting in the document root.</p><h3>Version Disclosure</h3><p>Start with the basics: check the Server header.</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -SI http://MACHINE_IP:80 | grep -i server<br>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br>                                 Dload  Upload   Total   Spent    Left  Speed<br>  0 10671    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0<br>Server: Apache/2.4.58 (Ubuntu)</pre><p>Apache on Ubuntu defaults to ServerTokens OS, which includes the OS label alongside the version number. Knowing the exact version helps you check for known CVEs and understand the server&#39;s capabilities.</p><h3>Directory Listing</h3><p>Apache’s Options +Indexes directive tells the server to display a file listing when a directory does not have an index.html or similar default file. This is sometimes enabled intentionally for internal file share directories and accidentally left on paths that contain sensitive data.</p><p>Browse to the http://MACHINE_IP/files/ path:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/0*PI2NsC3bWUmxF4qI.png" /></figure><p>You should see an HTML page with a title of “Index of /files&quot; listing the files available in that directory. Apache&#39;s directory listing includes filenames, file sizes, and last-modified dates, which gives you a clear picture of what is there before you decide what to retrieve.</p><p>When you find a directory listing, read every file in it. Developers sometimes leave CSV exports, internal notes, or backup files in directories they intended only for casual internal use. Each one is worth checking.</p><h3>The mod_status Page</h3><p>Apache includes a built-in status page powered by the mod_status module. When correctly configured, it is accessible only from localhost. When misconfigured with Require all granted, it is accessible from any IP. You can access it using http://MACHINE_IP:80/server-status, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*pL1FD3L-KccPF8yc.png" /></figure><p>The status page shows active connections and what paths they are requesting, the total number of requests served since the server started, worker states (idle, writing, reading, closing), and the server version and start time. On a production server, this leaks real-time information about what other users are doing and what internal paths exist. It also confirms the exact server version in the page header.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/20/0*D7Uk3vNf8fXe-tpr" /></figure><p><strong>Info:</strong> mod_status is enabled by default on Ubuntu&#39;s Apache package and ships with a Require local restriction in conf-available/security.conf. However, a Require all granted directive anywhere in a virtual host configuration silently overrides that restriction, exposing /server-status to all IPs without touching the module config. Always check /server-status even on servers that appear to be using default settings.</p><h3>Finding Unlinked Files with Gobuster</h3><p>Not everything interesting is linked from a page or visible in a directory listing. Backup files, old configuration copies, and forgotten test files often sit in the document root with no links pointing to them. Tools like Gobuster discover these by guessing paths against a wordlist.</p><pre># -u is the target URL<br># -w is the wordlist path<br># -x tells gobuster to also append these extensions to each word<br>gobuster dir -u http://TARGET_IP:80 -w /usr/share/wordlists/SecLists/Discovery/Web-Content/common.txt -x bak,txt,html -t 20</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/20/0*L_yisUTCUGsS-B2I" /></figure><p><strong>Note:</strong> SecLists should be available at /usr/share/wordlists/SecLists/ on the AttackBox. If you are using your own Kali VM and SecLists is not installed, run sudo apt install seclists to get it.</p><p><strong>Tip:</strong> The full SecLists common.txt wordlist is large. With the -x flag adding three extension variants per word, the scan makes a significant number of requests and can take several minutes on a remote target. If you want a faster result, try running without -x first to find directories, then add -x bak for a targeted extension sweep.</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# gobuster dir -u http://MACHINE_IP:80 -w /usr/share/wordlists/SecLists/Discovery/Web-Content/common.txt -x bak,txt -t 20<br>===============================================================<br>Gobuster v3.6<br>by OJ Reeves (@TheColonial) &amp; Christian Mehlmauer (@firefart)<br>===============================================================<br>[+] Url:                     http://MACHINE_IP<br>[+] Method:                  GET<br>[+] Threads:                 20<br>[+] Wordlist:                /usr/share/wordlists/SecLists/Discovery/Web-Content/common.txt<br>[+] Negative Status codes:   404<br>[+] User Agent:              gobuster/3.6<br>[+] Extensions:              bak,txt<br>[+] Timeout:                 10s<br>===============================================================<br>Starting gobuster in directory enumeration mode<br>===============================================================<br>/.htpasswd            (Status: 403) [Size: 275]<br>/.htaccess            (Status: 403) [Size: 275]<br>/.htpasswd.bak        (Status: 403) [Size: 275]<br>/.htaccess.txt        (Status: 403) [Size: 275]<br>/.hta.txt             (Status: 403) [Size: 275]<br>/.htaccess.bak        (Status: 403) [Size: 275]<br>/.hta                 (Status: 403) [Size: 275]<br>/.hta.bak             (Status: 403) [Size: 275]<br>/.htpasswd.txt        (Status: 403) [Size: 275]<br>/backup.bak           (Status: 200) [Size: 178]<br>/files                (Status: 301) [Size: 308] [--&gt; http://MACHINE_IP/files/]<br>/index.html           (Status: 200) [Size: 10671]<br>/javascript           (Status: 301) [Size: 313] [--&gt; http://MACHINE_IP/javascript/]<br>/server-status        (Status: 200) [Size: 17539]<br>Progress: 13965 / 13968 (99.98%)<br>===============================================================<br>Finished<br>===============================================================</pre><p>When Gobuster finds a file with a .bak extension, that is almost always worth retrieving. Backup files frequently contain configuration snippets, credentials, or copies of source code.</p><p>Also, pay attention to .htpasswd files if they appear in the output. Apache uses .htpasswd to store usernames and hashed passwords for HTTP Basic Authentication. Finding an accessible .htpasswd file gives you a credential hash that can be cracked offline, and confirms that some part of the site uses Basic Auth, which tells you what paths are worth trying authenticated access on.</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -s http://MACHINE_IP:80/backup.bak<br># Apache config backup - DO NOT COMMIT<br>ServerName company.internal<br>DocumentRoot /var/www/html<br># DB credentials below<br># user: dbadmin pass: Backup2024!<br># Last updated: 2024-11-15</pre><h3>Putting It Together</h3><p>The pattern here is consistent across Apache investigations: check the version header, browse any directory that allows listing, visit /server-status, and use gobuster to find unlinked files. These four steps cover the majority of what a misconfigured Apache server will expose.</p><p>Answer the questions below</p><p>What Apache module exposes real-time server statistics at /server-status?</p><p>mod_status</p><p>What is the flag found in the /files/ directory on Apache?</p><p>THM{apache_dir_listing}</p><p>Task-5 node.js(express)</p><p><strong>Node.js </strong>applications behave differently from Apache and Python HTTP servers. They are not serving static files from a configured document root. They are running application code, and that code decides what to return for every request. That flexibility is powerful, but it is also where many mistakes occur.</p><p>Attackers look at <strong>Node.js Express </strong>applications specifically because developers often leave development-mode features enabled when they push to production. Debug endpoints, verbose error responses, and exposed environment variables all stem from the same habit: code that worked in development went live as-is. The result is an application that tells you exactly how it is built and, sometimes, what credentials it uses.</p><h3>Framework Fingerprinting</h3><p>The headers on port 3000 confirm what you are dealing with:</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -sI http://MACHINE_IP:3000<br>HTTP/1.1 200 OK<br>X-Powered-By: Express<br>Content-Type: application/json; charset=utf-8<br>Content-Length: 56<br>ETag: W/&quot;38-K8iCfm09rMr0MV0NsgqdAb94DAk&quot;<br>Date: Sat, 11 Apr 2026 07:27:28 GMT<br>Connection: keep-alive<br>Keep-Alive: timeout=5</pre><p>You will see X-Powered-By: Express in the response. Express sets this header automatically unless the developer explicitly disables it. This confirms you are dealing with an Express application, which tells you what to look for next.</p><h3>Reading the Application Version</h3><p>The root path of many Express applications returns a JSON status response:</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -s http://MACHINE_IP:3000<br>{&quot;status&quot;:&quot;ok&quot;,&quot;app&quot;:&quot;company-portal&quot;,&quot;version&quot;:&quot;1.2.0&quot;}</pre><p>If the response includes a version field, note it. Matching the application version against known vulnerabilities or changelogs can surface useful information.</p><h3>Triggering Verbose Errors</h3><p>Express’s built-in error handler suppresses stack traces when NODE_ENV is set to production. In development mode, it passes them through. But developers often write their own error handlers, and those custom handlers expose stack traces regardless of NODE_ENV. In the attached VM, the web app uses a custom error handler. The detailed JSON response you see is not part of Express behaviour; it is the result of application code written for debugging and never hardened. Both patterns appear on real engagements: the NODE_ENV=production check is only meaningful if no custom error handler overrides it. Consider a scenario where there is an api call being made to the Express server, as shown below:</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -s http://MACHINE_IP:3000/api/users | python3 -m json.tool<br>{<br>    &quot;error&quot;: &quot;connect ECONNREFUSED 127.0.0.1:5432&quot;,<br>    &quot;stack&quot;: &quot;Error: connect ECONNREFUSED 127.0.0.1:5432\n    at /opt/nodeapp/app.js:16:15\n    at Layer.handle [as handle_request] (/opt/nodeapp/node_modules/express/lib/router/layer.js:95:5)\n    at next (/opt/nodeapp/node_modules/express/lib/router/route.js:149:13)\n    at Route.dispatch (/opt/nodeapp/node_modules/express/lib/router/route.js:119:3)\n    at Layer.handle [as handle_request] (/opt/nodeapp/node_modules/express/lib/router/layer.js:95:5)\n    at /opt/nodeapp/node_modules/express/lib/router/index.js:284:15\n    at Function.process_params (/opt/nodeapp/node_modules/express/lib/router/index.js:346:12)\n    at next (/opt/nodeapp/node_modules/express/lib/router/index.js:280:10)\n    at expressInit (/opt/nodeapp/node_modules/express/lib/middleware/init.js:40:5)\n    at Layer.handle [as handle_request] (/opt/nodeapp/node_modules/express/lib/router/layer.js:95:5)&quot;,<br>    &quot;query&quot;: &quot;SELECT * FROM users&quot;<br>}</pre><p>A 500 Internal Server Error from an API endpoint is worth investigating further. In development mode, the response body often contains the error message, stack trace, and context about what the application was trying to do when it failed. The stack trace is the key finding here, as it reveals internal file paths, module names, and, sometimes, the database query that triggered the failure. Each of those details tells you something about the application&#39;s internals that a simple status code does not.</p><h3>Enumerating Routes via Debug Endpoints</h3><p>One of the most useful things a misconfigured Express application can do is tell you all of its own routes. Developers sometimes build a debug endpoint that lists every registered route for convenience during development, then forget to remove it before going live.</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -s http://MACHINE_IP:3000/api/routes<br>[{&quot;method&quot;:&quot;GET&quot;,&quot;path&quot;:&quot;/&quot;},{&quot;method&quot;:&quot;GET&quot;,&quot;path&quot;:&quot;/api/users&quot;},{&quot;method&quot;:&quot;GET&quot;,&quot;path&quot;:&quot;/api/routes&quot;},{&quot;method&quot;:&quot;GET&quot;,&quot;path&quot;:&quot;/api/debug/env&quot;}]</pre><p>If this endpoint exists, the response is a list of every path the application handles. This saves enumeration time and shows you which endpoints exist before you spend time guessing them with Gobuster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/20/0*AcLTVMe0E0ry_lmu" /></figure><p><strong>Note:</strong> The /api/routes endpoint works by reading Express&#39;s internal app._router.stack property to enumerate registered routes. This is a recognised Express misconfiguration pattern, but app._router.stack is an internal property whose structure can vary between Express versions, and Express 5 changed the router internals enough to break implementations that relied on the Express 4 structure. If you encounter a route endpoint that returns an unexpected format or an error, the application may be running a different Express version than the one this lab uses.</p><h3>Exposed Environment Variables</h3><p>Environment variables in Node.js applications often contain database credentials, API keys, and configuration flags. A debug endpoint that returns process.env is a significant finding:</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -s http://MACHINE_IP:3000/api/debug/env<br>{&quot;NODE_ENV&quot;:&quot;development&quot;,&quot;DB_PASSWORD&quot;:&quot;NodeDBPass2024!&quot;,&quot;PORT&quot;:&quot;3000&quot;,&quot;DB_HOST&quot;:&quot;localhost:5432&quot;,&quot;APP_NAME&quot;:&quot;company-portal&quot;}r</pre><p>If the response includes DB_PASSWORD, SECRET_KEY, or similar fields, document them. The NODE_ENV value is also telling. NODE_ENV=development on a production server is a signal that the application was deployed without proper hardening.</p><h3>Static File Serving</h3><p>Express applications commonly use the express.static() middleware to serve front-end assets like JavaScript files, stylesheets, and configuration. The static files route, if it exists, serves everything in a directory. Client-side JavaScript files sometimes contain API endpoint URLs, internal hostnames, or debug flags embedded as constants.</p><p>Once you know the routes from the /api/routes endpoint, check what is being served statically:</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -s http://MACHINE_IP:3000/static/config.js<br>// Client-side configuration<br>const API_BASE = &#39;http://internal-api.company.local:8080&#39;;<br>const DEBUG = true;<br>const VERSION = &#39;1.2.0&#39;;</pre><p>Configuration files served as static assets are easy to overlook because they are technically meant to be public (the browser needs them). But “meant to be public” is different from “contains only public information.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/20/0*9XANa8TqSsBHyTER" /></figure><p><strong>Note:</strong> express.static() silently returns a 404 for dotfiles (files starting with .) by default. This is the opposite of Python&#39;s HTTP server, which serves dotfiles like any other file. If you are looking for a .env or similar file on an Express static route and get a 404, that does not mean the file is absent; it means the middleware is blocking it. You would need shell access or a different route to reach it.</p><h3>Putting it All Together</h3><p>Take a step back and look at what we just did. We started with header inspection to confirm the framework, then triggered an error to see what the application leaks in failure mode, then used a debug endpoint to enumerate routes, then checked for credential exposure in environment variables, and finally followed the route list to the static files where the flag lives. This pattern works because each step narrows the scope for the next one. Headers tell you the framework. Errors tell you the internals. Debug endpoints tell you the routes. Static files tell you what the developers assumed was safe to expose.</p><p>Answer the questions below</p><p>What value does the NODE_ENV variable have in the debug endpoint response?</p><p>development</p><p>What is the flag found in the static files served by the Node.js application?</p><p>THM{node_debug_exposed}</p><p>Task-6 Nginx</p><p>After Apache and Node.js, the <strong>Nginx</strong> investigation follows the same template but with its own configuration vocabulary. The categories of misconfiguration version disclosure, directory listing, and exposed status pages appear again, but the specific directives and paths differ.</p><p>Nginx occupies a different space from Apache and Node.js. It is most commonly used as a reverse proxy, a load balancer, or a high-performance static file server. In production environments, Nginx often sits in front of an application server and handles the public-facing traffic. That positioning makes its configuration important. A misconfigured Nginx instance can expose internal structure, reveal operational data, or make files accessible that should not be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/20/0*MFZPcjVsXCQ_v9A7" /></figure><p><strong>Info:</strong> In the attached VM, Nginx runs on port 8080 rather than the standard port 80. That is because Apache is already using port 80 on this machine. In a real deployment, Nginx would typically run on port 80 or 443.</p><p><strong>Version Disclosure</strong></p><p>The pattern is the same as before: start with the Server header.</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -sI http://MACHINE_IP:8080 | grep -i server<br>Server: nginx/1.24.0 (Ubuntu)</pre><p>Nginx includes its version in the Server header by default. Unlike Apache, which uses the ServerTokens directive to control this, Nginx uses server_tokens. The default is on, which exposes the version. Knowing the exact version is useful when checking the Nginx changelog for security fixes or when building an engagement report.</p><p>The server_tokens directive controls both the Server header and the version string in default error pages simultaneously; setting server_tokens off suppresses the version from both places at once. If the Server header is suppressed, requesting a non-existent path will confirm whether server_tokens is truly off or just partially configured?</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -s http://MACHINE_IP:8080/nonexistent-path<br>&lt;html&gt;<br>&lt;head&gt;&lt;title&gt;404 Not Found&lt;/title&gt;&lt;/head&gt;<br>&lt;body&gt;<br>&lt;center&gt;&lt;h1&gt;404 Not Found&lt;/h1&gt;&lt;/center&gt;<br>&lt;hr&gt;&lt;center&gt;nginx/1.24.0 (Ubuntu)&lt;/center&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h3>Directory Listing with Autoindex</h3><p>Nginx does not enable directory listing by default. When a developer wants to expose a directory listing, they add autoindex to a location block in the configuration:</p><pre>location /files/ {<br>    autoindex on;<br>    root /var/www/nginx/;<br>}</pre><p>This is a documented Nginx configuration option and appears in legitimate file-sharing setups. The misconfiguration is using it on a path that contains sensitive files, or leaving it enabled on a production server without access controls.</p><p>Browse to the http://MACHINE_IP/files/ directory:</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -s http://MACHINE_IP:8080/files/<br>&lt;html&gt;<br>&lt;head&gt;&lt;title&gt;Index of /files/&lt;/title&gt;&lt;/head&gt;<br>&lt;body&gt;<br>&lt;h1&gt;Index of /files/&lt;/h1&gt;&lt;hr&gt;&lt;pre&gt;&lt;a href=&quot;../&quot;&gt;../&lt;/a&gt;<br>&lt;a href=&quot;deploy-notes.txt&quot;&gt;deploy-notes.txt&lt;/a&gt;                                   03-Apr-2026 18:23                 148<br>&lt;a href=&quot;old-backup.tar.gz&quot;&gt;old-backup.tar.gz&lt;/a&gt;                                  03-Apr-2026 18:23                 236<br>&lt;a href=&quot;server-config.txt&quot;&gt;server-config.txt&lt;/a&gt;                                  03-Apr-2026 18:23                 135<br>&lt;/pre&gt;&lt;hr&gt;&lt;/body&gt;<br>&lt;/html&gt;</pre><p>Nginx’s autoindex HTML format uses a simple table with filename, last-modified date, and file size. When you find this, read every file listed. Nginx directory listings often appear on paths that developers configured as shared storage and then populated with operational data.</p><h3>The nginx_status Endpoint</h3><p>Nginx’s stub_status module exposes real-time connection metrics at a configurable URL. The secure configuration restricts access to localhost only. The misconfigured version allows access from any IP:</p><pre>location /nginx_status {<br>    stub_status;<br>    allow all;  # Should be: allow 127.0.0.1; deny all;<br>}</pre><p>Request it to see what it exposes:</p><p>Terminal</p><pre>root@ip-10-81-64-63:~# curl -s http://MACHINE_IP:8080/nginx_status<br>Active connections: 1 <br>server accepts handled requests<br> 15 15 15 <br>Reading: 0 Writing: 1 Waiting: 0</pre><p>The output format is compact and uses unlabeled numbers on the second line, which can be disorienting the first time you see it:</p><p>The three numbers on the second line are in order: total accepted connections, total handled connections, and total requests since the server started. The third line breaks down currently active connections by state. While this data is not directly exploitable, it leaks operational information about server load and usage patterns. On a real engagement, an exposed /nginx_status endpoint is a finding because it confirms the internal monitoring setup and may indicate other monitoring endpoints are similarly exposed.</p><h3>Putting It All Together</h3><p>The Nginx investigation follows a parallel structure to the Apache task. Check the version header, browse any directories with autoindex enabled, and check for the status endpoint. The specific paths and configuration directives differ, but the investigative approach is the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/20/0*UB0JfOTDfeb9Rm5b" /></figure><p><strong>Tip:</strong> Nginx configuration files live in /etc/nginx/ on Ubuntu. If you ever have shell access to a machine running Nginx, reading the site configuration in /etc/nginx/sites-available/ will show you exactly what directories are exposed and what modules are enabled.</p><p>Answer the questions below</p><p>What Nginx directive enables directory listing in a location block?</p><p>autoindex on</p><p>What URL path exposes Nginx connection statistics?</p><p>/nginx_status</p><p>What is the flag found in the directory listing on port 8080?</p><p>THM{nginx_autoindex}</p><p>Task-7 Common Misconfigurations Across Servers</p><p>We have now worked through four different web servers, each with its own configuration model and its own set of common mistakes. There are also patterns that appear regardless of what server is running. Two of the most consistent are missing security headers and the findings that automated scanners surface quickly.</p><h3>Security Headers</h3><p><strong>Security headers </strong>are HTTP response headers that instruct the browser on how to handle the page content. They protect against a range of client-side attacks, including clickjacking, MIME sniffing, and cross-site scripting. None of the servers in this lab has been configured to send these headers, which is the default state for all four server types.</p><p>Here are the most common ones and what each one does:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-2lmO9oShvr2rz-h0JYICQ.png" /></figure><p><strong>Note:</strong> X-Frame-Options is technically superseded by Content-Security-Policy: frame-ancestors, which provides finer-grained control. Hardened modern sites may handle clickjacking protection through CSP alone and intentionally omit X-Frame-Options. When writing findings, check for both.</p><p>Audit each server with curl:</p><pre>root@ip-10-81-64-63:~# for port in 80 8000 3000 8080; do echo &quot;=== Port $port ===&quot;; curl -sI http://MACHINE_IP:$port/ | grep -iE &quot;x-frame-options|x-content-type|content-security-policy|strict-transport|referrer-policy&quot; || echo &quot;(no security headers found)&quot;; done<br>=== Port 80 ===<br>(no security headers found)<br>=== Port 8000 ===<br>(no security headers found)<br>=== Port 3000 ===<br>(no security headers found)<br>=== Port 8080 ===<br>(no security headers found)</pre><p>When grep returns no output, it means none of those headers is present. Do this across all four ports, and you will see that the default configurations for all four server types share this gap. Security headers require active configuration. They are never present by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/20/0*lP7OIu2C4e7ZSW3I" /></figure><p><strong>Note:</strong> Strict-Transport-Security only applies over HTTPS connections. Since this lab uses HTTP, its absence is expected and is noted here for completeness rather than as an active misconfiguration.</p><h3>Automated Scanning with Nikto</h3><p>Nikto is a web server scanner that checks for known misconfigurations, outdated software, exposed admin interfaces, and missing security headers. It is not subtle; it generates a lot of traffic and is easy to detect. That makes it appropriate for authorised testing, not stealth. Run it against the Apache server:</p><pre>root@ip-10-81-64-63:~# nikto -h http://MACHINE_IP:80 -nointeractive<br>- Nikto v2.1.5<br>---------------------------------------------------------------------------<br>+ Target IP:          MACHINE_IP<br>+ Target Hostname:    MACHINE_IP<br>+ Target Port:        80<br>+ Start Time:         2026-04-11 09:16:09 (GMT1)<br>---------------------------------------------------------------------------<br>+ Server: Apache/2.4.58 (Ubuntu)<br>+ Server leaks inodes via ETags, header found with file /, fields: 0x29af 0x64e9243796aa2 <br>+ The anti-clickjacking X-Frame-Options header is not present.<br>+ No CGI Directories found (use &#39;-C all&#39; to force check all possible dirs)<br>+ Allowed HTTP Methods: HEAD, GET, POST, OPTIONS <br>+ OSVDB-561: /server-status: This reveals Apache information. Comment out appropriate line in httpd.conf or restrict access to allowed hosts.<br>+ OSVDB-3268: /files/: Directory indexing found.<br>+ OSVDB-3092: /files/: This might be interesting...<br>+ 6544 items checked: 0 error(s) and 6 item(s) reported on remote host<br>+ End Time:           2026-04-11 09:16:18 (GMT1) (9 seconds)<br>---------------------------------------------------------------------------<br>+ 1 host(s) tested</pre><p>The -nointeractive flag suppresses prompts so the scan runs without waiting for input. Nikto will check hundreds of common paths and patterns. Look for findings that start with + in the output.</p><p>On a misconfigured Apache server like this one, expect Nikto to flag the exposed /server-status page, the backup.bak file in the document root, the directory listing on /files/, and multiple missing security header warnings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/20/0*D-A6kklJWysBfYem" /></figure><p><strong>Tip:</strong> Nikto’s output can be verbose. The -Tuning option lets you restrict which checks it runs. For a quick scan, nikto -h TARGET -Tuning 123 covers the most common findings without running the full signature set. Note that tuning codes are concatenated, not comma-separated.</p><h3>Patterns That Apply Everywhere</h3><p>Looking back at all four servers, the same categories of misconfiguration appear repeatedly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtYW1UmxYGU2FitlnlLP-A.png" /></figure><p>The consistent thread is that default configurations prioritise ease of deployment over security. Version disclosure, directory listings, and status pages are enabled by default for diagnostic purposes. They make the administrator’s job easier. Removing or restricting them takes deliberate action. In real engagements, finding these patterns does not indicate negligence. It indicates that the default settings were never reviewed.</p><p>Answer the questions below</p><p>Which security header, when missing, allows a page to be embedded in an iframe on another domain?</p><p>X-Frame-Options</p><p>What finding text does Nikto report when it detects directory indexing on the /files/ path?</p><p>Directory indexing found</p><p>Task-8 Conclusion</p><p>Working through four different web servers on the same machine shows something that is easy to miss when you study each server type in isolation: the underlying patterns are the same. Version disclosure, directory listing, exposed status pages, and missing security headers appear across Apache, Nginx, Node.js, and Python’s HTTP server for the same reason. Default configurations are permissive. Security requires configuration.</p><h3>Key Takeaways</h3><ul><li>Response headers are the fastest fingerprinting surface. The Server and X-Powered-By headers reveal software type and sometimes version before you have made a single request to an actual application path.</li><li>Python’s built-in HTTP server has no access controls of any kind. When it appears in an engagement, assume the entire working directory is readable, including dotfiles such as .env.</li><li>Apache’s mod_status and directory listing are enabled by default on Ubuntu installs and require active configuration to restrict them. Their presence is common and worth checking on every Apache engagement.</li><li>Node.js Express applications in development mode leak stack traces, route lists, and environment variables. Each of those is a finding in its own right, and together they give a complete picture of the application’s internals.</li><li>Nginx autoindex and stub_status mirror Apache&#39;s directory listing and mod_status patterns. The directives differ, but the investigation approach is the same.</li><li>Security headers are absent by default on all four server types. An audit with curl -sI and a grep for the header names is a fast, reliable check that belongs in every web server engagement.</li></ul><p>The next rooms in the module will be modern web stacks and attacking IIS-based web servers, which are configured in a Windows environment.</p><p>I have successfully completed the room!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a82407eee513" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Penetration Testing Frameworks]]></title>
            <link>https://medium.com/@piyushkkr12/penetration-testing-frameworks-b94b3780a2a1?source=rss-e06aa92fd440------2</link>
            <guid isPermaLink="false">https://medium.com/p/b94b3780a2a1</guid>
            <dc:creator><![CDATA[Piyushkkr12]]></dc:creator>
            <pubDate>Sun, 31 May 2026 07:00:10 GMT</pubDate>
            <atom:updated>2026-05-31T07:00:10.148Z</atom:updated>
            <content:encoded><![CDATA[<p>TRYHACKME</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/1*WWSizFEXuEovjtkK5Pz96A.png" /></figure><p>Briefing</p><p>Your mentor left this dossier on your desk before heading to a client site. The four drills inside are drawn from real engagements. Work them in order. Each one tests a judgment call you will make in the field.</p><h3>OSSTMM Channels</h3><p>Recognize the five security channels that collectively describe an organization’s full attack surface.</p><h3>ISSAF Progression</h3><p>Sequence the nine-step attacker progression from reconnaissance through persistence and stealth.</p><h3>ATT&amp;CK Mapping</h3><p>Map engagement findings to MITRE ATT&amp;CK tactics using the standardized vocabulary.</p><h3>Framework Selection</h3><p>Select the right framework stack for a client scenario based on scope, regulation, and deliverables.</p><p>Mentor’s note</p><h3>Quantifiable Metrics</h3><p>The OSSTMM RAV (Risk Assessment Values) provides a numerical score for security posture. It is not a pass/fail grade. It is a baseline you measure change against. When a client asks “Are we secure?” the RAV lets you answer with “We are 73 percent, and here is what moved the needle.”</p><p>2</p><h3>Attack Surface Walk-Through</h3><p>Every marker belongs to one of OSSTMM’s five security channels. Identify all five channels to complete this exercise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*Qt76vYYM7fRZhKHG9PAaEA.png" /></figure><h3>Channel Tracker</h3><p>HUMSEC</p><p>PHYSSEC</p><p>SPECSEC</p><p>COMSEC</p><p>DATASEC</p><h3>Data Networks</h3><p>Isolated test environments, development systems, and lab networks. The boundary between lab and production is among the most exploited gaps in a mature environment.</p><p>03</p><h3>Adversarial Arc</h3><p>Place the nine steps into the order an attacker would execute them. Check your sequence when all slots are filled.</p><h3>1 Information gathering</h3><p>Scraped LinkedIn for TechBridge staff list and pulled job postings referencing Jenkins.</p><h3>2 Network mapping</h3><p>Confirmed the external IP range hosts the portal, a VPN gateway, and a mail server.</p><h3>3Vulnerability identification</h3><p>Found the Jenkins admin console exposed without authentication.</p><h3>4 Penetration</h3><p>Executed system commands on the Jenkins build server via the exposed console.</p><h3>5 Gaining access and privilege escalation</h3><p>Recovered a service account credential with admin rights on the Git server.</p><h3>6 Internal enumeration</h3><p>Used build-server access to probe internal systems. Discovered Git repositories holding API keys and connection strings across the internal network.</p><h3>7 Compromise remote users/sites (lateral movement)</h3><p>Accessed developer workstations and the internal mail server using the harvested credentials.</p><h3>8 Maintaining access</h3><p>Documented how a CI/CD backdoor could persist across deployments.</p><h3>9 Covering tracks</h3><p>Identified which logs captured the activity and which gaps would let an adversary operate undetected.</p><h3>Sequence Verified</h3><p>Steps 1 through 3 are reconnaissance and analysis. Steps 4 through 7 are active compromise. Steps 8 and 9 address persistence and stealth. You have just walked the arc a real adversary follows.</p><h3>4 Tactic Tag Board</h3><p>Map each engagement finding to the ATT&amp;CK tactic it represents. Not every column will be used. Submit when ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*T-JceCVr3U8DTibSh3ee_A.png" /></figure><h3>Findings Mapped to ATT&amp;CK</h3><p>This is what it looks like to hand a client a PTES report that speaks ATT&amp;CK.</p><h3>Fintech Mobile: iOS and Android Banking Apps</h3><p>A fintech company asks you to test its Android and iOS mobile banking apps. Both handle credit card transactions.</p><p>Primary Filter</p><p>Target type onlyTarget type combined with regulatory mandateRegulatory mandate onlyTeam resources</p><p>Correct. Mobile apps plus cardholder data means two filters apply simultaneously.</p><p>Primary Framework</p><p>OWASP WSTGOWASP MSTGPTESOSSTMM</p><p>Correct. OWASP MSTG is the standard methodology for mobile application security testing.</p><p>Supplementary Frameworks</p><p>None, OWASP MSTG is sufficientOWASP WSTG as wellPCI DSS Penetration Testing GuidelinesCBEST as well</p><p>Correct. PCI DSS must apply because the applications handle cardholder data, and no mobile-testing methodology alone satisfies that regulatory mandate.</p><h4>Outcome: Fintech Mobile</h4><p><strong>Primary framework:</strong> OWASP MSTG</p><p><strong>Supplementary:</strong> PCI DSS Penetration Testing Guidelines</p><p>Rationale: Correct. PCI DSS must apply because the applications handle cardholder data, and no mobile-testing methodology alone satisfies that regulatory mandate.</p><h3>Selections</h3><p>Primary Filter: Target type combined with regulatory mandate</p><p>Primary Framework: OWASP MSTG</p><h3>6 Debrief</h3><p>Dossier complete. You now know how frameworks structure an engagement, how to describe findings in terms any red team, blue team, or threat analyst will recognize, and how to pick a methodology that fits the client in front of you. That is the foundation. Every engagement you run from here on sits on top of it.</p><h3>Session Summary</h3><ul><li>OSSTMM channels identified: HUMSEC, SPECSEC, COMSEC, PHYSSEC, DATASEC.</li><li>ISSAF sequenced correctly on first try: No (4 attempts).</li><li>ATT&amp;CK findings initially misrouted: Phishing email delivered payload to empl…; Encrypted the patient records database, …; Accessed patient records database from c….</li><li>Scenarios cleared in order: UK Retail Bank, Regional Hospital, Fintech Mobile.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*kyQFUBhwAcuh35W5WLnXdg.png" /></figure><p>THM{pen-test-fr4m3work5}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b94b3780a2a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Threat Hunting tools]]></title>
            <link>https://medium.com/@piyushkkr12/threat-hunting-tools-158b64d34a83?source=rss-e06aa92fd440------2</link>
            <guid isPermaLink="false">https://medium.com/p/158b64d34a83</guid>
            <dc:creator><![CDATA[Piyushkkr12]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 18:57:54 GMT</pubDate>
            <atom:updated>2026-04-20T18:57:54.962Z</atom:updated>
            <content:encoded><![CDATA[<p>from letsdefend</p><h3>Categories of Threat Hunting Tools</h3><p>Threat hunting tools are various software and hardware components that help cybersecurity teams detect hidden threats on systems and networks. These tools support various stages of the threat hunting process, enabling security teams to work more effectively and efficiently. The main categories are:</p><ul><li>Data Collection Tools</li><li>Data Analysis Tools</li><li>Network Monitoring Tools</li><li>Endpoint Detection and Response (EDR) Tools</li><li>Cyber Threat Intelligence(CTI) Tools</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GZVcIW_V-4faCXSG.png" /></figure><p>( <strong>Image Source</strong> : <a href="https://www.sangfor.com/blog/cybersecurity/best-open-source-threat-hunting-tools">https://www.sangfor.com/blog/cybersecurity/best-open-source-threat-hunting-tools</a> )</p><p>Data collection tools provide security analysts with critical data by tracking events that occur on systems and networks. For example, tools such as Sysmon and Winlogbeat record event logs and system activity in detail.</p><p>Data analysis tools process and analyze the collected data and turn it into meaningful results. Tools such as Splunk” and ELK Stack” help analyze large data sets and identify anomalies and potential threats.</p><p>Network monitoring tools monitor and analyze network traffic to identify anomalous activity. Tools such as “Wireshark” and “Snort” are used to quickly detect and prevent network threats.</p><p>Endpoint Detection and Response (EDR) tools monitor, analyze, and respond to security incidents that occur on endpoint devices. Tools such as “SentinelOne” and “CrowdStrike Falcon” detect suspicious activity on endpoints and enable immediate intervention.</p><p>Cyber Threat Intelligence (CTI) tools collect and analyze threat data from multiple sources and present it to security teams. Tools such as “ThreatConnect” and “Recorded Future” offer significant advantages in the early detection of threats and the development of proactive defense strategies.</p><p>The effective use of all of these tools helps build a stronger defense against cyber attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iwdcHTy5d91ypOo0.png" /></figure><p>( <strong>Image Source</strong> : <a href="https://www.stationx.net/threat-hunting-tools/">https://www.stationx.net/threat-hunting-tools/</a> )</p><p>This is an introduction to the topic. The next lesson will cover “ <strong>Data Collection Tools</strong> ”.</p><h3>Data Collection Tools</h3><p>Data collection tools are a cornerstone of the threat hunting process. They provide security analysts with critical data by monitoring events that occur on systems and networks. This data is necessary for threat detection and analysis. Below are more detailed descriptions of some data collection tools:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ArKPsl9WES_DN748.png" /></figure><p>( <strong>Image Source</strong> : <a href="https://www.elastic.co/blog/understanding-and-unlocking-security-data-sources-with-the-elastic-stack">https://www.elastic.co/blog/understanding-and-unlocking-security-data-sources-with-the-elastic-stack</a> )</p><h3>Sysmon</h3><p>Sysmon (System Monitor) is a program developed by Microsoft that works on the Windows operating system and closely monitors important events. Thus, it is especially important for threat hunters.</p><h3>Features of Sysmon</h3><ul><li><strong>Process Creation: </strong>Records which processes were created, when, and by which user.</li><li><strong>Network Connections</strong>: Monitors and logs outgoing and incoming network connections.</li><li><strong>File Changes:</strong> Tracks changes to system files.</li><li><strong>Event Correlation:</strong> Allows threat hunters to perform more meaningful analysis by correlating different events.</li></ul><h3>Sysmon’s Area of Use</h3><p>Sysmon is primarily used to detect advanced persistent threats (APTs) and malware. This tool provides in-depth information at the operating system level to help security professionals detect suspicious activity. Sysmon provides detailed tracking of system activity during the threat hunting process. Threat hunters can use Sysmon data to monitor suspicious processes, network connections, and file changes on the system. Its event correlation capabilities help detect larger threats by linking different events.</p><h3>Winlogbeat</h3><p>Winlogbeat collects event logs from Windows operating systems and forwards them to a central system. Developed by Elastic, it is primarily used for event management in a large-scale environment.</p><h3>Features of Winlogbeat</h3><ul><li><strong>Lightweight and efficient: </strong>Collects and forwards log data without impacting system performance.</li><li><strong>Easy integration: </strong>Easily integrates with the ELK stack (Elasticsearch, Logstash, Kibana).</li><li><strong>Event types: </strong>Collects security, application, and system event logs.</li><li><strong>Timestamps: </strong>Records when events occur in detail.</li></ul><h3>Winlogbeat’s Area of Use</h3><p>Winlogbeat is primarily used for event management and monitoring in large organizations. Cyber security teams can use this tool to collect and analyze security events from systems in a centralized location. During the threat hunting process, Winlogbeat collects event logs and facilitates their analysis. Threat hunters can use Winlogbeat data to identify anomalous events and integrate these logs with the ELK stack for more in-depth analysis.</p><h3>NXLog</h3><p>NXLog is a versatile log collection tool that collects log data from multiple platforms (Windows, Linux, Unix). It is flexible and powerful, supporting multiple data formats.</p><h3>Features of NXLog</h3><ul><li><strong>Multi-platform Support: </strong>Works on Windows, Linux and Unix systems.</li><li><strong>Flexible Data Processing: </strong>Collects, filters, transforms and forwards log data in various formats<strong>.</strong></li><li><strong>High Performance:</strong> Processes large volumes of log data quickly and efficiently.</li><li><strong>Comprehensive Protocol Support: </strong>Supports various log formats such as Syslog, JSON, CSV, GELF.</li></ul><h3>NXLog’s Area of Use</h3><p>NXLog is used for log management in complex and large-scale networks. It collects log data from different platforms and aggregates it in a centralized system for analysis. During the threat hunting process, NXLog collects log data from different platforms and enables its analysis. The flexible data processing capabilities of NXLog allow threat hunters to perform comprehensive and holistic analysis by integrating different log formats into a centralized system.</p><h3>Graylog</h3><p>Graylog, a powerful log management and analysis platform, was developed by Lennart Koopmann in 2009. As a centralized log collection and analysis tool, it collects, stores, and analyzes log data.</p><h3>Features of Graylog</h3><ul><li><strong>Comprehensive Log Management: </strong>Provides centralized log collection, analysis and storage.</li><li><strong>Real-time Search: </strong>Enables real-time search and analysis of log data.</li><li><strong>Extensible Architecture: </strong>Extensible through plug-ins and integrations.</li><li><strong>Easy-to-use Interface: </strong>Provides an easy-to-use interface for visualizing and analyzing log data.</li></ul><h3>Graylog’s Area of Use</h3><p>Organizations with large-scale log management and analysis prefer Graylog. It provides a centralized platform for detecting, analyzing and reporting on security events.</p><h3>Conclusion</h3><p>In conclusion, data collection tools play a critical role in the threat hunting process. These tools provide cyber security teams with the data they need by monitoring events on systems and networks. Sysmon and Winlogbeat provide in-depth event monitoring in Windows environments, while NXLog offers multi-platform support. Graylog provides powerful log management and analysis capabilities. Effective use of these tools provides a significant advantage in threat detection and analysis.</p><p>This lesson has covered the Sysmon, Winlogbeat, NXLog, and Graylog tools; the next lesson will cover the topic of “<strong>Data Analysis Tools</strong>”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=158b64d34a83" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>