<?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 Denice on Medium]]></title>
        <description><![CDATA[Stories by Denice on Medium]]></description>
        <link>https://medium.com/@hal3?source=rss-d0913f96fef------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*N3niL7bIjDzVfcm1_ffGGQ.jpeg</url>
            <title>Stories by Denice on Medium</title>
            <link>https://medium.com/@hal3?source=rss-d0913f96fef------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 10:42:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hal3/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[Uncovering Brute Ratel C4 on Shodan]]></title>
            <link>https://hal3.medium.com/uncovering-brute-ratel-c4-on-shodan-bbf81cd86750?source=rss-d0913f96fef------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbf81cd86750</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[detection]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Denice]]></dc:creator>
            <pubDate>Fri, 28 Mar 2025 15:15:38 GMT</pubDate>
            <atom:updated>2025-04-01T13:16:38.862Z</atom:updated>
            <content:encoded><![CDATA[<h3>Uncovering Brute Ratel Infrastructure on Shodan</h3><p>What is Brute Ratel?</p><p>Brute Ratel is a commercial red-teaming adversarial tool. Brute Ratel contains features like DNS Over HTTPS, External C2 Channels, Indirect Syscalls, &amp; Built-in Debugger To Detect EDR Userland Hook.</p><p>Such features, cybercriminals love to use this tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*lZwmc0sxdZHIRkxVacD0eg.png" /><figcaption>(Credits to BruteRatel website)</figcaption></figure><p>First, we are going to pivot using our first note which is the IP <strong>54.70.52[.]38.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*zHZ1pzIHyUARahU-9u4Rbw.png" /></figure><p>Screenshot above shows the analyticsforyou[.]com</p><p>Let’s click <strong>Raw Data</strong> to get the JARM.</p><p>Okay so once you’re in that page, look for JARM under SSL:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*-C8fEUVUK4Qy1UJUyJbIBg.png" /></figure><p>The JARM we have is <strong>40d1db40d0000001dc43d1db1db43d76e1f79b8645e08ae7fa8f07eb5e4202.</strong></p><p>Now why are we using JARM?</p><p>JARM is an active TLS fingerprinting tool that efficiently identifies servers by generating a unique hash-based, allowing us to find common infra among a pool of servers on the internet. Using JARM in this case will help us identify the other malicious servers that use the same active <strong>TLS server, </strong>that is actually very helpful to identify which of them operate in the same infrastructure.</p><p>HOWEVER, Using JARM is helpful but running JARM alone could result to huge number of False Positives in Shodan, just like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Jw_upox1Ynmt1iKRy-IbEg.png" /></figure><p>We want to narrow down by adding the HTTP Headers to our threat hunting rule.</p><p>Let’s go back to our main node which is the 54[.]70.52.38, from there we can see the HTTP headers of that initial node.</p><p>(In Threat Hunting, <em>Why are adding HTTP Headers? and why does it do to our hunting rule? So, HTTP Headers are a great source of information about network traffic and other potential malicious activities from that pivot point</em>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*G1vo3wVd67ztZK-QWiNNuw.png" /></figure><p>Now let’s shall build our hunt rule with the combination of JARM and HTTP on Shodan:</p><p><strong>JARM:</strong> 40d1db40d0000001dc43d1db1db43d76e1f79b8645e08ae7fa8f07eb5e4202</p><p><strong>HTTP Header:</strong></p><p>HTTP/1.1 200 OK</p><p>Date: Sat, 30 Nov 2024 05:07:32 GMT</p><p>Content-Length: 14</p><p>Content-Type: text/plain; charset=utf-8</p><p><strong>JARM + HTTP Hunt Rule </strong>(<em>Just to note, the Date SHOULD NOT be included in the hunting rule</em>)</p><p><strong>ssl.jarm: 40d1db40d0000001dc43d1db1db43d76e1f79b8645e08ae7fa8f07eb5e4202 HTTP/1.1 200 OK Content-Length: 14 Content-Type: text/plain; charset=utf-8</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*280iEskzB1PwIetsbjMX5A.png" /></figure><p>Oops that resulted to <a href="https://www.shodan.io/search?query=ssl.jarm%3A+40d1db40d0000001dc43d1db1db43d76e1f79b8645e08ae7fa8f07eb5e4202+HTTP%2F1.1+200+OK+Content-Length%3A+14+Content-Type%3A+text%2Fplain%3B+charset%3Dutf-8">none</a>, I wonder why? AHH The space after the “ssl.jarm”</p><p>My mistake. Here we go we fixed it:</p><p><a href="https://www.shodan.io/search?query=ssl.jarm%3A40d1db40d0000001dc43d1db1db43d76e1f79b8645e08ae7fa8f07eb5e4202+HTTP%2F1.1+200+OK+Content-Length%3A+14+Content-Type%3A+text%2Fplain%3B+charset%3Dutf-8">ssl.jarm:40d1db40d0000001dc43d1db1db43d76e1f79b8645e08ae7fa8f07eb5e4202 HTTP/1.1 200 OK Content-Length: 14 Content-Type: text/plain; charset=utf-8 — Shodan Search</a></p><p>VOILA! Down to 24 Infrastructures from 3,643 of just searching the JARM only to JARM + HTTP Header we managed to tone it down to 24.</p><p>How about we try another way of checking some Brute Ratels? Let’s check the html hash from our initial node:</p><p>And let’s click on that, it will give us the 7k+ with the same html hash: <a href="https://www.shodan.io/search?query=http.html_hash%3A182674321">https://www.shodan.io/search?query=http.html_hash%3A182674321</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*fMHWNccqL5LAxms8kpxomQ.png" /></figure><p>That’s a lot and again, we do not want that, we can tone down our searches with html hash + HTTP header: (html hash is a great way to detect the network for malicious HTML via its hash. SAME I didn’t know html’s got a hash lol)</p><p><strong>http.html_hash:182674321 + HTTP/1.1 200 OK Content-Length: 14 Content-Type: text/plain; charset=utf-8</strong></p><p>Let’s check the facet analysis: <a href="https://www.shodan.io/search/facet?query=ssl.jarm%3A40d1db40d0000001dc43d1db1db43d76e1f79b8645e08ae7fa8f07eb5e4202+HTTP%2F1.1+200+OK+Content-Length%3A+14+Content-Type%3A+text%2Fplain%3B+charset%3Dutf-8&amp;facet=http.headers_hash">Facet Analysis</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*UjD-gkp9auVCqoVr_6eFpQ.png" /></figure><p>(What is a facet analysis? The Shodan API makes it possible to get a distribution of values for a property using a concept called facets. A facet is typically named after a matching property and lets you see how many results there are for a given property value. <a href="https://help.shodan.io/command-line-interface/3-stats#:~:text=The%20Shodan%20API%20makes%20it,for%20a%20given%20property%20value.">Generating Statistics — Shodan Help Center</a>)</p><p>Great! We were able to break it down to just 25 results. Let’s click the first one:</p><p><a href="https://www.shodan.io/search?query=ssl.jarm%3A40d1db40d0000001dc43d1db1db43d76e1f79b8645e08ae7fa8f07eb5e4202+HTTP%2F1.1+200+OK+Content-Length%3A+14+Content-Type%3A+text%2Fplain%3B+charset%3Dutf-8+http.headers_hash%3A972156420">ssl.jarm:40d1db40d0000001dc43d1db1db43d76e1f79b8645e08ae7fa8f07eb5e4202 HTTP/1.1 200 OK Content-Length: 14 Content-Type: text/plain; charset=utf-8 http.headers_hash:972156420 — Shodan Search</a></p><p>We are down to 11 results, but what if we just search only the http headers hash? Will it show us few results or more? Let’s check it!</p><p>Oops nope, we don’t want this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*w7LFnOBTqo0zs4C_LcOT6w.png" /></figure><p>It’s like we were back to 0 because the results are a lot…</p><p>Let’s try the first result of the facet analysis and the HTML hash:</p><p>http.headers_hash:972156420 http.html_hash:182674321</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*ig7-8GAlx9k5GZezUIPX2Q.png" /></figure><p>None, really odd. Let’s try the second result?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*1KO5SP7k8SxchnKFzvWIdg.png" /></figure><p>http.headers_hash:144518609 http.html_hash:182674321</p><p><a href="https://www.shodan.io/search?query=http.headers_hash%3A144518609+http.html_hash%3A182674321">http.headers_hash:144518609 http.html_hash:182674321 — Shodan Search</a> — YAY we are able to narrow it down to just 49 results!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*3XkjmU8O6DuHdGikJhT2dg.png" /></figure><p>Actually for the sake of trying other results of the Facet Analysis, let’s try each one:</p><p>http.headers_hash:151176955 http.html_hash:182674321</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*RxM-2t9kl2dU4moJ8qCIjg.png" /></figure><p>http.headers_hash:-1765438202 http.html_hash:182674321</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*NCfaZaYPD4qrXRNjTo7khA.png" /></figure><p>http.headers_hash:-1801069366 http.html_hash:182674321</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*JhGHCuhHocBs2kdqrLVcgg.png" /></figure><p>So the final hunting rule determining the Brute Ratel from our pivot point is:</p><h4><strong>http.headers_hash:144518609 http.html_hash:182674321</strong></h4><p>Another thing is…</p><p>Screenshot of the Shodan shows analyticsforyou[.]com and from that we can check VT (Cyber’s fave tool) if others have seen it too:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*zHZ1pzIHyUARahU-9u4Rbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yjf5_Opft9QNGbt-H1Pevg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nFlkkRi4XnaFlfIf8UAXrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-8nF_w-Ie2BgeYw2HTCAdw.png" /></figure><p>Would you like to learn more about Threat Hunting and don’t know where to start? I got you! Head over to <a href="https://academy.intel-ops.io/courses/hunting-adversary-infra">Hunting Adversary Infrastructure Training Course</a> and you will learn how to track APTs, Criminal, and Ransomware Groups:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0gpdVUF0guyWHmriYAk0wg.png" /><figcaption>(Image from Intel-Ops website)</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbf81cd86750" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yara]]></title>
            <link>https://hal3.medium.com/yara-069a8f21f632?source=rss-d0913f96fef------2</link>
            <guid isPermaLink="false">https://medium.com/p/069a8f21f632</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[yara-rules]]></category>
            <dc:creator><![CDATA[Denice]]></dc:creator>
            <pubDate>Tue, 06 Feb 2024 10:57:31 GMT</pubDate>
            <atom:updated>2024-02-06T10:59:18.514Z</atom:updated>
            <content:encoded><![CDATA[<h3>Yara Rule: Pushdo</h3><p>I wrote this rule to detect and match Pushdo samples. I ran this against few binaries of the same family and they all returned the same FTPs.</p><p>And that’s a lot of FTPs. Interesting.</p><pre>rule detects_pushdo<br>{<br>   meta:<br>     author = &quot;Denice&quot;<br>     description = &quot;Checks and detects if the strings match this Pushdo sample&quot;<br>     hash = &quot;891823DE9B05E17DEF459E04FB574F94&quot;<br>   <br>   strings:<br>     $str1 = &quot;http://cgi-bim.ru/panel/gate.php&quot;<br>     $str2 = &quot;Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders&quot;<br>     $str3 = &quot;{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}&quot;<br>     $str4 = &quot;Software\\Far\\Plugins\\FTP\\Hosts&quot;<br>     $str5 = &quot;Software\\Far2\\Plugins\\FTP\\Hosts&quot;<br>     $str6 = &quot;Software\\Far Manager\\Plugins\\FTP\\Hosts&quot;<br>     $str7 = &quot;Software\\Far\\SavedDialogHistory\\FTPHost&quot;<br>     $str8 = &quot;Software\\Far2\\SavedDialogHistory\\FTPHost&quot;<br>     $str9 = &quot;Software\\Far Manager\\SavedDialogHistory\\FTPHost&quot;<br>     $str10 = &quot;SELECT hostname, encryptedUsername, encryptedPassword FROM moz_logins&quot;<br>     $str11 = &quot;YUIPWDFILE0YUIPKDFILE0YUICRYPTED0YUI1.0&quot;<br>     $ftp1 = &quot;CuteFTP&quot;<br>     $ftp2 = &quot;FTPVoyager.ftp&quot;<br>     $ftp3 = &quot;Leechftp&quot;<br>     $ftp4 = &quot;DeluxeFTP&quot;<br>     $ftp5 = &quot;TurboFTP&quot;<br>     $ftp6 = &quot;novaftp&quot;<br>     $ftp7 = &quot;bitkinex&quot;<br>     <br> <br>   condition:<br>     uint16be(0) == 0x4D5A and<br>     4 of ($str*) and<br>     3 of ($ftp*)<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=069a8f21f632" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Clip Banker Rule Detection]]></title>
            <link>https://hal3.medium.com/clip-banker-rule-detection-f379f2002dee?source=rss-d0913f96fef------2</link>
            <guid isPermaLink="false">https://medium.com/p/f379f2002dee</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[malware-detection]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Denice]]></dc:creator>
            <pubDate>Tue, 09 Jan 2024 16:11:30 GMT</pubDate>
            <atom:updated>2024-01-09T16:11:30.523Z</atom:updated>
            <content:encoded><![CDATA[<pre>import &quot;pe&quot;<br><br>rule detects_clipbanker<br>  {<br>    meta:<br>      author = &quot;Denice&quot;<br>      description = &quot;Detects Clip Banker&quot;<br>     <br>  strings:<br>      $hex1 { 73 66 78 72 61 72 2E 65 78 65 } <br>      $hex2 { 41 76 44 43 72 79 70 ?? } //AvDCryptoBot.exe<br>      $import1 = &quot;HeapFree&quot;<br>      $import2 = &quot;HeapAlloc&quot;<br>      $import3 = &quot;CreateFileW&quot;<br>      $str1 = &quot;Payload.exe&quot; fullword ascii<br><br><br>  condition:<br>      uint16be(0) == 0x4D5A and<br>      all of ($hex*) and all of ($import*) and $str1 and <br>      pe.timestamp == 1471202149 and<br>      pe.rich_signature.version(23907)<br><br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f379f2002dee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Windows Sandbox and VirtualBox]]></title>
            <link>https://hal3.medium.com/windows-sandbox-and-virtualbox-d85a30687ef0?source=rss-d0913f96fef------2</link>
            <guid isPermaLink="false">https://medium.com/p/d85a30687ef0</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <dc:creator><![CDATA[Denice]]></dc:creator>
            <pubDate>Wed, 28 Jun 2023 09:32:25 GMT</pubDate>
            <atom:updated>2023-06-28T11:53:02.733Z</atom:updated>
            <content:encoded><![CDATA[<p><em>or I would like to call this as “Battle of Boxes.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*KfBZHWrZbv5R_n7aIcTWqw.png" /></figure><p>Hello there! It’s been a while since I last wrote my article here on Medium because I lost my motivation and got uninspired (<em>so since you are writing again, did you get your motivation back? HAH good one but still </em><strong><em>no</em></strong><em> though</em>) anyway hello! I wrote some <a href="https://hal3.medium.com/">few articles </a>that you <em>might </em>interested in:</p><ul><li>HACKING Central-Infosec{Maria_DB}</li><li>HACKING Central-Infosec{PostgreSQL}</li><li>Novice guide to Malware Analysis</li><li>12 Cybersecurity tools I learned in 2021</li></ul><p>Before anything else, Stream Taylor Swift on Spotify please :) Where my swifties at?!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4uwy8nK73YkNvBKc" /></figure><h3>DISCLAIMER: THIS IS A VERY SHORT POST.</h3><p>As someone who’s into analyzing Malware and other malicious stuff, I am obliged to build my own Dirty VM <em>(What is a Dirty VM? this is the place where you can run and detonate those malicious files that were sent to your email by some cybercriminal WITHOUT infecting your physical host but please don’t if you are not fully equipped to do so.)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*nxG5wXssH5MbBixTvcbxFw.png" /></figure><p><em>Another thing, if you are building your own Dirty VM you will probably forget your password after some months, it happens and it’s totally ok.</em></p><p>Someone mentioned to me that there’s this called “Windows Sandbox” on Windows! Wow, I spend a lot of time building my own VM and there’s one that is built by MSFT?! Yeah… There are limitations to using Windows Sandbox. First, I’m gonna list the things that your own VM can do:</p><ul><li>You can customize your settings through your VM of choice (I use Oracle <a href="https://www.virtualbox.org/">VirtualBox</a>, I’m a fan)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/0*lBTwA5GXyxd55BBH.png" /></figure><ul><li>You can run multiple stuff at once:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/0*gBZ6wqoWSCPafyqs.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/0*YqROuHMk1btIVAPW.png" /></figure><ul><li>You can have those VMs communicate with each other (PING PING PING PINGGGG)</li><li>You can run files on your VM of choice.</li><li>You can use different tools for your malware analysis.</li><li>You can tweak the Network Settings of <strong>each of your VM:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/0*eM2Ys0Wr1l8BizlI.png" /></figure><p>And sure, there’s a lot more. <strong>Windows Sandbox </strong>on the other hand<strong>:</strong></p><ul><li>You can also run files on Windows Sandbox.</li><li>You can definitely run different tools for your analysis (Hello my favorite <strong>PEStudio</strong>)</li><li>You can only run the Windows Sandbox one at a time, here’s an example whenever I try to open another Windows Sandbox while another Windows Sandbox is open:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*AGznaXuCXoOnfbsD.png" /></figure><ul><li>Your physical host and your Windows Sandbox can communicate with each other <strong>UNLESS</strong> you disable the network adapter. Please keep that in mind before you run a malicious file on your Windows Sandbox.</li><li>If you close the Windows Sandbox, everything you did will be deleted and lost. If you open another, it will be very fresh Windows Sandbox.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*Th2vFAIthmWNBI2l.png" /></figure><p>3 things I like doing on my own VM that I cannot do on Windows Sandbox:</p><ul><li>Create multiple VMs that can communicate with each other</li><li>Setup a fake internet simulator for my two VMs.</li><li>Create snapshots</li></ul><p>So, to sum it up, yes Windows Sandbox is a great tool for malware analysis however, I think it has limitations when it comes to tools that you want to use for digging things deeper. You can learn more on how to install the Windows Sandbox here: <a href="https://learn.microsoft.com/en-us/windows/security/application-security/application-isolation/windows-sandbox/windows-sandbox-overview">Windows Sandbox — Windows Security | Microsoft Learn</a></p><p>And don’t worry, someone (me that’s me) once said: “Being in Infosec also means endless setting up of VMs.”</p><p>As my way of saying thank you for reading, here’s a meme:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*wjAFNX4tkrZ-QGFF" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d85a30687ef0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My 2023 Information Security Resolutions]]></title>
            <link>https://hal3.medium.com/my-2023-information-security-resolutions-c79954bb45dd?source=rss-d0913f96fef------2</link>
            <guid isPermaLink="false">https://medium.com/p/c79954bb45dd</guid>
            <category><![CDATA[resolutions]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Denice]]></dc:creator>
            <pubDate>Mon, 02 Jan 2023 16:01:49 GMT</pubDate>
            <atom:updated>2023-01-02T17:19:16.677Z</atom:updated>
            <content:encoded><![CDATA[<p>Happy New Year everyone!!!</p><p>I am writing some of my Information Security resolutions that I plan on doing. :-) I did write some stuff for the last two years, but I think I am planning to be more active when it comes to sharing. I’m going to keep this entry short unlike my previous blogs. You can check my profile to see them.</p><p>So here goes!</p><ul><li>I will write and blog more about Malware Analysis. Sharing knowledge in this industry is caring. Having people to give you feedback is the key.</li><li>I will join and participate more <strong>Capture The Flag events</strong>. I like CTFs because it helps me to improve my skills and when you team up with different people, you’ll learn their perspective how they are able to find flags or have their methodologies adopted and vice versa! You both learn plus more friends and connections, right! The most important part. :-) (shout out my CTF teammate! <a href="https://twitter.com/anguasec">advanced persistent imposter (@AnguaSec) / Twitter</a>)</li><li>I plan to be more patient with myself when it comes to learning new different things, no matter how slow, as long as there is progress, I am going to consider that as a<strong> win</strong>.</li><li>Attend more cybersecurity conferences like the way I did last 2020–2021. I have no idea why I kinda stopped but I will plan on joining more this year and hopefully speak again! :)</li><li>Make <strong>Assembly Language </strong>my jam. I said this last year but I failed so I am gonna try one more time.</li><li>Give <strong>Binary Exploitation</strong> a try.</li></ul><p>That’s all!</p><p>I hope you have a wonderful day, reader. Thank you for your time!</p><p>As a thank you, here’s a photo of my dog:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*loi26fb-XImyWOFMTP6Qdg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c79954bb45dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Novice guide to Malware Analysis]]></title>
            <link>https://hal3.medium.com/novice-guide-to-malware-analysis-ce3a2ac399e4?source=rss-d0913f96fef------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce3a2ac399e4</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[blogging]]></category>
            <dc:creator><![CDATA[Denice]]></dc:creator>
            <pubDate>Thu, 11 Aug 2022 21:14:20 GMT</pubDate>
            <atom:updated>2022-08-12T11:51:41.153Z</atom:updated>
            <content:encoded><![CDATA[<p>For this first Malware Analysis Blog, I present you the Malware sample from <a href="https://github.com/HuskyHacks">HuskyHacks</a>. For this entry, I will be using <strong>FLARE VM</strong> where I will be detonating the malware and <strong>Remnux</strong>’s purpose is for DNS and Wireshark for Packet Capturing.</p><p><strong>NOTE:</strong> Please make sure you run safety checks on your VMs before running malware, make sure they don’t communicate to your physical host and they’re only supposed to communicate with each other (<strong>FLARE</strong> and <strong>Remnux</strong>)</p><p><em>ALSO, Do not forget to have a clean snapshot of your VM. Why do we do this? So we can always revert back to the clean state of our VM, during the moment we haven’t detonated the malware yet, like really really fresh out of the box type of VM no sus and all 💁</em></p><p>LET’S START! :) <em>(I suggest having a playlist companion while doing this Analysis, of course my playlist is Taylor Swift. See reference from my previous </em><a href="https://hal3.medium.com/central-infosec-postgresql-dcbb7f5f267d"><em>blog</em></a><em>)</em></p><p>Here we are faced with this unknown binary.</p><p>First we will dive into the<strong> Static Analysis</strong> part of Malware Analysis.</p><p>(What is <strong>Static Analysis</strong>? <em>Static Analysis </em>is the process of analyzing the malware without actually running it using tools like<strong> PEstudio</strong>)</p><p><strong>PE Studio</strong> (<a href="https://www.winitor.com/download">Winitor</a>) so here are the features of PE studio (this is also found in their website):</p><p>Features:</p><ul><li>transform RAW data into information</li><li>spot anomalies</li><li>detect embedded files</li><li>collect imports, exports, strings, resources</li><li>provide hints, indicators, groups, thresholds</li><li>provide @MITREattack indicators</li><li>retrieve scores from @Virustotal</li><li>consume configurations files</li><li>create XML report</li></ul><p>First things first, Let’s get the hashes of this binary: (so how do we that?)</p><p><strong>Open up FlareVM,</strong> open the <strong>cmder</strong>, and navigate to the folder where you place the malware:</p><p>For example, it is on my Desktop</p><p>The commands I ran were:</p><pre>&gt; cd Desktop<br>&gt; md5sum.exe &lt;File Name&gt;<br>&gt; sha256sum.exe &lt;File Name&gt;</pre><p>and it gave me the following results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*jAYp1jfERlhwxt9AJTh87Q.png" /></figure><p><strong>MD5:</strong></p><p>689ff2c6f94e31abba1ddebf68be810e</p><p><strong>SHA256</strong></p><p>248d491f89a10ec3289ec4ca448b19384464329c442bac395f680c4f3a345c8c</p><p>I mentioned earlier about <strong>PEstudio</strong>, so let’s start using that.</p><p><strong>PEStudio </strong>is easy to use, you just have to drag and drop the file you want to analyse</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QnxfOKO25KIexs2h76Ewaw.png" /></figure><p><strong>PEStudio </strong>gave us information about the indictors, libraries, functions, and strings. (Later we will dive why <strong>Strings</strong> are important) But just by looking at this information, we only have the tip of the iceberg, we haven’t really tackled what it does. We will be running the malware later on.</p><p>Maybe, just maybe you’re wondering if other people have also seen this in the wild. There’s one way to know that<em> (or you can just directly ask them) </em>but I think I wanna check out <strong>VirusTotal</strong></p><p><em>(What is </em><strong><em>VirusTotal</em></strong><em>? VT is a malware repository, or for longer description you can check their site: </em><a href="https://support.virustotal.com/hc/en-us/articles/115002126889-How-it-works"><strong><em>How it works — VirusTotal</em></strong></a><em>)</em></p><p>Since we already have the hashes we can search it on VT<em> (you can also upload </em><strong><em>BUT</em></strong><em> uhh I don’t think I can recommend uploading because Enterprise users can see the files you upload, what if the file contains sensitive information or assets? We don’t want that.)</em></p><p>Let’s get into it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PQC9oanv6wQO_cnSlUoDrg.png" /></figure><p><strong>26 security vendors have found this file malicious.</strong> VT is very helpful because it gives us information like the PE Info, History, Basic Details, etc. I also like looking at the Community Comments because people like to share their analysis on that specific file I am looking:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*kTrzXomepLfRSh6XE4mcRg.png" /></figure><p>Okay let’s get back to our <strong>FLARE VM</strong>:</p><p>I mentioned earlier regarding STRINGS. Strings can contain useful information about the file. In FLARE VM, we can use <strong>Strings</strong> and <strong>Floss.exe</strong></p><p>Let’s run the file against<strong> Floss.exe</strong>, open up your Cmder and type the following: (I renamed the file)</p><pre><em>floss.exe RAT.exe.malz &gt; result.txt</em></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*NA3btYlTXh0P4qoNF_MWsA.png" /></figure><p>Let’s open the result.txt file to see what’s inside. Don’t be scared! We haven’t ran the malware yet, so relax, take a deep breath, and drink your water!</p><p>I wanted to check if <strong>PEStudio</strong> and<strong> Floss.exe</strong> return the same thing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*l5davyO608sT6YiJ3Oyd3A.png" /></figure><p>Great, they do!</p><p>Alright alright, looking at the result… What are those?!?!?! Same thoughts, my friend. Same thoughts. They look gibberish to me, but not really.. If you scroll down there are valuable stuff we can find there like the ff:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*6nntYqdoVaHu8m_5ggdHJw.png" /></figure><p>What are those?! Fret not, my friend. We have this tool called <a href="https://malapi.io/">MalAPI.io</a> to check what each process does</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtQNPp4wS42YyodsNuTn9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*luH1IKWQl8N-tlruW0fILQ.png" /></figure><p>ALSO I want to add another resource that I actually like looking at when I feel a bit lost, head over to <a href="https://www.sans.org/posters/hunt-evil/">Hunt Evil | SANS Poster</a> ! :) The poster shows us what processes are normal on Windows and What not.</p><h3>OKAY LET’S GET TO THE REAL THING — DETONATING THE MALWARE!</h3><p>This is called Dynamic Analysis.</p><p><em>(What is Dynamic Analysis? </em><strong><em>Dynamic analysis</em></strong><em> detonates or runs the suspicious file in a</em><strong><em> sandbox</em></strong><em>)</em></p><p><strong>Please just please, DO NOT run Malware on your PHYSICAL HOST.</strong></p><p>Does Denice ever feel nervous when running unknown PE on her sandbox? Don’t worry, I still feel scared running malware on my sandboxes. I guess the feeling just never goes away!</p><p>Are you ready? Are you ready? Are you ready kids?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y6qDkwQX8xs74Gl5.jpg" /></figure><h4><strong>AGAIN:</strong> Please perform SAFETY checks first before running it. I double check everything EVERY SINGLE TIME I run malware on my sandbox.</h4><p>K, Last BEFORE we proceed the standard practice when it comes to sharing malicious files, we put them in a password-protected file and the password is always <strong>infected</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*nts0gBOg6mwX-LLFDOGkOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*fBKHCRlEtFRoNRa1s4qEwg.png" /></figure><p>OK now you’re wondering what is .malz? So its adding another extension to the file so when you accidentally click it (Yes mistakes happen but we gotta be really careful because we dont know what we’re dealing with) the malware doesnt run. :-) Another thing in the industry if you ever find <strong>IOCS </strong>you can defang them for<strong> example</strong> like this,<strong> google[.]com / 127[.]0[.]0[.]1</strong></p><p>Make sure <strong>Wireshark</strong> is running on your <strong>remnux VM</strong> so we can capture whatever this file is communicating to.<em> (I configured the network settings for Remnux VM and Flare VM, if you want to know more about this I can make another blog post on how to configure the settings)</em></p><p>Alright, let’s run the malware now (remove the extension)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*rOXYAzGpCQnInxjT-0Abng.png" /></figure><p>Running the file results to the image above. I wonder what I did to NOT have soup for me?! Is it because I clicked the malicious file? Yes. Maybe yes.</p><p>Now let’s proceed to <strong>Remnux VM</strong> to check what it captured:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SMRdGozVJs-OdNoEzr5k5A.png" /></figure><p>Okay very very very interesting stuff. what are those? What is this request?</p><p>Another interesting stuff is this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bj20IOIhSgjSm7FcuiBoPg.png" /></figure><p>Again what are these? Let’s dive into what it exactly does. Are you still with me?</p><p>Let’s follow the HTTP Stream of the /mscorelib.exe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*wITn5x6vi2modvSCBmzGjA.png" /></figure><p>Since it has a <strong>GET </strong>request, did this download something? Did this download a file? I am so curious, let’s check out the <strong>Downloads </strong>folder if it really did download anything:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*FVkYyE9p_1Wot2VNdKhExg.png" /></figure><p>None. (I downloaded those files :D)</p><p>Alright, alright, think. Earlier part of this blog, I mentioned that Strings contain USEFUL information about the binary. so let’s go back and check if there are some we can use to continue our analysis.</p><p>Ok, so I searched the msdcorelib.exe just for starters and voila! there’s something next to it!! IS THAT A FILE PATH?!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*kV8NE9LjjQvFuqcS7k8DiQ.png" /></figure><p>Omg omg omg. <strong>ALERT THE MEDIA.</strong></p><p>Ok relax! Let’s use this tool called<strong> Procmon</strong> or <strong>Process Monitor</strong>.</p><p>(What is <strong>Procmon</strong>? <em>Process Monitor</em> is an advanced monitoring tool for Windows that shows real-time file system, Registry and process/thread activity. <a href="https://docs.microsoft.com/en-us/sysinternals/downloads/procmon">Process Monitor — Windows Sysinternals | Microsoft Docs</a>)</p><p>Have you downloaded it yet? Hope you did!</p><p>Open <strong>Procmon</strong> and don’t get too overwhelmed because of the processes you see as you open it! We will filter the noise and only retain what we need.</p><p>For that, let’s use the the Process Monitor Filter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*YhFN35PGYCvVEf1os8Br8g.png" /></figure><p>Thankfully you can use different filter in ProcMon, there’s Process Name, Category, User, and other things that can cater to your needs. In this Analysis, we will be using the filter <strong>Process Name</strong>.</p><p>Choose from the dropdown &gt; Process Name &gt; contains &gt; ProcessName</p><p>I also added the File Path that we saw earlier in the Filter criteria, so if you haven’t done that, please add it. Here’s my filter: #SharingisCaring</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*QSyqkrxJGrPPwwKDit8PJQ.png" /></figure><p>If you apply that to ProcMon it will return a very very clean ProcMon:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bsldUfbp21o3BvSNIBJfIg.png" /></figure><p>We want to see something based on the criteria we selected. How do have them spawn again?</p><p>Yes, we will detonate the malware once again. (I know, I’m sorry!)</p><p>Wooop!!! Interesting results shown by ProcMon:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFLG9lz1y3fLr5X1yPZq9w.png" /></figure><p>Let’s click on the result to see more properties:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*VCStVt6ZCwsW3F7F_oWEYw.png" /></figure><p>As shown above, it looks like this process is all about creating a file, based on the <strong>Operation property</strong>. What file was created? and where is it located? Looking at the screenshot, there’s a File Path right in front of our eyes, is it the file we are looking for?</p><p>We’re going to go to the startup folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*r4zV2XCGcSieJr6guWL8KQ.png" /></figure><p>GOTCHU! GOTCHU! It downloaded a file called <strong>mscordll.exe</strong> ! (We can use this to filter things later on via ProcMon)</p><p>We are using another tool called TCP View.</p><p><em>(What is </em><strong><em>TCP View</em></strong><em>? TCPView is a Windows program that will show you detailed listings of all TCP and UDP endpoints on your system, including the local and remote addresses and state of TCP connections. </em><a href="https://docs.microsoft.com/en-us/sysinternals/downloads/tcpview"><em>TCPView for Windows — Windows Sysinternals | Microsoft Docs</em></a><em>)</em></p><p>It shows us very rich information but we only need a specific thing, the RAT.exe, so let’s find it on TCP View:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qHJkmtdsabldW9u7xfLQXg.png" /></figure><p>Right, TCP View provides information about RAT.exe: Process ID, Protocol, Connection State, Creation Time, etc.</p><p>In this information, <strong><em>RAT.exe is listening to 0.0.0.0 Local Port 5555</em></strong>.</p><p>We’ll be introducing a tool called <strong>Netcat.</strong></p><p><em>(What is </em><strong><em>Netcat</em></strong><em>? This simple utility reads and writes data across TCP or UDP network connections. It is designed to be a reliable back-end tool to use directly or easily drive by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need, including port binding to accept incoming connections. </em><a href="https://sectools.org/tool/netcat/"><strong><em>Netcat — SecTools Top Network Security Tools</em></strong></a><em>)</em></p><p>It is just fitting that we will be using this tool to interact with this binary.</p><p>Let’s go over to our <strong>Remnux box </strong>and use<strong> Netcat.</strong></p><p>In netcat, here are the commands we can use to cater our needs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*7bej7VrzbgMp8XVdn1Vakg.png" /></figure><p>But for this specific task, we will be using the following command:</p><pre><em>nc -nv &lt;IP of our VM&gt; &lt;port which it listens to&gt;</em></pre><pre><em>nc -nv 10.0.0.8 5555 <br></em></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*vH14FIh7SKJoL4eyuYcZyQ.png" /></figure><p>HELL YEAH. Connection succeeded everyone!! give yourselves a round of applause :-)</p><p>But what is the texts below? That is base64 OR if you have no idea we can use <strong>CyberChef</strong> tool to find that out.</p><p><a href="https://gchq.github.io/CyberChef/">CyberChef</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*t2Dpn4dl1YF4bwrYXqzahg.png" /></figure><p>Wait wait wait, I saw those texts in the Strings when we ran the floss.exe against it, right? Did you see it too?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*pl8l4And2-A4QPCpyF5I4w.png" /></figure><p>Lets try another command in our remnux box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jSWP0rFZuhKX5YqVwi2K1A.png" /></figure><p>This returns the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nb0XhzRpNGqRYfCxseR8bw.png" /><figcaption>did this just gather information about my Flare VM?!?</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*JzPqrVO7m5ijpVHbv7Pq9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*NxZy7K1cJaZaAQrOKx-aAA.png" /></figure><p>I tried out other commands to check if I can gather more information about the Windows where I ran the malware.</p><p>Oof and it did give me details.</p><p>Since we have more details on this Analysis, we can use another filter on ProcMon! Operation IS TCP, to see if the Process is receiving and sending information.</p><p>Head over to your Remnux once again and type out a command, for example <em>whoami</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*a8gKYIgFnzeN2pnVDCEYMg.png" /></figure><p>and now head over to your FLARE VM to see if Process Monitor is displaying details:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*oRsWmpu30KN9MOW78-yw5Q.png" /></figure><p>TCP RECEIVE AND TCP SEND! Exchanging infOkay to summarize this Analysis, it contains command injecting capabilities. This binary can easily inject any command and it’ll return the information it requested to whoever is connected in port 5555.</p><p>Now we found out what this Malware does…</p><p>I HOPE YOU LEARNED SOMETHING FROM THIS ANALYSIS. :-)</p><blockquote><strong>Tool Recap:</strong></blockquote><blockquote><strong>FLARE VM (</strong><a href="https://github.com/mandiant/flare-vm"><strong>mandiant/flare-vm (github.com)</strong></a><strong>)</strong></blockquote><blockquote><strong>REMNUX (</strong><a href="https://docs.remnux.org/"><strong>REMnux: A Linux Toolkit for Malware Analysis — REMnux Documentation</strong></a><strong>)</strong></blockquote><blockquote><strong>PEStudio (</strong><a href="https://www.winitor.com/"><strong>Winitor</strong></a><strong>)</strong></blockquote><blockquote><strong>Wireshark</strong></blockquote><blockquote><strong>Floss.Exe</strong></blockquote><blockquote><strong>Netcat</strong></blockquote><blockquote><strong>CyberChef</strong></blockquote><p>Thank you for reading!!! Here’s a picture of my cat sleeping as a THANK YOU</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LQKsZeHzl0-9vJDr" /></figure><p>#MalwareAnalysis #CyberSecurity #InformationSecurity</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce3a2ac399e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[12 Cybersecurity tools I learned in 2021]]></title>
            <link>https://hal3.medium.com/since-the-year-is-ending-a-productive-year-despite-of-the-pandemic-here-are-the-12-tools-i-731b5ac19295?source=rss-d0913f96fef------2</link>
            <guid isPermaLink="false">https://medium.com/p/731b5ac19295</guid>
            <dc:creator><![CDATA[Denice]]></dc:creator>
            <pubDate>Thu, 30 Dec 2021 14:27:07 GMT</pubDate>
            <atom:updated>2021-12-30T15:43:08.507Z</atom:updated>
            <content:encoded><![CDATA[<p>Since the year is ending (a productive year despite of the pandemic) here are the 12 tools I learned in the year of 2021.</p><p><em>This is a very short blog post.</em></p><p>1. <strong>Oledump</strong> - oledump.py is a program to analyze OLE files. These files contain streams of data. oledump allows you to analyze these streams. Many applications use this file format, the best known is MS Office. .doc, .xls, .ppt, … are OLE files (docx, xlsx, … is the new file format: XML inside ZIP)</p><p>(<a href="https://blog.didierstevens.com/programs/oledump-py/">https://blog.didierstevens.com/programs/oledump-py/</a>)</p><p>2. <strong>Process Hacker </strong>- A free, powerful, multi-purpose Windows tool that helps you monitor system resources, debug software and detect malware.</p><p><a href="https://processhacker.sourceforge.io/">Overview - Process Hacker (sourceforge.io)</a></p><p>3. <strong>Uncoder.IO</strong> | Universal Sigma Rule Converter for SIEM, EDR, and NTDR](<a href="https://uncoder.io/">https://uncoder.io/</a>) - Uncoder.IO is the online Sigma translation engine for SIEM saved searches, filters, queries, API requests, which helps SOC Analysts, Threat Hunters, and Detection Engineers to translate detections on the fly. It allows Blue Teams to break the limits of being dependent on a single tool for hunting and detecting threats and avoid technology lock-in. With an intuitive look and feel and streamlined flow, you can translate queries from one tool to another on the fly in a single place without the need to switch to the SIEM environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8pFkBUjJUUyrcVgeltUJPg.png" /></figure><p>4. <strong>Immunity Debugger</strong> is a powerful new way to write exploits, analyze malware, and reverse engineer binary files. It builds on a solid user interface with function graphing, the industry&#39;s first heap analysis tool built specifically for heap creation, and a large and well supported Python API for easy extensibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*mLq0pC0P1wq_PLIHbj4KPQ.png" /></figure><p><a href="https://debugger.immunityinc.com/ID_register.py">(https://debugger.immunityinc.com/ID_register.py</a>)</p><p>5. <strong>INetSim</strong> is a software suite for simulating common internet services in a lab environment, e.g. for analyzing the network behaviour of unknown malware samples.</p><p>(<a href="https://www.inetsim.org/">https://www.inetsim.org/</a>)</p><p>6. <strong>FLAREVM</strong> - is a <strong>freely available and open sourced Windows-based security distribution</strong> designed for reverse engineers, malware analysts, incident responders, forensicators, and penetration testers.</p><p>(<a href="https://www.fireeye.com/services/freeware/flare-vm.html">https://www.fireeye.com/services/freeware/flare-vm.html</a>)</p><p>7. <strong>REMNUX</strong> - REMnux® is a Linux toolkit for reverse-engineering and analyzing malicious software. REMnux provides a curated collection of free tools created by the community. Analysts can use it to investigate malware without having to find, install, and configure the tools</p><p>(<a href="https://remnux.org/">https://remnux.org/</a>)</p><p>8. <strong>SCDBG</strong> - is a shellcode analysis application built around the [libemu emulation](<a href="http://libemu.carnivore.it/">http://libemu.carnivore.it/</a>) library. When run it will display to the user all of the Windows API the shellcode attempts to call.</p><p>(<a href="http://sandsprite.com/blogs/index.php?uid=7&amp;pid=152">http://sandsprite.com/blogs/index.php?uid=7&amp;pid=152</a>)</p><p>9. <strong>MalAPI.io</strong> - maps [Windows APIs](<a href="https://docs.microsoft.com/en-us/windows/win32/apiindex/windows-api-list">https://docs.microsoft.com/en-us/windows/win32/apiindex/windows-api-list</a>) to common techniques used by malware</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2jIj6lZruHoiAVBAd1khw.png" /></figure><p>(<a href="https://malapi.io/faq">https://malapi.io/faq</a>)</p><p>10. <strong>Hashcat</strong> is the world’s fastest and most advanced password recovery utility, supporting five unique modes of attack for over 300 highly-optimized hashing algorithms. hashcat currently supports CPUs, GPUs, and other hardware accelerators on Linux, Windows, and macOS, and has facilities to help enable distributed password cracking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*M9JA6ORSINdJdHqlQctjAw.png" /></figure><p>(<a href="https://github.com/hashcat/hashcat#license)License">https://github.com/hashcat/hashcat#license)</a></p><p>11. <strong>Brutescrape</strong> | A web scraper for generating password files based on plain text found in specific web pages.</p><p>(<a href="https://github.com/cheetz/brutescrape">https://github.com/cheetz/brutescrape</a>)</p><p>12. <strong>Empathy</strong> - Already learned this years ago, but just in case you need it.</p><p>Empathy is the ability to emotionally understand what other people feel, see things from their point of view, and imagine yourself in their place. Essentially, it is putting yourself in someone else&#39;s position and feeling what they must be feeling.</p><p><a href="https://www.verywellmind.com/what-is-empathy-2795562">What Is Empathy? (verywellmind.com)</a></p><p>Happy New Year everyone! Cheers to this year and hopefully another productive year this 2022!</p><p>I am going to make a blog post for each tool and what they do. Watch this space next year ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=731b5ac19295" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Central-Infosec{PostgreSQL}]]></title>
            <link>https://hal3.medium.com/central-infosec-postgresql-dcbb7f5f267d?source=rss-d0913f96fef------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcbb7f5f267d</guid>
            <dc:creator><![CDATA[Denice]]></dc:creator>
            <pubDate>Mon, 12 Apr 2021 12:57:46 GMT</pubDate>
            <atom:updated>2022-05-21T15:35:30.730Z</atom:updated>
            <content:encoded><![CDATA[<h3>HACKING Central-Infosec{PostgreSQL}</h3><p>Hi! First of all, thank you for reading my<a href="https://hal3.medium.com/central-infosec-maria-db-50c75585744e"> first</a> write up of Central Infosec’s Capture The Flag event. *heart eyes*</p><p>Let’s do another write-up. <em>*Stretches* *puts on headphone while listening to Taylor Swift’s Complete Collection on Spotify*</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*sQBEdm3vS8AbujRwMYrUTg.png" /><figcaption>BTW, Today Was A Fairytale’s my favorite of them all. Love you Tay.</figcaption></figure><p>Ok, so we are again faced with another box of Database however this time it is PostgreSQL. (NOTE: Central Infosec approved and gave me a go to do this write-up)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*vHryNDYgnTkOin1SQtY9Uw.png" /></figure><p>Let’s fire up that VM and our network configuration. I know I already showed it on my first writeup however I was not <strong>that</strong> specific, so some of you might not be able to follow.</p><p><strong>(NOTE: this is just my preferred settings. you can choose what you like :) )</strong></p><p>I have 2 VMs on my VMWare:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*fLC3RU45KdGamWfyvTNP8A.png" /></figure><p>Right click the VM you want to configure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*KbK24TaAjUVGaYcTEJRMqw.png" /></figure><p>Click the Settings option and Network Adapter from Virtual Machine Settings. For the Network connection, choose <strong>host-only.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*wuSiwsRZ8lOXp1TvS_2XGA.png" /></figure><p>Given the steps above, please follow them on the next VM which is the <strong>Central Infosec CIS-WEBSRV01. </strong><em>(you might wanna turn it off and on after to take effect)</em></p><p>Again, this is just my <strong>preferred </strong>settings. You can always choose what you like! <em>(Note: I think there are some challenges that require it to be in BRIDGED mode. so yes try to switch.)</em></p><p>The rest of the walkthrough will be done from the Linux Machine. Done? Yes done. Cool. Let’s go to the main event! <em>rings bell *ting ting ting ting*</em></p><p>I scanned my network again to see the IP of the vulnerable machine:</p><pre>sudo arp-scan -l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*O3-8mi_GWQrta0lXuYeIDQ.png" /></figure><p>Got the IP now. Very awesome! Now let’s check if Port 5432 is OPEN. (<a href="https://nmap.org/nsedoc/scripts/pgsql-brute.html">https://nmap.org/nsedoc/scripts/pgsql-brute.html</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*TTkcLtB4mt713GeZ7TlIAQ.png" /></figure><p>Perfect, it is OPEN.</p><p><strong>Warning: please do not scan a network UNLESS you are AUTHORIZED to do so.</strong></p><p>What’s next? Let’s <em>try </em>to connect to the PostgreSQL using the command below:</p><pre>psql -h &lt;IPofCentralVM&gt; -U admin</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*Y0r3-mXQP6YHfL69YKDo6w.png" /></figure><p><em>*GASPS* </em>There is no “admin” role. How. Ok, don’t give up. Let’s try “root”</p><pre>psql -h &lt;IPofCentralVM&gt; -U root</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*QUBHIdDkTUNfnerolUESoA.png" /></figure><p><em>PANIC INTENSIFIES. </em>This cannot be. There’s no root and admin. That’s weird. Okay let’s try another command:</p><pre>psql -h &lt;host&gt; -p 5432 -U admin -d postgres <em>(-U for username, -d for Database Name)</em></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*d9Fv7JqsRQlBpTHooaZBvA.png" /></figure><p>okay. NONE. how about we take drink a glass of water first before proceeding?</p><p>Think think think think think. LAST, let’s try to guess another. How about the postgres name itself? hmm.</p><pre>psql -h &lt;host&gt; -p 5432 -U postgres -d postgres</pre><p>ALERT!!!! WE GOT IN. WE GOT IN Y’ALL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*CbSGNUENJCpPrZcjHHRvjA.png" /></figure><p>Let’s check info under the DATABASE postgres, see what tables are in here:</p><pre>\l <em>(this command shows us the list of databases)</em></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/198/1*mZk77sfw78_nqVK3BKCq5g.png" /></figure><p>There are 3 databases as presented above. Let’s examine all three. Start with the first database “postgres”. First we will switch to that DB using the command below:</p><pre>\connect postgres (or you can do \c postgres too)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*LONpav2nFg5cXgrBABRL3g.png" /></figure><p>Nice! you’re doing great! Let’s investigate if there are tables.</p><pre>\d<em> (this command shows us the list of tables under your selected DB)</em></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*AhYG1juvPkTJ8vMUGKFCpg.png" /></figure><p>Yay!! There is! kinda weird because the the MySQL challenge gave us hint from the very start (see here: <a href="https://hal3.medium.com/central-infosec-maria-db-50c75585744e">https://hal3.medium.com/central-infosec-maria-db-50c75585744e</a>)</p><p>We will try to know what’s inside those table. Are you ready? Yes? Yes? Yes.</p><pre>SELECT * FROM postgres (or you can also do <em>TABLE postgres;</em>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*IxwqFf0pCKH5UUNf31JlWQ.png" /></figure><p>OMG. Treasure found. Is this the FLAG?! <em>cross fingers. </em>We’ll go back to the Central Infosec CTF page and see if it’s really it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*92JwG4vEleniSc8kcaOwjA.png" /></figure><p>BRAVO. It is the FLAG!!! Sweet. Never leave your DBs unattended.</p><p><em>IMPORTANT QUESTION: So how many Taylor Swift songs did you finish alongside this quest?</em></p><p><em>(Anyway I am curious what’s inside the template0 and template1! I would cover it here but I’ll leave that up to you.)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ByEljRPzymZJtFpl.jpg" /><figcaption>(credits to the owner of this image)</figcaption></figure><p>Yay!! Thank you very much again for reading my second writeup about Central Infosec CTF. I hope you are able to follow these steps and find the flag as well!</p><p>—</p><p>If you want to know more about Central Infosec, please see below:</p><p><strong>(btw I’m not affiliated with Central Infosec)</strong></p><p><strong>Central InfoSec</strong></p><p>Central InfoSec is an award-winning cyber security company that offers professional security services including Red Teaming, Penetration Testing, and Security Training. The Central InfoSec team consists of skilled security professionals bringing a total of 20+ years of red teaming, penetration testing, web application, and exploitation experience. Central InfoSec team members have achieved industry leading professional certifications including OSCP, OSWP, GXPN, GPEN, GWAPT, GMOB, AWS-CSS, AWS-CCP, PenTest+, CEH, CISSP, and more. The Central InfoSec team goes one step further and develops open-source tools including Burp Suite extensions, Cobalt Strike aggressor scripts, scripts tying into tools (including GoPhish, PhishMe, Slack, Lair), other custom-built security tools, and Capture The Flag (CTF) events!</p><p><strong>Achieved Awards</strong><br>Central InfoSec has achieved the following industry awards:<br>Best Penetration Testing &amp; Security Consulting Firm — Corporate Excellence Awards, 2021<br>5 Best Cyber Security Companies to Watch — The Silicon Review, 2021<br>10 Best Security Companies — CIO Bulletin, 2021<br>10 Most Promising Cybersecurity Consulting/Service Companies — CIO Review, 2020</p><p><strong>Social Media links:</strong></p><p><a href="https://www.facebook.com/centralinfosec/">https://www.facebook.com/centralinfosec/</a><br><a href="https://twitter.com/centralinfosec">https://twitter.com/centralinfosec</a><br><a href="https://www.linkedin.com/company/centralinfosec/">https://www.linkedin.com/company/centralinfosec/</a><br><a href="https://twitter.com/JAMESM0RR1S">https://twitter.com/JAMESM0RR1S</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcbb7f5f267d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Central-Infosec{Maria_DB}]]></title>
            <link>https://hal3.medium.com/central-infosec-maria-db-50c75585744e?source=rss-d0913f96fef------2</link>
            <guid isPermaLink="false">https://medium.com/p/50c75585744e</guid>
            <dc:creator><![CDATA[Denice]]></dc:creator>
            <pubDate>Fri, 09 Apr 2021 13:05:02 GMT</pubDate>
            <atom:updated>2022-05-21T15:35:42.756Z</atom:updated>
            <content:encoded><![CDATA[<h3>HACKING Central-Infosec{Maria_DB}</h3><p>Earlier this week, Central Infosec opened up their 2021 Capture The Flag (<a href="https://ctf.centralinfosec.com/">https://ctf.centralinfosec.com/</a>) You can still register and do the challenges up until April 19, 2021. <em>(and if you wanna join my team, let’s go. Send me a DM and let’s do it!)</em></p><p>Before doing this writeup, I asked Central Infosec if I could do a writeup and they said yes. So here we go!</p><p>This specific box given below is challenging us to see if we could get into their MySQL / MariaDB. I will tell you how I got in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*pCuQE1X1TbjL2bOFzlq9MQ.png" /></figure><p>First step, I downloaded the Vulnerable Machine from the first box of <strong>08. Network Exploitation (CIS-WEBSRV01)</strong> challenge:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*hRULlvbRszQWnpEhB385hg.png" /></figure><p>Second, I opened the .vmx file on my VMWare. Along with it is my Linux VM. I made sure they are both opened, bridged, and under the same Network:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*g40vjYY-5szYjpmsIvR-3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*S4spbLoEUiOnRuqFiVZplg.png" /></figure><p>Now that we confirmed the VM is working, the rest of the testing will be done from the Kali VM. Once done with the Network Configuration, I did a scan on my network using:</p><pre>sudo arp-scan -l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*SFQO8n1H9LJajEgyI0a5FA.png" /></figure><p>I got the IP from the other Machine opened on my Network which is the Vulnerable <strong>Central-Infosec CIS-WEBSRV01.</strong></p><p>After that, I did a quick check if the MySQL Port is opened using NMAP:</p><p>(<a href="https://nmap.org/nsedoc/scripts/mysql-info.html">https://nmap.org/nsedoc/scripts/mysql-info.html</a>) <strong>WARNING: Please do not use NMAP unless you are AUTHORIZED to scan a network.</strong></p><p>Port 3306 is <strong>OPEN. </strong>Time to get our hands on this thing!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*iPo40kkqfAwopbZnINmXYg.png" /></figure><p>Next thing I will do is I will try to connect to the MariaDB since we know its opened.</p><p>Note: I tried my luck and I did not input any Login Credentials:</p><pre>mysql --protocol=tcp --host=IPAddressOfCentralVM --port=3306</pre><p>(okay, wow who does that? who lets a DB go in the wild without login creds. just kidding)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*dbjiiWwbG1ZLzf_qZoyEDA.png" /></figure><p>VOILA!! YAY! We got inside the Database. Let’s discover the database/s under this MariaDB:</p><p>I executed the command that will show me the list of DATABASES:</p><p>(<strong><em>If you are still here and reading this, I wanna say thank you.</em></strong>)</p><pre>&gt; SHOW Databases<em>;</em></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*pjg-uBsT6ATr6cWYc9Fyyw.png" /></figure><p>As we can see in the screenshot above, it gives us 5 Databases. Of course we are just gonna look for the FLAG we need to pass this specific challenge. Luckily, the name of the DB is called “flag”. Nice, thank you Central Infosec for that straight up hint. ;)</p><p>Curious, what’s inside that database name “flag”? Let’s see if there are TABLES under it but we have to switch to that DATABASE first before anything else. For the benefit of the doubt though, we’ll try it WITHOUT switching to the DATABASE “flag” to see if its gonna break free</p><pre>&gt; SHOW TABLES;</pre><p>Nice, as expected it shouldn’t return the list of tables:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*0ACx1bLrQ_74MiphIPJ__g.png" /></figure><p>Let’s switch to the Database “flag” now:</p><pre>&gt; USE flag</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*YkR_HEXELMFgLHeRZWl20A.png" /></figure><p>SWEET! We’re in the “flag” database name. Now what? Let’s check if there are tables under this DB:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*P-gEeI9YA-Is2-HZ7Cx1xA.png" /></figure><p>PERFECT. It has the table “flag”. I do hope though that this is gonna lead into something. Let’s find out whats inside that TABLE flag:</p><pre>&gt; SELECT * FROM flag;</pre><p><em>Chef’s kiss</em> I think we found the FLAG!!!! (I hope, <em>Cross Fingers</em>) What an adventure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*hxwEbaNwO8Jf1Rddp9j7Iw.png" /></figure><p>Now, Let’s go back to the Central-Infosec CTF page and try the FLAG we found:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*4wzOom1luzvN0LTBJsgSsg.png" /></figure><p>Yes, I already solved it before doing this write up:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*yznJPTHwswQpC5GArWVoAA.png" /></figure><p>YAY! Thank you so much for reading my silly and simple write up, please note that this is my first ever write up despite of joining many CTFs already :p (is 4 CTFs many? :p)</p><p>I hope you learned and had fun getting in the MARIADB again. Thank you so much for reading!</p><p>— — —</p><p>If you want to know more about Central Infosec, please see below:</p><p>(btw I’m not affiliated with Central Infosec)</p><p><strong>Central InfoSec</strong></p><p>Central InfoSec is an award-winning cyber security company that offers professional security services including Red Teaming, Penetration Testing, and Security Training. The Central InfoSec team consists of skilled security professionals bringing a total of 20+ years of red teaming, penetration testing, web application, and exploitation experience. Central InfoSec team members have achieved industry leading professional certifications including OSCP, OSWP, GXPN, GPEN, GWAPT, GMOB, AWS-CSS, AWS-CCP, PenTest+, CEH, CISSP, and more. The Central InfoSec team goes one step further and develops open-source tools including Burp Suite extensions, Cobalt Strike aggressor scripts, scripts tying into tools (including GoPhish, PhishMe, Slack, Lair), other custom-built security tools, and Capture The Flag (CTF) events!</p><p><strong>Achieved Awards</strong><br>Central InfoSec has achieved the following industry awards:<br>Best Penetration Testing &amp; Security Consulting Firm — Corporate Excellence Awards, 2021<br>5 Best Cyber Security Companies to Watch — The Silicon Review, 2021<br>10 Best Security Companies — CIO Bulletin, 2021<br>10 Most Promising Cybersecurity Consulting/Service Companies — CIO Review, 2020</p><p><strong>Social Media links:</strong></p><p><a href="https://www.facebook.com/centralinfosec/">https://www.facebook.com/centralinfosec/</a><br><a href="https://twitter.com/centralinfosec">https://twitter.com/centralinfosec</a></p><p><a href="https://www.linkedin.com/company/centralinfosec/">https://www.linkedin.com/company/centralinfosec/</a><br><a href="https://twitter.com/JAMESM0RR1S">https://twitter.com/JAMESM0RR1S</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50c75585744e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>