<?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 bhargabKaushik on Medium]]></title>
        <description><![CDATA[Stories by bhargabKaushik on Medium]]></description>
        <link>https://medium.com/@hawk101?source=rss-4ed9918318e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NRTAzmsVeD4Ze-nJaVRPZQ.jpeg</url>
            <title>Stories by bhargabKaushik on Medium</title>
            <link>https://medium.com/@hawk101?source=rss-4ed9918318e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 20:45:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hawk101/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[Running a malicious executable and monitoring system changes: Dynamic Analysis]]></title>
            <link>https://medium.com/@hawk101/running-a-malicious-executable-and-monitoring-system-changes-dynamic-analysis-adf45fc6db67?source=rss-4ed9918318e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/adf45fc6db67</guid>
            <category><![CDATA[dynamic-analysis]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[artifact-registry]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[malware-forensics]]></category>
            <dc:creator><![CDATA[bhargabKaushik]]></dc:creator>
            <pubDate>Fri, 21 Aug 2026 09:07:19 GMT</pubDate>
            <atom:updated>2026-08-21T09:07:19.774Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XxGc8xt2sxSbhxn7WxoSTA.png" /></figure><p>Hello! Everyone welcome back. In this write-up we’ll go through the execution of a malware sample and monitor it’s behavior and track the changes made by it in the system. This is an experimental write-up on malware forensics dynamic analysis. The behaviors observed during the experiment are directly put on as a write-up.</p><p>◼️ First of all we will require a sandbox environment for the detonation. Here I have used a Windows 10 Pro VM with FLARE-VM setup, FLARE-VM installation includes all the required tools for the analysis. The sample I chose is a 32-bit Windows Portable Executable of Amadey signature. We can use file.exe or a Hex viewer to know the file type. As the environment contains no internet access so I have used “<strong>FakeNet</strong>” to simulate the internet which will allow the malware or the system to communicate and make connections.<br>🔗 Links: <a href="https://github.com/mandiant/flare-vm">https://github.com/mandiant/flare-vm</a><br>🔗 <a href="https://github.com/as0ni/youtube-files/blob/main/setup.zip">https://github.com/as0ni/youtube-files/blob/main/setup.zip</a><br>🔗 <a href="https://www.nirsoft.net/">https://www.nirsoft.net/</a></p><p>◼️ Let’s get started. The setup.zip contains a setup.exe file. I opened the Sysinternals “<strong>Process Explorer</strong>” and executed the sample and located and viewed the process. Observed that the setup.exe created a process explothe.exe and the parent process does not exists or it is killed. The execution location has changed from where I executed the EXE. We can also search for interaction of explothe.exe with other process and threads in Process Explorer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGxthduxgyc5H2PYky3WBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ki8fb3hkhy1_rGao0KMvoA.png" /></figure><p><strong><em>NOTE: During the experiment the VM snapshot was restored to the original state plenty of times as a malware once executed may behave differently the second time.</em></strong></p><p>We know that the EXE has made changes to the system. So, if we want to view where it had made the changes we’ll use another tool known as “<strong>Regshot</strong>” to identify all the <strong>registry and file system changes</strong> before and after the execution. It works by taking snapshots of the registry hives and compares them to find the changes. An important feature of Regshot is it can also scan and compare directories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CXH0oGK3r9Cx5EfNMO9o1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SpFN_jxS_HIyJQwkOVrEIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CNZsrWjv4IOslCluH4iThg.png" /><figcaption><strong>Regshot text output</strong></figcaption></figure><p>Now we confirm that it created a folder under /temp directory and copied the main process explothe.exe to it. We can also observe it has added the EXE to the task scheduler directory and pointed the directory to startup registry key. It has also made other changes to the registry. The real-time registry can be monitored using Process Monitor by setting ProcMon filter to registry specific operation.</p><p>Now let’s see a graphical view of the execution. For that I’ll use Process Monitor by Sysinternals and Procdot. Process Monitor shows even small amount of changes detected in the system including processes, registry, network, filesystem etc. in more depth. We’ll run the process monitor for 2–3 minutes and export the data into CSV format and use it in Procdot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vPnrSfzt1BaQz_O5b6XoMQ.png" /></figure><p>Now to know if the malware has created any processes, or used other processes to achieve it’s purpose. We can view them in detail in “<strong>Process Monitor</strong>”. Here we view the explothe.exe sub-processes and the commands it used in Process Explorer tree view option, shown below. We can view schedule tasks command, file permission changes command, etc. used in the background.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xpnWIxt_va5iOyyh-c_cNQ.png" /><figcaption><strong>Procmon Process Tree view</strong></figcaption></figure><p><strong>◼️ </strong>Initially I executed it without giving any internet access, the sample behaves differently and stops at a certain point as it can’t make connections. So now we use “<strong>FakeNet</strong>” and allow it to make connections during the execution process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2wAMgF_LKMhJHDwxBBt0tg.png" /><figcaption><strong>Fakenet logging</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fzSjHGn0jm8jluOnms8Z-A.png" /><figcaption><strong>Fakenet html report</strong></figcaption></figure><p>Now we have a bit of hint that explothe.exe tried to connect to “<strong>77.91.124.1</strong>” and successfully download some dll files. The FakeNet has a nice feature that it also gives use with a Packet Capture file. So, let’s try to view the PCAP in Wireshark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*57lqQsjgOz_GnEaMPa0bhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xkM9cscyI2gHGB-KE3X7cw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lrz4a0_tsfQ-w6WapWQcZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*81RFEl4TtgBVA6ap7c3AZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VvwmvZPBsGFDA8SHkC58mg.png" /></figure><p>As we know there is only one malicious connection so we filter the destination to “77.91.124.1” . From the PCAP we observe that a POST was request was made to 77.91.124.1 /index.php with “<strong>POST”</strong> parameters containing minimal system information. It also made “<strong>GET</strong>” requests to and downloaded two dll files multiple times. We can either save the files as export objects from Wireshark or we can further view and find their location in the system itself.</p><p>FakeNet already showed us explothe.exe made the connections in real-time. We can also use another tool called “<strong>LiveTcpUdpWatch</strong>” by Nirsoft to view the processes and connections in real-time in a tabular format. We can also view the disconnect time, sent and received amount of data etc. Shown Below. We can clearly view explothe.exe made connections within particular interval of time. One more thing is that Process Monitor also shows the real-time connections which can be narrowed down using filters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7YpmSAHbgTzpcoVQPE5KAA.png" /><figcaption><strong>LiveTcpUdpWatch</strong></figcaption></figure><p>Now let’s verify our finding till this point with other “<strong>Nirsoft</strong>” Tools. Nirsoft has a “<strong>RegistryChangesView</strong>” tool which tracks also changes in Registry. It has also a “<strong>ScheduleTaskView</strong>” tool which will show us the Schedule Tasks. And a “<strong>FileActivityWatch</strong>” tool which will show us any activity in files in the system in real-time during the execution process. Shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XY6e9xh_H4TQKzfdaP1wzA.png" /><figcaption><strong>RegistryChangesView</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G1qCFb_3nQVeJMtGCbZmqw.png" /><figcaption><strong>ScheduleTaskView</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*axKVyGbSgAEvEYHOUzAMNw.png" /><figcaption><strong>ScheduleTaskView</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YowRNJfrj7WVAojMkPCCWQ.png" /><figcaption><strong>FileActivityWatch</strong></figcaption></figure><p>Now if we want to search for a particular string “explothe.exe” across registry hives we can use the “<strong>OfflineRegistryFinder</strong>” tool which will take a directory for registry hive files as input and show us it’s presence and findings across various key, values. Shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pdZn8kYU0ROf3o3MpiN5lQ.png" /><figcaption><strong>OfflineRegistryFinder</strong></figcaption></figure><p>Now we have verified few things but we still don’t know what part of the EXE made the requests. For that we can use “APImonitor” tool which will show which modules and Windows API functions were used to communicate to the malicious IP. We observe functions such as InternetConnectA(), HttpOpenRequestA() from WININET.dll.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RwAny7xjnNcEWGghXXuTrQ.png" /><figcaption>ApiMonitor</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RdEURICAxYwqfzXxBtvRbA.png" /><figcaption><strong>ApiMonitor</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3cx_BSFl1jkYolmaMaVo9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ndcp8UzZYFmCavMbWkRrCg.png" /></figure><p><strong>◼️ </strong>Now let us try to use another tool “<strong>SystemInformer</strong>” and try to string search for that particular IP in memory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mHLPmbhb1bXHiqua8Og_9Q.png" /><figcaption><strong>SystemInformer</strong></figcaption></figure><p>We can view explothe.exe properties &gt; memory and strings search or a filter by regex search for IP addresses. Here I directly search the IP. We can clearly view similar things to what we have observed till now.</p><p>Let’s now view one more time a graphical view in Procdot after I gave it internet access via FakeNet and understand a bit about the flow it used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PsKUBighHpiPGoylQO_klQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0SlgXSh5DmrAeVB9FVnKYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1S4T7wOKwHEX4YRfphHjAA.png" /></figure><p>We previously viewed the EXE downloaded two files and it has kept in BAM autostart registry key and when every time the user logs in the rundll32.exe will execute the cred64.dll which is a credential stealer operation. The directory it downloaded the dlls is also noticeable. SysWOW64 =&gt; 32-bit applications in a 64-bit Windows system. rundll32.exe=&gt; Use to run, load functions from dll files.</p><p><strong>◼️ </strong>Now let’s get back to Process Monitor once again and try to filter out any event that contains the word “explothe” in the “Detail” column. This time we’ll use the command line to run the Process monitor using default config file for few minutes and close and save and then filter out our requirements. ProcMon GUI will run in minimized mode. We also observe from the command column that it has changed some file permissions amd the file cannot be deleted without modifying and terminating the explothe.exe process quickly before it again automatically executes.</p><pre>Command used: procmon.exe /AcceptEula /BackingFile &quot;FILE_PATH_NAME_HERE.PML&quot; /Quiet /minimized /externalcapture /loadconfig .\ProcmonConfiguration.pmc; Start-Sleep 180 ; procmon.exe /Terminate</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GKi7UHI2mnfg5ojSvKFlSw.png" /><figcaption><strong>Filter: contains the word “explothe” in the “Detail” column</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uRZa4Ua6P6lLYVp50d6j9g.png" /><figcaption><strong>Commands Column</strong></figcaption></figure><p>Now in Process Monitor let’s specifically filter out any operation that starts with the word “Reg” and “Detail” column contains the word “explothe”. This way we can filter out most of the things and narrow it down to registry operations so that we get information about live Registry changes. We have seen Process Monitor can also show us targeted information through it’s convinient filter feature, which we have viewed through various other tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvX0E25BPRk6S178q5YiUw.png" /><figcaption><strong>Filter: starts with the word “Reg” and “Detail” column contains the word “explothe”</strong></figcaption></figure><p>The last observation was that both cred64.dll and clip64.dll fails to execute due to some underlying issues in the code or maybe couldn’t download additional resources required to complete the attack. However, the name cred64.dll is itself suspicious and can be referred to as credential stealer in various sources. I tried with few other Amadey malware samples but those didn’t complete the initial stages of the execution than that this sample did.</p><p><strong><em>Thank you very much for reading. Have a great day!!<br>Please do comment if there are any errors or suggest best practices or techniques to follow :)</em></strong></p><p><strong><em>THE END..</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adf45fc6db67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analyzing a Linux/Ext4 disk image using The Sleuth Kit (TSK) and other utilities — PART-1]]></title>
            <link>https://osintteam.blog/analyzing-a-linux-ext4-disk-image-using-the-sleuth-kit-tsk-and-other-utilities-part-1-9cde7d700df5?source=rss-4ed9918318e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cde7d700df5</guid>
            <category><![CDATA[linux-filesystem]]></category>
            <category><![CDATA[the-sleuth-kit]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[computer-forensics]]></category>
            <category><![CDATA[ext4]]></category>
            <dc:creator><![CDATA[bhargabKaushik]]></dc:creator>
            <pubDate>Mon, 06 Jul 2026 14:49:14 GMT</pubDate>
            <atom:updated>2026-07-15T01:55:51.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gZ-FtqLv5NUpkxLVh2PI3g.png" /></figure><p>Hello Everyone! Welcome back, I hope you’ll are doing great. In this write-up we’ll walkthrough a linux/ext4 disk image and try to analyze it’s forensic aspects. <strong><em>All the tools/utilities discussed here are available for free.</em></strong> <strong><em>This is the first part of this write-up and we’ll focus here on manual+semi-automatic analysis</em></strong>. First we’ll go through the overall disk layout and basic overview from the image file itself, then after that we’ll use <strong>“The Sleuth Kit”</strong> on the image file to navigate through the partition in Windows and view few forensically relevant artifacts. We’ll also mount the image in a linux machine and navigate through the partition and other relevant information and finally we’ll use a automation tool to gather the artifacts.</p><h3><strong>What is The Sleuth Kit (TSK) ?</strong></h3><blockquote>As per documentation, The Sleuth Kit is a library and collection of command line tools that allow you to investigate disk images. The core functionality of TSK allows you to analyze volume and file system data. It has both windows and linux versions. This makes it especially useful when no native Linux environment is available since it accepts disk images directly, you don’t need to mount a Linux file system to examine it.</blockquote><h3>About the ext4 file system</h3><blockquote>Ext4 is one of the most widely used Linux file systems and is the default file system for many Linux distributions. It manages how files are stored and organized on disk. It’s key strengths: journaling (protection from corruption during crash), large file support, extents, etc. The Key difference between Ext2/3/4 is ext2 had no journaling, ext3 added journaling, and ext4 improved on that with extents and much larger size limit. Maximum individual file size (with 4KB block): 16 TB. Maximum file system size: 1 EB (theoretical)</blockquote><p><strong>◼️</strong> The image source is available on the cfreds dataset portal. Link: <a href="https://cfreds.nist.gov/all/MagnetForensics/2022LunixMagnetCTF"><strong>https://cfreds.nist.gov/all/MagnetForensics/2022LunixMagnetCTF</strong></a>. The initial image is in E01 format. I have also created a raw .001 copy of it for usage. Some tools behave differently on E01 image.</p><p>Without further do let’s get started. First let’s run the <strong>cat</strong> command on the image file and pipe it through <strong>xxd</strong> and <strong>more</strong> or <strong>less</strong><br><strong>◼️</strong> <strong>Command: cat image.001 | xxd | more</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dw_eiYev7s--T0hr5zZTsw.jpeg" /></figure><p>Above we can view <strong>EFI PART</strong> in ASCII and <strong>55AA</strong> in hex. We can say that the disk partition type is possibly a <strong>GPT</strong> type (<strong>GUID partition table</strong>) and the end bytes 55AA possibly is the protective <strong>MBR</strong> signature.<br>To verify that further, let’s open the image in <strong>FTK imager</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rVysS4aVCqlilPo6ZVGbww.jpeg" /></figure><p>Above the FTK imager detected the filesystem as ext4 and the partition type is GPT. We can also view the general linux filesystem directory structure.</p><p>Now let’s find a little bit more information about the image and it’s partitions and overall layout. We use the <strong>fdisk</strong> command on linux on the image file.<br><strong>◼️</strong> <strong>Command: fdisk -l image.001 </strong>. This will list the partitions along with sector information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NkA_BL3TMRm7kUy9U7i7mw.jpeg" /></figure><p>In the above fdisk command output we’re able to view that the sector size is of <strong>512 bytes/sector</strong>. There are <strong>234441648 disk LBA sectors</strong> in total and two partitions namely EFI system partition and the <strong>Linux filesystem partition</strong>. The Linux filesystem starts at <strong>Disk LBA sector 1050624</strong> and covers <strong>131072000 Disk LBA</strong> sectors in total. We’re also able to view the partition type is GPT along with the unique <strong>disk GUID 9C5DF957-F0E6–4AAC-B3AF-1A32523E9989</strong>.</p><p>Now let’s gather some information further my using a tool called <strong>Active Disk Editor</strong>. Using Active Disk Editor (ADE) we’ll know exactly at what offset what information is present and it’ll also show the parsed information from relevant offset along with the highlighted hexadecimal representation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PCb6bN7fS0Gt0USL1IksAA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5yX3j7V3NoSvLSyUx6tfiA.jpeg" /></figure><p>Above in ADE image we’re able to view the same things like in FTK but here it’s kind of parsed using it’s template based mechanism. We see the GPT header show the EFI PART signature for GPT disk. We also view the disk GUID in hex. Disk GUID ==&gt; <strong>57 F9 5D 9C E6 F0 AC 4A B3 AF 1A 32 52 3E 99 89 ==&gt; 57 F9 5D 9C | E6 F0 | AC 4A | B3 AF | 1A 32 52 3E 99 89</strong> (Divided into groups of 4–2–2–2–6 bytes) ==&gt; <strong>9C 5D F9 57 | F0 E6 | 4A AC | B3 AF | 1A 32 52 3E 99 89</strong> (Written in Little endian — Little endian — Little endian — Big Endian — Big endian mode) gives us the final disk guid <strong>9C5DF957-F0E6–4AAC-B3AF-1A32523E9989</strong>. We can also view that the GPT starts at Disk <strong>LBA sector 1</strong> and <strong>512 byte</strong> offset means the first <strong>sector 0</strong> (512 bytes) has the <strong>Master Boot record</strong>. The First LBA and Last LBA and total Disk LBA sectors also matches the fdisk output along with the partition entries. We also see that the Partition table entries starts at <strong>Disk LBA 2</strong> and inside that further inside a particular entry we are able to view the partition starting LBA which is 1050623 for the 2nd Entry.</p><p><strong>◼️</strong> <strong><em>NOTE</em></strong><em>:<br></em><strong><em>Disk LBA</em></strong><em> = Logical Block Addressing or Sector addressing relative to the Disk. ie. start of the disk.<br></em><strong><em>Volume LBA</em></strong><em> = Logical Block Addressing or Sector addressing relative to the Filesystem or volume. ie. start of the voulme or filesystem. We’ll use these notations throughout the write-up.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ur_toP7cpBl-lNemFKNePA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wIwhlfC_DxzbKB5UvpcZzA.jpeg" /></figure><p>Above we see that the starting <strong>Disk LBA</strong> for the 2nd partition starts at <strong>1050624</strong>. We also see the <strong>partition type GUID</strong> in hex which is decodes in a similar mixed endian to <strong>0FC63DAF-8483–4772–8E79–3D69D8477DE4</strong> and this is a GUID for <strong>Linux filesystem data</strong>. And the <strong>unique partition GUID</strong> in hex translates to <strong>3EAAD3E2–49F3–406B-92DF-0733729F6222</strong>.</p><p>Now parallally let’s attach the image as a loop device in a Linux Machine and verify these information. After attaching let’s first view the block devices using<br><strong>◼️</strong> <strong>Commands: lsblk </strong>or<strong><br>lsblk /dev/loop0*</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*yHiqs5ScuhdeqAmkfTc3sg.jpeg" /></figure><p>This shows loop0 has two partitions <strong>loop0p1 and loop0p2</strong>.<br>Now let’s view the block identity for these device using the<br><strong>◼️</strong> C<strong>ommands: sudo blkid -p /dev/loop0<br>sudo blkid -p /dev/loop0p*</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hWZtbORhYi2_Ot3eyGYkHQ.jpeg" /></figure><p>In the above image we can see almost everything about the disk in a decoded format. We see the Disk GUID, two partitions, their type and the unique GUIDs. The 2nd partition is an <strong>ext4 filesystem</strong> and also the starting Disk LBA of the ext4 partition.</p><p>Now we’ll go through the <strong>The Sleuth Kit</strong> tool in windows. For windows you can download the binaries from <a href="https://www.sleuthkit.org/sleuthkit/download.php"><strong><em>https://www.sleuthkit.org/sleuthkit/download.php</em></strong></a> and put the folder in path in Environment Variables. Or you can use it in Linux as well. Lets start by executing 3 TSK commands on the image file directly.<br><strong>◼️ Commands: 1. img_stat ‘Lenovo_ctf.001’ ===&gt; (shows image file type)<br>2. mmstat ‘Lenovo_ctf.001’ ===&gt;(shows partition type)<br>3. mmls -B ‘Lenovo_ctf.001’ ===&gt; (lists all partitions)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BahK0RXr1u7Hpmqd-s1y2g.jpeg" /></figure><p>In the above outputs we see the image is a <strong>RAW image</strong> file, has <strong>512 bytes</strong> per sector. Partition types is <strong>GPT</strong> and we can view all the partitions and their LBA range, their sizes and their Description. For detailed TSK command support you may also visit: <a href="https://www.mankier.com/package/sleuthkit"><strong><em>https://www.mankier.com/package/sleuthkit</em></strong></a></p><p>As we are interested in the <strong>ext4</strong> partition having <strong>Disk LBA 1050624</strong>, now we can run this command.<br>◼️ <strong>Command: fsstat -o 1050624 ‘Lenovo_ctf.001’ | more<br></strong>piped it through more.<strong> </strong>This command takes a partition offset(LBA) and shows us all the <strong>filesystem statistics</strong>, here in this case it’s showing the ext4 filesystem stats.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ACGfE-DWgv8FUU9qnfSs7w.jpeg" /></figure><p>Above <strong>fsstat</strong> command output shows us the filesystem type is ext4 at that <strong>Disk LBA, volume GUID, Last Write Timestamps, Last mount on root directory (/), Source OS is Linux. </strong>We also observe some <strong>Compatible</strong> and <strong>Incompatible</strong> features. We see that the <strong>Sparse Super</strong> is compatible and when <strong>Sparse Super</strong> is enabled, the <strong>backup Superblock</strong> is not present in all groups. Other ext4 filesystem stats including these are discussed next.</p><h3>Few Terminologies of an ext4 filesystem</h3><p>◼️ <strong>Block:</strong> A Block is the <strong>smallest allocable unit</strong> in an Ext4 filesystem. It is analogous to cluster in NTFS. A common block size is <strong>4096 bytes</strong>.<br>◼️ <strong>The Superblock</strong>: This is the Ext4 filesystem metadata block and contains the overall structure of the whole filesystem. It is analogous to the BIOS Parameter Block in NTFS boot sector. The <strong>Superblock</strong> is present in <strong>Volume LBA 2</strong> or <strong>1024 bytes</strong> from start of the partition. And relative to Disk it’s in <strong>disk LBA of the partition + 1024 byte offset</strong>.<br>◼️ <strong>Inode:</strong> It is the representation of a file. It stores its size, permissions, timestamps, and pointers to where its actual data blocks live on disk. Every file has exactly one inode. A default inode is <strong>256 bytes</strong>. It is analogous to an MFT record in NTFS but <strong>it doesn’t contain the filename</strong>.<br>◼️ <strong>Block Group:</strong> A fixed-size grouping of the filesystem (128 MB with 4 KB blocks) bundling its own metadata and data together. In modern systems there is a <strong>backup copy</strong> of the Superblock in Block Groups 0, 1, and powers of 3, 5, and 7 and not present in every Block Groups. A Group contains contains <strong>GDT, Block and inode Bitmap, Inode Table etc</strong>. and also a backup Superblock in some groups.<br>◼️ <strong>Group Descriptor:</strong> A small record describing one <strong>Block Group</strong>.<br><strong>Group Descriptor Table(GDT):</strong> The table of all Group Descriptors stored right after the Superblock.<br>◼️ <strong>Inode Table:</strong> A sequential presence of inodes structure stored inside each Block Group. It is analogous to the Master File Table in NTFS.<br>◼️ <strong>Extents:</strong> Extents describe the contiguous ranges of physical blocks allocated to a file . It covers <strong>fragmented files</strong> efficiently. It is analogous to the NTFS Data Runs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PG_vcOxrPspsstOy5cDWcg.png" /></figure><p>Now let’s go back to our <strong>Active Disk Editor</strong> and try to inspect the above information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXK1aCY0PrsnphF_cHCzyQ.jpeg" /></figure><p>In ADE we <strong>click on Navigate &gt;&gt; Primary Ext4</strong> and then click on the <strong>Superblock</strong> and we are at the Superblock location. We can view that the Superblock <strong>Disk LBA is at 1050626</strong> which is <strong>1050626 (Partition LBA) + 2 sectors (1024 bytes)</strong>. This LBA is all relative to to the <strong>start of Disk</strong>. Now let’s see relative to the Filesystem or Volume.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1eIBvKfxY9qzQVSSw9Lhyg.jpeg" /></figure><p>Above image shows that the <strong>Superblock is at Sector 2 (Volume LBA)</strong> and <strong>byte</strong> <strong>offset 1024</strong>. And these all LBAs are relative to the <strong>start of Volume.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*baxeGjBnFdFV7v9cM_NPtg.jpeg" /></figure><p>Above we try to find the <strong>size of the Superblock</strong>. If we select bytes from the starting of the Superblock to the end we get <strong>1024 to 2047 that is 1024 bytes</strong>. The size of the Superblock is <strong>1024 bytes.</strong></p><h3>Few observations from the above discussions</h3><pre><strong><br>From the above images here are some observations.<br><br>The Ext4 Partition starts at Disk LBA = 1050624 and ends at Disk LBA = 132122623, <br>so, 132122623 - 1050624 + 1 = 131072000 sectors (Sector numbering starts at 0).<br><br>We know, 1 Sector = 512 bytes.<br>So, Ext4 Partition byte offset = 1050624 x 512 = 53,79,19,488<br>And, Superblock byte offset will be 53,79,19,488 + 1024 = 537920512<br>For Volume based byte offset we don&#39;t need similar calculations as the<br>reference point is Volume LBA 0.<br>And Partition size in bytes = 131072000 x 512 = 67108864000 bytes<br><br>----------------------------------------------------------------------<br>We know, 1 Ext4 block = 4096 bytes.<br>And 1 Sector = 512 bytes.<br>so, 4096 bytes = 4096/512 sectors.<br>ie. 1 Block = 8 Sectors. ie A Block covers 8 sectors.<br>So relative to Volume,<br>Block 0 = 0 x 8 = Sector 0 (Volume LBA),<br>Block 2 = 2 x 8 = Sector 16,<br>Block 5 = 5 x 8 = Sector 40 and byte offset = 40 x 512 = 20480 and so on.<br><br>We also have 1 Block group  = 32,768 blocks<br>1 Block group = 32768 x 4096 bytes = 134221824 bytes<br>1 Block group = 128 MB, that is Size of a Group is 128 MB.<br>And Total no. of blocks = 67108864000/4096 = 16384000 blocks.<br><br>We can calculate other things from the information as well.</strong></pre><p>Now let’s go to our <strong>Sleuth Kit</strong> <strong>fsstat</strong> output. Sleuth Kit shows us all these information in a already decoded format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-NLVbjWjVzh647U-JcQIuA.jpeg" /></figure><p>From the above TSK <strong>fsstat</strong> output, we observe that the ext4 <strong>root inode number is 2</strong>. An <strong>Inode size is</strong> <strong>256 bytes</strong>. The total no. of <strong>block groups is 500</strong>. The <strong>inodes per group is 8192</strong>. Then we come to the <strong>Block Group 0</strong>. In <strong>Group 0</strong> we see the <strong>Super Block, GDT covering block 1–8, the inode table covers block 1071–1582</strong>. We can further calculate the offset from block numbers.</p><p>Now let’s navigate further inside the ext4 filesystem using <strong>TSK commands</strong>. We already know that <strong>root directory inode is 2</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-FlBLSOZ7LVRevKeaA8AQQ.jpeg" /></figure><p>Above we executed <strong>two</strong> <strong>commands</strong>, <strong>fls -o 1050624 .\Lenovo_ctf.001 2 </strong>, this command lists the files and directories specific to the directory entry <strong>inode 2</strong> at the particular filesystem offset. The command <strong>fls -r -o 1050624 .\Lenovo_ctf.001 2</strong>, <strong>recursively</strong> shows everything inside <strong>sub-directories</strong>. It also shows us the <strong>inode number</strong> along with the file/directory name. We observe the <strong>/home</strong> directory <strong>inode is 19</strong>, we can also navigate to <strong>inode 19</strong> in similar manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J0RnPWxdGk5Nn3RXa9WiPg.jpeg" /></figure><p>Above the <strong>command used is</strong>: <strong>ifind -o 1050624 -n “/etc” ‘.\Lenovo_ctf.001’ </strong>. This command <strong>displays the inode number</strong> when a file or directory is given. Here we found the inode for the <strong>/etc </strong>directory.</p><p>Now let’s find the inode for the <strong>/etc/passwd</strong> file and view the <strong>User Accounts information</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RgSccm1_bfG8YNu_14r6gA.jpeg" /></figure><p><strong>Commands</strong> used: <strong>ifind -o 1050624 -n “/etc/passwd” ‘.\Lenovo_ctf.001’ , </strong>The <strong>inode for the /etc/passwd file is 1051829</strong>.<br>The command: <strong>icat -o 1050624 ‘Lenovo_ctf.001’ 1051829</strong> displays the <strong>contents of the file</strong> present at the particular inode. We view the contents of the <strong>/etc/passwd file</strong>,<strong> the users, uid, guid and the password</strong> <strong>“x”</strong> whose hashes are stored in the <strong>/etc/shadow</strong> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ga9yuAI4XU3feI-mk5P0fw.jpeg" /></figure><p>Above we’ve used two commands first <strong>command</strong> is: <strong>istat -o 1050624 .\Lenovo_ctf.001 1051829 , </strong>The isstat command displays the <strong>detailed metadata for the file/directory</strong> ie stats for the inode. It gives the <strong>Group number, data blocks associated, file permissions, file size and MACB timestamps</strong>. The second <strong>command</strong>: <strong>fcat -o 1050624 “/etc/passwd” .\Lenovo_ctf.001 , fcat</strong> <strong>directly displays the contents</strong> of a file given the <strong>exact path</strong> <strong>without</strong> needing an inode number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QVSVq-6-cywxNEFJe_q9Mg.jpeg" /></figure><p>We had an user <strong>“rafael”</strong> (<strong>uid 1000</strong>, user created account) in the <strong>passwd</strong> file, and also for the user directory <strong>“/rafael” </strong>under <strong>/home</strong> directory. The inode for the <strong>“rafael”</strong> directory is <strong>20</strong>. The hashed password is in the shadow file.<br>Upon cracking the hash we get the password <strong>“Matrix_1999”</strong>. The salted hash starts with <strong>$6$</strong> which is <strong>SHA-512 Crypt</strong> used in Linux shadow passwords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vtuqxYMfF4HIHfqogRXtlA.jpeg" /></figure><p>We can also reverse find the path of a <strong>file or directory from an inode in TSK</strong>. The <strong>Command: ffind -o 1050624 ‘.\Lenovo_ctf.001’ 1051829</strong> , shows us the path for the <strong>/etc/passwd</strong> file given the correct inode. Also we can recover files allocated or unallocated files using TSK. Above we also see an <strong>inode 538900</strong> containing thumbnail images, let’s take this as example. Using TSK we can also recover files. <strong>Command used: tsk_recover -e -o 1050624 -d 538900 .\Lenovo_ctf.001 .\thumbnail_large\ </strong>, “<strong>-e” recovers all files(allocated or unallocated) and -d expects a directory inode</strong>.</p><p>Now let us <strong>mount</strong> the loop device <strong>partition 2</strong> <strong>loop0p2</strong> in <strong>read-only</strong> mode that we attached in the Linux Machine and examine few artifacts navigating in Linux.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U4jYuadyORZI9z5ye3wXrw.jpeg" /></figure><p>Above we can view the mount point is <strong>/mnt/evdext4</strong>. And we first <strong>cd /mnt/evdext4/</strong> run the <strong>Command: ls -lahi</strong> to list all the files and directories in the ext4 root along with their inodes and human readable file sizes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_hVHaVStjbpvGmxdl1RdBQ.jpeg" /></figure><p>Now above we have listed all the files and folders with inodes and sorted numerically, and we can see everything is sorted by the inode numbers. We can also match the output of TSK fls command and the inode numbers here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*czxaYQGvCEJCdF_vypza3A.jpeg" /></figure><p>Above we can view the contents of <strong>“rafael”</strong> user directory. We can further navigate into sub-directories or cat the files. We can also find the inode of any file or directory using the <strong>stat command</strong> in Linux. <strong>Command: stat <em>[FILENAME]</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sbnhj0pkeuMiEp67TyYxeg.jpeg" /></figure><p>Above we’re able to view inodes for files as well as more information related to blocks and permissions etc., along with timestamps. There are also some notable directories like log4j RCE POC testing git cloned, a git cloned directory /<strong>marshalsec</strong> on log4shell exploitation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hqFDNfy8Ao4KmpNCJHmCGg.jpeg" /></figure><p>Above we view the Linux Distirbution and version information. Distro used is <strong>Ubuntu</strong> and version <strong>Ubuntu 21.10</strong> Impish. Then, we can also view the hostname <strong>“rshell-lenovo”</strong>, the machine-id <strong>“06a3242922fc4ad9a639319ccf68a8be”</strong>, an 128-bit identifier assigned at first boot. The time-zone is <strong>America/New_York</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Budtn6MPU1WMSprZ6Dq46A.jpeg" /></figure><p>Above we can view the groups information. The Group names, group ids, group member names, group passwords <strong>“x”</strong> if exists in <strong>/etc/gshadow</strong> etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uVuL6YQas395UGd4wbAZqg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9QYh1iotPnDo45fcVDNxQ.jpeg" /></figure><p>Above is the command line history, the <strong>.bash_history</strong> file for the user <strong>“rafael”</strong>. It is a hidden file in Linux and it starts with a dot. We also observe a deletion attempt of an image on the first line, installation of <strong>Zerotier</strong>, a VPN service. Similarly we can view the contents of the <strong>.bash_history</strong> for the <strong>root</strong> user. You can also use the linux <strong>“find”</strong> command eg: s<strong>udo find /mnt/evdext4/ -type f -iname “*_history” 2&gt;/dev/null </strong>to find all the files containing with <strong>“_history”</strong> in their filename.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bnLwG2wvjni8NbdrjsuqVQ.jpeg" /></figure><p>Now let’s view the login information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ie53_eFkudLDVRFJWJL0sA.jpeg" /></figure><p>The <strong>/var/log/wtmp</strong> contains the binary record of all successful logins/logouts/reboots. It is parsed using the <strong>last</strong> <strong>command: last -iFwx -f /mnt/evdext4/var/log/wtmp </strong>. <strong>-f</strong> takes a wtmp file and other switches displays the IP, full-times, fullnames, and system changes. (see last — -help).<br>Similarly /var/log/btmp shows binary data for failed logins, parser with <strong>lastb</strong> <strong>command. </strong>There is also the “<strong>/var/log/auth.log</strong>” which logs all authentication events. such as <strong>su, sudo ssh</strong> etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vi5YmA8zvGsBusVklajepA.jpeg" /></figure><p>Lastly, the above is the content of the general system log file <strong>“syslog”</strong>. It contains USB events, network events, Kernel messages etc.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl1Lc1Kn9hImgpx5Re%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExaTE4MzNtaXd0cGY1aDJ4bHpkMWt3Y3JnMDBmeTljZ3VpM2h6NnQ5aSZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2Fl1Lc1Kn9hImgpx5Re%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExOGYyOWtrejhmZHplN3hpYzVkeWZ0cjBnZnpzZDcxbG5wbmluMzExayZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2Fl1Lc1Kn9hImgpx5Re%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ab04add2a548071df25d14f96f38752/href">https://medium.com/media/6ab04add2a548071df25d14f96f38752/href</a></iframe><p>In this write-up there is a limited coverage of Linux Artifacts. For more Artifacts gathering and analysis,<strong><br></strong>🔗 <strong>A huge repository of Linux Forensic Artifacts can be found here:<em> </em></strong><a href="https://github.com/tclahr/uac/tree/main/artifacts"><em>https://github.com/tclahr/uac/tree/main/artifacts</em></a><strong><em><br></em></strong>🔗 <strong>A nice Linux Forensics Cheatsheet can also be found here:<em><br></em></strong><a href="https://fareedfauzi.github.io/cheatsheets/linux-forensics/"><em>https://fareedfauzi.github.io/cheatsheets/linux-forensics/</em></a></p><p>🔗 <strong>Tool Links:<br>The Sleuth Kit: </strong><a href="https://www.sleuthkit.org/sleuthkit/download.php"><em>https://www.sleuthkit.org/sleuthkit/download.php</em></a><strong><em><br></em>Active Disk Editor: </strong><a href="https://www.disk-editor.org/index.html"><em>https://www.disk-editor.org/index.html</em></a></p><p><strong>That’s all for this write-up. In [Part-2] of this write-up, we will look into a couple of automation tools for Linux Forensics and try to analyze the same.</strong></p><p><strong><em>Thank you very much for reading. Have a great day!!<br>Please do comment if there are any errors or suggest best practices to follow :)</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cde7d700df5" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/analyzing-a-linux-ext4-disk-image-using-the-sleuth-kit-tsk-and-other-utilities-part-1-9cde7d700df5">Analyzing a Linux/Ext4 disk image using The Sleuth Kit (TSK) and other utilities — PART-1</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Behind the clock | Detecting Timestomping in Windows]]></title>
            <link>https://meetcyber.net/behind-the-clock-detecting-timestomping-in-windows-b3ac2940f40a?source=rss-4ed9918318e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3ac2940f40a</guid>
            <category><![CDATA[timestomping]]></category>
            <category><![CDATA[ntfs]]></category>
            <category><![CDATA[artefact]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[computer-forensics]]></category>
            <dc:creator><![CDATA[bhargabKaushik]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 09:19:19 GMT</pubDate>
            <atom:updated>2026-06-17T09:19:19.059Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GF1hxwm6H2ZXBoYgQjtFlw.png" /></figure><p>Hello! and welcome back everyone. In this write-up we’ll go through few methods to detect timestamp manipulation of files in NTFS. We’ll first try to manipulate the timestamps of a particular file using the known available free timestomping tools and then try to check if timestomping took place using various NTFS forensic filesystem artifacts. Later we’ll verify the timestomping and try to find the original timestamps of the file.</p><h4>◼️ <strong>What is timestomping?</strong></h4><blockquote>It is an anti-forensic technique that involves modifying filesystem metadata timestamps to hide or cover any tracks of operations and interactions with a file. If a forensic tool shows a timeline of events, a timestomped file may not show in a suspicious timeframe or if a malware was executed and exists with back-dated timestamps it may not show up in a rule like “executable created within last 24 hours AND executed”</blockquote><h4>◼️ <strong>Key Terminologies:</strong></h4><p>1. <strong>MACB timestamps</strong>: Windows file-time stored in 64-bit format. “<strong>M</strong>” means “Last <strong>M</strong>odified Time” . “<strong>A</strong>” means “Last <strong>A</strong>ccessed Time”. “<strong>C</strong>” means “MFT Record <strong>C</strong>hange Time”. “B” means “The <strong>B</strong>irth or Creation time of file”. Sometimes it is also called as <strong>MACE </strong>times.<br>2. <strong>$STANDARD_INFORMATION ($SI)($10) attribute</strong>: We know that this attribute is found in <strong>MFT </strong>records and it stores the file timestamps.<br>3. <strong>$FILE_NAME ($FN) ($30) attribute</strong>: Another attribute found in MFT record which also stores the file timestamps.<br>4. <strong>$MFT</strong>: The <strong>Master File Table</strong> contains an entry for every files and directories in the volume including itself. It contains the <strong>$SI</strong> and <strong>$FN</strong> timestamps. It is a hidden, system file.<br>5. <strong>$UsnJrnl</strong>: System file, hidden which records <strong>high-level</strong> operations like file creation, deletion, renaming, data change in the volume. Stores timestamps.<br>6. <strong>$LogFile</strong>: System file, hidden, keeps the <strong>low-level</strong> changes record like metadata changes to the volume. Also keeps timestamps.<br>7. <strong>$I30 (NTFS INDX records)</strong>: System file, hidden. It stores a structured list of files in a folder/directory. It also stores the MACB timestamps along with the filename and file sizes. The <strong>$I30</strong> timestamps are usually reflected in the Windows explorer.</p><h4>◼️ <strong>Below is a SANS poster which shows in what scenarios a particular file-time can change:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJWEtH5rWDCsjHc0_1C4aw.jpeg" /></figure><p>Without further do let’s get started. First we will test the timestomping on a <strong>NTFS VHD</strong> attached as physical drive and then we move on to an NTFS formatted <strong>USB thumb drive</strong> and view the same.</p><p>◼ ️<strong>Tool Links: 1. </strong><a href="https://github.com/limbenjamin/nTimetools"><strong>nTimetools</strong></a><strong> 2. </strong><a href="https://github.com/jschicht/SetMace"><strong>SetMace</strong></a><strong> 3. </strong><a href="https://ericzimmerman.github.io/"><strong>Zimmerman Tools</strong></a><strong> 4. </strong><a href="https://github.com/jschicht/LogFileParser"><strong>LogFileParser</strong></a><strong> 5. </strong><a href="https://github.com/williballenthin/INDXParse"><strong>INDXParse</strong></a></p><h4>◼️ CASE 1:</h4><p>We create a <strong>VHD </strong>using virtual box or other such tools, attach the VHD and initialize and format the disk as NTFS file system. We then create a text file named <strong>“sensitive.txt”</strong> with random content and observe the file timestamps. To view the timestamps we can either image the drive using <strong>FTK </strong>and analyze the exported <strong>$MFT</strong> file or we can use the tool <strong>SetMace.exe</strong> to directly view the file record by point the file from the attached VHD volume. For now, we’ll use the <strong>SetMace.exe</strong> tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HYZea6tkCKmZqEE9Liep5Q.jpeg" /></figure><p>Above the <strong>setmace </strong>tool shows us the real <strong>MACB </strong>timestamps in both the <strong>$SI</strong> and <strong>$FN</strong> attributes. We observe that all the timestamps are from date <strong>2026–06–11</strong>. Along with that we can observe a few more information such as <strong>MFT record entry no. of sensitive.txt is 50</strong> which will help us later.</p><p>Now we use another tool <strong>ntimestomp </strong>by <strong>ntimetools </strong>and try to modify timestamps of the <strong>“sensitive.txt”</strong> file show below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZb6Ky2OzRjUNd7F49I_Mw.jpeg" /></figure><p>We see the <strong>ntimestomp </strong>tool ran succesfully and showed that the timestamps were modified. So we verify it with the <strong>setmace.exe</strong> tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o0KBy8BQp8dr1Iw6mOBtHw.jpeg" /></figure><p>In the above image it is interesting to note that the ntimestomp tool indeed modified the timestamps of the <strong>$STANDARD_INFORMATION</strong> attribute. But if we look closely, the <strong>$FILE_NAME</strong> attribute timestamps have not changed and remained the same as the original and having <strong>MFT Entry no. 50</strong>.<br>Hence we can say that not all the timestamps were modified which can be detected easily. This can also be verified using the <strong>MFTEcmd</strong> tool by Eric Zimmerman which is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rtG2gH3LFKYFndx-BHBItw.jpeg" /></figure><p>Now we’ll only use the SetMace.exe tool, which is also a timestomping tool and we’ll try to modify all the timestamps of the <strong>sensitive.txt</strong> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hNOJ8BRGEZgzQEr7rZzxwQ.jpeg" /></figure><p>Above we can observe that the SetMace.exe tool ran successfully for <strong>sensitive.txt having MFT entry no. 50</strong> and shows that it successfully wrote the new timestamps. Let’s verify it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AO-s6ANX29H2mJWwoXRyzQ.jpeg" /></figure><p>So, this time we can view that both the <strong>$SI</strong> and <strong>$FN </strong>attribute timestamps were modified and it is not possible to conclude about the timestomping from here. So, we now go check our <strong>$MFT file record no. 50</strong> and see what’s still left there. We’ll first <strong>export </strong>the $MFT file using <strong>FTK imager</strong> and then use the same command line tool MFTEcmd by Eric Zimmerman and point it to the exact entry no. 50.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYNtWlkopC-L3HpOjlFIdw.jpeg" /></figure><p>Now in the above image we can observe that both the $SI and $FN attribute timestamps were successfully modified by SetMace but there is another attribute that is <strong>$OBJECT_ID ($40)</strong> which keeps a record of the object Id creation time along with a <strong>GUID</strong>. The timestamp is of <strong>2026–06–11 16:48:20.89</strong>, the date matches exactly the original filetime but there is a time difference which maybe due to the initialization of the VHD. So, we still can’t clearly deduce much here. So we need to analyze the <strong>$UsnJrnl</strong> to track all the changes that took place within the <strong>MFT entry no.50</strong> . We’ll use the same <strong>MFTEcmd</strong> tool to parse the exported <strong>$J</strong> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5GA01nIIZv2hXhUg_-1nw.jpeg" /></figure><p>Now we have a better view of the scenario. If we <strong>filter </strong>by the <strong>entry 50</strong> on <strong>Timeline explorer</strong> we can see all the changes that took place from beginning till end of the file operations. And the timestamps also matches the original timestamps. Hence we can conclude that the timestamps were modified and also we have the original timestamps.</p><h4>◼️ CASE 2:</h4><p>What if there is <strong>no $UsnJrnl</strong> ? Then how’ll we track the file operations and timestamps? This time we will use a removable media, a SanDisk USB thumb drive formatted as NTFS. Windows <strong>doesn’t </strong>enable <strong>UsnJrnl </strong>in removable drives <strong>by default</strong>.</p><p>First we create a file named <strong>“timestomp.txt”</strong> inside the USB drive and run the <strong>SetMace.exe</strong> on the file. After that we <strong>image </strong>the USB drive and <strong>export </strong>the <strong>$MFT file $LogFile and $I30 file</strong> of the directory. Let’s see the SetMace output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MazrE6pQC-cDERtO4q3ahg.jpeg" /></figure><p>All timestamps are from the year 2024. Let’s see if the timestamps were modified. Let’s use the MFTEcmd tool on the <strong>MFT entry no. 39</strong> which is the record number for the file “<strong>timestomp.txt</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vUn80_jzsv1voUtxEbO9Q.jpeg" /></figure><p>We observe that both the timestamps were indeed changed but again there is the <strong>$OBJECT_ID</strong> attribute which gives us a hint that something is not right. But this time we don’t have the <strong>$UsnJrnl:$J</strong> to track all the file operations. But we know that the <strong>$LogFile</strong> also keeps a track of the timestamps let’s check if we can find something there.</p><p>We’ll use <strong>NTFS $LogFile</strong> parser tool on the exported <strong>$LogFile</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*J_VtkQZiBkWE_ch9JYgJMA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-0MHJC2AhIMOwypZXx_Kw.jpeg" /></figure><p>We now open the <strong>$LogFile parser output</strong> and <strong>search </strong>for the file filename <strong>“timestomp.txt”</strong> and we’re able to view something, the timestamps, the <strong>$SI</strong> and <strong>$FN</strong> original timestamps. So we can conclude that the timestamps were modified and what we can view in the <strong>$Logfile</strong> are the original timestamps.</p><p>Now let’s analyze the exported <strong>$I30</strong> file in a tool called <strong>INDXParse</strong>, as the tool name itself says that it parses INDX records. As we already know previously that it also contains the timestamps along with the filenames.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*uRV-LueKLQQiluhhE66iYg.jpeg" /></figure><p>We redirect the output of the <strong>INDXParse </strong>tool to a <strong>csv </strong>file and open the csv in <strong>timeline explorer</strong>. (Ignore the errors in the stdout).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYDX6J9HCDr6in78T2lHnQ.jpeg" /></figure><p>In the parsed <strong>$I30</strong> output we observe the modified MACB timestamps and not the real one (2026–06–10). We know previously that both the $SI and $FN of the <strong>“timestomp.txt” </strong>are modiefied. To get a better perspective, we again create a new file named <strong>“I_30test.txt”</strong> with random content and this time use <strong>ntimestomptool </strong>to modify only the <strong>$STANDARD_INFORMATION</strong> timestamps. And run the <strong>INDXParse</strong> tool on the new exported <strong>$I30</strong> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*41CaNTj5x9IuuemzZxmpUw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6AdsoaPky9QQ3AZopWgzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KD_VQQICqmu5WbjebG9giQ.png" /></figure><p>Now from the above three images and comparing the <strong>$I30 output, $LogFile output, $SI, $FN</strong> timestamps we can conclude that timestamps shown in the windows explorer for both the files are modified or stomped.</p><p>◼️ <strong><em>NOTE 1:</em></strong><em> The tested tools doesn’t work in modifying </em><strong><em>$FILE_NAME</em></strong><em> timestamps on </em><strong><em>locked NTFS</em></strong><em> drives as this needs to go through the </em><strong><em>Kernel </em></strong><em>level. The tools like </em><strong><em>SetMace </em></strong><em>operate on the raw device level, dismounting the drive, bypassing the NTFS driver entirely. On a locked system volume cannot get pass that lock because the OS itself holds it. To know more about how SetMace works tool link is already provided above.</em></p><p>◼️ <strong><em>NOTE 2:</em></strong><em> Certain timestamp modification tools modify only the </em><strong><em>$STANDARD_INFORMATION</em></strong><em> CreationTime and LastWriteTime that is “B” time and “M” time respectively. It keeps MFT record change time and LastAccessTime unchanged. They also keep </em><strong><em>$FILE_NAME</em></strong><em> MACB timestamps untouched. This makes it more convenient to detect the timestomping. An example is shown below:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u7Iubei0pqHQSKwfEIXZyg.png" /></figure><p>Thank you very much for reading. Have a great day!!<br>Please do comment if there is any errors or suggest best practices to follow :)</p><p><strong><em>THE END…</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3ac2940f40a" width="1" height="1" alt=""><hr><p><a href="https://meetcyber.net/behind-the-clock-detecting-timestomping-in-windows-b3ac2940f40a">Behind the clock | Detecting Timestomping in Windows</a> was originally published in <a href="https://meetcyber.net/">MeetCyber</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ INDEX — All Articles]]></title>
            <link>https://medium.com/@hawk101/index-page-all-articles-855b014a9834?source=rss-4ed9918318e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/855b014a9834</guid>
            <dc:creator><![CDATA[bhargabKaushik]]></dc:creator>
            <pubDate>Tue, 09 Jun 2026 19:37:29 GMT</pubDate>
            <atom:updated>2026-08-21T09:13:28.291Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome! This page serves as the index page to all my articles on Digital Forensics, Web Security, and OSINT. Click on any link to view an article.</p><h3>🔍 Digital Forensics</h3><ul><li><a href="https://medium.com/@hawk101/running-a-malicious-executable-and-monitoring-system-changes-dynamic-analysis-adf45fc6db67">Running a malicious executable and monitoring system changes: Dynamic Analysis</a></li><li><a href="https://medium.com/the-first-digit/analyzing-a-linux-ext4-disk-image-using-the-sleuth-kit-tsk-and-other-utilities-part-1-9cde7d700df5">Analyzing a Linux/Ext4 disk image using The Sleuth Kit (TSK) and other utilities — PART-1</a></li><li><a href="https://medium.com/meetcyber/behind-the-clock-detecting-timestomping-in-windows-b3ac2940f40a">Behind the clock | Detecting Timestomping in Windows</a></li><li><a href="https://medium.com/@hawk101/lnk-analysing-the-windows-shortcut-files-2bb8cd9b200d">LNK: Analyzing the Windows Shortcut Files</a></li><li><a href="https://medium.com/@hawk101/prefetch-execution-trail-in-windows-dcf1f106d1f5">Prefetch: Execution Trail in Windows</a></li><li><a href="https://medium.com/@hawk101/srum-analyzing-the-user-activity-tracking-in-windows-6e2bcfb07047">SRUM: Analyzing the User Activity Tracking in Windows</a></li><li><a href="https://medium.com/@hawk101/usnjrnl-exploring-the-ntfs-usn-journal-to-track-file-system-activity-6d0692ae107b">$UsnJrnl: Exploring the NTFS USN Journal to Track File System Activity</a></li><li><a href="https://medium.com/@hawk101/analyzing-the-mft-file-in-ntfs-using-mftecmd-and-other-tools-808fc8b550eb">Analyzing the $MFT File in NTFS using MFTEcmd and Other Tools</a></li><li><a href="https://medium.com/@hawk101/volatility3-navigating-the-sam-registry-hive-from-memory-image-89af7007542b">Volatility3: Navigating the SAM Registry Hive from Memory Image</a></li></ul><h3>🌐 Web Security</h3><ul><li><a href="https://medium.com/@hawk101/from-restriction-to-exposure-how-a-single-feature-leaked-thousands-of-pii-records-24ec7d171de3">From Restriction to Exposure: How a Single Feature Leaked Thousands of PII Records</a></li><li><a href="https://medium.com/@hawk101/partial-masking-different-logic-and-bypassing-protection-4ce54e9d10fc">Partial Masking, Different Logic, and Bypassing Protection</a></li><li><a href="https://medium.com/@hawk101/story-of-a-flawed-domain-validation-check-during-registration-98950e5e9cef">Story of a Flawed Domain Validation Check During Registration</a></li><li><a href="https://medium.com/@hawk101/choose-your-own-discount-a-business-logic-vulnerability-24f6e85aef42">Choose Your Own Discount — A Business Logic Vulnerability</a></li><li><a href="https://medium.com/@hawk101/from-debug-mode-to-unauthorized-access-197f8ec97533">From Debug Mode to Unauthorized Access</a></li><li><a href="https://medium.com/@hawk101/story-of-a-miss-configuration-that-led-to-admin-s-account-takeover-895b28392a65">Story of a Misconfiguration That Led to Admin’s Account Takeover</a></li><li><a href="https://medium.com/@hawk101/buying-items-at-cheaper-rates-than-usual-a-business-logic-flaw-7858f2236077">Buying Items at Cheaper Rates Than Usual — A Business Logic Flaw</a></li><li><a href="https://medium.com/@hawk101/story-of-a-stored-xss-and-bypassing-csrf-protection-5e8ba3c34292">Story of a Stored XSS and Bypassing CSRF Protection</a></li><li><a href="https://medium.com/@hawk101/story-of-a-blind-xss-and-an-sql-injection-on-same-target-f8165e90f647">Story of a Blind XSS and an SQL Injection on Same Target</a></li><li><a href="https://medium.com/@hawk101/story-of-an-accidental-blind-xss-d905d908f656">Story of an Accidental Blind XSS</a></li><li><a href="https://medium.com/@hawk101/story-of-a-payment-flow-misconfiguration-39b866619cdc">Story of a Payment Flow Misconfiguration</a></li><li><a href="https://medium.com/@hawk101/finding-injection-issues-in-hidden-parameters-8dd4b0da85e5">Finding Injection Issues in Hidden Parameters</a></li><li><a href="https://medium.com/@hawk101/a-faster-replica-of-nmap-fd5424de5f2">A Faster Replica of Nmap</a></li></ul><h3>🕵️ OSINT</h3><ul><li><a href="https://medium.com/@hawk101/reverse-searching-the-usernames-and-email-ids-tools-and-more-72a9954bcdfa">Reverse Searching the Usernames and Email IDs — Tools and More</a></li><li><a href="https://medium.com/@hawk101/mrs-osint-challenge-6-signal-overboard-walkthrough-a7756cb8ae08">Mrs. OSINT Challenge 6 — Signal Overboard Walkthrough</a></li><li><a href="https://medium.com/@hawk101/writeup-mrs-osint-challenge-5-castle-4580e729a55a">Mrs. OSINT Challenge 5 — Castle</a></li><li><a href="https://medium.com/@hawk101/batnet-1-seetf-ctf-categoty-osint-80b38c58452e">Batnet 1 — SEETF CTF (OSINT)</a></li><li><a href="https://medium.com/@hawk101/sdctf-2022-osint-chall-turing-test-6956eb310e05">SDCTF 2022 OSINT Challenge — Turing Test</a></li></ul><p>📌 This index is updated whenever a new article is published.<br><strong><em>Last Updated: 2026–08–21</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=855b014a9834" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Restriction to Exposure: How a Single Feature Leaked Thousands of PII Records]]></title>
            <link>https://osintteam.blog/from-restriction-to-exposure-how-a-single-feature-leaked-thousands-of-pii-records-24ec7d171de3?source=rss-4ed9918318e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/24ec7d171de3</guid>
            <category><![CDATA[security-misconfiguration]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[bhargabKaushik]]></dc:creator>
            <pubDate>Thu, 12 Feb 2026 19:10:10 GMT</pubDate>
            <atom:updated>2026-02-13T01:18:29.243Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_I602VC8033W-cXJd1KW-Q.jpeg" /></figure><p>Hello Everyone, hope you’re all doing great. In this write-up, we’ll walk through one of my recent findings on a Vulnerability Rewards Program. Here, we will see how even after a sensitive page is restricted, due to an unprotected feature, it can lead to information disclosure.</p><h4>◼️ Overview</h4><p>The target was an e-learning web application where users could register via email and set up their accounts after verifying their email. Let’s consider the Target’s parent domain as example.com. A subdomain of it <strong><em>courses.example.com</em></strong> hosted the courses application. After going through the application for some time, it was found that the Target company also provides services to third parties to set up their course sites, and also discovered that there were different levels of privileges, such as learner, member, manager, owner, and admin. Trying to access these roles as endpoints found that only the <a href="https://shop.example.com/admin"><strong><em>https://courses.example.com/admin</em></strong></a> redirected to <a href="https://admin.example.com/"><strong><em>https://admin.example.com</em></strong></a> with a big restricted page. Even though this was a restricted page, it had the status code <strong><em>200</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4fEHj9VPzrWDM6lGT2HCTg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YHMm53TC82iX8SpogUD9Jw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*fSdozxq9x0-FWnZkZViiwQ.jpeg" /></figure><h4>◼️ Discovery</h4><p>On this admin page, I could also view only my account details, not admin’s from the accounts section from my account icon at the top right corner. This feature was quite similar to the accounts section at courses.example.com, but only with an additional feature, the “Send Announcement” feature, which I did not see in my user account. Not expecting anything to happen, I clicked on the “Send Announcement” button and a form popped up with various details to fill like email id, subject, body, etc. When trying to fill in a random email ID, it auto-suggested a few email ids after putting the starting letter, which had all different email domains, including gmail. Trying to send an announcement to a random user blocked it and gave a status 401 and Unauthorized in response. Going through the BurpSuite proxy history tab, I saw that admin.example.com was querying email ids from the server through the API endpoint <strong><em>/api/dashboard/learners?pagesize=10&amp;sort_key=name&amp;sort_order=ASC&amp;start=0 </em></strong>. This was the auto-suggest request made when trying to enter an email id in the announcement form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1PwoEqE0VVhsHJZaPHAFNA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mcov2ZGlJiPqTMenHjJgzA.jpeg" /></figure><p>In JSON, the response leaked the <strong>Full Name, userid, username, email</strong>, etc. of <strong>users, admins, and developers</strong> who registered on the courses site, <strong>along with my details too</strong>. So, increasing the “<strong>pagesize”</strong> parameter value leaked more people’s information.</p><h4>◼️ Conclusion</h4><p>Hence, we can conclude that even after restricting the admin page, a single open feature in the page could leak PII records. The “Send Announcement” feature acted as a hole in the protected environment, which was responsible for the leak. As per the policy, I stopped here, reported the issue as soon as possible, and an immediate fix was implemented.</p><p>Thank you very much for reading. Have a great day!!</p><p><strong><em>The End…</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24ec7d171de3" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/from-restriction-to-exposure-how-a-single-feature-leaked-thousands-of-pii-records-24ec7d171de3">From Restriction to Exposure: How a Single Feature Leaked Thousands of PII Records</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Partial masking, different logic, and bypassing protection]]></title>
            <link>https://meetcyber.net/partial-masking-different-logic-and-bypassing-protection-4ce54e9d10fc?source=rss-4ed9918318e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ce54e9d10fc</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[api-security]]></category>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[bhargabKaushik]]></dc:creator>
            <pubDate>Sat, 24 Jan 2026 09:00:10 GMT</pubDate>
            <atom:updated>2026-01-24T12:16:52.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*utppAzN1QvQOpYgybtsEsQ.jpeg" /></figure><p>Hey everyone! Hope you’re doing great. In this write-up, I’ll walkthrough one of my findings on a vulnerability rewards program. Here, we’ll see how, even after information is protected, the inconsistent implementation of the algorithm used across two different APIs will help us to decode it and uncover the information. I found this behavior quite different and unexpected, and thought of making a write-up on this.</p><h4>› Overview</h4><p>The targets are web applications, and for convenience, let us consider the target name as <strong>example.com. </strong>Two subdomains: <strong>portal.example.com</strong> and <strong>secure.example.com</strong>. The <strong>portal.example.com</strong> domain, running a login panel, had only login with OTP functionality, where registered clients could log in using their clientId, and an OTP was sent to the associated mobile number. A limited number of client IDs were available to view publicly by a user from another domain, which was a feature and a normal behavior. And the domain <strong>secure.example.com</strong> was also running a different panel, which offered both login and signup features with OTP, using the same client ID. Both were different domains and served different purposes.</p><h4>› Case 1</h4><p>The <strong>secure.example.com</strong> domain, during signup using client id, checks whether a user with the particular ID exists or not, overall validity using a backend API, <strong>apisec.example.com</strong>, before attempting to sign up as a user in that domain only. Analysing the signup response in the Burp repeater, I found that it shows the personal details of the client user, but in a masked format. I am using the request-response in text format, not images avoiding heavy redactions.</p><pre>POST /v1/resources/check-details HTTP/2<br>Host: apisec.example.com<br>User-Agent: Mozilla/5.0<br>Accept: */*<br>Accept-Language: en-US,en;q=0.9<br>Accept-Encoding: gzip, deflate<br>Referer: https://secure.example.com<br>Content-Type: text/plain;charset=UTF-8<br>Content-Length: 23<br>Dnt: 1<br>Sec-Fetch-Dest: empty<br>Sec-Fetch-Mode: cors<br>Sec-Fetch-Site: same-site<br>Priority: u=0<br>Te: trailers<br><br>{&quot;clientId&quot;:&quot;CI113120&quot;}</pre><pre>HTTP/2 200 OK<br>Content-Type: application/json<br>Content-Length: xxx<br>Vary: Origin<br>Set-Cookie: xxx<br><br>{&quot;xxx&quot;:&quot;xxx&quot;,&quot;PersonName&quot;:&quot;&quot;,&quot;mobileNo&quot;:&quot;*****12345&quot;,&quot;clientName&quot;:&quot;&quot;,&quot;name&quot;:&quot;xxx&quot;,&quot;associatedPersonType&quot;:&quot;&quot;,&quot;DESC&quot;:&quot;&quot;,&quot;mailId&quot;:&quot;***ndoe@gmail.com&quot;,&quot;OTPMobileNo&quot;:&quot;*****12345&quot;,&quot;PersonId&quot;:&quot;&quot;,&quot;clientId&quot;:&quot;&quot;,&quot;status&quot;:&quot;VALID&quot;}</pre><p>We can observe the masked email id “ <strong>***ndoe@gmail.com”</strong> and the mobile number from the response. Initially, I thought and assumed it was a normal security implementation and moved on to another subdomain after spending some time. Soon after, I found another domain <strong>portal.example.com</strong>.</p><h4>› <strong>Case 2</strong></h4><p><strong>The domain portal.example.com</strong> uses the backend API <strong>apiport.example.com</strong> for login via OTP and takes the client ID as input to send the OTP to the associated mobile number, and gives a success response for a valid ID, along with a similar masked implementation.</p><pre>POST /v2/generate/client/send-otp HTTP/2<br>Host: apiport.example.com<br>Cookie: xxx<br>Accept: application/json, text/plain, */*<br>Accept-Language: en-US,en;q=0.9<br>Accept-Encoding: gzip, deflate<br>Content-Type: application/json<br>Authorization: Basic xxxx<br>Dnt: 1<br>Referer: https://portal.example.com/<br>Sec-Fetch-Dest: empty<br>Sec-Fetch-Mode: cors<br>Sec-Fetch-Site: same-site<br>Te: trailers<br><br>{&quot;otpType&quot;:&quot;OTP&quot;,&quot;inputType&quot;:&quot;CLIENTID&quot;,&quot;clientId&quot;:&quot;CI113120&quot;}</pre><pre>HTTP/2 200 OK<br>Content-Type: application/json<br>Set-Cookie: xxx<br><br>{&quot;statusDesc&quot;:&quot;OK&quot;,&quot;status&quot;:&quot;200&quot;,&quot;requestID&quot;:&quot;xxx&quot;,&quot;results&quot;:[{&quot;refNumber&quot;:&quot;xxx&quot;,&quot;username&quot;:null,&quot;email&quot;:&quot;joh***e@gmail.com&quot;,&quot;mobileNumber&quot;:&quot;61****2345&quot;,&quot;referenceUID&quot;:null}]}</pre><p>From the above response, we observe the masked email id as “<strong>joh***e@gmail.com” </strong>and the mobile number<strong>. </strong>But something looked different; the email ids didn&#39;t look the same. When I viewed again and verified with the previous domain, I found that both were the same email, but the position of masking was different.</p><h4>› Results</h4><p>Comparing both the email IDs from both responses, I observed<br><strong>***ndoe@gmail.com</strong> <strong>| joh***e@gmail.com</strong> . They were masking at different character positions, and we can get the full personal email id just by replacing the relevant characters. In this way, it leaked the full email id, final email: “<strong>johndoe@gmail.com”</strong>. Trying the same for the mobile number, after a few tests, I observed that this was working only for email Ids having a particular length or less before the TLD. <strong><em>The email “johndoe@gmail.com” is just taken as a demo email id for this write-up only, and it doesn’t belong to the real data by any means.</em></strong></p><p>So far, I have tested with only a few client IDs. But now, since the client IDs were both serial and fuzzable, I automated the task a bit and used the client IDs to retrieve the masked email IDs from both APIs, then compared the masked emails to the desired length and unmasked them. After gathering a sufficient number of email IDs for the POC, I reported it as soon as possible, and an immediate fix was implemented.</p><p>Thanks for reading. Have a great day!!</p><p><strong><em>The End..</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ce54e9d10fc" width="1" height="1" alt=""><hr><p><a href="https://meetcyber.net/partial-masking-different-logic-and-bypassing-protection-4ce54e9d10fc">Partial masking, different logic, and bypassing protection</a> was originally published in <a href="https://meetcyber.net/">MeetCyber</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LNK: Analysing the Windows Shortcut Files]]></title>
            <link>https://meetcyber.net/lnk-analysing-the-windows-shortcut-files-2bb8cd9b200d?source=rss-4ed9918318e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bb8cd9b200d</guid>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[lnk-files]]></category>
            <category><![CDATA[windows-forensics]]></category>
            <dc:creator><![CDATA[bhargabKaushik]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 14:53:26 GMT</pubDate>
            <atom:updated>2025-11-30T16:47:49.357Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_tt-3szCTHWPvvxLS8cxvA.png" /></figure><p>Hi everyone, I hope you’ll are doing great. In this write-up we’ll discuss about another windows artifact, the <strong>Windows Link files (.lnk)</strong> or the <strong>Shortcut files</strong> and try to find out what information the LNK files store and try to track the user interaction with various files.</p><p>We’ll be using a publicly available Windows 11 image from magnet ctf 2025. We’ll also be using the 010 hex editor free trial version and lnk files parser by Eric Zimmerman.</p><p><strong>🔗 Links:</strong><br><strong>1. </strong><a href="https://cfreds.nist.gov/all/Hexordia/2025MVSCTF"><strong>https://cfreds.nist.gov/all/Hexordia/2025MVSCTF</strong></a><strong> (Windows image only)<br>2. </strong><a href="https://www.sweetscape.com/010editor/"><strong>https://www.sweetscape.com/010editor/</strong></a><strong><br>3. </strong><a href="https://ericzimmerman.github.io/#!index.md"><strong>https://ericzimmerman.github.io/#!index.md</strong></a></p><h3>💠 What are LNK files and their importance?</h3><blockquote>The <strong>Microsoft Shell Link files</strong> or the <strong>LNK files</strong> are the <strong>shortcut files</strong> which creates a linkage to various files and directories for faster access. These can be system or user created and can be present anywhere on the system like <strong>Desktop, StartMenu, MS Office ,Recent</strong> etc. These lnk files are created when a file/directory is created or opened via an application or explorer. In this write-up we’ll focus only on the lnk files present in <strong>Recent directory:</strong> <strong>C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Recent\<br></strong>An Link file contains various information related to the file to which it is linking to. The Link file is called as <strong>source file(.lnk file)</strong> and the main file is called as <strong>target file</strong>. The source file(.lnk file) contains <strong>timestamps, volume label name, volume serial numberand GUIDs, MFT entry info. File Attrib., MAC addr, MachineID, paths and directory</strong> information related to the target file. If a target file is <strong>deleted</strong> the the shortcut links can still remain for that target file.</blockquote><p>The Windows 11 image used here is a <strong>AD1 image</strong> which is a <strong>logical </strong>acquisition of selected files/folders. The image is possibly an image of an upgraded Windows 10 Home system to Windows 11.</p><p><strong>👉</strong> Let’s first open the image in <strong>FTK imager</strong> and navigate to the Location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EIOZfTK1yscAbfyxbmnP_g.jpeg" /><figcaption><strong>FTK 1</strong></figcaption></figure><p>We can view that the username here is <strong>“chick”</strong> under which we further navigated to the <strong>“Recent”</strong> directory. We can <strong>export </strong>all the .lnk files for further analysis.<br>The file signature of .lnk file is <strong>4C 00 00 00 01 14 02 00</strong>.<br>The header size is 4 bytes long <strong>4C 00 00 00</strong>. Decimal value <strong>76</strong>.</p><p><strong>👉</strong> Let’s now view the lnk file in a hex editor. We’ll use 010 hex editor (free trial version). This editor has <strong>templates </strong>for parsing <strong>.lnk</strong> files and decodes them to readable information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GlMs2Rw0t2Yyk40hRfo5eg.jpeg" /><figcaption><strong>010 Sucess.txt.lnk LNK file</strong></figcaption></figure><p>In the above image we observe few things. The Header size is 4 bytes long and has a value of 76, The <strong>class id guid, Creation time[Hex offsets 1C to 23], Access time [Hex offsets 24 to 2B]and Modified (Write) time [hex offsets 2C to 33]</strong> of the target file. These are <strong>64-bit windows FILETIME</strong> and all the three times are same. Filename is <strong>“sucess.txt.txt”</strong> and the filesize is 0 meaning it’s an <strong>empty file</strong>.</p><p><strong>👉</strong> Let’s look another LNK file in the hex editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WC6fjeZNNO2wbx7Mi2pCcQ.jpeg" /><figcaption><strong>010 maryresume (2).lnk LNK file</strong></figcaption></figure><p>The above file is a <strong>PDF </strong>file with name <strong>“maryresume (2).pdf”</strong> . This PDF was created on <strong>15/11/2024 15:51:25 , modified on 15:51:27 and accessed on 15:51:29 and filesize is 237223 bytes</strong>. The target file was first opened on <strong>15:51:25</strong> and it was last opened on <strong>15:51:27</strong>. The access time is the last time the target file was accessed by any process, by an application or by system itself.</p><p><strong>👉</strong> Now Let’s use the <strong>LECMd lnk</strong> parser tool by <strong>Eric Zimmerman</strong> to first parse all the exported lnk files.</p><pre>.\LECmd.exe -d .\lnk_files\ --csv &#39;.\lnk_res\&#39; --csvf lnk_res.csv</pre><p>The above command will parse recursively all the lnk files from <strong>“.\lnk_files\”</strong> directory and will present us with the results in a csv file format in the <strong>“.\lnk_res\”</strong> directory. Then we can view the results in <strong>Time Line Explorer</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A1G888ROklZT4xQHALlwnA.jpeg" /><figcaption><strong>TLE 1</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_tlwhJyO6p_AsIfNb0I_vg.jpeg" /><figcaption><strong>TLE 2</strong></figcaption></figure><p>In the above two images we get an overview of the parsed lnk files. We view the <strong>source and target time stamps, Relative path, Local Path, Working directory, Volume Serial number, Storage media type, Volume Label name, etc.</strong></p><p><strong>👉 </strong>Now let’s us use this tool on <strong>single .lnk files</strong> and analyse the results. We’ll use the initial .lnk files only.</p><pre>.\LECmd.exe -f &#39;.\lnk_files\sucess.txt.lnk&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6PegvehBzOicrJw8hkejag.jpeg" /><figcaption><strong>Sucess.txt.txt LECMd 1</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qe9OMQ_9Eb58N0DUznDJ4w.jpeg" /><figcaption><strong>Sucess.txt.txt LECMd 2</strong></figcaption></figure><p>From the above two images for <strong>“sucess.txt.txt”</strong> file, apart from the previous info now we can also view the <strong>MFT entry no. 24071</strong>. The sequence number meaning this entry was used 16 times. These can be seen from the Block information ie. Block 0 (Beef0004), these are information from the master file table. We also view The <strong>MACHINE id “maryjones”</strong> and the <strong>MAC addr.</strong> and the <strong>storage media is fixed (Hard drive)</strong>. We also view the present and birth <strong>volume droids/guids</strong> and the file guids. Here in this case both are same which means file was not moved to other volume.</p><p><strong>👉 </strong>Let’s now view the PDF file using the same tool.</p><pre>.\LECmd.exe -f &#39;.\lnk_files\marysresume (2).lnk&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U6nNDx3NPgcrxVNNUVkeiA.jpeg" /><figcaption><strong>Mary PDF LECMd 1</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8AlJiuSNyx6N1tUJcTriOQ.jpeg" /><figcaption><strong>Mary PDF LECMd 2</strong></figcaption></figure><p>In the above two images we are also able to view the resolved root folder “<strong>Downloads</strong>” as the resolved <strong>GUID</strong>. We observe the <strong>timestamps</strong>, The volume GUIDs are the same. The MFT entry no. is <strong>50546 </strong>and <strong>sequence no.</strong> is 2 meaning it was used 2 times or reused once since the initial creation.</p><p>Thanks for reading. Have a great day!!<br>Please do comment if there are any errors or suggestions of best practices to follow :)</p><p><strong><em>THE END…</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bb8cd9b200d" width="1" height="1" alt=""><hr><p><a href="https://meetcyber.net/lnk-analysing-the-windows-shortcut-files-2bb8cd9b200d">LNK: Analysing the Windows Shortcut Files</a> was originally published in <a href="https://meetcyber.net/">MeetCyber</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prefetch: Execution Trail in Windows]]></title>
            <link>https://osintteam.blog/prefetch-execution-trail-in-windows-dcf1f106d1f5?source=rss-4ed9918318e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcf1f106d1f5</guid>
            <category><![CDATA[windows-forensics]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[prefetch]]></category>
            <dc:creator><![CDATA[bhargabKaushik]]></dc:creator>
            <pubDate>Mon, 17 Nov 2025 15:53:12 GMT</pubDate>
            <atom:updated>2025-11-20T02:04:52.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hpnlZNNjjdp71K9NjxuRvQ.png" /></figure><p>Hello Everyone! I Hope you’re doing well. In this write-up we’ll discuss about a program execution activity tracking artifact in Windows, The Prefetch. This artifact will tell us about the historical program runs in a Windows system. We’ll use free tools to parse and analyze the results and will also try to search for any crucial information with the help of Prefetch results.</p><p>🔶 <strong>Tools Required:</strong> Prefetch Parser <a href="https://ericzimmerman.github.io/#!index.md">PECmd</a> tool by Eric Zimmerman, FTK Imager, and <a href="https://ericzimmerman.github.io/#!index.md">Timeline explorer</a></p><h3>📍 What is Prefetch?</h3><blockquote>The Prefetch is an optimization technology in Windows which helps to speed up the start up process of applications. It records <strong>historical data</strong> of program executions via a <strong>.pf file</strong>. A <strong>.pf file</strong> is created when an executable is run for the first time. Since Windows8.0 it can record an amount of 1024 .pf files and the older files are removed first. By default it is <strong>enabled on Windows non-server systems.</strong> The prefetch file name format is <strong>EXE_NAME-HASH.pf </strong>and this hash is created based on the exe and the path of the exe. A parsed .pf file shows us plently of information like <strong>exe run count, exe run timestamps, volume serial number, files and directories referenced </strong>etc. It only shows us the <strong>last 8 run timestamps</strong> including the last run time. Unlike SRUM prefetch does not directly show us the <strong>path of the EXE but it can be inferred from the results.</strong></blockquote><p>👉🏼 Now lets us first export the prefetch directory using FTK. The process of exporting files using FTK Imager is discussed in the last write-ups. For analysis we’ll use a <strong>publicly available Windows full disk image from </strong><a href="https://github.com/vm32/Full-Disk-Image"><strong>HERE</strong></a><strong> </strong><br>Compressed Prefetch file signature is <strong>MAM (4D 41 4D 04)</strong> and uncompressed signature is <strong>SCCA (53 43 43 41).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tFO_s9ROU36NSBU77dp2bw.jpeg" /><figcaption><strong>Uncompressed .pf file</strong></figcaption></figure><p>👉🏼 Now let’s use the <strong>PECmd</strong> tool to first parse all the prefetch file from the export files directory. Command Below:</p><pre>.\PECmd.exe -d .\Prefetch\ --csv .\prefetch_lysis\ --csvf prefetch_lysis.csv</pre><p>The above command will parse all the prefetch files from <strong>“\Prefetch\”</strong> directory and it will save the output in <strong>CSV format</strong>. It will give us two output csv files one <strong>overall and one with timeline.</strong></p><p>👉🏼 Let’s now opened the CSV output in <strong>Timeline Explorer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1nh_fZVOfQ9bYS9uCf1Yg.jpeg" /><figcaption><strong>TLE Overview 1</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0OITV66HhC7I5lPwBRNzpw.jpeg" /><figcaption><strong>TLE Overview 2</strong></figcaption></figure><p>From above two images we observe there are various columns including <strong>Timestamps, Executable name, Run Count</strong>. We are also able to view that there are <strong>8 total Run TimeStamps</strong> recorded including the Last Run Timestamp ie Run0 to Run6 (1 + 7 =8 timestamps). But the run count is showing the exact number of times it ran.</p><p>👉🏼 Now Let’s take the <strong>CCleaner Prefetch file</strong> from the above list and run PECmd only on <strong>CCLEANER.EXE-D4D76A60.pf</strong> file only. Command Below:</p><pre>.\PECmd.exe -f .\Prefetch\CCLEANER.EXE-D4D76A60.pf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_fZPPtP3kVMC_WFLlhhVQ.jpeg" /><figcaption><strong>CCleaner PECmd 1</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m5nUSP-Dz3-IKZrNshvfcA.jpeg" /><figcaption><strong>CCleaner PECmd 1</strong></figcaption></figure><p>From the above two images we observe that the EXE name <strong>CCLEANER.EXE</strong> <strong>Run Count is 3 with 3 timestamps</strong>. The Created on time is same as the initial run and the last run time is same as last modified time. There may be a slight <strong>time difference</strong> between last run time and the last modified time because of execution. The Last Accessed time can change due to various reasons like accessed by any other programs or system processes. We also view the Volume Serial no. and the directories and files the EXE referenced. We also observe the <strong>full path</strong> of the executable but this is inferential only.</p><p>👉🏼 Now let’s view some other prefetch files in similar manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F3VkGcLObKP809Hazam0-g.jpeg" /><figcaption><strong>PECmd Chrome</strong></figcaption></figure><p>Above are the results for <strong>chrome exe</strong> <strong>Run Count is 40</strong> and all <strong>8 run times</strong> recorded are seen. There is an <strong>8 seconds delay</strong> between Last run and Modified Time. There can be <strong>multiple hash .pf files</strong> for an exe if ran from different paths. <strong>SYSTEM32</strong>=&gt;64-bit applications and <strong>SYSWOW64</strong>=&gt; 32-bit applications. 32-bit app is both way compatible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MyDBDLZqloTO1Tmucnykmg.jpeg" /><figcaption><strong>PECmd dropbox 1</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b5NErn6ufzR6DDrUO4bPDQ.jpeg" /><figcaption><strong>PECmd dropbox 2</strong></figcaption></figure><p>Above images are for <strong>dropbox </strong>we observe the Username <strong>“Hunter”</strong> in directories referenced part and the possible path of the dropbox executable.</p><p>👉🏼 Now let’s look into the <strong>notepad.exe .pf file</strong> and try to find out if there is any crucial information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5OX2lv0yMi8VXDI0frHFKg.jpeg" /><figcaption><strong>PECmd Notepad exe 1</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zyoKnYluDDvFJKUwKENILg.jpeg" /><figcaption><strong>PECmd Notepad exe 2</strong></figcaption></figure><p>In the the two <strong>notepad </strong>PECmd images we view the <strong>run count as 5</strong>, <strong>User “Hunter”, directories and files referenced</strong>. We observe some files it referenced like <strong>ACCOUNTS.TXT </strong>and <strong>TOOLS.TXT</strong> and so on which also hints us about paths like <strong>DOCUMENTS </strong>and <strong>GOOGLE DRIVE</strong>.</p><p>👉🏼 Let’s try to export the <strong>DOCUMENTS </strong>folder and try to list and view the contents of those files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GC-D5_4sQOP8URgdsPycYg.jpeg" /><figcaption><strong>Documents Content</strong></figcaption></figure><p>The above image shows the listing of <strong>Documents </strong>directory. The <strong>Accounts.txt</strong> file contains a possible <strong>email</strong>, a <strong>skype </strong>username and the <strong>Tools.txt file</strong> shows some list of tools. Moreover, we also observe some other files in the <strong>Documents </strong>directory which might be of interest.</p><p>Thanks for reading and have a great day!!<br>Kindly comment if there is any error or if there is any suggestion.</p><p><strong><em>THE END…</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcf1f106d1f5" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/prefetch-execution-trail-in-windows-dcf1f106d1f5">Prefetch: Execution Trail in Windows</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SRUM | Analyzing the User Activity tracking in Windows]]></title>
            <link>https://osintteam.blog/srum-analyzing-the-user-activity-tracking-in-windows-6e2bcfb07047?source=rss-4ed9918318e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e2bcfb07047</guid>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[windows-artifact]]></category>
            <category><![CDATA[srum]]></category>
            <category><![CDATA[windows-forensics]]></category>
            <category><![CDATA[artifact-registry]]></category>
            <dc:creator><![CDATA[bhargabKaushik]]></dc:creator>
            <pubDate>Sun, 09 Nov 2025 16:35:31 GMT</pubDate>
            <atom:updated>2025-11-10T02:20:14.988Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*kF5I0jnC2D5EGWSZJ-VRyg.png" /></figure><p>Hi! Readers hope you’ll are doing great. In this write-up we’ll walk through a windows artifact <strong>“System Resource Utilization Monitor”</strong> in short <strong>SRUM </strong>and observe various detailed historical information that windows keeps a track off in the background.</p><p><strong>🔹 What is SRUM and how it can be useful?</strong></p><blockquote>SRUM is a monitoring feature of the modern windows systems that was introduced in Windows 8.0 . It tracks and maintains a historical database for all the processes, application, services, network connections, data usage, energy usage etc. It keeps a track of the <strong>metadata only</strong> and not the actual data. This data is stored in <strong>SRUDB.dat</strong> file which is an <strong>ESE database format</strong>. This database format is used by Microsoft for Outlook, Active Directory and other services.<br>However SRUM data is written to the Registry first before it gets written to the database. Researchers found that it stores historical data upto more than <strong>60 days,</strong> <strong>default is 30 days</strong>. It usually gets written to the database every <strong>1 hour</strong> or at <strong>system shutdown</strong>.<br>The path to the database file is<strong> C:\Windows\System32\SRU\SRUDB.dat</strong><br>On registry key: <strong>HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SRUM</strong></blockquote><p>👉 Now let us start the analysis. Before that we’ll be using a publicly available Windows 8.1 image. We’ll be using the free tool <strong>SRUM-DUMP</strong> <strong>by</strong> <strong>MarkBaggett</strong>. We’ll also use another tool <strong>SrumECmd by Eric Zimmerman</strong> just to correlate the findings.<br>🔗 Image Repo Link: <a href="https://github.com/vm32/Full-Disk-Image">https://github.com/vm32/Full-Disk-Image</a><br>🔗 Tool Link: <a href="https://github.com/MarkBaggett/srum-dump">https://github.com/MarkBaggett/srum-dump</a><br>🔗 Tool Link: <a href="https://ericzimmerman.github.io/#!index.md">https://ericzimmerman.github.io/#!index.md</a> , <a href="https://github.com/EricZimmerman/Srum">https://github.com/EricZimmerman/Srum</a></p><p>The SRUM-DUMP tool takes the <strong>SRUDB.dat</strong> file and the <strong>SOFTWARE</strong> hive file for enrichment, resolving network profiles as input and it parses the SRUM database and generates an <strong>excel file as output</strong>. Let’s export these files using FTK imager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZVJFPE164zwODYq3gC7ZBQ.jpeg" /><figcaption><strong>SRUDB.dat Export FTK</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*luB2H7A-7-43hlFoJw2zgw.jpeg" /><figcaption><strong>SOFTWARE hive export FTK</strong></figcaption></figure><p>The SRUM-DUMP tool has both the <strong>CLI and GUI versions</strong>. For the GUI one Run the exe, input the files as prompted by the tool and start. In a few seconds it will generate the excel file. You can also go for the CLI one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*WibY5PmWfFrcdPhj98AN1w.jpeg" /><figcaption><strong>SRUM-DUMP EXE</strong></figcaption></figure><p>The excel output file contains <strong>multiple sheets</strong> with various findings from the ESE database tables. The collectors are identified by a <strong>unique guid</strong>. <strong>Below is a list of guid and known tables:</strong></p><pre>{DA73FB89-2BEA-4DDC-86B8-6E048C6DA477}: Energy Estimator Provider<br>{FEE4E14F-02A9-4550-B5CE-5FA2DA202E37}: Energy Usage<br>{FEE4E14F-02A9-4550-B5CE-5FA2DA202E37}LT: Energy Usage Long Term<br>{DD6636C4-8929-4683-974E-22C046A43763}: Windows Network Connectivity Usage Monitor<br>{973F5D5C-1D90-4944-BE8E-24B94231A174}: Windows Network Data Usage Monitor<br>{D10CA2FE-6FCF-4F6D-848E-B2E99266FA86}: Push Notifications<br>{DC3D3B50-BB90-5066-FA4E-A5F90DD8B677}: SDP CPU<br>{CDF8EBF6-7C0F-5AC2-158F-DBFBEE981152}: SDP Event Log<br>{EEE2F477-0659-5C47-EF03-6D6BEFD441B3}: SDP Network<br>{38AD6548-9313-58F8-45C7-D293BAFDC879}: SDP Performance Counter<br>{841A7317-3805-518B-C2EA-AD224CB4AF84}: SDP Physical Disk<br>{17F4D97B-F26A-5E79-3A82-90040A47D13D}: SDP Volume Provider<br>{7ACBBAA3-D029-4BE4-9A7A-0885927F1D8F}: VFU<br>{B6D82AF1-F780-4E17-8077-6CB9AD8A6FC4}: Tagged Energy Provider<br>{97C2CE28-A37B-4920-B1E9-8B76CD341EC5}: Undocumented Windows 10 VM info<br>{d10ca2fe-6fcf-4f6d-848e-b2e99266fa86}: WPN SRUM Provider<br>{d10ca2fe-6fcf-4f6d-848e-b2e99266fa89}: Application Resource Usage Provider<br>{fee4e14f-02a9-4550-b5ce-5fa2da202e37}: Energy Usage Provider</pre><p>👉 Let’s now view the <strong>Windows Network Connective Usage</strong> sheet. This will show us the network connections made or connected by the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQ6yKdgz_d98AgoGWVNKOQ.jpeg" /><figcaption><strong>Connections</strong></figcaption></figure><p>We observe the Entry <strong>creation time</strong> in <strong>UTC</strong>, the <strong>network interface</strong> is <strong>ethernet</strong>, <strong>the connection start time(2016–06–21 08:15:22)</strong> and <strong>stop time(2016–06–21 08:18:00)</strong>, and the <strong>connected time(158)</strong> in seconds which is <strong>2 minutes 38 seconds</strong> for first entry. The Interface can be Wifi, mobile network or other as well.</p><p>👉 Now let’s view the <strong>Application Resource Usage sheet</strong>. This will show us application wise resource use including the I/O operations along with the SIDs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXMaHUE-Z5cPGX1kvcOEQQ.jpeg" /><figcaption><strong>App Resource Usage 1</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hzgVQUSK8fQkHDOG9JwL4A.jpeg" /><figcaption><strong>App Resource Usage 2</strong></figcaption></figure><p>From the above two images we observe the Entry Creation dates, the <strong>Full Path to the executables</strong> and which user ran the executables with the <strong>SIDs</strong>, we also observe the rid 1001 for user created account with the name <strong>“Hunter”</strong>. We observe the <strong>Foreground CPU time</strong> during user interaction. The <strong>facetime </strong>shows how the focus time of the user for particular application. The time unit, I did not find resources stating the unit but windows filetime represents 100-nanosecond intervals(100x10^-9, 10^-7). Kindly comment if the unit is incorrect. Additionally the output also provides us with Read and write bytes which can be local or network based. We observe <strong>TOR browser, Nmap was installed, a couple of cleaning and wiping tools were run by User “Hunter”</strong>.</p><p>👉 Now let’s view the <strong>Windows Network Data Usage</strong>. This will show which network interface, application was used for network based operations and how much data downloaded or uploaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jjov4YrVaZnYRSClOVtT5Q.jpeg" /><figcaption><strong>Network Data Usage 1</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hdy405AHWQiJl_zSGR4iuA.jpeg" /><figcaption><strong>Network Data Usage 2</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KQ9xXUEiab7Arr-sCvTkkw.jpeg" /><figcaption><strong>Network Data Usage search Chrome</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IAaQ_dL-DFCL9CA1fiexGg.jpeg" /><figcaption><strong>Network Data Usage search Tor</strong></figcaption></figure><p>From the above images we observe the creation time , full application path, User SID RID, the interface is mostly ethernet and this can be other as well. The <strong>Bytes sent</strong> and <strong>received </strong>using tor and nmap using the ethernet network interface. And the <strong>total bytes</strong> at the end column. We are also able to view <strong>dropbox </strong>was used to download a good amount of data. We can also <strong>search </strong>the sheet by the executable name to find the executions of particular application.</p><p>👉 Now let’s view the push notifications sheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uUeiqAPv8-vNkgS9eBfHJA.jpeg" /><figcaption><strong>Push Notifications</strong></figcaption></figure><p>This will show the <strong>notification </strong>from the windows notification tray. Here in the above image these are Microsoft service notifications.</p><p>👉 Now let us view where in <strong>registry </strong>these information get populated before writing it into the ESE database. We’ll be using our exported <strong>SOFTWARE </strong>hive file and load it into <strong>Registry Explorer</strong> <strong>by Eric Zimmerman</strong>.<br>🔗 Tool Link: <a href="https://ericzimmerman.github.io/#!index.md">https://ericzimmerman.github.io/#!index.md</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6YBJar0C4agE5oilMiK66Q.jpeg" /><figcaption><strong>SRUM Registry</strong></figcaption></figure><p>We navigated to the <strong>SRUM Key</strong> path and Under <strong>Extensions </strong>Key we observe subkeys where we find the exact table names and the dlls associated. Currently there is very limited information as these gets written into the ESE database and are temporarily stored in the Registry.</p><p>👉 Let us now quickly view the verified findings using <strong>SrumECmd Tool by Eric Zimmerman.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*02ispJ4wXmUh1yRKETyTSw.jpeg" /><figcaption><strong>SrumECmd tor.exe</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNFHQJb72Oi_KHmnNaGUHA.jpeg" /><figcaption><strong>SrumECmd chrome.exe</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2Ke-t1EsjTVbRSJe7K8SQ.jpeg" /><figcaption><strong>SrumECmd nmap.exe</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_QsbzAVPs-L_11bz20onw.jpeg" /><figcaption><strong>SrumECmd Dropbox.exe</strong></figcaption></figure><p>The above images are from <strong>SrumECmd </strong>tool csv output opened in <a href="https://ericzimmerman.github.io/#!index.md"><strong>Timeline explorer</strong></a>. The output tab is <strong>Network data Usage</strong> and the output matches the SRUM DUMP tool output.</p><p>Thanks for reading and have a great day!!<br>Kindly comment if there is any error or if there are any suggestions.</p><p><strong><em>The End…</em></strong></p><p><strong><em>References</em></strong><br>1. <strong>Yogesh Khatri</strong>’s talk on SRUM forensics: <a href="https://youtu.be/l6-83WU95Sw">https://youtu.be/l6-83WU95Sw</a><br>2. <a href="https://isc.sans.edu/diary/21927">https://isc.sans.edu/diary/21927</a><br>3. <a href="https://www.magnetforensics.com/blog/srum-forensic-analysis-of-windows-system-resource-utilization-monitor/">https://www.magnetforensics.com/blog/srum-forensic-analysis-of-windows-system-resource-utilization-monitor/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e2bcfb07047" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/srum-analyzing-the-user-activity-tracking-in-windows-6e2bcfb07047">SRUM | Analyzing the User Activity tracking in Windows</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[$UsnJrnl: Exploring the NTFS USN journal to track file system activity]]></title>
            <link>https://osintteam.blog/usnjrnl-exploring-the-ntfs-usn-journal-to-track-file-system-activity-6d0692ae107b?source=rss-4ed9918318e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d0692ae107b</guid>
            <category><![CDATA[usnjrnl]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[ftk-imager]]></category>
            <category><![CDATA[ntfs]]></category>
            <category><![CDATA[mftecmd]]></category>
            <dc:creator><![CDATA[bhargabKaushik]]></dc:creator>
            <pubDate>Sun, 12 Oct 2025 15:44:20 GMT</pubDate>
            <atom:updated>2025-10-12T20:13:24.783Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OJKgZSxbkiNmssKqO-B-4A.png" /></figure><p>Hello Everyone, I hope you all are doing great. In this write up we’ll walkthrough the NTFS change journal with the help of the <strong>$UsnJrnl</strong> file and try to find and interpret the changes made in files and correlate them with the MFT records. We will be using <a href="https://ericzimmerman.github.io/#!index.md"><strong>MFTECmd</strong></a>, <a href="https://ericzimmerman.github.io/#!index.md"><strong>Timeline explorer</strong></a> by <strong>Eric Zimmerman</strong>, and <a href="https://www.exterro.com/digital-forensics-software/ftk-imager"><strong>FTK imager</strong></a>.</p><p>📌 <strong>What is the USN Journal and how it is important?</strong></p><blockquote>The <strong>Update Sequence Number(USN)</strong> Journal is like a <strong>log </strong>that keeps a record of every <strong>change </strong>made in files and directories in an NTFS volume. It records <strong>high-level operations</strong> like file creation, deletion, renaming, data change in the volume. Whenever anything happens to any file or directory NTFS takes a note of it in the USN Journal. The <strong>$UsnJrnl</strong> is a <strong>metadata file</strong> and it’s location is under <strong>root\$Extend\$UsnJrnl</strong> which has two <strong>Alternate data streams (ADS)</strong> <strong>$J</strong> and <strong>$Max</strong> . Out of these two streams <strong>$J</strong> contains all these information that we require. The <strong>$UsnJrnl</strong> <strong>does not</strong> contain file data like the <strong>$MFT</strong>. There is another journal type in NTFS which is the <strong>$LogFile</strong> which keeps the <strong>low level changes</strong> record like metadata changes to the volume.</blockquote><p>For the demonstration we’ll be using a <strong>VHD</strong>, initialized and the volume formatted as NTFS. The attached VHD is <strong>imaged</strong> using FTK imager and we’ll be using the working copy of the image to avoid corruption to files in the VHD. Some file operations were made beforehand for testing.<br>In our <strong>$MFT</strong> write up we saw that the MFT stores various information including TimeStamps, entry number, allocation status,path etc. But there we didn’t notice the <strong>reason for change</strong> meaning what was the change made due to which the various times were updated. We also didn’t know about the details of the <strong>overwritten </strong>MFT entries if existed.</p><p>◼️ Let’s <strong>export </strong>the <strong>$J</strong> file using <strong>FTK imager</strong>. FTK imager shows the ADS under $UsnJrnl file. Along that we’ll also export the $MFT file(as discussed in the MFT writeup).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oh2oIpgEX1hgt1Ps8Lyn0g.jpeg" /><figcaption><strong>$UsnJrnl Alternate Data Streams</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*egA8Ut9c10A6zyzZqK2dBw.jpeg" /><figcaption><strong>$J File Export</strong></figcaption></figure><p>◼️ Now we’ll use the <strong>MFTECmd</strong> to parse the $J file. For $J analysis the tool also requires the $MFT file for <strong>cross-linking</strong>. The $UsnJrnl contains the <strong>File Reference Number (entry number), Parent FRN, Reason codes, Timestamps and other metadata</strong>. It does not directly contain the filename and path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0SdqWDB1eVn5YYq8qT9RcA.jpeg" /><figcaption><strong>MFTECmd parsing $J</strong></figcaption></figure><pre>.\mftECmd.exe -f &#39;.\Jrnl\$J&#39; -m &#39;.\Jrnl\$MFT&#39; --csv  .\Jrnl\</pre><p>◼️ The above command will save the parsed $J results into /Jrnl/ directory in <strong>csv format</strong>. $J and $MFT are exported files from FTK. Let’s open the results in <strong>Timeline Explorer</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oBmQIQvM6hYlstG18_bjgA.jpeg" /><figcaption><strong>Journal Results 1</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3sfdtH5GvAoSKkW3-wNqnw.jpeg" /><figcaption><strong>Journal results 2</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iuYFtPvduCoBmQo1TaU7tQ.jpeg" /><figcaption><strong>Journal Results 3</strong></figcaption></figure><p>◼️ In the above images from the timeline explorer we can clearly view that a particular record was created when a file was created along with the detailed operations, the reason for the update, and along with the exact timestamps for the changes and the parent path. A detailed history of what has happened to a file is recorded. We observe reasons such as <strong>“FileCreate”</strong> , “<strong>RenameOldName”</strong>, “<strong>RenameNewName”</strong>, “<strong>FileDelete”</strong>, etc.<br>Since the MFT does not always create a new entry for each and every file it <strong>overwrites </strong>free entries. In <strong>$J</strong> results above we are also able to deduce that a <strong>record is reused</strong> after a file was deleted.</p><p>◼️ Let’s now analyze particularly by <strong>filtering out the entry 45</strong> in timeline explorer which is reused multiple times. First let’s filter out the entry 45 in <strong>$MFT file</strong> and then view the same in <strong>$J</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yQafdfMQSRRMNnLNDqGiTA.jpeg" /><figcaption><strong>MFT entry 45 Filtered out</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*00aYhGYVLnR8KIu8wMD7JQ.jpeg" /><figcaption><strong>Journal Entry 45 filtered out</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zVAYNZTDN3Ri1nwSafSIbQ.jpeg" /><figcaption><strong>Journal entry 45 final states</strong></figcaption></figure><p>◼️ Above in the MFT results at <strong>entry number 45</strong> we observe the <strong>sequence number 5, Inuse Yes, FileName john.txt and the path is volume root itself</strong>. The parent path also show us the path of the deleted file whose entry was overwritten. The sequence number 5 at MFT tells us that the record was <strong>reused 4 times</strong>.<br>◼️ Now if we look at the <strong>$J</strong> <strong>results </strong>we get some more information. The file entry 45 before becoming <strong>john.txt</strong> went through many changes. First there was the file <strong>45mb.jpg(Deleted)</strong> then it was taken by a same named file <strong>45mb.jpg(deleted)</strong> then it was taken by <strong>27mb.jpg(deleted)</strong> then again taken by same named file <strong>27mb.jpg(deleted)</strong> and Finally entry taken by <strong>“New Text Document.txt”</strong> which was later renamed and finally changed to <strong>“john.txt”</strong> which is the <strong>current state</strong> of the record. The initial file operation at <strong>entry 45</strong> started at <strong>8:21:10 UTC</strong> and final operation at this entry completed at <strong>8:30:23 UTC</strong>. The <strong>Object Id</strong> that is GUID change was detected many times.</p><p>📂 <strong><em>NOTE: Deleted files were deleted using SHIFT+DELETE</em></strong> .</p><p>◼️ In this way we can view the <strong>changelogs Journal</strong> for files from <strong>$UsnJrnl</strong>, how an entry had deleted files in the past, original final name before rename operation. We have also viewed that even if there are overwritten entries in the MFT, $J kept a record of it. The <strong>sequence number</strong> from the MFT helped us to determine the number of re-usage of the record after it was freed.</p><p>Thank you very much for reading!! <br>Please do comment if there are any errors and suggestion of best practices to follow :)</p><p><strong><em>The End…</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d0692ae107b" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/usnjrnl-exploring-the-ntfs-usn-journal-to-track-file-system-activity-6d0692ae107b">$UsnJrnl: Exploring the NTFS USN journal to track file system activity</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>