<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>HackTheBox on Drew Arpino (Stumblesec)</title>
        <link>https://stumblesec.com/categories/hackthebox/</link>
        <description>Recent content in HackTheBox on Drew Arpino (Stumblesec)</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Sun, 24 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://stumblesec.com/categories/hackthebox/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>HackTheBox  — Campfire-2 Sherlock Walkthrough</title>
            <link>https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/</link>
            <pubDate>Sun, 24 May 2026 00:00:00 +0000</pubDate>
            <guid>https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/</guid>
            <description>&lt;img src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/c0821df671c5de03e97c6d0bb79cad3f_MD5.png&#34; alt=&#34;Featured image of post HackTheBox  — Campfire-2 Sherlock Walkthrough&#34; /&gt;&lt;h3 id=&#34;hackthebox-campfire-2-sherlock-walkthrough&#34;&gt;HackTheBox: Campfire-2 Sherlock Walkthrough&#xA;&lt;/h3&gt;&lt;h4 id=&#34;detecting-as-rep-roasting-activity-correlating-kerberos-events-and-authentication-logs-with-event-logexplorer&#34;&gt;Detecting AS-REP Roasting Activity: Correlating Kerberos Events and Authentication Logs with Event Log Explorer&#xA;&lt;/h4&gt;&lt;p&gt;&lt;img alt=&#34;c0821df671c5de03e97c6d0bb79cad3f_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;240&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/c0821df671c5de03e97c6d0bb79cad3f_MD5.png&#34; width=&#34;240&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Image Credit: &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Campfire-2?tab=play_sherlock&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/Campfire-2?tab=play_sherlock&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;introduction&#34;&gt;Introduction:&#xA;&lt;/h3&gt;&lt;p&gt;Welcome to my weekly walkthrough! If you’ve stumbled across this blog while looking for a detailed guide to the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Campfire-2?tab=play_sherlock&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Campfire-2 Sherlock&lt;/strong&gt;&lt;/a&gt; from &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt;, you’re in the right place.&lt;/p&gt;&#xA;&lt;p&gt;This is the second challenge in the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/tracks/61&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;Detecting Active Directory Attacks&lt;/em&gt;&lt;/a&gt; track and it wastes no time dropping us into a classic blue team scenario. If you’re a completionist, or just want to follow along in order, check out my walkthrough of &lt;strong&gt;Campfire-1&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/&#34; &gt;&lt;strong&gt;HackTheBox: Campfire-1 Sherlock Walkthrough&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hot off the heels of a Kerberoasting event, we’re jumping back in the saddle. This time, we’re given a single forensic artifact: a domain controller security log. With just this one event log, it’s on us to figure out what’s going on, identify the user account tied to a suspicious request, and determine what actually happened in Forela’s network.&lt;/p&gt;&#xA;&lt;p&gt;Along the way, we’ll lean on our trusty event log tool, &lt;strong&gt;Event Log Explorer&lt;/strong&gt;, to filter the data and apply a &lt;strong&gt;MITRE ATT&amp;amp;CK&lt;/strong&gt; detection strategy to dial in our results and add some helpful context. This one is a bit more focused, but it’s a classic foundational scenario that shows how far you can get with just domain controller telemetry.&lt;/p&gt;&#xA;&lt;p&gt;And hey, if you find this walkthrough helpful, whether it helps you level up your memory forensics skills, gets you over a stumbling block, or just serves as a useful reference, consider following me for more weekly deep dives.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for reading and going on this investigation with me. Let’s go!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;challenge-scenario&#34;&gt;Challenge Scenario:&#xA;&lt;/h3&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Forela’s Network is constantly under attack. The security system raised an alert about an old admin account requesting a ticket from KDC on a domain controller. Inventory shows that this user account is not used as of now so you are tasked to take a look at this. This may be an AsREP roasting attack as anyone can request any user’s ticket which has preauthentication disabled.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;setup-the-analysis-environment--extract-the-challenge-file&#34;&gt;Setup the Analysis Environment &amp;amp; Extract the Challenge File:&#xA;&lt;/h3&gt;&lt;p&gt;Safety first! It’s always important when working with lab/challenge files from &lt;strong&gt;HtB&lt;/strong&gt; &lt;em&gt;(or any educational lab/challenge/range)&lt;/em&gt; to keep yourself protected by performing these tasks in a dedicated, isolated virtual machine environment. As this is a Windows-based challenge, I’m using &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;FLARE-VM&lt;/strong&gt;&lt;/a&gt; for this challenge which is “&lt;em&gt;a collection of software installations scripts for Windows systems that allows you to easily setup and maintain a reverse engineering environment on a virtual machine (VM).&lt;/em&gt;”&lt;/p&gt;&#xA;&lt;p&gt;To keep this write-up focused I’m going to skip the step-by-step setup of &lt;em&gt;FLARE-VM&lt;/em&gt; but _i_f you’d like to set up your own environment, please follow the directions provided directly by &lt;em&gt;FLARE-VM&lt;/em&gt; on &lt;em&gt;GitHub.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  title=&#34;https://github.com/mandiant/flare-vm&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;GitHub — mandiant/flare-vm: A collection of software installations scripts for Windows systems that…&lt;/strong&gt;&#xA;_A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a…_github.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once you have a safe virtual environment created, updated, isolated, and snapshotted, we can extract the challenge file and start the investigation!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;as-rep-primer&#34;&gt;AS-REP Primer:&#xA;&lt;/h3&gt;&lt;p&gt;Before we jump too far into the investigation, let’s lay some groundwork and do a quick recap of what an &lt;strong&gt;AS‑REP attack&lt;/strong&gt; is in the context of a domain controller. This will help us contextualize the investigation as we move through it.&lt;/p&gt;&#xA;&lt;p&gt;In an Active Directory environment, modern authentication is handled using &lt;strong&gt;Kerberos&lt;/strong&gt;. We don’t need to go terribly in‑depth, since there are excellent resources for deeper dives if you want to explore it more fully. The idea is that when a client in an Active Directory domain needs to access a resource or log in to a server, an authentication flow takes place using &lt;em&gt;Kerberos&lt;/em&gt;. Microsoft has clear visuals in its &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-kile/b4af186e-b2ff-43f9-b18e-eedb366abf13&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Learn&lt;/strong&gt;&lt;/a&gt; documentation that walk through this exchange:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;64cf35a153bdb58a8d8a4f1411f18257_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;323px&#34; data-flex-grow=&#34;134&#34; height=&#34;410&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/64cf35a153bdb58a8d8a4f1411f18257_MD5.png&#34; width=&#34;553&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-kile/b4af186e-b2ff-43f9-b18e-eedb366abf13&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-kile/b4af186e-b2ff-43f9-b18e-eedb366abf13&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &lt;em&gt;AS‑REQ&lt;/em&gt; and &lt;em&gt;AS‑REP&lt;/em&gt; are the first steps in the Kerberos authentication process. AS‑REP roasting becomes possible when an account has &lt;strong&gt;Kerberos pre‑authentication disabled&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;With pre‑authentication enabled, the user’s &lt;em&gt;AS‑REQ&lt;/em&gt; includes a timestamp encrypted with their password hash. The domain controller must successfully decrypt that timestamp before it will issue an &lt;code&gt;AS-REP&lt;/code&gt; containing a Ticket Granting Ticket (&lt;code&gt;TGT&lt;/code&gt;). This step helps prove the requester actually knows the user’s secret.&lt;/p&gt;&#xA;&lt;p&gt;When an account doesn’t require this pre-authentication, attackers can just send an &lt;em&gt;AS-REQ,&lt;/em&gt; snag the &lt;em&gt;AS‑REP,&lt;/em&gt; and then brute‑force the encrypted data offline to recover the password. This is what’s called an &lt;strong&gt;AS-REP Roasting attack&lt;/strong&gt;, which &lt;strong&gt;MITRE ATT&amp;amp;CK&lt;/strong&gt; classifies under &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1558/004/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;Steal or Forge Kerberos Tickets: AS-REP Roasting&lt;/em&gt;&lt;/a&gt; &lt;em&gt;(T1558.004).&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;MITRE&lt;/em&gt; describes it like this:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Adversaries may reveal credentials of accounts that have disabled Kerberos preauthentication by &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110/002&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Password Cracking&lt;/a&gt; Kerberos messages. For each account found without preauthentication, an adversary may send an AS-REQ message without the encrypted timestamp and receive an AS-REP message with TGT data which may be encrypted with an insecure algorithm such as RC4.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;Not good! But understanding this flow is exactly what we need as we move into the investigation.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;MITRE&lt;/em&gt; also provides helpful detection guidance. It recommends monitoring for patterns such as:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Detects AS-REP roasting attempts by monitoring for Kerberos AS-REQ/AS-REP authentication patterns where preauthentication is disabled (&lt;strong&gt;Event ID 4768&lt;/strong&gt; with &lt;strong&gt;Pre-Auth Type 0&lt;/strong&gt;). Correlates these requests with subsequent service ticket activity (&lt;strong&gt;Event ID 4769&lt;/strong&gt;) and anomalies such as requests using weak RC4 encryption &lt;strong&gt;(etype 0x17&lt;/strong&gt;).&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;In other words, by combining these telemetry points and applying them to our investigation, we can start to spot activity that &lt;em&gt;looks like&lt;/em&gt; AS‑REP roasting and begin to scope what’s really happening. Let’s give it a shot!&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-1-when-did-the-asrep-roasting-attack-occur-and-when-did-the-attacker-request-the-kerberos-ticket-for-the-vulnerable-user&#34;&gt;Question 1: When did the ASREP Roasting attack occur, and when did the attacker request the Kerberos ticket for the vulnerable user?&#xA;&lt;/h3&gt;&lt;p&gt;Let’s kick off this investigation. After extracting &lt;code&gt;campfire-2.zip&lt;/code&gt;, we’re left with a single artifact: &lt;code&gt;Security.evtx&lt;/code&gt; from Forela’s domain controller.&lt;/p&gt;&#xA;&lt;p&gt;While we could analyze this log using the built‑in Windows Event Viewer, for this walkthrough I’m once again using &lt;a class=&#34;link&#34; href=&#34;https://eventlogxp.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Event Log Explorer&lt;/strong&gt;&lt;/a&gt;, a third‑party utility that significantly speeds up filtering and navigation during event log analysis. It’s already installed in my lab environment, and for investigations like this, it’s hard to beat.&lt;/p&gt;&#xA;&lt;p&gt;Once &lt;em&gt;Event Log Explorer&lt;/em&gt; is open, load the Domain Controller &lt;code&gt;security.evtx&lt;/code&gt;. From here, we can apply the &lt;em&gt;MITRE ATT&amp;amp;CK&lt;/em&gt; detection guidance we discussed in the &lt;em&gt;AS-REP Roasting&lt;/em&gt; primer and put it directly into practice.&lt;/p&gt;&#xA;&lt;p&gt;To do that:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Click the &lt;em&gt;Filter&lt;/em&gt; button in the toolbar&lt;/li&gt;&#xA;&lt;li&gt;Add Event ID &lt;code&gt;4768&lt;/code&gt; (&lt;em&gt;A Kerberos authentication ticket (TGT) was requested&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Select &lt;em&gt;Description Params&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Locate &lt;em&gt;Additional Information\Ticket Encryption Type&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Set the operator to &lt;em&gt;Equal&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Add the value &lt;code&gt;0x17&lt;/code&gt; (RC4 encryption)&lt;/li&gt;&#xA;&lt;li&gt;Locate &lt;em&gt;Additional Information\Pre-Authentication Type&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Set the operator to &lt;em&gt;Equal&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Add the value &lt;code&gt;0&lt;/code&gt; (pre-authentication disabled)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;062c5ac56fe3738e369de4aa1d02f31d_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;498px&#34; data-flex-grow=&#34;207&#34; height=&#34;385&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/062c5ac56fe3738e369de4aa1d02f31d_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Applying the MITRE ATT&amp;amp;CK detection filters to our log&lt;/p&gt;&#xA;&lt;p&gt;After applying this filter, we’re left with exactly one matching event. That’s a strong signal and, conveniently, it’s all we need to answer &lt;strong&gt;Question 1&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;There’s one final detail to pay attention to. The question expects the answer in &lt;strong&gt;UTC&lt;/strong&gt; time. Event Viewer and many third‑party tools often display timestamps in local time by default, which can easily trip you up if you’re not careful.&lt;/p&gt;&#xA;&lt;p&gt;To get the authoritative timestamp, double‑click the event, open the &lt;em&gt;XML&lt;/em&gt; tab, and look for the &lt;code&gt;&amp;lt;SystemTime&amp;gt;&lt;/code&gt; field. This value is recorded in UTC and removes any ambiguity around time zone conversion.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;32a4e7e1f8523121be64cf45536e03e4_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;431px&#34; data-flex-grow=&#34;179&#34; height=&#34;445&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/32a4e7e1f8523121be64cf45536e03e4_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Drilling into event properties to find the UTC &lt;code&gt;SystemTime&lt;/code&gt; value&lt;/p&gt;&#xA;&lt;p&gt;At this point, we’ve isolated the Kerberos authentication request that matches the conditions for a potentially AS‑REP roastable account and identified the precise UTC timestamp associated with it. With that in hand, we can confidently answer &lt;strong&gt;Question 1&lt;/strong&gt; and move forward with the investigation.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;de68e93707ac66abb38dff9555ea75cd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1230px&#34; data-flex-grow=&#34;512&#34; height=&#34;156&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/de68e93707ac66abb38dff9555ea75cd_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;questions-2-34&#34;&gt;Questions 2, 3, 4:&#xA;&lt;/h3&gt;&lt;h4 id=&#34;please-confirm-the-user-account-that-was-targeted-by-the-attacker&#34;&gt;Please confirm the User Account that was targeted by the attacker.&#xA;&lt;/h4&gt;&lt;h4 id=&#34;what-was-the-sid-of-theaccount&#34;&gt;What was the SID of the account?&#xA;&lt;/h4&gt;&lt;h4 id=&#34;it-is-crucial-to-identify-the-compromised-user-account-and-the-workstation-responsible-for-this-attack-please-list-the-internal-ip-address-of-the-compromised-asset-to-assist-our-threat-hunting-team&#34;&gt;It is crucial to identify the compromised user account and the workstation responsible for this attack. Please list the internal IP address of the compromised asset to assist our threat-hunting team.&#xA;&lt;/h4&gt;&lt;p&gt;Now that we’ve identified the TGT request that exposes the right conditions for a potential AS‑REP roasting attack, we have a ton of useful forensic detail to work with. This is where &lt;em&gt;Kerberos&lt;/em&gt; logging really starts to pay off.&lt;/p&gt;&#xA;&lt;p&gt;Looking back at our work in &lt;strong&gt;Question 1&lt;/strong&gt;, we already isolated the relevant &lt;code&gt;Event ID 4768&lt;/code&gt;. From here, it’s just a matter of pulling the right fields from the event record.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;75e1ab38750d13ac399ed361a1b41354_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;484px&#34; data-flex-grow=&#34;202&#34; height=&#34;396&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/75e1ab38750d13ac399ed361a1b41354_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Analyzing the event details&lt;/p&gt;&#xA;&lt;p&gt;To answer &lt;strong&gt;Question 2&lt;/strong&gt;, we can look at the &lt;em&gt;Account Name&lt;/em&gt; field, which identifies the user account targeted in the request: &lt;code&gt;arthur.kyle&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;For &lt;strong&gt;Question 3&lt;/strong&gt;, we’re asked to provide the Security Identifier, or SID, of that account. In &lt;strong&gt;Active Directory&lt;/strong&gt;, the SID is the unique value used to identify a security principal. In this event, that value is captured in the &lt;em&gt;User ID&lt;/em&gt; field, which gives us the SID associated with &lt;code&gt;arthur.kyle&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Finally, for &lt;strong&gt;Question 4&lt;/strong&gt;, we pivot to the &lt;em&gt;Network Information&lt;/em&gt; section of the event. The &lt;em&gt;Client Address&lt;/em&gt; field provides the source of the request. In this case, we’re interested in the IPv4 address, which represents the workstation that initiated the Kerberos authentication request. This gives us a valuable pivot point to continue the investigation and start scoping the potentially compromised system.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;7007c856c97be79a9eff5ecf88d8ceb9_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1288px&#34; data-flex-grow=&#34;536&#34; height=&#34;149&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/7007c856c97be79a9eff5ecf88d8ceb9_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;4e9d54ab93b89c923459910ea9c5dfee_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1280px&#34; data-flex-grow=&#34;533&#34; height=&#34;150&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/4e9d54ab93b89c923459910ea9c5dfee_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;2a2efe3e32e5c60636879bbf46ec5641_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1066px&#34; data-flex-grow=&#34;444&#34; height=&#34;180&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/2a2efe3e32e5c60636879bbf46ec5641_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-5-we-do-not-have-any-artifacts-from-the-source-machine-yet-using-the-same-dc-security-logs-can-you-confirm-the-user-account-used-to-perform-the-asrep-roasting-attack-so-we-can-contain-the-compromised-accounts&#34;&gt;Question 5: We do not have any artifacts from the source machine yet. Using the same DC Security logs, can you confirm the user account used to perform the ASREP Roasting attack so we can contain the compromised account/s?&#xA;&lt;/h3&gt;&lt;p&gt;Remember in the detection strategy back in the primer that &lt;strong&gt;MITRE ATT&amp;amp;CK&lt;/strong&gt; recommended correlating &lt;code&gt;Event ID 4768&lt;/code&gt; activity with &lt;em&gt;“subsequent service ticket activity (Event ID 4769).”&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;This next step is doing exactly that. We’re correlating our original finding with &lt;code&gt;[Event ID 4769](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4769)&lt;/code&gt; (&lt;em&gt;A Kerberos service ticket was requested&lt;/em&gt;) and pivoting off the client IP address we uncovered in &lt;strong&gt;Question 4&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To do this, apply a new filter in &lt;strong&gt;Event Log Explorer&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Scope to Event ID &lt;code&gt;4769&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Add the &lt;em&gt;Description Param&lt;/em&gt;: &lt;code&gt;Network Information\Client Address&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Operator: &lt;em&gt;Contains&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Value: &lt;code&gt;172.17.79.129&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;ed24b3b330e0b7677e8a68fc0b6433bd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;257px&#34; data-flex-grow=&#34;107&#34; height=&#34;645&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/ed24b3b330e0b7677e8a68fc0b6433bd_MD5.png&#34; width=&#34;691&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Filtering Kerberos service ticket requests (4769) from the suspicious client&lt;/p&gt;&#xA;&lt;p&gt;After applying this filter, we’re left with a single matching event. That gives us a clean correlation point between the source system and follow-on Kerberos activity.&lt;/p&gt;&#xA;&lt;p&gt;Drilling into the event details, we can now identify the account associated with this request. The event shows the account name &lt;code&gt;happy.grunwald&lt;/code&gt;, which appears to be the user context tied to the system performing the activity.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;2f414c60ecc4e3e5fcf37acd4248e8c3_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;513px&#34; data-flex-grow=&#34;213&#34; height=&#34;374&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/2f414c60ecc4e3e5fcf37acd4248e8c3_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Analyzing the event details&lt;/p&gt;&#xA;&lt;p&gt;At this point, we’ve linked together:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The &lt;strong&gt;targeted account&lt;/strong&gt; (&lt;code&gt;arthur.kyle&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;The &lt;strong&gt;source system&lt;/strong&gt; (&lt;code&gt;172.17.79.129&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;And now the &lt;strong&gt;user context associated with that system&lt;/strong&gt; (&lt;code&gt;happy.grunwald&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This gives us enough context to begin containment actions and start scoping the potential compromise. With that, we’ve answered all of the questions and completed the investigation. Nice job!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;e7714491c2059b177928d0042b6375a4_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1122px&#34; data-flex-grow=&#34;467&#34; height=&#34;171&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/e7714491c2059b177928d0042b6375a4_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;conclusion&#34;&gt;Conclusion:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;img alt=&#34;4292b414ac7c1187e9daa086e48ab08d_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;351px&#34; data-flex-grow=&#34;146&#34; height=&#34;547&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/4292b414ac7c1187e9daa086e48ab08d_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Another great challenge, how fun was that? A huge thank you to &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt; for the Sherlock.&lt;/p&gt;&#xA;&lt;p&gt;This lab ended up being a really good reminder of just how much signal exists in event logging if you take the time to understand how domain authentication actually works. &lt;strong&gt;Kerberos&lt;/strong&gt; isn’t new, and &lt;em&gt;AS‑REP roasting&lt;/em&gt; isn’t either, but walking through the mechanics step by step makes it clear why weak account configuration still represents real risk in modern environments. Nothing wild here, just attackers leveraging expected behavior in ways defenders need to anticipate.&lt;/p&gt;&#xA;&lt;p&gt;What I appreciated most about this challenge is how focused it was. It zeroed in on a single detection and made it approachable without oversimplifying it. In a real environment, we’d be dealing with a lot more noise, but this Sherlock does a great job of showing how to investigate AS‑REP roasting in an approachable way.&lt;/p&gt;&#xA;&lt;p&gt;Like in &lt;em&gt;Campfire-1&lt;/em&gt;, leaning on &lt;strong&gt;MITRE ATT&amp;amp;CK&lt;/strong&gt; as a reference point paid off here. Rather than hunting blindly, it helped us home in on what to look for, why certain events mattered, and how those signals might translate into detections later on. This kind of structured approach quietly reinforces how ATT&amp;amp;CK can guide both investigations and detection engineering without forcing things into a rigid workflow.&lt;/p&gt;&#xA;&lt;p&gt;If you got something out of this walkthrough, whether it helped you better understand Kerberos abuse, work through a stumbling block, or just served as a practical reference, feel free to give it a clap and follow along. I really appreciate the support, and I hope these write‑ups continue to be useful.&lt;/p&gt;&#xA;&lt;p&gt;Remember, cybersecurity is a team sport, and we’re in this together.&lt;/p&gt;&#xA;&lt;p&gt;Until next week’s challenge, stay curious and be safe out there.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;250&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-2-sherlock-walkthrough/897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; width=&#34;250&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;tools--references&#34;&gt;Tools &amp;amp; References:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Challenge Link:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Campfire-2?tab=play_sherlock&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/Campfire-2?tab=play_sherlock&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Flare-VM:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Event Log Explorer:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://eventlogxp.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://eventlogxp.com/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — “Kerberos Network Authentication Service (V5) Synopsis”:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-kile/b4af186e-b2ff-43f9-b18e-eedb366abf13&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-kile/b4af186e-b2ff-43f9-b18e-eedb366abf13&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Steal or Forge Kerberos Tickets: AS-REP Roasting (T1558.004):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1558/004/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1558/004/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — “4768(S, F): A Kerberos authentication ticket (TGT) was requested”:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4768&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4768&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — “4769(S, F): A Kerberos service ticket was requested”:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4769&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4769&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>HackTheBox  — Campfire-1 Sherlock Walkthrough</title>
            <link>https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/</link>
            <pubDate>Sun, 10 May 2026 00:00:00 +0000</pubDate>
            <guid>https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/</guid>
            <description>&lt;img src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/2e96b36576478948e67b6d50b55c19aa_MD5.png&#34; alt=&#34;Featured image of post HackTheBox  — Campfire-1 Sherlock Walkthrough&#34; /&gt;&lt;h3 id=&#34;hackthebox-campfire-1-sherlock-walkthrough&#34;&gt;HackTheBox: Campfire-1 Sherlock Walkthrough&#xA;&lt;/h3&gt;&lt;h4 id=&#34;detecting-kerberoasting-activity-correlating-kerberos-events-powershell-logs-and-prefetch-artifacts&#34;&gt;Detecting Kerberoasting Activity: Correlating Kerberos Events, PowerShell Logs, and Prefetch Artifacts&#xA;&lt;/h4&gt;&lt;p&gt;&lt;img alt=&#34;2e96b36576478948e67b6d50b55c19aa_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;240&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/2e96b36576478948e67b6d50b55c19aa_MD5.png&#34; width=&#34;240&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Image Credit: &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Campfire-1?tab=play_sherlock&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/Campfire-1?tab=play_sherlock&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;introduction&#34;&gt;Introduction:&#xA;&lt;/h3&gt;&lt;p&gt;Welcome to my weekly walkthrough! If you’ve stumbled across this blog while looking for a detailed guide to the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Campfire-1?tab=play_sherlock&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Campfire-1 Sherlock&lt;/strong&gt;&lt;/a&gt; from &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt;, you’re in the right place.&lt;/p&gt;&#xA;&lt;p&gt;This is the first challenge in the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/tracks/61&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Detecting Active Directory Attacks&lt;/strong&gt;&lt;/a&gt; track and it wastes no time dropping us into a classic blue team scenario.&lt;/p&gt;&#xA;&lt;p&gt;For this walkthrough, we’re given a collection of forensic artifacts, including Domain Controller security logs, &lt;em&gt;PowerShell&lt;/em&gt; operational logs from the affected workstation, and Windows Prefetch files. From there, it’s on us to reconstruct the attack and figure out what actually happened in the environment.&lt;/p&gt;&#xA;&lt;p&gt;Along the way, we’ll bust out a handful of tools, including &lt;strong&gt;Event Log Explorer&lt;/strong&gt;, &lt;strong&gt;PECmd&lt;/strong&gt;, and &lt;strong&gt;Timeline Explorer&lt;/strong&gt;, and map what we find back to &lt;strong&gt;MITRE ATT&amp;amp;CK&lt;/strong&gt; to add some helpful context. Going hands‑on with a broad set of tools like this is a great way to get experience with multiple utilities and compare how each one shines during different phases of an investigation.&lt;/p&gt;&#xA;&lt;p&gt;And hey, if you find this walkthrough helpful, whether it helps you level up your memory forensics skills, gets you over a stumbling block, or just serves as a useful reference, consider following me for more weekly deep dives.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for reading and going on this investigation with me. Let’s go!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;challenge-scenario&#34;&gt;Challenge Scenario:&#xA;&lt;/h3&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Alonzo Spotted Weird files on his computer and informed the newly assembled SOC Team. Assessing the situation it is believed a Kerberoasting attack may have occurred in the network. It is your job to confirm the findings by analyzing the provided evidence.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;You are provided with:&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;1- Security Logs from the Domain Controller&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;2- PowerShell-Operational Logs from the affected workstation&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;3- Prefetch Files from the affected workstation&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;setup-the-analysis-environment--extract-the-challenge-file&#34;&gt;Setup the Analysis Environment &amp;amp; Extract the Challenge File:&#xA;&lt;/h3&gt;&lt;p&gt;Safety first! It’s always important when working with lab/challenge files from &lt;strong&gt;HtB&lt;/strong&gt; &lt;em&gt;(or any educational lab/challenge/range)&lt;/em&gt; to keep yourself protected by performing these tasks in a dedicated, isolated virtual machine environment. As this is a Windows-based challenge, I’m using &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;FLARE-VM&lt;/strong&gt;&lt;/a&gt; for this challenge which is “&lt;em&gt;a collection of software installations scripts for Windows systems that allows you to easily setup and maintain a reverse engineering environment on a virtual machine (VM).&lt;/em&gt;”&lt;/p&gt;&#xA;&lt;p&gt;To keep this write-up focused I’m going to skip the step-by-step setup of &lt;em&gt;FLARE-VM&lt;/em&gt; but _i_f you’d like to set up your own environment, please follow the directions provided directly by &lt;em&gt;FLARE-VM&lt;/em&gt; on &lt;em&gt;GitHub.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  title=&#34;https://github.com/mandiant/flare-vm&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;GitHub — mandiant/flare-vm: A collection of software installations scripts for Windows systems that…&lt;/strong&gt;&#xA;_A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a…_github.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once you have a safe virtual environment created, updated, isolated, and snapshotted, we can extract the challenge file and start the investigation!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;kerberoasting-primer&#34;&gt;Kerberoasting Primer:&#xA;&lt;/h3&gt;&lt;p&gt;Before we jump too far into the investigation, let’s lay some groundwork and do a quick recap of &lt;strong&gt;Kerberoasting&lt;/strong&gt; in the context of domain authentication. This will help us contextualize what we’re looking at as we move through the evidence and hopefully avoid stumbling over assumptions later on.&lt;/p&gt;&#xA;&lt;p&gt;At a high level, the attacker already has valid domain credentials. With those credentials, they can request a Kerberos service ticket for another account that has a registered &lt;em&gt;Service Principal Name&lt;/em&gt; or SPN. These SPNs are typically associated with service accounts. Because Kerberos is designed to allow any authenticated domain user to request service tickets, the attacker can ask the domain controller for tickets tied to these exposed service accounts.&lt;/p&gt;&#xA;&lt;p&gt;If the service account is protected by a weak password, especially if a legacy encryption algorithm like &lt;strong&gt;RC4&lt;/strong&gt; is still in use, the attacker can take the resulting ticket offline and attempt to brute force it. If successful, this might give them valid service account credentials. From there, lateral movement or privilege escalation becomes much easier, depending on how that account is configured in the domain.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1558/003/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;MITRE ATT&amp;amp;CK&lt;/strong&gt;&lt;/a&gt; describes the technique like this:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Adversaries may abuse a valid Kerberos ticket-granting ticket (TGT) or sniff network traffic to obtain a ticket-granting service (TGS) ticket that may be vulnerable to &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Brute Force&lt;/a&gt;.1(&lt;a class=&#34;link&#34; href=&#34;https://github.com/EmpireProject/Empire/blob/master/data/module_source/credentials/Invoke-Kerberoast.ps1%292%28https://adsecurity.org/?p=2293&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/EmpireProject/Empire/blob/master/data/module_source/credentials/Invoke-Kerberoast.ps1)2(https://adsecurity.org/?p=2293&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Service principal names (SPNs) are used to uniquely identify each instance of a Windows service. To enable authentication, Kerberos requires that SPNs be associated with at least one service logon account (an account specifically tasked with running a service3(&lt;a class=&#34;link&#34; href=&#34;https://blogs.technet.microsoft.com/motiba/2018/02/23/detecting-kerberoasting-activity-using-azure-security-center/%29%29&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://blogs.technet.microsoft.com/motiba/2018/02/23/detecting-kerberoasting-activity-using-azure-security-center/))&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Adversaries possessing a valid Kerberos ticket-granting ticket (TGT) may request one or more Kerberos ticket-granting service (TGS) service tickets for any SPN from a domain controller (DC).1(&lt;a class=&#34;link&#34; href=&#34;https://github.com/EmpireProject/Empire/blob/master/data/module_source/credentials/Invoke-Kerberoast.ps1%292%28https://adsecurity.org/?p=2293&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/EmpireProject/Empire/blob/master/data/module_source/credentials/Invoke-Kerberoast.ps1)2(https://adsecurity.org/?p=2293&lt;/a&gt;) Portions of these tickets may be encrypted with the RC4 algorithm, meaning the Kerberos 5 TGS-REP etype 23 hash of the service account associated with the SPN is used as the private key and is thus vulnerable to offline &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Brute Force&lt;/a&gt; attacks that may expose plaintext credentials.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;Not good. But understanding this flow is exactly what we need as we move into the investigation.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/detectionstrategies/DET0157/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;MITRE ATT&amp;amp;CK&lt;/em&gt;&lt;/a&gt; also provides helpful detection guidance (&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/detectionstrategies/DET0157/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;DET0157&lt;/em&gt;&lt;/a&gt;) and recommends:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Monitoring for anomalous Kerberos TGS requests (Event ID 4769) with RC4 encryption (etype 0x17), accounts requesting an unusual number of service tickets in a short period, or service accounts targeted outside normal usage baselines. Also correlates suspicious process activity (e.g., Mimikatz invoking LSASS access) with Kerberos ticket anomalies.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;In other words, by combining these telemetry points and using them as the basis of our investigation, we can more confidently spot &lt;em&gt;Kerberoasting&lt;/em&gt; activity and scope its impact. Let’s give it a shot.&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-1-analyzing-domain-controller-security-logs-can-you-confirm-the-utc-date--time-when-the-kerberoasting-activity-occurred&#34;&gt;Question 1: Analyzing Domain Controller Security Logs, can you confirm the UTC date &amp;amp; time when the kerberoasting activity occurred?&#xA;&lt;/h3&gt;&lt;p&gt;Let’s kick off our investigation by extracting the challenge artifact, &lt;code&gt;campfire-1.zip&lt;/code&gt;, which leaves us with a folder named &lt;code&gt;Triage&lt;/code&gt;. Inside that folder, we’re given both Domain Controller artifacts and Workstation artifacts.&lt;/p&gt;&#xA;&lt;p&gt;For the Domain Controller evidence, we’ve got a Windows Security Event log named &lt;code&gt;security.evtx&lt;/code&gt;. This log contains, among many other things, authentication and ticket‑granting activity related to the domain. Since the question is asking us to confirm Kerberos‑related activity, this is a logical place to start.&lt;/p&gt;&#xA;&lt;p&gt;While we could analyze this log using the built‑in Windows Event Viewer, for this walkthrough I’m using &lt;a class=&#34;link&#34; href=&#34;https://eventlogxp.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Event Log Explorer&lt;/strong&gt;&lt;/a&gt;, a third‑party utility that significantly speeds up filtering and navigation during event log analysis. It’s already installed in my lab environment, and for investigations like this, it’s hard to beat.&lt;/p&gt;&#xA;&lt;p&gt;Once &lt;em&gt;Event Log Explorer&lt;/em&gt; is open, load the Domain Controller &lt;code&gt;security.evtx&lt;/code&gt;. From here, we can apply the &lt;em&gt;MITRE ATT&amp;amp;CK&lt;/em&gt; detection guidance we discussed in the &lt;em&gt;Kerberoasting&lt;/em&gt; primer and put it directly into practice.&lt;/p&gt;&#xA;&lt;p&gt;To do that:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Click the &lt;em&gt;Filter&lt;/em&gt; button in the toolbar&lt;/li&gt;&#xA;&lt;li&gt;Add &lt;em&gt;Event ID&lt;/em&gt; &lt;code&gt;[4769](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4769)&lt;/code&gt; (&lt;em&gt;A Kerberos service ticket was requested&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Select &lt;em&gt;Description Params&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Locate &lt;em&gt;Additional Information\Ticket Encryption Type&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Set the operator to &lt;em&gt;Equal&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Add the value &lt;code&gt;0x17&lt;/code&gt; (&lt;em&gt;RC4&lt;/em&gt; encryption)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;543423e65f0929f702561a3c3a70e1ec_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;372px&#34; data-flex-grow=&#34;155&#34; height=&#34;516&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/543423e65f0929f702561a3c3a70e1ec_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Applying the MITRE ATT&amp;amp;CK detection filters to our log&lt;/p&gt;&#xA;&lt;p&gt;After applying this filter, we’re left with exactly one matching event. That’s a strong signal and, conveniently, it’s all we need to answer &lt;strong&gt;Question 1&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;97f278113de7e746b0923486f717651f_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;368px&#34; data-flex-grow=&#34;153&#34; height=&#34;521&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/97f278113de7e746b0923486f717651f_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Pinpointing the matching event&lt;/p&gt;&#xA;&lt;p&gt;There’s one final detail to pay attention to. The question specifically asks for the &lt;strong&gt;UTC&lt;/strong&gt; date and time. Event Viewer and many third‑party tools often display timestamps in local time by default, which can easily trip you up if you’re not careful.&lt;/p&gt;&#xA;&lt;p&gt;To get the authoritative timestamp, double‑click the event, open the &lt;em&gt;XML&lt;/em&gt; tab, and look for the &lt;code&gt;&amp;lt;SystemTime&amp;gt;&lt;/code&gt; field. This value is recorded in UTC and removes any ambiguity around time zone conversion.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;18e54ee8ccedbf5f1a7badd148edaf48_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;350px&#34; data-flex-grow=&#34;145&#34; height=&#34;548&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/18e54ee8ccedbf5f1a7badd148edaf48_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Drilling into event properties to find the UTC &lt;code&gt;SystemTime&lt;/code&gt; value&lt;/p&gt;&#xA;&lt;p&gt;At this point, we’ve isolated the Kerberos service ticket request that matches known Kerberoasting indicators and identified the precise UTC timestamp associated with it. With that information in hand, we can confidently answer &lt;strong&gt;Question 1&lt;/strong&gt; and move forward with the investigation.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;41706b3dda495ae4624ed1532a7975b1_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1207px&#34; data-flex-grow=&#34;503&#34; height=&#34;159&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/41706b3dda495ae4624ed1532a7975b1_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;questions-2-3&#34;&gt;Questions 2 &amp;amp; 3:&#xA;&lt;/h3&gt;&lt;h4 id=&#34;what-is-the-service-name-that-was-targeted&#34;&gt;What is the Service Name that was targeted?&#xA;&lt;/h4&gt;&lt;h4 id=&#34;it-is-really-important-to-identify-the-workstation-from-which-this-activity-occurred-what-is-the-ip-address-of-the-workstation&#34;&gt;It is really important to identify the Workstation from which this activity occurred. What is the IP Address of the workstation?&#xA;&lt;/h4&gt;&lt;p&gt;To answer &lt;strong&gt;Questions 2 &amp;amp; 3&lt;/strong&gt;, we need to look a bit more closely at the event we identified in &lt;strong&gt;Question 1&lt;/strong&gt;. Specifically, we’re going to examine the &lt;em&gt;Description&lt;/em&gt; details for that Kerberos service ticket request. There’s a wealth of useful forensic information here, but for now we’re focused on two things: the service that was targeted and the workstation that made the request.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;b376967c4f52bc72c3a2eeaf3543caf7_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;368px&#34; data-flex-grow=&#34;153&#34; height=&#34;521&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/b376967c4f52bc72c3a2eeaf3543caf7_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Identifying the targeted service account and requesting client address&lt;/p&gt;&#xA;&lt;p&gt;If you recall from the primer, I mentioned that service accounts are the ones that typically have registered &lt;em&gt;Service Principal Names&lt;/em&gt;. We can see that pattern clearly in this event. Under &lt;em&gt;Service Information&lt;/em&gt;, the &lt;em&gt;Service Name&lt;/em&gt; field shows &lt;code&gt;MSSQLService&lt;/code&gt;. That immediately stands out because &lt;code&gt;MSSQLService&lt;/code&gt; is the SPN used by Microsoft SQL Server to authenticate database services. This fits neatly into the expected attack chain.&lt;/p&gt;&#xA;&lt;p&gt;That gives us our answer for &lt;strong&gt;Question 2&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Next, we need to identify the workstation responsible for making this request. This information lives a bit further down in the same event under &lt;em&gt;Network Information&lt;/em&gt;. Here we can see the &lt;em&gt;Client Address&lt;/em&gt;, which records the IPv4 address of the system that requested the service ticket.&lt;/p&gt;&#xA;&lt;p&gt;In this case, the address listed is &lt;code&gt;172.17.79.129&lt;/code&gt;. That tells us exactly where the request originated from and gives us a starting point for pivoting into the workstation‑side artifacts later in the investigation.&lt;/p&gt;&#xA;&lt;p&gt;With the targeted service identified and the requesting workstation pinned down, we’ve now answered &lt;strong&gt;Questions 2 &amp;amp; 3&lt;/strong&gt; and set ourselves up nicely for the next phase of analysis.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;af25971140b5e31ef7cef2b83c21b1b1_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;571px&#34; data-flex-grow=&#34;238&#34; height=&#34;336&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/af25971140b5e31ef7cef2b83c21b1b1_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;questions-4-5&#34;&gt;Questions 4 &amp;amp; 5:&#xA;&lt;/h3&gt;&lt;h4 id=&#34;now-that-we-have-identified-the-workstation-a-triage-including-powershell-logs-and-prefetch-files-are-provided-to-you-for-some-deeper-insights-so-we-can-understand-how-this-activity-occurred-on-the-endpoint-what-is-the-name-of-the-file-used-to-enumerate-active-directory-objects-and-possibly-find-kerberoastable-accounts-in-thenetwork&#34;&gt;Now that we have identified the workstation, a triage including PowerShell logs and Prefetch files are provided to you for some deeper insights so we can understand how this activity occurred on the endpoint. What is the name of the file used to Enumerate Active directory objects and possibly find Kerberoastable accounts in the network?&#xA;&lt;/h4&gt;&lt;h4 id=&#34;when-was-this-script-executed-utc&#34;&gt;When was this script executed? (UTC)&#xA;&lt;/h4&gt;&lt;p&gt;Moving right along, the next thing we need to tackle is figuring out exactly which tool was used on the workstation to enumerate Active Directory objects and discover Kerberoastable accounts with exposed SPNs. For that, we’ll pivot away from the Domain Controller and jump over to the workstation artifacts.&lt;/p&gt;&#xA;&lt;p&gt;The first artifact we’ll look at is the &lt;code&gt;PowerShell-Operational.evtx&lt;/code&gt; log. This log records PowerShell operational activity, including cmdlet execution and script content via &lt;em&gt;Script Block Logging&lt;/em&gt;. That makes it an excellent data source when we suspect malicious PowerShell activity on an endpoint.&lt;/p&gt;&#xA;&lt;p&gt;Jump back into &lt;strong&gt;Event Log Explorer&lt;/strong&gt; and load &lt;code&gt;PowerShell-Operational.evtx&lt;/code&gt;. From here, we’ll focus on &lt;em&gt;Event ID&lt;/em&gt; &lt;code&gt;4104&lt;/code&gt;, which corresponds to &lt;em&gt;PowerShell Script Block Logging&lt;/em&gt;. This event type often exposes exactly what code was executed, even if the script itself was run from disk or memory.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;5432871305ab561cd3470904a749bebe_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;370px&#34; data-flex-grow=&#34;154&#34; height=&#34;518&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/5432871305ab561cd3470904a749bebe_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Finding evidence of PowerView execution&lt;/p&gt;&#xA;&lt;p&gt;The evidence shows up across multiple &lt;code&gt;4104&lt;/code&gt; events, but by navigating to the earliest occurrences, we can see where this activity began. In those initial events, the script content clearly references &lt;code&gt;powerview.ps1&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;For context, &lt;strong&gt;PowerView&lt;/strong&gt; is a reconnaissance module that’s part of &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/software/S0194/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;PowerSploit&lt;/strong&gt;&lt;/a&gt;, an open‑source offensive PowerShell framework. &lt;em&gt;PowerView&lt;/em&gt; is used for domain enumeration tasks such as identifying user accounts, group memberships, and service accounts with SPNs. In other words, a very common tool used to discover Kerberoastable accounts during the discovery phase of an attack. This gives us what we need to answer &lt;strong&gt;Question 4&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/software/S0194/&#34;  title=&#34;https://attack.mitre.org/software/S0194/&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;PowerSploit&lt;/strong&gt;&#xA;_PowerSploit is an open source, offensive security framework comprised of PowerShell modules and scripts that perform a…_attack.mitre.org&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/software/S0194/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Since we’ve also identified the first &lt;em&gt;Script Block Logging&lt;/em&gt; event that references this file, we now have what we need to answer &lt;strong&gt;Question 5&lt;/strong&gt; as well. As before, the question asks for the execution time in &lt;strong&gt;UTC&lt;/strong&gt;, so we can’t rely on the default timestamp shown in the event viewer.&lt;/p&gt;&#xA;&lt;p&gt;To get the correct value, double‑click the event, switch to the &lt;em&gt;XML&lt;/em&gt; tab, and locate the &lt;code&gt;&amp;lt;SystemTime&amp;gt;&lt;/code&gt; field.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;54c503418a8f60d46a64325288f6a2d4_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;370px&#34; data-flex-grow=&#34;154&#34; height=&#34;518&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/54c503418a8f60d46a64325288f6a2d4_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Grabbing the timestamp of PowerView execution&lt;/p&gt;&#xA;&lt;p&gt;With the tool identified and the execution time confirmed, we’ve now answered &lt;strong&gt;Questions 4 &amp;amp; 5&lt;/strong&gt; and established how the attacker enumerated Active Directory from the endpoint.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;ec6a06a4324f4dea2cf847e4889940ed_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;964px&#34; data-flex-grow=&#34;402&#34; height=&#34;199&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/ec6a06a4324f4dea2cf847e4889940ed_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;3d42bd5690ba4660abcaabe5f621e79b_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1149px&#34; data-flex-grow=&#34;479&#34; height=&#34;167&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/3d42bd5690ba4660abcaabe5f621e79b_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;questions-6-7&#34;&gt;Questions 6 &amp;amp; 7:&#xA;&lt;/h3&gt;&lt;h4 id=&#34;what-is-the-full-path-of-the-tool-used-to-perform-the-actual-kerberoasting-attack&#34;&gt;What is the full path of the tool used to perform the actual kerberoasting attack?&#xA;&lt;/h4&gt;&lt;h4 id=&#34;when-was-the-tool-executed-to-dump-credentials-utc&#34;&gt;When was the tool executed to dump credentials? (UTC)&#xA;&lt;/h4&gt;&lt;p&gt;Our final pair of tasks is to figure out the tool that the attacker actually ran to perform the Kerberoasting attack against the Domain Controller. To do that, we’ll pivot away from event logs entirely and turn to our third forensic artifact: &lt;strong&gt;Windows Prefetch files.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;These files are located under the following directory in the challenge artifacts:&lt;/p&gt;&#xA;&lt;p&gt;\Triage\Workstation\2024-05-21T033012_triage_asset\C\Windows\prefetch&lt;/p&gt;&#xA;&lt;p&gt;Rather than reinvent the wheel explaining what these are and their value, I’ll borrow a solid explanation from &lt;a class=&#34;link&#34; href=&#34;https://www.magnetforensics.com/blog/forensic-analysis-of-prefetch-files-in-windows/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Magnet Forensics&lt;/strong&gt;&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Prefetch files are great artifacts for forensic investigators trying to analyze applications that have been run on a system. Windows creates a prefetch file when an application is run from a particular location for the very first time. This is used to help speed up the loading of applications. For investigators, these files contain some valuable data on a user’s application history on a computer.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;The idea here is that if we can parse these Prefetch files, we should be able to identify which executable was launched on the workstation during the attack window and determine its file path. This gives us visibility into the actual Kerberoasting tool used, even if it didn’t leave obvious footprints elsewhere.&lt;/p&gt;&#xA;&lt;p&gt;The downside is that Prefetch files aren’t meant to be read directly, so we need a way to convert them into something usable.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;448ae486ff20ba35e6cbf6d4a362b13d_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;369px&#34; data-flex-grow=&#34;154&#34; height=&#34;519&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/448ae486ff20ba35e6cbf6d4a362b13d_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;The contents of the prefetch folder&lt;/p&gt;&#xA;&lt;p&gt;Enter &lt;a class=&#34;link&#34; href=&#34;https://ericzimmerman.github.io/#!index.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;PECmd&lt;/strong&gt;&lt;/a&gt;, one of the many tools in &lt;em&gt;Eric Zimmerman’s&lt;/em&gt; suite. It’s built to parse the prefetch logs and it’s already loaded in the analysis environment, so we just need to run it from PowerShell. Here’s an example command where we tell &lt;code&gt;PECmd&lt;/code&gt; to parse the prefetch directory and output to a CSV called &lt;code&gt;investigation.csv&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;p&gt;To do that, we’ll use &lt;a class=&#34;link&#34; href=&#34;https://ericzimmerman.github.io/#!index.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;PECmd&lt;/strong&gt;&lt;/a&gt;, one of the tools in &lt;strong&gt;Eric Zimmerman’s&lt;/strong&gt; forensic suite. It’s specifically built to parse Prefetch files and extract execution metadata, and it’s already available in the analysis environment.&lt;/p&gt;&#xA;&lt;p&gt;From PowerShell, we can run the following command to parse the Prefetch directory and export the results to a CSV file:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;b5ef65766209614add8813763289e24a_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1411px&#34; data-flex-grow=&#34;588&#34; height=&#34;136&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/b5ef65766209614add8813763289e24a_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;.\PECmd.exe -d &amp;ldquo;C:\Users\vboxuser\Desktop\Challenges\Triage\Workstation\2024-05-21T033012_triage_asset\C\Windows\prefetch&amp;quot; &amp;ndash;csv &amp;ldquo;C:\Users\vboxuser\Desktop\Challenges&amp;rdquo;&amp;ndash;csvf investigation.csv&lt;/p&gt;&#xA;&lt;p&gt;Once the CSV is generated, we can open it using &lt;strong&gt;Timeline Explorer&lt;/strong&gt;, another Zimmerman tool that makes sorting and filtering forensic timelines much easier.&lt;/p&gt;&#xA;&lt;p&gt;Inside &lt;em&gt;Timeline Explorer&lt;/em&gt;, focus on the &lt;em&gt;Executable Name&lt;/em&gt; column. This is where we’re looking for the tool responsible for the Kerberoasting activity. Scanning through the results, one name immediately stands out among the normal background applications. Can you spot it?&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;2345008468bffe8521695e242c1455dd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;486px&#34; data-flex-grow=&#34;202&#34; height=&#34;395&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/2345008468bffe8521695e242c1455dd_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Timeline Explorer: Finding the tool that performed the kerberoasting and the time of execution&lt;/p&gt;&#xA;&lt;p&gt;The tool is &lt;strong&gt;Rubeus&lt;/strong&gt; (S1071), a well‑known Kerberos abuse tool frequently used to perform Kerberoasting, ticket harvesting, and other Kerberos‑focused attacks.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/software/S1071/&#34;  title=&#34;https://attack.mitre.org/software/S1071/&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Rubeus&lt;/strong&gt;&#xA;_Edit description_attack.mitre.org&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/software/S1071/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;To determine the full file path, select the &lt;em&gt;Files Loaded&lt;/em&gt; column for the &lt;em&gt;Rubeus&lt;/em&gt; entry and double‑click it to open the detailed view. This reveals the full path used when the executable was launched. Since Prefetch paths are recorded relative to the drive, we simply need to prepend &lt;code&gt;C:\&lt;/code&gt; to reconstruct the complete path to answer &lt;strong&gt;Question 6.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Finally, to answer &lt;strong&gt;Question 7&lt;/strong&gt;, we can pull the execution time directly from the &lt;em&gt;Last Run&lt;/em&gt; column in the Prefetch data. As with earlier steps, this timestamp is recorded in UTC, so no time zone conversion is required.&lt;/p&gt;&#xA;&lt;p&gt;At this point, we’ve identified the exact tool used to dump Kerberos service tickets, confirmed where it lived on disk, and pinned down when it was executed, neatly closing out &lt;strong&gt;Questions 6 &amp;amp; 7&lt;/strong&gt; and our investigation. Nice job!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;caffb41f0b1d5d476207fff5688f4a14_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;571px&#34; data-flex-grow=&#34;238&#34; height=&#34;336&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/caffb41f0b1d5d476207fff5688f4a14_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;conclusion&#34;&gt;Conclusion:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;img alt=&#34;b69ab59d31db6b09af0b2cbb2167b5f7_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;348px&#34; data-flex-grow=&#34;145&#34; height=&#34;551&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/b69ab59d31db6b09af0b2cbb2167b5f7_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Great challenge, how fun was that? A huge thank you to &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt; for another awesome challenge.&lt;/p&gt;&#xA;&lt;p&gt;This lab ended up being a good reminder of just how much signal exists in event logging if you take the time to really understand how domain authentication works. Kerberos isn’t new, and Kerberoasting isn’t either, but walking through the mechanics step by step makes it clear why weak service account hygiene still represents real risk in modern environments. Nothing wild here, just attackers leveraging expected behavior in ways defenders need to anticipate.&lt;/p&gt;&#xA;&lt;p&gt;What I appreciated most about this challenge is that there wasn’t a single log or artifact that magically answered everything. Instead, we had to move between Domain Controller security logs, &lt;em&gt;PowerShell&lt;/em&gt; operational telemetry, and workstation artifacts like Prefetch. Each source gave us part of the picture, but none of them stood on their own. Correlation is key.&lt;/p&gt;&#xA;&lt;p&gt;Leveraging &lt;em&gt;MITRE ATT&amp;amp;CK&lt;/em&gt; as a reference point also paid off here. Rather than hunting randomly, it helped home in on what to look for, why certain events were important, and how those signals might translate into detections later on. This is the kind of challenge that quietly reinforces how ATT&amp;amp;CK can guide both investigations and detection engineering without forcing the analysis into a rigid mold. Awesome stuff.&lt;/p&gt;&#xA;&lt;p&gt;If you got something out of this walkthrough, whether it helped you better understand Kerberos abuse, work through a stumbling block, or just served as a practical reference, feel free to give it a clap and follow along. I really appreciate the support, and I hope these write‑ups continue to be useful.&lt;/p&gt;&#xA;&lt;p&gt;Remember, cybersecurity is a team sport, and we’re in this together.&lt;/p&gt;&#xA;&lt;p&gt;Until next week’s challenge, stay curious and be safe out there.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;250&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-campfire-1-sherlock-walkthrough/897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; width=&#34;250&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;tools--references&#34;&gt;Tools &amp;amp; References:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Challenge Link:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Campfire-1?tab=play_sherlock&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/Campfire-1?tab=play_sherlock&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Flare-VM:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Steal or Forge Kerberos Tickets:&lt;/strong&gt; &lt;strong&gt;Kerberoasting(T1558.003):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1558/003/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1558/003/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft — “Microsoft’s guidance to help mitigate Kerberoasting”:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.microsoft.com/en-us/security/blog/2024/10/11/microsofts-guidance-to-help-mitigate-kerberoasting/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.microsoft.com/en-us/security/blog/2024/10/11/microsofts-guidance-to-help-mitigate-kerberoasting/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Event Log Explorer:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://eventlogxp.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://eventlogxp.com/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — “4769(S, F): A Kerberos service ticket was requested”:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4769&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4769&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Software — PowerSploit (S0194):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/software/S0194/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/software/S0194/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Magnet Forensics Blog — “&lt;/strong&gt;&lt;em&gt;Forensic Analysis of Prefetch files in Windows&lt;/em&gt;&lt;strong&gt;”:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.magnetforensics.com/blog/forensic-analysis-of-prefetch-files-in-windows/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.magnetforensics.com/blog/forensic-analysis-of-prefetch-files-in-windows/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Eric Zimmerman’s Tools:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://ericzimmerman.github.io/#!index.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://ericzimmerman.github.io/#!index.md&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Software — Rubeus (S1071):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/software/S1071/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/software/S1071/&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>HackTheBox  — LogJammer Sherlock Walkthrough</title>
            <link>https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/</link>
            <pubDate>Mon, 09 Feb 2026 00:00:00 +0000</pubDate>
            <guid>https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/</guid>
            <description>&lt;img src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/b36e3a3ac52db8f63644f36a9fd3cbb6_MD5.png&#34; alt=&#34;Featured image of post HackTheBox  — LogJammer Sherlock Walkthrough&#34; /&gt;&lt;h3 id=&#34;hacktheboxlogjammer-sherlock-walkthrough&#34;&gt;HackTheBox — LogJammer Sherlock Walkthrough&#xA;&lt;/h3&gt;&lt;h4 id=&#34;windows-event-log-forensics-investigating-persistence-malware-and-log-tampering-with-event-log-explorer--flarevm&#34;&gt;Windows Event Log Forensics: Investigating Persistence, Malware, and Log Tampering with Event Log Explorer &amp;amp; FLARE‑VM.&#xA;&lt;/h4&gt;&lt;p&gt;&lt;img alt=&#34;b36e3a3ac52db8f63644f36a9fd3cbb6_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;320&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/b36e3a3ac52db8f63644f36a9fd3cbb6_MD5.png&#34; width=&#34;320&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Image Credit: &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/LogJammer&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/LogJammer&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;introduction&#34;&gt;Introduction:&#xA;&lt;/h3&gt;&lt;p&gt;Welcome back to another weekly walkthrough! If you’ve stumbled across this blog while searching for a comprehensive guide to the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/LogJammer&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;LogJammer&lt;/strong&gt;&lt;/a&gt; Sherlock challenge from &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt;, you’re in the right place.&lt;/p&gt;&#xA;&lt;p&gt;This is the seventh challenge in the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/tracks/Intro-to-Blue-Team&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;Intro to Blue Team&lt;/em&gt;&lt;/a&gt; track, but you can jump in at any point. If you’re following along or you’re a completionist, check out my write-up of the previous free challenge — &lt;strong&gt;Meerkat&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/&#34; &gt;&lt;strong&gt;HackTheBox | Meerkat | Sherlock Walkthrough&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h4 id=&#34;challenge-scenario&#34;&gt;Challenge Scenario:&#xA;&lt;/h4&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;You have been presented with the opportunity to work as a junior DFIR consultant for a big consultancy. However, they have provided a technical assessment for you to complete. The consultancy Forela-Security would like to gauge your Windows Event Log Analysis knowledge. We believe the Cyberjunkie user logged in to his computer and may have taken malicious actions. Please analyze the given event logs and report back.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;This challenge is all about &lt;strong&gt;Windows Event Log Analysis&lt;/strong&gt; and leans heavily on choosing the correct log, filtering for specific event IDs, and weaving together activity across multiple logs. It’s up to us to meet the moment and show off our event log analysis skills. Don’t worry if you’re new to this topic — I’ll link plenty of helpful resources that you can use in your own investigations.&lt;/p&gt;&#xA;&lt;p&gt;But having great references is only half the battle. We also need solid tools. For this walkthrough, we’ll rely primarily on &lt;strong&gt;Event Log Explorer&lt;/strong&gt;, a tool that makes filtering, pivoting, and correlating events far faster than using the built‑in &lt;em&gt;Windows Event Viewer&lt;/em&gt;. It’s a huge timesaver when you’re staring down thousands of log entries.&lt;/p&gt;&#xA;&lt;p&gt;So, whether you’re new to Windows endpoint forensics or you just want to sharpen your analysis skills, this is a fantastic challenge to tackle. Let’s go!&lt;/p&gt;&#xA;&lt;p&gt;And, hey, if you find this walkthrough helpful — whether it levels up your skills, gets you over a stumbling block, or just serves as a handy reference — please consider following me to get more content like this.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for reading and going on this investigation with me!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;setup-the-analysis-environment--extract-the-challenge-file&#34;&gt;Setup the Analysis Environment &amp;amp; Extract the Challenge File:&#xA;&lt;/h3&gt;&lt;p&gt;Safety first! It’s always important when working with lab/challenge files from &lt;strong&gt;Hack the Box&lt;/strong&gt; &lt;em&gt;(or any educational lab/challenge/range)&lt;/em&gt; to keep yourself protected by performing these tasks in a dedicated, isolated virtual machine environment. As this is a Windows-based challenge, I’m using &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;FLARE-VM&lt;/strong&gt;&lt;/a&gt; for this challenge which is “&lt;em&gt;a collection of software installations scripts for Windows systems that allows you to easily setup and maintain a reverse engineering environment on a virtual machine (VM).&lt;/em&gt;”&lt;/p&gt;&#xA;&lt;p&gt;To keep this write-up focused I’m going to skip the step-by-step setup of &lt;em&gt;FLARE-VM&lt;/em&gt; but _i_f you’d like to set up your own environment, please follow the directions provided directly by &lt;em&gt;FLARE-VM&lt;/em&gt; on &lt;em&gt;GitHub.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  title=&#34;https://github.com/mandiant/flare-vm&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;GitHub — mandiant/flare-vm: A collection of software installations scripts for Windows systems that…&lt;/strong&gt;&#xA;_A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a…_github.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once you have a safe virtual environment created, updated, isolated, and snapshotted, we can extract the challenge file and start the investigation!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;question-1-when-did-the-cyberjunkie-user-first-successfully-log-into-his-computer-utc&#34;&gt;Question 1: When did the cyberjunkie user first successfully log into his computer? (UTC)&#xA;&lt;/h3&gt;&lt;p&gt;Now that we’ve gotten our analysis environment all set up, let’s kick off this investigation by extracting the challenge file and taking a look at the available artifacts.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;d9048ba2aa015e8784b5c7c2078c7061_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;648px&#34; data-flex-grow=&#34;270&#34; height=&#34;296&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/d9048ba2aa015e8784b5c7c2078c7061_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Overview of the challenge artifacts&lt;/p&gt;&#xA;&lt;p&gt;We have five Event Logs available in this challenge, each providing different insights:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Powershell‑Operational.evtx&lt;/strong&gt;: This event log contains &lt;em&gt;“details about PowerShell operations, such as starting and stopping the engine and providers, and executing PowerShell commands.”&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Security.evtx&lt;/strong&gt;: This event log contains &lt;em&gt;“logs related to logins, privileges, and other similar events.”&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;System.evtx&lt;/strong&gt;: This event log contains &lt;em&gt;“logs created by the operating system.”&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Windows Defender‑Operational.evtx&lt;/strong&gt;: This event log contains logs related to &lt;em&gt;Microsoft Defender Antivirus&lt;/em&gt; operational and malware‑related events.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Windows Firewall‑Firewall.evtx&lt;/strong&gt;: This event log contains events related to the &lt;em&gt;Windows Firewall with Advanced Security&lt;/em&gt;, including rule additions, modifications, and deletions.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Now that we understand what we’re working with, we can identify the correct log to answer &lt;strong&gt;Question 1&lt;/strong&gt;. Since we’re searching for a sign‑in event, we’ll work directly in the &lt;strong&gt;Security&lt;/strong&gt; log and filter for Event ID &lt;code&gt;4624&lt;/code&gt; (&amp;ldquo;An account was successfully logged on&amp;rdquo;).&lt;/p&gt;&#xA;&lt;p&gt;You can absolutely use the built‑in Windows Event Viewer, but there’s a more efficient option: &lt;a class=&#34;link&#34; href=&#34;https://eventlogxp.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Event Log Explorer&lt;/strong&gt;&lt;/a&gt;. Because &lt;em&gt;Event Log Explorer&lt;/em&gt; is already installed in the Flare‑VM analysis environment, that’s what I’ll be using in this walkthrough. I encourage you to try it if you aren’t familiar with it — the filtering features save a surprising amount of time.&lt;/p&gt;&#xA;&lt;h4 id=&#34;steps-in-event-logexplorer&#34;&gt;Steps in Event Log Explorer&#xA;&lt;/h4&gt;&lt;ol&gt;&#xA;&lt;li&gt;Open &lt;em&gt;Event Log Explorer&lt;/em&gt; and load &lt;code&gt;Security.evtx&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Click the &lt;strong&gt;Filter&lt;/strong&gt; button and enter &lt;code&gt;4624&lt;/code&gt; into the Event ID field.&lt;/li&gt;&#xA;&lt;li&gt;To narrow this down further, use &lt;strong&gt;Description params&lt;/strong&gt; → select &lt;em&gt;“New Logon\Account Name”&lt;/em&gt; → operator: &lt;em&gt;contains&lt;/em&gt; → value: &lt;code&gt;cyberjunkie&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;This returns only the successful logons for this user. Sort by time and double‑click the earliest entry.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;a6090e5c78d345aa1bebc3a4337de9d9_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;482px&#34; data-flex-grow=&#34;201&#34; height=&#34;398&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/a6090e5c78d345aa1bebc3a4337de9d9_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Filtering for 4624 events&lt;/p&gt;&#xA;&lt;p&gt;With the targeted filter in place, we can stumble straight into the events we need without digging through thousands of unrelated entries. Since we’re searching for the &lt;em&gt;first&lt;/em&gt; successful login, open the earliest one. From here, there’s one more thing we need: the &lt;strong&gt;UTC timestamp&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Double-click to open the event.&lt;/li&gt;&#xA;&lt;li&gt;Select the &lt;strong&gt;XML&lt;/strong&gt; tab.&lt;/li&gt;&#xA;&lt;li&gt;Expand the &lt;strong&gt;System&lt;/strong&gt; node.&lt;/li&gt;&#xA;&lt;li&gt;Look for the &lt;code&gt;TimeCreated &amp;gt; SystemTime&lt;/code&gt; attribute.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The &lt;code&gt;SystemTime&lt;/code&gt; value is always stored in UTC and is the timestamp you’ll need for the answer.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;4eb781454684604eaed74a7712842b8c_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;347px&#34; data-flex-grow=&#34;144&#34; height=&#34;553&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/4eb781454684604eaed74a7712842b8c_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Identifying the logon time in UTC&lt;/p&gt;&#xA;&lt;p&gt;Now that we’ve successfully identified the cyberjunkie’s first successful logon, we can move on to the next question.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;2f3125f8b50fe8bec4a50293307bc97f_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1263px&#34; data-flex-grow=&#34;526&#34; height=&#34;152&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/2f3125f8b50fe8bec4a50293307bc97f_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;questions-2-3&#34;&gt;Questions 2 &amp;amp; 3:&#xA;&lt;/h3&gt;&lt;h4 id=&#34;the-user-tampered-with-firewall-settings-on-the-system-analyze-the-firewall-event-logs-to-find-out-the-name-of-the-firewall-ruleadded&#34;&gt;The user tampered with firewall settings on the system. Analyze the firewall event logs to find out the Name of the firewall rule added?&#xA;&lt;/h4&gt;&lt;h4 id=&#34;whats-the-direction-of-the-firewallrule&#34;&gt;Whats the direction of the firewall rule?&#xA;&lt;/h4&gt;&lt;p&gt;Next up, we need to figure out what firewall rule &lt;em&gt;cyberjunkie&lt;/em&gt; tampered with. For this step, open the &lt;strong&gt;Windows Firewall‑Firewall.evtx&lt;/strong&gt; artifact in &lt;em&gt;Event Log Explorer&lt;/em&gt;. Just like before, there’s plenty of noise in this log, but we can cut through it by focusing on events that occurred &lt;em&gt;after&lt;/em&gt; the first &lt;em&gt;cyberjunkie&lt;/em&gt; sign‑in on 3/27/2023 at 10:37:09 AM.&lt;/p&gt;&#xA;&lt;p&gt;Filtering by time quickly helps us identify the events we care about. Near the top of the log, we’ll find an Event ID &lt;code&gt;2004&lt;/code&gt;, which indicates that a rule has been added to the Windows Defender Firewall exception rules.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;dd5a0b3d39aebad4f7d2d07013d085f7_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;721px&#34; data-flex-grow=&#34;300&#34; height=&#34;266&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/dd5a0b3d39aebad4f7d2d07013d085f7_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Finding a suspicious firewall exception rule&lt;/p&gt;&#xA;&lt;p&gt;Opening this event gives us everything we need. The rule name includes the name of a well‑known penetration testing tool: &lt;strong&gt;Metasploit&lt;/strong&gt;. Since this is a challenge scenario, that kind of red-flag naming is intentional and makes the rule easy to spot.&lt;/p&gt;&#xA;&lt;p&gt;Inside the same event, you’ll also find the &lt;code&gt;Direction&lt;/code&gt; attribute, which has a value of &lt;code&gt;2&lt;/code&gt;. In Windows Firewall terminology, that value represents an &lt;strong&gt;outbound&lt;/strong&gt; rule. Finally, we can correlate the &lt;code&gt;ModifyingUser&lt;/code&gt; SID to confirm that &lt;em&gt;cyberjunkie&lt;/em&gt; is indeed the account responsible for adding it.&lt;/p&gt;&#xA;&lt;p&gt;Now that we’ve extracted both the rule name and its direction, we’re ready to move on to the next part of the investigation.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;39fae4f9c1d4de8d9565c654e659c338_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;556px&#34; data-flex-grow=&#34;231&#34; height=&#34;345&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/39fae4f9c1d4de8d9565c654e659c338_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-4-the-user-changed-audit-policy-of-the-computer-whats-the-subcategory-of-this-changedpolicy&#34;&gt;Question 4: The user changed audit policy of the computer. Whats the Subcategory of this changed policy?&#xA;&lt;/h3&gt;&lt;p&gt;Our next task is to identify a change to the computer’s audit policy and determine the subcategory that was modified. This is an event I’m not familiar with off‑hand, so this is a good time to pivot and do a little research.&lt;/p&gt;&#xA;&lt;p&gt;One of my favorite quick‑reference resources for security event IDs is the &lt;a class=&#34;link&#34; href=&#34;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/default.aspx?i=j&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Ultimate Windows Security Windows Security Log Events Encyclopedia&lt;/strong&gt;&lt;/a&gt;. A simple search for &lt;em&gt;“audit policy”&lt;/em&gt; points us toward Event ID &lt;code&gt;4719&lt;/code&gt;, which corresponds to &lt;em&gt;“System audit policy was changed.”&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4719&#34;  title=&#34;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4719&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Windows Security Log Event ID 4719 - System audit policy was changed&lt;/strong&gt;&#xA;_4719: System audit policy was changed On this page This computer&amp;rsquo;s system level audit policy was modified - either via…_www.ultimatewindowssecurity.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4719&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now that we’ve identified the correct event, we can return to &lt;code&gt;Security.evtx&lt;/code&gt; in &lt;em&gt;Event Log Explorer&lt;/em&gt; and apply a filter for Event ID &lt;code&gt;4719&lt;/code&gt;. This gives us a single event, which makes our job nice and straightforward. We just need to grab the &lt;strong&gt;Subcategory&lt;/strong&gt; value from the event details to answer the question.&lt;/p&gt;&#xA;&lt;p&gt;Once we extract that field, we’ll have everything we need for &lt;strong&gt;Question 4&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;68a56f439e65f8b212c30a13bb22a299_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;813px&#34; data-flex-grow=&#34;338&#34; height=&#34;236&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/68a56f439e65f8b212c30a13bb22a299_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Identifying the subcategory in Event ID 4719&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;3a0ed7a3635065ea0e8d62debb195076_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1263px&#34; data-flex-grow=&#34;526&#34; height=&#34;152&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/3a0ed7a3635065ea0e8d62debb195076_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;questions-5-6-7&#34;&gt;Questions 5, 6, &amp;amp; 7:&#xA;&lt;/h3&gt;&lt;h4 id=&#34;the-user-cyberjunkie-created-a-scheduled-task-whats-the-name-of-thistask&#34;&gt;The user “cyberjunkie” created a scheduled task. Whats the name of this task?&#xA;&lt;/h4&gt;&lt;h4 id=&#34;whats-the-full-path-of-the-file-which-was-scheduled-for-thetask&#34;&gt;Whats the full path of the file which was scheduled for the task?&#xA;&lt;/h4&gt;&lt;h4 id=&#34;what-are-the-arguments-of-thecommand&#34;&gt;What are the arguments of the command?&#xA;&lt;/h4&gt;&lt;p&gt;Moving right along, &lt;strong&gt;Questions 5, 6,&lt;/strong&gt; and &lt;strong&gt;7&lt;/strong&gt; focus on identifying a scheduled task created by &lt;em&gt;cyberjunkie&lt;/em&gt;. This is important because scheduled tasks are a classic persistence technique. An attacker can schedule recurring execution of scripts or binaries to maintain access long after their initial intrusion. This technique maps directly to &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1053/005/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;MITRE ATT&amp;amp;CK Scheduled Task/Job: Scheduled Task (T1053.005)&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To investigate this, we’ll turn again to the &lt;em&gt;Ultimate Windows Security Windows Security Log Events Encyclopedia&lt;/em&gt;. A quick lookup shows that scheduled task creation is logged as Event ID &lt;code&gt;4698&lt;/code&gt;, which corresponds to &lt;em&gt;“A scheduled task was created.”&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4698&#34;  title=&#34;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4698&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Windows Security Log Event ID 4698 - A scheduled task was created&lt;/strong&gt;&#xA;_4698: A scheduled task was created On this page The user indicated in Subject: just created a new scheduled task (Start…_www.ultimatewindowssecurity.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4698&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;With that information in hand, we return to &lt;code&gt;Security.evtx&lt;/code&gt; in &lt;em&gt;Event Log Explorer&lt;/em&gt; and adjust our filter to Event ID &lt;code&gt;4698&lt;/code&gt;. Just like in the previous questions, this gives us a single event to review, making the analysis easy.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;6856902d3b35f1f6ce1641c658375010_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;342px&#34; data-flex-grow=&#34;142&#34; height=&#34;561&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/6856902d3b35f1f6ce1641c658375010_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Analyzing the scheduled task&lt;/p&gt;&#xA;&lt;p&gt;Reviewing the event description reveals everything we need to answer all three questions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The name of the scheduled task&lt;/li&gt;&#xA;&lt;li&gt;The full path to the &lt;em&gt;PowerShell&lt;/em&gt; script (&lt;code&gt;Automation-HTB.ps1&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;The command‑line arguments used when the task was created&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Once we extract those details, we’ve successfully solved &lt;strong&gt;Questions 5, 6,&lt;/strong&gt; and &lt;strong&gt;7&lt;/strong&gt; — and we’re ready to stumble into the next part of the investigation.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;bb86a9a337472aa6e860759758c03cab_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;387px&#34; data-flex-grow=&#34;161&#34; height=&#34;496&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/bb86a9a337472aa6e860759758c03cab_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;questions-8-9-10&#34;&gt;Questions 8, 9, &amp;amp; 10:&#xA;&lt;/h3&gt;&lt;h4 id=&#34;the-antivirus-running-on-the-system-identified-a-threat-and-performed-actions-on-it-which-tool-was-identified-as-malware-by-antivirus&#34;&gt;The antivirus running on the system identified a threat and performed actions on it. Which tool was identified as malware by antivirus?&#xA;&lt;/h4&gt;&lt;h4 id=&#34;whats-the-full-path-of-the-malware-which-raised-thealert&#34;&gt;Whats the full path of the malware which raised the alert?&#xA;&lt;/h4&gt;&lt;h4 id=&#34;what-action-was-taken-by-the-antivirus&#34;&gt;What action was taken by the antivirus?&#xA;&lt;/h4&gt;&lt;p&gt;Questions 8, 9, and 10 all focus on malware detection activity on the compromised device. To answer them, we’ll work with the &lt;strong&gt;Windows Defender‑Operational.evtx&lt;/strong&gt; artifact, which contains logs related to &lt;em&gt;Microsoft Defender Antivirus&lt;/em&gt; operational and malware‑related events.&lt;/p&gt;&#xA;&lt;p&gt;Load this artifact into &lt;em&gt;Event Log Explorer&lt;/em&gt;. For this investigation, we’ll filter for Event IDs &lt;code&gt;1116&lt;/code&gt; and &lt;code&gt;1117&lt;/code&gt;. According to &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-microsoft-defender-antivirus#event-id-1116&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Microsoft Learn&lt;/a&gt;, these correspond to:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;1116&lt;/code&gt; — &lt;em&gt;MALWAREPROTECTION_STATE_MALWARE_DETECTED&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;1117&lt;/code&gt; — &lt;em&gt;MALWAREPROTECTION_STATE_MALWARE_ACTION_TAKEN&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Even though this log contains a lot of noise, we can narrow things down again by focusing only on events that occurred &lt;em&gt;after&lt;/em&gt; the first &lt;em&gt;cyberjunkie&lt;/em&gt; login. Doing this drops us down to only four events: two detections (&lt;code&gt;1116&lt;/code&gt;) and two actions (&lt;code&gt;1117&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;a9149e434aa29ab8c57acfdfc08daba7_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1078px&#34; data-flex-grow=&#34;449&#34; height=&#34;178&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/a9149e434aa29ab8c57acfdfc08daba7_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Defender events after the threat actor sign-in&lt;/p&gt;&#xA;&lt;p&gt;Looking at the &lt;code&gt;1116&lt;/code&gt; events, we see that &lt;em&gt;Microsoft Defender&lt;/em&gt; detected two components of &lt;strong&gt;SharpHound&lt;/strong&gt; (&lt;code&gt;SharpHound.ps1&lt;/code&gt; and &lt;code&gt;SharpHound.exe&lt;/code&gt;). SharpHound is the ingestor module for &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/software/S0521/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;BloodHound&lt;/strong&gt;&lt;/a&gt;, a well‑known Active Directory reconnaissance tool frequently used by red teams and attackers. Both files were bundled together in a single &lt;code&gt;.zip&lt;/code&gt; archive, and the detection explicitly references that tool — which answers &lt;strong&gt;Question 8&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;79d083010d05247f88ad3e9920abc8f8_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;800&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/79d083010d05247f88ad3e9920abc8f8_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Identifying SharpHound activity through the Windows Defender Logs&lt;/p&gt;&#xA;&lt;p&gt;To answer &lt;strong&gt;Questions 9&lt;/strong&gt; and &lt;strong&gt;10&lt;/strong&gt;, we can check either of the &lt;code&gt;1117&lt;/code&gt; events. These entries provide:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The &lt;strong&gt;full path&lt;/strong&gt; where the malware files were located&lt;/li&gt;&#xA;&lt;li&gt;The &lt;strong&gt;action taken&lt;/strong&gt; by the antivirus engine&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;With this information, we can fully resolve all three questions!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;d02c72b5366f4632853ca38e3ed3fccd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;376px&#34; data-flex-grow=&#34;156&#34; height=&#34;510&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/d02c72b5366f4632853ca38e3ed3fccd_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-11-the-user-used-powershell-to-execute-commands-what-command-was-executed-by-theuser&#34;&gt;Question 11: The user used Powershell to execute commands. What command was executed by the user?&#xA;&lt;/h3&gt;&lt;p&gt;We’re nearing the end of this investigation, but we still have a few artifacts left to analyze. This time, we’ll pivot to the &lt;strong&gt;Powershell‑Operational.evtx&lt;/strong&gt; log. As before, load the log into &lt;em&gt;Event Log Explorer&lt;/em&gt; so we can filter the entries and focus only on events from the date of the attack.&lt;/p&gt;&#xA;&lt;p&gt;In the filter options, select the date checkbox and set both the &lt;em&gt;From&lt;/em&gt; and &lt;em&gt;To&lt;/em&gt; values to &lt;strong&gt;3/27/2023&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;ca89e5d8c05cb0f9f661852c146fd74d_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;316px&#34; data-flex-grow=&#34;132&#34; height=&#34;606&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/ca89e5d8c05cb0f9f661852c146fd74d_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Filtering the PowerShell log for the date of the attack&lt;/p&gt;&#xA;&lt;p&gt;Because this device has PowerShell script block logging enabled, we can home in on Event ID &lt;code&gt;4104&lt;/code&gt; to collect insights into what commands were executed. &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows?view=powershell-7.5#viewing-the-powershell-event-log-entries-on-windows&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Event ID 4104&lt;/a&gt; records script block content, which often includes some handy forensic data like the full command line used in a PowerShell session. Check it out:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;73c01844f3501b9ef406138f74f7e560_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;513px&#34; data-flex-grow=&#34;213&#34; height=&#34;374&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/73c01844f3501b9ef406138f74f7e560_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Identifying the Script Block Contents&lt;/p&gt;&#xA;&lt;p&gt;The second event gives us the full command. In this case, &lt;em&gt;cyberjunkie&lt;/em&gt; executed a PowerShell command to determine the MD5 hash of the &lt;code&gt;Automation-HTB.ps1&lt;/code&gt; script we identified back in &lt;strong&gt;Question 6&lt;/strong&gt;. It’s not the most exciting example of an attacker command, but it’s still a great demonstration of how much forensic insight script block logging can provide.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;8f1b31bf5ce6d291fa8843b4f47f84df_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1230px&#34; data-flex-grow=&#34;512&#34; height=&#34;156&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/8f1b31bf5ce6d291fa8843b4f47f84df_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-12-we-suspect-the-user-deleted-some-event-logs-which-event-log-file-wascleared&#34;&gt;Question 12: We suspect the user deleted some event logs. Which Event log file was cleared?&#xA;&lt;/h3&gt;&lt;p&gt;And finally, we’ve made it to the end of our investigation. To answer &lt;strong&gt;Question 12&lt;/strong&gt;, we’re looking for signs that the attacker attempted to cover their tracks by deleting event logs. Tampering with logs is a classic indicator removal technique and maps directly to &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1070/001/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Clear Windows Event Logs (T1070.001)&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;There are two locations we need to check. The first is the &lt;code&gt;Security.evtx&lt;/code&gt; log. Here, we can filter for Event ID &lt;code&gt;1102&lt;/code&gt;, which corresponds to &lt;em&gt;“The audit log was cleared.”&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=1102&#34;  title=&#34;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=1102&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Windows Security Log Event ID 1102 - The audit log was cleared&lt;/strong&gt;&#xA;_1102: The audit log was cleared On this page Event 1102 is logged whenever the Security log is cleared, REGARDLESS of…_www.ultimatewindowssecurity.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=1102&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;82b497682972832f11e996fad79bf027_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1015px&#34; data-flex-grow=&#34;423&#34; height=&#34;189&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/82b497682972832f11e996fad79bf027_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Event ID 1102&lt;/p&gt;&#xA;&lt;p&gt;While this confirms that the &lt;em&gt;Security&lt;/em&gt; log was indeed cleared, this isn’t the answer we’re looking for. The question asks which Event Log file was cleared, and &lt;code&gt;1102&lt;/code&gt; only tells us the &lt;em&gt;Security&lt;/em&gt; log was wiped, but the challenge data suggests additional tampering.&lt;/p&gt;&#xA;&lt;p&gt;That brings us to the artifact we haven’t touched yet: the &lt;strong&gt;System.evtx&lt;/strong&gt; log.&lt;/p&gt;&#xA;&lt;p&gt;Load &lt;code&gt;System.evtx&lt;/code&gt; into &lt;em&gt;Event Log Explorer&lt;/em&gt; and filter for Event ID &lt;code&gt;104&lt;/code&gt;, which corresponds to &lt;em&gt;“&lt;/em&gt;[&lt;em&gt;Other log file cleared&lt;/em&gt;](&lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/windows/security/operating-system-security/device-management/use-windows-event-forwarding-to-assist-in-intrusion-detection#appendix-e---&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/windows/security/operating-system-security/device-management/use-windows-event-forwarding-to-assist-in-intrusion-detection#appendix-e---&lt;/a&gt;&#xA;annotated-baseline-subscription-event-query)&lt;em&gt;.”&lt;/em&gt; This event is generated when &lt;strong&gt;any&lt;/strong&gt; log except the Security log is cleared.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;c13f763573a967e2ec35e0ab7b3dafbb_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;758px&#34; data-flex-grow=&#34;316&#34; height=&#34;253&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/c13f763573a967e2ec35e0ab7b3dafbb_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Event Log Explorer: Identifying the cleared log file with Event ID 104&lt;/p&gt;&#xA;&lt;p&gt;Bingo. The top event from the day of the attack shows exactly what we need. Event ID &lt;code&gt;104&lt;/code&gt; reveals that the attacker cleared the &lt;strong&gt;Microsoft-Windows-Windows Firewall with Advanced Security/Firewall&lt;/strong&gt; log.&lt;/p&gt;&#xA;&lt;p&gt;With this final piece of the puzzle, we’ve wrapped up the investigation and uncovered an attempt by &lt;em&gt;cyberjunkie&lt;/em&gt; to cover his tracks by wiping the event logs. Nice work!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;2394339c1bb924b48436ccf431485512_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1271px&#34; data-flex-grow=&#34;529&#34; height=&#34;151&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/2394339c1bb924b48436ccf431485512_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;conclusion&#34;&gt;Conclusion:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;img alt=&#34;8601c535ca974d220ed5d0bf6514cd0c_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;307px&#34; data-flex-grow=&#34;128&#34; height=&#34;625&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/8601c535ca974d220ed5d0bf6514cd0c_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;How fun was that! A big thank you to &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt; for another fantastic challenge.&lt;/p&gt;&#xA;&lt;p&gt;This challenge was another awesome entry in the Intro to Blue Team track with a tight focus on &lt;strong&gt;Windows Event Log Analysis&lt;/strong&gt;, correlating activity across multiple logs, filtering specific event IDs, and piecing together the &lt;em&gt;cyberjunkie&lt;/em&gt; user’s actions step‑by‑step.&lt;/p&gt;&#xA;&lt;p&gt;As we moved through the investigation, we followed the attacker’s trail across authentication events, firewall tampering, audit policy changes, scheduled task creation, malware detections, script block execution, and even attempts at covering their tracks through log clearing. Each question built naturally into the next, creating a clear and logical narrative that mirrors real‑world DFIR work. It was a great reminder of how much visibility Windows logs provide — if we know where to look.&lt;/p&gt;&#xA;&lt;p&gt;I chose this week’s challenge to brush up on some Event IDs I don’t use every day, add a few new ones to my notebook (which I’ve added in the quick reference below), and sharpen my workflow using &lt;em&gt;Event Log Explorer&lt;/em&gt;. It’s always a cool experience to piece together an attack using only a handful of logging artifacts. It just goes to show how powerful proper log analysis can be when it comes to uncovering malicious activity. Great stuff!&lt;/p&gt;&#xA;&lt;p&gt;Thanks for your support and partnering on this investigation. If you found this walkthrough helpful — please give it a clap and consider following me! Your feedback is invaluable, and it pumps me up to support your security journey. Remember, cybersecurity is a team sport, and we’re in this together!&lt;/p&gt;&#xA;&lt;p&gt;Until next week’s challenge — stay curious and be safe out there!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;250&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-logjammer-sherlock-walkthrough/897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; width=&#34;250&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;quick-reference-event-ids-wecovered&#34;&gt;Quick Reference: Event IDs we covered&#xA;&lt;/h3&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;4624&lt;/code&gt; — &lt;strong&gt;Successful logon&lt;/strong&gt; (&lt;em&gt;Security.evtx&lt;/em&gt;). Use &lt;em&gt;New Logon\Account Name&lt;/em&gt; in &lt;em&gt;Event Log Explorer&lt;/em&gt; to pinpoint the user&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;2004&lt;/code&gt; — &lt;strong&gt;Windows Defender Firewall rule added&lt;/strong&gt; (&lt;em&gt;Windows Firewall‑Firewall.evtx&lt;/em&gt;). Includes rule name, direction, and modifying user SID&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;4719&lt;/code&gt; — &lt;strong&gt;System audit policy changed&lt;/strong&gt; (&lt;em&gt;Security.evtx&lt;/em&gt;). Look for &lt;em&gt;Subcategory&lt;/em&gt; and related GUIDs&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;4698&lt;/code&gt; — &lt;strong&gt;Scheduled task created&lt;/strong&gt; (&lt;em&gt;Security.evtx&lt;/em&gt;). Task XML reveals &lt;code&gt;&amp;lt;Command&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;Arguments&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;1116&lt;/code&gt; — &lt;strong&gt;Malware detected&lt;/strong&gt; (&lt;em&gt;Windows Defender‑Operational.evtx&lt;/em&gt;). Threat name and often the container path&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;1117&lt;/code&gt; — &lt;strong&gt;Malware action taken&lt;/strong&gt; (&lt;em&gt;Windows Defender‑Operational.evtx&lt;/em&gt;). Action such as &lt;em&gt;Quarantined&lt;/em&gt;, &lt;em&gt;Removed&lt;/em&gt;, or &lt;em&gt;Blocked&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;4104&lt;/code&gt; — &lt;strong&gt;PowerShell Script Block Logging&lt;/strong&gt; (&lt;em&gt;Powershell‑Operational.evtx&lt;/em&gt;). Captures script block contents and the full command line&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;1102&lt;/code&gt; — &lt;strong&gt;Security log cleared&lt;/strong&gt; (&lt;em&gt;Security.evtx&lt;/em&gt;). Indicates the audit log was wiped&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;104&lt;/code&gt; — &lt;strong&gt;Other Windows log cleared&lt;/strong&gt; (&lt;em&gt;System.evtx&lt;/em&gt;). Specifies the exact channel, e.g., &lt;em&gt;Microsoft‑Windows‑Windows Firewall with Advanced Security/Firewall&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;tools--references&#34;&gt;Tools &amp;amp; References:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Challenge Link:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/LogJammer&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/LogJammer&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Flare-VM:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Ultimate IT Security — Windows Security Log Events:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/default.aspx&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/default.aspx&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — about_Logging_Windows:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows?view=powershell-7.5&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows?view=powershell-7.5&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Tech Community — Windows Events, how to collect them in Sentinel and which way is preferred to detect Incidents:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://techcommunity.microsoft.com/blog/fasttrackforazureblog/windows-events-how-to-collect-them-in-sentinel-and-which-way-is-preferred-to-det/3997342&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://techcommunity.microsoft.com/blog/fasttrackforazureblog/windows-events-how-to-collect-them-in-sentinel-and-which-way-is-preferred-to-det/3997342&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — Review event logs and error codes to troubleshoot issues with Microsoft Defender Antivirus:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-microsoft-defender-antivirus&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-microsoft-defender-antivirus&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — Configure Windows Firewall logging:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/windows/security/operating-system-security/network-security/windows-firewall/configure-logging?tabs=intune&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/windows/security/operating-system-security/network-security/windows-firewall/configure-logging?tabs=intune&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — 4624(S): An account was successfully logged on:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4624&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4624&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Scheduled Task/Job: Scheduled Task (T1053.005):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1053/005/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Scheduled Task/Job: Scheduled Task, Sub-technique T1053.005 — Enterprise | MITRE ATT&amp;amp;CK®&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Software — BloodHound (S0521):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/software/S0521/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/software/S0521/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Indicator Removal: Clear Windows Event Logs (T1070.001):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1070/001/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1070/001/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — Use Windows Event Forwarding to help with intrusion detection:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/windows/security/operating-system-security/device-management/use-windows-event-forwarding-to-assist-in-intrusion-detection&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/windows/security/operating-system-security/device-management/use-windows-event-forwarding-to-assist-in-intrusion-detection&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>HackTheBox  — Meerkat Sherlock Walkthrough</title>
            <link>https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/</link>
            <pubDate>Mon, 01 Dec 2025 00:00:00 +0000</pubDate>
            <guid>https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/</guid>
            <description>&lt;img src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/69f67d90ab4853aae81ff12ddc8041f8_MD5.png&#34; alt=&#34;Featured image of post HackTheBox  — Meerkat Sherlock Walkthrough&#34; /&gt;&lt;h3 id=&#34;hackthebox--meerkat--sherlock-walkthrough&#34;&gt;HackTheBox | Meerkat | Sherlock Walkthrough&#xA;&lt;/h3&gt;&lt;h4 id=&#34;network-packet-forensics-investigating-credential-stuffing-and-persistence-with-zui-wireshark--networkminer&#34;&gt;Network Packet Forensics: Investigating Credential Stuffing and Persistence with Zui, Wireshark &amp;amp; NetworkMiner.&#xA;&lt;/h4&gt;&lt;p&gt;&lt;img alt=&#34;69f67d90ab4853aae81ff12ddc8041f8_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;320&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/69f67d90ab4853aae81ff12ddc8041f8_MD5.png&#34; width=&#34;320&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Image Credit: &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/552/play&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/552/play&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;introduction&#34;&gt;Introduction:&#xA;&lt;/h3&gt;&lt;p&gt;Welcome back to another weekly walkthrough! If you’ve stumbled across this blog while searching for a comprehensive guide to the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/552&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Meerkat&lt;/strong&gt;&lt;/a&gt; Sherlock challenge from &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt;, you’re in the right place.&lt;/p&gt;&#xA;&lt;p&gt;This is the fifth challenge in the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/tracks/Intro-to-Blue-Team&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;Intro to Blue Team&lt;/em&gt;&lt;/a&gt; track, but you can jump in at any point. If you’re following along or you’re a completionist, check out my write-up of the previous free challenge — &lt;strong&gt;Unit42&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/&#34; &gt;&lt;strong&gt;HackTheBox | Unit42 | Sherlock Walkthrough&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This challenge leans heavily into network forensics using a real-world inspired narrative. It’s up to us to piece together what happened using only the provided network packet capture (PCAP) file. To analyze this file, we’ll rely on three powerful tools:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Zui&lt;/strong&gt; (&lt;em&gt;formerly Brim&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Wireshark&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;NetworkMiner&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Using a broad set of tools for different purposes is a great way to go hands-on with multiple utilities and compare their strengths and weaknesses as they apply to identifying artifacts.&lt;/p&gt;&#xA;&lt;p&gt;So, if you’re new to network forensics or just want to sharpen your analysis skills, this is a fantastic challenge to dive into. Let’s get into it!&lt;/p&gt;&#xA;&lt;p&gt;And if you find this walkthrough helpful — whether it levels-up your skills, gets you over a stumbling block, or serves as a handy reference — please give it a clap and consider following me for more content like this.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for reading and going on this investigation with me!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;challenge-scenario&#34;&gt;Challenge Scenario:&#xA;&lt;/h3&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;As a fast-growing startup, Forela has been utilising a business management platform. Unfortunately, our documentation is scarce, and our administrators aren’t the most security aware. As our new security provider we’d like you to have a look at some PCAP and log data we have exported to confirm if we have (or have not) been compromised.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;setup-the-analysis-environment--extract-the-challenge-file&#34;&gt;Setup the Analysis Environment &amp;amp; Extract the Challenge File:&#xA;&lt;/h3&gt;&lt;p&gt;Safety first! It’s always important when working with lab/challenge files from &lt;strong&gt;Hack the Box&lt;/strong&gt; &lt;em&gt;(or any educational lab/challenge/range)&lt;/em&gt; to keep yourself protected by performing these tasks in a dedicated, isolated virtual machine environment. I’m using &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;FLARE-VM&lt;/strong&gt;&lt;/a&gt; for this challenge:&lt;/p&gt;&#xA;&lt;p&gt;“&lt;em&gt;a collection of software installations scripts for Windows systems that allows you to easily setup and maintain a reverse engineering environment on a virtual machine (VM).&lt;/em&gt;”&lt;/p&gt;&#xA;&lt;p&gt;To keep this write-up focused I’m going to skip the step-by-step setup of &lt;em&gt;FLARE-VM&lt;/em&gt; but _i_f you’d like to set up your own environment, please follow the directions provided directly by &lt;em&gt;FLARE-VM&lt;/em&gt; on &lt;em&gt;GitHub.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  title=&#34;https://github.com/mandiant/flare-vm&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;GitHub — mandiant/flare-vm: A collection of software installations scripts for Windows systems that…&lt;/strong&gt;&#xA;_A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a…_github.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once you have a safe virtual environment created, updated, isolated, and snapshotted, we can extract the challenge file and start the investigation!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;question-1-we-believe-our-business-management-platform-server-has-been-compromised-please-can-you-confirm-the-name-of-the-application-running&#34;&gt;Question 1: We believe our Business Management Platform server has been compromised. Please can you confirm the name of the application running?&#xA;&lt;/h3&gt;&lt;p&gt;First things first — let’s extract the challenge file using the provided password. Inside the archive, we’ll find two artifacts for analysis:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;meerkaat.pcap&lt;/code&gt;: a network packet capture file containing raw network data.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;meerkat-alerts.json&lt;/code&gt;: a JSON file with alert logs from an intrusion detection system.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;7101fffc12ce4255f26b0096a99afc5e_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;426px&#34; data-flex-grow=&#34;177&#34; height=&#34;450&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/7101fffc12ce4255f26b0096a99afc5e_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;We’ll start our investigation by leveraging &lt;a class=&#34;link&#34; href=&#34;https://www.brimdata.io/download/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Zui&lt;/strong&gt;&lt;/a&gt; (&lt;em&gt;formerly called Brim&lt;/em&gt;), which can display &lt;a class=&#34;link&#34; href=&#34;https://zui.brimdata.io/docs/features/Packet-Captures#local-suricata-rules-folder&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;Suricata&lt;/em&gt;&lt;/a&gt; alerts already present in the challenge data.&lt;/p&gt;&#xA;&lt;p&gt;For our purposes, this means that we don’t need to review the second artifact separately because the &lt;em&gt;Suricata&lt;/em&gt; alert data is already embedded in the pcap and can be pulled out using &lt;em&gt;Brimcap&lt;/em&gt; queries. This makes it much easier to focus on the relevant details we need, including the application running on the web server.&lt;/p&gt;&#xA;&lt;p&gt;So, where to begin? The first step is to download, install, and open &lt;strong&gt;Zui&lt;/strong&gt; if you don’t already have it in your analysis environment. Once that’s done, you might notice the &lt;em&gt;Suricata&lt;/em&gt; queries aren’t readily available which was the case in my environment.&lt;/p&gt;&#xA;&lt;p&gt;To grab the queries I used in this walkthrough, visit the &lt;a class=&#34;link&#34; href=&#34;https://github.com/brimdata/brimcap&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Brimcap GitHub&lt;/strong&gt;&lt;/a&gt; repository. While &lt;em&gt;Brimcap&lt;/em&gt; is bundled into the &lt;em&gt;Zui&lt;/em&gt; desktop app, I needed to follow the directions to install the &lt;em&gt;Brimcap&lt;/em&gt; queries:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Included in this repo is a &lt;code&gt;queries.json&lt;/code&gt; file with some helpful queries for getting started and exploring Zeek and Suricata analyzed data within the Zui app.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;To import these queries:&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Download the &lt;code&gt;[queries.json](https://github.com/brimdata/brimcap/blob/main/queries.json?raw=1)&lt;/code&gt; file to your local system&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;In Zui, click the + menu in the upper-left corner of the app window and select Import Queries…&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Open the downloaded file in the file picker utility&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;5dfdb21d2572d0eec08ec3a8810f331b_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;680px&#34; data-flex-grow=&#34;283&#34; height=&#34;282&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/5dfdb21d2572d0eec08ec3a8810f331b_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Zui: Importing Brimcap Queries&lt;/p&gt;&#xA;&lt;p&gt;This gives us some extremely handy queries for analysis. If you haven’t already, load the &lt;code&gt;meerkaat.pcap&lt;/code&gt; file into &lt;em&gt;Zui&lt;/em&gt; so we can query the pool.&lt;/p&gt;&#xA;&lt;p&gt;To answer &lt;strong&gt;Question 1&lt;/strong&gt;, use the new &lt;em&gt;Brimcap&lt;/em&gt; queries by selecting &lt;em&gt;Suricata Alerts by Signature&lt;/em&gt;. This provides a high-level view of all IDS rule hits detected in the traffic. One particular web application exploit is detected with four different rule sets, which strongly suggests this is the compromised web application.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;9f7a4e54d68f21af657f44d3b93c5b4c_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;488px&#34; data-flex-grow=&#34;203&#34; height=&#34;393&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/9f7a4e54d68f21af657f44d3b93c5b4c_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Zui: Identifying the web application through Suricata Alerts by Signature&lt;/p&gt;&#xA;&lt;p&gt;Then, a quick Google search for &lt;strong&gt;Bonitasoft&lt;/strong&gt; confirms it’s a business process automation application, consistent with the description in the scenario.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;690bcd1cd3b01a3e6a8924d3dbfc5022_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1699px&#34; data-flex-grow=&#34;707&#34; height=&#34;113&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/690bcd1cd3b01a3e6a8924d3dbfc5022_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-2-we-believe-the-attacker-may-have-used-a-subset-of-the-brute-forcing-attack-categorywhat-is-the-name-of-the-attack-carriedout&#34;&gt;Question 2: We believe the attacker may have used a subset of the brute forcing attack category — what is the name of the attack carried out?&#xA;&lt;/h3&gt;&lt;p&gt;Next, we need to identify the brute force attack method used by the attacker. While reviewing the &lt;em&gt;Suricata Alerts by Signature&lt;/em&gt; query in &lt;strong&gt;Zui&lt;/strong&gt;, you may have noticed the alert &lt;em&gt;ET INFO User-Agent (python-requests) Inbound to Webserver&lt;/em&gt; had a large number of hits. This likely correlates to the brute force activity.&lt;/p&gt;&#xA;&lt;p&gt;To dive deeper, let’s pivot to &lt;a class=&#34;link&#34; href=&#34;https://www.wireshark.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Wireshark&lt;/strong&gt;&lt;/a&gt; and load the &lt;code&gt;meerkaat.pcap&lt;/code&gt; file. This will allow us to inspect packet details and better understand how the attack was carried out.&lt;/p&gt;&#xA;&lt;p&gt;Once Wireshark is open:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Click the magnifying glass icon to open the search tool.&lt;/li&gt;&#xA;&lt;li&gt;Select &lt;em&gt;Packet details&lt;/em&gt; and &lt;em&gt;String&lt;/em&gt; to narrow the search to strings within packet details.&lt;/li&gt;&#xA;&lt;li&gt;Enter &lt;code&gt;username&lt;/code&gt; in the search box.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;f1c8355401d4b6c406dfdf76bc98cbad_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;486px&#34; data-flex-grow=&#34;202&#34; height=&#34;395&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/f1c8355401d4b6c406dfdf76bc98cbad_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Wireshark: Searching for the username string&lt;/p&gt;&#xA;&lt;p&gt;This helps us find packets where the username form item appears. The goal is to determine the method used for these requests and filter more granularly.&lt;/p&gt;&#xA;&lt;p&gt;Looking at the first hit, we see an HTTP POST request to the web server. Let’s apply a display filter to isolate these:&lt;/p&gt;&#xA;&lt;p&gt;http.request.method == &amp;ldquo;POST&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;df7fd59647d7c428a5d4bf2372319ef8_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;486px&#34; data-flex-grow=&#34;202&#34; height=&#34;395&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/df7fd59647d7c428a5d4bf2372319ef8_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Wireshark: Confirming the User-Agent for the matching packets&lt;/p&gt;&#xA;&lt;p&gt;Now we can easily see dozens of login attempts using Forela account addresses. The user agent matches what we saw in &lt;em&gt;Zui&lt;/em&gt;:&lt;/p&gt;&#xA;&lt;p&gt;python-requests/2.28.1&lt;/p&gt;&#xA;&lt;p&gt;Based on this evidence, the attacker appears to be carrying out a &lt;strong&gt;credential stuffing attack&lt;/strong&gt; (&lt;em&gt;MITRE ATT&amp;amp;CK — T1110.004&lt;/em&gt;) by using multiple known usernames and passwords to gain access to target accounts.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110/004/&#34;  title=&#34;https://attack.mitre.org/techniques/T1110/004/&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Brute Force: Credential Stuffing&lt;/strong&gt;&#xA;_Adversaries may use credentials obtained from breach dumps of unrelated accounts to gain access to target accounts…_attack.mitre.org&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110/004/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;e75774e5e02c9c9b445ffbbcfb64d9ad_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1699px&#34; data-flex-grow=&#34;707&#34; height=&#34;113&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/e75774e5e02c9c9b445ffbbcfb64d9ad_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-3-does-the-vulnerability-exploited-have-a-cve-assignedand-if-so-whichone&#34;&gt;Question 3: Does the vulnerability exploited have a CVE assigned — and if so, which one?&#xA;&lt;/h3&gt;&lt;p&gt;Our next task is to identify the specific CVE for the exploited vulnerability. Fortunately, we already found a clue while reviewing the &lt;em&gt;Suricata Alerts by Signature&lt;/em&gt; in &lt;strong&gt;Zui&lt;/strong&gt;: &lt;em&gt;CVE-2022–25237&lt;/em&gt; associated with &lt;strong&gt;Bonitasoft&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;673a6401a66d0c4361e2b4b7ed383436_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;481px&#34; data-flex-grow=&#34;200&#34; height=&#34;399&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/673a6401a66d0c4361e2b4b7ed383436_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Zui: Identifying the related CVE&lt;/p&gt;&#xA;&lt;p&gt;Let’s drill down on the details of this CVE by looking it up on &lt;strong&gt;CVEdetails&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.cvedetails.com/cve/CVE-2022-25237/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;https://www.cvedetails.com/cve/CVE-2022-25237/&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;According to the description:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Bonita Web 2021.2 is affected by a authentication/authorization bypass vulnerability due to an overly broad exclude pattern used in the RestAPIAuthorizationFilter. By appending ;i18ntranslation or /../i18ntranslation/ to the end of a URL, users with no privileges can access privileged API endpoints. This can lead to remote code execution by abusing the privileged API actions.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;Keep this information in mind — it will be extremely helpful during the next few questions.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;167551fd6e43f881f9df1772f09b55b2_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1684px&#34; data-flex-grow=&#34;701&#34; height=&#34;114&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/167551fd6e43f881f9df1772f09b55b2_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-4-which-string-was-appended-to-the-api-url-path-to-bypass-the-authorization-filter-by-the-attackers-exploit&#34;&gt;Question 4: Which string was appended to the API URL path to bypass the authorization filter by the attacker’s exploit?&#xA;&lt;/h3&gt;&lt;p&gt;Now that our research uncovered how &lt;em&gt;CVE-2022–25237&lt;/em&gt; can be exploited, we already have the answer:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;By appending ;i18ntranslation or &lt;strong&gt;/../i18ntranslation/&lt;/strong&gt; to the end of a URL, users with no privileges can access privileged API endpoints.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;Let’s confirm this with our own dataset in &lt;em&gt;Wireshark&lt;/em&gt; by searching for &lt;code&gt;/api&lt;/code&gt; within the results.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;d697ba79b192194bcd634d982d712fff_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;484px&#34; data-flex-grow=&#34;202&#34; height=&#34;396&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/d697ba79b192194bcd634d982d712fff_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Wireshark: Identifying API endpoints&lt;/p&gt;&#xA;&lt;p&gt;Bingo! We’ve found the same string in our traffic that’s described in the CVE details.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;c7c1d2a9705f330016181dd3d7a5c8e9_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1729px&#34; data-flex-grow=&#34;720&#34; height=&#34;111&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/c7c1d2a9705f330016181dd3d7a5c8e9_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-5-how-many-combinations-of-usernames-and-passwords-were-used-in-the-credential-stuffingattack&#34;&gt;Question 5: How many combinations of usernames and passwords were used in the credential stuffing attack?&#xA;&lt;/h3&gt;&lt;p&gt;To answer this, we need to determine how many username/password combinations were attempted during the attack.&lt;/p&gt;&#xA;&lt;p&gt;One approach is to use a third tool: &lt;strong&gt;NetworkMiner&lt;/strong&gt;, which offers robust forensic capabilities, including easy parsing and display of credentials logged in the PCAP.&lt;/p&gt;&#xA;&lt;p&gt;There’s just one catch — we first need to convert the Wireshark PCAPNG file to PCAP before importing it into NetworkMiner. In &lt;strong&gt;Wireshark&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to &lt;code&gt;File &amp;gt; Save As&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Select the &lt;code&gt;Wireshark/tcpdump/...-pcap&lt;/code&gt; option to create a copy in PCAP format&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Now that we have the correct file type, launch &lt;strong&gt;NetworkMiner&lt;/strong&gt; and open the new PCAP file. Once it loads:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Click the &lt;em&gt;Credentials&lt;/em&gt; tab&lt;/li&gt;&#xA;&lt;li&gt;Uncheck &lt;em&gt;Show Cookies&lt;/em&gt; (we only want credential stuffing attempts, not session cookies)&lt;/li&gt;&#xA;&lt;li&gt;Focus on Forela domain email addresses with the MIME/MultiPart protocol&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;cec661ea3aad799b4e5d3fbdbe23dae2_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;393px&#34; data-flex-grow=&#34;163&#34; height=&#34;488&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/cec661ea3aad799b4e5d3fbdbe23dae2_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;NetworkMiner: Identifying credential pairs&lt;/p&gt;&#xA;&lt;p&gt;This gives us a clean list of all username/password combinations attempted in the traffic. After removing the &lt;code&gt;install&lt;/code&gt; user and one duplicate entry for &lt;code&gt;seb.broom&lt;/code&gt;, we’re left with 56 unique combinations.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;3236b7f336ae91b7dbb71215adcb15a6_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1641px&#34; data-flex-grow=&#34;683&#34; height=&#34;117&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/3236b7f336ae91b7dbb71215adcb15a6_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-6-which-username-and-password-combination-was-successful&#34;&gt;Question 6: Which username and password combination was successful?&#xA;&lt;/h3&gt;&lt;p&gt;For illustrative purposes, let’s jump back to &lt;strong&gt;Wireshark&lt;/strong&gt; and apply an &lt;code&gt;http&lt;/code&gt; filter. This will make it easier to see HTTP requests and responses side by side. The idea is simple: look for where the status codes change from the HTTP &lt;code&gt;4XX&lt;/code&gt; range (failed requests) to the HTTP &lt;code&gt;2XX&lt;/code&gt; range (successful requests).&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;6103cfdb44540c2dbbe919870a8df7fa_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;501px&#34; data-flex-grow=&#34;208&#34; height=&#34;383&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/6103cfdb44540c2dbbe919870a8df7fa_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Wireshark: Following the HTTP response trail&lt;/p&gt;&#xA;&lt;p&gt;Just like in the image above, you’ll notice the first successful response appears as an HTTP &lt;code&gt;204 No Content&lt;/code&gt;. Looking at the packets immediately below, you’ll see other &lt;code&gt;200 OK&lt;/code&gt; responses, so we know we’re in the right spot. At this point, all we need to do is right‑click the first of the &lt;em&gt;HTTP 200&lt;/em&gt; responses and select &lt;em&gt;Follow &amp;gt; HTTP Stream&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;ac69f9578a029fa02bcd8e852a7ea2f9_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;574px&#34; data-flex-grow=&#34;239&#34; height=&#34;334&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/ac69f9578a029fa02bcd8e852a7ea2f9_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Wireshark: Uncovering the successful login credentials&lt;/p&gt;&#xA;&lt;p&gt;By correlating these successful responses and following the HTTP stream, we can determine that the account &lt;code&gt;seb.broom&lt;/code&gt; was the one that successfully authenticated.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;653f17e92059afe15fd9c11009056755_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1641px&#34; data-flex-grow=&#34;683&#34; height=&#34;117&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/653f17e92059afe15fd9c11009056755_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-7-if-any-which-text-sharing-site-did-the-attackerutilise&#34;&gt;Question 7: If any, which text sharing site did the attacker utilise?&#xA;&lt;/h3&gt;&lt;p&gt;Moving right along, for &lt;strong&gt;Question 7&lt;/strong&gt; we need to determine if the attacker used any text-sharing site during the attack. For this, we’ll jump back to &lt;strong&gt;Zui&lt;/strong&gt; and use the &lt;em&gt;Unique DNS Queries&lt;/em&gt; filter.&lt;/p&gt;&#xA;&lt;p&gt;Selecting this option provides an easy-to-read list of all unique outbound DNS lookup queries in the PCAP. Among these, we see that &lt;strong&gt;pastes.io&lt;/strong&gt; was contacted. This is a text-pasting website, which fits perfectly with what we’re looking for.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;3fce3b4072de5c1bae5adff1c59479bb_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;375px&#34; data-flex-grow=&#34;156&#34; height=&#34;511&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/3fce3b4072de5c1bae5adff1c59479bb_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Zui: Identifying text sharing site in DNS queries&lt;/p&gt;&#xA;&lt;p&gt;In the next couple of questions, we’ll figure out how this service was leveraged in the attack.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;07b415cf8d768e05940c08e32e131e36_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1641px&#34; data-flex-grow=&#34;683&#34; height=&#34;117&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/07b415cf8d768e05940c08e32e131e36_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;questions-8-9&#34;&gt;Questions 8 &amp;amp; 9&#xA;&lt;/h3&gt;&lt;h4 id=&#34;please-provide-the-filename-of-the-public-key-used-by-the-attacker-to-gain-persistence-on-ourhost&#34;&gt;Please provide the filename of the public key used by the attacker to gain persistence on our host.&#xA;&lt;/h4&gt;&lt;h4 id=&#34;question-9-can-you-confirm-the-file-modified-by-the-attacker-to-gain-persistence&#34;&gt;Question 9: Can you confirm the file modified by the attacker to gain persistence?&#xA;&lt;/h4&gt;&lt;p&gt;Now comes the fun part! To answer these, we’ll focus on identifying the full URI in &lt;strong&gt;Zui&lt;/strong&gt;, then pivot to a web browser to see what the attacker left behind.&lt;/p&gt;&#xA;&lt;p&gt;First, from the &lt;em&gt;pastes.io&lt;/em&gt; query in &lt;em&gt;Zui’s&lt;/em&gt; &lt;em&gt;Unique DNS Requests&lt;/em&gt; results, right-click the entry and select &lt;em&gt;New Search from Value&lt;/em&gt;. This adjusts the results to search for all traffic related to &lt;code&gt;pastes.io&lt;/code&gt; in the PCAP.&lt;/p&gt;&#xA;&lt;p&gt;Next, locate the line with the &lt;code&gt;http&lt;/code&gt; type and expand it. This reveals the full URI containing the domain:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;ceaa54d2ac256f478dfd877becfa5e45_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;484px&#34; data-flex-grow=&#34;202&#34; height=&#34;396&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/ceaa54d2ac256f478dfd877becfa5e45_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Zui: Identifying the pastes.io URI&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://pastes.io/raw/bx5gcr0et8&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://pastes.io/raw/bx5gcr0et8&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;With the URL ready, open your browser and enter it into the address bar — and voila!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;9441ab2ee583a3ebbe4337929adf9a75_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;461px&#34; data-flex-grow=&#34;192&#34; height=&#34;416&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/9441ab2ee583a3ebbe4337929adf9a75_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;The contents of the pastes.io URL from the pcap&lt;/p&gt;&#xA;&lt;p&gt;The contents of the paste show a command using &lt;code&gt;curl&lt;/code&gt; to download another file named:&lt;/p&gt;&#xA;&lt;p&gt;hffgra4unv&lt;/p&gt;&#xA;&lt;p&gt;The command saves the output into:&lt;/p&gt;&#xA;&lt;p&gt;/home/ubuntu/.ssh/authorized_keys&lt;/p&gt;&#xA;&lt;p&gt;This file stores SSH public keys, which means the attacker added their own key to gain persistent access to the host. Good find!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;c7f558aa6dde6ee405dd2edf6363fd90_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;777px&#34; data-flex-grow=&#34;323&#34; height=&#34;247&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/c7f558aa6dde6ee405dd2edf6363fd90_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-10-can-you-confirm-the-mitre-technique-id-of-this-type-of-persistence-mechanism&#34;&gt;Question 10: Can you confirm the MITRE technique ID of this type of persistence mechanism?&#xA;&lt;/h3&gt;&lt;p&gt;We’ve made it to the final question! For this one, we’ll pivot to the &lt;strong&gt;MITRE ATT&amp;amp;CK&lt;/strong&gt; knowledge base of attacker tactics, techniques, and procedures. The goal is to identify the persistence technique ID within the framework.&lt;/p&gt;&#xA;&lt;p&gt;We already have all the pieces:&#xA;&lt;em&gt;Persistence + SSH authorized keys = Account Manipulation: SSH Authorized Keys (T1098.004)&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1098/004/&#34;  title=&#34;https://attack.mitre.org/techniques/T1098/004/&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Account Manipulation: SSH Authorized Keys&lt;/strong&gt;&#xA;_Adversaries may modify the SSH authorized_keys file to maintain persistence on a victim host. Linux distributions…_attack.mitre.org&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1098/004/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;According to MITRE:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Adversaries may modify the SSH &lt;code&gt;authorized_keys&lt;/code&gt; file to maintain persistence on a victim host. Linux distributions, macOS, and ESXi hypervisors commonly use key-based authentication to secure the authentication process of SSH sessions for remote management. The &lt;code&gt;authorized_keys&lt;/code&gt; file in SSH specifies the SSH keys that can be used for logging into the user account for which the file is configured.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;This technique perfectly aligns with the attacker’s behavior we observed in our investigation. Now that we’ve identified their method of persistence and confirmed that Forela’s &lt;em&gt;Bonitasoft&lt;/em&gt; server was compromised, we can wrap up this case.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;f9049795378346ea90813886466db60b_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1729px&#34; data-flex-grow=&#34;720&#34; height=&#34;111&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/f9049795378346ea90813886466db60b_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;conclusion&#34;&gt;Conclusion:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;img alt=&#34;22e64b304ed12b645c6d7a83bf9c9797_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;322px&#34; data-flex-grow=&#34;134&#34; height=&#34;596&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/22e64b304ed12b645c6d7a83bf9c9797_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;That’s a wrap on &lt;strong&gt;Meerkat&lt;/strong&gt; and the end of our investigation! A big thank you to &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt; for another awesome challenge.&lt;/p&gt;&#xA;&lt;p&gt;This challenge was a fantastic exercise in network forensics, tying together several important concepts: detecting credential stuffing attacks, identifying CVEs in real-world applications, and uncovering persistence mechanisms like SSH authorized keys.&lt;/p&gt;&#xA;&lt;p&gt;Working through each question, we followed the trail of clues and learned how to pivot between tools like &lt;strong&gt;Zui&lt;/strong&gt;, &lt;strong&gt;Wireshark&lt;/strong&gt;, and &lt;strong&gt;NetworkMiner&lt;/strong&gt; to extract meaningful evidence. I chose this challenge because it’s perfect for sharpening packet analysis skills and offers a realistic approach where flexibility and knowing the right tool for the job can speed up an investigation when timing is critical.&lt;/p&gt;&#xA;&lt;p&gt;It’s pretty cool that with just a PCAP we can reveal how attackers chain techniques, starting with credential stuffing, exploiting a web vulnerability, and then maintaining access through SSH. Awesome!&lt;/p&gt;&#xA;&lt;p&gt;Thanks for your support and partnering on this investigation. If you found this walkthrough helpful, don’t forget to &lt;strong&gt;give it a clap&lt;/strong&gt; and &lt;strong&gt;consider following me&lt;/strong&gt;! Your feedback really is invaluable, and it pumps me up to support your security journey. Remember, Cybersecurity is a team sport and we’re in this together!&lt;/p&gt;&#xA;&lt;p&gt;Until next week’s challenge — stay curious and be safe out there!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;250&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-meerkat-sherlock-walkthrough/897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; width=&#34;250&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;tools--references&#34;&gt;Tools &amp;amp; References:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Challenge Link:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/552&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/552&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Flare-VM:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Zui/Brim:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.brimdata.io/download/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.brimdata.io/download/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Wireshark:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.wireshark.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.wireshark.org/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;CVEdetails — CVE-2022–25237:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.cvedetails.com/cve/CVE-2022-25237/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.cvedetails.com/cve/CVE-2022-25237/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;NetworkMiner:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.netresec.com/?page=NetworkMiner&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.netresec.com/?page=NetworkMiner&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Brute Force: Credential Stuffing (T1110.004):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110/004/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1110/004/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Account Manipulation: SSH Authorized Keys (T1098.004):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1098/004/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1098/004/&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>HackTheBox  — Unit42 Sherlock Walkthrough</title>
            <link>https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/</link>
            <pubDate>Sun, 05 Oct 2025 00:00:00 +0000</pubDate>
            <guid>https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/</guid>
            <description>&lt;img src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/81ecbde8b32200b9b0d5f761df2caa61_MD5.png&#34; alt=&#34;Featured image of post HackTheBox  — Unit42 Sherlock Walkthrough&#34; /&gt;&lt;h3 id=&#34;hackthebox--unit42--sherlock-walkthrough&#34;&gt;HackTheBox | Unit42 | Sherlock Walkthrough&#xA;&lt;/h3&gt;&lt;h4 id=&#34;investigating-masquerading-malware-using-sysmon-logs-and-the-windows-eventviewer&#34;&gt;Investigating Masquerading Malware Using Sysmon Logs and the Windows Event Viewer.&#xA;&lt;/h4&gt;&lt;p&gt;&lt;img alt=&#34;81ecbde8b32200b9b0d5f761df2caa61_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;320&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/81ecbde8b32200b9b0d5f761df2caa61_MD5.png&#34; width=&#34;320&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Image Credit: &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/632&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/632&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;introduction&#34;&gt;Introduction:&#xA;&lt;/h3&gt;&lt;p&gt;Welcome back to another weekly walkthrough! If you’ve stumbled across this blog while searching for a comprehensive guide to the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/632&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Unit42&lt;/strong&gt;&lt;/a&gt; Sherlock challenge from &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt;, you’re in the right place.&lt;/p&gt;&#xA;&lt;p&gt;This is the third challenge in the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/tracks/Intro-to-Blue-Team&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;Intro to Blue Team&lt;/em&gt;&lt;/a&gt; track, but you can jump in in any order. If you’re following along or you’re a completionist, check out my write-up of the previous challenge — &lt;strong&gt;BFT&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/&#34; &gt;&lt;strong&gt;HackTheBox— BFT Sherlock Walkthrough&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This challenge leans heavily into endpoint forensics using a real-world inspired narrative. It’s up to us to piece together what happened using only the provided &lt;strong&gt;Sysmon&lt;/strong&gt; logs. We’ll use tools like &lt;strong&gt;Windows Event Viewer&lt;/strong&gt;, &lt;strong&gt;VirusTotal&lt;/strong&gt;, and &lt;strong&gt;MITRE ATT&amp;amp;CK&lt;/strong&gt; to uncover and document the infection chain.&lt;/p&gt;&#xA;&lt;p&gt;This one’s a great opportunity to explore how attackers might abuse legitimate cloud-based delivery mechanisms to deliver trojanized installers masquerading as legitimate tools.&lt;/p&gt;&#xA;&lt;p&gt;So, if you’re new to &lt;em&gt;Sysmon&lt;/em&gt; or just want to sharpen your log analysis skills, this is a great challenge to put your hands on. Let’s get into it!&lt;/p&gt;&#xA;&lt;p&gt;And if you find this walkthrough helpful — whether it levels-up your skills, gets you over a stumbling block, or serves as a handy reference — please give it a clap and consider following me for more content like this.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for reading and going on this investigation with me!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;challenge-scenario&#34;&gt;Challenge Scenario:&#xA;&lt;/h3&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;In this Sherlock, you will familiarize yourself with Sysmon logs and various useful EventIDs for identifying and analyzing malicious activities on a Windows system. Palo Alto’s Unit42 recently conducted research on an UltraVNC campaign, wherein attackers utilized a backdoored version of UltraVNC to maintain access to systems. This lab is inspired by that campaign and guides participants through the initial access stage of the campaign.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;setup-the-analysis-environment--extract-the-challenge-file&#34;&gt;Setup the Analysis Environment &amp;amp; Extract the Challenge File:&#xA;&lt;/h3&gt;&lt;p&gt;Safety first! It’s always important when working with lab/challenge files from &lt;strong&gt;Hack the Box&lt;/strong&gt; &lt;em&gt;(or any educational lab/challenge/range)&lt;/em&gt; to keep yourself protected by performing these tasks in a dedicated, isolated virtual machine environment. As this is a Windows-based challenge, I’m using &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;FLARE-VM&lt;/strong&gt;&lt;/a&gt; for this challenge which is “&lt;em&gt;a collection of software installations scripts for Windows systems that allows you to easily setup and maintain a reverse engineering environment on a virtual machine (VM).&lt;/em&gt;”&lt;/p&gt;&#xA;&lt;p&gt;To keep this write-up focused I’m going to skip the step-by-step setup of &lt;em&gt;FLARE-VM&lt;/em&gt; but _i_f you’d like to set up your own environment, please follow the directions provided directly by &lt;em&gt;FLARE-VM&lt;/em&gt; on &lt;em&gt;GitHub.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  title=&#34;https://github.com/mandiant/flare-vm&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;GitHub — mandiant/flare-vm: A collection of software installations scripts for Windows systems that…&lt;/strong&gt;&#xA;_A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a…_github.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once you have a safe virtual environment created, updated, isolated, and snapshotted, we can extract the challenge file and start the investigation!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;question-1-how-many-event-logs-are-there-with-event-id11&#34;&gt;Question 1: How many Event logs are there with Event ID 11?&#xA;&lt;/h3&gt;&lt;p&gt;Let’s kick off our investigation by extracting the &lt;code&gt;unit42.zip&lt;/code&gt; archive. This leaves us with a Windows Event Log file: &lt;code&gt;Microsoft-Windows-Sysmon-Operational.evtx&lt;/code&gt;, which we can analyze using &lt;strong&gt;Windows Event Viewer&lt;/strong&gt;. Go ahead and double-click the file to launch &lt;em&gt;Windows Event Viewer&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;But first, before we go any further, let’s take a step back and get a quick refresher on what &lt;em&gt;Sysmon&lt;/em&gt; is and what’s contained in its event logs.&lt;/p&gt;&#xA;&lt;p&gt;If you haven’t heard of it before, &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Sysmon&lt;/strong&gt;&lt;/a&gt; is a utility that’s part of the &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/sysinternals/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Microsoft Sysinternals Suite&lt;/strong&gt;&lt;/a&gt;. It runs as a system service and monitors detailed system activity like process creation, file creation, and network connections, and logs it to the &lt;em&gt;Windows Event Log&lt;/em&gt;. &lt;em&gt;Sysmon&lt;/em&gt; also has its own event types that can be used to filter specific activity in the logs, which is exactly what we’ll do in this challenge.&lt;/p&gt;&#xA;&lt;p&gt;Let’s jump back to &lt;em&gt;Event Viewer&lt;/em&gt; and make sure we’re looking at the &lt;code&gt;Microsoft-Windows-Sysmon-Operational&lt;/code&gt; logs under &lt;em&gt;Saved Logs&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To answer &lt;strong&gt;Question 1&lt;/strong&gt;, we’re looking for only &lt;strong&gt;Event ID 11&lt;/strong&gt; (&lt;em&gt;FileCreate&lt;/em&gt;), so we need to filter the log to accurately count these events. We can do this by clicking &lt;em&gt;Filter Current Log…&lt;/em&gt; on the right-hand column and entering &lt;code&gt;11&lt;/code&gt; in the Event ID box.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;01ab6c8e5b4e82a41da229fe1354c53e_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;433px&#34; data-flex-grow=&#34;180&#34; height=&#34;443&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/01ab6c8e5b4e82a41da229fe1354c53e_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Windows Event Viewer: Filtering Sysmon Event ID 11&lt;/p&gt;&#xA;&lt;p&gt;Once the filter is applied, we can see the number of events in the filtered log above the entries:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;be11d806d2d356f5c9d85c186593d18c_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;448px&#34; data-flex-grow=&#34;186&#34; height=&#34;428&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/be11d806d2d356f5c9d85c186593d18c_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Windows Event Viewer: Identifying the number of filtered events&lt;/p&gt;&#xA;&lt;p&gt;This result tells us that there are &lt;strong&gt;56 file creation events&lt;/strong&gt; captured by &lt;em&gt;Sysmon&lt;/em&gt; on the victim system.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;f1f1110e5920187dca7e76af4df8c411_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1586px&#34; data-flex-grow=&#34;661&#34; height=&#34;121&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/f1f1110e5920187dca7e76af4df8c411_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-2-whenever-a-process-is-created-in-memory-an-event-with-event-id-1-is-recorded-with-details-such-as-command-line-hashes-process-path-parent-process-path-etc-this-information-is-very-useful-for-an-analyst-because-it-allows-us-to-see-all-programs-executed-on-a-system-which-means-we-can-spot-any-malicious-processes-being-executed-what-is-the-malicious-process-that-infected-the-victimssystem&#34;&gt;Question 2: Whenever a process is created in memory, an event with Event ID 1 is recorded with details such as command line, hashes, process path, parent process path, etc. This information is very useful for an analyst because it allows us to see all programs executed on a system, which means we can spot any malicious processes being executed. What is the malicious process that infected the victim’s system?&#xA;&lt;/h3&gt;&lt;p&gt;For our next task, we need to determine which malicious process infected the victim’s system. To do this, we’ll filter the &lt;em&gt;Sysmon&lt;/em&gt; logs again, this time searching for &lt;strong&gt;Event ID 1&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;According to the &lt;em&gt;Sysmon&lt;/em&gt; documentation, &lt;strong&gt;Event ID 1&lt;/strong&gt; details &lt;em&gt;process creation events&lt;/em&gt; and &lt;em&gt;“provides extended information about a newly created process. The full command line provides context on the process execution.”&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once we’ve filtered the &lt;em&gt;process creation&lt;/em&gt; events, we can start analyzing them. For readability, I’ve switched to the &lt;em&gt;Details&lt;/em&gt; tab instead of the default &lt;em&gt;General&lt;/em&gt; tab.&lt;/p&gt;&#xA;&lt;p&gt;Starting with the earliest events first, the second entry reveals something suspicious — an unusual executable, &lt;code&gt;Preventivo24.02.14.exe.exe&lt;/code&gt;, located in the victim’s &lt;code&gt;Downloads&lt;/code&gt; folder. Of all the events, this one stands out as the most likely culprit with the available data.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;b116885cb3179276a3cae3bfcc3c966e_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;428px&#34; data-flex-grow=&#34;178&#34; height=&#34;448&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/b116885cb3179276a3cae3bfcc3c966e_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Windows Event Viewer: Identifying the malicious process with Sysmon Event ID 1&lt;/p&gt;&#xA;&lt;p&gt;But we don’t have to guess! &lt;em&gt;Sysmon&lt;/em&gt; also handily provides the &lt;em&gt;file hash values&lt;/em&gt; under the &lt;code&gt;Hashes&lt;/code&gt; field. We can use these hashes to pivot out to an external threat intelligence service like &lt;a class=&#34;link&#34; href=&#34;https://www.virustotal.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;VirusTotal&lt;/strong&gt;&lt;/a&gt; to check if this exact binary has been analyzed before and make a more informed decision.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;7153519ecb54087df6632557b99f67d4_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;927px&#34; data-flex-grow=&#34;386&#34; height=&#34;207&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/7153519ecb54087df6632557b99f67d4_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.virustotal.com/gui/file/0cb44c4f8273750fa40497fca81e850f73927e70b13c8f80cdcfee9d1478e6f3&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.virustotal.com/gui/file/0cb44c4f8273750fa40497fca81e850f73927e70b13c8f80cdcfee9d1478e6f3&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;We can see right away that this file hash is detected as malicious by most of the platforms, and there’s a ton of great information about what this executable does. Let’s proceed with our investigation and see what we can gather just by looking at the provided &lt;em&gt;Sysmon&lt;/em&gt; logs, shall we?&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;60d8436fe6284c86d9e3930410edb12a_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1315px&#34; data-flex-grow=&#34;547&#34; height=&#34;146&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/60d8436fe6284c86d9e3930410edb12a_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-3-which-cloud-drive-was-used-to-distribute-themalware&#34;&gt;Question 3: Which Cloud drive was used to distribute the malware?&#xA;&lt;/h3&gt;&lt;p&gt;Our next order of business is to determine which cloud storage drive the malicious executable was downloaded from. For this, we can identify the &lt;em&gt;Referrer URL&lt;/em&gt; in the &lt;code&gt;Zone.Identifier&lt;/code&gt; metadata of the file. This is part of the &lt;em&gt;Mark of the Web&lt;/em&gt; metadata stream and can help us analysts identify the source of a file.&lt;/p&gt;&#xA;&lt;p&gt;We can uncover this information by filtering the event log for &lt;strong&gt;Event ID 15&lt;/strong&gt;. This event label is &lt;em&gt;FileCreateStreamHash&lt;/em&gt;, and while it sounds complicated, the &lt;em&gt;Sysmon&lt;/em&gt; documentation clarifies:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;This event logs when a named file stream is created, and it generates events that log the hash of the contents of the file to which the stream is assigned (the unnamed stream), as well as the contents of the named stream. There are malware variants that drop their executables or configuration settings via browser downloads, and this event is aimed at capturing that based on the browser attaching a &lt;code&gt;Zone.Identifier&lt;/code&gt; &amp;ldquo;mark of the web&amp;rdquo; stream.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;Putting all this together, filtering for &lt;em&gt;Event ID 15&lt;/em&gt; returns two results. The one at the top contains the &lt;em&gt;Mark of the Web&lt;/em&gt; stream information for the malicious binary we identified in the previous question.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;87077a528148474bc7d24e0b067c6ee5_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;448px&#34; data-flex-grow=&#34;186&#34; height=&#34;428&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/87077a528148474bc7d24e0b067c6ee5_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Windows Event Viewer: Identifying the referrer URL using Sysmon Event ID 15&lt;/p&gt;&#xA;&lt;p&gt;This entry shows the &lt;em&gt;Zone.Identifier&lt;/em&gt; metadata, including the &lt;em&gt;ReferrerUrl&lt;/em&gt; which points to &lt;strong&gt;Dropbox&lt;/strong&gt;, a common and very popular cloud storage solution, as the source of malware download.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;5d1df5764fa0f8d846281040313b9f60_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1641px&#34; data-flex-grow=&#34;683&#34; height=&#34;117&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/5d1df5764fa0f8d846281040313b9f60_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-4-for-many-of-the-files-it-wrote-to-disk-the-initial-malicious-file-used-a-defense-evasion-technique-called-time-stomping-where-the-file-creation-date-is-changed-to-make-it-appear-older-and-blend-in-with-other-files-what-was-the-timestamp-changed-to-for-the-pdffile&#34;&gt;Question 4: For many of the files it wrote to disk, the initial malicious file used a defense evasion technique called Time Stomping, where the file creation date is changed to make it appear older and blend in with other files. What was the timestamp changed to for the PDF file?&#xA;&lt;/h3&gt;&lt;p&gt;Next up, to answer &lt;strong&gt;Question 4&lt;/strong&gt;, we’ll need to identify a PDF file related to the attack and then determine what the manipulated timestamp of the file is.&lt;/p&gt;&#xA;&lt;p&gt;The first step is to filter the &lt;em&gt;Sysmon&lt;/em&gt; logs for &lt;strong&gt;Event ID 2&lt;/strong&gt;: &lt;em&gt;A process changed a file creation time&lt;/em&gt;. This event ID is helpful for detecting timestomp activity on a victim system. According to the &lt;em&gt;Sysmon&lt;/em&gt; documentation:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;The change file creation time event is registered when a file creation time is explicitly modified by a process. This event helps tracking the real creation time of a file. Attackers may change the file creation time of a backdoor to make it look like it was installed with the operating system. Note that many processes legitimately change the creation time of a file; it does not necessarily indicate malicious activity.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;Once we’ve applied the filter, we can use &lt;em&gt;Windows Event Viewer’s&lt;/em&gt; built-in &lt;em&gt;Find&lt;/em&gt; function and search for the keyword &lt;code&gt;pdf&lt;/code&gt; to quickly pinpoint the event we’re seeking.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;73d6f9b85b8e17266d4c54bd32e1df4c_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;448px&#34; data-flex-grow=&#34;186&#34; height=&#34;428&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/73d6f9b85b8e17266d4c54bd32e1df4c_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Windows Event Viewer: Identifying timestomp events using Sysmon Event ID 2&lt;/p&gt;&#xA;&lt;p&gt;Take a look under the file path for &lt;code&gt;~.pdf&lt;/code&gt; — we can see two different timestamps, which confirms that the file was manipulated using a timestomp technique (&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1070/006/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;MITRE ATT&amp;amp;CK T1070.006&lt;/em&gt;&lt;/a&gt;). We’re looking for the older, original timestamp to answer the question.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;a7c5dc8d58cf3a32eff533f36ba7770b_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1465px&#34; data-flex-grow=&#34;610&#34; height=&#34;131&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/a7c5dc8d58cf3a32eff533f36ba7770b_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-5-the-malicious-file-dropped-a-few-files-on-disk-where-was-oncecmd-created-on-disk-please-answer-with-the-full-path-along-with-the-filename&#34;&gt;Question 5: The malicious file dropped a few files on disk. Where was “once.cmd” created on disk? Please answer with the full path along with the filename.&#xA;&lt;/h3&gt;&lt;p&gt;Moving on to &lt;strong&gt;Question 5&lt;/strong&gt;, we need to figure out the file path of another related file: &lt;code&gt;once.cmd&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The key phrase in the question is &lt;em&gt;“dropped a few files on disk”&lt;/em&gt;, which tells us we’ll need to filter for &lt;strong&gt;Event ID 11&lt;/strong&gt; (&lt;em&gt;FileCreate&lt;/em&gt;) again. Once we’ve applied the filter, we can use the &lt;em&gt;Find&lt;/em&gt; function to search for the file in question — &lt;code&gt;once.cmd&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;69c4572dbbe73064f4b25ee9dd70d1bd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;448px&#34; data-flex-grow=&#34;186&#34; height=&#34;428&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/69c4572dbbe73064f4b25ee9dd70d1bd_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Windows Event Viewer: Identifying dropped file path event using Sysmon Event ID 11&lt;/p&gt;&#xA;&lt;p&gt;Once we’ve located the event, we’ll learn the full file path of the dropped file.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;6189e25c517e1d9d1f52346952114107_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1586px&#34; data-flex-grow=&#34;661&#34; height=&#34;121&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/6189e25c517e1d9d1f52346952114107_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-6-the-malicious-file-attempted-to-reach-a-dummy-domain-most-likely-to-check-the-internet-connection-status-what-domain-name-did-it-try-to-connectto&#34;&gt;Question 6: The malicious file attempted to reach a dummy domain, most likely to check the internet connection status. What domain name did it try to connect to?&#xA;&lt;/h3&gt;&lt;p&gt;Now’s the time to start moving away from file-related events and pivot to &lt;em&gt;network events&lt;/em&gt; within the &lt;em&gt;Sysmon&lt;/em&gt; log. To answer &lt;strong&gt;Question 6&lt;/strong&gt;, filter for &lt;strong&gt;Event ID 22&lt;/strong&gt;: &lt;em&gt;DNSEvent (DNS query)&lt;/em&gt; events to identify DNS lookups to external domains.&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;This event is generated when a process executes a DNS query, whether the result is successful or fails, cached or not. The telemetry for this event was added for Windows 8.1 so it is not available on Windows 7 and earlier.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;631ac999a9c7490cc1c9a59bf16e68d0_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;448px&#34; data-flex-grow=&#34;186&#34; height=&#34;428&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/631ac999a9c7490cc1c9a59bf16e68d0_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Windows Event Viewer: Identifying DNS connection check event using Sysmon Event ID 22&lt;/p&gt;&#xA;&lt;p&gt;Applying this filter returns three events, with the top event revealing a DNS lookup to a specific domain — this is the one we’re after, and it seems to be used as an internet connection check.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;49dac8c8b3f80080041daa89e6696503_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1511px&#34; data-flex-grow=&#34;629&#34; height=&#34;127&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/49dac8c8b3f80080041daa89e6696503_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-7-which-ip-address-did-the-malicious-process-try-to-reach-outto&#34;&gt;Question 7: Which IP address did the malicious process try to reach out to?&#xA;&lt;/h3&gt;&lt;p&gt;To answer &lt;strong&gt;Question 7&lt;/strong&gt; and continue our analysis of network-related artifacts in the &lt;em&gt;Sysmon&lt;/em&gt; log, we’ll now need to determine the IP address that the malicious process reached out to.&lt;/p&gt;&#xA;&lt;p&gt;For this, we’ll filter the &lt;em&gt;Sysmon&lt;/em&gt; log for &lt;strong&gt;Event ID 3&lt;/strong&gt;: &lt;em&gt;Network connection&lt;/em&gt;. According to the &lt;em&gt;Sysmon&lt;/em&gt; documentation:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;The network connection event logs TCP/UDP connections on the machine. It is disabled by default. Each connection is linked to a process through the &lt;code&gt;ProcessId&lt;/code&gt; and &lt;code&gt;ProcessGuid&lt;/code&gt; fields. The event also contains the source and destination host names IP addresses, port numbers and IPv6 status.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;Applying this filter yields one result. For ease of viewing, I’ve selected the &lt;em&gt;Details&lt;/em&gt; tab. Scroll down to the &lt;code&gt;DestinationIp&lt;/code&gt; field to find the remote IP that the malware connects to.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;c12c8f762896a3c0c9b1cc83a3344b79_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;448px&#34; data-flex-grow=&#34;186&#34; height=&#34;428&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/c12c8f762896a3c0c9b1cc83a3344b79_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Windows Event Viewer: Identifying C2 IP using Sysmon Event ID 3&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;645c8c6ebbb64b190674623b3b9be4fd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1655px&#34; data-flex-grow=&#34;689&#34; height=&#34;116&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/645c8c6ebbb64b190674623b3b9be4fd_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-8-the-malicious-process-terminated-itself-after-infecting-the-pc-with-a-backdoored-variant-of-ultravnc-when-did-the-process-terminate-itself&#34;&gt;Question 8: The malicious process terminated itself after infecting the PC with a backdoored variant of UltraVNC. When did the process terminate itself?&#xA;&lt;/h3&gt;&lt;p&gt;For our final question, we just need to figure out when the malicious process &lt;code&gt;Preventivo24.02.14.exe.exe&lt;/code&gt; terminated.&lt;/p&gt;&#xA;&lt;p&gt;We can discover this information easily by filtering for &lt;strong&gt;Event ID 5&lt;/strong&gt;: &lt;em&gt;Process terminated&lt;/em&gt; events.&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;The process terminate event reports when a process terminates. It provides the &lt;code&gt;UtcTime&lt;/code&gt;, &lt;code&gt;ProcessGuid&lt;/code&gt; and &lt;code&gt;ProcessId&lt;/code&gt; of the process.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;This will return a single event, and we can grab the termination timestamp from the event details.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;f4eddab3461be643d7448f9dc63b604c_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;448px&#34; data-flex-grow=&#34;186&#34; height=&#34;428&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/f4eddab3461be643d7448f9dc63b604c_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Windows Event Viewer: Identifying malware process termination using Sysmon Event ID 5&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;bdd4050219a3a0780e398b29e56c63c7_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1669px&#34; data-flex-grow=&#34;695&#34; height=&#34;115&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/bdd4050219a3a0780e398b29e56c63c7_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;so-what-happened-here-bringing-it-all-together-and-contextualizing-the-infection-chain&#34;&gt;So, What Happened Here? Bringing it All Together and Contextualizing the Infection Chain&#xA;&lt;/h3&gt;&lt;p&gt;Before we jump down to the conclusion, let’s take a step back and look at the &lt;em&gt;LinkedIn&lt;/em&gt; post by &lt;strong&gt;Palo Alto’s Unit 42&lt;/strong&gt; that inspired this challenge. If you’re like me, a visual reference that brings all the questions together can help you fully understand what happened, and what the artifacts we discovered actually mean.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.linkedin.com/posts/unit42_ultravnc-timelythreatintel-indicatorsofcompromise-activity-7156060867678150657-ktbL/&#34;  title=&#34;https://www.linkedin.com/posts/unit42_ultravnc-timelythreatintel-indicatorsofcompromise-activity-7156060867678150657-ktbL/&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;#ultravnc #timelythreatintel #indicatorsofcompromise #unit42threatintel #wireshark…&lt;/strong&gt;&#xA;_2024-01-23 (Tuesday): #UltraVNC infection generated by EXE from Dropbox URL. Dropbox URL now offline! IOCs from an…_www.linkedin.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.linkedin.com/posts/unit42_ultravnc-timelythreatintel-indicatorsofcompromise-activity-7156060867678150657-ktbL/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;9be633a5a199b95e80c8cfe89c64b749_MD5.jpg&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;400px&#34; data-flex-grow=&#34;166&#34; height=&#34;480&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/9be633a5a199b95e80c8cfe89c64b749_MD5.jpg&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Image Credit: &lt;a class=&#34;link&#34; href=&#34;https://www.linkedin.com/posts/unit42_ultravnc-timelythreatintel-indicatorsofcompromise-activity-7156060867678150657-ktbL/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.linkedin.com/posts/unit42_ultravnc-timelythreatintel-indicatorsofcompromise-activity-7156060867678150657-ktbL/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Does this sound kind of familiar?&lt;/p&gt;&#xA;&lt;p&gt;If we look at the visual for the infection chain, we’ll see a malicious executable downloaded from &lt;em&gt;Dropbox&lt;/em&gt; — just like we identified in &lt;strong&gt;Questions 2 &amp;amp; 3&lt;/strong&gt;. Then we see a decoy PDF file, which lines up with &lt;strong&gt;Question 4&lt;/strong&gt;. This context gives us insight into the attack flow and reinforces how each artifact we uncovered fits into a broader narrative.&lt;/p&gt;&#xA;&lt;p&gt;I strongly encourage you to check out the &lt;em&gt;Palo Alto&lt;/em&gt; post, explore the research, and see what other conclusions you might draw compared to the challenge. It’s a great way to validate your analysis and expand your understanding of how threat intelligence connects to hands-on investigations.&lt;/p&gt;&#xA;&lt;h3 id=&#34;conclusion&#34;&gt;Conclusion:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;img alt=&#34;71c0e9866534f11d402c22cd544264a0_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;310px&#34; data-flex-grow=&#34;129&#34; height=&#34;524&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/71c0e9866534f11d402c22cd544264a0_MD5.png&#34; width=&#34;678&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;That wraps up our investigation of the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/632&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Unit42&lt;/strong&gt;&lt;/a&gt; challenge! We’ve walked through each step of the infection chain: from identifying the initial malicious executable downloaded from &lt;em&gt;Dropbox&lt;/em&gt;, to uncovering &lt;em&gt;timestomping&lt;/em&gt; activity, &lt;em&gt;DNS queries&lt;/em&gt;, and &lt;em&gt;IP connections&lt;/em&gt; — all using nothing more than &lt;em&gt;Sysmon&lt;/em&gt; logs and a bit of threat intelligence.&lt;/p&gt;&#xA;&lt;p&gt;A big thank you to &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt; for another high-quality and fun Sherlock — it’s been a blast going through this track.&lt;/p&gt;&#xA;&lt;p&gt;I chose this week’s challenge as a great example of how &lt;em&gt;Sysmon&lt;/em&gt; bolsters forensic capabilities by collecting and contextualizing meaningful endpoint logs. With these logs, we were able to breeze through analysis, focusing on targeted events to tell a compelling story. Whether it’s filtering for specific event IDs, pivoting to external threat intel platforms like &lt;em&gt;VirusTotal&lt;/em&gt;, or recognizing subtle evasion techniques like &lt;em&gt;timestomping&lt;/em&gt;, every artifact adds a piece to the puzzle. Awesome stuff!&lt;/p&gt;&#xA;&lt;p&gt;Thanks for your support and partnering on this investigation. If you found this walkthrough helpful, don’t forget to &lt;strong&gt;give it a clap&lt;/strong&gt;! Your feedback really is invaluable, and it pumps me up to support your security journey. Remember, Cybersecurity is a team sport and we’re in this together!&lt;/p&gt;&#xA;&lt;p&gt;Until next week’s challenge — stay curious and be safe out there!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;250&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-unit42-sherlock-walkthrough/897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; width=&#34;250&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;tools--references&#34;&gt;Tools &amp;amp; References:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Challenge Link:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/632&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/632&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Flare-VM:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft — Sysmon:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft — Sysinternals:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/sysinternals/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/sysinternals/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;VirusTotal —&lt;/strong&gt; &lt;code&gt;Preventivo24.02.14.exe.exe&lt;/code&gt;: &lt;a class=&#34;link&#34; href=&#34;https://www.virustotal.com/gui/file/0cb44c4f8273750fa40497fca81e850f73927e70b13c8f80cdcfee9d1478e6f3&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.virustotal.com/gui/file/0cb44c4f8273750fa40497fca81e850f73927e70b13c8f80cdcfee9d1478e6f3&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Indicator Removal: Timestomp (T1070.006):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1070/006/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1070/006/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;LinkedIn — Palo Alto Networks Unit 42:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.linkedin.com/posts/unit42_ultravnc-timelythreatintel-indicatorsofcompromise-activity-7156060867678150657-ktbL/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.linkedin.com/posts/unit42_ultravnc-timelythreatintel-indicatorsofcompromise-activity-7156060867678150657-ktbL/&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>HackTheBox  — Pikaptcha Sherlock Walkthrough</title>
            <link>https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/</link>
            <pubDate>Sun, 10 Aug 2025 00:00:00 +0000</pubDate>
            <guid>https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/</guid>
            <description>&lt;img src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/31cfedeb43227d42634f7513d90ab7bd_MD5.png&#34; alt=&#34;Featured image of post HackTheBox  — Pikaptcha Sherlock Walkthrough&#34; /&gt;&lt;h3 id=&#34;hacktheboxpikaptcha-sherlock-walkthrough&#34;&gt;HackTheBox — Pikaptcha Sherlock Walkthrough&#xA;&lt;/h3&gt;&lt;h4 id=&#34;investigating-a-fake-captcha-attack-using-registry-explorer-and-networkminer&#34;&gt;Investigating a Fake CAPTCHA Attack Using Registry Explorer and NetworkMiner.&#xA;&lt;/h4&gt;&lt;p&gt;&lt;img alt=&#34;31cfedeb43227d42634f7513d90ab7bd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;320&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/31cfedeb43227d42634f7513d90ab7bd_MD5.png&#34; width=&#34;320&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Image Credit: &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Pikaptcha&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/Pikaptcha&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;introduction&#34;&gt;Introduction:&#xA;&lt;/h3&gt;&lt;p&gt;Welcome to my weekly walkthrough! If you’ve stumbled across this blog searching for a comprehensive guide to the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Pikaptcha&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Pikaptcha Sherlock&lt;/strong&gt;&lt;/a&gt; challenge from &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt;, you’re in the right place. Let’s check out this week’s scenario below.&lt;/p&gt;&#xA;&lt;h4 id=&#34;challenge-scenario&#34;&gt;Challenge Scenario:&#xA;&lt;/h4&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Happy Grunwald contacted the sysadmin, Alonzo, because of issues he had downloading the latest version of Microsoft Office. He had received an email saying he needed to update, and clicked the link to do it. He reported that he visited the website and solved a captcha, but no office download page came back. Alonzo, who himself was bombarded with phishing attacks last year and was now aware of attacker tactics, immediately notified the security team to isolate the machine as he suspected an attack. You are provided with network traffic and endpoint artifacts to answer questions about what happened.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;For this challenge, our job is to analyze the provided artifacts to learn about the suspected attack. We’ll need to uncover how the victim was compromised and determine what happened. By combining our findings from the endpoint and the network, we’ll be able to figure out exactly what happened.&lt;/p&gt;&#xA;&lt;p&gt;This challenge is a fantastic introduction to endpoint registry analysis, network traffic analysis, and fake &lt;em&gt;Captcha&lt;/em&gt; attacks.&lt;/p&gt;&#xA;&lt;p&gt;But what’s in the toolkit for this investigation? The fun part is — there isn’t one right or wrong approach for this challenge. For this walkthrough, I’ll be demonstrating &lt;strong&gt;NetworkMiner&lt;/strong&gt; and Eric Zimmerman’s &lt;strong&gt;Registry Explorer&lt;/strong&gt; for the bulk of the analysis, but there are many other tools that can accomplish the same things — so feel free to use your preferred tools!&lt;/p&gt;&#xA;&lt;p&gt;Sounds like fun, right? Let’s get into it!&lt;/p&gt;&#xA;&lt;p&gt;And if you find this walkthrough helpful — whether it levels-up your skills, gets you over a stumbling block, or serves as a handy reference — please give it a clap and consider following me for more content like this.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for reading and going on this investigation with me!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;setup-your-analysis-environment--extract-the-challenge-file&#34;&gt;Setup Your Analysis Environment &amp;amp; Extract the Challenge File:&#xA;&lt;/h3&gt;&lt;p&gt;Safety first! It’s always important when working with lab/challenge files from &lt;strong&gt;Hack The Box&lt;/strong&gt; &lt;em&gt;(or any educational lab/challenge/range)&lt;/em&gt; to keep yourself protected by performing these tasks in a dedicated, isolated virtual machine environment. As this is a Windows-based challenge, I’m using &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;FLARE-VM&lt;/strong&gt;&lt;/a&gt; for this challenge which is “&lt;em&gt;a collection of software installations scripts for Windows systems that allows you to easily setup and maintain a reverse engineering environment on a virtual machine (VM).&lt;/em&gt;”&lt;/p&gt;&#xA;&lt;p&gt;To keep this write-up focused I’m going to skip the step-by-step setup of &lt;em&gt;FLARE-VM&lt;/em&gt; but _i_f you’d like to set up your own environment, please follow the directions provided directly by &lt;em&gt;FLARE-VM&lt;/em&gt; on &lt;em&gt;GitHub.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  title=&#34;https://github.com/mandiant/flare-vm&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;GitHub — mandiant/flare-vm: A collection of software installations scripts for Windows systems that…&lt;/strong&gt;&#xA;_A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a…_github.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once you have a safe virtual environment created, updated, isolated, and snapshotted, we can extract the challenge file and start the investigation!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;question-1-it-is-crucial-to-understand-any-payloads-executed-on-the-system-for-initial-access-analyzing-registry-hive-for-user-happy-grunwald-what-is-the-full-command-that-was-run-to-download-and-execute-thestager&#34;&gt;Question 1: It is crucial to understand any payloads executed on the system for initial access. Analyzing registry hive for user happy grunwald. What is the full command that was run to download and execute the stager.&#xA;&lt;/h3&gt;&lt;p&gt;Let’s kick off this investigation by opening the &lt;strong&gt;Pikaptcha&lt;/strong&gt; challenge file. Inside, we’ll find several artifacts, but the first set we’re interested in are contained in the &lt;code&gt;2024–09–23T052209_alert_mssp_action&lt;/code&gt; folder.&lt;/p&gt;&#xA;&lt;p&gt;To answer &lt;strong&gt;Question 1&lt;/strong&gt;, we need to search for evidence of payload execution. Within the &lt;code&gt;2024–09–23T052209_alert_mssp_action&lt;/code&gt; folder are, among others, the registry artifacts. While there are a couple of places we can check, a great starting point is the &lt;em&gt;Most Recently Used (MRU)&lt;/em&gt; artifacts.&lt;/p&gt;&#xA;&lt;p&gt;These &lt;em&gt;MRU&lt;/em&gt; artifacts are tracked by Windows and can help determine recent interaction with files and applications executed via the Windows Run utility. We can access this information by mounting the &lt;code&gt;NTUSER.DAT&lt;/code&gt; hive found in the &lt;code&gt;happygrunwald&lt;/code&gt; user folder.&lt;/p&gt;&#xA;&lt;p&gt;Now that we understand what we’re searching for, let’s look at the how. One excellent tool for searching Registry artifacts is &lt;a class=&#34;link&#34; href=&#34;https://ericzimmerman.github.io/#!index.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Eric Zimmerman’s Registry Explorer&lt;/strong&gt;&lt;/a&gt;. This is a GUI-based tool used to open, browse, and search the registry — very handy!&lt;/p&gt;&#xA;&lt;p&gt;Let’s put this into practice:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Open &lt;em&gt;Registry Explorer&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Press &lt;em&gt;File &amp;gt; Load Hive&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Navigate to &lt;code&gt;2024–09–23T052209_alert_mssp_action\C\Users\happygrunwald&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Select &lt;code&gt;NTUSER.DAT&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;Pro Tip:&lt;/strong&gt; Hold &lt;em&gt;Shift&lt;/em&gt; when selecting the &lt;code&gt;NTUSER.DAT&lt;/code&gt; — this will automatically replay the associated transaction logs. Otherwise, you’ll get a &lt;em&gt;“Dirty Hive”&lt;/em&gt; warning.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;69a5e4e5b9427ff1e7d64f8cc6a36a28_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;554px&#34; data-flex-grow=&#34;231&#34; height=&#34;346&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/69a5e4e5b9427ff1e7d64f8cc6a36a28_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Registry Explorer: Opening the happygrunwald NTUSERS.DAT hive&lt;/p&gt;&#xA;&lt;p&gt;Once loaded, we’re looking for &lt;em&gt;RunMRU&lt;/em&gt;. There are two easy ways to get there. I’ve used the search function to locate it quickly, but you can also use the built-in bookmark under &lt;em&gt;Common &amp;gt; RunMRU (Most recently run programs)&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;8f112f28ecb7d2739934085ad9902b7a_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;333px&#34; data-flex-grow=&#34;139&#34; height=&#34;575&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/8f112f28ecb7d2739934085ad9902b7a_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Registry Explorer: The contents of the RunMRU key&lt;/p&gt;&#xA;&lt;p&gt;Either way, you’ll notice a suspicious &lt;strong&gt;PowerShell&lt;/strong&gt; command listed under the &lt;em&gt;Executable&lt;/em&gt; column that appears to be reaching out to an external IP address to download a script called &lt;code&gt;office2024install.ps1&lt;/code&gt;. Knowing that Happy attempted to download &lt;em&gt;Office&lt;/em&gt; updates and that we’re seeking a command that downloads and executes a stager, we can reasonably determine this is the executed payload we&amp;rsquo;re looking for.&lt;/p&gt;&#xA;&lt;p&gt;To make this easier to see, click the &lt;em&gt;Values&lt;/em&gt; tab so you can right-click and copy the data value. You can remove the &lt;code&gt;\1&lt;/code&gt; at the end as it’s not part of the command.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;7680c2526e9fb953ebcc04715bcfbdd1_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;333px&#34; data-flex-grow=&#34;138&#34; height=&#34;576&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/7680c2526e9fb953ebcc04715bcfbdd1_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Registry Explorer: The values tab of the RunMRU key&lt;/p&gt;&#xA;&lt;p&gt;Let’s check our work and move on to the next question.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;60791c866a75ab03282e7f46ad6a45ce_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1078px&#34; data-flex-grow=&#34;449&#34; height=&#34;178&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/60791c866a75ab03282e7f46ad6a45ce_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-2-at-what-time-in-utc-did-the-malicious-payloadexecute&#34;&gt;Question 2: At what time in UTC did the malicious payload execute?&#xA;&lt;/h3&gt;&lt;p&gt;To answer &lt;strong&gt;Question 2&lt;/strong&gt;, we need to determine when the payload we identified in the last question executed. For this, simply click the &lt;em&gt;RunMRU&lt;/em&gt; tab again within &lt;em&gt;Registry Explorer&lt;/em&gt; and check the &lt;em&gt;Opened On&lt;/em&gt; value. This is the time stamp we need.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;b4bd478664174f9df57282f6a2e535ae_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;351px&#34; data-flex-grow=&#34;146&#34; height=&#34;546&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/b4bd478664174f9df57282f6a2e535ae_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Registry Explorer: Viewing the “Opened On” timestamp for the suspicious PowerShell command&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now that we’ve obtained the value for the execution time, we can start to build our timeline and pivot to searching for follow-on activities.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;9d75fdd33a754e6ea63c11fa358e5995_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1271px&#34; data-flex-grow=&#34;529&#34; height=&#34;151&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/9d75fdd33a754e6ea63c11fa358e5995_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-3-the-payload-which-was-executed-initially-downloaded-a-powershell-script-and-executed-it-in-memory-what-is-sha256-hash-of-thescript&#34;&gt;Question 3: The payload which was executed initially downloaded a PowerShell script and executed it in memory. What is sha256 hash of the script?&#xA;&lt;/h3&gt;&lt;p&gt;To answer &lt;strong&gt;Question 3&lt;/strong&gt;, we need to determine the SHA256 hash of the &lt;code&gt;office2024install.ps1&lt;/code&gt; second-stage script. By obtaining the hash of the script, we can search for threat intelligence about the specific file.&lt;/p&gt;&#xA;&lt;p&gt;With limited registry artifacts available, let’s pivot to the second artifact in the challenge file: &lt;code&gt;pikaptcha.pcapng&lt;/code&gt;. This PCAPNG file is a network packet capture containing raw network packet data. We can use this data to gain a deep understanding of the network traffic. Typically, when the topic of packet capture comes up, &lt;a class=&#34;link&#34; href=&#34;https://www.wireshark.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Wireshark&lt;/strong&gt;&lt;/a&gt; is one of the first tools that comes to mind.&lt;/p&gt;&#xA;&lt;p&gt;For this walkthrough, however, we’re going to use &lt;a class=&#34;link&#34; href=&#34;https://www.netresec.com/?page=NetworkMiner&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;NetworkMiner&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;, “&lt;/strong&gt;&lt;em&gt;an&lt;/em&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.netresec.com/?page=NetworkMinerSourceCode&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;open source&lt;/em&gt;&lt;/a&gt; &lt;em&gt;network forensics tool that extracts artifacts, such as files, images, emails and passwords, from captured network traffic in PCAP files.&lt;/em&gt;”&lt;/p&gt;&#xA;&lt;p&gt;While this task can be performed in &lt;em&gt;Wireshark&lt;/em&gt;, using &lt;em&gt;NetworkMiner&lt;/em&gt; instead is extremely beneficial for carving out the file hash of the malicious PowerShell script because &lt;em&gt;NetworkMiner&lt;/em&gt; can automatically reassemble files from the packet capture.&lt;/p&gt;&#xA;&lt;p&gt;But first, we need to convert the &lt;code&gt;pikaptcha.pcapng&lt;/code&gt; file from PCAPNG to PCAP so that we can open it in &lt;em&gt;NetworkMiner&lt;/em&gt;. This is a straightforward process: open the file in &lt;em&gt;Wireshark&lt;/em&gt;, press &lt;em&gt;File &amp;gt; Save As&lt;/em&gt;, and select the &lt;code&gt;Wireshark/tcpdump/…-pcap&lt;/code&gt; file format.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;4f2c29d99b8b860013fc1029caab5259_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;497px&#34; data-flex-grow=&#34;207&#34; height=&#34;386&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/4f2c29d99b8b860013fc1029caab5259_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Wireshark: &lt;em&gt;Converting PCAPNG to PCAP for use in NetworkMiner&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Because &lt;em&gt;NetworkMiner&lt;/em&gt; assembles files automatically by default, this might mean you’re introducing malware onto your system if there are malicious files in the PCAP. If your analysis environment has something like &lt;em&gt;Microsoft Defender&lt;/em&gt; running, it may start triggering alerts as the potentially malicious files are assembled. This is one of the reasons it’s important to perform malware analysis in a dedicated, safe environment. Don’t put your data at risk!&lt;/p&gt;&#xA;&lt;p&gt;For example, in my isolated &lt;strong&gt;Flare-VM&lt;/strong&gt; environment, real-time protection is typically turned off, so it doesn’t interfere with analysis. For illustrative purposes, I’ve turned it on. As seen in the screenshot below, the built-in &lt;em&gt;Microsoft Defender&lt;/em&gt; detected malware in the assembled files from this PCAP.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;efaf46b48db045147ca686748a7dac18_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;786px&#34; data-flex-grow=&#34;327&#34; height=&#34;244&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/efaf46b48db045147ca686748a7dac18_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Microsoft Defender: Alert triggered by NetworkMiner’s file reassembly&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Okay, now that we’ve made a copy of &lt;code&gt;pikaptcha.pcapng&lt;/code&gt; in PCAP format, let’s open it with &lt;em&gt;NetworkMiner&lt;/em&gt;. Once the application is open, use the &lt;em&gt;Files&lt;/em&gt; tab and search for the name of the malicious PowerShell script — &lt;code&gt;office2024install.ps1&lt;/code&gt;. This will display the file contained in the traffic.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;0119b7577f68d97be385479e48b1388d_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;413px&#34; data-flex-grow=&#34;172&#34; height=&#34;464&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/0119b7577f68d97be385479e48b1388d_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;NetworkMiner: Identifying the SHA256 hash of the PowerShell script&lt;/p&gt;&#xA;&lt;p&gt;Finally, right-click the entry and select &lt;em&gt;File Details&lt;/em&gt;, which provides detailed information about the file including the SHA256 hash.&lt;/p&gt;&#xA;&lt;p&gt;579284442094e1a44bea9cfb7d8d794c8977714f827c97bcb2822a97742914de&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;d881d524f43d6cd8dace27d114a569df_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1142px&#34; data-flex-grow=&#34;476&#34; height=&#34;168&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/d881d524f43d6cd8dace27d114a569df_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-4-to-which-port-did-the-reverse-shellconnect&#34;&gt;Question 4: To which port did the reverse shell connect?&#xA;&lt;/h3&gt;&lt;p&gt;Now, you might’ve noticed something strange when we were looking at the &lt;code&gt;office2024install.ps1&lt;/code&gt; payload details in the previous question. Did you catch the blob of encoded strings?&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;6b90a1643edb341e235da03011f5342e_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;447px&#34; data-flex-grow=&#34;186&#34; height=&#34;233&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/6b90a1643edb341e235da03011f5342e_MD5.png&#34; width=&#34;434&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;NetworkMiner: Noting the Base64 blob within the script contents&lt;/p&gt;&#xA;&lt;p&gt;This is likely a way to evade analysis by Base64 encoding the payload, but it also probably contains some interesting artifacts that’ll help us learn more about the script’s behavior.&lt;/p&gt;&#xA;&lt;p&gt;To understand the contents of the PowerShell script, we’ve got a couple of choices:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Pivot to external threat intelligence services like &lt;a class=&#34;link&#34; href=&#34;https://www.virustotal.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;VirusTotal&lt;/strong&gt;&lt;/a&gt;, assuming the file has been seen before.&lt;/li&gt;&#xA;&lt;li&gt;Manually decode the blob using &lt;a class=&#34;link&#34; href=&#34;https://gchq.github.io/CyberChef/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;CyberChef&lt;/strong&gt;&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I’ll illustrate both methods — you can choose whichever works best for your workflow.&lt;/p&gt;&#xA;&lt;p&gt;To check &lt;em&gt;VirusTotal&lt;/em&gt;, copy the SHA256 hash we identified in &lt;strong&gt;Question 3&lt;/strong&gt;. Then, use your browser to navigate to &lt;em&gt;VirusTotal&lt;/em&gt; and paste the hash into the search bar. On the analysis page, head to the &lt;em&gt;Behavior&lt;/em&gt; tab and scroll down to &lt;em&gt;Network Communication&lt;/em&gt; under the &lt;em&gt;IP Traffic&lt;/em&gt; header. Here, we can see the observed port used by the reverse shell:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;fa759bb0fa72190c9aea8ddeec3d46c7_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;2042px&#34; data-flex-grow=&#34;851&#34; height=&#34;94&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/fa759bb0fa72190c9aea8ddeec3d46c7_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;VirusTotal: Identifying the reverse shell destination port&lt;/p&gt;&#xA;&lt;p&gt;A second option is to use a tool like &lt;em&gt;CyberChef&lt;/em&gt; to decode the script manually. To make it easier to copy the encoded content, open the assembled script from &lt;em&gt;NetworkMiner’s&lt;/em&gt; output directory, then open the PowerShell script in a text editor like &lt;em&gt;Notepad++&lt;/em&gt; and copy it to your clipboard.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;9dbdaba7c3a80131dc683a723b12c850_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;344px&#34; data-flex-grow=&#34;143&#34; height=&#34;558&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/9dbdaba7c3a80131dc683a723b12c850_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Notepad++: Opening the malicious script contents&lt;/p&gt;&#xA;&lt;p&gt;Next, open &lt;em&gt;CyberChef&lt;/em&gt;. This will be part of your &lt;em&gt;Flare-VM&lt;/em&gt; environment, but if not, the online version works just as well. Paste the encoded blob into the &lt;em&gt;Input&lt;/em&gt; field and add the &lt;em&gt;“From Base64”&lt;/em&gt; and &lt;em&gt;“Remove Null Bytes”&lt;/em&gt; operations to the recipe.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;b656dada8afa4beb420439007b28d29a_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;332px&#34; data-flex-grow=&#34;138&#34; height=&#34;577&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/b656dada8afa4beb420439007b28d29a_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;CyberChef: Decoding the Base64 to identify the port&lt;/p&gt;&#xA;&lt;p&gt;Voilà! Now that we’ve decoded the script contents, we can see that it’s using the &lt;code&gt;System.Net.Sockets.TCPClient&lt;/code&gt; class to establish a connection over port &lt;strong&gt;6969&lt;/strong&gt; to the same IP address we identified in &lt;strong&gt;Question 1.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;95801b086c2b0d4d4c3e8943db957427_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1315px&#34; data-flex-grow=&#34;547&#34; height=&#34;146&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/95801b086c2b0d4d4c3e8943db957427_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-5-for-how-many-seconds-was-the-reverse-shell-connection-established-between-c2-and-the-victims-workstation&#34;&gt;Question 5: For how many seconds was the reverse shell connection established between C2 and the victim’s workstation?&#xA;&lt;/h3&gt;&lt;p&gt;Now that we’ve uncovered the destination IP and the port used by the reverse shell, our next objective is to determine how long the connection was active. For this task, let’s return to the &lt;em&gt;Hosts&lt;/em&gt; tab in &lt;em&gt;NetworkMiner&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;On the &lt;em&gt;Hosts&lt;/em&gt; tab, input the command and control IP address we identified in the script to filter traffic for that host:&lt;/p&gt;&#xA;&lt;p&gt;43[.]205[.]115[.]44&lt;/p&gt;&#xA;&lt;p&gt;Next, expand the IP address and turn your attention to the &lt;em&gt;Incoming Sessions&lt;/em&gt; header to identify the session over port &lt;code&gt;6969&lt;/code&gt;, including the session start and end times.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;49329196bfc2f513bcfa60b3fd00f4e1_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;340px&#34; data-flex-grow=&#34;141&#34; height=&#34;564&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/49329196bfc2f513bcfa60b3fd00f4e1_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;NetworkMiner: Determining the session start and end times to the C2 IP and port&lt;/p&gt;&#xA;&lt;p&gt;Now that we have the timestamps, we’ve almost got the answer. All we need to do is calculate the duration of the connection in seconds. To work a little smarter, we can leverage an online tool like the &lt;a class=&#34;link&#34; href=&#34;https://www.calculator.net/time-duration-calculator.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Time Duration Calculator&lt;/a&gt; from &lt;strong&gt;Calculator.net&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.calculator.net/time-duration-calculator.html?starthour=05&amp;amp;startmin=07&amp;amp;startsec=48&amp;amp;startunit=p&amp;amp;endhour=05&amp;amp;endmin=14&amp;amp;endsec=31&amp;amp;endunit=p&amp;amp;ctype=1&amp;amp;x=Calculate&#34;  title=&#34;https://www.calculator.net/time-duration-calculator.html?starthour=05&amp;amp;startmin=07&amp;amp;startsec=48&amp;amp;startunit=p&amp;amp;endhour=05&amp;amp;endmin=14&amp;amp;endsec=31&amp;amp;endunit=p&amp;amp;ctype=1&amp;amp;x=Calculate&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Time Duration Calculator&lt;/strong&gt;&#xA;_Free calculator to get the number of hours, minutes, and seconds between two times. Also, a full version to calculate…_www.calculator.net&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.calculator.net/time-duration-calculator.html?starthour=05&amp;amp;startmin=07&amp;amp;startsec=48&amp;amp;startunit=p&amp;amp;endhour=05&amp;amp;endmin=14&amp;amp;endsec=31&amp;amp;endunit=p&amp;amp;ctype=1&amp;amp;x=Calculate&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Simply input the times we identified in &lt;em&gt;NetworkMiner&lt;/em&gt; to determine that the connection was active for &lt;strong&gt;403 seconds&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;0216700d6ce94eaeb11e6a3cec0ff650_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;331px&#34; data-flex-grow=&#34;137&#34; height=&#34;580&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/0216700d6ce94eaeb11e6a3cec0ff650_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Calculator.net: Calculating the time duration for the C2 connection in seconds&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;e2c49fb104badfde0ec686d1586238e1_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1297px&#34; data-flex-grow=&#34;540&#34; height=&#34;148&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/e2c49fb104badfde0ec686d1586238e1_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-6-attacker-hosted-a-malicious-captcha-to-lure-in-users-what-is-the-name-of-the-function-which-contains-the-malicious-payload-to-be-pasted-in-victims-clipboard&#34;&gt;Question 6: Attacker hosted a malicious Captcha to lure in users. What is the name of the function which contains the malicious payload to be pasted in victim’s clipboard?&#xA;&lt;/h3&gt;&lt;p&gt;For our final objective, we need to find the function on the website that copies a malicious &lt;em&gt;PowerShell&lt;/em&gt; command to the victim’s clipboard as part of a fake &lt;strong&gt;Captcha&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To do this, we can leverage &lt;em&gt;NetworkMiner’s&lt;/em&gt; assembled files to view a reconstruction of the &lt;code&gt;index.html&lt;/code&gt; page visited by Happy and used to facilitate the compromise. For example, we can identify the correct directory in the &lt;em&gt;AssembledFiles&lt;/em&gt; by looking for the C2 IP address folder from the previous question and checking the folder for &lt;code&gt;TCP-80&lt;/code&gt; (HTTP), indicating web traffic.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;a3a7ccf52cbe059269494031552d79fa_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;868px&#34; data-flex-grow=&#34;361&#34; height=&#34;221&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/a3a7ccf52cbe059269494031552d79fa_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Locating the reassembled index.html page&lt;/p&gt;&#xA;&lt;p&gt;After locating the reassembled &lt;code&gt;index.html&lt;/code&gt;, open it with your default web browser. My analysis machine is using &lt;em&gt;Microsoft Edge&lt;/em&gt;, for example.&lt;/p&gt;&#xA;&lt;p&gt;Once open, press &lt;code&gt;F12&lt;/code&gt; to launch the browser’s DevTools and view the page source. Select the &lt;code&gt;index.html&lt;/code&gt; file in the &lt;em&gt;Page&lt;/em&gt; column, then navigate to the &lt;em&gt;Sources&lt;/em&gt; tab.&lt;/p&gt;&#xA;&lt;p&gt;Scroll down until we stumble on the function &lt;code&gt;stageClipboard&lt;/code&gt;. This is the function that contains the malicious PowerShell code which is automatically copied to the victim’s clipboard.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;c6366fed54307a060f39466db53ba1c1_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;335px&#34; data-flex-grow=&#34;139&#34; height=&#34;572&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/c6366fed54307a060f39466db53ba1c1_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Microsoft Edge: Identifying the stageClipboard function in index.html&lt;/p&gt;&#xA;&lt;p&gt;Notice the familiar command? It’s the same PowerShell command we found in &lt;strong&gt;Question 1&lt;/strong&gt;. This means we’ve identified the source of the initial access and confirmed that our victim, Happy Grunwald, was compromised.&lt;/p&gt;&#xA;&lt;p&gt;Based on Happy’s account of solving a Captcha challenge, and the evidence we’ve located during this investigation, we can reasonably conclude that he fell victim to a &lt;strong&gt;fake CAPTCHA&lt;/strong&gt; leading to a &lt;strong&gt;ClickFix&lt;/strong&gt; attack.&lt;/p&gt;&#xA;&lt;p&gt;If you aren’t familiar, &lt;em&gt;ClickFix&lt;/em&gt; attacks typically involve a fake Captcha page that asks the user to “verify” themselves by instructing the victim to open the Windows Run dialog and paste a malicious PowerShell command that has been automatically copied to their clipboard. This technique is known as &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1204/004/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;User Execution: Malicious Copy and Paste (T1204.004)&lt;/em&gt;&lt;/a&gt; from &lt;strong&gt;MITRE ATT&amp;amp;CK.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you’d like more information about &lt;em&gt;ClickFix&lt;/em&gt; attacks, check out this excellent blog from &lt;strong&gt;Palo Alto Unit 42&lt;/strong&gt; linked below:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://unit42.paloaltonetworks.com/preventing-clickfix-attack-vector/&#34;  title=&#34;https://unit42.paloaltonetworks.com/preventing-clickfix-attack-vector/&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Fix the Click: Preventing the ClickFix Attack Vector&lt;/strong&gt;&#xA;_ClickFix campaigns are on the rise. We highlight three that distributed NetSupport RAT, Latrodectus, and Lumma Stealer…_unit42.paloaltonetworks.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://unit42.paloaltonetworks.com/preventing-clickfix-attack-vector/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now that we’ve completed all our objectives and scoped out this attack, let’s submit our answer and wrap up the investigation.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;b82c9c725bb29b5ea0700449b5597cce_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1116px&#34; data-flex-grow=&#34;465&#34; height=&#34;172&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/b82c9c725bb29b5ea0700449b5597cce_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;conclusion&#34;&gt;Conclusion:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;img alt=&#34;80a30afbcefc97867bb4f5f3ca7eb4f3_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;311px&#34; data-flex-grow=&#34;129&#34; height=&#34;617&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/80a30afbcefc97867bb4f5f3ca7eb4f3_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;There we have it! We’ve completed all our objectives and determined how the victim, Happy, was compromised. By analyzing the user’s &lt;code&gt;NTUSER.DAT&lt;/code&gt; artifact with &lt;em&gt;Registry Explorer&lt;/em&gt;, we identified a malicious command executed on the victim’s system. After that, we checked out their network traffic with &lt;em&gt;NetworkMiner&lt;/em&gt; to identify second-stage payloads, command and control infrastructure, and ultimately confirmed that the user fell victim to a fake &lt;em&gt;Captcha&lt;/em&gt; leading to a ClickFix attack.&lt;/p&gt;&#xA;&lt;p&gt;A big thank you to &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;Hack The Box&lt;/em&gt;&lt;/a&gt; for another high-quality and engaging Sherlock. These things are just awesome — each one presents a great hands-on opportunity to investigate realistic attacks. I chose this week’s challenge to learn more about the artifacts left behind from a &lt;em&gt;ClickFix&lt;/em&gt; attack. These types of attacks are becoming more and more common, so I wanted an opportunity to dig deeper into how they work and what impact they can have.&lt;/p&gt;&#xA;&lt;p&gt;While &lt;em&gt;Wireshark&lt;/em&gt; is a core tool in any cybersecurity toolkit, I wanted the opportunity to highlight a great use case for &lt;em&gt;NetworkMiner&lt;/em&gt; and its feature set. This challenge didn’t disappoint!&lt;/p&gt;&#xA;&lt;p&gt;Thanks for your support and partnering on this investigation. If you found this walkthrough helpful, don’t forget to &lt;strong&gt;give it a clap&lt;/strong&gt;! Your feedback really is invaluable, and it pumps me up to support your security journey. Remember, Cybersecurity is a team sport and we’re in this together!&lt;/p&gt;&#xA;&lt;p&gt;Until next week’s challenge — stay curious and be safe out there!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;250&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-pikaptcha-sherlock-walkthrough/897587ce48e9f9feb186cdd21a12ccdd_MD5.png&#34; width=&#34;250&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;tools--references&#34;&gt;Tools &amp;amp; References:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Challenge Link:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Pikaptcha&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/Pikaptcha&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Flare-VM:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Eric Zimmerman’s Tools:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://ericzimmerman.github.io/#!index.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://ericzimmerman.github.io/#!index.md&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Wireshark:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.wireshark.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.wireshark.org/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;NetworkMiner:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.netresec.com/?page=NetworkMiner&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.netresec.com/?page=NetworkMiner&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Notepad++&lt;/strong&gt;: &lt;a class=&#34;link&#34; href=&#34;https://notepad-plus-plus.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://notepad-plus-plus.org/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;VirusTotal:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.virustotal.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.virustotal.com/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;CyberChef:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://gchq.github.io/CyberChef/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://gchq.github.io/CyberChef/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;VirusTotal — Sample:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.virustotal.com/gui/file/579284442094e1a44bea9cfb7d8d794c8977714f827c97bcb2822a97742914de/behavior&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.virustotal.com/gui/file/579284442094e1a44bea9cfb7d8d794c8977714f827c97bcb2822a97742914de/behavior&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Calculator.net:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.calculator.net/time-duration-calculator.html?starthour=05&amp;amp;startmin=07&amp;amp;startsec=48&amp;amp;startunit=p&amp;amp;endhour=05&amp;amp;endmin=14&amp;amp;endsec=31&amp;amp;endunit=p&amp;amp;ctype=1&amp;amp;x=Calculate&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.calculator.net/time-duration-calculator.html?starthour=05&amp;amp;startmin=07&amp;amp;startsec=48&amp;amp;startunit=a&amp;amp;endhour=05&amp;amp;endmin=15&amp;amp;endsec=31&amp;amp;endunit=p&amp;amp;ctype=1&amp;amp;x=Calculate&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — User Execution: Malicious Copy and Paste (T1204.004):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1204/004/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1204/004/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Palo Alto — Unit 42: Fix the Click: Preventing the ClickFix Attack Vector:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://unit42.paloaltonetworks.com/preventing-clickfix-attack-vector/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://unit42.paloaltonetworks.com/preventing-clickfix-attack-vector/&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>HackTheBox  — BFT Sherlock Walkthrough</title>
            <link>https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/</link>
            <pubDate>Sun, 25 May 2025 00:00:00 +0000</pubDate>
            <guid>https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/</guid>
            <description>&lt;img src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/39f348527634cd6e92df8a87a015585d_MD5.png&#34; alt=&#34;Featured image of post HackTheBox  — BFT Sherlock Walkthrough&#34; /&gt;&lt;h3 id=&#34;hackthebox-bft-sherlock-walkthrough&#34;&gt;HackTheBox— BFT Sherlock Walkthrough&#xA;&lt;/h3&gt;&lt;h4 id=&#34;investigating-a-compromised-endpoint-using-mftecmd-and-timeline-explorer&#34;&gt;Investigating a Compromised Endpoint Using MFTECmd and Timeline Explorer.&#xA;&lt;/h4&gt;&lt;p&gt;&lt;img alt=&#34;39f348527634cd6e92df8a87a015585d_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;320&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/39f348527634cd6e92df8a87a015585d_MD5.png&#34; width=&#34;320&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Image Credit: &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/BFT&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/BFT&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;introduction&#34;&gt;Introduction:&#xA;&lt;/h3&gt;&lt;p&gt;Welcome to my weekly walkthrough! If you’ve &lt;em&gt;stumbled&lt;/em&gt; across this blog searching for a comprehensive guide to the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/BFT&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;BFT Sherlock&lt;/strong&gt;&lt;/a&gt; challenge from &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt;, you’re in the right place. This challenge is a fantastic introduction to analyzing &lt;em&gt;MFT&lt;/em&gt; artifacts on a Windows system — let’s check out the scenario below.&lt;/p&gt;&#xA;&lt;h3 id=&#34;challenge-scenario&#34;&gt;Challenge Scenario:&#xA;&lt;/h3&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;In this Sherlock, you will become acquainted with MFT (Master File Table) forensics. You will be introduced to well-known tools and methodologies for analyzing MFT artifacts to identify malicious activity. During our analysis, you will utilize the MFTECmd tool to parse the provided MFT file, TimeLine Explorer to open and analyze the results from the parsed MFT, and a Hex editor to recover file contents from the MFT.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;In this challenge, a victim’s device has been compromised with malware, and we need to investigate what happened. The twist? We’re only given access to the &lt;em&gt;Master File Table&lt;/em&gt; from the device. Fortunately, this is a robust forensic artifact that contains an entry for every file on the system — including size, timestamps, permissions, and more!&lt;/p&gt;&#xA;&lt;p&gt;What’s in our toolkit for this investigation? Like the challenge stated, we’re going to leverage a couple of tools from &lt;a class=&#34;link&#34; href=&#34;https://ericzimmerman.github.io/#!index.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;Eric Zimmerman’s&lt;/em&gt;&lt;/a&gt; &lt;em&gt;forensic suite&lt;/em&gt; to parse and explore the &lt;code&gt;$MFT&lt;/code&gt;, including &lt;em&gt;MFTECmd&lt;/em&gt; to parse it and &lt;em&gt;Timeline Explorer&lt;/em&gt; to analyze the results.&lt;/p&gt;&#xA;&lt;p&gt;Sounds like fun, right? Let’s get into it!&lt;/p&gt;&#xA;&lt;p&gt;And if you find this walkthrough helpful — whether it levels-up your skills, gets you over a stumbling block, or serves as a handy reference — please give it a clap and consider following me for more content like this.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for reading and going on this investigation with me!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;setup-the-analysis-environment--extract-the-challenge-file&#34;&gt;Setup the Analysis Environment &amp;amp; Extract the Challenge File:&#xA;&lt;/h3&gt;&lt;p&gt;Safety first! It’s always important when working with lab/challenge files from &lt;em&gt;Hack the Box (or any educational lab/challenge/range)&lt;/em&gt; to keep yourself protected by performing these tasks in a dedicated, isolated virtual machine environment. For example, since this is a _Windows-_based lab, I’m using &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;FLARE-VM&lt;/strong&gt;&lt;/a&gt; for this challenge and walkthrough.&lt;/p&gt;&#xA;&lt;p&gt;To keep this write-up focused I’m going to skip the step-by-step setup of &lt;em&gt;FLARE-VM&lt;/em&gt; but _i_f you’d like to set up your own environment, please follow the directions provided directly by &lt;em&gt;FLARE-VM&lt;/em&gt; on &lt;em&gt;GitHub.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  title=&#34;https://github.com/mandiant/flare-vm&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;GitHub - mandiant/flare-vm: A collection of software installations scripts for Windows systems that…&lt;/strong&gt;&#xA;_A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a…_github.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Okay! Once we have our virtual environment created, updated, isolated, and snapshotted, we can extract the challenge file and start the investigation!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;question-1-simon-stark-was-targeted-by-attackers-on-february-13-he-downloaded-a-zip-file-from-a-link-received-in-an-email-what-was-the-name-of-the-zip-file-he-downloaded-from-thelink&#34;&gt;Question 1: Simon Stark was targeted by attackers on February 13. He downloaded a ZIP file from a link received in an email. What was the name of the ZIP file he downloaded from the link?&#xA;&lt;/h3&gt;&lt;p&gt;Once we’ve downloaded the challenge file and unzipped the archive, let’s get a high-level overview of the artifacts and tools we have to work with.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;04b2632e5012403822b04df21bb5fe30_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;556px&#34; data-flex-grow=&#34;231&#34; height=&#34;345&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/04b2632e5012403822b04df21bb5fe30_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Windows Explorer: The contents of the challenge file folder&lt;/p&gt;&#xA;&lt;p&gt;Within the &lt;code&gt;C&lt;/code&gt; folder, we find a single file: &lt;code&gt;$MFT&lt;/code&gt;. This is the &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/windows/win32/fileio/master-file-table&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;Master File Table&lt;/em&gt;&lt;/a&gt;, which on &lt;em&gt;NTFS&lt;/em&gt; file systems contains an entry for every file on the system—including size, timestamps, and permissions. It&amp;rsquo;s a valuable forensic artifact for analyzing file activity on a system, and we&amp;rsquo;ll do exactly that.&lt;/p&gt;&#xA;&lt;p&gt;The other two folders contain our toolset. To analyze the &lt;code&gt;$MFT&lt;/code&gt;, we&amp;rsquo;ll use Eric Zimmerman&amp;rsquo;s &lt;a class=&#34;link&#34; href=&#34;https://github.com/EricZimmerman/MFTECmd&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;MFTECmd&lt;/strong&gt;&lt;/a&gt;, a CLI-based tool that parses and exports the contents. Then, we&amp;rsquo;ll leverage &lt;strong&gt;Timeline Explorer&lt;/strong&gt;, another Eric Zimmerman tool—a powerful CSV viewer that lets us sort and manipulate the results.&lt;/p&gt;&#xA;&lt;p&gt;Now that we’ve got the background out of the way, let’s jump into &lt;em&gt;MFTECmd&lt;/em&gt; and try it out. Open &lt;em&gt;Windows Command Prompt&lt;/em&gt; and run the tool using the syntax below:&lt;/p&gt;&#xA;&lt;p&gt;MFTECmd.exe -f &amp;lt;PATH_TO_$MFT_Artifact&amp;gt; &amp;ndash;csv &amp;lt;PATH_TO_OUTPUT_DIRECTORY&amp;gt;&lt;/p&gt;&#xA;&lt;p&gt;This command generates a CSV file we can open with &lt;em&gt;Timeline Explorer&lt;/em&gt; for analysis.&lt;/p&gt;&#xA;&lt;p&gt;Fortunately, we won’t be searching blindly — there are some clues in the question to guide us. First, we know this is a downloaded file, so filter the &lt;em&gt;Parent Path&lt;/em&gt; column using the keyword &lt;code&gt;Downloads&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Next, filter the &lt;em&gt;Extension&lt;/em&gt; column for &lt;code&gt;.zip&lt;/code&gt; to isolate ZIP file downloads.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;4520b0f32b65479e4d791f750468dc65_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;417px&#34; data-flex-grow=&#34;173&#34; height=&#34;460&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/4520b0f32b65479e4d791f750468dc65_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Timeline Explorer: Identifying the ZIP file&lt;/p&gt;&#xA;&lt;p&gt;By combining these filters, we can identify the file used for initial access. To validate our findings, check the &lt;em&gt;Time Created&lt;/em&gt; column to match the date, February 13, to determine which ZIP file was created first.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;cb7ebb889d502446e2ad3900f5683b3a_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1454px&#34; data-flex-grow=&#34;606&#34; height=&#34;132&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/cb7ebb889d502446e2ad3900f5683b3a_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-2-examine-the-zone-identifier-contents-for-the-initially-downloaded-zip-file-this-field-reveals-the-hosturl-from-where-the-file-was-downloaded-serving-as-a-valuable-indicator-of-compromise-ioc-in-our-investigationanalysis-what-is-the-full-host-url-from-where-this-zip-file-was-downloaded&#34;&gt;Question 2: Examine the Zone Identifier contents for the initially downloaded ZIP file. This field reveals the HostUrl from where the file was downloaded, serving as a valuable Indicator of Compromise (IOC) in our investigation/analysis. What is the full Host URL from where this ZIP file was downloaded?&#xA;&lt;/h3&gt;&lt;p&gt;Next, we need to examine the &lt;em&gt;Zone Identifier&lt;/em&gt; for the downloaded ZIP file to identify the URL it came from.&lt;/p&gt;&#xA;&lt;p&gt;To do this, copy the &lt;em&gt;Entry Number&lt;/em&gt; column value,&lt;code&gt;75191&lt;/code&gt;,for the file we located in &lt;strong&gt;Question 1&lt;/strong&gt;. Then, clear the &lt;em&gt;Extension&lt;/em&gt; filter so we’re not limiting the view to just &lt;code&gt;.zip&lt;/code&gt; files.&lt;/p&gt;&#xA;&lt;p&gt;Next, input the value we copied into the &lt;em&gt;Entry Number&lt;/em&gt; column to view results tied to this specific entry in the &lt;code&gt;$MFT&lt;/code&gt;. Once filtered, we’ll see a second entry with the &lt;code&gt;.identifier&lt;/code&gt; extension.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;68905aee2db7ed1338063517a9d80b9b_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;416px&#34; data-flex-grow=&#34;173&#34; height=&#34;461&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/68905aee2db7ed1338063517a9d80b9b_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Timeline Explorer: Filtering the $MFT entry number&lt;/p&gt;&#xA;&lt;p&gt;Scroll to the &lt;em&gt;Zone ID Contents&lt;/em&gt; column to determine the &lt;em&gt;HostURL&lt;/em&gt; metadata of the downloaded file. In the example below, I’ve double-clicked the entry to open the full cell contents&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;2e26ea3a6d00f5455b4bfc18042ea2c1_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;415px&#34; data-flex-grow=&#34;173&#34; height=&#34;462&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/2e26ea3a6d00f5455b4bfc18042ea2c1_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Timeline Explorer: Identifying the HostURL metadata&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;c6652ff237a2b6b5f7ddbeb12ec3f071_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1432px&#34; data-flex-grow=&#34;597&#34; height=&#34;134&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/c6652ff237a2b6b5f7ddbeb12ec3f071_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-3-what-is-the-full-path-and-name-of-the-malicious-file-that-executed-malicious-code-and-connected-to-a-c2server&#34;&gt;Question 3: What is the full path and name of the malicious file that executed malicious code and connected to a C2 server?&#xA;&lt;/h3&gt;&lt;p&gt;Now that we’ve identified the malicious &lt;code&gt;.zip&lt;/code&gt; file and where it was downloaded from, let&amp;rsquo;s see if we can glean anything about its contents.&lt;/p&gt;&#xA;&lt;p&gt;Within &lt;em&gt;Timeline Explorer&lt;/em&gt;, clear the &lt;em&gt;Entry Number&lt;/em&gt; filter we used in the previous question. This time, we’ll search for the filename from within the &lt;code&gt;Downloads&lt;/code&gt; folder—this helps us understand more about the archive’s structure.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;d5e96bd7dafa4837f0936060b872bfba_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;417px&#34; data-flex-grow=&#34;173&#34; height=&#34;460&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/d5e96bd7dafa4837f0936060b872bfba_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Timeline Explorer: Sussing out the malicious file&lt;/p&gt;&#xA;&lt;p&gt;Using this keyword search, we’re able to identify a second archive, &lt;code&gt;invoice.zip&lt;/code&gt;, which contains a suspicious &lt;code&gt;.bat&lt;/code&gt; file—&lt;code&gt;invoice.bat&lt;/code&gt;. Copy the entry under the &lt;em&gt;Parent Path&lt;/em&gt; column and append the typical drive letter (&lt;code&gt;C:&lt;/code&gt;) to match the answer format.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;225ba9abac1f1c0340cca2b4789ea283_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1641px&#34; data-flex-grow=&#34;683&#34; height=&#34;117&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/225ba9abac1f1c0340cca2b4789ea283_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-4-analyze-the-created0x30-timestamp-for-the-previously-identified-file-when-was-this-file-created-ondisk&#34;&gt;Question 4: Analyze the $Created0x30 timestamp for the previously identified file. When was this file created on disk?&#xA;&lt;/h3&gt;&lt;p&gt;For our next task, we’ll continue analyzing the file we identified in Question 3. Scroll over to the &lt;em&gt;Created0x30&lt;/em&gt; column, which represents the file creation timestamp.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;de82e8e316606c7ade2436b5d5f40577_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;838px&#34; data-flex-grow=&#34;349&#34; height=&#34;229&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/de82e8e316606c7ade2436b5d5f40577_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Timeline Explorer: Identifying the Created0x30 timestamp&lt;/p&gt;&#xA;&lt;p&gt;This timestamp reflects when the file was created on disk. This is a helpful piece of forensic metadata, especially when trying to correlate file activity with an attack timeline.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;7f7eb4c7557869e05678bcd4272949fe_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1669px&#34; data-flex-grow=&#34;695&#34; height=&#34;115&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/7f7eb4c7557869e05678bcd4272949fe_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-5-finding-the-hex-offset-of-an-mft-record-is-beneficial-in-many-investigative-scenarios-find-the-hex-offset-of-the-stager-file-from-question3&#34;&gt;Question 5: Finding the hex offset of an MFT record is beneficial in many investigative scenarios. Find the hex offset of the stager file from Question 3.&#xA;&lt;/h3&gt;&lt;p&gt;To tackle &lt;strong&gt;Question 5&lt;/strong&gt;, we need to discover the hex offset for the malicious stager file. The hex offset is essentially the location where the entry is stored in the &lt;code&gt;$MFT&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To retrieve this information, let’s determine if there is a way to use &lt;em&gt;MFTECmd&lt;/em&gt; again by referring to the &lt;a class=&#34;link&#34; href=&#34;https://github.com/EricZimmerman/MFTECmd&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;MFTECmd GitHub&lt;/a&gt; page for command usage. After reviewing the documentation, we’ll try the &lt;code&gt;--de&lt;/code&gt; option, which dumps the details of an entry:&lt;/p&gt;&#xA;&lt;p&gt;de Dump full details for entry/sequence #. Format is &amp;lsquo;Entry&amp;rsquo; or &amp;lsquo;Entry-Seq&amp;rsquo; as decimal or hex. Example: 5, 624-5 or 0x270-0x5.&lt;/p&gt;&#xA;&lt;p&gt;Next, locate the &lt;em&gt;Entry Number&lt;/em&gt; of the malicious file from the previous two questions under the &lt;em&gt;Entry Number&lt;/em&gt; column.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;5e8ba7843a92d67398b28fc506337040_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;383px&#34; data-flex-grow=&#34;159&#34; height=&#34;501&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/5e8ba7843a92d67398b28fc506337040_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Timeline Explorer: Identifying the Entry Number of the malicious stager file&lt;/p&gt;&#xA;&lt;p&gt;Putting this together, we can use the following syntax to print the results to the console:&lt;/p&gt;&#xA;&lt;p&gt;MFTECmd.exe -f &amp;lt;PATH TO $MFT Artifact&amp;gt; &amp;ndash;de 23436&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;d926168efe75c0f8092ede672dbbeb36_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;398px&#34; data-flex-grow=&#34;165&#34; height=&#34;482&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/d926168efe75c0f8092ede672dbbeb36_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Command Prompt: MFTECmd command example to identify the offset&lt;/p&gt;&#xA;&lt;p&gt;Within the results, identify the &lt;em&gt;Offset&lt;/em&gt; value, chop off the leading padding &lt;code&gt;0x&lt;/code&gt;, and let’s check our work.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;9ef79d5001f19e6caf51f10897c91f89_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1600px&#34; data-flex-grow=&#34;666&#34; height=&#34;120&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/9ef79d5001f19e6caf51f10897c91f89_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-6-each-mft-record-is-1024-bytes-in-size-if-a-file-on-disk-has-smaller-size-than-1024-bytes-they-can-be-stored-directly-on-mft-file-itself-these-are-called-mft-resident-files-during-windows-file-system-investigation-its-crucial-to-look-for-any-malicioussuspicious-files-that-may-be-resident-in-mft-this-way-we-can-find-contents-of-malicious-filesscripts-find-the-contents-of-the-malicious-stager-identified-in-question3-and-answer-with-the-c2-ip-andport&#34;&gt;Question 6: Each MFT record is 1024 bytes in size. If a file on disk has smaller size than 1024 bytes, they can be stored directly on MFT File itself. These are called MFT Resident files. During Windows File system Investigation, its crucial to look for any malicious/suspicious files that may be resident in MFT. This way we can find contents of malicious files/scripts. Find the contents of The malicious stager identified in Question3 and answer with the C2 IP and port.&#xA;&lt;/h3&gt;&lt;p&gt;We’ve made it to the last question, and our final task is to examine the &lt;em&gt;DATA&lt;/em&gt; attribute, which contains the malicious file stored directly in the &lt;code&gt;$MFT&lt;/code&gt; as a resident file, to identify the &lt;strong&gt;command and control&lt;/strong&gt; (C2) IP address and port.&lt;/p&gt;&#xA;&lt;p&gt;Within our &lt;em&gt;MFTECmd&lt;/em&gt; analysis results, scroll to the &lt;em&gt;DATA&lt;/em&gt; section and focus on the &lt;em&gt;ASCII&lt;/em&gt; portion.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;217fa6ad10636aecb50cde3409933aa1_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;413px&#34; data-flex-grow=&#34;172&#34; height=&#34;464&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/217fa6ad10636aecb50cde3409933aa1_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Command Prompt: MFTECmd output, identifying the C2 server&lt;/p&gt;&#xA;&lt;p&gt;Under the &lt;em&gt;ASCII&lt;/em&gt; section, we’ll find the contents of the file — a &lt;strong&gt;PowerShell&lt;/strong&gt; script used to retrieve a second-stage payload from the C2 server. For the purposes of our investigation, we just need to capture the IP address and port of the server to complete our analysis.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;68f68f4ad62fdf59fa5577d35eaec424_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1280px&#34; data-flex-grow=&#34;533&#34; height=&#34;150&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/68f68f4ad62fdf59fa5577d35eaec424_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;conclusion&#34;&gt;Conclusion:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;img alt=&#34;4be6a1ca591a81a0d05e27b6880dc88f_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;301px&#34; data-flex-grow=&#34;125&#34; height=&#34;569&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/4be6a1ca591a81a0d05e27b6880dc88f_MD5.png&#34; width=&#34;714&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;There we have it! Using the &lt;em&gt;MFT&lt;/em&gt;, we’ve successfully uncovered how the victim’s device was infected, gathered details about the first-stage payloads, and identified the command and control (C2) server. Now that we’ve explored the &lt;em&gt;MFT&lt;/em&gt; and put those skills into practice to complete our objectives, let’s close out this walkthrough of the BFT Sherlock.&lt;/p&gt;&#xA;&lt;p&gt;A big thank you to &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt; for another impressive Sherlock. This was a really fun challenge that let me revisit the fundamentals of &lt;em&gt;MFT&lt;/em&gt; analysis and be reintroduced to this essential forensic artifact. Personally, learning more about &lt;em&gt;MFT Resident files&lt;/em&gt; was a highlight. It was so cool to see that concept in action to identify the C2 server. Awesome stuff!&lt;/p&gt;&#xA;&lt;p&gt;Thanks for your support and partnering on this investigation. If you found this walkthrough helpful, don’t forget to &lt;strong&gt;give it a clap&lt;/strong&gt;! Your feedback really is invaluable, and it pumps me up to support your security journey. Remember, Cybersecurity is a team sport and we’re in this together!&lt;/p&gt;&#xA;&lt;p&gt;Until next week’s challenge — stay curious and be safe out there!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;07670987b1c64247f60a1576b9626235_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;250&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-bft-sherlock-walkthrough/07670987b1c64247f60a1576b9626235_MD5.png&#34; width=&#34;250&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;tools--references&#34;&gt;Tools &amp;amp; References:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Challenge Link:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/BFT&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/BFT&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Flare-VM:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Eric Zimmerman’s Tools:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://ericzimmerman.github.io/#!index.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://ericzimmerman.github.io/#!index.md&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — Master File Table (Local File Systems):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/windows/win32/fileio/master-file-table&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/windows/win32/fileio/master-file-table&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MFTECmd:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/EricZimmerman/MFTECmd&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/EricZimmerman/MFTECmd&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>HackTheBox  — Brutus Sherlock Walkthrough</title>
            <link>https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/</link>
            <pubDate>Sun, 16 Mar 2025 00:00:00 +0000</pubDate>
            <guid>https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/</guid>
            <description>&lt;img src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/31f7f048397385ab2d3044505fdddcd2_MD5.png&#34; alt=&#34;Featured image of post HackTheBox  — Brutus Sherlock Walkthrough&#34; /&gt;&lt;h3 id=&#34;hacktheboxbrutus-sherlock-walkthrough&#34;&gt;HackTheBox — Brutus Sherlock Walkthrough&#xA;&lt;/h3&gt;&lt;h4 id=&#34;investigating-a-brute-force-attack-using-the-authlog-and-wtmplog&#34;&gt;Investigating a Brute Force Attack Using the auth.log and wtmp log.&#xA;&lt;/h4&gt;&lt;p&gt;&lt;img alt=&#34;31f7f048397385ab2d3044505fdddcd2_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;320&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/31f7f048397385ab2d3044505fdddcd2_MD5.png&#34; width=&#34;320&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Image Credit: &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Brutus/play&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/Brutus/play&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;introduction&#34;&gt;Introduction:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Welcome to my weekly walkthrough!&lt;/strong&gt; If you’ve stumbled across this blog searching for a comprehensive walkthrough of the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Brutus&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Brutus&lt;/strong&gt;&lt;/a&gt; challenge from &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt;, you’re in the right place. Imagine this scenario as we step into the shoes of a digital forensics analyst:&lt;/p&gt;&#xA;&lt;h3 id=&#34;challenge-scenario&#34;&gt;Challenge Scenario:&#xA;&lt;/h3&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;&lt;strong&gt;&lt;em&gt;In this very easy Sherlock, you will familiarize yourself with Unix auth.log and wtmp logs. We’ll explore a scenario where a Confluence server was brute-forced via its SSH service. After gaining access to the server, the attacker performed additional activities, which we can track using auth.log. Although auth.log is primarily used for brute-force analysis, we will delve into the full potential of this artifact in our investigation, including aspects of privilege escalation, persistence, and even some visibility into command execution.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;The adversary has brute-forced the SSH service on a web server, gained initial access, and we need to investigate how it happened and what else they did with their access to mitigate the threat. Our objective is to analyze the server’s &lt;code&gt;auth.log&lt;/code&gt; and &lt;code&gt;wtmp&lt;/code&gt; logs to create a detailed timeline of the attacker’s activities, including initial access, privilege escalation, and persistence. To analyze these logs, we’re going to leverage &lt;strong&gt;Notepad++&lt;/strong&gt; and &lt;code&gt;utmpdump&lt;/code&gt;, then enrich our findings by pivoting to &lt;strong&gt;MITRE ATT&amp;amp;CK&lt;/strong&gt; to fully understand the adversary’s tactics and techniques.&lt;/p&gt;&#xA;&lt;p&gt;Sounds exciting, right? Let’s get dive right into it! If you find this walkthrough helpful — whether it levels-up your skills, gets you over a stumbling block, or serves as a handy reference — please give it a clap and consider following me for more content like this. Thanks for reading and going on this investigation with me!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;question-1-analyze-the-authlog-what-is-the-ip-address-used-by-the-attacker-to-carry-out-a-brute-forceattack&#34;&gt;Question 1: Analyze the auth.log. What is the IP address used by the attacker to carry out a brute force attack?&#xA;&lt;/h3&gt;&lt;p&gt;Okay — let’s jump right into this challenge by opening the first provided artifact, &lt;code&gt;auth.log&lt;/code&gt;. For context, &lt;code&gt;auth.log&lt;/code&gt; is the server’s authentication log which is a good starting point to identify a &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;brute force&lt;/strong&gt;&lt;/a&gt; attack as we can analyze successful and failed logins.&lt;/p&gt;&#xA;&lt;p&gt;While there are other ways to approach the initial analysis, for this walkthrough, I’m going to simply use &lt;strong&gt;Notepad++&lt;/strong&gt; for my approach but feel free to choose any text editor you’d like!&lt;/p&gt;&#xA;&lt;p&gt;With the artifact open, scroll through the events, and quickly we’ll observe dozens of lines returning &lt;code&gt;Invalid user&lt;/code&gt; and &lt;code&gt;Failed password&lt;/code&gt; from a single IP address, &lt;code&gt;65.2.161.68&lt;/code&gt;. The large number of failed attempts to access these accounts is indicative of brute force password guessing (MITRE ATT&amp;amp;CK — &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110/001/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;T1110.001&lt;/a&gt;).&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;9da7f198a1a295341dec73fd1980507e_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;409px&#34; data-flex-grow=&#34;170&#34; height=&#34;469&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/9da7f198a1a295341dec73fd1980507e_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Snippet from auth.log revealing failed username and password guessing attempts.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;a9b2ca2904a814ce0ad222a345117bc1_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1361px&#34; data-flex-grow=&#34;567&#34; height=&#34;141&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/a9b2ca2904a814ce0ad222a345117bc1_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-2-the-bruteforce-attempts-were-successful-and-attacker-gained-access-to-an-account-on-the-server-what-is-the-username-of-theaccount&#34;&gt;Question 2: The bruteforce attempts were successful and attacker gained access to an account on the server. What is the username of the account?&#xA;&lt;/h3&gt;&lt;p&gt;Now that we’ve discovered the attacker’s IP address, we’ll need to determine what account they successfully accessed. To do this, we’ll first need to understand what a successful login looks like. For example, toward the top of the log on lines 11–15, we’ll find a successful login for the &lt;code&gt;root&lt;/code&gt; user from the IP address &lt;code&gt;203.101.190.9&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;ea9745730653ed11f517b81dc620594f_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1371px&#34; data-flex-grow=&#34;571&#34; height=&#34;140&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/ea9745730653ed11f517b81dc620594f_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;auth.log snippet showing a successful sign-in.&lt;/p&gt;&#xA;&lt;p&gt;Having this information gives us a couple of strings that we can search for in the logs by using the “find” function to search for “accepted password,” indicating a successful login event. Let’s keep searching to see what other accounts logged in.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;53706dcb82e744ea072a372dccef28db_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;690px&#34; data-flex-grow=&#34;287&#34; height=&#34;278&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/53706dcb82e744ea072a372dccef28db_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Notice anything suspicious on line 281? The next hit that we’ll locate is another login from the &lt;code&gt;root&lt;/code&gt; user, but this time, the connecting IP address is the attacker’s — &lt;code&gt;65.2.161.68&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;29bcdd6a2064a8989ea6f781af1be611_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1641px&#34; data-flex-grow=&#34;683&#34; height=&#34;117&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/29bcdd6a2064a8989ea6f781af1be611_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-3-identify-the-timestamp-when-the-attacker-logged-in-manually-to-the-server-to-carry-out-their-objectives-the-login-time-will-be-different-than-the-authentication-time-and-can-be-found-in-the-wtmp-artifact&#34;&gt;Question 3: Identify the timestamp when the attacker logged in manually to the server to carry out their objectives. The login time will be different than the authentication time, and can be found in the wtmp artifact.&#xA;&lt;/h3&gt;&lt;p&gt;From the sign-in records in the &lt;code&gt;auth.log&lt;/code&gt;, we’ve started to gather a rough timeline of the attack. However, we need to correlate this with the second log artifact, &lt;code&gt;wtmp&lt;/code&gt;, which contains only the successful login/logout events on the system, for a comprehensive picture of the login activity.&lt;/p&gt;&#xA;&lt;p&gt;The tricky part is that &lt;code&gt;wtmp&lt;/code&gt; is a binary log file, so we can’t simply use Notepad++ to read it like we did for &lt;code&gt;auth.log&lt;/code&gt;. Instead, we’ll need to leverage a Linux-based tool like &lt;code&gt;last&lt;/code&gt; to read it. According to the &lt;strong&gt;Ubuntu&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://manpages.ubuntu.com/manpages/focal/man1/last.1.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;manpages&lt;/strong&gt;&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;last searches back through the /var/log/wtmp file (or the file designated by the -f option) and displays a list of all users logged in (and out) since that file was created.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;If you’re using a Linux-based analysis environment like I am, you’re in good shape. If you’re using a Windows-based environment, you can utilize something like the &lt;strong&gt;Windows Subsystem for Linux (WSL)&lt;/strong&gt; to access this utility. For this walkthrough, I’ll post screenshots from both my REMnux environment and the WSL output for your reference. Let’s try putting this all together, adding in the full timestamps which we can access with the &lt;code&gt;-F&lt;/code&gt; argument.&lt;/p&gt;&#xA;&lt;p&gt;last -F -f wtmp&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;f1c9685ffef891ba6a4e273eeca98221_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;831px&#34; data-flex-grow=&#34;346&#34; height=&#34;231&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/f1c9685ffef891ba6a4e273eeca98221_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;last command output in REMnux&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;e8ed646393b8533cdc69b1d3ef4e30ae_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;849px&#34; data-flex-grow=&#34;353&#34; height=&#34;226&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/e8ed646393b8533cdc69b1d3ef4e30ae_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;last command using WSL&lt;/p&gt;&#xA;&lt;p&gt;We’re getting closer but notice that the timestamp doesn’t quite match what we found in &lt;code&gt;auth.log&lt;/code&gt;. While we can assume that there’s a mismatch between the system time and the local time, let’s try interpreting &lt;code&gt;wtmp&lt;/code&gt; another way using a different utility, &lt;code&gt;utmpdump&lt;/code&gt;. According to the &lt;a class=&#34;link&#34; href=&#34;https://manpages.ubuntu.com/manpages/focal/man1/utmpdump.1.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;manpages&lt;/a&gt;, &lt;code&gt;utmpdump&lt;/code&gt; is “&lt;em&gt;a simple program to dump UTMP and WTMP files in raw format, so they can be examined.&lt;/em&gt;” Let’s try it out and see what we can discover.&lt;/p&gt;&#xA;&lt;p&gt;utmpdump wtmp&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;200d49bd056fbb1a0d96dd1b09a3094d_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;509px&#34; data-flex-grow=&#34;212&#34; height=&#34;377&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/200d49bd056fbb1a0d96dd1b09a3094d_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;utmpdump in REMnux&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;07e20498527b721e34845bc20c6c55a0_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;448px&#34; data-flex-grow=&#34;186&#34; height=&#34;428&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/07e20498527b721e34845bc20c6c55a0_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;utmpdump in WSL&lt;/p&gt;&#xA;&lt;p&gt;Bingo! By dumping the &lt;code&gt;wtmp&lt;/code&gt; with &lt;code&gt;utmpdump&lt;/code&gt; we can locate the correct timestamp for the attacker’s login to the server. Now that we’ve established a firm timeline, let’s proceed with our investigation.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;392a14d19a4358a87c4c2246d9310e12_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1443px&#34; data-flex-grow=&#34;601&#34; height=&#34;133&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/392a14d19a4358a87c4c2246d9310e12_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-4-ssh-login-sessions-are-tracked-and-assigned-a-session-number-upon-login-what-is-the-session-number-assigned-to-the-attackers-session-for-the-user-account-from-question2&#34;&gt;Question 4: SSH login sessions are tracked and assigned a session number upon login. What is the session number assigned to the attacker’s session for the user account from Question 2?&#xA;&lt;/h3&gt;&lt;p&gt;Now that we’ve identified the timestamp of the attacker’s login, let’s find the corresponding timestamp of the SSH session in the &lt;code&gt;auth.log&lt;/code&gt; on line 322. Examining the nearby events more closely, we can see that on line 324, the new session is assigned the ID 37.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;d4335212474fbc2babe244f57718366c_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;600px&#34; data-flex-grow=&#34;250&#34; height=&#34;320&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/d4335212474fbc2babe244f57718366c_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Identifying the attacker’s session ID in auth.log&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;7dfa42451aad97ceb8ac12518a6bf76d_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1523px&#34; data-flex-grow=&#34;634&#34; height=&#34;126&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/7dfa42451aad97ceb8ac12518a6bf76d_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-5-the-attacker-added-a-new-user-as-part-of-their-persistence-strategy-on-the-server-and-gave-this-new-user-account-higher-privileges-what-is-the-name-of-thisaccount&#34;&gt;Question 5: The attacker added a new user as part of their persistence strategy on the server and gave this new user account higher privileges. What is the name of this account?&#xA;&lt;/h3&gt;&lt;p&gt;When analyzing the &lt;code&gt;wtmp&lt;/code&gt; in &lt;strong&gt;Question 3&lt;/strong&gt;, you may have noticed another user account other than &lt;code&gt;root&lt;/code&gt; present in the logs from the attacker’s IP address — &lt;strong&gt;cyberjunkie&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;d9fa1f9351bc7c62ace12be35f683f77_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;520px&#34; data-flex-grow=&#34;216&#34; height=&#34;369&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/d9fa1f9351bc7c62ace12be35f683f77_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;utmpdump in REMnux highlighting a second user account&lt;/p&gt;&#xA;&lt;p&gt;Let’s double-verify this finding in the &lt;code&gt;auth.log&lt;/code&gt; by searching for this username where we can confirm the activity.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;68c46d328b942376c1aa20b84f28fe7b_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;408px&#34; data-flex-grow=&#34;170&#34; height=&#34;470&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/68c46d328b942376c1aa20b84f28fe7b_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Searching the auth.log for activities from the cyberjunkie account&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;374fa0c4b47b3c0b464242220b884d2f_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1613px&#34; data-flex-grow=&#34;672&#34; height=&#34;119&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/374fa0c4b47b3c0b464242220b884d2f_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-6-what-is-the-mitre-attck-sub-technique-id-used-for-persistence-by-creating-a-newaccount&#34;&gt;Question 6: What is the MITRE ATT&amp;amp;CK sub-technique ID used for persistence by creating a new account?&#xA;&lt;/h3&gt;&lt;p&gt;Now that we understand the attacker brute-forced access to the &lt;code&gt;root&lt;/code&gt; account and created a second account, &lt;code&gt;cyberjunkie&lt;/code&gt;, for persistence, we need to map this technique to &lt;strong&gt;MITRE ATT&amp;amp;CK&lt;/strong&gt; for additional intelligence.&lt;/p&gt;&#xA;&lt;p&gt;After navigating to the &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;MITRE ATT&amp;amp;CK&lt;/a&gt; website, we can evaluate the techniques listed under the persistence tactics. Eventually we’ll stumble across the technique “&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1136/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Create Account” (T1136)&lt;/a&gt; which seems to fit. On the page for this technique, we can evaluate the various sub-techniques, such as &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1136/001/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;“Local Account” (T1136.001)&lt;/a&gt;, leading us to the answer for &lt;strong&gt;Question 6&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;1388e65cf27953e56d0232c10e5f288e_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;637px&#34; data-flex-grow=&#34;265&#34; height=&#34;301&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/1388e65cf27953e56d0232c10e5f288e_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;MITRE ATT&amp;amp;CK — Create Account (T1136) — Sub-Techniques&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1136/001/&#34;  title=&#34;https://attack.mitre.org/techniques/T1136/001/&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Create Account: Local Account&lt;/strong&gt;&#xA;_Adversaries may create a local account to maintain access to victim systems. Local accounts are those configured by an…_attack.mitre.org&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1136/001/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;5feaa70da59b5ef5433013da26350349_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1586px&#34; data-flex-grow=&#34;661&#34; height=&#34;121&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/5feaa70da59b5ef5433013da26350349_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-7-what-time-did-the-attackers-first-ssh-session-end-according-to-authlog&#34;&gt;Question 7: What time did the attacker’s first SSH session end according to auth.log?&#xA;&lt;/h3&gt;&lt;p&gt;Now, let’s jump back to &lt;code&gt;auth.log&lt;/code&gt; and analyze when the attacker’s first SSH session as the &lt;code&gt;root&lt;/code&gt; user ended. In the log, we’ll search for “disconnect” events from the attacker’s IP, which we can find on lines 355–359.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;3a9fec6d8390d3f94b003f512c728ebc_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;2630px&#34; data-flex-grow=&#34;1095&#34; height=&#34;73&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/3a9fec6d8390d3f94b003f512c728ebc_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;auth.log snippet showing SSH session disconnect&lt;/p&gt;&#xA;&lt;p&gt;For double verification, we also stumbled upon this answer when we used &lt;code&gt;last&lt;/code&gt; to read the &lt;code&gt;wtmp&lt;/code&gt; log back in &lt;strong&gt;Question 3&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;068c3a8930ddbc9ae2354ac01904931d_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;830px&#34; data-flex-grow=&#34;346&#34; height=&#34;208&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/068c3a8930ddbc9ae2354ac01904931d_MD5.png&#34; width=&#34;720&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Validating the session logout time in the wtmp log&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;fc5c1e20df56d4780c0f4519c41d8251_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1729px&#34; data-flex-grow=&#34;720&#34; height=&#34;111&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/fc5c1e20df56d4780c0f4519c41d8251_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-8-the-attacker-logged-into-their-backdoor-account-and-utilized-their-higher-privileges-to-download-a-script-what-is-the-full-command-executed-usingsudo&#34;&gt;Question 8: The attacker logged into their backdoor account and utilized their higher privileges to download a script. What is the full command executed using sudo?&#xA;&lt;/h3&gt;&lt;p&gt;For the final question of our investigation, let’s continue searching &lt;code&gt;auth.log&lt;/code&gt; for activities performed by the &lt;code&gt;cyberjunkie&lt;/code&gt; account, focusing specifically on events marked with &lt;code&gt;sudo&lt;/code&gt;, or superuser, privileges.&lt;/p&gt;&#xA;&lt;p&gt;On line 375, we’ll find something interesting: a command string leveraging &lt;code&gt;curl&lt;/code&gt; to download a script from a &lt;strong&gt;GitHub&lt;/strong&gt; repository.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;845cd5a4654b9a5f7933378176a10d3e_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;909px&#34; data-flex-grow=&#34;379&#34; height=&#34;211&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/845cd5a4654b9a5f7933378176a10d3e_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;auth.log snippet exposing malicious ingress tool transfer (&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1105/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;T1105&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;p&gt;While out of scope for this challenge, the downloaded script seems to be a Linux persistence tool which would allow the attacker to maintain their access to the compromised server. From a defense perspective, having this knowledge gives us an idea of the attacker’s next moves.&lt;/p&gt;&#xA;&lt;p&gt;However, for the purposes of this challenge the command we found is all we need to answer &lt;strong&gt;Question 8&lt;/strong&gt; and conclude the investigation. Great job!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;7f7c17e2215300974997bf516d5545a3_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1600px&#34; data-flex-grow=&#34;666&#34; height=&#34;120&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/7f7c17e2215300974997bf516d5545a3_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;conclusion&#34;&gt;Conclusion:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;img alt=&#34;0d6cf5f9283615bce8cf059acfbde092_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;261px&#34; data-flex-grow=&#34;109&#34; height=&#34;733&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/0d6cf5f9283615bce8cf059acfbde092_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Case closed!&lt;/strong&gt; Using the server’s &lt;code&gt;auth.log&lt;/code&gt; and &lt;code&gt;wtmp&lt;/code&gt; logs, we successfully identified the time of the attack, the attacker’s IP address, the compromised account, and their methods of persistence. During the investigation, we turned to MITRE ATT&amp;amp;CK to gain deeper insights into each technique, helping us better understand the adversary’s tactics and techniques. Now that we have scoped the attack and achieved our objectives, let’s close out this walkthrough of the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Brutus&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Brutus&lt;/strong&gt;&lt;/a&gt; challenge.&lt;/p&gt;&#xA;&lt;p&gt;A big thank you to &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt;, for another engaging and realistic challenge. I chose this challenge as I was unfamiliar with the &lt;code&gt;wtmp&lt;/code&gt; logs and what additional artifacts they contain compared to the &lt;code&gt;auth.log&lt;/code&gt;. It was incredibly fun and valuable to learn about these logs and how to read them using &lt;code&gt;last&lt;/code&gt; and &lt;code&gt;utmpdump&lt;/code&gt;. The hands-on practice will absolutely come in handy during real-world during incident response. Awesome stuff!&lt;/p&gt;&#xA;&lt;p&gt;Thanks for your support and partnering on this investigation. If you found this walkthrough helpful, don’t forget to &lt;strong&gt;give it a clap&lt;/strong&gt;! Your feedback really is invaluable and helps fuel my commitment to support your security journey. Cybersecurity is a team sport and we’re in this together!&lt;/p&gt;&#xA;&lt;p&gt;Until next week’s challenge — stay curious and be safe out there!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;07670987b1c64247f60a1576b9626235_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;250&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-brutus-sherlock-walkthrough/07670987b1c64247f60a1576b9626235_MD5.png&#34; width=&#34;250&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;tools--references&#34;&gt;Tools &amp;amp; References:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Challenge Link:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/Brutus&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/Brutus&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Notepad++:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://notepad-plus-plus.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://notepad-plus-plus.org/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Brute Force (T1110):&lt;/strong&gt;&lt;/a&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1110/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Brute Force: Password Guessing (T1110.001)&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1110/001/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1110/001/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Ubuntu Manpages — last:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://manpages.ubuntu.com/manpages/focal/man1/last.1.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://manpages.ubuntu.com/manpages/focal/man1/last.1.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Ubuntu Manpages - utmpdump:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://manpages.ubuntu.com/manpages/focal/man1/utmpdump.1.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://manpages.ubuntu.com/manpages/focal/man1/utmpdump.1.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Create Account: Local Account (T1136.001):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1136/001/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1136/001/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Ingress Tool Transfer (T1105):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1105/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1105/&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>HackTheBox  — CrownJewel-2 Sherlock Walkthrough</title>
            <link>https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/</link>
            <pubDate>Mon, 23 Dec 2024 00:00:00 +0000</pubDate>
            <guid>https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/</guid>
            <description>&lt;img src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/215c386a52799f34646b3d0806be728c_MD5.png&#34; alt=&#34;Featured image of post HackTheBox  — CrownJewel-2 Sherlock Walkthrough&#34; /&gt;&lt;h3 id=&#34;hacktheboxcrownjewel-2-sherlock-walkthrough&#34;&gt;HackTheBox — CrownJewel-2 Sherlock Walkthrough&#xA;&lt;/h3&gt;&lt;h4 id=&#34;investigating-a-compromised-domain-controller-using-windows-eventlogs&#34;&gt;Investigating a Compromised Domain Controller Using Windows Event Logs&#xA;&lt;/h4&gt;&lt;p&gt;&lt;img alt=&#34;215c386a52799f34646b3d0806be728c_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;300&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/215c386a52799f34646b3d0806be728c_MD5.png&#34; width=&#34;300&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Image Credit: &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/CrownJewel-2&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/CrownJewel-2&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;introduction&#34;&gt;Introduction:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Imagine this:&lt;/strong&gt; You’re on the front lines of an organization’s security team, trying to catch your breath and recover from an attack against your domain controller just yesterday. Suddenly, another alert fires from the domain controller about a new exfiltration attempt of the &lt;strong&gt;NTDS.dit&lt;/strong&gt; database which holds the domain’s secrets. Springing back to action, you must determine how the attacker got in this time by investigating the &lt;strong&gt;Windows Event Logs&lt;/strong&gt; to establish a timeline, understand how the attack unfolded, and evict the attacker…again.&lt;/p&gt;&#xA;&lt;p&gt;If this sounds exciting to you, welcome to my weekly walkthrough, you’ve stumbled on the right blog!&lt;/p&gt;&#xA;&lt;p&gt;This week, we’re tackling the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/CrownJewel-2&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;CrownJewel-2&lt;/strong&gt;&lt;/a&gt; challenge from &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt;, a direct follow-up to &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/CrownJewel-1&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;CrownJewel-1&lt;/strong&gt;&lt;/a&gt;. The scenario assumes that we’re the same incident responder that investigated the first attack, so you’ll get the most out of this challenge if you complete &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/CrownJewel-1&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;CrownJewel-1&lt;/strong&gt;&lt;/a&gt; first. I’ll leave a link to my walkthrough for part 1 below.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/&#34; &gt;&lt;strong&gt;HackTheBox — CrownJewel-1 Sherlock Walkthrough&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/CrownJewel-2&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;CrownJewel-2&lt;/strong&gt;&lt;/a&gt; is another &lt;strong&gt;digital forensics and incident response (DFIR)&lt;/strong&gt; challenge. This time, we’ll leverage the &lt;strong&gt;Windows Event Logs&lt;/strong&gt; to understand how the attacker exfiltrated the &lt;strong&gt;NTDS.dit&lt;/strong&gt; database. Using the &lt;strong&gt;Event Viewer&lt;/strong&gt;, we’ll establish a timeline of the attack and track what activities occurred before the exfiltration.&lt;/p&gt;&#xA;&lt;p&gt;While this challenge is geared toward beginners, it’s a fantastic lab for all skill levels to get some hands-on practice with &lt;strong&gt;Windows Event Log&lt;/strong&gt; analysis. So, let’s grab our magnifying glasses again, take a deep breath, and get ready to dive back into the investigation!&lt;/p&gt;&#xA;&lt;p&gt;And hey, if you find this walkthrough helpful — whether it levels-up your skills, gets you through a stumbling block, or serves as a handy reference — please &lt;strong&gt;give it a clap&lt;/strong&gt;!&lt;/p&gt;&#xA;&lt;p&gt;Thanks for reading and joining me on this investigation!&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Challenge Link:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/CrownJewel-2&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/CrownJewel-2&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;challenge-scenario&#34;&gt;Challenge Scenario:&#xA;&lt;/h3&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;&lt;strong&gt;Forela’s Domain environment is pure chaos. Just got another alert from the Domain controller of NTDS.dit database being exfiltrated. Just one day prior you responded to an alert on the same domain controller where an attacker dumped NTDS.dit via vssadmin utility. However, you managed to delete the dumped files kick the attacker out of the DC, and restore a clean snapshot. Now they again managed to access DC with a domain admin account with their persistent access in the environment. This time they are abusing ntdsutil to dump the database. Help Forela in these chaotic times!!&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;setup-the-analysis-environment--extract-the-challenge-file&#34;&gt;Setup the Analysis Environment &amp;amp; Extract the challenge file:&#xA;&lt;/h3&gt;&lt;p&gt;Safety first! It’s always important when working with lab/challenge files from &lt;em&gt;Hack the Box (or any educational lab/challenge/range)&lt;/em&gt; to keep yourself protected by performing these tasks in a dedicated, isolated virtual machine environment. For example, since this is a _Windows-_based lab, I’m using &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;FLARE-VM&lt;/strong&gt;&lt;/a&gt; for this challenge and walkthrough.&lt;/p&gt;&#xA;&lt;p&gt;To keep this write-up focused I’m going to skip the step-by-step setup of &lt;em&gt;FLARE-VM&lt;/em&gt; but _i_f you’d like to set up your own environment, please follow the directions provided directly by &lt;em&gt;FLARE-VM&lt;/em&gt; on &lt;em&gt;GitHub.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;2efb81522f2c&#34;&gt;[&lt;strong&gt;GitHub - mandiant/flare-vm: A collection of software installations scripts for Windows systems that…&lt;/strong&gt;&#xA;_A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a…_github.com](&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm?source=post_page---&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm?source=post_page---&lt;/a&gt;&#xA;&amp;ndash;2efb81522f2c&amp;mdash;&#xA;&lt;/h2&gt;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;2efb81522f2c-1&#34;&gt;&amp;ndash; &amp;ldquo;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm?source=post_page---&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm?source=post_page---&lt;/a&gt;&#xA;&amp;ndash;2efb81522f2c&amp;mdash;&#xA;&lt;/h2&gt;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;2efb81522f2c-2&#34;&gt;&amp;ndash;&amp;rdquo;)[](&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm?source=post_page---&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm?source=post_page---&lt;/a&gt;&#xA;&amp;ndash;2efb81522f2c&amp;mdash;&#xA;&lt;/h2&gt;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;&amp;ndash;)&lt;/p&gt;&#xA;&lt;p&gt;Okay! Once we have our virtual environment created, updated, isolated, and snapshotted, we can extract the challenge file and start the investigation!&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;question-1-when-utilizing-ntdsutilexe-to-dump-ntds-on-disk-it-simultaneously-employs-the-microsoft-shadow-copy-service-what-is-the-most-recent-timestamp-at-which-this-service-entered-the-running-state-signifying-the-possible-initiation-of-the-ntds-dumpingprocess&#34;&gt;Question 1: When utilizing ntdsutil.exe to dump NTDS on disk, it simultaneously employs the Microsoft Shadow Copy Service. What is the most recent timestamp at which this service entered the running state, signifying the possible initiation of the NTDS dumping process?&#xA;&lt;/h3&gt;&lt;p&gt;Time to kick off this investigation and see what the attackers are doing this time! After unzipping the challenge file, we’ll find three &lt;strong&gt;Windows Event Log&lt;/strong&gt; (.evtx) files that we’ll use to investigate the attacker’s activities.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;1b6fe8520e976c159678a3df35bfab07_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;559px&#34; data-flex-grow=&#34;233&#34; height=&#34;343&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/1b6fe8520e976c159678a3df35bfab07_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Application&lt;/strong&gt;: Contains application related log events.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;System&lt;/strong&gt;: Contains events related to &lt;strong&gt;Windows&lt;/strong&gt; and its components like services, drivers, and hardware.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Security&lt;/strong&gt;: Contains security-related events, including user logins, access attempts, and account enumeration.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Each of these logs will have a role to play during our investigation, but to answer &lt;strong&gt;Question 1,&lt;/strong&gt; we’re searching for when the &lt;strong&gt;Volume Shadow Service (VSSVC.exe)&lt;/strong&gt; last entered the running state, which might correlate with suspicious &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc753343%28v=ws.11%29&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;ntdsutil.exe&lt;/strong&gt;&lt;/a&gt; database dumping activity.&lt;/p&gt;&#xA;&lt;p&gt;If you joined me for the &lt;a class=&#34;link&#34; href=&#34;https://stumblesec.medium.com/hackthebox-crownjewel-1-sherlock-walkthrough-2efb81522f2c&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;CrownJewel-1&lt;/strong&gt;&lt;/a&gt; investigation, you might remember that we learned the &lt;strong&gt;SYSTEM&lt;/strong&gt; log contains the start and stop events for services, logged as &lt;strong&gt;Event ID 7036_._&lt;/strong&gt; Let’s try it out.&lt;/p&gt;&#xA;&lt;p&gt;Open the &lt;em&gt;SYSTEM&lt;/em&gt; log and filter it for the relevant Event ID we want by pressing &lt;em&gt;Filter Current Log&lt;/em&gt; then entering &lt;strong&gt;7036&lt;/strong&gt; into the Event ID field.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;4af99848b0d488139b1a5728d0e7735e_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;336px&#34; data-flex-grow=&#34;140&#34; height=&#34;570&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/4af99848b0d488139b1a5728d0e7735e_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Filtering the SYSTEM Log for Event ID 7036&lt;/p&gt;&#xA;&lt;p&gt;Once we’ve filtered the events, press &lt;em&gt;Find&lt;/em&gt; and enter the keywords “&lt;em&gt;volume shadow copy&lt;/em&gt;” — to find any instances of &lt;em&gt;Volume Shadow Copy&lt;/em&gt; service events. Since the events are listed in descending order, the newest ones will be at the top of the log — so the first hit should be the one we need to find the most recent entry.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;2965389ade6dc3e93fac0706bb302319_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;516px&#34; data-flex-grow=&#34;215&#34; height=&#34;372&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/2965389ade6dc3e93fac0706bb302319_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now, with the event selected, we can obtain the precise system time when the service was started by clicking &lt;strong&gt;Details&lt;/strong&gt; tab &amp;gt; &lt;strong&gt;XML View&lt;/strong&gt; &lt;em&gt;&amp;gt;&lt;/em&gt; &lt;strong&gt;TimeCreated SystemTime&lt;/strong&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;832ff2c45a94ce3b4d9cd4eff599fb62_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;336px&#34; data-flex-grow=&#34;140&#34; height=&#34;570&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/832ff2c45a94ce3b4d9cd4eff599fb62_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;b97ee3cf3ad3a0ce6a162862edb81d75_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;989px&#34; data-flex-grow=&#34;412&#34; height=&#34;194&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/b97ee3cf3ad3a0ce6a162862edb81d75_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-2-identify-the-full-path-of-the-dumped-ntdsfile&#34;&gt;Question 2: Identify the full path of the dumped NTDS file.&#xA;&lt;/h3&gt;&lt;p&gt;To answer &lt;strong&gt;Question 2&lt;/strong&gt;, let’s jump over to the &lt;strong&gt;APPLICATION&lt;/strong&gt; logs. Without any further filtering, let’s try simply searching for &lt;strong&gt;NTDS&lt;/strong&gt; and review the hits. It may take a few tries to find a meaningful event, but then we’ll stumble on the entry below:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;5df6df24400db6974d03658e47d30999_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;336px&#34; data-flex-grow=&#34;140&#34; height=&#34;570&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/5df6df24400db6974d03658e47d30999_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here we’ll observe that the &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/windows/win32/extensible-storage-engine/extensible-storage-engine-managed-reference&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;ESENT&lt;/a&gt; database engine created a new &lt;strong&gt;NTDS.dit&lt;/strong&gt; database which is the file for which we received the exfiltration alert. Recalling what we discovered in &lt;a class=&#34;link&#34; href=&#34;https://stumblesec.medium.com/hackthebox-crownjewel-1-sherlock-walkthrough-2efb81522f2c&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;CrownJewel-1&lt;/strong&gt;&lt;/a&gt;, dumping the &lt;strong&gt;NTDS.dit&lt;/strong&gt; file is a method an attacker can use to create a copy of the “&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1003/003/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;Active Directory domain database in order to steal credential information&lt;/em&gt;&lt;/a&gt;&lt;em&gt;.”&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Notice the suspicious file path of the dump and that the time stamp is one second after the &lt;strong&gt;Volume Shadow Service&lt;/strong&gt; started? These are both clues that we are on the right path.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;f22fa9a41cb55261e7d83537a8746244_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1230px&#34; data-flex-grow=&#34;512&#34; height=&#34;156&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/f22fa9a41cb55261e7d83537a8746244_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-3-when-was-the-database-dump-created-on-thedisk&#34;&gt;Question 3: When was the database dump created on the disk?&#xA;&lt;/h3&gt;&lt;p&gt;Fortunately, we already noticed the event timestamp correlation in the last question. In the same event from &lt;strong&gt;Question 2&lt;/strong&gt;, let’s capture the system time by navigating to the &lt;strong&gt;Details&lt;/strong&gt; tab, copying the &lt;strong&gt;System Time&lt;/strong&gt; for the event, and then submitting the answer to continue building our timeline.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;f6fa2d77dcff6500ed75444c0c7fb05f_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;332px&#34; data-flex-grow=&#34;138&#34; height=&#34;578&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/f6fa2d77dcff6500ed75444c0c7fb05f_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;b1e0f46e9ace41ddc3f2760eb5b228ae_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1238px&#34; data-flex-grow=&#34;516&#34; height=&#34;155&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/b1e0f46e9ace41ddc3f2760eb5b228ae_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-4-when-was-the-newly-dumped-database-considered-complete-and-ready-foruse&#34;&gt;Question 4: When was the newly dumped database considered complete and ready for use?&#xA;&lt;/h3&gt;&lt;p&gt;Since we’ve already found the database events in the &lt;strong&gt;APPLICATION&lt;/strong&gt; log, let’s manually review the entries that follow the database’s creation, starting with the event from &lt;strong&gt;Questions 2 &amp;amp; 3&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Scrolling through the logs, we’ll quickly come across the following event reporting that the database engine detached the dumped &lt;strong&gt;NTDS.dit&lt;/strong&gt; database, indicating that the creation is completed.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;de6339942391300c5ad0a22da366f004_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;325px&#34; data-flex-grow=&#34;135&#34; height=&#34;590&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/de6339942391300c5ad0a22da366f004_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Following the same process that we used in &lt;strong&gt;Questions 1 &amp;amp; 3&lt;/strong&gt;, copy the &lt;strong&gt;System Time&lt;/strong&gt; from the detailed view and submit the answer.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;81e9b0547c632c5307737529717fb82d_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1222px&#34; data-flex-grow=&#34;509&#34; height=&#34;157&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/81e9b0547c632c5307737529717fb82d_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-5-event-logs-use-event-sources-to-track-events-coming-from-different-sources-which-event-source-provides-database-status-data-like-creation-and-detachment&#34;&gt;Question 5: Event logs use event sources to track events coming from different sources. Which event source provides database status data like creation and detachment?&#xA;&lt;/h3&gt;&lt;p&gt;Throughout the investigation of the &lt;strong&gt;APPLICATION&lt;/strong&gt; logs, you may have noticed that both database events from &lt;strong&gt;Questions 3 &amp;amp; 4&lt;/strong&gt; were provided by the same event source: &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/windows/win32/extensible-storage-engine/extensible-storage-engine-managed-reference&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;ESENT&lt;/strong&gt;&lt;/a&gt;, a database engine that’s part of &lt;strong&gt;Windows&lt;/strong&gt;. This is all we need to answer &lt;strong&gt;Question 5.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/windows/win32/extensible-storage-engine/extensible-storage-engine-managed-reference&#34;  title=&#34;https://learn.microsoft.com/en-us/windows/win32/extensible-storage-engine/extensible-storage-engine-managed-reference&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Extensible Storage Engine Managed Reference - Win32 apps&lt;/strong&gt;&#xA;_Learn more about: Extensible Storage Engine Managed Reference_learn.microsoft.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/windows/win32/extensible-storage-engine/extensible-storage-engine-managed-reference&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;c6f6a7cdc4886aedb3500e94acad1436_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;325px&#34; data-flex-grow=&#34;135&#34; height=&#34;590&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/c6f6a7cdc4886aedb3500e94acad1436_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;7ef66291d61eabfab5229542d1a3cd70_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1103px&#34; data-flex-grow=&#34;459&#34; height=&#34;174&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/7ef66291d61eabfab5229542d1a3cd70_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-6-when-ntdsutilexe-is-used-to-dump-the-database-it-enumerates-certain-user-groups-to-validate-the-privileges-of-the-account-being-used-which-two-groups-are-enumerated-by-the-ntdsutilexe-process-give-the-groups-in-alphabetical-order-joined-by-commaspace&#34;&gt;Question 6: When ntdsutil.exe is used to dump the database, it enumerates certain user groups to validate the privileges of the account being used. Which two groups are enumerated by the ntdsutil.exe process? Give the groups in alphabetical order joined by comma space.&#xA;&lt;/h3&gt;&lt;p&gt;The key word to answering this question is “enumerate.” To find the answer, we’ll pivot to the &lt;strong&gt;SECURITY&lt;/strong&gt; log. Once again, if you followed along during the &lt;a class=&#34;link&#34; href=&#34;https://stumblesec.medium.com/hackthebox-crownjewel-1-sherlock-walkthrough-2efb81522f2c&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;CrownJewel-1&lt;/strong&gt;&lt;/a&gt; investigation, this next part will look very familiar.&lt;/p&gt;&#xA;&lt;p&gt;First, filter the &lt;strong&gt;SECURITY&lt;/strong&gt; log for &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Event ID 4799&lt;/strong&gt;&lt;/a&gt; — “&lt;em&gt;A security-enabled local group membership was enumerated.&lt;/em&gt;” This event indicates that a local group membership was queried to check the account privileges.&lt;/p&gt;&#xA;&lt;h2 id=&#34;2efb81522f2c-3&#34;&gt;[&lt;strong&gt;4799(S) A security-enabled local group membership was enumerated. - Windows 10&lt;/strong&gt;&#xA;_Describes security event 4799(S) A security-enabled local group membership was enumerated._learn.microsoft.com](&lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799?source=post_page---&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799?source=post_page---&lt;/a&gt;&#xA;&amp;ndash;2efb81522f2c&amp;mdash;&#xA;&lt;/h2&gt;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;2efb81522f2c-4&#34;&gt;&amp;ndash; &amp;ldquo;&lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799?source=post_page---&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799?source=post_page---&lt;/a&gt;&#xA;&amp;ndash;2efb81522f2c&amp;mdash;&#xA;&lt;/h2&gt;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;2efb81522f2c-5&#34;&gt;&amp;ndash;&amp;rdquo;)[](&lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799?source=post_page---&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799?source=post_page---&lt;/a&gt;&#xA;&amp;ndash;2efb81522f2c&amp;mdash;&#xA;&lt;/h2&gt;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;&amp;ndash;)&lt;/p&gt;&#xA;&lt;p&gt;Now that we’re only filtering the group membership enumeration events, we can narrow it down to the entries within the timeline we found in &lt;strong&gt;Question 2.&lt;/strong&gt; During this time period, we’ll notice some events with the source process name of &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc753343%28v=ws.11%29&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;ntdsutil.exe&lt;/strong&gt;&lt;/a&gt; where two distinct groups are enumerated.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;4f7a7aca02bf751fc723b3810f4b785c_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;341px&#34; data-flex-grow=&#34;142&#34; height=&#34;562&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/4f7a7aca02bf751fc723b3810f4b785c_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;4799 — First Enumerated Group&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;15b63c63730f7f68790b707264cebebc_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;341px&#34; data-flex-grow=&#34;142&#34; height=&#34;562&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/15b63c63730f7f68790b707264cebebc_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;4799 — Second Enumerated Group&lt;/p&gt;&#xA;&lt;p&gt;Putting the two groups in the correct alphabetized format, we can submit the answer and continue.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;84ed0b5e89a8cce4d89ba2fa40837789_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1000px&#34; data-flex-grow=&#34;416&#34; height=&#34;192&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/84ed0b5e89a8cce4d89ba2fa40837789_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-7-now-you-are-tasked-to-find-the-login-time-for-the-malicious-session-using-the-logon-id-find-the-time-when-the-user-logon-sessionstarted&#34;&gt;Question 7: Now you are tasked to find the Login Time for the malicious Session. Using the Logon ID, find the Time when the user logon session started.&#xA;&lt;/h3&gt;&lt;p&gt;We’ve made it to the last question! To tackle &lt;strong&gt;Question 7&lt;/strong&gt;, copy the &lt;strong&gt;Logon ID&lt;/strong&gt; field &lt;strong&gt;(0x8DE3D)&lt;/strong&gt; from the events that we found in the previous question. We’ll use this to correlate other events that share this ID.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;daa3591823f4cda49a97d706f4087d33_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;335px&#34; data-flex-grow=&#34;139&#34; height=&#34;573&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/daa3591823f4cda49a97d706f4087d33_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;For more granular searching than the built-in &lt;strong&gt;Event Viewer&lt;/strong&gt; filtering options allow, we can write a custom filter within the &lt;strong&gt;XML tab&lt;/strong&gt; of the &lt;strong&gt;Filter Current Log&lt;/strong&gt; options. This filter will only display events with the matching Logon ID and clears the &lt;strong&gt;4799&lt;/strong&gt; event filter we had before.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;444985f1ea95c25eff24d7b15fd7a24b_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;334px&#34; data-flex-grow=&#34;139&#34; height=&#34;574&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/444985f1ea95c25eff24d7b15fd7a24b_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;[EventData[Data[@Name=&amp;lsquo;SubjectLogonId&amp;rsquo;]=&amp;lsquo;0x8de3d&amp;rsquo;]]&lt;/p&gt;&#xA;&lt;p&gt;With our custom filter in place, scroll to the bottom of the list (if you’re still in descending order) to find the oldest events. Here, we’ll find a few, non-enumeration (&lt;strong&gt;4799&lt;/strong&gt;) events with the same timestamp.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;b042ef131426c69edb660e39d8431bdd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;339px&#34; data-flex-grow=&#34;141&#34; height=&#34;565&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/b042ef131426c69edb660e39d8431bdd_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;For one last time, switch to the &lt;strong&gt;XML View&lt;/strong&gt; for any of these events, copy the &lt;strong&gt;System Time&lt;/strong&gt; value, and submit the answer. Now let’s wrap up this investigation!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;b0b9b8b4e37b94d5f0b9acc0816fc874_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;341px&#34; data-flex-grow=&#34;142&#34; height=&#34;563&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/b0b9b8b4e37b94d5f0b9acc0816fc874_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;e88cab1b58a0b08d56313a026ba4fb97_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1097px&#34; data-flex-grow=&#34;457&#34; height=&#34;175&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/e88cab1b58a0b08d56313a026ba4fb97_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;conclusion&#34;&gt;Conclusion:&#xA;&lt;/h3&gt;&lt;p&gt;Let’s wrap up this investigation of &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/CrownJewel-2&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;CrownJewel-2&lt;/strong&gt;&lt;/a&gt; with a quick recap: Using the &lt;em&gt;Windows Event logs,&lt;/em&gt; we discovered details about how and when &lt;strong&gt;ntdsutil&lt;/strong&gt; was abused on the domain controller, including the start time, dumped file path, enumerated groups, and Logon ID. This helps us identify the attacker’s activities and create a detailed timeline to document the incident. Great job with the triage!&lt;/p&gt;&#xA;&lt;p&gt;A big thank you to &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt; for the fun and realistic challenge! This is the first series of Sherlocks that I’ve done with the platform, and it was an excellent experience both times. Remember, while this challenge is geared toward beginners, the narrative and triage processes are very realistic and valuable practice for all skill levels. Continuous, hands-on practice is key to staying sharp for incident response in the real world — very cool stuff!&lt;/p&gt;&#xA;&lt;p&gt;Thanks for the support and going through this investigation with me. Remember, if you found this walkthrough helpful don’t forget to &lt;strong&gt;give it a clap&lt;/strong&gt;! Your feedback really is invaluable and helps fuel my commitment to support your journey in the security community. Cybersecurity is a team sport and we’re in this together!&lt;/p&gt;&#xA;&lt;p&gt;Until next week’s challenge — stay curious and be safe out there!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;b35e5cb0eaad578cb31ef6831e1c728f_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;315px&#34; data-flex-grow=&#34;131&#34; height=&#34;609&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-2-sherlock-walkthrough/b35e5cb0eaad578cb31ef6831e1c728f_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;tools--references&#34;&gt;Tools &amp;amp; References:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;FLARE-VM:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — OS Credential Dumping: NTDS (T1003.003):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1003/003/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1003/003/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — Extensible Storage Engine Managed Reference:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/windows/win32/extensible-storage-engine/extensible-storage-engine-managed-reference&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/windows/win32/extensible-storage-engine/extensible-storage-engine-managed-reference&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;2efb81522f2c-6&#34;&gt;&lt;strong&gt;Microsoft Learn — 4799(S): A security-enabled local group membership was enumerated:&lt;/strong&gt; [https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799?source=post_page&amp;mdash;&#xA;&amp;ndash;2efb81522f2c&amp;mdash;&#xA;&lt;/h2&gt;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;2efb81522f2c-7&#34;&gt;&amp;ndash;](&lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799?source=post_page---&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799?source=post_page---&lt;/a&gt;&#xA;&amp;ndash;2efb81522f2c&amp;mdash;&#xA;&lt;/h2&gt;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;&amp;ndash;)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — Ntdsutil:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc753343%28v=ws.11%29&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc753343(v=ws.11)&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>HackTheBox  — CrownJewel-1 Sherlock Walkthrough</title>
            <link>https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/</link>
            <pubDate>Sun, 13 Oct 2024 00:00:00 +0000</pubDate>
            <guid>https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/</guid>
            <description>&lt;img src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/7fc378acec965ea18659c432f86858dd_MD5.png&#34; alt=&#34;Featured image of post HackTheBox  — CrownJewel-1 Sherlock Walkthrough&#34; /&gt;&lt;h3 id=&#34;hacktheboxcrownjewel-1-sherlock-walkthrough&#34;&gt;HackTheBox — CrownJewel-1 Sherlock Walkthrough&#xA;&lt;/h3&gt;&lt;h4 id=&#34;investigating-a-compromised-domain-controller-with-windows-event-logs-andmftecmd&#34;&gt;Investigating a Compromised Domain Controller with Windows Event Logs and MFTECmd&#xA;&lt;/h4&gt;&lt;p&gt;&lt;img alt=&#34;7fc378acec965ea18659c432f86858dd_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;240px&#34; data-flex-grow=&#34;100&#34; height=&#34;300&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/7fc378acec965ea18659c432f86858dd_MD5.png&#34; width=&#34;300&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Image Credit: &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/CrownJewel-1/play&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/CrownJewel-1/play&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;introduction&#34;&gt;Introduction:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Imagine this:&lt;/strong&gt; You’re on the front lines of an organization’s security team when suddenly, alerts start firing from a domain controller about suspicious use of the V_olume Shadow Copy Service_ and a potential dump of the &lt;em&gt;NTDS.dit&lt;/em&gt; database containing the domain’s secrets. You need to dive into the artifacts, investigate the logs, and triage this incident. If this sounds exciting to you, you’ve stumbled on the right blog!&lt;/p&gt;&#xA;&lt;p&gt;Welcome to my weekly walkthrough! This week, we’re tackling the &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/CrownJewel-1&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;CrownJewel-1&lt;/strong&gt;&lt;/a&gt; challenge from &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt;! In this &lt;em&gt;digital forensics and incident response (DFIR)&lt;/em&gt; challenge, we defenders will explore the &lt;em&gt;NTDS.dit&lt;/em&gt; database and how it was accessed via the &lt;em&gt;Volume Shadow Copy Service.&lt;/em&gt; Our goal is to uncover critical details such as the start time of the service, the accounts that were enumerated, the process ID of the service, the GUID of the volume, and the path and file sizes of the dumped file on the disk through the &lt;em&gt;Master File Table&lt;/em&gt; (&lt;em&gt;MFT&lt;/em&gt;). To do this, we’ll leverage the domain controller’s &lt;em&gt;Windows Event logs&lt;/em&gt; and &lt;em&gt;Eric Zimmerman’s&lt;/em&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/EricZimmerman/MFTECmd&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;MFTECmd&lt;/em&gt;&lt;/a&gt; tool.&lt;/p&gt;&#xA;&lt;p&gt;While this challenge is geared toward beginners, it’s a fantastic lab to get some hands-on time with &lt;em&gt;MFTECmd&lt;/em&gt; and practice log analysis for all skill levels. So, let’s grab our magnifying glasses and get ready to investigate!&lt;/p&gt;&#xA;&lt;p&gt;And if you find this walkthrough helpful in leveling up your skills or getting you through a tricky question, &lt;strong&gt;give it a clap&lt;/strong&gt;! Your feedback helps me improve and continue supporting your security journey.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for reading!&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Challenge Link:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/CrownJewel-1&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://app.hackthebox.com/sherlocks/CrownJewel-1&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;challenge-scenario&#34;&gt;Challenge Scenario:&#xA;&lt;/h3&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Forela’s domain controller is under attack. The Domain Administrator account is believed to be compromised, and it is suspected that the threat actor dumped the NTDS.dit database on the DC. We just received an alert of vssadmin being used on the DC, since this is not part of the routine schedule we have good reason to believe that the attacker abused this LOLBIN utility to get the Domain environment’s crown jewel. Perform some analysis on provided artifacts for a quick triage and if possible kick the attacker as early as possible.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;setup-the-analysis-environment--extract-the-challenge-file&#34;&gt;Setup the Analysis Environment &amp;amp; Extract the challenge file:&#xA;&lt;/h3&gt;&lt;p&gt;Safety first! It’s always important when working with lab/challenge files from &lt;em&gt;Hack the Box (or any educational lab/challenge/range)&lt;/em&gt; to keep yourself protected by performing these tasks in a dedicated, isolated virtual machine environment. For example, since this is a _Windows-_based lab, I’m using &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;FLARE-VM&lt;/strong&gt;&lt;/a&gt; for this challenge and walkthrough.&lt;/p&gt;&#xA;&lt;p&gt;To keep this write-up focused I’m going to skip the step-by-step setup of &lt;em&gt;FLARE-VM&lt;/em&gt; but _i_f you’d like to set up your own environment, please follow the directions provided directly by &lt;em&gt;FLARE-VM&lt;/em&gt; on &lt;em&gt;GitHub.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  title=&#34;https://github.com/mandiant/flare-vm&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;GitHub - mandiant/flare-vm: A collection of software installations scripts for Windows systems that…&lt;/strong&gt;&#xA;_A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a…_github.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Okay! Once we have our virtual environment created, updated, isolated, and snapshotted, we can extract the challenge file and start the investigation!&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-1-attackers-can-abuse-the-vssadmin-utility-to-create-volume-shadow-snapshots-and-then-extract-sensitive-files-like-ntdsdit-to-bypass-security-mechanisms-identify-the-time-when-the-volume-shadow-copy-service-entered-a-runningstate&#34;&gt;Question 1: Attackers can abuse the vssadmin utility to create volume shadow snapshots and then extract sensitive files like NTDS.dit to bypass security mechanisms. Identify the time when the Volume Shadow Copy service entered a running state.&#xA;&lt;/h3&gt;&lt;p&gt;Let’s start the triage process! Personally, I find that it’s always a good practice to familiarize myself of what artifacts are available for analysis. Let’s take a quick look at what we have been provided first:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;73956c4cf229c07c1aff8d3f1b1e315c_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;622px&#34; data-flex-grow=&#34;259&#34; height=&#34;289&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/73956c4cf229c07c1aff8d3f1b1e315c_MD5.png&#34; width=&#34;750&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;3ff0858313dee627890a7d79f820b3ae_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1055px&#34; data-flex-grow=&#34;439&#34; height=&#34;171&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/3ff0858313dee627890a7d79f820b3ae_MD5.png&#34; width=&#34;752&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;All right, we have three &lt;em&gt;Windows Event Logs&lt;/em&gt; and the &lt;em&gt;$MFT&lt;/em&gt;. We’ll go into each one of these in more detail as they come up during the investigation, but this gives us at least some idea of how we’ll investigate this incident.&lt;/p&gt;&#xA;&lt;p&gt;Next, let’s gain a better understanding of what we are investigating and why. For this, let’s check out the &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1003/003/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;&lt;em&gt;MITRE ATT&amp;amp;CK&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt; knowledge base to gather some intelligence about the technique of dumping the &lt;em&gt;NTDS.dit&lt;/em&gt; file (&lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1003/003/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;T1003.003&lt;/em&gt;&lt;/a&gt;.)&lt;/p&gt;&#xA;&lt;p&gt;According to &lt;strong&gt;&lt;em&gt;MITRE ATT&amp;amp;CK&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Adversaries may attempt to access or create a copy of the Active Directory domain database in order to steal credential information, as well as obtain other information about domain members such as devices, users, and access rights. By default, the NTDS file (NTDS.dit) is located in &lt;code&gt;%SystemRoot% TDS tds.dit&lt;/code&gt; of a domain controller.1(&lt;a class=&#34;link&#34; href=&#34;https://en.wikipedia.org/wiki/Active_Directory&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://en.wikipedia.org/wiki/Active_Directory&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;In addition to looking for NTDS files on active Domain Controllers, adversaries may search for backups that contain the same or similar information.2(&lt;a class=&#34;link&#34; href=&#34;http://adsecurity.org/?p=1275&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;http://adsecurity.org/?p=1275&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;The following tools and techniques can be used to enumerate the NTDS file and the contents of the entire Active Directory hashes.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Volume Shadow Copy&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;secretsdump.py&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Using the in-built Windows tool, ntdsutil.exe&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Invoke-NinjaCopy&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;Well, that’s not good! But now that we have some background, we can start to build a timeline by identifying when the attacker started the &lt;em&gt;Volume Shadow Copy&lt;/em&gt; service. To do this, open the &lt;em&gt;SYSTEM.evtx&lt;/em&gt; file found in &lt;em&gt;Artifacts&lt;/em&gt; folder. The &lt;em&gt;SYSTEM&lt;/em&gt; log includes various details, including the start and stop states of services which are logged as &lt;em&gt;Windows Event&lt;/em&gt; &lt;strong&gt;&lt;em&gt;7036.&lt;/em&gt;&lt;/strong&gt; If you’re in a &lt;em&gt;Windows&lt;/em&gt; environment, this will open with the &lt;em&gt;Windows Event Viewer.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once the &lt;em&gt;SYSTEM&lt;/em&gt; log is opened, we’ll filter it for the relevant events we want by pressing &lt;em&gt;Filter Current Log&lt;/em&gt; and entering Event ID &lt;em&gt;7036&lt;/em&gt; into the field.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;d09d57109eb607a447878fa9df40ea83_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;236px&#34; data-flex-grow=&#34;98&#34; height=&#34;549&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/d09d57109eb607a447878fa9df40ea83_MD5.png&#34; width=&#34;541&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;With the results now filtered, press &lt;em&gt;Find&lt;/em&gt; and enter the keyword “&lt;em&gt;Volume&lt;/em&gt;” — this will help us to find the correct &lt;em&gt;Volume Shadow Copy service&lt;/em&gt; event.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;174431b1cdc4b3352e02ce38a6061276_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;301px&#34; data-flex-grow=&#34;125&#34; height=&#34;636&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/174431b1cdc4b3352e02ce38a6061276_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Finally, let’s check the event &lt;em&gt;Details &amp;gt; XML View &amp;gt; TimeCreated SystemTime&lt;/em&gt; to get the exact time the service was started.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;d31ef7588e4dffba78a1cacbf7cc7c66_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;358px&#34; data-flex-grow=&#34;149&#34; height=&#34;536&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/d31ef7588e4dffba78a1cacbf7cc7c66_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;If that’s too much reading, here is a &lt;em&gt;GIF&lt;/em&gt; of the process to summarize.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;6e5c0dd7ea9a9f01c24599be0d361214_MD5.gif&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;554px&#34; data-flex-grow=&#34;231&#34; height=&#34;750&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/6e5c0dd7ea9a9f01c24599be0d361214_MD5.gif&#34; srcset=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/6e5c0dd7ea9a9f01c24599be0d361214_MD5_hu_7d6586b60365451b.gif 800w, https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/6e5c0dd7ea9a9f01c24599be0d361214_MD5_hu_59f3e8ff68f9db01.gif 1600w, https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/6e5c0dd7ea9a9f01c24599be0d361214_MD5.gif 1734w&#34; width=&#34;1734&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;3b38532ad8f1b45d358bfe75cb017153_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1476px&#34; data-flex-grow=&#34;615&#34; height=&#34;130&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/3b38532ad8f1b45d358bfe75cb017153_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-2-when-a-volume-shadow-snapshot-is-created-the-volume-shadow-copy-service-validates-the-privileges-using-the-machine-account-and-enumerates-user-groups-find-the-user-groups-it-enumerates-the-subject-account-name-and-also-identify-the-process-idin-decimal-of-the-volume-shadow-copy-serviceprocess&#34;&gt;Question 2: When a volume shadow snapshot is created, the Volume shadow copy service validates the privileges using the Machine account and enumerates User groups. Find the User groups it enumerates, the Subject Account name, and also identify the Process ID(in decimal) of the Volume shadow copy service process&#xA;&lt;/h3&gt;&lt;p&gt;Okay, to answer &lt;strong&gt;Question 2,&lt;/strong&gt; we’ll pivot over to the &lt;em&gt;SECURITY.evtx&lt;/em&gt; log. The key word in the question is “&lt;em&gt;enumerate,”&lt;/em&gt; which means we’ll want to filter our log by &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Event ID 4799&lt;/strong&gt;&lt;/a&gt; — &lt;em&gt;A security-enabled local group membership was enumerated.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799&#34;  title=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799&#34;&#xA;     target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;4799(S) A security-enabled local group membership was enumerated. - Windows 10&lt;/strong&gt;&#xA;_Describes security event 4799(S) A security-enabled local group membership was enumerated._learn.microsoft.com&lt;/a&gt;&lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once we’ve filtered the log, let’s look for events with the same timestamp as the service event that we found in &lt;strong&gt;Question 1&lt;/strong&gt;– &lt;strong&gt;8:42:16 PM.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The first event we find has the &lt;em&gt;Group Name “Administrators&lt;/em&gt;,” and moving up to the next event in the list, the &lt;em&gt;Group Name&lt;/em&gt; is &lt;em&gt;“Backup Operators”.&lt;/em&gt; Both events will have the will the same &lt;em&gt;subject account name,&lt;/em&gt; &lt;strong&gt;DC01$&lt;/strong&gt;, the &lt;em&gt;Domain Controller’s&lt;/em&gt; machine account.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;cb862e8ca4a30bff772894e42b4d133b_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;220px&#34; data-flex-grow=&#34;91&#34; height=&#34;792&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/cb862e8ca4a30bff772894e42b4d133b_MD5.png&#34; width=&#34;728&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now that we’ve uncovered both groups enumerated by the &lt;em&gt;Volume Shadow Copy Service (VSSVC.exe),&lt;/em&gt; and which &lt;em&gt;machine account&lt;/em&gt; the service ran with, let’s submit the answer and move on to the next question.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;c30f5b8d940c44e3e0d0cc91104c854a_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1443px&#34; data-flex-grow=&#34;601&#34; height=&#34;133&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/c30f5b8d940c44e3e0d0cc91104c854a_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-3-identify-the-process-id-in-decimal-of-the-volume-shadow-copy-serviceprocess&#34;&gt;Question 3: Identify the Process ID (in Decimal) of the volume shadow copy service process.&#xA;&lt;/h3&gt;&lt;p&gt;Looking at the same event from &lt;strong&gt;Question 2,&lt;/strong&gt; let’s focus on the &lt;em&gt;Process Information&lt;/em&gt; section. Here we see the &lt;em&gt;Process ID&lt;/em&gt; and the &lt;em&gt;Volume Shadow Copy Service&lt;/em&gt; Executable &lt;em&gt;Process Name (VSSVC.exe)&lt;/em&gt; that we are looking for.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;8f67b202b0e40dd97865389e1da7e829_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;350px&#34; data-flex-grow=&#34;146&#34; height=&#34;305&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/8f67b202b0e40dd97865389e1da7e829_MD5.png&#34; width=&#34;446&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;This gives us half of our answer, but we need to do some extra legwork. The &lt;em&gt;Windows Event log&lt;/em&gt; displays &lt;em&gt;Process IDs&lt;/em&gt; in &lt;em&gt;hexadecimal&lt;/em&gt;, but to answer &lt;strong&gt;Question 3&lt;/strong&gt; we need the &lt;em&gt;Decimal&lt;/em&gt; value. No problem, let’s just use a simple online calculator to convert it:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.rapidtables.com/convert/number/hex-to-decimal.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Hex to Decimal Converter (rapidtables.com)&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;e46536a9ba6ba8e3802f1b8e57aaee6a_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;231px&#34; data-flex-grow=&#34;96&#34; height=&#34;523&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/e46536a9ba6ba8e3802f1b8e57aaee6a_MD5.png&#34; width=&#34;505&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;e3b62b2cd42d2765e561c6bfa71ec550_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1641px&#34; data-flex-grow=&#34;683&#34; height=&#34;117&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/e3b62b2cd42d2765e561c6bfa71ec550_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-4-find-the-assigned-volume-idguid-value-to-the-shadow-copy-snapshot-when-it-wasmounted&#34;&gt;Question 4: Find the assigned Volume ID/GUID value to the Shadow copy snapshot when it was mounted.&#xA;&lt;/h3&gt;&lt;p&gt;Now that we’ve already looked over the &lt;em&gt;SYSTEM.evtx&lt;/em&gt; and &lt;em&gt;SECURITY.evtx&lt;/em&gt;, let’s move on to the third provided event log from the &lt;em&gt;Artifacts&lt;/em&gt; folder, &lt;em&gt;Microsoft-Windows-NTFS.evtx.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;This event log holds the operational events of the &lt;em&gt;Windows NTFS file system&lt;/em&gt; on the victim’s device. Once we open this log, we’ll continue with our method of looking at the first event following the timestamp of the &lt;em&gt;Volume Shadow Copy service&lt;/em&gt; events from the previous questions.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;bcfc1993e5c5237cc38346b1f4a7c1c9_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;208px&#34; data-flex-grow=&#34;86&#34; height=&#34;918&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/bcfc1993e5c5237cc38346b1f4a7c1c9_MD5.png&#34; width=&#34;797&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;The first event with a timestamp after the &lt;em&gt;VSS&lt;/em&gt; service was started contains an interesting reference to &lt;em&gt;VolumeShadowCopy1.&lt;/em&gt; Let’s click into the &lt;em&gt;Details&lt;/em&gt; tab and gather some additional information:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;79610b21801634deca653f7601085c00_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;208px&#34; data-flex-grow=&#34;86&#34; height=&#34;909&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/79610b21801634deca653f7601085c00_MD5.png&#34; width=&#34;790&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Inside of the &lt;em&gt;Details&lt;/em&gt; view_,_ we can see some additional event data including the &lt;em&gt;VolumeCorrelationId GUID —&lt;/em&gt; this &lt;em&gt;GUID&lt;/em&gt; is the value we need to answer &lt;strong&gt;Question 4!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;002e1811f64e1dc00e4f619691f690bc_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1641px&#34; data-flex-grow=&#34;683&#34; height=&#34;117&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/002e1811f64e1dc00e4f619691f690bc_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-5-identify-the-full-path-of-the-dumped-ntds-database-ondisk&#34;&gt;Question 5: Identify the full path of the dumped NTDS database on disk.&#xA;&lt;/h3&gt;&lt;p&gt;To uncover the answer to &lt;strong&gt;Question 5&lt;/strong&gt;, we’ll need to pivot away from the &lt;em&gt;Windows Event Logs&lt;/em&gt; since they won’t have the artifacts that we need.&lt;/p&gt;&#xA;&lt;p&gt;But remember the fourth piece of evidence we had, the &lt;em&gt;$MFT&lt;/em&gt; file_?_ It’s time to use it! But first, let’s gain a foundational understanding of what the &lt;em&gt;MFT&lt;/em&gt; is to figure out how it can help us find the path of the dumped &lt;em&gt;NTDS&lt;/em&gt; database.&lt;/p&gt;&#xA;&lt;p&gt;According &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1564/004/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;MITRE ATT&amp;amp;CK&lt;/em&gt;&lt;/a&gt;&lt;em&gt;:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Every New Technology File System (NTFS) formatted partition contains a Master File Table (MFT) that maintains a record for every file/directory on the partition.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;Okay, very interesting! With this background, it seems promising that we could discover the &lt;em&gt;NTDS&lt;/em&gt; file path. So how do we find the information then? One option is to use &lt;a class=&#34;link&#34; href=&#34;https://github.com/EricZimmerman/MFTECmd&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;em&gt;Eric Zimmerman’s&lt;/em&gt; &lt;strong&gt;MFTECmd&lt;/strong&gt;&lt;/a&gt; to parse the provided &lt;em&gt;MFT&lt;/em&gt; file and export the results to a &lt;em&gt;CSV&lt;/em&gt; file.&lt;/p&gt;&#xA;&lt;p&gt;Once the tool is installed in your analysis environment, we can use the below syntax to have &lt;em&gt;MFTECmd&lt;/em&gt; to parse the file:&lt;/p&gt;&#xA;&lt;p&gt;MFTECmd.exe -f &amp;ldquo;&amp;lt;Path-to-$MFT&amp;gt;&amp;rdquo; &amp;ndash;csv &amp;ldquo;&amp;lt;Path-to-Output.csv&amp;gt;&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;4a5d20b28171af04c019032ac0b054a8_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;935px&#34; data-flex-grow=&#34;389&#34; height=&#34;308&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/4a5d20b28171af04c019032ac0b054a8_MD5.png&#34; srcset=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/4a5d20b28171af04c019032ac0b054a8_MD5_hu_4df8404c94c45987.png 800w, https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/4a5d20b28171af04c019032ac0b054a8_MD5.png 1200w&#34; width=&#34;1200&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now that we have the output from the tool, we can use any &lt;em&gt;CSV&lt;/em&gt; application to check the results. However, for the purposes of this walkthrough, I recommend using another of &lt;em&gt;Eric Zimmerman’s&lt;/em&gt; tools, &lt;a class=&#34;link&#34; href=&#34;https://ericzimmerman.github.io/#!index.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Timeline Explorer&lt;/strong&gt;&lt;/a&gt;, to easily view, search, and sort the output data. In &lt;em&gt;Timeline Explorer,&lt;/em&gt; search for &lt;em&gt;NTDS.dit.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;fc791d5dea16a9c37af1416f7cf0c8f2_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1492px&#34; data-flex-grow=&#34;621&#34; height=&#34;193&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/fc791d5dea16a9c37af1416f7cf0c8f2_MD5.png&#34; srcset=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/fc791d5dea16a9c37af1416f7cf0c8f2_MD5_hu_ac9d503d87afb7e2.png 800w, https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/fc791d5dea16a9c37af1416f7cf0c8f2_MD5.png 1200w&#34; width=&#34;1200&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Looking at the timestamps of the returned results, only one matches the time period (&lt;strong&gt;Question 1)&lt;/strong&gt; of the incident and it has the full path of the file in the &lt;em&gt;Parent Path&lt;/em&gt; column!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;1eadb80c81bd1aa2ea0fa2d3f36771ce_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1641px&#34; data-flex-grow=&#34;683&#34; height=&#34;117&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/1eadb80c81bd1aa2ea0fa2d3f36771ce_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-6-when-was-newly-dumped-ntdsdit-created-ondisk&#34;&gt;Question 6: When was newly dumped ntds.dit created on disk?&#xA;&lt;/h3&gt;&lt;p&gt;Fortunately, we already found the answer in the previous question. We just need to copy the timestamp from the &lt;em&gt;Created0x10&lt;/em&gt; column:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;8b04abfd8a3d3d50da563694a2cb3ff9_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1627px&#34; data-flex-grow=&#34;677&#34; height=&#34;118&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/8b04abfd8a3d3d50da563694a2cb3ff9_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;question-7-a-registry-hive-was-also-dumped-alongside-the-ntds-database-which-registry-hive-was-dumped-and-what-is-its-file-size-inbytes&#34;&gt;Question 7: A registry hive was also dumped alongside the NTDS database. Which registry hive was dumped and what is its file size in bytes?&#xA;&lt;/h3&gt;&lt;p&gt;Okay, last question! The theory here is that a second file, a registry hive, was dumped at the same time and into the same directory as the &lt;em&gt;NTDS database&lt;/em&gt;. So, let’s continue working with &lt;em&gt;Timeline Explorer&lt;/em&gt; to see what else we can find within the parsed &lt;em&gt;$MFT&lt;/em&gt; file.&lt;/p&gt;&#xA;&lt;p&gt;To do this, we’re going to filter the results with the same &lt;em&gt;Parent Entry Number&lt;/em&gt; as the dumped &lt;em&gt;ntds.dit&lt;/em&gt; that we located in &lt;strong&gt;Question 5&lt;/strong&gt;. This should allow us to see other files with the same parent directory or location within the &lt;em&gt;NTFS&lt;/em&gt; volume.&lt;/p&gt;&#xA;&lt;p&gt;On the &lt;em&gt;Parent Entry Number&lt;/em&gt; column, you can either click the filter icon and select the corresponding number of the &lt;em&gt;ntds.dit&lt;/em&gt; we found, or we can simply type the number into the field. In this example, the &lt;em&gt;Parent Entry Number&lt;/em&gt; is 42.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;4d21d128450f8862b012d532eeec68f0_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;608px&#34; data-flex-grow=&#34;253&#34; height=&#34;473&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/4d21d128450f8862b012d532eeec68f0_MD5.png&#34; srcset=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/4d21d128450f8862b012d532eeec68f0_MD5_hu_ec0afc999c498277.png 800w, https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/4d21d128450f8862b012d532eeec68f0_MD5.png 1200w&#34; width=&#34;1200&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once we apply the filter, we will see two files: the &lt;em&gt;ntds.dit&lt;/em&gt; and the &lt;em&gt;SYSTEM&lt;/em&gt; registry hive. To get the file size, we just need to copy the value from the File Size column, and voilà!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;c24e8ab1442ff0263c1463e309da1d91_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1573px&#34; data-flex-grow=&#34;655&#34; height=&#34;122&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/c24e8ab1442ff0263c1463e309da1d91_MD5.png&#34; width=&#34;800&#34;&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;conclusion&#34;&gt;Conclusion:&#xA;&lt;/h3&gt;&lt;p&gt;Let’s wrap up this investigation of &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/sherlocks/CrownJewel-1&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;CrownJewel-1&lt;/strong&gt;&lt;/a&gt; with a quick recap: Using the &lt;em&gt;Windows Event logs,&lt;/em&gt; we determined more details about the abused service, including the start time, process ID, and the mounted volume GUID. Then, with the help of &lt;em&gt;MFTECmd,&lt;/em&gt; we identified the file path of the dumped &lt;em&gt;NTDS&lt;/em&gt; database and even a second file that the adversary targeted. Great job with the triage!&lt;/p&gt;&#xA;&lt;p&gt;A big thank you to &lt;a class=&#34;link&#34; href=&#34;https://app.hackthebox.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;&lt;strong&gt;Hack The Box&lt;/strong&gt;&lt;/a&gt; for the fun and realistic challenge! This was my first lab with this platform and it was an excellent experience. While this challenge is geared toward beginners, the narrative and triage process were very realistic and valuable practice for all skill levels. Continuous, hands-on practice is key to staying sharp for incident response in the real world — very cool stuff!&lt;/p&gt;&#xA;&lt;p&gt;If you found this walkthrough helpful in leveling up your skills or getting you through a tricky question, don’t forget to give it a clap. Your feedback is invaluable and helps me create content that supports your journey in cybersecurity. We’re in this together. Thanks for the support!&lt;/p&gt;&#xA;&lt;p&gt;Until next week’s challenge — stay curious and be safe out there!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;f8c7eb38d3dcdbc5b7c0e94f0c183589_MD5.png&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;315px&#34; data-flex-grow=&#34;131&#34; height=&#34;515&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://stumblesec.com/posts/hackthebox-crownjewel-1-sherlock-walkthrough/f8c7eb38d3dcdbc5b7c0e94f0c183589_MD5.png&#34; width=&#34;678&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;tools--references&#34;&gt;Tools &amp;amp; References:&#xA;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;FLARE-VM:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/mandiant/flare-vm&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/mandiant/flare-vm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — OS Credential Dumping: NTDS (T1003.003):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1003/003/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1003/003/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — Volume Shadow Copy Service:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/windows-server/storage/file-server/volume-shadow-copy-service&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/windows-server/storage/file-server/volume-shadow-copy-service&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Microsoft Learn — Event 4799:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4799&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Hex Calculator:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.rapidtables.com/convert/number/hex-to-decimal.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.rapidtables.com/convert/number/hex-to-decimal.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MITRE ATT&amp;amp;CK — Hide Artifacts: NTFS File Attributes (T1564.004):&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://attack.mitre.org/techniques/T1564/004/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://attack.mitre.org/techniques/T1564/004/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Eric Zimmerman’s Tools — MFTECMD:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://github.com/EricZimmerman/MFTECmd&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/EricZimmerman/MFTECmd&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Eric Zimmerman’s Tools:&lt;/strong&gt; &lt;a class=&#34;link&#34; href=&#34;https://ericzimmerman.github.io/#!index.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://ericzimmerman.github.io/#!index.md&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item></channel>
</rss>
