<?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 Youssefmohamedp on Medium]]></title>
        <description><![CDATA[Stories by Youssefmohamedp on Medium]]></description>
        <link>https://medium.com/@youssefmohamed01p?source=rss-82b813156258------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*JiB8YUMIB_jTdn1S</url>
            <title>Stories by Youssefmohamedp on Medium</title>
            <link>https://medium.com/@youssefmohamed01p?source=rss-82b813156258------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:40:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@youssefmohamed01p/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[AWSRaid: A Practical AWS Cloud Forensics Investigation Using Splunk]]></title>
            <link>https://medium.com/@youssefmohamed01p/awsraid-a-practical-aws-cloud-forensics-investigation-using-splunk-b886747987d5?source=rss-82b813156258------2</link>
            <guid isPermaLink="false">https://medium.com/p/b886747987d5</guid>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[cloud-forensic]]></category>
            <dc:creator><![CDATA[Youssefmohamedp]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 00:37:37 GMT</pubDate>
            <atom:updated>2026-11-15T00:37:37.742Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Investigating Compromised AWS Accounts, S3 Data Access, and IAM Persistence Through CloudTrail Logs.</em></p><p><strong>Challenge:</strong> AWSRaid — CyberDefenders<br><strong>SIEM:</strong> Splunk<br><strong>Log Source:</strong> AWS CloudTrail<br><strong>Focus:</strong> AWS Cloud Forensics, IAM Investigation, Amazon S3, and Incident Response<br><strong>Lab link:</strong> <a href="https://cyberdefenders.org/blueteam-ctf-challenges/awsraid/">https://cyberdefenders.org/blueteam-ctf-challenges/awsraid/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_2fzO7bgN3AmiDBOqRGWg.png" /></figure><h3>Introduction</h3><p>Cloud environments introduce unique challenges for security investigations. Unlike traditional endpoint investigations, attackers can abuse legitimate cloud services and compromised identities to access sensitive resources, modify configurations, and establish persistence without necessarily deploying malware.</p><p>In this write-up, we will investigate the <strong>AWSRaid challenge from CyberDefenders</strong>, using Splunk and AWS CloudTrail logs to analyze suspicious activities within an AWS environment.</p><p>Throughout the investigation, we will focus on:</p><ul><li>Identifying a compromised AWS account through authentication logs.</li><li>Investigating subsequent S3 object access.</li><li>Detecting suspicious S3 bucket configuration changes.</li><li>Identifying unauthorized IAM user creation.</li><li>Investigating group membership modifications.</li></ul><p>The goal is not just to solve the challenge, but to understand a repeatable methodology for investigating suspicious activity in AWS environments.</p><h3>1. Understanding AWS CloudTrail</h3><p>Before starting the investigation, we need to understand our primary evidence source: <strong>AWS CloudTrail</strong>.</p><p>CloudTrail records API activities performed within an AWS environment, including actions initiated through:</p><ul><li>AWS Management Console.</li><li>AWS CLI.</li><li>AWS SDKs.</li><li>AWS service APIs.</li></ul><p>Each event provides information that helps investigators understand who performed an action, what happened, when it happened, and where the request originated.</p><p>Some of the most important fields include:</p><ul><li>eventTime: Timestamp of the API event (UTC).</li><li>eventName: Name of the API operation.</li><li>userIdentity: Identity responsible for the request.</li><li>sourceIPAddress: Source IP address.</li><li>requestParameters: Parameters supplied to the API request.</li><li>responseElements: Information returned by the operation, when available.</li></ul><h4>Management Events vs. Data Events</h4><p>An important distinction in CloudTrail is the difference between management and data events.</p><p><strong>Management Events</strong> record operations related to managing AWS resources, such as creating IAM users or modifying bucket policies.</p><p><strong>Data Events</strong> record operations performed on resources, such as retrieving or uploading S3 objects.</p><p>For example:</p><ul><li>CreateUser → Management Event.</li><li>PutBucketPolicy → Management Event.</li><li>GetObject → S3 Data Event.</li></ul><p>This distinction matters because S3 data events are not enabled by default for CloudTrail trails. Without appropriate data-event collection, investigators may not have visibility into individual object access.</p><p>Reference: <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-events.html">AWS CloudTrail Documentation</a>.</p><h3>2. Investigation Walkthrough</h3><h3>Q1 — Identifying the Compromised User</h3><p><strong>Question:</strong> What is the username of the compromised user?</p><h4>Investigation Approach</h4><p>Our first step is to investigate authentication activity and identify suspicious login patterns.</p><p>A useful indicator is repeated failed login attempts followed by a successful authentication from the same source IP.</p><p>AWS CloudTrail records console authentication through the ConsoleLogin event.</p><p><strong>Splunk Query:</strong></p><pre>index=aws_cloudtrail eventName=ConsoleLogin<br>| stats count by responseElements.ConsoleLogin sourceIPAddress userIdentity.userName<br>| table sourceIPAddress userIdentity.userName responseElements.ConsoleLogin count<br>| sort sourceIPAddress</pre><h4>Query Analysis</h4><ul><li>eventName=ConsoleLogin: Filters console authentication events.</li><li>stats count by: Groups events by authentication result, source IP, and username.</li><li>table: Displays the relevant fields.</li><li>sort: Organizes results by source IP.</li></ul><h4>Findings</h4><p>The results revealed that the account helpdesk.luke experienced nine failed login attempts followed by one successful login from the same source IP address.</p><p>This pattern is suspicious and provides a starting point for investigating potential account compromise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2GaRl7O40jeCD-MSrV4JSg.png" /><figcaption><em>Figure 1. Authentication events showing repeated failed login attempts followed by a successful login for helpdesk.luke.</em></figcaption></figure><p><strong>Answer:</strong></p><pre>helpdesk.luke</pre><h3>Q2 — Identifying the First S3 Object Access</h3><p><strong>Question:</strong> What is the timestamp for the first access to an S3 object by the attacker?</p><h4>Investigation Approach</h4><p>After identifying the compromised account, we need to investigate what happened following the successful authentication.</p><p>First, we establish the exact login timestamp.</p><p><strong>Query 1 — Identifying the Successful Login Time:</strong></p><pre>index=aws_cloudtrail eventName=ConsoleLogin<br>| stats count by eventTime responseElements.ConsoleLogin sourceIPAddress userIdentity.userName<br>| table eventTime sourceIPAddress userIdentity.userName responseElements.ConsoleLogin count<br>| sort sourceIPAddress</pre><h4>Findings</h4><p>The successful authentication associated with helpdesk.luke occurred at:</p><pre>2023-11-02T09:54:04Z</pre><p>We will use this timestamp as our investigation pivot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A2TgD96FBSnegAbnn8AnFw.png" /><figcaption><em>Figure 2. Identifying the successful authentication timestamp for the compromised account.</em></figcaption></figure><h4>Query 2 — Investigating Subsequent S3 Access</h4><p>Now we can search for S3 object retrieval operations performed by the compromised account after the successful login.</p><p>The relevant API operation is GetObject, which is used to retrieve an object from an S3 bucket.</p><pre>index=aws_cloudtrail eventName=GetObject &quot;userIdentity.userName&quot;=&quot;helpdesk.luke&quot; eventTime&gt;2023-11-02T09:54:04Z<br>| sort eventTime<br>| table eventTime</pre><p>The query filters S3 retrieval events by the compromised identity and sorts them chronologically.</p><h4>Findings</h4><p>The search returned two events:</p><ul><li>2023-11-02T09:55:53Z</li><li>2023-11-02T09:56:07Z</li></ul><p>The first S3 object access occurred less than two minutes after the successful authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*CHlVFgqJXxUs6a-BjuOmeg.png" /><figcaption><em>Figure 3. S3 GetObject events showing the first recorded object access after authentication.</em></figcaption></figure><p><strong>Answer:</strong></p><pre>2023-11-02 09:55</pre><p><em>Exact timestamp: </em><em>2023-11-02T09:55:53Z.</em></p><h3>Q3 — Identifying the Bucket Containing a DWG File</h3><p><strong>Question:</strong> Among the S3 buckets accessed by the attacker, one contains a DWG file. What is the name of this bucket?</p><h4>Investigation Approach</h4><p>We now need to identify the S3 bucket associated with a DWG file.</p><p>A DWG file is a proprietary binary format commonly used by CAD applications to store 2D and 3D design information.</p><p>These files may contain architectural drawings, engineering designs, and product-related information, making unauthorized access potentially significant.</p><p>We can use the dwg keyword to narrow down the relevant S3 access events.</p><p><strong>Splunk Query:</strong></p><pre>index=aws_cloudtrail eventName=GetObject &quot;userIdentity.userName&quot;=&quot;helpdesk.luke&quot; eventTime&gt;2023-11-02T09:54:04Z &quot;dwg&quot;<br>| table requestParameters.bucketName</pre><h4>Query Analysis</h4><p>We reuse the investigation context from Q2:</p><ul><li>GetObject: Focuses on S3 object retrieval.</li><li>userIdentity.userName: Restricts activity to the compromised account.</li><li>eventTime: Excludes activity before the successful login.</li><li>dwg: Searches for events containing the relevant file extension or keyword.</li><li>requestParameters.bucketName: Extracts the associated bucket name.</li></ul><h4>Findings</h4><p>The search identified the following bucket:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*o7K8SgEYSOeVVYEIsJrHWQ.png" /><figcaption><em>Figure 4. Identifying the S3 bucket associated with the DWG-related access event.</em></figcaption></figure><p><strong>Answer:</strong></p><pre>product-designs-repository31183937</pre><h3>Q4 — Identifying the Bucket with Suspicious Public-Access Configuration Changes</h3><p><strong>Question:</strong> What is the name of the S3 bucket associated with configuration changes that allowed public access?</p><h4>Investigation Approach</h4><p>Attackers may modify S3 security configurations to expose stored data or create additional access paths.</p><p>Three important API operations can help investigate these changes:</p><p><strong>1. </strong><strong>PutBucketPublicAccessBlock</strong></p><p>Modifies the S3 Block Public Access configuration.</p><p><strong>2. </strong><strong>PutBucketPolicy</strong></p><p>Modifies the bucket’s resource-based policy, potentially introducing overly permissive access.</p><p><strong>3. </strong><strong>PutBucketAcl</strong></p><p>Modifies the bucket’s Access Control List, which may grant permissions to public groups such as AllUsers.</p><p>These operations provide useful indicators when investigating possible S3 exposure.</p><h4>Splunk Query</h4><pre>index=aws_cloudtrail eventName IN (PutBucketPublicAccessBlock, PutBucketPolicy, PutBucketAcl) &quot;userIdentity.userName&quot;=&quot;helpdesk.luke&quot; eventTime&gt;2023-11-02T09:54:04Z<br>| table requestParameters.bucketName</pre><h4>Query Analysis</h4><ul><li>eventName IN (...): Searches for the three relevant configuration operations.</li><li>userIdentity.userName: Focuses on changes performed by the compromised account.</li><li>eventTime: Restricts the investigation to post-compromise activity.</li><li>requestParameters.bucketName: Identifies the affected bucket.</li></ul><h4>Findings</h4><p>The search returned the following bucket:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*Bsr-PeI5Am1UiD50LU265w.png" /><figcaption><em>Figure 5. Identifying the bucket associated with suspicious configuration modification events.</em></figcaption></figure><p><strong>Important forensic note:</strong> Detecting one of these API operations does not automatically prove that the bucket became publicly accessible. We must inspect the actual policy, ACL grants, and Block Public Access settings to confirm the resulting exposure.</p><p><strong>Answer:</strong></p><pre>backup-and-restore98825501</pre><h3>Q5 — Identifying the Newly Created IAM User</h3><p><strong>Question:</strong> What is the username of the account created by the attacker?</p><h4>Investigation Approach</h4><p>Creating additional IAM users is a potential persistence technique.</p><p>An attacker who compromises an existing identity may create another account to maintain access independently of the original compromised user.</p><p>AWS CloudTrail records IAM user creation through the CreateUser API operation.</p><h4>Splunk Query</h4><pre>index=aws_cloudtrail eventName=CreateUser &quot;userIdentity.userName&quot;=&quot;helpdesk.luke&quot; eventTime&gt;2023-11-02T09:54:04Z<br>| table requestParameters.userName</pre><h4>Query Analysis</h4><p>The important distinction here is between two fields:</p><ul><li>userIdentity.userName: Identifies the account performing the operation.</li><li>requestParameters.userName: Identifies the new account being created.</li></ul><p>This distinction allows us to identify both the actor and the target of the operation.</p><h4>Findings</h4><p>The results revealed a newly created IAM user:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*WWpVRCu2mfZJXA_bbnAqBQ.png" /><figcaption><em>Figure 6. CloudTrail event identifying the IAM user created by helpdesk.luke.</em></figcaption></figure><p>This is consistent with a potential persistence attempt. However, we need additional events to determine whether the account received credentials and was subsequently used.</p><p><strong>Answer:</strong></p><pre>marketing.mark</pre><h3>Q6 — Identifying the IAM Group Assigned to the New User</h3><p><strong>Question:</strong> What is the name of the group to which the newly created account was added?</p><h4>Investigation Approach</h4><p>Creating an IAM user does not necessarily provide it with useful permissions.</p><p>AWS IAM allows permissions to be assigned through policies attached directly to users or through membership in IAM groups.</p><p>Therefore, we need to investigate whether the attacker added the newly created account to an existing group.</p><p>The relevant CloudTrail operation is AddUserToGroup.</p><h4>Splunk Query</h4><pre>index=aws_cloudtrail eventName=AddUserToGroup &quot;userIdentity.userName&quot;=&quot;helpdesk.luke&quot; eventTime&gt;2023-11-02T09:54:04Z<br>| table requestParameters.groupName</pre><h4>Query Analysis</h4><ul><li>eventName=AddUserToGroup: Filters IAM group membership modifications.</li><li>userIdentity.userName: Identifies the account performing the operation.</li><li>eventTime: Focuses on post-compromise activity.</li><li>requestParameters.groupName: Extracts the target group name.</li></ul><p>For a complete investigation, we should also inspect requestParameters.userName to confirm the identity added to the group.</p><h4>Findings</h4><p>The search identified the following IAM group:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*TegSbnEqVxrJSiFWZJGYVQ.png" /><figcaption><em>Figure 7. CloudTrail evidence identifying the IAM group involved in the membership modification.</em></figcaption></figure><p>Adding a user to a group may grant it additional permissions through policies attached to that group. Therefore, the next step would be to inspect the group’s attached policies and determine its actual privilege level.</p><p><strong>Answer:</strong></p><pre>Admins</pre><h3>3. Reconstructing the Attack Activity</h3><p>After answering the six questions, we can connect the findings into a single investigation timeline.</p><p><strong>1. Authentication:</strong> The helpdesk.luke account experienced nine failed login attempts followed by a successful login.</p><p><strong>2. Successful Login:</strong> Authentication succeeded at 2023-11-02T09:54:04Z.</p><p><strong>3. S3 Access:</strong> The first recorded object retrieval occurred at 09:55:53Z.</p><p><strong>4. Sensitive Resource Access:</strong> A DWG-related access event was associated with product-designs-repository31183937.</p><p><strong>5. Bucket Configuration Changes:</strong> Suspicious S3 configuration operations were associated with backup-and-restore98825501.</p><p><strong>6. IAM User Creation:</strong> The compromised account created marketing.mark.</p><p><strong>7. Group Membership Modification:</strong> The account performed an operation involving the Admins group.</p><h4>Investigation Assessment</h4><p>The available evidence suggests a sequence of suspicious activities involving account compromise, S3 access, security configuration modifications, and IAM identity manipulation.</p><p>These activities are consistent with potential data exposure and persistence objectives.</p><p>However, some conclusions require additional evidence:</p><ul><li>The actual contents and impact of the accessed DWG file.</li><li>Whether the S3 bucket became publicly accessible.</li><li>The permissions associated with the Admins group.</li><li>Whether the newly created IAM user was subsequently used.</li></ul><p>Distinguishing confirmed observations from investigative hypotheses is essential in professional cloud forensics.</p><h3>4. Key Takeaways</h3><p>This challenge highlights several important lessons:</p><ol><li><strong>Identity is a critical investigation pivot:</strong> A compromised AWS account can interact with multiple services and resources.</li><li><strong>Authentication is only the beginning:</strong> Correlating login activity with subsequent API operations provides a better understanding of attacker behavior.</li><li><strong>CloudTrail is essential for cloud investigations:</strong> Understanding its event structure helps reconstruct suspicious activities.</li><li><strong>S3 requires both bucket-level and object-level investigation:</strong> Configuration changes and object access provide different types of evidence.</li><li><strong>IAM changes may indicate persistence:</strong> Creating users and modifying group memberships can establish additional access paths.</li><li><strong>Correlation matters:</strong> Investigating events as part of a larger sequence provides more meaningful conclusions than analyzing them independently.</li></ol><h3>Conclusion</h3><p>AWSRaid provided a practical opportunity to investigate suspicious activity across an AWS environment using Splunk and CloudTrail.</p><p>We moved from identifying a compromised identity to investigating S3 object access, detecting potentially dangerous configuration changes, and analyzing IAM operations associated with persistence.</p><p>The most important lesson is that <strong>cloud forensics is not about finding individual suspicious API calls; it is about connecting those events to reconstruct what happened, who performed it, and which resources may have been affected.</strong></p><p>Understanding this methodology is an important skill for SOC analysts and cloud security practitioners working with AWS environments.</p><h3>References &amp; Further Reading</h3><ul><li><a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-events.html">AWS CloudTrail Documentation</a></li><li><a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html">CloudTrail Event Record Contents</a></li><li><a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging Data Events with CloudTrail</a></li><li><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/cloudtrail-logging-s3-info.html">Amazon S3 CloudTrail Logging</a></li><li><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html">AWS IAM Documentation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b886747987d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boss of the SOC v1 (BOTS v1): A Complete Blue Team Investigation Walkthrough Using Splunk]]></title>
            <link>https://medium.com/@youssefmohamed01p/boss-of-the-soc-v1-bots-v1-a-complete-blue-team-investigation-walkthrough-using-splunk-028fda94953f?source=rss-82b813156258------2</link>
            <guid isPermaLink="false">https://medium.com/p/028fda94953f</guid>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <dc:creator><![CDATA[Youssefmohamedp]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 20:37:18 GMT</pubDate>
            <atom:updated>2026-11-13T20:37:18.794Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Platform:</strong> CyberDefenders<br><strong>Category:</strong> Threat Hunting<br><strong>Difficulty:</strong> Medium<br><strong>Primary Tool:</strong> Splunk<br><strong>Scenarios:</strong> APT Investigation &amp; Cerber Ransomware Investigation<br><strong>Lab link:</strong> <a href="https://cyberdefenders.org/blueteam-ctf-challenges/boss-of-the-soc-v1/">https://cyberdefenders.org/blueteam-ctf-challenges/boss-of-the-soc-v1/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HSYk7e_ViRFaLZysOyp8Ow.png" /></figure><h3>1. Introduction</h3><p>Security investigations are rarely about finding a single suspicious event. In most real-world incidents, attackers leave traces across multiple systems, network connections, authentication events, and endpoint activities.</p><p>The challenge for a SOC analyst is to connect these individual pieces of evidence, understand their relationships, and reconstruct what actually happened.</p><p>In this write-up, I will walk through my investigation of <strong>Boss of the SOC v1 (BOTS v1)</strong>, a Blue Team challenge available on CyberDefenders.</p><p>The challenge presents two different attack scenarios involving Wayne Enterprises:</p><ul><li><strong>Scenario 1 — APT Investigation:</strong> Investigate a suspected compromise of the organization’s website, identify the attacker’s infrastructure, analyze suspicious HTTP traffic, and reconstruct the website defacement.</li><li><strong>Scenario 2 — Ransomware Investigation:</strong> Investigate a Cerber ransomware infection, identify the infection chain, examine endpoint and network artifacts, and understand the impact of the attack.</li></ul><p>Throughout the investigation, I used Splunk to analyze different data sources, including HTTP traffic, Suricata alerts, Windows Event Logs, Windows Registry events, and DNS records.</p><p>I also relied on external research and threat intelligence platforms, including VirusTotal, Open Threat Exchange (OTX), WHOXY, and Google Search.</p><p>One of the interesting aspects of this challenge is that not every question can be solved using Splunk alone. Some findings require understanding how specific technologies work, researching unfamiliar concepts, or correlating information from external sources.</p><p>Rather than presenting only the final answers, I will explain the investigation process, the searches I performed, the reasoning behind important queries, and the findings obtained along the way.</p><h3>2. Understanding the Lab Environment</h3><p>Before starting the investigation, it is important to understand the available environment and the role of the different data sources.</p><h3>2.1 Splunk</h3><p>Splunk is the primary SIEM platform used throughout this challenge.</p><p>It allows us to search, filter, correlate, and analyze events collected from different systems and security technologies.</p><p>The main index used in this lab is:</p><pre>index=botsv1</pre><p>Most of our searches will start with this index and then become more specific by adding additional conditions.</p><h3>2.2 Important Data Sources</h3><p>During the investigation, we will encounter several data sources.</p><p><strong>HTTP Logs — </strong><strong>stream:http</strong></p><p>These logs provide visibility into web traffic, including:</p><ul><li>HTTP methods such as GET and POST.</li><li>Source and destination IP addresses.</li><li>HTTP headers.</li><li>Request and response content.</li><li>User-Agent values.</li><li>Requested URLs and resources.</li></ul><p>They are particularly useful when investigating web application attacks, brute-force attempts, and malicious file transfers.</p><p><strong>Suricata Logs</strong></p><p>Suricata is an open-source Network Intrusion Detection and Prevention System (IDS/IPS).</p><p>Its logs can contain:</p><ul><li>Alert signatures.</li><li>Source and destination IP addresses.</li><li>Network protocols.</li><li>File metadata.</li><li>HTTP-related information.</li><li>Indicators associated with known threats.</li></ul><p>In this challenge, Suricata telemetry helps identify suspicious executable transfers and Cerber-related network activity.</p><p><strong>Windows Event Logs</strong></p><p>Windows event telemetry provides information about activities occurring on endpoints and servers.</p><p>Depending on the event source, we can investigate:</p><ul><li>Process creation.</li><li>Parent-child process relationships.</li><li>Command-line execution.</li><li>File activity.</li><li>User activity.</li></ul><p><strong>Windows Registry Logs</strong></p><p>Registry telemetry can provide information about system configuration and connected devices, including artifacts related to removable storage devices.</p><p><strong>DNS Logs — </strong><strong>stream:dns</strong></p><p>DNS records help us investigate domain resolution activity and identify suspicious domains contacted by compromised systems.</p><p>Understanding these data sources is essential because not every investigative question can be answered using the same type of log.</p><h3>3. Scenario 1 — APT Investigation</h3><p>The first scenario focuses on a suspected compromise of Wayne Enterprises’ website.</p><p>According to the scenario, Gotham City Police Department (GCPD) discovered evidence suggesting that:</p><p><a href="http://www.imreallynotbatman.com/">www.imreallynotbatman.com</a></p><p>had been compromised.</p><p>The website is associated with Wayne Enterprises, and the suspected attackers are believed to have targeted the organization.</p><p>Our objective is to determine whether the website was compromised, investigate the attacker’s activities, and reconstruct the attack using the available evidence.</p><h3>3.1 Identifying the Web Application and Its Technology</h3><h4>Q1 — Identify the SIEM Platform</h4><p>The first question establishes which SIEM platform we will use during the investigation.</p><p><strong>Answer:</strong></p><pre>Splunk</pre><h4>Q2 — Identify the Content Management System</h4><p>Before investigating suspicious activity, we need to understand the technology running the target website.</p><p>One useful approach is to inspect the HTML source code returned by the web server.</p><p>Web applications sometimes expose technology information through HTML metadata, resource paths, and other implementation details.</p><p>In this case, I searched for information about identifying the Content Management System (CMS) used by a website.</p><p><strong>Research query:</strong></p><pre>What content management system is</pre><p>The idea was to understand which HTML elements could reveal the technology behind the website.</p><p>One useful indicator is the HTML generator metadata field, which can explicitly identify the CMS.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 imreallynotbatman.com sourcetype=&quot;stream:http&quot;<br>src_content=&quot;*generator*&quot;</pre><p>The query searches HTTP traffic associated with the target website and filters the content for the generator metadata.</p><p>After inspecting the returned HTML, we found:</p><pre>&lt;meta name=&quot;generator&quot; content=&quot;Joomla! - Open Source Content Management&quot;&gt;</pre><p><strong>Finding:</strong></p><pre>Joomla</pre><p>This confirms that the website uses Joomla as its Content Management System.</p><p>Identifying the underlying web technology helps us understand the application’s structure and the types of attacks that might target it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZWupYzHiUXy8fmwzPVO5zg.png" /><figcaption><strong>Figure 1 — Joomla HTML Metadata</strong></figcaption></figure><h4>Q3 — Investigate Suspicious HTTP Requests</h4><p>After identifying the website technology, we move on to investigating suspicious HTTP requests.</p><p>The source IP associated with the scanning activity is:</p><p>40.80.148.42</p><p>We want to inspect the different request contents and HTTP headers generated by this source.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 imreallynotbatman.com sourcetype=&quot;stream:http&quot;<br>src_ip=&quot;40.80.148.42&quot;<br>| dedup src_content<br>| table src_ip, src_content, src_headers</pre><p><strong>Understanding the query:</strong></p><ul><li>src_ip identifies requests originating from the suspicious address.</li><li>dedup src_content removes duplicate request contents.</li><li>table displays the source IP, request content, and HTTP headers.</li></ul><p>Inspecting the request contents can reveal suspicious parameters, unusual requests, and potential exploitation attempts.</p><p>For example, SQL injection testing may produce recognizable SQL-related payloads in HTTP parameters.</p><p>The important point is not to assume that every unusual request represents a successful exploit. We need to examine the request and correlate it with the server’s response and subsequent activity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nn6AeggTWUKhZrouz46Fjg.png" /><figcaption><strong>Figure 2 — HTTP Requests from the Suspicious Source</strong></figcaption></figure><h4>Q4 — Identify the Web Vulnerability Scanner</h4><p>One important part of investigating web attacks is identifying whether the attacker used automated scanning tools.</p><p>Web vulnerability scanners often leave identifiable artifacts in HTTP traffic, including:</p><ul><li>Distinctive User-Agent strings.</li><li>Custom HTTP headers.</li><li>Unusual request patterns.</li><li>Requests targeting common application vulnerabilities.</li></ul><p>Before writing the query, I researched how web vulnerability scanners can be identified through their network artifacts.</p><p><strong>Research query 1:</strong></p><pre>What artifacts can a web vulnerability scanner leave<br>so we can detect the software name of the scanner?</pre><p>I also investigated the meaning of the following HTTP header:</p><p><strong>Research query 2:</strong></p><pre>What does this header mean?</pre><pre>Acunetix-Product: WVS/10.0<br>(Acunetix Web Vulnerability Scanner - Free Edition)</pre><p>This helped me understand that HTTP headers can expose the name and version of automated scanning tools.</p><p>I then searched the HTTP traffic for User-Agent values and request headers associated with the suspicious source.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 imreallynotbatman.com sourcetype=&quot;stream:http&quot;<br>src_ip=&quot;40.80.148.42&quot;<br>| dedup http_user_agent<br>| table http_user_agent src_headers</pre><p>The returned headers contained:</p><pre>Acunetix-Product: WVS/10.0<br>(Acunetix Web Vulnerability Scanner - Free Edition)</pre><p><strong>Finding:</strong></p><pre>Acunetix Web Vulnerability Scanner 10.0</pre><p>This is a useful example of how seemingly small HTTP artifacts can provide valuable information about the tools used during reconnaissance.</p><p>One important consideration is that HTTP headers can be spoofed, so they should be treated as indicators rather than definitive proof of the software used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZmEcNmyEXItcfNRjLeI8vw.png" /><figcaption><strong>Figure 3 — Acunetix HTTP Artifacts</strong></figcaption></figure><h3>3.2 Investigating the Brute-Force Attack</h3><h4>Q5 — Identify the Attacker’s IP Address</h4><p>The next step is to investigate authentication attempts against the Joomla administration interface.</p><p>A brute-force attack involves repeatedly attempting different passwords until a valid credential is discovered.</p><p>In HTTP traffic, these attempts may appear as repeated POST requests containing authentication parameters.</p><p>We can search for requests containing password-related content.</p><p><strong>Splunk Query — Method 1:</strong></p><pre>index=botsv1 imreallynotbatman.com sourcetype=&quot;stream:http&quot;<br>src_ip=* src_content=*pass* http_method=POST<br>| stats count by src_ip, src_content<br>| table src_ip, src_content, count</pre><p><strong>Understanding the query:</strong></p><ul><li>http_method=POST filters requests that submit data to the application.</li><li>src_content=*pass* identifies request content containing password-related parameters.</li><li>stats count by src_ip, src_content counts the occurrences of each request content for each source IP.</li></ul><p>This allows us to compare authentication attempts and identify the source responsible for generating repeated password submissions.</p><p><strong>Finding:</strong></p><pre>23.22.63.114</pre><p><strong>Alternative approach — Extracting the password parameter</strong></p><p>Instead of displaying the complete request content, we can extract the password into a separate field using rex.</p><pre>index=botsv1 imreallynotbatman.com sourcetype=&quot;stream:http&quot;<br>src_ip=* src_content=*pass* http_method=POST<br>| rex field=_raw &quot;passwd=(?P&lt;password&gt;[^&amp;\s\&quot;&#39;]+)&quot;<br>| table src_ip password</pre><p>The regular expression extracts the value following passwd= until it reaches a parameter separator or whitespace.</p><p>This makes the results easier to analyze.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uTVUHqhtUFt_za2XBMJoCw.png" /><figcaption><strong>Figure 4 — Password-Related HTTP POST Requests</strong></figcaption></figure><h4>Q6 — Identify the First Password Used in the Brute-Force Attack</h4><p>After identifying the suspicious source, we can narrow our search to that IP address.</p><p>The attacker IP identified in the previous question is:</p><p>23.22.63.114</p><p>Our objective now is to reconstruct the order of the password attempts and identify the first password used.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 imreallynotbatman.com sourcetype=&quot;stream:http&quot;<br>src_ip=23.22.63.114 src_content=*pass* http_method=POST<br>| rex field=_raw &quot;passwd=(?P&lt;password&gt;[^&amp;\s\&quot;&#39;]+)&quot;<br>| sort _time<br>| table src_ip password</pre><p>The rex command extracts the password parameter, while sort _time organizes the attempts chronologically.</p><p>This is important because the order of password attempts can help us understand the attacker’s behavior.</p><p>The first password is not necessarily the correct one. We must distinguish between the initial attempt and the credential that eventually granted administrative access.</p><p><strong>Answer:</strong></p><pre>12345678</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTAuQXuq2DahD-RnQxHFEQ.png" /><figcaption><strong>Figure 5 — Chronological Password Attempts</strong></figcaption></figure><h4>Q7 — Identify the Executable Uploaded to the Web Server</h4><p>After investigating the authentication activity, we need to determine whether the attacker transferred a malicious file to the web server.</p><p>Suricata file metadata can help us identify executable files transferred through network traffic.</p><p><strong>Query 1 — Search for executable file transfers:</strong></p><pre>index=botsv1 sourcetype=suricata http_method=POST<br>fileinfo.filename=*.exe*<br>| table fileinfo.filename dest_ip src_ip</pre><p>This query searches Suricata events associated with POST requests and executable filenames.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wPB4Al0TXKV-j_vBBfeApQ.png" /><figcaption><strong>Figure 6 — Identifying the Executable Transfer</strong></figcaption></figure><p>The fileinfo.filename field provides the name of the transferred file.</p><p><strong>Finding:</strong></p><pre>3791.exe</pre><p><strong>Query 2 — Investigate the file-related events:</strong></p><pre>index=botsv1 3791.exe<br>| sort _time</pre><p>Once we identify the filename, we can search across the entire index for related events.</p><p>Sorting by time helps reconstruct when the file appeared and what additional activity was associated with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aMpFv6FBTQiMvpy0pTSLEQ.png" /></figure><h4>Q8 — Identify the Executable’s Hash</h4><p>Knowing the filename is not enough to establish whether a file is malicious.</p><p>Filenames can easily be changed, and different files can share the same name.</p><p>A cryptographic hash provides a much more reliable way to identify a specific file.</p><p>We can search for Windows process creation events associated with the executable.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 3791.exe EventID=1<br>| dedup Hashes<br>| table Image Hashes</pre><p><strong>Understanding the query:</strong></p><ul><li>EventID=1 identifies process creation events in the relevant Windows telemetry.</li><li>dedup Hashes removes duplicate hash records.</li><li>Image identifies the executable&#39;s image path.</li><li>Hashes provides the recorded file hash information.</li></ul><p>The results associate the executable with its image path and several recorded hash values.</p><p>The relevant executable path is:</p><pre>C:\inetpub\wwwroot\joomla\3791.exe</pre><p>Its MD5 hash is:</p><pre>AAE3F5A29935E6ABCC2C2754D12A9AF0</pre><p>The corresponding SHA256 value shown in the event is:</p><pre>EC78C938D8453739CA2A370B9C275971EC46CAF6E479DE2B2D04E97CC47FA45D</pre><p>These indicators can now be used for external threat intelligence searches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AKOBNEcPhj1NwERw6GEGLw.png" /><figcaption><strong>Figure 7 — Executable Hash Identification</strong></figcaption></figure><h4>Q9 — Review Password Attempts Across the Dataset</h4><p>After reviewing the password attempts from the identified attacker, we can examine password-related HTTP traffic across the dataset.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=&quot;stream:http&quot; src_content=*pass*<br>| rex field=_raw &quot;passwd=(?P&lt;password&gt;[^&amp;\s\&quot;&#39;]+)&quot;<br>| sort -_time<br>| table src_ip password</pre><p>Unlike Q6, this query does not restrict the search to 23.22.63.114.</p><p>It allows us to inspect password-related activity from different sources and compare the extracted credentials.</p><p>This broader search provides additional context about the authentication activity.</p><p>One of the important values observed during the investigation was:</p><pre>batman</pre><p>This password becomes particularly important in the following investigation steps, where we correlate the password attempts with the successful administrative access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WS8zcZ_6SfW49xd7RDuJAw.png" /><figcaption><strong>Figure 8 — Password Attempts Across HTTP Traffic</strong></figcaption></figure><h3>3.3 Reconstructing the Website Defacement</h3><h4>Q10 — Investigate the Defacement Activity</h4><p>At this point, we have developed a working hypothesis:</p><p>The attacker obtained administrative credentials through brute-force activity and subsequently uploaded malicious content to the web server to deface the website.</p><p>This hypothesis needs to be supported by network evidence.</p><p>One important artifact is the defacement image:</p><pre>poisonivy-is-coming-for-you-batman.jpeg</pre><p>Before continuing, I needed to understand two things:</p><p><strong>Research query 1:</strong></p><pre>How do attackers deface websites using files?</pre><p>The purpose was to understand how an attacker with administrative access could modify website content by uploading or replacing files.</p><p><strong>Research query 2:</strong></p><pre>How can we render an image using its binary data<br>through an online website?</pre><p>This second question became relevant because the image content was available within the network evidence, and I needed a way to inspect the image rather than relying only on its filename.</p><p><strong>Query 1 — Inspect HTTP GET requests:</strong></p><pre>index=botsv1 sourcetype=&quot;stream:http&quot;<br>src_ip=192.168.250.70 http_method=GET</pre><p>This query focuses on GET requests originating from the internal server IP.</p><p>The returned event contains a request for:</p><pre>GET /poisonivy-is-coming-for-you-batman.jpeg HTTP/1.1</pre><p><strong>Query 2 — Search for the defacement filename:</strong></p><pre>index=botsv1 /poisonivy-is-coming-for-you-batman.jpeg</pre><p>Searching for the filename across the dataset helps us identify related network events.</p><p>An important lesson here is that HTTP traffic can contain file content represented as binary or encoded data.</p><p>When investigating an image transferred through HTTP, we may need to examine its response content or reconstruct the file before we can visually inspect it.</p><p>The image and its filename provide direct context for the website defacement investigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*svrPR_ShYhEF3izGnBmbhA.png" /><figcaption><strong>Figure 9 — Defacement Image Investigation</strong></figcaption></figure><h4>Q11 — Identify the Site Associated with the Defacement Image</h4><p>After identifying the defacement image, we need to determine the site associated with the request.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=&quot;stream:http&quot;<br>&quot;poisonivy-is-coming-for-you-batman.jpeg&quot;<br>c_ip=&quot;192.168.250.70&quot;<br>| dedup site<br>| table site</pre><p>The query searches for events containing the image filename and originating from the internal client IP.</p><p>The site field helps identify the associated website.</p><p><strong>Finding:</strong></p><pre>prankglassinebracket.jumpingcrab.com:1337</pre><p>The port number is also important because it is part of the observed service endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*K5ffr0TmugjEOrhhu0H1ow.png" /><figcaption><strong>Figure 10 — Site Associated with the Defacement Image</strong></figcaption></figure><h4>Q12 — Identify the Destination IP Address</h4><p>Once we identify the site, we can examine the destination IP associated with the same activity.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=&quot;stream:http&quot;<br>&quot;poisonivy-is-coming-for-you-batman.jpeg&quot;<br>c_ip=&quot;192.168.250.70&quot;<br>| dedup site<br>| table dest_ip site</pre><p>This query adds dest_ip to the output so that we can associate the suspicious site with its destination IP address.</p><p><strong>Finding:</strong></p><pre>23.22.63.114</pre><p>This is particularly interesting because it is also the source IP identified earlier during the brute-force investigation.</p><p>Connecting these findings is important: instead of looking at events independently, we are building relationships between the external attacker infrastructure and the activities observed against the compromised website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VTQ8YTvcJo03GzYB3-q3Ow.png" /><figcaption><strong>Figure 11 — Destination IP and Associated Site</strong></figcaption></figure><h3>3.4 Threat Intelligence and OSINT Investigation</h3><h4>Q13 — Identify the Attacker’s Email Address</h4><p>After obtaining an attacker-related identifier, we can use Open-Source Intelligence (OSINT) to search for additional information.</p><p>In this case, I searched Google for:</p><pre>&quot;Po1s0n1vy&quot; &quot;email&quot;</pre><p>The objective was to find publicly available information associated with the attacker identity.</p><p>The search led to an Open Threat Exchange (OTX) page containing an email address associated with the Poison Ivy identity.</p><p><strong>Finding:</strong></p><pre>LILLIAN.ROSE@PO1SON1VY.COM</pre><p>This demonstrates how an identifier discovered during a network investigation can be used to pivot into external intelligence sources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*Uma9XeD91bJjDndTATyd8Q.png" /><figcaption><strong>Figure 12 — OSINT Search and Email Discovery</strong></figcaption></figure><h4>Q14 — Identify the Spear-Phishing Malware Using VirusTotal</h4><p>The next question required combining the artifacts collected during the previous investigation steps with external threat intelligence.</p><p>GCPD reported that the attackers could use spear-phishing emails containing customized malware if their initial attack failed.</p><p>I used VirusTotal to investigate the attacker IP:</p><pre>23.22.63.114</pre><p>The investigation process was:</p><ol><li>Search for the attacker IP in VirusTotal.</li><li>Open the IP analysis page.</li><li>Navigate to the <strong>Relations</strong> tab.</li><li>Examine the communicating files associated with the IP.</li><li>Identify suspicious executable files.</li><li>Open their individual analysis pages.</li><li>Review their hashes and detection information.</li><li>Compare the samples with the indicators requested by the challenge.</li></ol><p>The Relations tab revealed five communicating executable files:</p><ul><li>software.exe</li><li>MirandaTateScreensaver.scr.exe</li><li>MSRSAAPP</li><li>etfdbaf5x.exe</li><li>ab.exe</li></ul><p>One of the relevant samples identified during the investigation was:</p><pre>MirandaTateScreensaver.scr.exe</pre><p>Its SHA256 hash is:</p><pre>9709473ab351387aab9e816eff3910b9f28a7a70202e250ed46dba8f820f34a8</pre><p>The file analysis showed that 48 out of 71 security vendors flagged the sample as malicious.</p><p><strong>Why is the Relations tab useful?</strong></p><p>Threat intelligence platforms provide more than individual file reputation.</p><p>The relationships between IP addresses, domains, URLs, and files can help us discover infrastructure and malware samples that are not immediately visible from the original network logs.</p><p>This is particularly valuable when investigating attacker infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XLOfhlwIHDxP_1Ar2QggYg.png" /><figcaption><strong>Figure 13 — VirusTotal Relations: Communicating Files</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_QucJJPFkbVxmIyiH3mHQ.png" /><figcaption><strong>Figure 14 — VirusTotal Malware Analysis</strong></figcaption></figure><h4>Q15 — Investigate the Special Hexadecimal Code</h4><p>While examining the malware-related information, I encountered a hexadecimal string associated with the malware sample.</p><p>Before decoding it, I researched the meaning of special hexadecimal values used in malware communication.</p><p><strong>Research query:</strong></p><pre>What is the meaning of special hex code<br>when talking about malware?</pre><p>The research introduced the concept of <strong>Hardcoded Command and Control (C2) Markers</strong>.</p><p>Malware may contain hardcoded hexadecimal values used during communication with its Command and Control infrastructure.</p><p>For example, an implant may send a specific hexadecimal value as part of a communication handshake to prove that it is the expected malware client.</p><p>The server may validate this value before continuing communication.</p><p>This means that specific byte sequences can become useful indicators during malware analysis and network investigation.</p><p>After understanding this concept, I returned to VirusTotal and searched for the hash identified in Q14.</p><p>I then opened the <strong>Community</strong> tab and examined the comments associated with the sample.</p><p>One of the comments contained a hexadecimal string.</p><p><strong>Hexadecimal value:</strong></p><pre>53 74 65 76 65 20 42 72 61 6e 74 27 73 20<br>42 65 61 72 64 20 69 73 20 61 20 70 6f<br>77 65 72 66 75 6c 20 74 68 69 6e 67 2e<br>20 46 69 6e 64 20 74 68 69 73 20 6d<br>65 73 73 61 67 65 20 61 6e 64 20 61<br>73 6b 20 68 69 6d 20 74 6f 20 62 75<br>79 20 79 6f 75 20 61 20 62 65 65 72<br>21 21 21</pre><p>After converting the hexadecimal values into ASCII, the message becomes:</p><pre>Steve Brant&#39;s Beard is a powerful thing.<br>Find this message and ask him to buy you a beer!!!</pre><p>The comment also contained:</p><pre>Adham was here :)</pre><p>This was an interesting example of how community intelligence can reveal additional information that is not directly available in the SIEM logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CENwdxrsXeg1U4QgWjKY_g.png" /><figcaption><strong>Figure 15 — Research About Hardcoded C2 Markers</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oLYD6Nw9EFeMrdo-W97EqQ.png" /><figcaption><strong>Figure 16 — VirusTotal Community Hexadecimal Message</strong></figcaption></figure><h4>Q16 — Investigate the Attacker’s Historical WHOIS Information</h4><p>The next step was to investigate domains associated with the attacker’s infrastructure.</p><p>I started by examining the domains related to:</p><pre>23.22.63.114</pre><p>The VirusTotal Relations and Passive DNS sections provided several associated domains.</p><p>One of the domains visible in the historical results was:</p><pre>waynecorpinc.com</pre><p>After obtaining the connected domains, I attempted to investigate them using WHOIS lookup services.</p><p>However, I encountered several problems during this step.</p><p><strong>Problem 1 — Domains were no longer registered</strong></p><p>Some of the domains were no longer registered, which made it difficult to retrieve current registration information.</p><p><strong>Problem 2 — Historical WHOIS information was unavailable</strong></p><p>I also discovered that historical WHOIS lookup functionality was restricted on the free accounts of the services I tried.</p><p>For example, when I searched for the relevant domain using WHOXY, the service returned:</p><pre>Sorry, no results found.</pre><p>This prevented me from retrieving the historical registration details needed to complete the investigation through that particular service.</p><p>This step highlights an important aspect of OSINT investigations: the absence of current registration information does not necessarily mean that a domain was never associated with malicious infrastructure.</p><p>Historical DNS and WHOIS records can be essential when investigating older incidents.</p><p><strong>Investigation status:</strong> The uploaded material documents the related-domain investigation and the WHOIS limitation, but does not contain a confirmed final answer for this question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*24f1pec1hNijhahBGh-lPQ.png" /><figcaption><strong>Figure 17 — VirusTotal Passive DNS and Related Domains</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*orLjKpeaqv093I-kxQltUw.png" /><figcaption><strong>Figure 18 — WHOXY Historical WHOIS Lookup</strong></figcaption></figure><h3>3.5 Further Password Analysis</h3><h4>Q17 — Identify the Password Matching a Specific Pattern</h4><p>We now return to the HTTP authentication data.</p><p>The objective is to identify a password that matches a specific condition: it has six characters and is the name of a Coldplay song.</p><p>To achieve this, we need to extract the password and apply a condition using Splunk’s where command.</p><p>Before writing the query, I researched how to filter extracted values based on their length.</p><p><strong>Research query 1:</strong></p><pre>How to put a condition using where in Splunk<br>to get words with a specific length?</pre><p>The important function here is len(), which returns the number of characters in a string.</p><p>For example:</p><pre>| where len(password) == 6</pre><p>This condition keeps only events where the extracted password contains exactly six characters.</p><p>I then researched Coldplay songs to identify the relevant word.</p><p><strong>Research query 2:</strong></p><pre>What is a Coldplay song?</pre><p>The search showed several popular songs, including:</p><ul><li>Yellow</li><li>The Scientist</li><li>Fix You</li><li>Viva La Vida</li></ul><p>One of these songs matched the six-character condition.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=&quot;stream:http&quot;<br>src_content=*pass* yellow<br>| rex field=_raw &quot;passwd=(?P&lt;password&gt;[^&amp;\s\&quot;&#39;]+)&quot;<br>| where len(password) == 6<br>| table src_ip password</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1XTLru4KbAVjAcGg5C03JQ.png" /></figure><p><strong>Understanding the query:</strong></p><ul><li>rex extracts the password from the raw event.</li><li>where evaluates a condition against the extracted field.</li><li>len(password) returns the number of characters.</li><li>== 6 keeps only six-character passwords.</li><li>table displays the source IP and extracted password.</li></ul><p>The additional search term yellow narrows the search to relevant events.</p><p><strong>Finding:</strong></p><pre>Source IP: 23.22.63.114<br>Password: yellow</pre><p>This question demonstrates how Splunk can perform filtering based on the properties of extracted values, rather than only searching for exact strings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fFQHcLGGYZo5gPEFUtfVHg.png" /><figcaption><strong>Figure 19 — Searching for String Length Conditions</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8amy5fkC_H_ZQSZZVPtxEg.png" /><figcaption><strong>Figure 20 — Coldplay Song Research and Password Identification</strong></figcaption></figure><h4>Q18 — Calculate the Average Password Length</h4><p>Instead of examining individual passwords, we can use statistical functions to understand the overall password characteristics.</p><p>Our objective here is to calculate the average length of the extracted passwords.</p><p>Before writing the query, I researched two concepts.</p><p><strong>Research query 1:</strong></p><pre>How to make a mathematical operation<br>on extracted values using Splunk?</pre><p>This led me to the eval command, which allows us to create new fields and perform calculations on extracted values.</p><p><strong>Research query 2:</strong></p><pre>How to get the average of numeric values in Splunk?</pre><p>This introduced the avg() statistical function.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=&quot;stream:http&quot; src_content=*pass*<br>| rex field=_raw &quot;passwd=(?P&lt;password&gt;[^&amp;\s\&quot;&#39;]+)&quot;<br>| eval pass_len = len(password)<br>| stats avg(pass_len)</pre><p><strong>Understanding the query:</strong></p><p>First, rex extracts the password.</p><p>Next:</p><pre>| eval pass_len = len(password)</pre><p>creates a new field called pass_len, containing the number of characters in each extracted password.</p><p>Finally:</p><pre>| stats avg(pass_len)</pre><p>calculates the average value of that field.</p><p><strong>Observed result:</strong></p><pre>6.174334140435835</pre><p>This is the exact average returned by Splunk.</p><p>If the challenge expects a rounded whole number, the result is approximately:</p><pre>6</pre><p>This demonstrates the combination of rex, eval, and stats to extract data, transform it, and perform statistical analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gl0-4ZJEShrozdNPPaGGsA.png" /><figcaption><strong>Figure 21 — Calculating Average Password Length</strong></figcaption></figure><h4>Q19 — Calculate the Time Between Password Discovery and Successful Login</h4><p>This question requires us to understand two separate events:</p><ol><li>The time when the brute-force activity identified the correct password.</li><li>The time when the compromised account successfully used that password to log in.</li></ol><p>The correct password identified during the investigation was:</p><pre>batman</pre><p>Before solving the question, I researched the transaction command in Splunk.</p><p><strong>Research query:</strong></p><pre>What is transaction in Splunk and how to use it?</pre><p>The research explained that the transaction command groups a sequence of related events into a single transaction.</p><p>Instead of viewing scattered logs independently, a transaction can combine related events based on a shared field or specified start and end conditions.</p><p>One important field generated by the command is:</p><ul><li>duration: The time difference, in seconds, between the first and last event in the transaction.</li></ul><p>Another useful field is:</p><ul><li>eventcount: The number of individual events grouped into the transaction.</li></ul><p>After understanding the command, I used the following approach.</p><p><strong>Query 1 — Identify the relevant password events:</strong></p><pre>index=botsv1 sourcetype=&quot;stream:http&quot; http_method=POST<br>| rex field=_raw &quot;passwd=(?P&lt;password&gt;[^&amp;\s\&quot;&#39;]+)&quot;<br>| search password=batman<br>| table _time src_ip password</pre><p>This query extracts the password and returns the timestamps and source IP addresses associated with matching POST requests.</p><p>The results show two relevant events.</p><p>Their timestamps allow us to identify the interval between the brute-force attempt and the subsequent compromised login.</p><p><strong>Query 2 — Calculate the duration using transaction:</strong></p><pre>index=botsv1 sourcetype=&quot;stream:http&quot;<br>| rex field=_raw &quot;passwd=(?P&lt;password&gt;[^&amp;\s\&quot;&#39;]+)&quot;<br>| search password=batman<br>| transaction password<br>| eval rounded=round(duration,2)<br>| table rounded password</pre><p>The transaction command groups events containing the same password.</p><p>Then:</p><pre>| eval rounded=round(duration,2)</pre><p>rounds the duration to two decimal places.</p><p><strong>Observed result:</strong></p><pre>92.17</pre><p><strong>Answer:</strong></p><pre>92.17 seconds</pre><p><strong>Important technical consideration:</strong></p><p>Grouping solely by a password can combine unrelated events that share the same value.</p><p>In a production investigation, we should validate the event sequence and use appropriate session, source, user, and time constraints before interpreting the transaction duration as the exact time between password discovery and successful authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w0aIWj6uW8iEr43hb-W3LQ.png" /><figcaption><strong>Figure 22 — Understanding the Transaction Command</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pbjkmWps-hoouvF5sMOzwQ.png" /><figcaption><strong>Figure 23 — Password Events and Transaction Duration</strong></figcaption></figure><h4>Q20 — Calculate the Number of Unique Passwords</h4><p>The next question focuses on determining how many unique passwords were attempted by the identified attacker.</p><p>We can approach this in two different ways.</p><p><strong>Method 1 — Using dedup</strong></p><pre>index=botsv1 sourcetype=&quot;stream:http&quot;<br>src_ip=23.22.63.114 src_content=*pass* http_method=POST<br>| rex field=_raw &quot;passwd=(?P&lt;password&gt;[^&amp;\s\&quot;&#39;]+)&quot;<br>| dedup password<br>| table password</pre><p>The dedup password command removes duplicate password values.</p><p>The resulting events contain only unique passwords.</p><p>We can then count the returned results.</p><p><strong>Observed result:</strong></p><pre>412 events</pre><p><strong>Method 2 — Using statistical aggregation</strong></p><pre>index=botsv1 sourcetype=&quot;stream:http&quot;<br>src_ip=23.22.63.114 src_content=*pass* http_method=POST<br>| rex field=_raw &quot;passwd=(?P&lt;password&gt;[^&amp;\s\&quot;&#39;]+)&quot;<br>| dedup password<br>| stats count by password<br>| stats sum(count) as pass_count</pre><p>Here, we:</p><ol><li>Extract the password.</li><li>Remove duplicates.</li><li>Count the remaining unique password values.</li><li>Sum the counts into a single result.</li></ol><p>This provides an alternative way to calculate the number of unique passwords.</p><p><strong>Answer:</strong></p><pre>412</pre><p>This is a useful example of how dedup and stats can be combined to calculate unique values in Splunk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JRIGD343RCVXWlvEK2zCrA.png" /><figcaption><strong>Figure 24 — Counting Unique Passwords</strong></figcaption></figure><h3>4. Scenario 2 — Cerber Ransomware Investigation</h3><p>The second scenario introduces a different type of incident.</p><p>A Wayne Enterprises user discovers that their files have been encrypted and receives a ransom note demanding payment.</p><p>The displayed ransom message identifies the malware as Cerber ransomware.</p><p>Our objective is to investigate the infected machine, identify the network infrastructure involved, examine the malware-related telemetry, and reconstruct the infection activity.</p><h3>4.1 Investigating the Ransomware Infrastructure</h3><h4>Q21 — Identify the FQDN Used by the Ransomware</h4><p>The ransom note displayed in the lab contains multiple temporary URLs.</p><p>These URLs direct the victim to the attacker’s payment or recovery infrastructure.</p><p>Instead of trying to discover the domain through unrelated network searches, I extracted the information directly from the ransomware message shown in the scenario.</p><p>The first URL contains the following FQDN:</p><pre>cerberhhyed5frqa.xmfir0.win</pre><p><strong>Approach:</strong></p><ol><li>Inspect the ransom note displayed on the infected Windows desktop.</li><li>Identify the temporary URLs provided to the victim.</li><li>Extract the fully qualified domain name from the first URL.</li><li>Separate the hostname from the remaining URL path.</li></ol><p>This demonstrates why visual evidence can be just as important as SIEM telemetry during an investigation.</p><p><strong>Answer:</strong></p><pre>cerberhhyed5frqa.xmfir0.win</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A9BSjM7Y6Ugusx4a1obETg.png" /><figcaption><strong>Figure 25 — Cerber Ransom Note</strong></figcaption></figure><h3>4.2 Investigating the Infected Host</h3><h4>Q22 — Investigate the Source IP Activity</h4><p>We now move to investigating the infected endpoint.</p><p>The host identified in the investigation is:</p><pre>we8105desk</pre><p>We begin by examining the events associated with this host and grouping them by source IP and timestamp.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 host=we8105desk<br>| stats count by SourceIp _time<br>| sort -count</pre><p><strong>Understanding the query:</strong></p><ul><li>host=we8105desk restricts the search to the infected workstation.</li><li>stats count by SourceIp _time groups events by source IP and timestamp.</li><li>sort -count orders the results by event count.</li></ul><p>This provides an initial overview of the activity associated with the infected machine.</p><p>The results identify:</p><pre>192.168.250.100</pre><p>as the workstation IP associated with the investigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Cq0mnyagonp3P8IL8FNFQ.png" /><figcaption><strong>Figure 26 — Host-Related Source IP Statistics</strong></figcaption></figure><h4>Q23 — Identify the Cerber-Related Suricata Signature ID</h4><p>Suricata provides valuable information about network activity associated with the ransomware.</p><p>Our objective is to identify the alert signature associated with Cerber communication.</p><p>We first inspect the alert.signature values and identify the signatures related to Cerber.</p><p>The investigation focuses on:</p><pre>ETPRO TROJAN Ransomware/Cerber Checkin 2</pre><p>The initial analysis showed several Suricata signatures, and we focused on the Cerber-related signature with the lowest occurrence count.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=suricata<br>192.168.250.100<br>alert.signature=&quot;ETPRO TROJAN Ransomware/Cerber Checkin 2&quot;</pre><p>The question asks for the signature identifier rather than the descriptive signature name.</p><p>After opening the returned event and inspecting its fields, we found:</p><pre>alert.signature_id = 2816763</pre><p><strong>Answer:</strong></p><pre>2816763</pre><p><strong>Why is this important?</strong></p><p>Suricata signatures describe network patterns associated with potentially malicious activity.</p><p>A Cerber-related check-in alert can provide evidence of communication between the infected endpoint and ransomware-related infrastructure.</p><p>We should still examine the underlying event, including its timestamp, source IP, destination IP, and protocol, rather than relying only on the alert name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IJW16riPsX5LabPeaGV1GQ.png" /><figcaption><strong>Figure 27 — Cerber Signature Analysis</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*CErhT-KP8nvJiry6FrmSSA.png" /><figcaption><strong>Figure 28 — Extracting the Suricata Signature ID</strong></figcaption></figure><h3>4.3 Investigating Script Execution</h3><h4>Q24 — Identify the Parent Process of the Suspicious Script</h4><p>The next step is to investigate script execution on the infected Windows machine.</p><p>The relevant artifact is:</p><pre>121214.tmp</pre><p>We want to identify the parent process associated with this suspicious activity.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=&#39;xmlwineventlog&#39;<br>vbs 121214.tmp<br>| table ParentProcessId</pre><p>The ParentProcessId field helps us understand which process initiated the suspicious activity.</p><p>Why does this matter?</p><p>Process relationships are important when reconstructing malware execution.</p><p>For example, a script launched by an unexpected process may indicate a suspicious execution chain.</p><p>However, a parent PID alone does not identify the process name. We should correlate it with process creation events and the relevant process identifiers to establish the complete relationship.</p><p><strong>Evidence note:</strong> The uploaded material contains the query but does not include a readable result showing the final ParentProcessId. The value should be taken from the original Splunk output before submitting the answer.</p><h4>Q25 — Analyze the Script Command Line</h4><p>After identifying the suspicious script activity, we need to examine the command line used to execute it.</p><p>Command-line arguments are particularly useful because they may reveal:</p><ul><li>Script filenames.</li><li>Downloaded resources.</li><li>Execution parameters.</li><li>File paths.</li><li>Additional commands executed by the script.</li></ul><p><strong>Splunk Query:</strong></p><pre>index=botsv1 host=we8105desk sourcetype=* wscript vbs<br>| eval command_len=len(CommandLine)<br>| table CommandLine command_len</pre><p><strong>Understanding the query:</strong></p><ul><li>host=we8105desk restricts the search to the infected machine.</li><li>wscript and vbs narrow the search to Windows Script Host-related activity.</li><li>eval command_len=len(CommandLine) calculates the length of each command line.</li><li>table displays the original command and its length.</li></ul><p>Why calculate the command-line length?</p><p>Long command lines can sometimes contain encoded commands, downloaded URLs, or multiple execution arguments.</p><p>The length alone does not establish maliciousness, but it can help identify unusual commands that deserve closer inspection.</p><p><strong>Evidence note:</strong> The uploaded material contains the query but does not preserve the final returned command-line value and its length. The final answer should be copied from the original Splunk result rather than assumed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r8yrKQCPtoPxYVn53TsmSw.png" /><figcaption><strong>Figure 30 — Script Command-Line Analysis</strong></figcaption></figure><h3>4.4 Investigating Network Communication</h3><h4>Q26 — Identify Files and Hostnames Associated with the Infected Host</h4><p>Now we return to Suricata telemetry to examine network activity involving the infected endpoint.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=suricata<br>dest_ip=&quot;192.168.250.100&quot;<br>| dedup src_ip<br>| table fileinfo.filename http.hostname src_ip</pre><p>This query focuses on events where the destination IP is:</p><pre>192.168.250.100</pre><p>We then remove duplicate source IP values and display:</p><ul><li>fileinfo.filename: The filename associated with the network event.</li><li>http.hostname: The HTTP hostname involved in the communication.</li><li>src_ip: The source IP address.</li></ul><p>These fields help us correlate transferred files with the network destinations involved in the infection.</p><p>The results include file and hostname information associated with the infected endpoint.</p><p>One important consideration: dedup src_ip retains only one event per source IP. If multiple files or hostnames are associated with the same source, this operation may hide some of the relationships.</p><p>For a more complete investigation, we should also inspect the original events before deduplication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYpWKHGzbOe_B1rxZiYvtw.png" /><figcaption><strong>Figure 31 — Suricata File and Hostname Information</strong></figcaption></figure><h4>Q27 — Distinguish Extension Spoofing from Steganography</h4><p>This question introduces an important malware obfuscation concept.</p><p>The scenario provides a file with a .jpg extension that actually contains malicious content.</p><p>At first glance, this may appear to be extension spoofing. However, we need to understand the difference between the two techniques.</p><p>Before finalizing the answer, I researched the difference between:</p><pre>Extension Spoofing<br>Steganography</pre><p>The important distinction is the way the malicious content is concealed and delivered.</p><p><strong>Extension Spoofing</strong></p><p>Extension spoofing occurs when an attacker gives a file an extension that does not represent its actual file type.</p><p>For example:</p><pre>malicious.exe</pre><p>might be renamed to:</p><pre>photo.jpg</pre><p>The objective is to mislead the user or security controls about the actual nature of the file.</p><p>In a typical extension-spoofing scenario, the file may still be executable when launched directly, depending on its actual format and the execution mechanism.</p><p><strong>Steganography</strong></p><p>Steganography is the technique of hiding information inside another seemingly ordinary file.</p><p>For example, malicious code or data may be concealed within an image.</p><p>The image can appear normal, while a separate script or program extracts the hidden content.</p><p><strong>How this relates to the scenario</strong></p><p>The lab describes a multi-stage process:</p><ol><li>A malicious script, wscript.exe, downloads a file named mhtr.jpg.</li><li>The script reads the downloaded file.</li><li>It extracts the hidden malicious code inside it.</li><li>The script converts that data into an actual executable, such as an .exe or .tmp file.</li><li>The resulting payload is executed.</li></ol><p>This is why simply examining the file extension is not sufficient to determine its true contents.</p><p>The file is not intended to be executed by double-clicking it as an ordinary image. Instead, the malicious script extracts the hidden content and converts it into an executable payload.</p><p><strong>Answer:</strong></p><pre>Steganography</pre><p>The important distinction is that the attacker is hiding malicious data inside an apparently normal image file, rather than simply renaming an executable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s3Jh00NrvWy_SfNU7inxHw.png" /><figcaption><strong>Figure 32 — Extension Spoofing vs. Steganography</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*6k6l7fjVyIkTv_Gff96yRQ.png" /><figcaption><strong>Figure 33 — Detailed Research Explanation</strong></figcaption></figure><h3>4.5 Investigating USB Device Activity</h3><h4>Q28 — Identify the USB Device Inserted by a Specific User</h4><p>The next question focuses on identifying USB-related artifacts associated with a specific user.</p><p>Before writing the Splunk query, I researched how to identify the name of a USB device inserted by a specific user.</p><p><strong>Research query:</strong></p><pre>How to know the name of a USB inserted by a specific user in Splunk?</pre><p>This led me to examine the different Windows data sources that can provide evidence of removable device activity.</p><p>Depending on the Windows Event Forwarding or Splunk Universal Forwarder configuration, useful sources include:</p><p><strong>1. Windows Security Logs / Process Creation</strong></p><p>Event ID 4688 can provide information about process creation and may help identify the process associated with a device-related action.</p><p><strong>2. Microsoft-Windows-Partition/Diagnostic and Kernel-PnP Logs</strong></p><p>These logs can contain events related to device connection and driver activity.</p><p>Examples of relevant Event IDs include:</p><ul><li>2003</li><li>2102</li><li>1003</li></ul><p>The availability and meaning of these events depend on the logging configuration.</p><p><strong>3. Windows Registry and WMI Logs</strong></p><p>The Registry can contain useful artifacts related to connected USB devices.</p><p>Some important Registry locations include:</p><p><strong>USBSTOR</strong></p><pre>HKLM\SYSTEM\CurrentControlSet\Enum\USBSTOR\</pre><p><strong>Portable Devices</strong></p><pre>HKLM\SOFTWARE\Microsoft\Windows Portable Devices\Devices\</pre><p><strong>EMDMgmt</strong></p><p>This Registry location can contain information associated with removable storage device management.</p><p>The FriendlyName or related Registry data can help identify the device name.</p><p>After understanding these sources, I searched the Registry telemetry in Splunk.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=WinRegistry<br>(<br>  &quot;HKLM\\SYSTEM\\CurrentControlSet\\Enum\\USBSTOR\\&quot;<br>  OR &quot;HKLM\\SOFTWARE\\Microsoft\\Windows Portable Devices\\Devices\\&quot;<br>  OR &quot;EMDMgmt&quot;<br>)<br>| stats count, values(data) as usb_data by host, _time, user<br>| sort -_time</pre><p><strong>Understanding the query:</strong></p><ul><li>sourcetype=WinRegistry selects Registry-related events.</li><li>The search conditions identify common USB-related Registry locations.</li><li>values(data) collects the available Registry data values.</li><li>by host, _time, user groups the results by endpoint, timestamp, and user.</li><li>sort -_time displays the newest events first.</li></ul><p>The returned result identifies the device information associated with the relevant user.</p><p><strong>Finding:</strong></p><pre>MIRANDA_PRI</pre><p><strong>Important investigation consideration:</strong></p><p>Registry artifacts can identify devices and provide historical evidence of their presence, but they do not automatically prove which user physically inserted a device.</p><p>User attribution requires correlating the Registry evidence with available device connection events, logon sessions, and other relevant Windows telemetry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*K8_nXc31iLGl64oGl9fYfg.png" /><figcaption><strong>Figure 34 — Researching USB-Related Windows Data Sources</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q7Ee4g10pSkMuD4BeGtNhQ.png" /><figcaption><strong>Figure 35 — USB Device Identification in Splunk</strong></figcaption></figure><h3>4.6 Investigating the Remote File Server</h3><h4>Q29 — Identify the File Server IP Address</h4><p>We now focus on the network activity associated with the infected machine.</p><p>Bob Smith’s workstation was communicating with other systems during the ransomware incident.</p><p>Our objective is to identify the remote server involved in the activity.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=suricata<br>we8105desk src_ip=&quot;192.168.250.100&quot;</pre><p>This query focuses on Suricata events associated with the infected workstation.</p><p>By examining the destination addresses and correlating the network activity with the relevant events, we can identify the remote server involved.</p><p>One of the returned events contains:</p><pre>src_ip: 192.168.250.100<br>dest_ip: 192.168.250.20<br>dest_port: 53</pre><p>The destination IP is:</p><pre>192.168.250.20</pre><p>This is the remote server identified during the investigation.</p><p>It is important to distinguish between:</p><ul><li>192.168.250.100: The infected workstation.</li><li>192.168.250.20: The remote server.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n1DIdOfvh1V2li1YrZZvlg.png" /><figcaption><strong>Figure 36 — Investigating Network Connections to the Remote Server</strong></figcaption></figure><h3>4.7 Investigating File Access and User Activity</h3><h4>Q30 — Count the Unique PDF Files Associated with Bob Smith</h4><p>The next question focuses on file-related activity associated with a specific user.</p><p>We are interested in PDF files associated with:</p><pre>bob.smith</pre><p>on the host:</p><pre>we9041srv</pre><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=wineventlog host=we9041srv<br>Relative_Target_Name=&quot;*.pdf&quot; user=&quot;bob.smith&quot;<br>| dedup Relative_Target_Name<br>| stats count by Relative_Target_Name<br>| stats sum(count) as count</pre><p><strong>Understanding the query:</strong></p><ul><li>host=we9041srv restricts the search to the relevant server.</li><li>user=&quot;bob.smith&quot; identifies the associated user.</li><li>Relative_Target_Name=&quot;*.pdf&quot; searches for PDF-related file activity.</li><li>dedup Relative_Target_Name removes duplicate file paths.</li><li>stats count by Relative_Target_Name counts the remaining records for each path.</li><li>stats sum(count) calculates the total number of unique paths returned.</li></ul><p>This approach is useful when we want to determine the number of distinct files matching a particular condition rather than counting every repeated event.</p><p><strong>Observed result:</strong></p><pre>257</pre><p><strong>Answer:</strong></p><pre>257</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/1*bFL87LNkzqhz-01dyKFiPA.png" /><figcaption><strong>Figure 37 — Counting PDF Files on the Remote Server</strong></figcaption></figure><h4>Q31 — Understand Distinct Count in Splunk and Count TXT Files</h4><p>In this question, we use another important Splunk statistical function:</p><pre>dc()</pre><p>The dc() function stands for <strong>Distinct Count</strong>.</p><p>Before using it, I researched its purpose and how it differs from the normal count() function.</p><p><strong>Research query:</strong></p><pre>What is stats dc() in Splunk?</pre><p>The research explained that:</p><ul><li>count() returns the total number of occurrences.</li><li>dc() returns the number of unique values.</li></ul><p>For example, if the same filename appears in ten different events:</p><ul><li>count() may return 10.</li><li>dc() returns 1 because there is only one distinct filename.</li></ul><p>This is particularly useful when investigating file activity because the same file may generate multiple events.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=XmlWinEventLog<br>TargetFilename=&quot;C:\\Users\\bob.smith.WAYNECORPINC\\*.txt&quot;<br>| stats dc(TargetFilename)</pre><p>Here, we search Windows Event Log telemetry for text files located in the user’s directory.</p><p>Then:</p><pre>| stats dc(TargetFilename)</pre><p>calculates the number of unique target filenames.</p><p>The purpose is to determine how many distinct TXT files are represented in the matching events.</p><p><strong>Evidence note:</strong> The uploaded material includes the research explanation and the query, but does not preserve the final numeric result of this search. The value should be copied from the original Splunk output before submitting the answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*o5g-tdZUrlCmCuQ8VYjXZg.png" /><figcaption><strong>Figure 38 — Understanding the dc() Function</strong></figcaption></figure><h3>4.8 Investigating DNS Activity</h3><h4>Q32 — Identify Suspicious DNS Queries</h4><p>DNS analysis is an important part of malware investigations because compromised systems frequently communicate with external domains.</p><p>These queries may reveal:</p><ul><li>Command and Control infrastructure.</li><li>Malware-related domains.</li><li>Suspicious external services.</li><li>Infrastructure used during different stages of an attack.</li></ul><p>In this question, we investigate DNS events generated by the infected machine.</p><p><strong>Splunk Query:</strong></p><pre>index=botsv1 sourcetype=stream:dns<br>src_ip=&quot;192.168.250.100&quot;<br>NOT (query{}=*arpa OR query{}=*wayn*)<br>| dedup query{}<br>| table _time dest_ip query{}<br>| sort _time</pre><p><strong>Understanding the query:</strong></p><ul><li>sourcetype=stream:dns selects DNS traffic.</li><li>src_ip=&quot;192.168.250.100&quot; focuses on the infected endpoint.</li><li>NOT excludes DNS queries matching the specified patterns.</li><li>dedup query{} removes duplicate query values.</li><li>table displays the timestamp, destination IP, and queried domain.</li><li>sort _time organizes the results chronologically.</li></ul><p>Why exclude these domains?</p><p>The purpose is to remove certain expected or irrelevant DNS queries so that the remaining results are easier to investigate.</p><p>The important step is to examine the remaining domains and determine whether they are associated with suspicious external infrastructure.</p><p>DNS queries should not be classified as malicious based solely on their appearance. They need to be correlated with threat intelligence, endpoint activity, and the surrounding network events.</p><p>After examining the results chronologically, the suspicious domain highlighted in the investigation was:</p><pre>solidaritedeproximite.org</pre><p>This domain is associated with the ransomware-related network activity and the earlier investigation of the downloaded file mhtr.jpg.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKQc7Ecarz8X8ldIOOQbzQ.png" /><figcaption><strong>Figure 40 — DNS Investigation Results</strong></figcaption></figure><h3>5. Investigation Summary</h3><p>This challenge demonstrates how multiple data sources can be combined to reconstruct different stages of an attack.</p><p>Rather than investigating each event independently, we used relationships between network traffic, endpoint telemetry, and external threat intelligence to build a broader picture.</p><h3>5.1 Scenario 1 — APT Investigation</h3><p>The first scenario focused on a suspected compromise of Wayne Enterprises’ website.</p><p>The investigation involved:</p><ul><li>Identifying Joomla as the website’s Content Management System.</li><li>Examining suspicious HTTP requests originating from 40.80.148.42.</li><li>Identifying Acunetix Web Vulnerability Scanner artifacts.</li><li>Investigating password-related POST requests.</li><li>Identifying the attacker IP 23.22.63.114.</li><li>Identifying the first password attempt, 12345678.</li><li>Identifying batman as the relevant administrative password.</li><li>Investigating the executable 3791.exe.</li><li>Extracting its MD5 and SHA256 hashes.</li><li>Investigating the website defacement image.</li><li>Identifying the associated external hostname and destination IP.</li><li>Performing OSINT using attacker-related identifiers.</li><li>Using VirusTotal Relations to discover associated malware samples.</li><li>Investigating hexadecimal information in VirusTotal Community.</li><li>Attempting to retrieve historical WHOIS information.</li><li>Performing additional statistical analysis on password attempts.</li></ul><p>The investigation demonstrates the importance of combining web traffic analysis with external threat intelligence.</p><h3>5.2 Scenario 2 — Cerber Ransomware Investigation</h3><p>The second scenario focused on a ransomware infection involving a Windows endpoint.</p><p>The investigation involved:</p><ul><li>Extracting the ransomware-related FQDN from the ransom note.</li><li>Investigating activity associated with we8105desk.</li><li>Identifying Cerber-related Suricata alerts.</li><li>Examining Windows script execution.</li><li>Investigating parent process information.</li><li>Analyzing command-line activity.</li><li>Examining file transfers and network hostnames.</li><li>Understanding the use of steganography.</li><li>Investigating USB-related Registry artifacts.</li><li>Identifying the remote server.</li><li>Examining file activity associated with user accounts.</li><li>Analyzing DNS queries generated by the infected endpoint.</li></ul><p>Together, these steps demonstrate how network telemetry and endpoint artifacts can be combined to investigate a ransomware incident.</p><h3>6. Final Thoughts</h3><p>The Boss of the SOC v1 challenge is a valuable exercise because it requires more than basic Splunk searching.</p><p>It encourages analysts to think across different data sources, connect network and endpoint activity, use external threat intelligence, and reconstruct attack scenarios from individual pieces of evidence.</p><p>One of the most important lessons I took from this lab is that <strong>effective threat hunting is about asking the right questions and connecting the evidence, not simply writing complex queries.</strong></p><p>During this challenge, I also learned that some questions require external research, while others require understanding the underlying behavior of Windows, HTTP, DNS, and malware.</p><p>Every query should have a purpose, every finding should be supported by evidence, and every conclusion should be evaluated in the context of the entire investigation.</p><p>This is the mindset that turns log analysis into meaningful security investigation.</p><h3>7. Tools and Resources</h3><p><strong>Primary Investigation Tool</strong></p><ul><li>Splunk</li></ul><p><strong>Threat Intelligence and OSINT</strong></p><ul><li>VirusTotal: <a href="https://www.virustotal.com/">https://www.virustotal.com/</a></li><li>AlienVault Open Threat Exchange: <a href="https://otx.alienvault.com/">https://otx.alienvault.com/</a></li><li>WHOXY: <a href="https://www.whoxy.com/">https://www.whoxy.com/</a></li><li>Google Search: <a href="https://www.google.com/">https://www.google.com/</a></li></ul><p><strong>Lab</strong></p><ul><li>CyberDefenders — Boss of the SOC v1</li></ul><p><strong>Author:</strong> Youssef Ammar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=028fda94953f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DumpMe — CyberDefenders Challenge Walkthrough: Windows Memory Forensics with Volatility 2]]></title>
            <link>https://medium.com/@youssefmohamed01p/dumpme-a-windows-memory-forensics-investigation-with-volatility-2-9b423906366d?source=rss-82b813156258------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b423906366d</guid>
            <dc:creator><![CDATA[Youssefmohamedp]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 12:10:04 GMT</pubDate>
            <atom:updated>2026-11-13T11:36:22.053Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A practical walkthrough of the CyberDefenders DumpMe challenge, covering process investigation, network analysis, memory injection detection, and artifact extraction using Volatility 2.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*S5oed9VzF6BGfYSwFjSGWg.png" /></figure><p><strong>Platform:</strong> CyberDefenders<br><strong>Category:</strong> Endpoint Forensics<br><strong>Tactics:</strong> Execution, Stealth, Command and Control<br><strong>Tools:</strong> Volatility 2, PowerShell, sha1sum, md5sum, VS Code</p><p><strong>Challenge:</strong> <a href="https://cyberdefenders.org/blueteam-ctf-challenges/dumpme/">CyberDefenders — DumpMe</a></p><h3>Introduction</h3><p>Memory forensics is one of the most valuable techniques in digital forensics and incident response (DFIR). Unlike disk forensics, which focuses on data stored on a device, memory forensics allows us to investigate what was happening inside a system while it was running.</p><p>A memory dump can preserve valuable evidence, including running processes, network connections, loaded DLLs, command-line arguments, injected code, and other artifacts that may no longer exist on the system after an incident.</p><p>In this walkthrough, we will solve the <strong>DumpMe challenge on CyberDefenders</strong>, which focuses on analyzing a Windows memory dump using <strong>Volatility 2</strong> to identify Meterpreter-related activity and extract indicators of compromise (IOCs).</p><p>Rather than simply listing the answers, we will follow the investigation step by step. For each question, we will understand what evidence we need, which Volatility plugin can help us find it, and how to interpret the output.</p><p>Let’s get started.</p><h3>Preparing the Investigation</h3><p>Before analyzing the memory dump, we need to extract the challenge files and identify the memory image we will investigate.</p><p>The main file used throughout this walkthrough is:</p><p>Triage-Memory.mem</p><p>We will use Volatility 2 to examine this file. Since Volatility 2 is an older version of the framework, make sure your environment is configured to run it with a compatible Python 2.7 interpreter.</p><p>One important point: the commands below use the paths from my own environment. You should replace them with the actual paths on your machine.</p><h3>Q1 — Calculate the SHA1 Hash of the Memory Dump</h3><p>The first question asks us to calculate the SHA1 hash of the provided memory dump.</p><p>A cryptographic hash provides a unique fingerprint of a file. It is useful in forensic investigations because it helps us verify file integrity and identify whether two files have identical contents.</p><p>We can calculate the hash using either PowerShell or Linux.</p><p><strong>On Windows PowerShell:</strong></p><pre>Get-FileHash .\Triage-Memory.mem -Algorithm SHA1</pre><p><strong>On Linux:</strong></p><pre>sha1sum Triage-Memory.mem</pre><p>Both commands calculate the SHA1 hash of the memory dump.</p><p><strong>Answer:</strong> Use the SHA1 value returned by your command. The exact hash value is not included in the supplied notes, so it should be copied from your own output.</p><h3>Q2 — Identify the Appropriate Volatility Profile</h3><p>The next question asks us to identify the appropriate Volatility profile for the memory dump.</p><h4>What is a Volatility profile?</h4><p>Volatility 2 uses profiles to understand the internal structures of the operating system represented in a memory image.</p><p>Different Windows versions and builds may organize kernel structures differently. Volatility needs the correct profile to interpret those structures accurately.</p><p>We can use the imageinfo plugin to identify possible profiles.</p><h4>Step 1 — Run the imageinfo plugin</h4><p>First, navigate to the directory containing the vol.py script and open a terminal there.</p><p>Then run:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; imageinfo</pre><p>Let’s break down the command:</p><ul><li>py -2.7: Runs Volatility using Python 2.7.</li><li>vol.py: The Volatility 2 framework script.</li><li>-f: Specifies the memory dump file.</li><li>imageinfo: Analyzes the memory image and suggests possible profiles.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_sBkmfwLGf9zEapOYxwnw.png" /><figcaption><strong>Figure 1 — Running imageinfo and identifying the command components</strong></figcaption></figure><h4>Step 2 — Examine the suggested profiles</h4><p>After running the command, look for the Suggested Profile(s) section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7nRdc156TJAXhkpXFXNgFw.png" /><figcaption><strong>Figure 2 — imageinfo output showing the suggested profiles</strong></figcaption></figure><p>Volatility may suggest multiple profiles. We should test the suggested profiles one by one using the --profile argument until we find one that works correctly with the memory image.</p><p>In this challenge, the first suggested profile worked:</p><p>Win7SP1x64</p><p>Our base command will therefore be:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64</pre><p>We will reuse this command throughout the investigation, adding the required plugin and its arguments for each question.</p><p><strong>Answer:</strong> Win7SP1x64</p><h3>Q3 — Identify the PID of the Notepad Process</h3><p>The third question asks for the Process ID (PID) of the Notepad process.</p><p>A PID is a unique identifier assigned to a process while it is running. In memory forensics, identifying the PID is often an important first step because several plugins require it to investigate a specific process.</p><p>We can use the pslist plugin to list the processes found in the memory image.</p><p>Run:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64 pslist</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MlKu-CB1E1s6iEuQ3fmLcA.png" /><figcaption><strong>Figure 3 — pslist output highlighting the Notepad process and its PID</strong></figcaption></figure><p>Look for the notepad.exe entry and read its PID from the PID column.</p><p>In this memory image, the Notepad process has PID:</p><p><strong>Answer:</strong> 3032</p><p>Keep this PID in mind because we will need it again when investigating the contents of Notepad in Q14.</p><h3>Q4 — Identify the Child Process of wscript.exe</h3><p>This question asks us to identify the child process associated with wscript.exe.</p><p>Before solving it, let’s clarify the relationship between processes.</p><p>Every process can have a parent process, identified by its Parent Process ID (PPID). A process created by another process is considered its child.</p><p>For example, if a process has PID 1000 and another process has PPID 1000, the second process is a child of the first.</p><p>We can identify this relationship using the pslist plugin again:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64 pslist</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*34ImCeowTPUA-QqxxWEMHA.png" /><figcaption><strong>Figure 4 — Identifying wscript.exe and its child process</strong></figcaption></figure><p>To find the answer:</p><ol><li>Locate wscript.exe in the process list.</li><li>Read its PID from the PID column.</li><li>Search for that PID in the PPID column.</li><li>Identify the process whose PPID matches the PID of wscript.exe.</li></ol><p>In our case, wscript.exe has PID 5116.</p><p>The process with PPID 5116 is:</p><p><strong>Answer:</strong> UWkpjFjDzM.exe</p><p>This relationship is particularly interesting because Windows Script Host is commonly used to execute VBScript files. A script launching an unusual executable can be an important clue during malware investigations.</p><p>However, a parent-child relationship alone does not prove malicious activity. We need to correlate it with other evidence, which we will do in the following questions.</p><h3>Q5 — Identify the IP Address of the Infected Machine</h3><p>Now we move to network analysis.</p><p>The question asks for the IP address of the machine from which the memory dump was collected.</p><p>Memory images can preserve network-related structures, allowing us to identify local addresses, remote endpoints, listening ports, and connection states.</p><p>Volatility 2 provides several network-related plugins, including:</p><ul><li>conscan</li><li>connections</li><li>netstat</li><li>netscan</li></ul><p>The available plugins depend on the operating system and profile.</p><h4>Step 1 — Check the available plugins</h4><p>We can inspect the available plugins for our selected profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*daAM3WY40bH-WXp180jf2w.png" /><figcaption><strong>Figure 5 — Checking the available Volatility plugins and identifying netscan</strong></figcaption></figure><p>In our case, netscan is available, so we will use it.</p><h4>Step 2 — Run netscan</h4><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64 netscan</pre><p>The output contains several columns, but the most useful ones for this question are:</p><ul><li><strong>Local Address:</strong> The local endpoint associated with the connection.</li><li><strong>Foreign Address:</strong> The remote endpoint.</li><li><strong>State:</strong> The connection state, where available.</li><li><strong>PID:</strong> The process associated with the network activity.</li><li><strong>Owner:</strong> The process name.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gmNlYXylQxAxwT_y-UdtKQ.png" /><figcaption><strong>Figure 6 — netscan output showing the local addresses</strong></figcaption></figure><p>Step 3 — Identify the correct local IP</p><p>At first glance, the output may look overwhelming because it contains many addresses.</p><p>The key is to distinguish the machine’s actual network address from loopback and other special-purpose addresses.</p><p>In our output, we encounter:</p><ul><li>10.0.0.101: A plausible IPv4 address assigned to the machine.</li><li>::1: The IPv6 loopback address.</li><li>fe80::7475:ef30:be18:7807: An IPv6 link-local address.</li><li>127.0.0.1: The IPv4 loopback address.</li></ul><p>Loopback addresses refer to the local machine itself and are not the machine’s external network address. An address beginning with fe80:: is an IPv6 link-local address, not an IPv4 address.</p><p>Since the challenge is asking for the machine’s IPv4 address, the relevant value is:</p><p><strong>Answer:</strong> 10.0.0.101</p><h3>Q6 — Identify the Attacker’s IP Address</h3><p>Now that we know the local machine’s IP address, we need to identify the attacker’s IP.</p><p>A useful way to approach this question is to first identify the suspicious process and then correlate it with the network connections.</p><p>There are multiple ways to identify a potentially compromised process. A good investigation should combine different sources of evidence rather than rely on a single indicator.</p><p>For this challenge, we will use the malfind plugin.</p><h4>Step 1 — Investigate suspicious memory regions with malfind</h4><p>The malfind plugin searches process memory for potentially injected code and suspicious memory regions.</p><p>Run:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64 malfind</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rUu8T7NCUtxhhe_kc0aNFQ.png" /><figcaption><strong>Figure 7 — malfind output identifying a suspicious process</strong></figcaption></figure><p>The output identifies:</p><p>UWkpjFjDzM.exe</p><p>with PID:</p><p>3496</p><p>The output also shows a memory region with executable and writable permissions:</p><p>PAGE_EXECUTE_READWRITE</p><p>It contains bytes beginning with MZ, a common signature associated with Windows executable files.</p><p>These observations make the memory region suspicious and provide a reason to investigate the process further.</p><p>However, it is important to remember that malfind identifies potentially suspicious memory regions; its output should be interpreted alongside other evidence.</p><h4>Step 2 — Correlate the process with network connections</h4><p>We already used netscan in Q5, so we can examine its output again.</p><p>This time, instead of focusing on the Local Address column, we will look for connections associated with PID 3496 and examine the Foreign Address column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sXL2LbpTGOhp7dOD7U9-vg.png" /><figcaption><strong>Figure 8 — Correlating the suspicious process with its network connection</strong></figcaption></figure><p>The output shows a connection from the suspicious process to:</p><p>10.0.0.106:4444</p><p>The remote IP address is therefore:</p><p><strong>Answer:</strong> 10.0.0.106</p><h4>Why is port 4444 interesting?</h4><p>Port 4444 is commonly associated with Metasploit payloads and reverse-shell activity.</p><p>This makes the connection worth investigating, especially when correlated with the suspicious memory region identified by malfind.</p><p>However, port 4444 is not exclusive to Metasploit. The port number alone cannot prove that the connection is a Meterpreter session.</p><p>The stronger conclusion comes from combining the suspicious process, the injected executable memory region, the established network connection, and the challenge context.</p><h3>Q7 — Count the Unique Processes Loading VCRUNTIME140.dll</h3><p>This question asks how many unique processes are using a library named:</p><p>VCRUNTIME140.dll</p><p>To answer it, we need to understand what DLLs are and how Windows processes use them.</p><p>A Dynamic Link Library (DLL) is a file that contains code and resources that can be loaded and used by multiple programs.</p><p>Instead of every application implementing the same functionality independently, applications can load shared libraries when they need them.</p><p>The dlllist plugin allows us to inspect the DLLs loaded by processes.</p><h4>Step 1 — Extract the DLL information</h4><p>Run:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64 dlllist &gt; dlllist.txt</pre><p>Notice the following part:</p><p>&gt; dlllist.txt</p><p>This redirects the command output into a text file instead of displaying the entire result in the terminal.</p><p>This is useful because the output can be large, and searching through it using an editor is often easier.</p><h4>Step 2 — Search for the DLL</h4><p>Open dlllist.txt using your preferred text editor. In my case, I used Visual Studio Code.</p><p>Search for:</p><p>VCRUNTIME140.dll</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TOcjWTMh76TOXEwk4M_2Lw.png" /><figcaption><strong>Figure 9 — Searching dlllist output for VCRUNTIME140.dll</strong></figcaption></figure><p>The search returns five matches.</p><p>But there is one important detail: the question asks for the number of <strong>unique processes</strong>, not simply the number of matching lines.</p><p>A process may have multiple entries or references, so we must verify the PID associated with each match and make sure we are not counting the same process more than once.</p><p>In this case, all five matches belong to different processes.</p><p><strong>Answer:</strong> 5</p><h3>Q8 — Extract the Infected Process and Calculate Its MD5 Hash</h3><p>In the previous questions, we identified the suspicious process:</p><ul><li>Process name: UWkpjFjDzM.exe</li><li>PID: 3496</li></ul><p>Now we need to extract this process from the memory dump and calculate its MD5 hash.</p><p>This is useful because the extracted executable can be identified, compared with known samples, or examined in a separate malware-analysis workflow.</p><h4>Step 1 — Dump the process</h4><p>We can use Volatility’s procdump plugin:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64 procdump -p 3496 -D dump</pre><p>Let’s understand the arguments:</p><ul><li>procdump: Extracts a process executable from memory.</li><li>-p 3496: Specifies the PID of the process we want to extract.</li><li>-D dump: Specifies the output directory.</li></ul><p>After running the command, Volatility should create an extracted process file in the dump directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWY4wl5ZD_ki4iRplTIWhg.png" /><figcaption><strong>Figure 10 — Extracted process file</strong></figcaption></figure><p>Step 2 — Calculate the MD5 hash</p><p>On Windows, use:</p><pre>Get-FileHash .\extracted-file.exe -Algorithm MD5</pre><p>On Linux, use:</p><pre>md5sum extracted-file.exe</pre><p>Replace extracted-file.exe with the actual filename created by Volatility.</p><p>The resulting MD5 value can be used as an indicator to search for or compare against known samples.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AtNqrGDJPaHvHVHTV90ndg.png" /><figcaption><strong>Figure 11 — Calculating the MD5 hash of the extracted process</strong></figcaption></figure><p><strong>Answer:</strong> Use the MD5 value returned by your command. The exact value is not included in the supplied text.</p><h3>Q9 — Identify Bob’s LM Password Hash</h3><p>This question asks us to identify the LM password hash associated with the Windows account named Bob.</p><p>Windows stores account password hashes in its security-related structures. When the relevant information is available in the memory image, Volatility can extract it using the hashdump plugin.</p><p>Run:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64 hashdump</pre><p>The plugin attempts to extract the LM and NTLM hashes for local Windows accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6GbUsxqXtMLOLgXf0m75VA.png" /><figcaption><strong>Figure 12 — hashdump output showing the account hashes</strong></figcaption></figure><p>Locate the account named Bob and examine the LM hash field.</p><p>The value recorded in the supplied notes is:</p><pre>aad3b435b51404eeaad3b435b51404ee</pre><p><strong>Answer:</strong> aad3b435b51404eeaad3b435b51404ee</p><h4>Important note about this hash</h4><p>There is an important detail worth understanding here.</p><p>aad3b435b51404eeaad3b435b51404ee is the well-known <strong>empty LM hash</strong> value. It does not represent a normal recovered password hash that can be assumed to reveal Bob&#39;s actual password.</p><p>Therefore, we should not claim that cracking this value will necessarily recover Bob’s password.</p><p>When interpreting password-hash artifacts, always distinguish between an actual password-derived hash and a known placeholder or empty-hash value.</p><h3>Q10 — Identify the Protection of a Specific VAD Node</h3><p>This question introduces an important concept in Windows memory management: the <strong>Virtual Address Descriptor (VAD)</strong>.</p><p>Before solving it, let’s understand what a VAD represents and why it matters during memory forensics.</p><h4>What is a Virtual Address Space?</h4><p>Windows allows multiple processes to run simultaneously. Each process has its own virtual address space, which contains the memory regions used by that process.</p><p>For example, Chrome, Notepad, and PowerPoint each have their own virtual memory areas.</p><p>These memory regions can serve different purposes and have different access permissions.</p><h4>What is a VAD?</h4><p>VAD stands for <strong>Virtual Address Descriptor</strong>.</p><p>Windows uses VAD data structures to keep track of regions in a process’s virtual memory.</p><p>A VAD describes a particular memory region and stores information such as:</p><ul><li>The region’s starting address.</li><li>The region’s ending address.</li><li>The memory protection associated with the region.</li></ul><p>Think of a VAD as a record describing a specific memory region.</p><p>For example, a VAD might describe a region beginning at 0x100000, ending at 0x10FFFF, and having PAGE_READONLY protection.</p><p>These values are illustrative, not findings from the challenge.</p><p>One important distinction: the address 0xfffffa800577ba10 in the question identifies the VAD node itself in kernel memory. It is not necessarily the starting address of the memory region described by that node.</p><p>Our task is to locate that specific VAD node and inspect its protection information.</p><h4>Understanding memory protection constants</h4><p>Memory protection constants define which operations are allowed on a memory region.</p><p>Some common examples are:</p><ul><li>PAGE_NOACCESS: No access is permitted.</li><li>PAGE_READONLY: Reading is permitted, but writing is not.</li><li>PAGE_READWRITE: Reading and writing are permitted.</li><li>PAGE_EXECUTE: Executing code is permitted.</li><li>PAGE_EXECUTE_READ: Reading and executing are permitted.</li><li>PAGE_EXECUTE_READWRITE: Reading, writing, and executing are permitted.</li></ul><p>These permissions describe how memory can be accessed. They do not, by themselves, prove that a memory region is malicious.</p><h4>Step 1 — Extract VAD information</h4><p>We can use the vadinfo plugin in Volatility 2:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64 vadinfo &gt; vadinfo.txt</pre><p>The command saves the VAD information in vadinfo.txt, making it easier to search through the output.</p><h4>Step 2 — Find the specified VAD node</h4><p>Open the output file and search for the address provided in the question:</p><p>0xfffffa800577ba10</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7S2rM2VM8mPTfadCQRfutQ.png" /><figcaption><strong>Figure 13 — Locating the requested VAD node</strong></figcaption></figure><p>The output shows:</p><p>Protection: PAGE_READONLY</p><p><strong>Answer:</strong> PAGE_READONLY</p><h3>Q11 — Identify the Protection of a Specific Memory Region</h3><p>This question is similar to Q10, but instead of providing a VAD node address, it asks us to identify the protection associated with a specific memory region using its starting and ending addresses.</p><p>We can use the same vadinfo output generated in the previous question.</p><p>Search for the exact start and end addresses provided in the challenge question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b8ulF0oB99oc5ooPvFjftw.png" /><figcaption><strong>Figure 14 — Finding the memory region by its start and end addresses</strong></figcaption></figure><p>The corresponding protection value is:</p><p>PAGE_NOACCESS</p><p><strong>Answer:</strong> PAGE_NOACCESS</p><p>The important lesson here is that we do not need to run a completely different plugin for every memory-protection question. Once we understand the information provided by vadinfo, we can reuse its output and search for the specific VAD or memory region requested.</p><h3>Q12 — Identify the Executed VBScript File</h3><p>A VBS file is a VBScript script file. It can contain instructions executed by the Windows Script Host.</p><p>Windows commonly uses wscript.exe to execute these scripts.</p><p>It is important to distinguish between:</p><ul><li>wscript.exe: The program responsible for running the script.</li><li>The .vbs file: The script being executed.</li></ul><p>The question asks for the script’s name, not the executable’s name.</p><h4>Use the cmdline plugin</h4><p>Volatility’s cmdline plugin displays command-line arguments associated with processes recovered from memory.</p><p>These arguments can reveal which script or file a process was instructed to execute.</p><p>Run:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64 cmdline &gt; cmdline.txt</pre><p>Then search the output for references to .vbs or for the wscript.exe process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*frfAjURROfxOjxsL0T3PFw.png" /><figcaption><strong>Figure 15 — Searching command-line arguments for the VBScript file</strong></figcaption></figure><p>The supplied notes explain the investigation method, but they do not include the resulting script filename.</p><p><strong>Answer:</strong> The exact filename needs to be copied from the corresponding cmdline output.</p><h3>Q13 — Identify the Application Associated with a Specific Timestamp</h3><p>This question asks us to identify a program associated with the following timestamp:</p><p>2019-03-07 23:06:58</p><p>The application might not have been running when the memory dump was captured.</p><p>That means we should not rely only on plugins that list currently active processes.</p><h4>What is Shimcache?</h4><p>Windows maintains a compatibility-related data structure called the <strong>Application Compatibility Cache</strong>, commonly known as Shimcache or AppCompatCache.</p><p>It contains information about application executables that Windows has encountered.</p><p>The Volatility shimcache plugin parses this information and can display recorded application paths and timestamps.</p><p>For this challenge, we can search the output for the timestamp provided in the question.</p><h4>Run the shimcache plugin</h4><p>In PowerShell:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64 shimcache | findstr &quot;2019-03-07 23:06:58&quot;</pre><p>On Linux, you can use grep instead of findstr.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x73U6vF-06LeuSOOpfNVyQ.png" /><figcaption><strong>Figure 16 — Searching Shimcache for the specified timestamp</strong></figcaption></figure><p>The supplied notes do not include the application name shown in the output.</p><p><strong>Answer:</strong> Copy the application associated with 2019-03-07 23:06:58 from the actual Shimcache result.</p><p><strong>Forensic note:</strong> Shimcache entries are not universally conclusive proof that a program executed. Their interpretation depends on the Windows version and the surrounding evidence. Treat the timestamp as an investigative lead and correlate it with other artifacts whenever possible.</p><h3>Q14 — Recover the Content Written in Notepad</h3><p>This question asks us to discover what was written inside Notepad.</p><p>We already identified the Notepad process in Q3:</p><p>PID: 3032</p><p>Now we need to extract its memory and search for the relevant content.</p><h4>Step 1 — Dump the Notepad process memory</h4><p>We can use Volatility’s memdump plugin:</p><pre>py -2.7 vol.py -f &quot;D:\Downloads\65-DumpMe\temp_extract_dir\Triage-Memory.mem&quot; --profile=Win7SP1x64 memdump -p 3032 -D dump</pre><p>Here:</p><ul><li>memdump: Extracts the memory associated with a process.</li><li>-p 3032: Specifies the Notepad PID.</li><li>-D dump: Specifies the output directory.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_Ax797Byu8BFCObai2wgQ.png" /><figcaption><strong>Figure 17 — Identifying the Notepad process before extracting its memory</strong></figcaption></figure><p>After running the command, Volatility will produce a memory dump for the selected process.</p><p>Keep in mind that this is not a clean text export of what appeared in Notepad. It is a dump of the process’s memory, which may contain many different types of data.</p><p>That is why the output can be very large.</p><h4>Step 2 — Search the extracted memory for the flag</h4><p>The question’s expected answer format gives us a useful clue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/191/1*5i6ftLzwwZXKHBwBzuQ7ww.png" /><figcaption><strong>Figure 18</strong></figcaption></figure><p>If the content follows a format containing the word flag, we can search for that string instead of manually examining the entire memory dump.</p><p>The strings utility can extract readable strings from binary data.</p><p>Use:</p><pre>strings -el .\3032.dmp | findstr &quot;flag&quot;</pre><p>The -el option tells strings to search for UTF-16 little-endian strings, which is useful when examining text stored in a Windows process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KbN9xRCGsZu095ZxiUoYvQ.png" /><figcaption><strong>Figure 19 — Matching strings recovered from Notepad memory</strong></figcaption></figure><p><strong>Answer:</strong> flag&lt;REDBULL_IS_LIFE&gt;</p><h3>Q15 — Retrieve the Short Name from the Master File Table</h3><p>This question asks us to examine the Master File Table (MFT) and retrieve the short name associated with a specific file record.</p><h4>What is the MFT?</h4><p>The Master File Table is a core NTFS structure that stores metadata about files and directories on an NTFS volume.</p><p>MFT records can contain information such as file names, timestamps, attributes, and references to other filesystem structures.</p><p>During forensic investigations, MFT analysis can help us recover information about files that existed on the system.</p><h4>Use the mftparser plugin</h4><p>We can use Volatility’s mftparser plugin to parse MFT-related information from the memory image.</p><p>The original notes use the standalone Volatility executable:</p><pre>volatility_2.6_win64_standalone.exe -f Triage-Memory.mem mftparser</pre><p>Search the output for the file record:</p><p>59045</p><p>Then inspect the corresponding entry and identify its short name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LFx5XrTOBciBMvOtOTJfBQ.png" /><figcaption><strong>Figure 20 — Searching the MFT output for record 59045</strong></figcaption></figure><p><strong>Answer:</strong> EMPLOY~1.XLS</p><h3>Q16 — Identify the Infected Process Using Network Evidence</h3><p>For the final question, we will bring together several findings from the previous steps.</p><p>We already identified a suspicious process using malfind, and we examined its network activity using netscan.</p><p>The relevant connection is:</p><pre>Local Address:   10.0.0.101:49217<br>Foreign Address: 10.0.0.106:4444<br>State:           ESTABLISHED<br>PID:             3496<br>Owner:           UWkpjFjDzM.exe</pre><p>Let’s interpret the evidence:</p><ul><li>10.0.0.101:49217 is the local endpoint.</li><li>10.0.0.106:4444 is the remote endpoint.</li><li>ESTABLISHED indicates that the connection was established.</li><li>3496 identifies the process associated with the connection.</li><li>UWkpjFjDzM.exe is the process name.</li></ul><p>This is the same process we identified earlier through malfind.</p><p>The correlation is important:</p><ol><li>pslist showed that UWkpjFjDzM.exe was a child of wscript.exe.</li><li>malfind identified suspicious executable memory associated with the process.</li><li>netscan showed an established connection from the process to 10.0.0.106 on port 4444.</li></ol><p>Considering the challenge context, which involves Meterpreter-related malware, these findings support identifying this process as the infected process.</p><p><strong>Answer:</strong> UWkpjFjDzM.exe — PID 3496</p><h3>Conclusion</h3><p>The DumpMe challenge demonstrates how much valuable evidence can be recovered from a Windows memory image using Volatility 2.</p><p>Throughout the investigation, we used different plugins to examine process activity, network connections, loaded libraries, memory regions, command-line arguments, and filesystem artifacts.</p><p>More importantly, we saw how individual findings become more meaningful when correlated with one another.</p><p>For example, identifying a suspicious process using malfind was only one part of the investigation. Correlating that process with its parent process and its established network connection provided stronger evidence of suspicious activity.</p><p>Here are some of the key lessons from this challenge:</p><ul><li><strong>Start with the correct profile.</strong> Incorrect profile selection can lead to unreliable or unusable results.</li><li><strong>Understand the plugins you use.</strong> Knowing what pslist, netscan, malfind, vadinfo, and other plugins actually retrieve makes it easier to interpret their output.</li><li><strong>Correlate evidence.</strong> A suspicious process, an unusual memory region, and a network connection are more meaningful when examined together.</li><li><strong>Do not confuse indicators with proof.</strong> A port number, memory permission, or Shimcache entry should be interpreted in context.</li><li><strong>Preserve extracted artifacts.</strong> Hashes and dumped process files can support further investigation and malware identification.</li></ul><p>Overall, this challenge is a useful introduction to Windows memory forensics and a good opportunity to practice using Volatility 2 in a practical DFIR scenario.</p><p>The most important takeaway is that memory forensics is not just about running plugins and collecting output. It is about understanding what each artifact represents, asking the right questions, and connecting the evidence to reconstruct what happened on the system.</p><h3>References</h3><ul><li><a href="https://cyberdefenders.org/blueteam-ctf-challenges/dumpme/">CyberDefenders — DumpMe Challenge</a></li><li><a href="https://github.com/volatilityfoundation/volatility/wiki">Volatility Foundation — Volatility 2 Documentation</a></li><li><a href="https://learn.microsoft.com/en-us/windows/win32/memory/virtual-memory">Microsoft — Virtual Memory</a></li><li><a href="https://learn.microsoft.com/en-us/windows/win32/memory/memory-protection-constants">Microsoft — Memory Protection Constants</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b423906366d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PhishStrike — CyberDefenders Write-Up]]></title>
            <link>https://medium.com/@youssefmohamed01p/phishstrike-cyberdefenders-write-up-740205163253?source=rss-82b813156258------2</link>
            <guid isPermaLink="false">https://medium.com/p/740205163253</guid>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <dc:creator><![CDATA[Youssefmohamedp]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 15:41:48 GMT</pubDate>
            <atom:updated>2026-09-20T15:41:48.956Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone 👋</p><p>In this write-up, I’ll walk through the <strong>PhishStrike</strong> lab from <strong>CyberDefenders</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6i6FFlsFDH-cj5w3_3U7w.png" /></figure><p>This lab is focused on a very common SOC workflow: starting with a suspicious phishing email, extracting useful indicators, and then using threat intelligence and malware analysis to understand what happened.</p><p>We will work with email headers, <strong>URLHaus</strong>, <strong>VirusTotal</strong>, and <strong>Triage</strong> to identify things like the sender IP, malicious URLs, malware families, persistence mechanisms, HTTP requests, C2 infrastructure, and a Telegram Bot ID. The lab contains <strong>11 questions</strong> in total.</p><p>Let’s start.</p><h3>Getting Started</h3><p>After downloading the lab files, I extracted the archive using the provided password:</p><pre>cyberdefenders.org</pre><p>The lab also recommends working in an isolated environment, so I used a VM for the investigation.</p><p>After extracting the files, we can see the email file that we need to investigate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sHlF5cUrXJfPT6Q9QdXATw.png" /></figure><p>I opened the email in Thunderbird and started by checking the message details and headers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cPna-b8T4720vSbShuRivQ.png" /></figure><p>The email itself looks like a normal purchase receipt, but the important information is hidden in the headers and the links inside the message.</p><h3>Q1 — Finding the Sender IP</h3><blockquote><strong><em>What is the sender’s IP address that has an SPF value of softfail and a DKIM value of fail?</em></strong></blockquote><p>At the first, we need to open the <strong>Message Source</strong> to see the details of the email:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s4U8tF2yXALDbrghNMQmqQ.png" /></figure><p>Then, I want to check the email authentication information.</p><p>Looking at the email headers, I searched for the Authentication-Results section and found:</p><pre>spf=softfail<br>dkim=fail</pre><p>Next to these results, the sender IP was:</p><pre>18.208.22.104</pre><p>The screenshot below shows the relevant header information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Swppi3Gc_jC6uMgBO7Eb9A.png" /></figure><h3>Answer</h3><pre>18.208.22.104</pre><h3>Q2 — Finding the Return Path</h3><blockquote><strong><em>What is the return path specified in this email?</em></strong></blockquote><p>Next, I checked the email headers for the Return-Path field.</p><p>The header showed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S1uNBEY_6yJdeOdt80Ut_A.png" /></figure><p>So the return path is:</p><h3>Answer</h3><pre>erikajohana.lopez@uptc.edu.co</pre><h3>Q3 — Finding the Malware Hosting IP</h3><blockquote><strong><em>What is the IP address of the server hosting the malicious file related to malware distribution?</em></strong></blockquote><p>Now we move from the email itself to the malicious URL.</p><p>To get the URL embedded in this email, you can right-click on any link from the email, because all of them have the same value, and then copy the link address:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fZ1O_BY9eAPFz7dF40BjWA.png" /></figure><p>The URL found in the investigation pointed to:</p><pre>http://107.175.247.199/loader/install.exe</pre><p>So the server IP is:</p><pre>107.175.247.199</pre><h3>Answer</h3><pre>107.175.247.199</pre><h3>Q4 — Finding the Crypto-Mining Malware</h3><blockquote><strong><em>Which malware family is responsible for cryptocurrency mining?</em></strong></blockquote><p>Since we already have the malicious URL, I continued the investigation in <a href="https://urlhaus.abuse.ch/">URLHaus</a>, instead of opening the URL directly. This is useful because URLHaus keeps records of URLs that have been associated with malware distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UOgoyHKufCheCbbfn5UKrA.png" /><figcaption>Note: don’t forget to remove the `http` from the link, to make the search works.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TFFSGvA56WyjSfMoAiaW1g.png" /></figure><p>The results showed several malware families associated with the URL, including:</p><pre>AsyncRAT<br>BitRAT<br>CoinMiner</pre><p>Because the question asks specifically about <strong>cryptocurrency mining</strong>, the relevant malware family is:</p><h3>Answer</h3><pre>CoinMiner</pre><h3>Q5 — Finding the CoinMiner URL</h3><blockquote><strong><em>Based on the previous analysis of the cryptocurrency malware sample, what does this malware request the URL?</em></strong></blockquote><p>The question needs us to investigate the CoinMiner further, so from the Payload delivery section, we will copy the SHA256 hash for it to search for it in other threat intelligence databases:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5qiAgEtg8hF0HFKNZk_VAw.png" /></figure><p>After getting the hash, I searched for it in VirusTotal and checked the network tab for the URLs that the malware connected to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56KPBeu4pkQlc25xxi-Xxg.png" /></figure><p>As you can see, the malware was seen requesting:</p><pre>http://ripley.studio/loader/uploads/Qanjttrbv.jpeg</pre><h3>Answer</h3><pre>http://ripley.studio/loader/uploads/Qanjttrbv.jpeg</pre><h3>Q6 — Finding the BitRAT Persistence File</h3><blockquote><strong><em>What is the executable’s name in the first value added to the registry auto-run key?</em></strong></blockquote><p>Now we move to the <strong>BitRAT</strong> sample.</p><p>One important thing to check during malware analysis is <strong>persistence</strong>. Malware can use Windows Registry keys to make sure it starts automatically when the user logs in.</p><p>I opened the sample in <strong>VirusTotal</strong>, went to the Behavior tab, and looked closely at the Registry Keys Set section.</p><p>Then I looked for the Windows auto-run key, searching for the word <em>Run.</em></p><p>And I found many results, but the only one the have somthing add to the auto-run key is this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DhshVfU2YVO9czoyoKF8VQ.png" /></figure><p>The value added there pointed to:</p><pre>Jzwvix.exe</pre><p>This tells us that Jzwvix.exe was added to the user&#39;s startup mechanism.</p><h3>Answer</h3><pre>Jzwvix.exe</pre><h3>Q7 — Finding the SHA-256 Hash</h3><blockquote><strong><em>What is the SHA-256 hash of the file previously downloaded and added to the autorun keys?</em></strong></blockquote><p>Since we already identified the file as:</p><pre>Jzwvix.exe</pre><p>the next step is to find its SHA-256 hash.</p><p>In VirusTotal, I checked the <strong>Behavior</strong> results and looked for the file in the dropped files information.</p><p>The SHA-256 hash was:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*goz1k0d7gr0ugpnbYiXIAQ.png" /></figure><h3>Answer</h3><pre>bf7628695c2df7a3020034a065397592a1f8850e5f99a448b555bc1c8c639539</pre><h3>Q8 — Finding the BitRAT Download URL</h3><blockquote><strong><em>What is the URL in the HTTP request used by the loader to retrieve the BitRAT malware?</em></strong></blockquote><p>Now we need to look at the network activity of the BitRAT sample, so we will also get its hash from the Payload delivery section, as before:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Q1pmcwNTAiY4cahUJs-Zg.png" /></figure><p>In VirusTotal, I opened:</p><pre>Relations<br>    ↓<br>Contacted URLs</pre><p>Then I focused on the URL include executable, which is this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*nJrryUl7Y8_PzqfHfpHfdg.png" /></figure><p>This is the URL used by the loader to retrieve the BitRAT payload.</p><h3>Answer</h3><pre> http://107.175.247.199/loader/server.exe</pre><h3>Q9 — Finding the PowerShell Delay</h3><blockquote><strong><em>What is the delay (in seconds) caused by the PowerShell command according to the BitRAT analysis?</em></strong></blockquote><p>While checking the sample behavior tab, I searched for a PowerShell command in the <strong>Shell commands section and found one that </strong>was Base64 encoded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ivQFVXe54S3-GfnI3B8fTg.png" /></figure><p>After decoding it using CyberChef, the command contained:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hCiuzIPgJC_bcDVRPdAYHg.png" /></figure><p>So the malware introduces a delay of:</p><h3>Answer</h3><pre>50</pre><h3>Absolutely. I’d rewrite <strong>Q10</strong> like this so it matches the style and flow of the rest of the write-up:</h3><h3>Q10 — Finding the BitRAT C2 Domain</h3><blockquote><strong><em>What is the C2 domain used by the BitRAT malware?</em></strong></blockquote><h3>How did we find it?</h3><p>The question is asking for the <strong>C2 (Command and Control) domain</strong> used by <strong>BitRAT</strong>, not just the domain or IP address hosting the malware.</p><p>So, instead of searching randomly, we can continue from the IOC we identified earlier:</p><pre>http://107.175.247.199/loader/server.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZA3rigyfZn9JvnvMk1I4w.png" /></figure><p>From our previous analysis in <strong>URLHaus</strong>, this server.exe sample is associated with <strong>BitRAT</strong>. The same analysis also gives us a SHA-256 hash that we can use to investigate the sample further:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-iWScXve7pr25run0S4zdA.png" /></figure><p>The URLHaus results show the server.exe sample and identify it as <strong>BitRAT</strong>, giving us a good starting point for the next step.</p><p>Now we can take this hash and search for it in <strong>VirusTotal</strong>.</p><p>In VirusTotal, we review the sample’s <strong>Relations tab </strong>and look at the contacted domains section to see which domains the malware contacted.</p><p>Among the contacted domains, the one with the highest detection score is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qINJvYQDwLenHc92T4C65g.png" /></figure><h3>Answer</h3><pre>gh9st.mywire.org</pre><h3>Q11 — Finding the AsyncRAT Telegram Bot ID</h3><blockquote><strong><em>According to the AsyncRAT analysis, what is the Telegram Bot ID used by this malware?</em></strong></blockquote><p>For the final question, I used the <strong>Triage sandbox</strong> analysis.</p><p>The hint tells us to look at the network activity and search for GET requests related to Telegram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EaI00EMcCHtMvTjr7rh70g.png" /></figure><p>In the network traffic, we can see a connection to:</p><pre>api.telegram.org</pre><p>and the bot identifier appears as:</p><pre>bot5610920260</pre><h3>Answer</h3><pre>bot5610920260</pre><h3>Conclusion</h3><p>And that’s it — we completed all <strong>11 questions</strong> in the PhishStrike lab.</p><p>What I liked about this lab is that it shows how a real investigation can grow from one small indicator into a much bigger picture.</p><p>We started with a phishing email and followed the evidence step by step:</p><pre>Phishing Email<br>      ↓<br>Email Headers<br>      ↓<br>Sender IP<br>      ↓<br>Malicious URL<br>      ↓<br>URLHaus<br>      ↓<br>Malware Samples<br>      ↓<br>VirusTotal<br>      ↓<br>Registry Persistence<br>      ↓<br>Network Activity<br>      ↓<br>C2 Domain<br>      ↓<br>Telegram Bot</pre><p>The important part is not only getting the answers, but understanding how to <strong>pivot from one piece of evidence to another</strong>.</p><p>For example, the email gave us the URL; the URL led us to URLHaus; URLHaus helped us identify malware families, and then VirusTotal gave us more details about persistence and network behavior.</p><p>That is a very useful workflow for SOC investigations and Threat Hunting.</p><h3>Tools Used</h3><p>During this lab, I used:</p><ul><li><strong>Thunderbird</strong> — to inspect the email</li><li><strong>Email Headers</strong> — to analyze SPF, DKIM, and sender information</li><li><strong>URLHaus</strong> — to investigate the malicious URL</li><li><strong>VirusTotal</strong> — to analyze malware behavior</li><li><strong>Triage</strong> — to inspect network activity and Telegram communication</li></ul><p>These tools are also listed by CyberDefenders as part of the lab’s toolkit.</p><h3>Final Thoughts</h3><p>This was a good hands-on exercise for understanding how <strong>phishing analysis and threat intelligence</strong> work together.</p><p>Instead of looking at every indicator separately, we can connect them and build a clearer picture of the attack.</p><p>Thanks for reading! 🚀</p><p>I hope this write-up helps you understand not only <strong>what the answers are</strong>, but also <strong>how to find them step by step</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=740205163253" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OSINT — MITRE (3): Reconstructing an Attack with MITRE ATT&CK]]></title>
            <link>https://medium.com/@youssefmohamed01p/osint-mitre-3-reconstructing-an-attack-with-mitre-att-ck-a0781ce3e270?source=rss-82b813156258------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0781ce3e270</guid>
            <category><![CDATA[mitre-attack-framework]]></category>
            <dc:creator><![CDATA[Youssefmohamedp]]></dc:creator>
            <pubDate>Fri, 11 Sep 2026 22:56:35 GMT</pubDate>
            <atom:updated>2026-09-12T20:19:39.169Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>Lab:</em></strong><em> OSINT — MITRE (3)<br> </em><strong><em>Platform:</em></strong><em> cyberhaze<br> </em><strong><em>Focus:</em></strong><em> MITRE ATT&amp;CK, TTP mapping, ATT&amp;CK Navigator, threat attribution, detection<br> </em><strong><em>Difficulty:</em></strong><em> Medium</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J1VoBGCQ43fRQ-YkLJ9J8Q.png" /></figure><h3>Introduction</h3><p>A security alert rarely tells the whole story.</p><p>A SIEM may tell us that an external host generated an unusual amount of traffic. An EDR may show that a security tool was disabled. A web server may reveal an SQL injection attempt. Individually, these events are useful, but they become much more valuable when we can connect them into a structured attack chain.</p><p>This is where <strong>MITRE ATT&amp;CK</strong> becomes extremely useful.</p><p>Instead of looking at each alert as an isolated event, we can translate the observed behavior into <strong>Tactics, Techniques, and Procedures (TTPs)</strong> and then map those behaviors against known adversary groups.</p><p>In this lab, I used the MITRE ATT&amp;CK framework to reconstruct the attacker’s activity from initial reconnaissance to exploitation, privilege escalation, persistence, collection, exfiltration, and impact.</p><p>More importantly, the lab demonstrates a mindset that is useful beyond the exercise:</p><blockquote><strong><em>Don’t just ask what happened. Ask what technique explains the behavior, what comes next in the attack chain, and whether the overall TTP profile resembles a known threat actor.</em></strong></blockquote><h3>1. MITRE ATT&amp;CK in Simple Terms</h3><p>Before solving the questions, it is important to understand what we are actually mapping.</p><p>MITRE ATT&amp;CK is a knowledge base that describes how adversaries operate through <strong>Tactics, Techniques, and Procedures</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VwaYfduTOUhG1C3229rx7w.png" /><figcaption>ATT&amp;CK Matrix for Enterprise</figcaption></figure><p>Think of the hierarchy like this:</p><pre>TACTIC<br>   ↓<br>What is the attacker trying to achieve?</pre><pre>TECHNIQUE<br>   ↓<br>How is the attacker achieving it?</pre><pre>SUB-TECHNIQUE<br>   ↓<br>What specific implementation is being used?</pre><pre>PROCEDURE<br>   ↓<br>What did the real attacker/tool actually do?</pre><p>For example:</p><pre>Initial Access<br>      ↓<br>Exploit Public-Facing Application<br>      ↓<br>SQL Injection<br>      ↓<br>Exploitation of an externally accessible web application</pre><p>The tactic describes the <strong>goal</strong>, while the technique describes the <strong>behavior used to accomplish that goal</strong>.</p><p>MITRE’s current Enterprise matrix contains tactics ranging from <strong>Reconnaissance</strong> and <strong>Resource Development</strong> through <strong>Initial Access, Execution, Persistence, Privilege Escalation, Defense Impairment, Discovery, Collection, Exfiltration, and Impact</strong>. (<a href="https://attack.mitre.org/docs/attack_roadmap_2024_april.pdf?utm_source=chatgpt.com">MITRE ATT&amp;CK</a>)</p><h3>2. Why MITRE ATT&amp;CK Matters During an Investigation</h3><p>Suppose your SOC receives this sequence of events:</p><pre>External scanning<br>      ↓<br>SQL Injection<br>      ↓<br>Remote shell<br>      ↓<br>Privilege escalation<br>      ↓<br>Persistence<br>      ↓<br>EDR disabled<br>      ↓<br>Data collection<br>      ↓<br>Exfiltration<br>      ↓<br>Website defacement</pre><p>Without ATT&amp;CK, this is simply a collection of alerts.</p><p>With ATT&amp;CK, we can turn it into a structured attack story:</p><pre>Reconnaissance<br>      ↓<br>Initial Access<br>      ↓<br>Execution<br>      ↓<br>Privilege Escalation<br>      ↓<br>Persistence<br>      ↓<br>Defense Impairment<br>      ↓<br>Collection<br>      ↓<br>Exfiltration<br>      ↓<br>Impact</pre><p>Now the defender can ask much more useful questions:</p><blockquote><em>Which techniques has the attacker already demonstrated?</em></blockquote><blockquote><em>What techniques commonly follow these behaviors?</em></blockquote><blockquote><em>Which detections should we build next?</em></blockquote><blockquote><em>Does this combination of TTPs resemble a known threat actor?</em></blockquote><p>That is the real value of ATT&amp;CK.</p><h3>3. ATT&amp;CK Navigator</h3><h3>What is ATT&amp;CK Navigator?</h3><p><a href="https://mitre-attack.github.io/attack-navigator/"><strong>MITRE ATT&amp;CK Navigator</strong></a> is a visualization tool that allows analysts to create layers over the ATT&amp;CK matrix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RFGIfgcnlOtU980xAlfPuQ.png" /></figure><p>Instead of looking at hundreds of techniques individually, we can highlight the techniques observed during an investigation.</p><p>For example:</p><pre>Reconnaissance<br>   │<br>   └── Vulnerability Scanning</pre><pre>Initial Access<br>   │<br>   └── Exploit Public-Facing Application</pre><pre>Execution<br>   │<br>   └── Windows Command Shell</pre><pre>Privilege Escalation<br>   │<br>   └── Token Impersonation/Theft</pre><pre>Persistence<br>   │<br>   └── Windows Service</pre><pre>Defense Impairment<br>   │<br>   └── Disable or Modify Tools</pre><pre>Collection<br>   │<br>   └── Automated Collection</pre><p>MITRE itself uses Navigator layers to visualize technique usage for groups and campaigns. For example, the current APT41 group page provides an Enterprise ATT&amp;CK Navigator layer containing its mapped behaviors.</p><p>And we will explain the ATT&amp;CK Navigator in detail in a future write-up, Inshallah.</p><h3>4. From One Detection to an Attack Chain</h3><p>A major lesson from this lab is that <strong>one detection can become the starting point for investigating the next stages of the attack</strong>.</p><p>Imagine that the SOC initially notices:</p><blockquote><em>A public-facing application is receiving unusual vulnerability-scanning traffic.</em></blockquote><p>We identify:</p><pre>T1595.002<br>Active Scanning: Vulnerability Scanning</pre><p>Now we know this is not merely random traffic.</p><p>The attacker is potentially looking for vulnerabilities that can later be exploited.</p><p>MITRE describes vulnerability scanning as scanning victims for weaknesses that may be useful for later exploitation. (<a href="https://attack.mitre.org/techniques/T1595/002/?utm_source=chatgpt.com">MITRE ATT&amp;CK</a>)</p><p>This gives us a hypothesis:</p><pre>Scanning<br>   ↓<br>Vulnerability identified<br>   ↓<br>Exploitation<br>   ↓<br>Initial Access</pre><p>That is much more useful than simply closing the scanning alert.</p><h3>5. Question 1 — Identifying the Reconnaissance Technique</h3><h3>Question</h3><blockquote><em>The investigation revealed that a large spike in network traffic originated from an external IP address. The majority of this traffic was generated by a suspicious user-agent string: </em><em>Mozilla/5.0 (compatible; Nmap Scripting Engine) and appears to be aimed at identifying vulnerabilities. What is the ID of this specific sub-technique?</em></blockquote><h3>Answer</h3><p><strong>T1595.002 — Active Scanning: Vulnerability Scanning</strong></p><h3>Reasoning</h3><p>The important clues are:</p><pre>External IP<br>      +<br>Nmap Scripting Engine<br>      +<br>Identifying vulnerabilities</pre><p>The phrase <strong>“identifying vulnerabilities”</strong> is the strongest clue.</p><p>We are not simply identifying hosts or scanning IP ranges. The goal is specifically to discover vulnerabilities that could later be exploited.</p><p>Therefore:</p><pre>Tactic:<br>Reconnaissance</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*do0bgohPD4DR0KMpnq3Grg.png" /></figure><p>MITRE defines <strong>Vulnerability Scanning </strong>Sub-technique<strong> </strong>as scanning victims for vulnerabilities that may be useful for later exploitation. (<a href="https://attack.mitre.org/techniques/T1595/002/?utm_source=chatgpt.com">MITRE ATT&amp;CK</a>)</p><h3>Why not another scanning sub-technique?</h3><p>Current ATT&amp;CK contains:</p><pre>T1595.001 — Scanning IP Blocks<br>T1595.002 — Vulnerability Scanning<br>T1595.003 — Wordlist Scanning</pre><p>The scenario specifically says the activity is aimed at identifying <strong>vulnerabilities</strong>, so .002 is the precise match. (<a href="https://attack.mitre.org/techniques/T1595/002/?utm_source=chatgpt.com">MITRE ATT&amp;CK</a>)</p><h3>6. Question 2 — Identifying the Main Technique</h3><h3>Question</h3><blockquote><em>What is the name of the main technique this falls under?</em></blockquote><h3>Answer</h3><p><strong>Active Scanning — T1595</strong></p><p>The previous answer was a <strong>sub-technique</strong>.</p><p>Its parent is:</p><pre>T1595<br>Active Scanning<br>      │<br>      └── T1595.002<br>          Vulnerability Scanning</pre><p>This distinction is important when working with ATT&amp;CK.</p><p>A common mistake is to treat the sub-technique as an entirely separate technique.</p><p>Instead, think of it as:</p><blockquote><strong><em>Parent technique → more specific child behavior</em></strong></blockquote><h3>7. A Useful Attribution Clue</h3><p>At this point we already have an interesting observation.</p><p>APT41 is currently documented by MITRE as having used <strong>Acunetix’s SQL injection vulnerability scanner</strong> during reconnaissance, as well as JexBoss to identify Java vulnerabilities. (<a href="https://attack.mitre.org/groups/G0096">MITRE ATT&amp;CK</a>)</p><p>That doesn’t prove our attacker is APT41.</p><p>It does, however, give us a useful hypothesis:</p><pre>Observed:<br>T1595.002 Vulnerability Scanning</pre><pre>↓</pre><pre>Known APT behavior:<br>APT41 → T1595.002</pre><pre>↓</pre><pre>Attribution hypothesis:<br>APT41 becomes a candidate</pre><p>This is exactly where ATT&amp;CK becomes more powerful than simple alert analysis.</p><p>We are no longer asking:</p><blockquote><em>“What happened?”</em></blockquote><p>We are asking:</p><blockquote><em>“Who is known to behave this way?”</em></blockquote><h3>8. Question 3 — Exploiting the Public-Facing Application</h3><h3>Question</h3><blockquote><em>The SOC later discovered that the adversary exploited one of the organization’s external software applications through an SQL injection vulnerability. What is the MITRE technique ID that led to the attacker’s initial access?</em></blockquote><h3>Answer</h3><p><strong>T1190 — Exploit Public-Facing Application</strong></p><h3>Reasoning</h3><p>The key phrase is:</p><blockquote><strong><em>external software application</em></strong></blockquote><p>That immediately makes us think about an application exposed to the Internet.</p><p>The attacker then exploited an SQL injection vulnerability in that application.</p><p>This maps to:</p><pre>T1190<br>Exploit Public-Facing Application</pre><p>APT41 is also currently documented as using SQL injection and other vulnerabilities against externally accessible applications for initial access. (<a href="https://attack.mitre.org/groups/G0096">MITRE ATT&amp;CK</a>)</p><p>The important distinction here is:</p><pre>SQL Injection<br>       ↓<br>The vulnerability/exploitation mechanism</pre><pre>T1190<br>       ↓<br>The ATT&amp;CK behavior describing exploitation<br>of a public-facing application for initial access</pre><p>So the answer is not simply “SQL Injection.”</p><p>The question is asking for the <strong>ATT&amp;CK technique describing the initial-access behavior</strong>.</p><h3>9. Question 4 — Identifying SQLmap</h3><h3>Question</h3><blockquote><em>It was later discovered that the SQLmap tool was used to automate the process of detecting and exploiting the SQL injection vulnerability. What is the MITRE ID pertaining to this piece of software?</em></blockquote><h3>Answer</h3><p><strong>S0225 — sqlmap</strong></p><h3>Reasoning</h3><p>Here the question is slightly different.</p><p>Previously we were identifying:</p><ul><li>Tactics</li><li>Techniques</li><li>Sub-techniques</li></ul><p>Now the question asks about <strong>software</strong>.</p><p>MITRE identifies sqlmap as:</p><pre>S0225<br>sqlmap</pre><p>MITRE describes it as an open-source penetration-testing tool that automates the detection and exploitation of SQL injection vulnerabilities. (<a href="https://attack.mitre.org/software/S0225">MITRE ATT&amp;CK</a>)</p><p>There are two good ways to find this inside ATT&amp;CK.</p><h3>Method 1 — Search directly</h3><p>Search:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YIFX3Kmr843_6rIrpKnPGw.png" /></figure><p>in the ATT&amp;CK search bar.</p><p>You will find:</p><pre>S0225 — sqlmap</pre><h3>Method 2 — Use Procedure Examples</h3><p>From:</p><pre>T1190<br>Exploit Public-Facing Application</pre><p>open the <strong>Procedure Examples</strong> section and look for software associated with the technique.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Er-P0uTOTk7nNQnX4Sl7g.png" /></figure><p>This is a very useful ATT&amp;CK workflow because it allows us to move from:</p><pre>Observed behavior<br>        ↓<br>Technique<br>        ↓<br>Procedure examples<br>        ↓<br>Known software/groups</pre><h3>10. Building the Attribution Hypothesis</h3><p>Now our evidence is becoming more interesting.</p><p>We have:</p><pre>T1595.002<br>Vulnerability Scanning</pre><pre>↓</pre><pre>T1190<br>Exploit Public-Facing Application</pre><pre>↓</pre><pre>SQLmap<br>S0225</pre><p>And MITRE currently records both:</p><ul><li>APT41 using vulnerability scanning during reconnaissance. (<a href="https://attack.mitre.org/techniques/T1595/002/?utm_source=chatgpt.com">MITRE ATT&amp;CK</a>)</li><li>APT41 using exploitation of public-facing applications, including SQL injection. (<a href="https://attack.mitre.org/groups/G0096">MITRE ATT&amp;CK</a>)</li><li>APT41 as a group associated with sqlmap. (<a href="https://attack.mitre.org/software/S0225">MITRE ATT&amp;CK</a>)</li></ul><p>That gives us a much stronger hypothesis.</p><p>But there is an important analytical principle here:</p><blockquote><strong><em>ATT&amp;CK overlap is evidence of similarity, not automatic attribution.</em></strong></blockquote><p>Several threat actors can use the same public tools and techniques.</p><p>So instead of writing:</p><blockquote><em>“The attacker is APT41.”</em></blockquote><p>A professional assessment should say something closer to:</p><blockquote><em>“The observed TTPs are consistent with documented APT41 behavior, making APT41 a plausible attribution hypothesis.”</em></blockquote><p>That distinction matters in real-world threat intelligence.</p><h3>11. Question 5 — Why Windows Command Shell?</h3><h3>Question</h3><blockquote><em>After achieving remote code execution through the SQL injection vulnerability, the attacker created a remote reverse shell on the server by initiating a </em><em>cmd.exe process. What sub-technique ID does this relate to?</em></blockquote><h3>Answer</h3><p><strong>T1059.003 — Command and Scripting Interpreter: Windows Command Shell</strong></p><h3>Reasoning</h3><p>The strongest clue is:</p><pre>cmd.exe</pre><p>MITRE has multiple sub-techniques under Command and Scripting Interpreter:</p><pre>T1059<br>Command and Scripting Interpreter<br>│<br>├── T1059.001 PowerShell<br>├── T1059.003 Windows Command Shell<br>├── T1059.004 Unix Shell<br>├── ...</pre><p>Because the scenario explicitly says:</p><blockquote><em>cmd.exe</em></blockquote><p>we choose:</p><pre>T1059.003<br>Windows Command Shell</pre><h3>Why not PowerShell?</h3><p>Because nothing in the scenario indicates:</p><pre>powershell.exe</pre><p>or PowerShell commands.</p><p>The platform and process matter.</p><pre>cmd.exe<br>   ↓<br>Windows Command Shell</pre><pre>powershell.exe<br>   ↓<br>PowerShell</pre><pre>/bin/bash<br>   ↓<br>Unix Shell</pre><p>This is a perfect example of why we should not just memorize ATT&amp;CK IDs.</p><p>We should map the <strong>observed behavior</strong> to the correct sub-technique.</p><p>APT41 is also documented as using cmd.exe for command execution and reconnaissance. (<a href="https://attack.mitre.org/groups/G0096">MITRE ATT&amp;CK</a>)</p><h3>12. Question 6 — SeImpersonatePrivilege and Token Impersonation</h3><h3>Question</h3><blockquote><em>The attacker escalated privileges by impersonating an administrator user’s security token and abusing the </em><em>SeImpersonatePrivilege. According to MITRE, what is one of the API calls that can be monitored to detect this behavior?</em></blockquote><h3>Answer</h3><p><strong>ImpersonateLoggedOnUser</strong></p><h3>Understanding the Technical Background</h3><p>This question is much more interesting than simply finding an API name.</p><p>To understand it, we first need to understand <strong>Windows access tokens</strong>.</p><p>A Windows process normally runs under a security context represented by an <strong>access token</strong>.</p><p>The token contains information such as:</p><pre>User identity<br>Group membership<br>Privileges<br>Security identifier<br>Access rights</pre><p>For example:</p><pre>Low-privileged process<br>        ↓<br>Current token<br>        ↓<br>Limited privileges</pre><p>If an attacker can obtain or impersonate a token belonging to a privileged account, the attacker may be able to perform actions under that user’s security context.</p><p>That is the basic idea behind <strong>Token Impersonation/Theft</strong>.</p><p>MITRE maps this behavior to:</p><pre>T1134.001<br>Access Token Manipulation:<br>Token Impersonation/Theft</pre><p>MITRE explains that an adversary may duplicate an existing user’s token and then use APIs such as ImpersonateLoggedOnUser or SetThreadToken to impersonate that security context. (<a href="https://attack.mitre.org/techniques/T1134/001/?utm_source=chatgpt.com">MITRE ATT&amp;CK</a>)</p><h3>What is SeImpersonatePrivilege?</h3><p>SeImpersonatePrivilege is a Windows privilege that allows a process to impersonate another user&#39;s security context under certain conditions.</p><p>This privilege has been involved in several Windows privilege-escalation techniques because a low-privileged service process that possesses it may be able to abuse privileged tokens or authentication flows.</p><p>The key conceptual flow is:</p><pre>Low-privileged process<br>        ↓<br>Possesses SeImpersonatePrivilege<br>        ↓<br>Obtains/duplicates privileged token<br>        ↓<br>Impersonates privileged identity<br>        ↓<br>Executes with elevated privileges</pre><p>So when the question mentions:</p><blockquote><em>“impersonating an administrator user’s security token”</em></blockquote><p>the ATT&amp;CK mapping naturally points toward <strong>Token Impersonation/Theft</strong>.</p><h3>Why ImpersonateLoggedOnUser?</h3><p>This is where the question changes from:</p><blockquote><em>“What technique is this?”</em></blockquote><p>to:</p><blockquote><em>“How would we detect it?”</em></blockquote><p>So instead of looking only at the technique name, we go into its <strong>Detection</strong> section.</p><p>MITRE’s current detection strategy for T1134.001 specifically discusses monitoring token duplication and impersonation and includes APIs such as:</p><pre>DuplicateToken<br>DuplicateTokenEx<br>ImpersonateLoggedOnUser<br>SetThreadToken</pre><p>as useful telemetry. (<a href="https://attack.mitre.org/detectionstrategies/DET0482/?utm_source=chatgpt.com">MITRE ATT&amp;CK</a>)</p><p>Therefore:</p><pre>Observed behavior<br>        ↓<br>Token impersonation<br>        ↓<br>T1134.001<br>        ↓<br>Detection section<br>        ↓<br>ImpersonateLoggedOnUser</pre><h3>This is an important SOC lesson</h3><p>When an ATT&amp;CK question asks:</p><blockquote><strong><em>“What can be monitored to detect this behavior?”</em></strong></blockquote><p>don’t stop at the technique page.</p><p>Go to:</p><pre>Technique<br>   ↓<br>Detection<br>   ↓<br>Data Sources / Analytics<br>   ↓<br>Relevant API calls / events</pre><p>That turns ATT&amp;CK from a classification system into a <strong>detection-engineering resource</strong>.</p><h3>13. Question 7 — Persistence Through a Windows Service</h3><h3>Question</h3><blockquote><em>During the initial live incident response triage, a responder noticed that an existing Windows service had its image path modified to point to the attacker’s malicious reverse shell payload, likely to establish persistence. What is the ID of this sub-technique?</em></blockquote><h3>Answer</h3><p><strong>T1543.003 — Create or Modify System Process: Windows Service</strong></p><h3>Reasoning</h3><p>There are two clues:</p><pre>Windows service<br>       +<br>Image path modified<br>       +<br>Persistence</pre><p>ATT&amp;CK maps Windows service creation or modification to:</p><pre>T1543.003<br>Create or Modify System Process:<br>Windows Service</pre><p>MITRE describes adversaries modifying Windows services so that malicious payloads are executed repeatedly, including at startup. (<a href="https://attack.mitre.org/techniques/T1543/003/?utm_source=chatgpt.com">MITRE ATT&amp;CK</a>)</p><p>The important conceptual point is that the attacker doesn’t necessarily need to create a brand-new service.</p><p>They can modify an existing one:</p><pre>Legitimate Service<br>       ↓<br>ImagePath modified<br>       ↓<br>Malicious executable<br>       ↓<br>Service starts<br>       ↓<br>Payload executes</pre><p>This is why defenders should monitor not only:</p><blockquote><em>“New service created”</em></blockquote><p>but also:</p><blockquote><strong><em>“Existing service configuration changed.”</em></strong></blockquote><p>APT41 itself is documented as modifying legitimate Windows services to install malicious backdoors and establish persistence. (<a href="https://attack.mitre.org/groups/G0096">MITRE ATT&amp;CK</a>)</p><h3>14. Question 8 — The ATT&amp;CK Versioning Trap</h3><h3>Question</h3><blockquote><em>Around the same timeframe, endpoint logs in the SIEM reported that the system’s EDR tool was turned off and disabled. What sub-technique ID is this event likely referring to?</em></blockquote><h3>Lab Answer</h3><p><strong>T1562.001</strong></p><h3>But There Is an Important Modern ATT&amp;CK Update</h3><p>This is one of the most important points to mention in the write-up.</p><p>The lab was built around an <strong>older ATT&amp;CK matrix</strong>.</p><p>At the time, the behavior was mapped to:</p><pre>T1562.001<br>Impair Defenses:<br>Disable or Modify Tools</pre><p>However, in the <strong>current ATT&amp;CK version</strong>, MITRE has reorganized this behavior under:</p><pre>T1685<br>Disable or Modify Tools</pre><p>The current technique explicitly covers adversaries disabling, degrading, or tampering with security tools such as:</p><ul><li>EDR</li><li>IDS</li><li>antivirus</li><li>logging agents</li><li>sensors</li></ul><p>MITRE’s current T1685 page lists the newer sub-techniques under the technique. (<a href="https://attack.mitre.org/techniques/T1562/?utm_source=chatgpt.com">MITRE ATT&amp;CK</a>)</p><p>So the correct way to document this lab is:</p><blockquote><strong><em>Lab-era mapping:</em></strong><em> T1562.001<br> </em><strong><em>Current ATT&amp;CK mapping:</em></strong><em> T1685 — Disable or Modify Tools</em></blockquote><p>This is a valuable reminder that ATT&amp;CK is a <strong>living framework</strong>.</p><p>Technique IDs and taxonomy can change over time.</p><p>Therefore, when writing technical content about ATT&amp;CK, always state the framework version or distinguish between:</p><pre>Historical mapping<br>vs.<br>Current mapping</pre><h3>15. Why ATT&amp;CK Versioning Matters</h3><p>Imagine someone reads the original lab answer and searches today’s MITRE website for:</p><pre>T1562.001</pre><p>They may become confused because the current ATT&amp;CK structure has changed.</p><p>A professional write-up should prevent that confusion:</p><pre>Old Lab<br>T1562.001<br>     ↓<br>Historical ATT&amp;CK mapping</pre><pre>Current ATT&amp;CK<br>T1685<br>     ↓<br>Disable or Modify Tools</pre><p>This is particularly important when you are publishing write-ups years after a room was created.</p><h3>16. Question 9 — ccf32</h3><h3>Question</h3><blockquote><em>The ccf32 software was transferred to the host shortly after the initial compromise. What tactic ID is this software likely used for?</em></blockquote><h3>Answer</h3><p><strong>TA0009 — Collection</strong></p><h3>Reasoning</h3><p>The important clue is the software itself.</p><p>MITRE identifies <strong>ccf32</strong> as data-collection malware and associates it with activities such as:</p><pre>Automated Collection<br>T1119</pre><pre>Data from Local System<br>T1005</pre><pre>Data Staged<br>T1074</pre><p>MITRE identifies ccf32 as malware capable of collecting files from compromised hosts and automatically collecting data. (<a href="https://attack.mitre.org/software/S1043">MITRE ATT&amp;CK</a>)</p><p>Therefore the relevant tactic is:</p><pre>TA0009<br>Collection</pre><p>The distinction is:</p><pre>Technique:<br>T1119 — Automated Collection</pre><pre>Tactic:<br>TA0009 — Collection</pre><p>The question asks for the <strong>tactic ID</strong>, not the technique ID.</p><h3>17. Question 10 — Preventing Unauthorized External Services</h3><h3>Question</h3><blockquote><em>After staging sensitive data, files, and intellectual property, the attacker exfiltrated the data by pushing it to a public GitHub repository. What mitigation ID could the organization have implemented to prevent the use of unauthorized external services?</em></blockquote><h3>Answer</h3><p><strong>M1021 — Restrict Web-Based Content</strong></p><h3>Reasoning</h3><p>The attacker is using an external web service to move information out of the organization’s environment.</p><p>The mitigation provided by the lab is:</p><pre>M1021<br>Restrict Web-Based Content</pre><p>MITRE describes M1021 as restricting access to potentially malicious or unauthorized web content through mechanisms such as web proxy filtering, DNS-based filtering, browser controls, script restrictions, and related web controls. (<a href="https://attack.mitre.org/mitigations/M1021">MITRE ATT&amp;CK</a>)</p><p>In a real environment, this could be complemented by:</p><pre>Web proxy controls<br>      +<br>DNS filtering<br>      +<br>CASB / SaaS controls<br>      +<br>DLP<br>      +<br>GitHub enterprise policies<br>      +<br>SIEM monitoring</pre><p>The key lesson is that exfiltration isn’t always:</p><pre>Attacker server</pre><p>It can happen through legitimate public services.</p><p>This makes it especially important for defenders to monitor:</p><blockquote><strong><em>Legitimate services being used for illegitimate purposes.</em></strong></blockquote><h3>18. Question 11 — Website Defacement</h3><h3>Question</h3><blockquote><em>To complete the adversary’s Actions on Objectives, the organization’s public-facing corporate website was modified to display propaganda messages during the attack. What is the full sub-technique ID of this attack?</em></blockquote><h3>Answer</h3><p><strong>T1491.002 — Defacement: External Defacement</strong></p><h3>Reasoning</h3><p>The phrase:</p><blockquote><strong><em>public-facing corporate website was modified</em></strong></blockquote><p>is the strongest clue.</p><p>The parent technique is:</p><pre>T1491<br>Defacement</pre><p>The sub-technique is:</p><pre>T1491.002<br>External Defacement</pre><p>MITRE describes External Defacement as modifying systems external to an organization, particularly externally facing websites, often to deliver messaging, spread propaganda, intimidate users, or undermine trust. (<a href="https://attack.mitre.org/techniques/T1491/002">MITRE ATT&amp;CK</a>)</p><p>The distinction is:</p><pre>T1491.001<br>Internal Defacement</pre><pre>vs.</pre><pre>T1491.002<br>External Defacement</pre><p>Because the website is <strong>public-facing</strong>, .002 is the correct selection.</p><h3>19. Reconstructing the Full Attack Chain</h3><p>Now that all questions have been mapped, we can stop looking at the answers independently and reconstruct the attack.</p><p>The result is approximately:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NeSkNe7_wdATWInk_Y81Rw.png" /><figcaption>Reconstructing the Full Attack Chain</figcaption></figure><h3>20. Mapping the TTPs to APT41</h3><p>One candidate that immediately stands out is:</p><h3>APT41 — G0096</h3><p>APT41 is currently tracked by MITRE as a threat group associated with espionage as well as financially motivated operations. (<a href="https://attack.mitre.org/groups/G0096">MITRE ATT&amp;CK</a>)</p><p>Now compare our observed behaviors with the techniques documented for APT41.</p><h3>Vulnerability Scanning</h3><p>Our investigation:</p><pre>T1595.002<br>Vulnerability Scanning</pre><p>MITRE documents APT41 using vulnerability scanning tools during target reconnaissance. (<a href="https://attack.mitre.org/techniques/T1595/002/?utm_source=chatgpt.com">MITRE ATT&amp;CK</a>)</p><h3>Public-Facing Application Exploitation</h3><p>Our investigation:</p><pre>T1190<br>Exploit Public-Facing Application</pre><p>APT41 is documented as exploiting externally accessible applications through vulnerabilities including SQL injection. (<a href="https://attack.mitre.org/groups/G0096">MITRE ATT&amp;CK</a>)</p><h3>SQLmap</h3><p>Our investigation:</p><pre>S0225<br>sqlmap</pre><p>MITRE lists APT41 among the groups associated with sqlmap. (<a href="https://attack.mitre.org/software/S0225">MITRE ATT&amp;CK</a>)</p><h3>Windows Command Shell</h3><p>Our investigation:</p><pre>T1059.003<br>Windows Command Shell</pre><p>APT41 is documented as using cmd.exe for command execution and reconnaissance. (<a href="https://attack.mitre.org/groups/G0096">MITRE ATT&amp;CK</a>)</p><h3>Windows Services</h3><p>Our investigation:</p><pre>T1543.003<br>Windows Service</pre><p>MITRE documents APT41 modifying Windows services to install malicious backdoors and establish persistence. (<a href="https://attack.mitre.org/groups/G0096">MITRE ATT&amp;CK</a>)</p><h3>Defense Impairment</h3><p>Our investigation:</p><pre>T1685<br>Disable or Modify Tools</pre><p>Interestingly, the current APT41 profile also contains <strong>T1685</strong>, with MITRE documenting an ETW bypass designed to make malicious processes invisible to Windows logging. (<a href="https://attack.mitre.org/groups/G0096">MITRE ATT&amp;CK</a>)</p><h3>22. Key Takeaways</h3><blockquote><strong><em>1. Map behavior, not just indicators.</em></strong><em><br> An IP address may change, but the adversary’s behavior can remain recognizable.</em></blockquote><blockquote><strong><em>2. Always look for the exact clue that determines the sub-technique.</em></strong><em><br> For example, </em><em>cmd.exe points to T1059.003 rather than PowerShell.</em></blockquote><blockquote><strong><em>3. ATT&amp;CK can help predict the next stage of an intrusion.</em></strong><em><br> Reconnaissance can provide a hypothesis for what to hunt for next.</em></blockquote><blockquote><strong><em>4. Procedure Examples are extremely valuable.</em></strong><em><br> They allow us to connect techniques with real groups and software.</em></blockquote><blockquote><strong><em>5. ATT&amp;CK versions matter.</em></strong><em><br> A technique ID from an older lab may no longer represent the same behavior today.</em></blockquote><blockquote><strong><em>6. Navigator is a visualization and analysis aid, not an attribution oracle.</em></strong><em><br> A matching TTP profile creates an attribution hypothesis, which must be validated with additional intelligence.</em></blockquote><blockquote><strong><em>7. Detection is where ATT&amp;CK becomes operationally useful.</em></strong><em><br> Technique pages can lead directly to APIs, processes, logs, and telemetry that defenders can monitor.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0781ce3e270" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>