<?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 Hardy Valenthio on Medium]]></title>
        <description><![CDATA[Stories by Hardy Valenthio on Medium]]></description>
        <link>https://medium.com/@18218004?source=rss-6337fb7e49b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-iTxDi3xijxQiJz0</url>
            <title>Stories by Hardy Valenthio on Medium</title>
            <link>https://medium.com/@18218004?source=rss-6337fb7e49b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:46:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@18218004/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[Digital Forensics Blog 06 — Malware Forensics Hands On: A Dynamic Analysis to Fantom Ransomware]]></title>
            <link>https://medium.com/@18218004/digital-forensics-blog-06-malware-forensics-hands-on-a-dynamic-analysis-to-fantom-ransomware-42c1017ac205?source=rss-6337fb7e49b------2</link>
            <guid isPermaLink="false">https://medium.com/p/42c1017ac205</guid>
            <dc:creator><![CDATA[Hardy Valenthio]]></dc:creator>
            <pubDate>Sun, 21 Nov 2021 17:24:54 GMT</pubDate>
            <atom:updated>2021-11-21T17:24:54.176Z</atom:updated>
            <content:encoded><![CDATA[<h3>Digital Forensics Blog 06 — Malware Forensics Hands On: A Dynamic Analysis to Fantom Ransomware</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gEUjcfA--qwQp7hzCQoyAw.png" /><figcaption>I am confused, so do You.</figcaption></figure><p>So.. in this blog, i wanted to delve deeper about computer malwares and analyze it using dynamic analysis method. It’s a digital forensics method which lets the malware run in an isolated computer system and carefully monitored their behavior.</p><h3>Malware</h3><p>A malicious software (malware) is a software that is specifically designed to disrupt, damage, or gain unauthorized access to a computer system. There are many types of malware, such as, but not limited to:</p><ul><li><strong>Worm</strong>: A <strong><em>standalone </em></strong>malware computer program that replicates itself in order to spread to other computers. Typically, a worm spreads across a network through your Internet or LAN (Local Area Network) connection.</li><li><strong>Trojan</strong>: A term for delivering a malware to the computer system. A trojan <strong><em>hides </em></strong>the malicious payload behind another normal process. They generally do not attempt to replicate themselves.</li><li><strong>Virus</strong>: An executable malware that replicates itself by modifying other programs and inserting its own code <strong>when executed</strong>.</li><li><strong>Ransomware</strong>: A type of malware which disables the system, usually by encrypting all files. They ask for a significant amount of <strong>ransom money </strong>to a designated account in order to extort the victim with a promise to decrypt the files kept “<em>hostage</em>”.</li><li><strong>Adware</strong>: A type of malware which annoys the user with pop-up ads for every computer event they’re doing.</li><li><strong>Backdoor</strong>: A type of malware which opens up an opportunity for the attacker to access the computer system unauthorized.</li></ul><h4>Infection</h4><p>Malicious softwares are usually spread by:</p><ul><li>Spam email</li><li>Infected removable device</li><li>Bundled with other software</li><li>Untrusted sites</li><li>File sharing</li></ul><p>Email spamming and infected USB drive sounds archaic, isn’t it? Those vector of infection rarely happens in my surroundings. Infection from malicious bundle installer and untrusted sites are more likely hosts a malware in my opinion.</p><p>Untrusted sites are not limited to sketchy-naming websites. I could name few of them like free streaming sites, <a href="https://www.youtube.com/watch?v=4eGxqPFkppU">link shorteners</a>, and <em>activated </em>propietary software aggregator are brimming with <a href="https://www.youtube.com/watch?v=NYLM--_23t0">misleading download buttons</a> that links to a malware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*wU_vtuq3AI6s2uhS4hAo6Q.png" /><figcaption>Google SafeSearch, i heed my thanks.</figcaption></figure><p>Fortunately, some search engines managed to implement an explicit results filter which helps you avoid untrusted sites.</p><p>Now, as of November 2021, i rarely see fake download buttons. Dunno the reason why. Good job tho. Or, was i mistaken and miss some untrusted sites?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VKl7x6Uw8jS6gdfqeQa6hw.png" /><figcaption>This is more like it.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*CXahQbjWCXp5Eg0-qcic_w.png" /><figcaption>Yeah, don’t trust this one too.. Likely a browser hijacker.</figcaption></figure><h4>Impact</h4><p>There are several impacts to your computer when execute malware(s), such as:</p><ul><li>Unresponsive system,</li><li>Higher resource consumption (%CPU, %RAM, etc)</li><li>Found malicious processes and executables if listed in Task Manager</li><li>Unknown network traffic</li><li>Altered system settings</li><li>Random ad pop-ups</li><li><em>Wait, what is safesearch.net in my browser? usually it says google.com?</em></li><li><a href="https://sensorstechforum.com/wp-content/uploads/2017/05/fake-cryptowall-wtdi-file-sensorstechforum-ransomware-ransom-wallpaper.gif"><em>Uh.. my wallpaper’s gone black and has red russian glyphs</em></a><em>.</em></li></ul><h3>Malware Analysis</h3><p>In digital forensics, there are two general approaches to conduct malware analysis. <strong>Static analysis </strong>is done by studying the source code from a decompiled malicious executable, or even conclude functions from the binary code itself. Static analysis does not run the code and obtain the source code by any means like reverse engineering or executable decompilation. <strong>Dynamic analysis </strong>is done by executing the malware itself and see how your computer get destroyed. Unlike it’s counterpart, it was more risky and does not require to reverse engineer the malware. Fortunately, we could isolate the attack inside a virtual machine or using helpful tools like any.run</p><p><a href="https://any.run/">ANY.RUN - Interactive Online Malware Sandbox</a></p><h4>ANY.RUN</h4><p>That web application can be used for monitoring the damage done by executing the malware. By signing up and authenticated as a free user, you could run a task inside windows 7 environment. There are two options:</p><ul><li>Browse URL using selected browser. Available browsers are Internet Explorer, Mozilla Firefox, Google Chrome, and Opera.</li><li>Upload a file, presumably suspected as a malware</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FQN_PHp13-DK_Fbedvw78g.png" /></figure><p>After you determine the malicious site or upload a malicious software (either zipped or standalone executable), run as a public task. Unfortunately, you only have up to five minutes of uptime to run a single task for a free user. Those five minutes are monitored and all activities are recorded and you can view those report after the task ran successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ja5V9bnxcJBl7Gpl8UQ3ow.png" /><figcaption>Seconds before disaster (isolated environment)</figcaption></figure><p>As a free any.run user, you are limited to the free plan features. That includes you cannot choose other operating system(s) other than windows 7 professional edition. Feel free to use any.run or use a virtual machine instead. Though, the latter option requires additional configuration.</p><h4>Case Study: Fantom Ransomware</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p0PeDAv8vXRrVtVz-jSUlg.png" /><figcaption>Suspicious.. a windows 8 or later screen on a windows 7 environment…</figcaption></figure><p>One case of a ransomware is Fantom. Fantom is a ransomware dated back from August 2016 which is a threat to Microsoft Windows platform. It is an Win32 PE executable which if you execute the program, the screen shows a windows update with text “Configuring critical windows updates”. It was a counterfeit windows 8 or later update screen. Underneath, the malware encrypts the files on that computer system while showing you the counterfeit update screen, leaving you with a parting shot after it <em>“finished the update”</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*btDJHe5hA-8Kc-Bh" /><figcaption>After Fantom encrypts, the computer displays this wallpaper</figcaption></figure><p>For this and subsequent runs, Fantom doesn’t finish encrypting every file inside the any.run instance, but all encryption attempts are recorded. The .fantom extension are added after the file has been successfully encrypted with combination of RSA-4096 and AES-256 (figures that took long enough to lock out your files).</p><h4>The windows update screen</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*jiPVeu42fMYzSljB_OQ8EA.png" /><figcaption>Process graph generated by any.run</figcaption></figure><p>Fantom will extract and execute WindowsUpdate.exe that displays the counterfeit windows update. That screen overlays all active windows and does not allow you to switch nor open other application, effectively locks you out. Though you could try to <strong>Ctrl+F4 </strong>or <strong>Alt+F4</strong> out of it according to <a href="https://bestsecuritysearch.com/remove-fantom-fantomd12yandex-ru-ransomware/">this article</a>, the encryption process still running as a background process.</p><h4>Disables Task Manager and other registry modifications</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*bsaARFDVDMT59uYUHL4j8w.png" /></figure><p>Another malicious behavior by Fantom is it disables the windows task manager. Additional reports from any.run shows that it disables by modifying the registry value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*hBb6mPvioodIBnuiV5BZtg.png" /><figcaption>Mitre ATT&amp;CK Matrix, Report generated by any.run shows that Fantom disables Task Manager.</figcaption></figure><h4>File Encryption and Other Behaviors</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*FzaUqq0vEdKF97WR1TLYHA.png" /><figcaption>Note the .fantom extension</figcaption></figure><p>As stated before, a background process encrypts your files with combination of RSA-4096 and AES-256. It generates an AES key, then encrypts it using RSA, and it shows that the key was sent to the malware command and control server.</p><p>There are several extensions for the encryption target by the malware. Then, it begin to scan local drives for files that contain matching extensions and encrypt them with AES encryption. Successful encryption leads to files having .fantom extension. Renaming it won’t restore your data as it is encrypted. After finishing encryption, the program also deletes shadow volume copies and fake windows update executable, unlocks you from the windows update screen and renders you unable to restore the system from a previous shadow volume snapshot.</p><h4>Ransom Note</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o4GPalEaMhfcGlX_Slgc3Q.png" /><figcaption>DECRYPT_YOUR_FILES.html</figcaption></figure><p>Fantom will create a ransom note (DECRYPT_YOUR_FILES.html). The ransom note will show you a contact to the attacker <em>customer service</em> which they will <em>“kindly”</em> help you decrypt the files by “<strong><em>paying their services”</em></strong>, in other words, money.</p><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*N9p4WvCAYY-7e3fSzDf76w.png" /></figure><p>The Fantom ransomware does the following actions during the dynamic analysis inside a free any.run instance:</p><ol><li>Fantom creates a fake windows update screen overlay, which locks the user to interact with the computer system.</li><li>Concurrently, fantom encrypts your files in the background while appends .fantom extension for all affected files. The encryption process takes a long time to finish, exploiting the fact that real windows update took a long time.</li><li>Disables task manager</li><li><a href="https://content.screencast.com/users/Gurudrag/folders/Default/media/9289aabe-7b4a-4c7f-b3bb-bdf3407e7a2f/fantom1.jpg">Changes your computer wallpaper</a></li><li>Leaving a ransom note as a DECRYPT_YOUR_FILES.html</li></ol><h3>References</h3><ul><li><a href="https://bestsecuritysearch.com/remove-fantom-fantomd12yandex-ru-ransomware/">https://bestsecuritysearch.com/remove-fantom-fantomd12yandex-ru-ransomware/</a></li><li><a href="https://ransomware.fandom.com/wiki/Fantom_Ransomware">https://ransomware.fandom.com/wiki/Fantom_Ransomware</a></li><li><a href="https://malwiki.org/index.php?title=Fantom">https://malwiki.org/index.php?title=Fantom</a></li><li><a href="https://www.youtube.com/watch?v=o6SH4ddRRGM">https://www.youtube.com/watch?v=o6SH4ddRRGM</a></li><li><a href="https://app.any.run/tasks/1259b54f-646c-4693-bf62-d648ee64911f/"><strong>any.run public report</strong></a></li></ul><h4>Source Code (use it wisely, credits to enderman)</h4><p><a href="https://github.com/Endermanch/MalwareDatabase/blob/master/ransomwares/Fantom.zip">https://github.com/Endermanch/MalwareDatabase/blob/master/ransomwares/Fantom.zip</a>, password for the zip are in the repository’s description. Find out by yourself! (As of 21 November 2021)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42c1017ac205" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Forensics Blog 05 — Linux Forensics Tools]]></title>
            <link>https://medium.com/@18218004/digital-forensics-blog-05-linux-forensics-tools-8f9ae4709425?source=rss-6337fb7e49b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f9ae4709425</guid>
            <dc:creator><![CDATA[Hardy Valenthio]]></dc:creator>
            <pubDate>Sun, 31 Oct 2021 10:18:06 GMT</pubDate>
            <atom:updated>2021-10-31T10:18:06.027Z</atom:updated>
            <content:encoded><![CDATA[<h3>Digital Forensics Blog 05 — Linux Forensics Tools</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g2lcdm2yvWr2-A9kQG_SFQ.png" /><figcaption>You felt like a linux geek just by using <strong>cmatrix</strong> or <strong>neofetch</strong> command</figcaption></figure><p>Linux is… a kernel, which is a computer program inside an operating system that <em>bridges</em> the hardwares and the softwares. I don’t really know what’s included inside a linux kernel because there are many linux-based operating systems (called distro) that includes their own software suite. Most of them are packed with pentesting and forensics tools like <strong>kali linux</strong>, others are focused towards ease of use and an alternative to windows like <strong>linux mint</strong> and <strong>ubuntu</strong>, and there are some distros that give broader options to advanced users like <strong>gentoo </strong>or <strong>arch linux</strong>.</p><p>Windows have their share on personal computer market. But when it comes to public server, linux-based OS are more common than windows. Imagine an incident that happened on the server out there that serves multitude of services. <a href="https://w3techs.com/technologies/overview/operating_system">Most likely the server run linux-based OS</a>. An investigator should have thorough knowledge about linux-based OS to inspect said incident.</p><h3>CLI Interface</h3><p>Nearly all linux-based OS only have command line interface. They usually don’t bother to install <a href="https://itsfoss.com/what-is-desktop-environment/">desktop environment</a> or even <a href="https://wiki.archlinux.org/title/window_manager">window manager</a> to provide graphical user interface. Instead, resources for running DE or WM are allocated to much more important applications fit for a server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*rrdhvQKs9ieptnhoR9zAuw.png" /><figcaption>Usual welcome message. Don’t bother about the color, i’m using the default gnome terminal bash</figcaption></figure><p>So yea, you may google yourself about the linux commands and how to navigate between directories.</p><p><a href="https://ubuntu.com/tutorials/command-line-for-beginners#1-overview">The Linux command line for beginners | Ubuntu</a></p><p>That’s all about the introduction. Now for the forensics part, i’m going to review some tools native from linux for helping investigators reviewing a linux-based OS.</p><h3>1. Top</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7d6wD-UY1fB-cOBS-o34SA.jpeg" /></figure><p><strong>Top</strong> (table of processes? i think someone made that up) is a commonly used task manager program for linux-based system. Like other task manager program, it helps investigators to monitor processes. Unlike the windows counterpart, you’re likely to stuck with the command line interface with no intuition to navigate and extract meaningful insights. So, make sure to run <strong>man top</strong> first before firing the actual application to inform yourself about how to effectively use top.</p><p><a href="https://www.unixtutorial.org/commands/top">top command in Linux</a></p><p>I will not cover all the top commands here or how to kill a task. But, here’s some keyboard shortcuts that might help you navigate top interface:</p><ul><li><strong>q </strong>or <strong>Ctrl + C </strong>or <strong>Ctrl + Z</strong> — Exit the program</li><li><strong>h</strong> or <strong>?</strong> — shows you the help page</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*GlYa1asmdKtJv8CPAjqlxg.png" /><figcaption>Help page inside the top application (press <strong>h</strong> or <strong>?</strong> to display this page)</figcaption></figure><p>After you fiddle with top CLI, you might find that top is a good application for monitoring and performing live forensics analysis. Clunky it is, but you may draw a timeline concerning a potential evidence from task manager data. You may use other linux CLI operators such as dump to file <strong>&gt;</strong> operator that pastes the output to a specified file. Here are the commands that would help you to log the top file:</p><p><strong><em>top -b -n5 &gt; top-log.txt</em></strong></p><p>Now, let’s dissect those commands:</p><ul><li><strong>-b</strong>: batch mode — used to start top in batch mode that could be useful for sending output from top to other commands.</li><li><strong>-n</strong>: how many iterations the command outputs, the following number 5 shows that the command iterates five times.</li><li><strong>&gt;</strong>: an operator that dumps the output from before to a file.</li></ul><p>There are some useful linux commands that goes well in conjuction to the command above:</p><ul><li>You may use <strong>grep </strong>command to specify a keyword which simplifies the output of a command. Use this in conjunction with the guard operator (|).</li><li>Yoy may also use <strong>-p</strong> flag on the top command to further specify the process with that PID. Use <strong>pidof </strong>&lt;process / service name&gt; to obtain the PID of a process / service.</li></ul><p>There are some CLI alternatives for top like <strong>htop</strong>, <strong>gtop</strong>, or <strong>vtop</strong>. But, not every linux-based system you’re inspecting have those installed.</p><h3>2. Systemd</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*r3dOJ8kdyTCvz_FG2Nt1dA.png" /><figcaption>A snapshot of docker service status under systemctl</figcaption></figure><p>Uh.. how do i put this correctly…</p><p><strong>Systemd</strong> is a software suite that provides system initialization and services manager. Many linux systems are adopting systemd. Inside of systemd, there are utilities such as:</p><ul><li><strong>Systemctl</strong>: control the systemd and service manager.</li><li><strong>Journalctl</strong>: query and parse the systemd journal (logs)</li><li><strong>Loginctl</strong>: control the systemd login manager.</li></ul><p>Systemctl is a bit odd and linux users may have mixed feeling for this suite. Usually, linux-based OS also includes commands under system V, namely the <strong>service </strong>command that manages a system V init script. So, service and systemctl for this article has similar use: to control system V init script or systemd unit, in other words: <strong>services</strong>.</p><p>You might manage services with systemctl / service sub commands like <strong>stop, start, pause, and resume</strong>. You can also manage startup applications like <strong>enable and disable</strong> for a certain service. Finally, you may use <strong>status </strong>subcommand for viewing the service status, triggered by which daemon, main PID, memory usage, tasks, and others.</p><p>Then, you may parse and construct forensics timeline by utilizing journalctl command. There are many flags for journalctl which you can see here:</p><p><a href="https://cheatography.com/airlove/cheat-sheets/journalctl/">Journalctl Cheat Sheet</a></p><p>Lastly, the loginctl could be used to show which users are logged into the live system. Alternatively, you might consider <strong>last</strong> command to check the login history of your system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/1*Ic3frjay9Ue9JxOQmyPhTw.png" /><figcaption><strong>loginctl</strong> shows you live session users,</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*OBaqm6abd3jiDMrNxOIr7g.png" /><figcaption><strong>last</strong> command is more detailed..</figcaption></figure><h3>3. Others: The Sleuth Kit and Autopsy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/1*oPlqOuOOV2jiYaT-lRTDuQ.png" /><figcaption>from the SleuthKitWiki</figcaption></figure><p>You might use other forensics tools that used for investigating a linux system. Kali Linux is one of the great OS for investigators, as it is packed with many pentesting and forensics software. But, i’m gonna review <a href="https://www.sleuthkit.org/sleuthkit/download.php"><strong>The Sleuth Kit</strong></a>, one of the third-party software that included in kali linux. As the documentation said:</p><blockquote>The original part of Sleuth Kit is a C library and collection of command line file and volume system forensic analysis <a href="https://www.sleuthkit.org/sleuthkit/tools.php">tools</a>. The file system tools allow you to examine file systems of a suspect computer in a non-intrusive fashion.</blockquote><p>It is a collection of commands. You might look up the list of commands and how to use it on the <a href="https://www.kali.org/tools/sleuthkit/">kali linux page</a> or the official sleuthkit wiki.</p><ul><li><a href="http://wiki.sleuthkit.org/index.php?title=Help_Documents">Help Documents</a></li><li><a href="https://www.kali.org/tools/sleuthkit/">sleuthkit | Kali Linux Tools</a></li></ul><p>You may use <a href="https://www.sleuthkit.org/autopsy/download.php">Autopsy</a> to provide GUI. The inclusion of autopsy software to run the sleuth kit utilities is up to the investigator’s preferences.</p><p>Many of the sleuthkit tools uses image as an input. Note that this image refers to the disk image. You might find the disk image path from the CLI like using commands like <strong>fdisk </strong>or <strong>ls -a /dev</strong>. Possible image paths are <strong>/dev/sda1</strong>, <strong>/dev/sr0</strong>, and <strong>/dev/ubuntu-vg/root</strong>.</p><h3>Afterwords</h3><p>This is messy.. i don’t have enough time to sort out those tools like an essay written by undergraduate student or even giving a nice conclusion about the tools for forensics purpose. That said, the linux system is worth learning because it serves arbitrary number of services using linux as the server operating system. Whatever incident happened on that server is up to the investigators to check, which they should be knowledgeable to the linux environment. They may leverage native tools for live monitoring given access to the device such as <strong>top, last, </strong>and <strong>systemd suite</strong>, then you may recover evidence using <strong>the sleuth kit. </strong>You can even use an operating system designed for digital forensics such as <strong>Kali Linux, Parrot, </strong>or <strong>forensics-all</strong> package from <strong>Debian.</strong></p><h3>More References:</h3><ul><li><a href="https://www.pentesteracademy.com/course?id=20">https://www.pentesteracademy.com/course?id=20</a></li><li><a href="https://wiki.sleuthkit.org/index.php?title=Main_Page">https://wiki.sleuthkit.org/index.php?title=Main_Page</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f9ae4709425" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Forensics Blog 04 — Windows Forensics Tools Part 4: Process Explorer]]></title>
            <link>https://medium.com/@18218004/digital-forensics-blog-04-windows-forensics-tools-part-4-process-explorer-e87cae58ff2a?source=rss-6337fb7e49b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e87cae58ff2a</guid>
            <dc:creator><![CDATA[Hardy Valenthio]]></dc:creator>
            <pubDate>Wed, 20 Oct 2021 09:36:52 GMT</pubDate>
            <atom:updated>2021-10-20T09:36:52.177Z</atom:updated>
            <content:encoded><![CDATA[<h3>Digital Forensics Blog 04 — Windows Forensics Tools Part 4: Process Explorer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*VjwoC-Q89EMeU15Iky1-1w.png" /></figure><p><strong>Process Monitor</strong> is one of many tools offered by Mark Russinovich from Sysinternals Suite. Process Explorer is an advanced process management utility that picks up where Task Manager leaves off. Process Monitor is best used for live forensic analysis, that is if you suspect an ongoing attack inside your currently running system. It will show you detailed information about a process including its icon, command-line, full image path, memory statistics, user account, security attributes, and more.</p><h3>Where to Download and How to Run</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jSklHdad3lWN_W2g0Kq3UA.png" /></figure><ul><li>You may download Windows Sysinternals Suite on the link below:</li></ul><p><a href="https://docs.microsoft.com/en-us/sysinternals/downloads/sysinternals-suite">Sysinternals Suite - Windows Sysinternals</a></p><ul><li>After you downloaded the file, unzip the file and extract anywhere you want. Then, launch the <strong>ProcExp(64) </strong>program</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*ya65Ss05FV5mnzqhdn-u4w.png" /><figcaption>Two Sub-windows of Process Explorer</figcaption></figure><p>The first time you open Process Explorer, you might noticed that you’re only get the top sub-window. You can configure to show the lower sub-window with the view → show lower pane option and view → lower pane view → DLL / Handles.</p><p>The Process Explorer display consists of two sub-windows. The top always shows a list of the currently active processes, including the names of their owning accounts, whereas the information displayed in the bottom window, which you can close, depends on the mode that Process Explorer is in: if it is in handle mode you will see the handles that the process selected in the top window has opened; if Process Explorer is in DLL mode you will see the DLLs and memory-mapped files that the process has loaded.</p><p>Process Explorer also has a powerful search capability that will quickly show you which processes have particular handles opened or DLLs loaded. The unique capabilities of Process Explorer make it useful for tracking down DLL-version problems or handle leaks, and provide insight into the way Windows and applications work.</p><h3>Process View</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*BL49QFVpOECcEMUJAPs7VA.png" /><figcaption>The process view, usually on the left — top side of the view</figcaption></figure><p>Process explorer sorts processes into the system process tree, which reflects the dependencies chain of processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/1*MjpMFWdOFbFXr3p5ftqFPA.png" /><figcaption>Target-like toolbar button</figcaption></figure><p>You can highlight the process that own a window visible on the desktop by dragging the target-like toolbar over the window, and then Process explorer will highlight the corresponding process</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*Ye5fOKdf0V5s2lgp4sMPNQ.png" /><figcaption>Default highlight color with context behind it</figcaption></figure><p>Speaking of highlight, you may find different colors highlighting a process. You can configure the highlighting color on Options → Configure Colors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*apuMkPsoaify9HCXwEZN4w.png" /><figcaption>Right-clicked the chrome.exe to become active</figcaption></figure><p>Then, you could <strong>right click on a process</strong> to show additional options. The options are:</p><ul><li><strong>Window</strong>: you can bring the selected process to the front of your desktop, restore it, minimize, or maximize.</li><li><strong>Set Priority</strong>: you can change the base priority of a process with this submenu. When you change the base priority of a process the system adjusts the priorities of threads within the process so that they remain at the same relative priority with respect to the new base priority.</li><li><strong>Set Affinity</strong>: on systems with multiple CPUs this menu item lets you bind the threads of a process to particular CPUs.</li><li><strong>Kill</strong>: this item terminates a process with the Terminate Process API. Note that a process terminated in this way is not warned of its termination and therefore does not write unsaved data it may have.</li><li><strong>Kill Process Tree</strong>: if the process pane is in the process tree sorting mode this menu item is available and allows you to kill a process and all of its descendants.</li><li><strong>Restart</strong>: when you select this item Process Explorer terminates the highlighted process and starts the same image using the same command-line arguments. Note that the new instance may fail to run or behave differently if the original process ran in a different user account or had a different environment.</li><li><strong>Suspend</strong>: if you want a process to become temporarily inactive, so that a system resource such as network, CPU or disk, becomes available for other processes, you can suspend the process. Suspended processes show in a dark grey color. To resume a suspended process chose the Resume item from the process context menu.</li><li><strong>Properties</strong>: this selection opens a property dialog that shows you more information about a process.</li><li><strong>Search Online</strong>: selecting this entry will result in Process Explorer launching the system’s configured Internet browser and initiating an Internet search for the selected process’ name.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*hkxc92HaoQTEe96Au4Iw_Q.png" /><figcaption>Example process properties of Chrome</figcaption></figure><p>The <strong>properties page </strong>of a process shows you a lot of information about a process. There are property categories that will group up the information related to the process by separate those into tabs. You might find more about the process properties on the Process Explorer help page.</p><h3>Monitoring and Forensics with Process Explorer</h3><p>Process Explorer can assist investigators to monitor the system and perform live forensics analysis.</p><ul><li><strong>Company Name and Verified Signer</strong>: Almost all windows processes (with exception of system processes) have a description, a company name, and even verified signer. The absence or mismatch of those entries should be suspected.</li><li><strong>Path</strong>: Every processes by default have the path from which process was launched. If the process path is from unlikely sources like path, you may suspect that process.</li><li><strong>Permissions</strong>: You may view a process permission table. Investigators may found unauthorized user using a resource related to the process.</li><li>You may check <a href="https://nasbench.medium.com/hunting-malware-with-windows-sysinternals-process-explorer-2baec974bec9">this article</a> for further insights</li></ul><h3>Conclusion</h3><p>Process Explorer, along with every other programs available on Sysinternal Suite is a valuable tools for performing monitoring and forensics analysis to a Windows system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e87cae58ff2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Forensics Blog 04 — Windows Forensics Tools Part 3: Event Viewer]]></title>
            <link>https://medium.com/@18218004/digital-forensics-blog-04-windows-forensics-tools-part-3-event-viewer-3d2373a1cd39?source=rss-6337fb7e49b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d2373a1cd39</guid>
            <dc:creator><![CDATA[Hardy Valenthio]]></dc:creator>
            <pubDate>Wed, 20 Oct 2021 09:36:42 GMT</pubDate>
            <atom:updated>2021-10-20T09:36:42.829Z</atom:updated>
            <content:encoded><![CDATA[<h3>Digital Forensics Blog 04 — Windows Forensics Tools Part 3: Event Viewer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CRX-wH0iNSpbO0UN3MQoNA.png" /></figure><p><strong>Event Viewer </strong>is a Windows program that lets users and administrators view the event logs on a local or remote system. It is a useful tool for troubleshooting and for investigators to gather evidence from logs and draw a timeline of events. This blog is based from <a href="https://medium.com/@lucideus/introduction-to-event-log-analysis-part-1-windows-forensics-manual-2018-b936a1a35d8a"><strong>Introduction to Event Log Analysis</strong></a><strong> </strong>series for the use cases of event viewer.</p><p>Event viewer shows arbitrary number of errors and warnings. Note that <strong>not every errors and warnings are worth investigating</strong>. Thus, you can pretty much ignore those errors and warnings that appear in the Event Viewer.</p><h3>How to launch (Windows 10)</h3><p>In the search bar, type “Event Viewer” into the search box. Then, you can run the application as a current user or as an administrator.</p><h3>Categories</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*jBfHfRCrA14g87143vCDQw.png" /><figcaption>Event Viewer Navigation Pane</figcaption></figure><p>In the application explorer interface on the left pane, there are Custom Views, Windows Logs, and Applications and Service Logs. While there are a lot of categories, there are three categories of concern under <strong>Windows Logs</strong></p><ul><li><strong>Application</strong>: the application log records events from an installed Windows program.</li><li><strong>System</strong>: the system log records events related to the operating system itself like drivers and hardware changes..</li><li><strong>Security</strong>: this log records events related to security, such as logging attempts and resource attempts. The security log is best used to detect and investigate unauthorized activities.</li></ul><h3>Event Viewer Panel and Properties</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yS_JvtTBvSDiq7xeoqaM7w.png" /></figure><p>In the event viewer panel, there are two windows. One is the event logs based on the category you’ve chosen in the left navigation pane, currently viewing system log for instance, and properties of the selected event, currently viewing Event 7040, Service Control Manager.</p><p>The <strong>event logs </strong>are represented with a table. The columns are Level, Date and Time, Source, Event ID, and Task Category. For each column, you can right click on it and sort or group events.</p><ul><li><strong>Level </strong>shows you the event severity. For example: information, warning, and error</li><li><strong>Date and Time </strong>shows you the timestamp of a certain event. I was uncertain whether it shows the time accurate to the system time or independent of the system time.</li><li><strong>Source</strong> shows you the source of the generated event log.</li><li><strong>Event ID </strong>discerns events one after the another.</li><li><strong>Task Category </strong>refers to the event context or maybe a logical event grouping which the event belongs to.</li></ul><p>The <strong>event details </strong>shows you the general information and detailed information about the specified log.</p><ul><li>The general tab gave the viewer information about the log name, source, event ID, severity level, user, OpCode, Log timestamp, task category, keywords, and which computer generates that event log. You can copy general information to the clipboard.</li><li>The details tab shows the more detailed log information that can be viewed as is or it’s XML view. You can also copy detailed information to the clipboard.</li></ul><h3>Event Viewer Common Usage in Forensics Context</h3><p>The windows event logs are stored in C:\Windows\System32\winevt\Logs on windows 10. The logs are stored in Binary XML format (.evt or .evtx) which is readable with log parser application. These logs are stored in the storage media and non-volatile. You can access windows log files even the system is powered off. You can change where the event logs are stored by modifyng windows registry location:</p><p><em>“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*CGwPaCXpfTXwGpL5rTTQlA.png" /></figure><h4>Windows and Anti-Malware Update Events</h4><p>Windows system record every detail of each update applied by the windows update service. The investigators could determine the security of the system is vulnerable or secure against particular security dangers during a specific time interval by looking if the particular security update is applied to the system.</p><h4>Remote Access Event Logs</h4><p>If your system has been accessed by an anonymous user remotely, the investigator may look up to the event logs. You may look the event log with ID 4648 about a logon attempt was made with explicit credentials</p><h3>Note to self and you</h3><ul><li>You should be suspicious if you found the log empty. It may become an evidence that someone cleared the log. The clearance itself may become an evidence for an incident.</li><li>Forging the individual log file is possible. Thus, you may check the integrity of the file.</li><li>You may use another event log parser applications like LogParser and Event Log Explorer. On Windows Operating System, Logs are saved in root location C:\Windows\System32\winevt\Logs in a binary format.</li><li>Event log directory differs between windows version. The location above are valid for Windows 10 and untested on previous versions of windows.</li><li>Event ID differs between windows version too. For instance, the log off Event ID for windows 10 is 4636 and may have different ID for windows 8 and below.</li><li>It is normal to have excessive amount of errors and warnings in your event viewer logs, even if your computer is working fine. <strong>Don’t get scammed because of it.</strong></li><li>Collect log on a single location, then backup regularly, i guess?</li></ul><p>I cannot find official list of the Log ID, source, and task category which i could refer to. But, i found some websites that compile those, such as:</p><ul><li><a href="https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/">https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/</a></li><li><a href="https://www.xplg.com/windows-server-security-events-list/">https://www.xplg.com/windows-server-security-events-list/</a></li><li><a href="http://www.chicagotech.net/wineventid.htm">http://www.chicagotech.net/wineventid.htm</a></li><li><a href="https://www.myeventlog.com/search/find">https://www.myeventlog.com/search/find</a></li><li><a href="http://jointinformation.blogspot.com/2010/12/event-id-list-error-codes-in-windows.html">http://jointinformation.blogspot.com/2010/12/event-id-list-error-codes-in-windows.html</a> (Windows 7 or lower)</li><li><a href="http://www.chicagotech.net/wineventid.htm">http://www.chicagotech.net/wineventid.htm</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d2373a1cd39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Forensics Blog 04 — Windows Forensics Tools Part 2: Net Command]]></title>
            <link>https://medium.com/@18218004/digital-forensics-blog-04-windows-forensics-tools-part-2-net-command-8e69e15374ba?source=rss-6337fb7e49b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e69e15374ba</guid>
            <dc:creator><![CDATA[Hardy Valenthio]]></dc:creator>
            <pubDate>Wed, 20 Oct 2021 09:36:32 GMT</pubDate>
            <atom:updated>2021-10-20T09:36:32.287Z</atom:updated>
            <content:encoded><![CDATA[<h3>Digital Forensics Blog 04 — Windows Forensics Tools Part 2: Net Command</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*bZIa7vnI7rhqtW5A6rLczg.png" /></figure><p>Net is a cmd command that you can use on Command Prompt or Windows Powershell. Net is used to manage and configure the operating system from the command line and primarily used to manage network resources. I suggest you to use Net command as an administrator to use the full functionality of it. This command is available for every windows operating system to manage networking settings of a windows system.</p><h3>How to use</h3><ol><li>Run Command Prompt or Windows Powershell, i recommend to run as administrator</li><li>Inside the command line interface (CLI), type net [commands]</li><li>To get further details of the net commands, type net help [command] | more</li></ol><h4>Syntax</h4><p>The following conventions are used to indicate command syntax:</p><ul><li><strong>Capital letters</strong> represent <strong>words that must be typed as shown</strong>. <strong>Lower-<br> case </strong>letters represent <strong>names of items that may vary, such as filenames</strong>.</li><li>The <strong>[ and ]</strong> characters surround <strong>optional items that can be supplied</strong><br> with the command.</li><li>The <strong>{ and }</strong> characters surround lists of items. <strong>You must supply </strong>one<br> of the items with the command.</li><li>The <strong>| </strong>character separates items in a list. <strong>Only one of the items </strong>can<br> be supplied with the command.<br>For example, in the following syntax, you must type <strong>NET COMMAND </strong>and<br>either <strong>SWITCH1 or SWITCH2</strong>. Supplying a <strong>name</strong> is <strong>optional</strong>.<br><strong>NET COMMAND [name] {SWITCH1 | SWITCH2}</strong></li><li>The <strong>[…] </strong>characters mean you can repeat the previous item. <strong>Separate items with spaces</strong>.</li><li>The <strong>[,…] </strong>characters mean you can repeat the previous item, but you <strong>must separate items with commas or semicolons</strong>, not spaces.</li><li>When typed at the command prompt, service names of two words or more <strong>must be enclosed in quotation marks</strong>. For example, NET START “COMPUTER BROWSER” starts the computer browser service.</li></ul><h4>Services</h4><p>These are list of services available for net command, including:</p><ul><li>BROWSER — The Browser service supports browsing computers on the network and being browsed by other “computers on the network.</li><li>DHCP CLIENT</li><li>EVENTLOG — starts the event logging service, which logs events on the local computer. This service must be started prior to using the Event Viewer to view the logged events.</li><li>FILE REPLICATION</li><li>NETLOGON — starts the Windows NetLogon service, which verifies logon requests and controls replication of the user accounts database.</li><li>PLUG AND PLAY</li><li>REMOTE ACCESS CONNECTION MANAGER</li><li>ROUTING AND REMOTE ACCESS</li><li>RPCSS</li><li>SCHEDULE — starts the Windows Schedule service. The Schedule service must be running to schedule events using the Scheduled Tasks folder or the AT command.</li><li>SERVER — starts the Windows Server service, which controls access to resources.</li><li>SPOOLER</li><li>TCP/IP NETBIOS HELPER</li><li>UPS — starts the Windows UPS service, which provides uninterrupted power service to your computer. The UPS service must be configured before starting.</li><li>WORKSTATION — starts the Windows Workstation service, which enables your computer to use shared resources on the network.</li></ul><h4>Names</h4><p>The following types of names are used with Windows:</p><ul><li><strong>Computername</strong> — A unique name that identifies a computer on the local-area network.</li><li><strong>Devicename </strong>— The name by which Windows identifies a disk resource<br>or printer. A disk resource is identified by a drive letter followed by a colon (for example, D:). A printer is identified by a port name followed by a colon (for example, LPT1:).</li><li><strong>Workgroup </strong>— A group of computers on the network. Each workgroup<br> has a unique name.</li><li><strong>Localgroup </strong>— A group of names in a Workgroup that are granted the<br> same rights.</li><li><strong>Domain </strong>— A group of Windows Servers, Windows Workstations and other computers on the network. A domain has a unique name. Usually, you must log on in a domain to gain access to the network. Domains are created and managed with Windows Server.</li><li><strong>Global group </strong>— A group of names in a domain that are granted the same rights.</li><li><strong>Filename </strong>— The name of a file. Under the file allocation table (FAT) file system, a filename can have as many as eight characters, followed by a period (.) and an extension of as many as three characters. Under NTFS and HPFS, a filename can have as many as 254 characters.</li><li><strong>Network path </strong>— A description of the location of a shared resource, consisting of a computer’s computername followed by the sharename of the resource. The computername is preceded by two backslashes, and the sharename is preceded by one backslash (for example, \\SERVER1\RESOURCE).</li><li><strong>Path </strong>— The location of a directory. A path can consist of a devicename and one or more directory names. A backslash (\) precedes each directory name (for example, C:\CUSTOMER\CORP\ACCT).</li><li><strong>Pathname </strong>— A path and a filename. The filename is preceded by a backslash (\) (for example, C:\CUSTOMER\CORP\REPORT.DOC).</li><li><strong>Sharename </strong>— A name that identifies a shared resource on a computer. A sharename is used with the computer’s computername to form a network path (as in \\SERVER\RESOURCE).</li><li><strong>Username </strong>— The name a person supplies when logging on at a computer.</li></ul><h4>Service Related Commands (Like a CLI Task Manager?)</h4><p>As the name suggests, those subcommands control the state of a service. The <strong>NET START [service]</strong> command is used to start a network service if provided with service name or list running network services.</p><p><strong>NET STOP service</strong> stops windows services which also cancels any network connections the service is using. Also, some services are dependent on others. Stopping one service may lead to stopping other dependent service(s).</p><p><strong>NET PAUSE</strong> <strong>service </strong>suspends a service and puts it on hold. You can activate paused service with <strong>NET CONTINUE service</strong>.</p><p>Then, you can use <strong>NET VIEW [\\computername [/CACHE] | [/ALL] | /DOMAIN[:domainname]] </strong>which displays a list of resources being shared on a computer. When used without options, it displays a list of computers in the current domain or network.</p><ul><li>If provided \\computername, you can view shared resources of a computer inside a network.</li><li>If provided /DOMAIN:domainname, you can view shared resources by domains in a LAN or under that domain name</li><li>If provided /CACHE, it displays the offline client caching settings for the resources on the specified computer</li><li>If provided /ALL, it displays all the shares including the $ shares.</li></ul><h4><strong>Networking Related Commands</strong></h4><p>There are several subcommands for networking related commands under net command.</p><p><strong>NET ACCOUNTS <br></strong>[/FORCELOGOFF:{minutes | NO} [/MINPWLEN:length] [/MAXPWAGE:{days | UNLIMITED}] [/MINPWAGE:days [/UNIQUEPW:number] [/DOMAIN]</p><p>NET ACCOUNTS updates the user accounts database and modifies password and logon requirements for all accounts. When used without options, NET ACCOUNTS displays the current settings for password, logon limitations, and domain information.</p><p>Two conditions are required in order for options used with NET ACCOUNTS to take effect:</p><ul><li>The password and logon requirements are only effective if user accounts have been set up (use User Manager or the NET USER command).</li><li>The NetLogon service must be running on all servers in the domain that verify logon. NetLogon is started automatically when Windows starts.</li><li>/FORCELOGOFF:{minutes | NO} Sets the number of minutes a user has before being forced to log off when the account expires or valid logon hours expire. NO, the default, prevents forced logoff.</li><li>/MINPWLEN:length Sets the minimum number of characters for<br> a password. The range is 0–14 characters; the default is 6 characters.</li><li>/MAXPWAGE:{days | UNLIMITED} Sets the maximum number of days that a password is valid. No limit is specified by using UNLIMITED. /MAXPWAGE can’t be less than /MINPWAGE. The range is 1–999; the default is to leave the value unchanged.</li><li>/MINPWAGE:days Sets the minimum number of days that must pass before a user can change a password. A value of 0 sets no minimum time. The range is 0–999; the default is 0 days. /MINPWAGE can’t be more than /MAXPWAGE.</li><li>/UNIQUEPW:number Requires that a user’s passwords be unique through the specified number of password changes. The maximum value is 24.</li><li>/DOMAIN Performs the operation on a domain controller of the current domain. Otherwise, the operation is performed on the local computer.</li></ul><p><strong>NET COMPUTER</strong><br>\\computername {/ADD | /DEL}</p><p>NET COMPUTER adds or deletes computers from a domain database. This command is available only on Windows NT Servers.</p><ul><li>\\computername Specifies the computer to add or delete from the domain.</li><li>/ADD Adds the specified computer to the domain.</li><li>/DEL Removes the specified computer from the domain.</li></ul><p><strong>NET CONFIG</strong><br>[SERVER | WORKSTATION]</p><p>NET CONFIG displays configuration information of the Workstation or Server service. When used without the SERVER or WORKSTATION switch, it displays a list of configurable services. To get help with configuring a service, type NET HELP CONFIG service.</p><ul><li>SERVER Displays information about the configuration of the Server service.</li><li>WORKSTATION Displays information about the configuration of the Workstation service.</li></ul><p><strong>NET FILE</strong><br>[id [/CLOSE]]</p><p>NET FILE closes a shared file and removes file locks. When used without options, it lists the open files on a server. The listing includes the identification number assigned to an open file, the pathname of the file, the username, and the number of locks on the file.</p><p>This command works only on computers running the Server service.</p><ul><li>id Is the identification number of the file.</li><li>/CLOSE Closes an open file and removes file locks. Type this command<br> from the server where the file is shared.</li></ul><p><strong>NET GROUP or NET LOCALGROUP<br></strong>[groupname [/COMMENT:”text”]] [/DOMAIN]<br> groupname {/ADD [/COMMENT:”text”] | /DELETE} [/DOMAIN]<br> groupname username […] {/ADD | /DELETE} [/DOMAIN]</p><p>NET GROUP adds, displays, or modifies <strong>global groups </strong>on servers. Used without parameters, it displays the groupnames on the server. NET LOCALGROUP modifies local groups on computers. When used without<br>options, it displays the <strong>local groups</strong> on the computer.</p><ul><li>groupname Is the name of the group to add, expand, or delete. Supply only a groupname to view a list of users in a group.</li><li>/COMMENT:”text” Adds a comment for a new or existing group. Enclose the text in quotation marks.</li><li>/DOMAIN Performs the operation on a domain controller of the current domain. Otherwise, the operation is performed on the local computer.</li><li>username[ …] Lists one or more usernames to add to or remove from a group. Separate multiple username entries with a space.</li><li>/ADD Adds a group, or adds a username to a group.</li><li>/DELETE Removes a group, or removes a username from a group.</li></ul><p><strong>NET SESSION</strong><br>[\\computername] [/DELETE] [/LIST]</p><p>NET SESSION lists or disconnects sessions between the computer and other computers on the network. When used without options, it displays information about all sessions with the computer of current focus.</p><p>This command works only on servers.</p><ul><li>\\computername Lists the session information for the named computer.</li><li>/DELETE Ends the session between the local computer and computername, and closes all open files on the computer for the session. If computername is omitted, all sessions are ended.</li><li>/LIST Displays information in a list rather than a table.</li></ul><p><strong>NET SHARE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*GT6ioKLnNNvfMDvCBKNPyw.png" /><figcaption>Available sharename modes.</figcaption></figure><p>NET SHARE makes a server’s resources available to network users.</p><p>When used without options, it lists information about all resources being<br>shared on the computer. For each resource, Windows reports the devicename(s) or pathname(s) and a descriptive comment associated with it.</p><p>sharename Is the network name of the shared resource. Type NET SHARE with a sharename only to display information about that share.</p><ul><li>drive:path Specifies the absolute path of the directory to be shared.</li><li>/GRANT:user,perm Creates the share with a security descriptor that gives the requested permissions to the specified user. This option may be used more than once to give share permissions to multiple users.</li><li>/USERS:number Sets the maximum number of users who can simultaneously access the shared resource.</li><li>/UNLIMITED Specifies an unlimited number of users can simultaneously access the shared resource</li><li>/REMARK:”text” Adds a descriptive comment about the resource. Enclose the text in quotation marks.</li><li>devicename Is one or more printers (LPT1: through LPT9:) shared by sharename.</li><li>/DELETE Stops sharing the resource.</li><li>/CACHE:Manual Enables manual client caching of programs and documents from this share</li><li>/CACHE:Documents Enables automatic caching of documents from this share</li><li>/CACHE:Programs Enables automatic caching of documents and programs from this share</li><li>/CACHE:BranchCache Manual caching of documents with BranchCache enabled from this share</li><li>/CACHE:None Disables caching from this share</li></ul><p><strong>NET STATISTICS</strong><br>[WORKSTATION]</p><p>NET STATISTICS displays the statistics log for the local Workstation service. Used without parameters, NET STATISTICS displays the services for which statistics are available. WORKSTATION Displays the Workstation service statistics.</p><p><strong>NET TIME</strong><br>[\\computername | /DOMAIN[:domainname] | /RTSDOMAIN[:domainname]] [/SET]</p><p>NET TIME synchronizes the computer’s clock with that of another computer or domain, or displays the time for a computer or domain. When used without options on a Windows Server domain, it displays the current date and time at the computer designated as the time server for the domain.</p><ul><li>\\computername Is the name of the computer you want to check or<br> synchronize with.</li><li>/DOMAIN[:domainname] Specifies to synchronize the time from the Primary Domain Controller of domainname.</li><li>/RTSDOMAIN[:domainname] Specifies to synchronize with a Reliable Time Server from domainname.</li><li>/SET Synchronizes the computer’s time with the time on the specified computer or domain.</li></ul><p><strong>NET USE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*tVsJinMZXEEhNie8nXfjNg.png" /><figcaption>Available sub-commands under NET USE</figcaption></figure><p>NET USE connects a computer to a shared resource or disconnects a computer from a shared resource. When used without options, it lists the computer’s connections.</p><ul><li>devicename Assigns a name to connect to the resource or specifies the device to be disconnected. There are two kinds of devicenames: disk drives (D: through Z:) and printers (LPT1: through LPT3:). Type an asterisk instead of a specific devicename to assign the next available devicename.</li><li>\\computername Is the name of the computer controlling the shared resource. If the computername contains blank characters, enclose the double backslash (\\) and the computername in quotation marks (“ “). The computername may be from 1 to 15 characters long.</li><li>\sharename Is the network name of the shared resource.</li><li>\volume Specifies a NetWare volume on the server. You must have Client Services for Netware (Windows Workstations) or Gateway Service for Netware (Windows Server) installed and running to connect to NetWare servers.</li><li>password Is the password needed to access the shared resource. * Produces a prompt for the password. The password is not displayed when you type it at the password prompt.</li><li>/USER Specifies a different username with which the connection is made. domainname Specifies another domain. If domain is omitted, the current logged on domain is used.</li><li>username Specifies the username with which to logon.</li><li>/SMARTCARD Specifies that the connection is to use credentials on a smart card.</li><li>/SAVECRED Specifies that the username and password are to be saved. This switch is ignored unless the command prompts for username and password.</li><li>/HOME Connects a user to their home directory.</li><li>/DELETE Cancels a network connection and removes the connection from the list of persistent connections.</li><li>/REQUIREINTEGRITY Requires a signed connection to the share. The operation will fail if the provider does not support signed connections.</li><li>/REQUIREPRIVACY Requires an encrypted connection to the share. The operation will fail if the provider does not support encrypted connections.</li><li>/PERSISTENT Controls the use of persistent network connections. The default is the setting used last.</li><li>YES Saves connections as they are made, and restores them at next logon.</li><li>NO Does not save the connection being made or subsequent connections; existing connections will be restored at next logon. Use the /DELETE switch to remove persistent connections.</li></ul><p><strong>NET USER</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*4MUQ-ayNbMH89pfFBq1Xvg.png" /><figcaption>Sub-commands available for NET USER</figcaption></figure><p>NET USER creates and modifies user accounts on computers. When used without switches, it lists the user accounts for the computer. The user account information is stored in the user accounts database.</p><ul><li>username Is the name of the user account to add, delete, modify, or view. The name of the user account can have as many as 20 characters.</li><li>password Assigns or changes a password for the user’s account. A password must satisfy the minimum length set with the /MINPWLEN option of the NET ACCOUNTS command. It can have as many as 14 characters. * Produces a prompt for the password. The password is not<br> displayed when you type it at a password prompt.</li><li>/DOMAIN Performs the operation on a domain controller of the current domain.</li><li>/ADD Adds a user account to the user accounts database.</li><li>/DELETE Removes a user account from the user accounts database.</li></ul><h3>Net Use Cases for Forensics?</h3><ul><li>You can use net command line for monitoring running services inside a network, and by extension controls it.</li><li>You can also use <strong>NET FILE</strong> command to see a list of files opened by remote connection sessions.</li><li>You can also list shared files using <strong>NET SHARE</strong></li><li>You can use NET commands to make a BAT file. You can also exploit this CLI nature of NET command to control a computer or system with your third-party application.</li><li><strong>NET SESSION </strong>lists logged user inside a system under a common network.</li><li><strong>NET USE</strong> could connect to a shared resource from a live computer across the network. Using this, you can access said resource by command line.</li><li>You can inspect server and workstation configuration on a specified network.</li></ul><h3>Conclusion</h3><p>Net is one of the numerous CLI command provided by windows. Though it may seems clunky and there are other GUI based app like Service.exe by windows to manage services, This net commands may be invoked programmatically by other custom-made application. This is one of the older command that are available on older, non-GUI systems. You can perform monitoring and collecting evidence if used correctly.</p><h3>Reference Links</h3><ul><li><a href="https://www.computerhope.com/nethlp.htm">MS-DOS and Windows command line net command</a></li><li><a href="https://www.lifewire.com/net-command-2618094#related-commands">How to Use the Net Commands in Windows</a></li><li><a href="https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/net-commands-on-operating-systems">Net Commands for Operating Systems - Windows Server</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e69e15374ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Forensics Blog 04 — Windows Forensics Tools Part 1: Task Manager]]></title>
            <link>https://medium.com/@18218004/digital-forensics-blog-04-windows-forensics-tools-part-1-task-manager-4ef792df5474?source=rss-6337fb7e49b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ef792df5474</guid>
            <dc:creator><![CDATA[Hardy Valenthio]]></dc:creator>
            <pubDate>Wed, 20 Oct 2021 09:36:23 GMT</pubDate>
            <atom:updated>2021-10-20T09:36:23.585Z</atom:updated>
            <content:encoded><![CDATA[<h3>Digital Forensics Blog 04 — Windows Forensics Tools Part 1: Task Manager</h3><p>Have you ever kill an unresponsive windows app using task manager? Have you gone through the frustration of your app going all gray and there’s a popup saying that app is not responding? When you click “close the program”, it just stubbornly hanging around and never die like a zombie?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/0*Rvu2bb6TCILkIjrR.png" /><figcaption>Kinda miss windows aero vibes</figcaption></figure><p>Well.. you can access your task manager by, but not limited to:</p><ul><li><strong>Ctrl + Shift + Esc</strong></li><li><strong>Ctrl + Alt + Delete, </strong>then click “task manager”</li><li>Hit the ⊞ (super key), then type “task manager”</li><li>Right-click your taskbar, then click “task manager”</li></ul><p>That said, <strong>Windows task manager </strong>is a <strong>system monitor program</strong> for windows used to provide information about the processes and applications running on a computer as well as informing the status of your computer. Task manager is used for live digital forensics, that is performing digital forensics activity while the system is running. Windows task manager is available in (almost?) every windows operating system.</p><h3>Features in Simple View</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*1RiEUKs2A-vc5J1LagCeLw.png" /><figcaption>Fewer details of Windows Task Manager</figcaption></figure><p>In the simple view mode, Task manager only provides you with a list of visible applications that are running on your system. If you right click on the one of the application listed, there are some core options like:</p><ul><li><strong>Switch to: </strong>focuses the system to the selected app and bring the app window to the front of your desktop.</li><li><strong>End task: </strong>kill the app or process</li><li><strong>Provide Feedback</strong>: opens the feedback hub application, then you can fill the feedback form. I think this option is available as of windows 10 build 2004, not sure if it exists in lower version of windows</li><li><strong>Run new task: </strong>opens the create new task window. You can type a specific executable path for run it on windows</li><li><strong>Always on top: </strong>lets the selected app always on top of your desktop for you to see it uninterrupted</li><li><strong>Open file location: </strong>opens file explorer window and shows the program executable file in it</li><li><strong>Search online: </strong>opens a browser (usually windows browser like edge or IE with bing, of course)</li><li><strong>Properties: </strong>opens properties window for the associated program which provides the type, size, timestamp, file attributes like hidden or read-only, security management, and other details of it.</li></ul><h3>Features in More Details</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*h5lE0seZiM-EQYxXDHXgMg.png" /></figure><p>When you click “more details” on a simplified task manager, the window appeared to be changed with more options. To begin with, there are three options on the top navigation bar:</p><ul><li><strong>File</strong>: there are two sub-options. <em>Run new task</em>, which opens the create new task window, and <em>Exit </em>the program.</li><li><strong>Options</strong>: Manages how task manager window is viewed. There are four sub-options for managing task manager view mode: <em>always on top</em>, <em>minimize on use</em>, <em>hide when minimized</em>, and <em>set default tab</em>.</li><li><strong>View</strong>: Manages how task manager content is viewed like toggle process grouping by type, expanding / collapsing processes under an application. You can also set update speed.</li></ul><h4>Processes Tab</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*0qohQrB3oMYUddp1RJxvhw.png" /></figure><p>In this tab, the task manager provides a list of running applications and background processes on the system. You can collapse the applications and background processes to show underlying related processes. On the list, you can see the CPU usage, Memory usage, Disk usage, and Network usage for the corresponding app / process and sum of those parameters on the top of the window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*qYvfrP2y1PtEeCjv1t4ePg.png" /></figure><p>You can also right click the app / process item on the list to show further options like:</p><ul><li><strong>expand / collapse </strong>underlying processes under that app / process</li><li><strong>end task</strong>,</li><li><strong>toggle resource value metrics </strong>that lets you choose value metrics by MB or percentage.</li><li><strong>create dump file </strong>that captures a snapshot of the program’s memory and saves it to the disk.</li><li><strong>go to details</strong> tab corresponding to that app / process item,</li><li><strong>open file location</strong></li><li><strong>search online</strong></li><li><strong>properties</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*2IL-8tytGYeRMqPVAPGPxA.png" /></figure><p>Optionally, you can sort values on a selected column by left-clicking the column itself. You can also right click on the column header tab to toggle which data you would want to view that corresponds to an app / process. The available columns are:</p><ul><li><strong>Type </strong>or the category of the process which is app, background process, or others</li><li><strong>Status</strong>: views the status of the app. It can be running, not responding, or suspended by windows to save power with green leaf indicator.</li><li><strong>Publisher</strong>: the name of the program’s publisher</li><li><strong>PID </strong>or process identifier number. It is used to specify which app / process is running if multiple apps / processes are running simultaneously.</li><li><strong>Process Name</strong>: the executable name for the process.</li><li><strong>Command Line</strong>: the full command line used to launch process. You can get PATH file to the executable. This also shows flags and options which were used for running that app / process.</li><li><strong>CPU</strong>: the CPU usage of the process displayed as a percentage.</li><li><strong>Memory</strong>: the memory usage of the process displayed as a percentage or MB.</li><li><strong>Disk</strong>: the disk usage of the process displayed as a percentage or MB/s</li><li><strong>Network</strong>: the network usage of the process displayed as a percentage or Mbps</li><li><strong>GPU</strong>: the GPU device and engine used by a process.</li><li><strong>GPU Engine</strong>: GPU device and engine used by a process. It is used to discern which engine are used if you have more than one GPU engine inside your computer.</li><li><strong>Power Usage</strong>: Estimate the power usage of an app / process.</li><li><strong>Power Usage Trend</strong>: Estimate the power usage over time of an app / process</li><li><strong>Resource Values</strong>: Lets you choose value metrics by MB or percentage. It applies for all items regardless which item you’ve clicked on.</li></ul><h4>Performance Tab</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*8XVkewYPLTdKNuzoHl7Zpg.png" /><figcaption>Oh god, 5 gigs of ram just for browser and teams?</figcaption></figure><p>In this tab, you can view the current performance of your computer by CPU, memory, disk, wi-fi, and GPU by a 60-second graph.</p><p>On the <strong>CPU </strong>pane, you can see what processor is used by your computer and the data analytics corresponding to your CPU such as utilization, speed, processes, threads, handles, uptime since boot, and other CPU specifications such as CPU base speed frequency, sockets, cores, logical processors, virtualization and hyper-v support for VM, and cache size from L1 to L3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*CByz705tI53uIBPIYyuGvw.png" /><figcaption>Right click the graph</figcaption></figure><p>The CPU graph shows the utilization percentage over 60 seconds. You can also <strong>change the view </strong>from default <strong>overall utilization </strong>to <strong>logical processors </strong>and <strong>NUMA nodes</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*xu9b02-F1_gAufeHM1rhCg.png" /><figcaption>Notice the darker blue area of the graph.</figcaption></figure><p>You can also <strong>toggle the kernel times </strong>which is represented by the darker area of the graph. Then, you can simplify the task manager window content by toggling the <strong>graph summary view </strong>option. Then, you can switch which graph you want to see by expanding the <strong>view </strong>option to other resource such as GPU and network.</p><p>Lastly, you can copy the CPU data to the clipboard which returns the text like this:</p><p><em>CPU</em></p><p><em>Intel(R) Core(TM) i7–4710HQ CPU @ 2.50GHz</em></p><p><em>Base speed: 2,50 GHz<br> Sockets: 1<br> Cores: 4<br> Logical processors: 8<br> Virtualization: Disabled<br> Hyper-V support: Yes<br> L1 cache: 256 KB<br> L2 cache: 1,0 MB<br> L3 cache: 6,0 MB</em></p><p><em>Utilization 2%<br> Speed 0,80 GHz<br> Up time 0:16:03:28<br> Processes 213<br> Threads 2276<br> Handles 88751</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*CtLQfP_dPFWf1ZheLosXGA.png" /></figure><p>If you select the <strong>Memory </strong>on the navigation pane, it shows you the memory usage graph, memory composition bar, and data that corresponds to your current memory / RAM. For memory pane, you can only select <strong>graph summary view</strong>, <strong>view</strong>, and <strong>copy </strong>by right-clicking on it with similar functions from the CPU pane. You can also <strong>hover your pointer </strong>to<strong> </strong>the memory usage graph or memory composition bar to show how much current memory in use and how much current standby memory of your RAM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*QGw3d1tL735SYPOJNZc6Mg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/211/1*cafexUXP3FrymzDUkIIWSQ.png" /></figure><p>This pane also shows you how many RAM slots your computer have and how many of those are left available so you can expand your laptop memory just in case. Just remember which RAM type that your processor could use and the memory size limit your processor can handle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*08GG4o6P-ds2CxGw0pBYsg.png" /></figure><p>On the <strong>disk </strong>pane, you can see the <strong>name of your storage media</strong>, <strong>active time graph</strong>, <strong>disk transfer rate graph</strong>, and the <strong>other associated data</strong>. The right-click options for disk pane are similar to the <strong>Memory pane. </strong>The active time graph shows you the percentage of the disk is processing read and write requests. The disk transfer rate graph shows you the speed of read and write activity of the disk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*myEUKUGwWMhzBadQ1b2W-A.png" /></figure><p>The <strong>wi-fi </strong>pane, or network, shows you the send and receive activity on that network. In this pane, you can see the <strong>name of your network adapter</strong>, <strong>network throughput graph, </strong>and the <strong>other associated data</strong>. The right-click option for the wi-fi pane is also similar to the CPU pane with an extra option: <strong>view network details </strong>which opens network details window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*_SNpnqSrd5L2i3yCViss4g.png" /></figure><p>The network details window shows you additional monitoring data to your current network state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*mwRJNU8PH4fMPOfSAos4yg.png" /></figure><p>Lastly, the <strong>GPU pane(s)</strong> shows you the graphical processor activity. It could be used to detect which GPU is currently used and their associated engines like 3D, copy, video decode, and video processing. Then, you can also see the GPU memory usage graph and also the drivers and DirectX version for the associated GPU.</p><p>In this tab, you can also launch <strong>Resource Monitor</strong> program which is used to monitoring the computer resource usage with greater details than the task manager.</p><h4>App History</h4><p>This tab is used for resource usage data collection to universal windows platform apps since the specified date for the current user account. So, the old desktop app resource usage is not monitored in this tab. You can also delete usage history in this tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*TIus7S3sBsgklIiYG_OrYw.png" /></figure><h4>Startup</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cf4oLCojOJPa2fkMvYiNPg.png" /></figure><p>The startup tab lists applications that could be started when the windows starts and lets you enable / disable those programs to launch on startup. Another option to manage the startup windows application is by navigating to Settings → Apps → Startup Interface.</p><h4>Users</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*rTsP_JwpDzSzNsrgeyvPWA.png" /></figure><p>Task manager also lets you monitor which apps and processes are used by logged users in your computer. It might be handy if your computer is connected by someone over the network. It shows you how many CPU, Memory, Disk, Network, and GPU usage per user. It also shows you the ID, Session, Client Name, Username, and Status of associated user. You can also disconnect certain user in this tab, switch user, and sign out.</p><h4>Details</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IdnBqIu-l-Q6A_Nsvafjkg.png" /></figure><p>The details tab is a more detailed process tab. It shows processes from all logged users and provides more information as a list of process items.</p><p>If your right click a process item, there are more options for you to manage those processes, such as:</p><ul><li><strong>End task</strong>: End the process. This is the same option found on the normal Processes tab.</li><li><strong>End process tree</strong>: End the process, and all the processes created by the process.</li><li><strong>Set priority</strong>: Set a priority for the process. Processes start at normal priority. Lower priority is ideal for background processes, and higher priority is ideal for desktop processes.</li><li><strong>Set affinity</strong>: Set the processor affinity. By default, processes run on all processors in your system. You can use this to limit a process to a particular processor.</li><li><strong>Analyze wait chain</strong>: This shows you which processes and threads are waiting to use a resource used by another process, and is a useful debugging tool for programmers to diagnose unresponsive app / process.</li><li><strong>UAC virtualization</strong>: Enable or disable User Account Control virtualization for a process. This feature fixes applications that require administrator access by virtualizing their access to system files, redirecting their file and registry access to other folders.</li><li><strong>Create dump file</strong>: Capture a snapshot of the program’s memory and save it to disk to debug and perform forensics later on.</li><li><strong>Open file location</strong>: Open a File Explorer window showing the executable file of a process.</li><li><strong>Search online</strong>: Search for the name of the process with a browser.</li><li><strong>Properties</strong>: View the properties window of the process.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZCvyDrKRXfirObnfsTIzIA.png" /><figcaption>Which svchost is which?</figcaption></figure><ul><li><strong>Go to service(s)</strong>: Show the services associated with the process on the Services tab. This is useful to determine which svchost executable is ran by which service.</li></ul><p>Then, you can also right-click the details column and.. oh boy it has a lot of columns to be shown. You should refer to this article for <a href="https://www.howtogeek.com/405806/windows-task-manager-the-complete-guide/">further insight</a></p><h4>Services</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jfvkwO0v4tM4kEIdR2o9mQ.png" /><figcaption>Windows services from the task manager and dedicated services window side-by-side</figcaption></figure><p>The <strong>services tab</strong> shows a list of system services on your windows system. Services tab lists all the services the system have. Many services have a process executable called svchost.exe process associated with them. The list also shows you the <strong>name </strong>of the service and associated <strong>PID</strong>, <strong>description</strong>, <strong>status</strong>, and their parent <strong>group</strong>.</p><h3>Windows Task Manager Features as a Taskbar Icon</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*VgKItCqbtUdhcO6aUkKnsw.png" /></figure><p>Windows task manager also popped up on the notification bar inside your taskbar. It summarizes how much CPU resource are used, memory, disk, and also network usage. You can also opt to always on top and close the task manager after right-clicking it.</p><h3>Conclusion</h3><p>Windows task manager has several functionalities, like:</p><ul><li>Killing <em>unresponsive </em>apps</li><li>Monitoring performance (CPU, memory, disk, network, GPU)</li><li>Viewing app history</li><li>Manage application on startup</li></ul><p>It is included with every windows operating system. But, the utilities it provide are not nearly as versatile as more powerful manager applications from the windows such as Resource Monitor and Process Monitor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*qc6g2oNNG0TkLz5FB1OPnA.png" /><figcaption>Uh oh</figcaption></figure><p><strong>The interesting thing about task manager is.. what if the task manager itself isn’t responding?</strong></p><p>For me, i usually kill it with another task manager instance or using other task manager-related program to kill it such as process monitor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*5UZTWWky8VpvLBFT8sNC-g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ef792df5474" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Forensics Blog 03 — Image Forensics, First Time Detecting Image Tampering]]></title>
            <link>https://medium.com/@18218004/digital-forensics-blog-03-image-forensics-first-time-detecting-image-tampering-b531707563fe?source=rss-6337fb7e49b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b531707563fe</guid>
            <dc:creator><![CDATA[Hardy Valenthio]]></dc:creator>
            <pubDate>Sun, 03 Oct 2021 12:21:10 GMT</pubDate>
            <atom:updated>2021-10-03T12:21:10.321Z</atom:updated>
            <content:encoded><![CDATA[<h3>Digital Forensics Blog 03 — Image Forensics, First Time Detecting Image Tampering</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7sWWbu3UW126oBWtgurNA.jpeg" /><figcaption>I’m beat</figcaption></figure><p>This is my third blog for attending Digital Forensics lecture. In the sixth week, the lecturer gave me a task about how to detect image tampering. One should have sufficient knowledge about how the image data is digitally encoded and saved within a storage media to intuitively know that the image has been tampered or not.</p><p>A tampered image could have hidden messages. The practice to hide a message within a seemingly innocent image is called steganography. But not all image within various forensic cases contain obscure information. We could collect hints of tampering attempts because they are reflected on the tempered image very representation, such as metadata and hexadecimal values.</p><h3>A. Digital Image Forensics Apps</h3><p>There are digital image forensics applications that can help investigator to analyze and extract information from the tampered image evidence. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nx0XObUmmJJBS-l0UnlyVg.png" /><figcaption>A Gist of Forensically Web App</figcaption></figure><p><a href="https://29a.ch/photo-forensics/#help"><strong>Forensically</strong></a>: A web application for digital image forensics. It has several common image forensics tools such as clone detection, error level analysis, noise analysis, and much more. For investigators that want to quickly analyze an image without additional installation to your computer, use this web app. Note for Principle Component Analysis tool, because of the single-threaded nature of web browsers, it might crash and needs to be reloaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*63UPsEzmqNVQnq2OnkZUBg.png" /><figcaption>Preview of Sherloq App</figcaption></figure><p><a href="https://github.com/GuidoBartoli/sherloq"><strong>Sherloq</strong></a>: A python-based digital image forensics desktop app using qt as GUI. It has more features than forensically and delivers better user experience than its web counterpart. You may need to install python and related packages to run this app. It has more advanced image forensics tools such as Copy-Move Forgery, Composite Splicing, and others, but you can only inspect one image at a time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mk_h_ilrYCMbbqe6MqUSLw.png" /><figcaption>Forensics Summary of an image by <a href="http://www.imageforensic.org/">imageforensic.org</a></figcaption></figure><p><a href="https://www.getghiro.org/"><strong>Ghiro</strong></a>: Another web-based digital image forensics app that analyzes suspected image and reports the findings out of the box. It is simpler to use than the other two applications above. You can setup and run Ghiro locally with HTML server, or run it above <a href="https://github.com/Ghirensics/ghiro-docker">docker</a>, or try it <a href="http://www.imageforensic.org/#home">online</a>.</p><h3>B. Digital Image Forensics Techniques for Analysis</h3><p>Each apps above bundles various forensics tools and techniques. In this section, i would like to uncover some of the techniques used for analyzing the image.</p><h4>Metadata Analysis</h4><p>Metadata allow investigators to extract history of an image, like how it was tampered, what kind of software to tamper, when it was last modified, and perhaps, if thumbnail image is a metadata, is it different than the actual data itself or not.</p><p>Because an image uses a standard format like EXIF (Exchangeable Image File Format), it has standard metadata entries that could be analyzed and detect an anomaly if one of the entry is outside the boundary of standard values.</p><h4>Thumbnail Analysis</h4><p>A preview, smaller version of the original image from the thumbnail could be used as an evidence that the suspected image was tampered. If the image from the thumbnail and the suspected image are different, then it was likely to be tampered by any sort.</p><h4><strong>Hex Dump Analysis</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T3m1qyDRCUOnlzvWKmfOaA.png" /></figure><p>The hex dump of an image could show hidden messages and files inside an image. For each digital file extension out there, it always have an corresponding header. You can see the list of hex file headers <a href="https://bitvijays.github.io/LFC-Forensics.html">here</a>. You can even slip another file nested inside a file. It’s a filexception.</p><p>You might want to familiarize yourself with the hex data structure of a given digital file. Any anomalies such as mismatch offset value of a hex could be discovered using this analysis. For more information about embedding hidden file inside an image as a steganographic practice, i suggest you to read <a href="https://blog.nviso.eu/2020/07/13/how-to-embed-secret-data-in-jpeg-files/">this post</a>.</p><h4>Error-Level Analysis</h4><p>A technique used for detecting whether an compressed image is edited or not. It identifies areas within an image that are at different compression levels. For JPEG image, the picture should be at roughly the same level. If a section of the image is at a different error level, the image may be modified.</p><p>This method highlights any differences in the compression rate. Areas with the same color will have darker tone than high-contrast edges.</p><p>There were several key points to look out:</p><ul><li><strong>Surface</strong>: All flat surface should have same color under ELA</li><li><strong>Texture</strong>: Similar textures should have similar color pattern under ELA. More detail the texture, more defined the ELA noise will be</li><li><strong>Edge</strong>: Similar edges should have similar brightness under ELA. With an original photo, low-contrast edges should be almost as bright as high-contrast edges.</li></ul><p>I follow the steps from this <a href="http://fotoforensics.com/tutorial-ela.php">blog</a>, but it seems my eyes are not good for forensics.</p><h4>More Advanced Techniques that i couldn’t understand yet</h4><p>Forgive me, there are many techniques out there that could enhance a conclusion of a forensics case. Such techniques are:</p><ul><li><strong>Copy-move forgery</strong>— basically copying one area within an image and pasting it onto another. The tool for detecting this type forgery is available on Sherloq and Forensically‘s clone detection feature.</li><li><strong>Copy-create forgery / Composition </strong>— from Peterson’s article, it said that this form of forgery takes one or more images and copying and as pasting it from various areas within to form a forged image.</li><li>Detecting JPEG Image Forgeries by HSV, Luminance, Filtering Mask, Compression, Etc.</li></ul><p>The article (?)“<a href="http://www.hackerfactor.com/papers/bh-usa-07-krawetz-wp.pdf">A Picture’s Worth</a>” by Neal Krawetz also further demystifies some of the forensic techniques above. You may also want to read Peterson’s <a href="https://link.springer.com/content/pdf/10.1007%2F0-387-31163-7_21.pdf">Forensic Analysis of Digital Image Tampering</a> and Fridritch, et al. <a href="http://www.ws.binghamton.edu/fridrich/Research/copymove.pdf">Detection of Copy-Move Forgery in Digital Images</a></p><h3>C. Hands-on Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qjRjjsrATD0tFk59ZH9T1g.jpeg" /><figcaption>Sample image to be analyzed.</figcaption></figure><p>Okay, so i’ve got an image to analyze. I was told that this image was tampered. I would share the image <a href="https://drive.google.com/drive/folders/1dGYnrRV5hjqoDiEZxdVZ58z50s1w3ojN?usp=sharing">here</a> (google drive).</p><p>So, here’s what i found using techniques above:</p><h4>Metadata Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*7qYnWy-Zn19aCu-3rBKU4A.png" /></figure><p>The JPEG image dimesions are [2475, 2475] using JFIF standard 1.01 and said to be last saved / modified using GIMP 2.10.20 at September 14th, 2020. I couldn’t say more other than last modification date and last software used to generate this image.</p><h4>Thumbnail Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/205/1*yGT1-wtRW0O8YuV9tXH1kQ.png" /><figcaption>The extracted thumbnail using <a href="http://www.imageforensic.org/">imageforensic.org</a></figcaption></figure><p>The thumbnail and the original image file are similar at a first glance. Turns out the image and the thumbnail are same. Now i’m kinda puzzled.</p><h4>Hex Dump Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*IdJCEzXG5FysaB7aQSka4Q.png" /><figcaption>Screenshot of the suspected image hex dump</figcaption></figure><p>To get a hex dump, you might want to use the Sherloq hex editor / header structure tool or Forensically’s string extraction. I personally use <a href="https://hexed.it/">hexedit</a> web app or using <a href="https://linuxhint.com/how-to-use-hexdump-command-in-linux/">hexdump</a> command.</p><p>At first, i thought the “222222…” is suspicious. But it turns out other JPEG files has similiar repeating sequence of that byte too.. so it is not likely a hidden message…</p><p>Then, i just remembered that <strong>ff d8 ff e0 </strong>corresponds to a JPEG header. I found out there are two of <strong>ff d8 ff e0</strong> byte orders, one at the 0x0 and the other at 0x124. Turns out it was a thumbnail data. bummer.</p><p>And i do a little bit of binwalk the file and.. nothing interesting.. The <a href="https://drive.google.com/file/d/1C00ROfaKnCE_rTR7yWehXZ4dl1J66dwG/view?usp=sharing">header analysis</a> of the image also shows that there were no nested file inside the suspected image.</p><h4>Error-Level Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/0*RaTdiNb7Jcukeu6z.gif" /><figcaption>Using Sherloq’s ELA tool on the suspected image.</figcaption></figure><p>Using the standard settings of Error Level Analysis tool by Sherloq and forensically, i could conclude this analysis with the cues below:</p><ul><li><strong>Surface<br><em>Cue</em></strong>: All flat surface should have same color under ELA.<br><strong><em>Fact</em></strong>: I could only see the sky has the flat color. Turns out it wasn’t really flat. It has the ring thingy like a sunshine ring so the modification done to the image is removing the sun and make the sky color uniform.</li><li><strong>Texture</strong> <br><strong><em>Cue</em></strong>: Similar textures should have similar color pattern under ELA. More detail the texture, more defined the ELA noise will be.<br><strong><em>Fact</em></strong>: The texture of the vegetation, building, and the tower are similar.. only the sky is different.</li><li><strong>Edge</strong>:<br><strong><em>Cue</em></strong>: Similar edges should have similar brightness under ELA. With an original photo, low-contrast edges should be almost as bright as high-contrast edges. <br><strong>Fact</strong>: The edges were similar..</li></ul><h3>Conclusion</h3><p>I could only say that this image was tempered using GIMP which flatten out the sky color and save it. It was done like.. a year ago?</p><p>There were many other image forensic analysis and techniques that i couldn’t cover yet. Maybe my colleagues find another interesting findings?</p><p>If you have other findings, please let me know.</p><h3>References</h3><ul><li><a href="https://link.springer.com/content/pdf/10.1007%2F0-387-31163-7_21.pdf">https://link.springer.com/content/pdf/10.1007%2F0-387-31163-7_21.pdf</a></li><li><a href="https://github.com/GuidoBartoli/sherloq">https://github.com/GuidoBartoli/sherloq</a></li><li><a href="https://www.file-recovery.com/jpg-signature-format.htm">https://www.file-recovery.com/jpg-signature-format.htm</a></li><li><a href="https://bitvijays.github.io/LFC-Forensics.html">https://bitvijays.github.io/LFC-Forensics.html</a></li><li><a href="https://blog.nviso.eu/2020/07/13/how-to-embed-secret-data-in-jpeg-files/">https://blog.nviso.eu/2020/07/13/how-to-embed-secret-data-in-jpeg-files/</a></li><li><a href="https://www.exif.org/Exif2-2.PDF">https://www.exif.org/Exif2-2.PDF</a></li><li><a href="http://fotoforensics.com/tutorial-ela.php">http://fotoforensics.com/tutorial-ela.php</a></li><li><a href="http://www.ws.binghamton.edu/fridrich/Research/copymove.pdf">http://www.ws.binghamton.edu/fridrich/Research/copymove.pdf</a></li><li><a href="http://www.hackerfactor.com/papers/bh-usa-07-krawetz-wp.pdf">http://www.hackerfactor.com/papers/bh-usa-07-krawetz-wp.pdf</a></li><li><a href="https://linuxhint.com/how-to-use-hexdump-command-in-linux/">https://linuxhint.com/how-to-use-hexdump-command-in-linux/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b531707563fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Forensics Blog 02 — First Time Analyzing: Damn Vulnerable Web App]]></title>
            <link>https://medium.com/@18218004/digital-forensics-blog-02-first-time-analyzing-damn-vulnerable-web-app-87ee7a045c33?source=rss-6337fb7e49b------2</link>
            <guid isPermaLink="false">https://medium.com/p/87ee7a045c33</guid>
            <dc:creator><![CDATA[Hardy Valenthio]]></dc:creator>
            <pubDate>Sun, 26 Sep 2021 18:14:58 GMT</pubDate>
            <atom:updated>2021-09-27T02:31:47.360Z</atom:updated>
            <content:encoded><![CDATA[<h3>Digital Forensics Blog 02 — First Time Analyzing: Damn Vulnerable Web App</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLUstP-sq8VoKYUePBLVfw.jpeg" /><figcaption>Download here: <a href="https://dvwa.co.uk/">https://dvwa.co.uk/</a></figcaption></figure><h3>A. Introduction</h3><p>First things first.. Got another assignment about web application vulnerabilities 101 and their testing playground. One of such app is Damn Vulnerable Web App (<a href="https://dvwa.co.uk/">DVWA</a>). This thing is chosen as my test subject for analyzing an web app, their vulnerabilities, and how to mitigate those attacks.</p><h4>What is DVWA?</h4><p>A PHP/MySQL based application to aid IT Security guys to test their skills and tools in a legal environment. It also helps web developers to secure their web app better.</p><h4>Run with Docker, A Painful Approach</h4><p>One of my colleagues said that using <a href="https://github.com/cytopia/docker-dvwa">docker-dvwa</a> by cytopia might save up my hassles. So i took the opportunity and oh boy it’s not as simple as docker-compose up right away.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yLCTlH6WPUGCWIqN3G9V3w.png" /><figcaption>Figure 1: dvwa front page done correctly</figcaption></figure><p>To begin with, it uses makefile so yea..</p><ol><li>Make sure you’ve installed VSCode, MySQL DB client / viewer, and docker.</li><li>Clone the <a href="https://github.com/cytopia/docker-dvwa">repository</a></li><li>Go to the cloned folder (docker-dvwa), execute <strong>make start</strong> command</li><li>Open up your browser, go to <a href="http://localhost:8000/">http://localhost:8000</a></li><li>Press the login button, you don’t have to fill the login and password field on the first try.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*cDvR2B7pAgcVdUtHdLO7KQ.png" /><figcaption>Figure 2: Click the Create / Reset Database Button</figcaption></figure><p>After you logged in, navigate to Setup / Reset DB, then click the Create / Reset Database. That button will kick you out and requires you to re-log in. Fill it out with username: admin and password: password.</p><p><strong>My first obstacle</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z-25Q0BS7X05Rnw7Rzflvg.png" /><figcaption>Figure 3: The users table.</figcaption></figure><p>Well.. i wanted to see the SQL content for myself. I’m using DBeaver Community Edition to see the databases and tables they’re holding up and VSCode to help me view the docker log. Then i discovered that to connect to their mysql, they haven’t specified the port they’re forwarding, so i configure the docker-compose.yml file to include the following line:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*im9vWduyeHCCRGAiHifS1A.png" /><figcaption>Figure 4: The main docker-compose file. Password and username are intentionally revealed</figcaption></figure><p>I also got the MySQL credentials from the docker-compose.yml file. So, in order to connect the database, i’m using DBeaver with disabling SSL and SSH since it was done locally</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*JmnqlUg53KJpVmi72xIVbQ.png" /><figcaption>Figure 5: DVWA MySQL Docker Connection Settings</figcaption></figure><p>So yea, that’s all about the setup. If the MySQL database has no table, you should generate it first by following the instruction above (see Figure 2). If you hit an error that states that address / port was already in use while executing make start, change the port forwarding on the docker-compose.yml (e.g. change 3306:3306 to 3307:3306, then change the port accordingly on the DBeaver).</p><h3>B. Testing SQL Injection</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*ZltLcvBBhq6njIY2HHScxA.png" /><figcaption>Figure 6: DVWA SQL Injection Page</figcaption></figure><p>Head to the SQL Injection page as shown on Figure 6. For the entry level guy who wants to test like me, make sure that the DVWA security level is <strong>low</strong>. Now you can use every basic SQL Injection codes that you’ve found on internet to that form, such as:</p><ul><li>Always True 1&#39; or ‘1</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*EmW4ApcFLXQrdYcBTy1pig.png" /><figcaption>Figure 7A: Always True</figcaption></figure><ul><li><a href="https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html">MySQL System Variables</a>, such as ‘@@hostname’ and ‘@@version’</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*o1AzuuR4VDNgIBrry7CFQw.png" /><figcaption>Figure 7B, check MySQL version. Note that we’re using # for commenting the rest of the query.</figcaption></figure><ul><li>Discovering databases table names, users, and columns of a certain database (still works on version 5.6.51):</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*n3KhB9SwRkiiHeHbgrSO4w.png" /><figcaption>Figure 7C: List MySQL databases / schemata. There’s only 2 databases inside.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*LZ4VvwU32L73Gi_iVM6Kdw.png" /><figcaption>Figure 7D: List MySQL Tables from ‘dvwa’ schema.</figcaption></figure><ul><li>Get arbitrary number of columns within a table using built-in string concatenation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*JfoRu6kDycD-z6aJ9dqa-Q.png" /><figcaption>Figure 7E: Getting column names of table users.</figcaption></figure><ul><li>Lastly, the juicy part is you could get password hashes from the user table.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*GfPx5bUKsRMORJrNM6YPSQ.png" /><figcaption>Figure 7F: Getting username and password by SQL Injection.</figcaption></figure><p>With the credentials revealed and the fact that this web app is implemented with PHP. The stored passwords are most likely hashed by using MD5. To be certain of our guess, i use hash identifier webs such as <a href="https://hashes.com/en/tools/hash_identifier"><strong>this web</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wmEmlViPtShsG0vUEpllIg.png" /><figcaption>Figure 8: The cipher text is possibly hashed using MD5 algorithm</figcaption></figure><p>Okay, so we’re kinda certain that it uses MD5 algorithm. Now, we could check the deciphered string from the cipher text. You can also use hashes.com to decipher the MD5 hash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ntbrYadULnvkIuGfcDxfdQ.png" /><figcaption>Figure 9: The deciphered text was “password”</figcaption></figure><h3>C. How to Mitigate SQL Injection Attacks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*DK0mwnoU5Pzl6qjK-UwwOA.png" /><figcaption>Figure 10: The source code for low-vulnerability SQL Injection</figcaption></figure><p>Let’s take a look into the source code by pressing the view source button on the bottom-right side of the dvwa SQL injection page. There was no token, no sanitation / string escaper, and directly connect to database layer of the application without any pre-processing. This kind of approach results are very easy to implement and only be used for prototyping. You don’t want this loosely implemented secure app to be deployed as a service. There are some measures to mitigate these attacks such as:</p><ul><li><strong>Parameterized Statement </strong>and<strong> ORM</strong>— You may adopt a framework like Object-Relational Mapping approach that usually uses parameterized statement from under the hood.</li><li><strong>Escaping Inputs</strong> and <strong>Form Sanitize</strong>— Sanitize your form input by making sure that either in the front end or the back end of your website to handle special and hex characters that are commonly used for SQL Injection attack.</li><li><strong>Using CSRF Token</strong></li><li><strong>Middleware Processing</strong> Customizing your application architecture that introduces a middle layer to process every user input before querying the database programmatically.</li></ul><h3><strong>References</strong>:</h3><ul><li><a href="https://www.youtube.com/watch?v=5bj1pFmyyBA">https://www.youtube.com/watch?v=5bj1pFmyyBA</a></li><li><a href="https://www.golinuxcloud.com/dvwa-sql-injection/">https://www.golinuxcloud.com/dvwa-sql-injection/</a></li><li><a href="https://pentestlab.blog/2012/09/18/sql-injection-exploitation-dvwa/">https://pentestlab.blog/2012/09/18/sql-injection-exploitation-dvwa/</a></li><li><a href="https://www.hacksplaining.com/prevention/sql-injection">https://www.hacksplaining.com/prevention/sql-injection</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87ee7a045c33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Forensics Blog 01 — Anti-Computer Forensics Technique: Artifact Wiping]]></title>
            <link>https://medium.com/@18218004/digital-forensics-blog-01-anti-computer-forensics-technique-artifact-wiping-bfcf8ed25a75?source=rss-6337fb7e49b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfcf8ed25a75</guid>
            <dc:creator><![CDATA[Hardy Valenthio]]></dc:creator>
            <pubDate>Sun, 19 Sep 2021 13:45:29 GMT</pubDate>
            <atom:updated>2021-09-19T13:45:29.080Z</atom:updated>
            <content:encoded><![CDATA[<h3>Digital Forensics Blog 01 — Anti-Computer Forensics Technique: Artifact Wiping</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bCqloAxqB8y5WbXD2m_uGw.jpeg" /><figcaption>I’m back</figcaption></figure><p>This is the start of the Digital Forensics Blog Series. Got an assignment about picking and analyze one of the anti-computer forensics techniques.</p><p>Various researchers then collaborates to define anti-computer forensics, classify, mitigate, and generating conclusions for this field. <a href="https://digitalcommons.newhaven.edu/cgi/viewcontent.cgi?article=1054&amp;context=electricalcomputerengineering-facpubs">Conlan et al (2016) paper of Anti-Computer Forensics</a> summarizes anti-forensic tools by creating a taxonomy which extends from Roger’s version (2006) and previous works about anti-computer forensics.</p><p>There are arbitrary ways to do anti-computer forensics scheme. One of the techniques that caught my attention is artifact wiping. A forensic artifact is not limited to digital data, but also encompasses physical data that related to the system that computer forensic makes it’s investigation subject. The data that are subjected to artifact wiping are, but not limited to: <em>files, disks, logs, and metadata</em>.</p><h3>Artifact Wiping Goals</h3><p>The goal of artifact wiping is to permanently erase certain file or entire file systems. Types of artifact wiping based from the extended taxonomy are:</p><ul><li>Disk cleaning utilities / disk wiping (Roger, 2006)</li><li>File wiping (Roger, 2006)</li><li>Disk degaussing / destruction techniques (Roger, 2006)</li><li>Removable disk wiping (Conlan et al., 2016)</li><li>Generic data wiping (Conlan et al., 2016)</li><li>Log wiping (Conlan et al., 2016)</li><li>Metadata wiping (Conlan et al., 2016)</li><li>Registry wiping (Conlan et al., 2016)</li></ul><h4>Disk Wiping</h4><p>Disk wiping utilizes a variety of methods to erase the existing data on non-removable disk until the wiped data is no longer recoverable <strong>while leaving the disk operable</strong>. One of the popular tools of disk wiping is Darik’s Boot and Nuke (<a href="http://www.dban.org/">DBAN</a>) and <a href="https://www.blancco.com/products/drive-eraser/">Blancco Drive Eraser</a>. The tool overwrites the data inside the disk with <em>psuedorandom numbers</em>. Other subcategories of disk wiping includes <strong>removable disk wiping</strong> which erase the existing data on removable disk.</p><h4>File Wiping</h4><p>File wiping method are used to <strong>delete specific files and renders it <em>irrecoverable</em></strong> from a computer system. This method generally faster than disk wiping and leave smaller signature than disk wiping. But, this method requires user involvement. This method goes beyond the conventional file deletion feature from your OS which still have residual representation of data even you have permanently delete that data. Examples of file wiping tools such as <a href="https://en.wikipedia.org/wiki/Shred_(Unix)"><em>shred</em></a> command from <em>unix</em> and <a href="http://www.summitcn.com/hdscrub.html">hard disk scrubber</a>.</p><h4>Disk Degaussing / Destruction</h4><p>Disk destruction techniques destroys the disk media physically. One of the disk destruction techniques is disk degaussing. Degaussing a disk is a process which a <strong>magnetic field is applied to digital media device </strong>to ensure the data is wipe.d. Another disk destruction methods such as disintegration, incineration, shredding, and melting.</p><h4>Generic Data Wiping</h4><p>A tool that perform more than one form of data wiping is called generic data wiping tool. Some tools that under this category are <a href="http://antivirus.baidu.com/en/">Baidu Antivirus</a> and <a href="http://www.piriform.com/ccleaner/builds">CCleaner</a>.</p><h4>Log Wiping</h4><p>Log wiping is a method that removes log data. It’s a sort of file wiping that targets log data. Data logging is used for tracking a variety of events. Currently, there isn’t any tool that ubiquitously deletes log file because each program or system inside a computer has it’s own logging mechanism. Such log wiping attacks are achieved by directly hijack the service that produces that log. One such example are by hacking higher privileged account (admin) into a system, that account could delete the logs. Log wiping attempts are done case-by-case.</p><h4>Metadata Wiping</h4><p>A metadata defines the creation date, extension, filesize, author, etc. of a file. This method overwrites the data that defines a data. One such tool that are used for metadata wiping is <a href="https://forensicswiki.xyz/wiki/index.php?title=Timestomp">Timestomp</a>. Metadata of a file could be used for tracking user activity and a valuable information for the forensics process. Tampering the metadata of a file could potentially hide malicious activities and hinders forensic process.</p><h4>Registry Wiping</h4><p>Wiping windows registry that stores low-level settings for Windows OS and related applications could potentially hide the trace of malicious activities. There are many tools that could tamper the registry data, such as <a href="http://www.fcleaner.com/">FCleaner</a>.</p><h3>Mitigation of Artifact Wiping Attempts</h3><p>To mitigate these artifact wiping attempts, there are several measures that could be implemented, such as:</p><ul><li>One could make the stored data redundant and could be recovered whenever needed.</li><li>Always enable logging and turning on necessary notifications</li><li>Safeguard physical storage media from degaussing attempts</li></ul><h3><strong>Conclusion and Further Readings</strong></h3><p>Recovering the lost data from wiping activities are nearly impossible. But, the actual wiping of the artifact could itself create evidence. The very lack of evidence might become a new supporting evidence for the forensics process. One could thought it was planned carefully.</p><p>You might also like to read Digital Forensics journal from <a href="http://www.elsevier.com/locate/diin">Digital Investigation</a> or the more recent <a href="https://www.journals.elsevier.com/forensic-science-international-digital-investigation">Forensic Science International: Digital Investigation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfcf8ed25a75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ESP32 Devlog 14 — MySQL Cloud Data Logging]]></title>
            <link>https://medium.com/@18218004/esp32-devlog-14-mysql-cloud-data-logging-653db0fbcde5?source=rss-6337fb7e49b------2</link>
            <guid isPermaLink="false">https://medium.com/p/653db0fbcde5</guid>
            <dc:creator><![CDATA[Hardy Valenthio]]></dc:creator>
            <pubDate>Fri, 10 Apr 2020 08:29:51 GMT</pubDate>
            <atom:updated>2020-06-06T20:48:54.603Z</atom:updated>
            <content:encoded><![CDATA[<h3>ESP32 Devlog 14 — MySQL Cloud Data Logging</h3><blockquote>Scaling up the accessibility with <strong>friends</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIzgK5oPIqyS9fuoSnljag.jpeg" /></figure><p>If we take data logging to another level, we can access the data from around the world with a personal hosting service and domain from a provider. Which means i would like to host a shared hosting service and <strong>used that service with my class </strong>so we can get the barometric reading <strong>around Indonesia</strong>. My friend lived across all over Indonesia like Jakarta, Makassar, Bogor, Bandung, Medan, Surabaya, Purworejo, and others.</p><p>I thought this is the opportunity while we are working from home due to COVID-19 pandemic lockdown, we have different barometric data readings from our home.</p><p>In the previous web project, we make a simple HTML input form that saves the data into google sheets. Here’s the previous link to the old projects related to this devlog:</p><ul><li><a href="https://medium.com/@18218004/esp32-devlog-3-barometric-sensor-b412184bb77a?source=your_stories_page---------------------------">ESP32 Devlog 3 — Barometric Sensor</a></li><li><a href="https://medium.com/@18218004/esp32-devlog-8-wifi-led-switch-55718de248c3">ESP32 Devlog 8 — Wifi LED Switch</a></li><li><a href="https://medium.com/@18218004/esp32-devlog-9-real-time-weather-station-web-780e21f80666?source=your_stories_page---------------------------">ESP32 Devlog 9 — Real-Time Weather Station Web</a></li><li><a href="https://medium.com/@18218004/esp32-devlog-10-spiffs-filesystem-fe772d6ba6f6?source=your_stories_page---------------------------">ESP32 Devlog 10 — SPIFFS Filesystem</a></li><li><a href="https://medium.com/@18218004/esp32-devlog-11-data-visualization-98404e796b63">ESP32 Devlog 11 — Data Visualization</a></li><li><a href="https://medium.com/@18218004/esp32-devlog-12-data-logging-32bffae77445">ESP32 Devlog 12 — Data Logging</a></li><li><a href="https://medium.com/@18218004/esp32-devlog-13-esp32-html-input-form-afdf617c83cd">ESP32 Devlog 13 — ESP32 HTML Input Form</a></li></ul><p>In this project, i want to make a BMP180 data logging hosted in a hosting service. I personally use <a href="https://www.dewaweb.com/">Dewaweb</a> for web projects. You might want to see my other active web project hosted by dewaweb which is unrelated to this project:</p><ul><li><a href="http://itbmun.org/">http://itbmun.org/</a></li><li><a href="http://sxcgrandsummit.com/">https://sxcgrandsummit.com/</a></li></ul><p>The concept behind this project is based on Random Nerd Tutorials article about <a href="https://randomnerdtutorials.com/esp32-esp8266-mysql-database-php/">Insert Data into MySQL Database using PHP and Arduino IDE</a>.</p><ol><li>First, the BMP180 Sensor reads the data and passes it to ESP32</li><li>The ESP32 sends a HTTP POST request every specified minute to a hosting server with my domain</li><li>The server then publish sensor readings to a table in the database</li><li>Then, you can access the sensor data logging from anywhere using your domain name (in my case, <a href="https://hardyvalen.my.id)/">https://hardyvalen.my.id)</a></li><li>The ESP32 then repeats the process for specified amount of time.</li></ol><p>I assume you guys have an existing hosting service with a domain name.</p><h3>A. Requirements and To-Do</h3><p>These are the requirements for this project:</p><h4>Software Requirement</h4><ol><li>Arduino IDE with <a href="https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/">ESP32 Board Support</a></li><li>Modern Browser that can open google sheets without problem</li></ol><h4>Hardware Requirement</h4><ol><li>Breadboard</li><li>Jumper Cable</li><li>ESP32</li><li>BMP180</li></ol><h4>Service Requirement</h4><ol><li><a href="https://randomnerdtutorials.com/esp32-with-bmp180-barometric-sensor/">Adafruit BMP180 sensor</a> library</li><li>Web Hosting Service</li><li>Domain Name</li></ol><h4>To-Do</h4><ol><li>Make your existing web hosting service accommodate the POST request from ESP32.</li><li>Make a sensor reading mySQL database</li></ol><p>Again, most of the links refer to the Random Nerd Tutorials, check the blog out for more reference and technical detail. <strong>This devlog is not a tutorial</strong>, rather it keeps me log the <strong>troubles</strong> i’ve got so far.</p><h3>B. Setup The Database</h3><p>Assuming you are using a shared hosting service that uses cPanel as a content manager, the process of making the database is rather straightforward. Just follow the instructions from the <a href="https://randomnerdtutorials.com/esp32-esp8266-mysql-database-php/">Random Nerd Tutorial</a>. I don’t really want to censor every data i have from the shared hosting.</p><p><strong>!! The section below is directly pasted from Random Nerd Tutorial.</strong></p><h4>Creating a database and user</h4><p><strong>1.</strong> Type “database” in the search bar and select “MySQL Database Wizard”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/0*lnIw_Lk0II7uHlxc" /></figure><p><strong>2.</strong> Enter your desired Database name. In my case, the database name is esp_data. Then, press the “Next Step” button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/0*j9q8LBXhMdpuEeHi" /></figure><p><strong>Note: </strong>later you’ll have to use the database name with the prefix that your host gives you (my database prefix in the screenshot above is blurred). I’ll refer to it as example_esp_data from now on.</p><p><strong>3.</strong> Type your Database username and set a password. You must save all those details, because you’ll need them later to establish a database connection with your PHP code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*hBVQhFJrkDoLkbL8" /></figure><p>That’s it! Your new database and user were created successfully. Now, save all your details because you’ll need them later:</p><ul><li><strong>Database name</strong>: example_esp_data</li><li><strong>Username</strong>: example_esp_board</li><li><strong>Password</strong>: your password</li></ul><h4>Creating a SQL table</h4><p>After creating your database and user, go back to cPanel dashboard and search for “phpMyAdmin”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/0*U6GOEvqsJl_lYzd4" /></figure><p>In the left sidebar, select your database name example_esp_data and open the “SQL” tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/0*An3knF4TE37B2jA6" /></figure><blockquote><strong>Important: </strong>make sure you’ve opened the example_esp_data database. Then, click the SQL tab. If you don’t follow these exact steps and run the SQL query, you might create a table in the wrong database.</blockquote><p>Copy the SQL query in the following snippet (Slightly modified):</p><pre>CREATE TABLE SensorData (<br>    id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,<br>    sensor VARCHAR(30) NOT NULL,<br>    location VARCHAR(30) NOT NULL,<br>    value1 VARCHAR(10),<br>    value2 VARCHAR(10),<br>    value3 VARCHAR(10),<br>    reading_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP<br>)</pre><p>Paste it in the SQL query field (highlighted with a red rectangle) and press the “Go” button to create your table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/0*6JE9jMDHhI2Zbmjy" /></figure><p>After that, you should see your newly created table called SensorData in the example_esp_data database as shown in the figure below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/0*9Bb2DtMfaFoDeMG1" /></figure><p><strong>!! END of Reference</strong></p><h3>C. Using PHP Script for handling HTTP POST and Display Database Content</h3><p>First, open your file manager</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*epEk0YTX2b-h4bwMT-V_UQ.png" /></figure><p>Then, create 2 files on the public_html named esp-data.php and post-esp-data.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2IIx_uNwC4aEecw6Cj6vlg.png" /><figcaption>It should be looked like this after the files are created.</figcaption></figure><p>Edit the esp-data.php and copy the following code snippet. You might want to change DB name, username, and password matching to your hosting. It is used for display the database content.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d19e46f2197c348b8fb471d3424f570/href">https://medium.com/media/1d19e46f2197c348b8fb471d3424f570/href</a></iframe><p>Then, you can insert the readings from ESP32 to your database with this following snippet:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eeee85d16bbd9e9c08e0e2d79130c561/href">https://medium.com/media/eeee85d16bbd9e9c08e0e2d79130c561/href</a></iframe><h3>D. The Arduino File</h3><p>The arduino file is rather straightforward. Here’s the code snippet for the .ino file</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/59f6a226dd4ec7c13f952abb50344387/href">https://medium.com/media/59f6a226dd4ec7c13f952abb50344387/href</a></iframe><p>First, include the necessary libraries to the sketch.</p><pre>#include &lt;WiFi.h&gt;<br>#include &lt;Wire.h&gt;<br>#include &lt;Adafruit_BMP085.h&gt;<br>#include &lt;HTTPClient.h&gt;</pre><p>Then, create an instance to communicate with BMP180 Sensor using I2C:</p><pre>Adafruit_BMP085 bmp;</pre><p>The thing you would like to modify is the ssid and the password to connect to the wireless network you use. You might want to change the serverName with your-domain.com/post-esp-data.php to forward the BMP180 data readings. The apiKeyValue remains the same and you may freely change the sensorName and sensorLocation.</p><pre>// Replace with your SSID and Password<br>const char* ssid      = ...;<br>const char* password  = ...;</pre><pre>// REPLACE with your Domain name and URL path or IP address with path<br>const char* serverName = &quot;.../post-esp-data.php&quot;;</pre><pre>// Keep this API Key value to be compatible with the PHP code provided in the project page. <br>// If you change the apiKeyValue value, the PHP file /post-esp-data.php also needs to have the same key <br>String apiKeyValue = &quot;tPmAT5Ab3j7F9&quot;;</pre><pre>String sensorName = &quot;BMP180&quot;;<br>String sensorLocation = &quot;Hardy(Bekasi)&quot;;</pre><p>In the setup(), initialize the serial baud rate and BMP180 sensor</p><pre>Serial.begin(115200);// Hardware Checking<br>  if (!bmp.begin()) {<br>    Serial.println(&quot;Could not find a valid BMP085 sensor, check wiring!&quot;);<br>    while (1) {}<br>  }</pre><p>Then, connect to WiFi and print the IP Address in the Serial Monitor</p><pre>// Connect to WiFi<br>  Serial.print(&quot;Connecting to &quot;);<br>  Serial.println(ssid);<br>  WiFi.begin(ssid, password);<br>  <br>  while (WiFi.status() != WL_CONNECTED) {<br>    delay(500);<br>    Serial.print(&quot;.&quot;);<br>  }<br>  <br>  Serial.println(&quot;\nWiFi Connected&quot;);<br>  Serial.println(&quot;IP Address: &quot;);// Local IP Address<br>  Serial.println(WiFi.localIP());</pre><p>The loop block is populated unlike the previous posts because we don’t use the ESP32 asynchronous web server library, rather than we are using vanilla arduino IDE HTTPClient library. In a nutshell, it sends the BMP180 reading data to the hosted mySQL database every hour in my case.</p><h3>E. Demonstration</h3><p>Let the BMP180 collect the barometric information and passes to the ESP32 and ESP32 passes the collected data to the server. If everything is right, you might find the message on the serial monitor with HTTP 200 OK response code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*UwJkTjK1slZSRWg1tCYEtg.png" /></figure><p>Then, you might check the data on your-domain.com/esp-data.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*ieJL20VKlTQu0ZB28eMFeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*mTIOKTg4IqCnncEkyF-k4w.png" /></figure><h3>F. Conclusion</h3><p>This concludes my journey to tweak the ESP32. There was a several problem in this project:</p><ul><li>Usually i get the response code of -1 which i don’t have time to troubleshoot</li><li>The MySQL is very strict, the column is fixed and the INSERT INTO query might be very tricky if you want to reduce the column size</li></ul><p>As always, the files used for this project can be downloaded from my github. <a href="https://github.com/HardyValen/ESP32Embedded/tree/master/WiFi09-Cloud">Here’s the repository for this project</a></p><p><strong>Stay safe</strong> guys and be productive at home.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=653db0fbcde5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>