<?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 sw0rdf1sh on Medium]]></title>
        <description><![CDATA[Stories by sw0rdf1sh on Medium]]></description>
        <link>https://medium.com/@sw0r?source=rss-52514190c8a4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vDpjWEAkGZt3saeq.jpg</url>
            <title>Stories by sw0rdf1sh on Medium</title>
            <link>https://medium.com/@sw0r?source=rss-52514190c8a4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 02:52:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sw0r/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[THM : Daily Bugle]]></title>
            <link>https://sw0r.medium.com/thm-daily-bugle-b3e8e8de91b5?source=rss-52514190c8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3e8e8de91b5</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[sw0rdf1sh]]></dc:creator>
            <pubDate>Tue, 10 Jun 2025 11:57:35 GMT</pubDate>
            <atom:updated>2025-06-10T11:57:35.680Z</atom:updated>
            <content:encoded><![CDATA[<h3>THM : Daily Bugle</h3><p>returned with a new and intriguing box that is a little difficult and covers Joomla, SQL, privesec , and more. Let’s take a closer look in the article below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*z_BVsPF7G_3wdO5AIKma6Q.png" /></figure><p><strong>++Scanning++</strong></p><p>Let’s start with the simple NMAP scan</p><p>nmap -sV -sC -A- -p- machine_IP -o &lt;filename to save&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7NldOWiH7yjfHIpfQWAqFw.png" /></figure><p>from above we see ports 22 , 80 and 3306 , let’s enumerate each ports</p><p><strong>++Service Enumeration++</strong></p><p>let’s check basic website</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*6zsc_d-X2fmp8XJwSRhBeg.png" /></figure><p>after exploring , we didn’t find anything useful let’s find other directories we use gobuster here for some interesting directories</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S1iN4DsIRJ4GsJpjjRvu6Q.png" /><figcaption>Gobuster scanning</figcaption></figure><p>from above , we find<em> /administrator , </em>exploring given directory we land on new webpage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*upPf0-6rPAWPC-hv01eoLw.png" /><figcaption>Joomla admin page</figcaption></figure><p>After attempting to gain access using default credentials and brute-forcing the login page — with no success and no valuable leads for further analysis — we shifted our focus to identifying potential vulnerabilities. We thoroughly inspected the web page, reviewed directories, and explored various angles, but still came up empty. Following additional research, we came across <a href="https://github.com/Tuhinshubhra/CMSeeK">CMSeek</a>, a tool designed for detecting CMS versions. We decided to run CMSeek to gather more information and continue our exploration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*7LMM6xR5BcMps45wXihf_w.png" /></figure><p>from above we quickly started looking for vulnerability in that version command as follows</p><p><strong>++Exploitation++</strong></p><blockquote>searchsploit joomla 3.7.0</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Qla4nJTLXuzWZ-RbHjesxg.png" /></figure><p>once done , we look at exploit , we understood this is vulnerable to sql injection i can use sql injection or we can use free tool joomblah which scan and dump tables using sql , let’s do it , we clone with repository to our directory using</p><blockquote>sudo git clone <a href="https://github.com/teranpeterson/Joomblah">https://github.com/teranpeterson/Joomblah</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xx9aPrC6FsuiD99hWFD4mA.png" /><figcaption>git cloen to joomblah</figcaption></figure><p>set permissions to joomblah.py with</p><blockquote>sudo chmod +x joomblah.py &amp;&amp; python joomblah.py &lt; http://remote_ip/</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d7arwwHGFo8a2ORuttiADA.png" /></figure><p>we successfully found username “jonah and we also retrieved password hash from the database , now we proceed cracking password , but before this we need to find which type of hash is that , we use hashid to check hash</p><blockquote>hashid hash.txt</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*QXoBWQf0_UdDpCxEbKgm1Q.png" /></figure><p>by above , we found it’s bcrypt , now we proceed in cracking the hash using hashcat command as below</p><p><strong>++Cracking++</strong></p><blockquote>hashcat.exe -a 0 -m &lt;number&gt; \hash.txt \rockyou.txt</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6unWXq4-MCxM_Lq4BTf6A.png" /></figure><p>after cracking we use login details to login into webpage and we are greeted with admin webpage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dlf1i_XoQmPErqPiV9iBag.png" /></figure><p>From previous steps with CMseek scanner we saw open directories in templates directory , we navigate same here<strong> extensions &gt; templates &gt; templates select template like below</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*Kh-Eh0xqAemspwyy0fOz9Q.png" /><figcaption>template webpage</figcaption></figure><p>we use this templates as u open we have privilege to edit the php , for this i choose error.php , we can choose any php as it matters we upload reverse shell and we get reverse connection to proceed we first download and copy contents in <a href="https://github.com/pentestmonkey/php-reverse-shell">php-reverse-shell</a> and paste into error.php like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yExr5luxwapHWGUnUn1iKQ.png" /></figure><p>From above change ip to your &lt;machine ip&gt; as listener and port number as well and click save &amp; close</p><p>we start out listener with</p><blockquote>nc -lvnp 1234</blockquote><p>and execute from http://&lt;remote.ip&gt;/templates/Protostar/error.php as soon we execute we get reverse connection on netcat</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1j7ZRs5Nj8Fm_PQR8uzT7Q.png" /></figure><p>While poking around a bit, I found the user jjameson, but kept hitting a “permission denied” message. So, I decided to explore other directories and ended up in <em>/var/www/html</em>. There, I came across a file named configuration.php. After taking a look inside, I found jjameson’s password inside the configuration file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wv9fLTy_3bnjzed4M4X8Gg.png" /></figure><p>Now we again try ssh using jjameson and password and cat user.txt we get our user flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*41W9rFE40tSazN7vrjHYMg.png" /></figure><p>now we check for suo permission use</p><blockquote>sudo -l</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fQgPxItTNjz8igEhoYKSyA.png" /></figure><p>we get to know that to execute yum permission is not required , let’s look to escape current shell we can explore in <a href="https://gtfobins.github.io/gtfobins/yum/#sudo">gtfobins</a> and we see yum sudo shell as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*ip1YWWMGnQCmuCKjTDih9g.png" /></figure><p>we paste same in our shell and enter we escape from current shell and we become root</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*R7Q9pE-qHmW6JYl6bbl_ew.png" /></figure><p>we cd into root and we find root.txt as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*fD1SwpozzwMl5qZ1O5aIJg.png" /></figure><p><strong>+TAKEAWAY FROM THIS MACHINE++</strong></p><p>this was interesting and i got to learn Joomla vulnerability and different ways to exploit , this is hard machine and learnt a lot</p><p>if you enjoy reading above article</p><blockquote>do not forget to click on the little clap icon below and subscribe to my <a href="https://medium.com/@sw0r">newseller</a> to keep up with my latest articles.</blockquote><p><strong>+References++</strong></p><p><a href="https://github.com/Tuhinshubhra/CMSeeK">https://github.com/Tuhinshubhra/CMSeeK</a></p><p><a href="https://github.com/teranpeterson/Joomblah">https://github.com/teranpeterson/Joomblah</a></p><ul><li><a href="https://gtfobins.github.io/">GTFOBins</a></li><li><a href="https://hashcat.net/hashcat/">hashcat advanced password recovery</a></li><li><a href="https://github.com/OJ/gobuster">GitHub - OJ/gobuster: Directory/File, DNS and VHost busting tool written in Go</a></li></ul><p><strong>+Contact++</strong></p><p><strong><em>LinkedIn : </em></strong><a href="https://www.linkedin.com/in/puneet-bcg-4088a4180/">https://www.linkedin.com/in/puneet-bcg-4088a4180/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3e8e8de91b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CISCO compromise]]></title>
            <link>https://sw0r.medium.com/cisco-compromise-b8218edff196?source=rss-52514190c8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8218edff196</guid>
            <category><![CDATA[infosec-write-ups]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[sw0rdf1sh]]></dc:creator>
            <pubDate>Thu, 18 Aug 2022 22:19:07 GMT</pubDate>
            <atom:updated>2022-08-18T22:19:07.649Z</atom:updated>
            <content:encoded><![CDATA[<h3>CISCO compromise analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*0Sqy6_RtY22Jsx7z.png" /><figcaption>AUG 12 2022</figcaption></figure><p>Hi fellow hackers , back with another post with latest Cisco compromise , this seem interesting and let discuss further details below ::</p><p><strong>Learning and understanding from the cyber attack</strong></p><ol><li>Initial vector</li><li>Post compromise</li><li>Cisco response and recommendations</li><li>References and links</li></ol><h4><strong>Initial compromise</strong></h4><ul><li>Initial access to the Cisco VPN was achieved via the successful compromise of a Cisco employee’s personal Google account. The user had enabled password syncing via Google Chrome and had stored their Cisco credentials in their browser, enabling that information to synchronize to their Google account. After obtaining the user’s credentials, the attacker attempted to bypass multifactor authentication (MFA) , the process of sending high volume of request for MFA till user accept it.</li><li>Once the attacker had obtained initial access, they enrolled a series of new devices for MFA and authenticated successfully to the Cisco VPN. The attacker then escalated to administrative privileges, allowing them to login to multiple systems, which alerted our Cisco Security Incident Response Team (CSIRT), who subsequently responded to the incident.</li><li>Attacker used many tools including remote access like logmein and teamviewer and offensive security tools like cobalt strike , powerspolit mimikatz and impacket , For creating persistent, they added own backdoor account.</li></ul><h4>Post compromise</h4><ul><li>the threat actor began to enumerate the environment, using common built-in Windows utilities to identify the user and group membership configuration of the system, hostname, and identify the context of the user account under which they were operating. We periodically observed the attacker issuing commands containing typographical errors, indicating manual operator interaction was occurring within the environment.</li><li>Adversary created an administrative user called “z” using net.exe command, and threat actor changed the existing password to same value shown below</li></ul><blockquote>C:\Windows\system32\net user z Lh199211* /add<br>C:\Windows\system32\net localgroup administrators z /add</blockquote><ul><li>The account was later used to execute additional tools such as secrets dump to enumerate AD env to obtain additional credentials , additionally it was observed threat acting attempted to extract registry information later attacker was observed employing minidump from MimiKatz to dump LSASS.</li></ul><blockquote>reg save hklm\system system<br>reg save hklm\sam sam reg save HKLM\security sec</blockquote><ul><li>Attacker also cleared various logs and created account using wevtutil.exe command line.</li><li>To move files between the system within the environment it was observed that threat actors leveraged RDP and citrix and to allow RDP access to all system , attacker later modified host-based firewall configuration in the environment and additional RDP tools were also installed.</li></ul><h4>Cisco response and recommendations</h4><ul><li>Cisco implemented a company-wide password reset immediately upon learning of the incident. CTIR previously observed similar TTPs in numerous investigations since 2021. Our findings and subsequent security protections resulting from those customer engagements helped us slow and contain the attacker’s progression.</li><li>User education is key in the organization, making sure employees know the legitimate ways that support personnel will contact users so that employees can identify fraudulent attempts to obtain sensitive information.</li><li>Equally important to implementing MFA is ensuring that employees are educated on what to do and how to respond if they get errant push requests on their respective phones. It is also essential to educate employees about who to contact if such incidents do arise to help determine if the event was a technical issue or malicious.</li><li>Implement strong device verification by enforcing strict controls around device status to limit or block enrollment and access from unmanaged or unknown devices.</li><li>Centralized log collection minimize lack of the visibility though threat actor clear all the logs on the system. Ensuring that log data collected and analyzed for anomalous and behavior detection.</li><li>Ensuring that backups are offline and periodically tested can help mitigate this risk and ensure an organization’s ability to effectively recover following an attack.</li></ul><h4>References and links</h4><p><a href="https://blog.talosintelligence.com/2022/08/recent-cyber-attack.html">https://blog.talosintelligence.com/2022/08/recent-cyber-attack.html</a></p><p><a href="https://github.com/SecureAuthCorp/impacket">https://github.com/SecureAuthCorp/impacket</a><br><a href="https://github.com/ParrotSec/mimikatz">https://github.com/ParrotSec/mimikatz</a><br><a href="https://github.com/PowerShellMafia/PowerSploit">https://github.com/PowerShellMafia/PowerSploit</a><br><a href="https://github.com/sahakkhotsanyan/adfind">https://github.com/sahakkhotsanyan/adfind</a></p><p>Thanks for reading , happy hacking ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8218edff196" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Maldoc. DOCX MSDT inside sandbox]]></title>
            <link>https://systemweakness.com/maldoc-docx-msdt-inside-sandbox-e3d3366cecc3?source=rss-52514190c8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3d3366cecc3</guid>
            <category><![CDATA[exploitation]]></category>
            <category><![CDATA[info-sec-writeups]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[infosecurity]]></category>
            <dc:creator><![CDATA[sw0rdf1sh]]></dc:creator>
            <pubDate>Fri, 03 Jun 2022 06:35:48 GMT</pubDate>
            <atom:updated>2022-07-26T09:29:13.203Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Maldoc. DOCX MSDT inside a sandbox</strong></h3><p>Hi Fellow hackers , Today we will explore the details of MSDT vulnerability and will exploit in the real time</p><ol><li><strong>Overview</strong></li></ol><p>This is Zero-day vulnerability in the Microsoft windows support diagnostic tool (MSDT) also known as “follina” exist when MSDT is called using a URL handler or protocol from an application , such as Microsoft office, Microsoft word or via RTF file , and attacker could exploit this vulnerability to gain the ability to run arbitrary code on the target system. although patch is not available , Microsoft released some workaround which will be discussed end of this article</p><p>2. <strong>understanding script :</strong></p><p>this vulnerability script is written in python and available as open source , feel free to try at home in sandbox environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*NnKpM1m534zGl-Cki0SNzA.png" /><figcaption>importing python required python modules</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*yWtxCA-1ntPRpbVhV33BeA.png" /><figcaption>with help of script we create malicious DOC file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*mpC12ONXx_sNbeYc2qmyKA.png" /><figcaption>listening to reverse connecting by using netcat</figcaption></figure><p><strong>3. Exploitation</strong></p><ul><li>As per above , we create malicious payload by executing the script as sudo privileges</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*PKZucUShXO33w9WY8-MjJg.png" /><figcaption>script execution</figcaption></figure><ul><li>after the execution a malicious document file is ready sent to victim</li><li>File can be sent to victim as phishing mail or any methods , for environment purpose i use simple python3 dropper to sent my malicious file to the victim (windows10)</li></ul><p>- Now open the malicious document and voila , we have exploited the vulnerability , we can launch any programs or commands to the victim</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xVcybbfzcZkpn_-_ze09Ug.png" /><figcaption>As you can see notepad.exe was executed</figcaption></figure><p><strong>4. Mitigations</strong></p><p>Patch is not yet released but , Microsoft provided workaround as below,</p><p><strong>To disable the MSDT URL Protocol</strong></p><p>Disabling MSDT URL protocol prevents troubleshooters being launched as links including links throughout the operating system. Troubleshooters can still be accessed using the <a href="https://apps.microsoft.com/store/detail/get-help/9PKDZBMV1H3T?hl=en-us&amp;gl=US">Get Help application</a> and in system settings as other or additional troubleshooters. Follow these steps to disable:</p><ol><li>Run <strong>Command Prompt</strong> as <strong>Administrator</strong>.</li><li>To back up the registry key, execute the command “reg export HKEY_CLASSES_ROOT\ms-msdt <em>filename</em>“</li><li>Execute the command “reg delete HKEY_CLASSES_ROOT\ms-msdt /f”.</li></ol><p><strong>How to undo the workaround</strong></p><ol><li>Run <strong>Command Prompt</strong> as <strong>Administrator</strong>.</li><li>To restore the registry key, execute the command “reg import <em>filename”</em></li></ol><p><strong>5. IOC</strong></p><ul><li>4a24048f81afbe9fb62e7a6a49adbd1faf41f266b5f9feecdceb567aec096784</li><li>8e986c906d0c6213f80d0224833913fa14bc4c15c047766a62f6329bfc0639bd</li><li>fe300467c2714f4962d814a34f8ee631a51e8255b9c07106d44c6a1f1eda7a45</li><li>710370f6142d945e142890eb427a368bfc6c5fe13a963f952fb884c38ef06bfa</li><li>d61d70a4d4c417560652542e54486beb37edce014e34a94b8fd0020796ff1ef7</li></ul><p>Thanks for reading and giving your time .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3d3366cecc3" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/maldoc-docx-msdt-inside-sandbox-e3d3366cecc3">Maldoc. DOCX MSDT inside sandbox</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Approach of Quantum Ransomware]]></title>
            <link>https://systemweakness.com/approach-of-quantum-ransomware-2683247b5edc?source=rss-52514190c8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2683247b5edc</guid>
            <category><![CDATA[ransomeware]]></category>
            <dc:creator><![CDATA[sw0rdf1sh]]></dc:creator>
            <pubDate>Tue, 26 Apr 2022 11:25:52 GMT</pubDate>
            <atom:updated>2022-04-27T08:18:15.630Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*6rb05ikkuXx7Ko-2fZ4LwA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2YqvKvAfY9NzJmCaOeQd6A.png" /></figure><p>hello fellow hackers and analysts , Today I&#39;m going to discuss about “latest emerging Quantum ransomware” approach and encrypting whole server wide less than 4 hours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7FDxJ67mkMCzPBplTO0N3g.png" /></figure><blockquote><strong>Approach to deploy server-wide ransomware</strong></blockquote><ul><li>threat actor was able to enter the network when a user endpoint was compromised by IcedID</li><li>the attached file contained DLL file (IceID malware) and the a LNK shortcut to execute it.</li><li>When user or victim click on the LNK file , the IcedID DLL is executed.</li><li>upon this execution , adversary used the in-built windows tools for (ipconfig, systeminfo, nltest , net and DHCP )</li><li>IceID also create a scheduled tasks for having persistence of the affected victim system.</li><li>later cobalt strike was deployed using process hollowing and injection techniques and uses simple bash script Adfind for enumerating and Targeting organizational active directory structure. the threat also ran ns.bat which is a bash script used for running nslookup for each host in the environment</li><li>the cobalt strike process then proceeded to the LSASS memory to extract credentials , after extraction obtained credentials are been tested by using WMI .</li><li>after testing phrase obtained credentials are used to authenticate with RDP into that server and attempt to drop DLL beacon on the server. as sometimes this can fail so threat actor opened cmd and proceeded with dropped PowerShell cobalt strike beacon.</li><li>further proceeding the threat actor made various connection to the RDP to the others servers in the environment. Once the threat actor had a handle on the layout of the domain , they prepared to deploy the ransomware by copying the ransomware(named ttsel.exe) to each host by using share folders.</li><li>to detonate the ransomware binary they used remote execution ,k WMI and PSExec</li></ul><blockquote><strong>Indicators</strong></blockquote><ul><li>Files</li></ul><p>docs_invoice_173.iso<br>e051009b12b37c7ee16e810c135f1fef<br>415b27cd03d3d701a202924c26d25410ea0974d7<br><strong>5bc00ad792d4ddac7d8568f98a717caff9d5ef389ed355a15b892cc10ab2887b</strong></p><p>dar.dll<br> 4a6ceabb2ce1b486398c254a5503b792<br> 08a1c43bd1c63bbea864133d2923755aa2f74440<br> <strong>4a76a28498b7f391cdc2be73124b4225497232540247ca3662abd9ab2210be36</strong></p><p>document.lnk<br>adf0907a6114c2b55349c08251efdf50<br>aa25ae2f9dbe514169f4526ef4a61c1feeb1386a<br><strong>3bb2f8c2d2d1c8da2a2051bd9621099689c5cd0a6b12aa8cb5739759e843e5e6</strong></p><p>adf.bat <br>ebf6f4683d8392add3ef32de1edf29c4 <br>444c704afe4ee33d335bbdfae79b58aba077d10d <br><strong>2c2513e17a23676495f793584d7165900130ed4e8cccf72d9d20078e27770e04</strong></p><p>Ulfefi32.dll <br>49513b3b8809312d34bb09bd9ea3eb46 <br>445294080bf3f58e9aaa3c9bcf1f346bc9b1eccb <br><strong>6f6f71fa3a83da86d2aba79c92664d335acb9d581646fa6e30c35e76cf61cbb7</strong></p><p>license.dat <br>e9ad8fae2dd8f9d12e709af20d9aefad <br>db7d1545c3c7e60235700af672c1d20175b380cd <br><strong>84f016ece77ddd7d611ffc0cbb2ce24184aeee3a2fdbb9d44d0837bc533ba238</strong></p><p>ttsel.exe <br>b1eff4fffe66753e5f4265bc5332f72e <br>da2caf36b52d81a0d983407ab143bef8df119b8d <br><strong>b6c11d4a4af4ad4919b1063184ee4fe86a5b4b2b50b53b4e9b9cc282a185afda</strong></p><p>p227.dll <br>350f82de99b8696fea6e189fcd4ca454 <br>deea45010006c8bde12a800d73475a5824ca2e6f<br><strong>c140ae0ae0d71c2ebaf956c92595560e8883a99a3f347dfab2a886a8fb00d4d3</strong></p><ul><li>Networks</li></ul><blockquote>dilimoretast[.]com<br>antnosience[.]com<br>oceriesfornot[.]top<br>138[.]68.42.130:443<br>157[.]245.142.66:443<br>188[.]166.154.118:80</blockquote><ul><li>Cobalt Strike</li></ul><blockquote>185.203.118[.]227:443</blockquote><p>thanks for your time</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2683247b5edc" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/approach-of-quantum-ransomware-2683247b5edc">Approach of Quantum Ransomware</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Playing with AD Certificate Templates]]></title>
            <link>https://systemweakness.com/playing-with-ad-certificate-templates-d269e4fd2ac9?source=rss-52514190c8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d269e4fd2ac9</guid>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[active-directory-attack]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[sw0rdf1sh]]></dc:creator>
            <pubDate>Sat, 16 Apr 2022 11:52:01 GMT</pubDate>
            <atom:updated>2022-07-22T11:15:54.541Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello fellow hackers, today I’m going to explain the blueprint of AD and we will leverage the advantage of exploiting misconfigured certificate templates.</p><p><strong><em>Note: we can use RDP tool like remmina or remote desktop connection to connect our pre-configured AD in our environment.</em></strong></p><blockquote><strong>Overview of certificate templates</strong></blockquote><p>windows directory is not identity and access management but also provides a significant amount of services to help you run and manage your organization, there are a lot of services commonly known and used, in which such service is Active Directory Certificate Services (AD CS)</p><p>AD CS is Microsoft&#39;s public key infrastructure (PKI) implementation. since Ad provides a level of trust in an organization, this can be used as a CA to prove and delegate trust. AD CS is used for encrypting file systems, creating and verifying digital signatures and even user authentication, which makes a promising place for attackers. more dangerous about this is the certificate and surviving credential rotation ie, if a compromised account’s password is reset, that will do nothing to the maliciously generated certificate, providing persistence and credential theft over years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Idmlxa1VwN2b_faV.png" /><figcaption>Typical flow of CR (certificate request)</figcaption></figure><p>AD CS is a privileged function, it normally runs on selected domain controllers, which means that normal users can’t really interact with the service directly. On the other side organizations tend to have an administrator create and distribute each certificate manually, this is where the certificate template comes in, which makes admin life easy to make templates with relevant permission for users to request a certificate themselves.</p><p>before exploiting, diving into the terminologies :</p><ul><li>PKI — Public Key Infrastructure is a system that manages certificates and public-key encryption</li><li>AD CS — Active Directory Certificate Services is Microsoft’s PKI implementation which usually runs on domain controllers</li><li>CA — Certificate Authority is a PKI that issues certificates</li><li>Certificate Template — a collection of settings and policies that defines how and when a certificate may be issued by a CA</li><li>CSR — Certificate Signing Request is a message sent to a CA to request a signed certificate</li><li>EKU — Extended/Enhanced Key Usage are object identifiers that define how a generated certificate may be used</li></ul><blockquote><strong>Certificate template enumeration</strong></blockquote><p>first understanding all the certificate templates and identifying vulnerable templates and later exploiting the template</p><p>for checking all the template certificates, the most common approach is to use certutil, if we have access to a domain-joined computer and authenticated to the domain, we can execute and enumerate all the certificate templates :</p><p><em>certutil -v -template &gt; cert_template.txt</em></p><p>the output looks something like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*QCIkBaa_qp0k5V8Gw-Y4dg.png" /><figcaption>All template certificate</figcaption></figure><p>Note: for each different template unique number is denoted example template[X]: “X” denotes the template number of the specific policy</p><p>the specific parameter set we are looking to select our template for further exploitation :</p><ul><li>A template where we have the relevant permissions to request the certificate or where we have an account with those permissions</li><li>A template that allows client authentication, meaning we can use it for Kerberos authentication</li><li>A template that allows us to alter the subject alternative name (SAN)</li></ul><p>there are two groups that are common for certificates :</p><ul><li>Domain Users — This means in most cases that any authenticated users can request the certificate</li><li>Domain Computers — This means that the machine account of a domain-joined host can request the certificate. If we have admin rights over any machine, we can request the certificate on behalf of the machine account</li></ul><p>taking account of the above parameters, we found the template that we can use to exploit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFwKYCZqlemcMbcM4lhkOw.png" /><figcaption>template name : user request</figcaption></figure><blockquote><strong>Generating a malicious certificate</strong></blockquote><ol><li>As from the above steps we identified a certificate template to exploit, let’s start generating a malicious certificate, to request for the new certificate we can use the windows management console (mmc)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*xkTsUeFJK94V5P1y-Z2B8g.png" /><figcaption>mmc from run.exe</figcaption></figure><p>2. we navigate to File &gt; add/Remove Snap-in &gt;certificates and add it and click “ok”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dF6q3G_m78xBJjyzbCRzBw.png" /></figure><p>the MMC console page looks something like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*e1aryAvH0-uOl0m13_fJvA.png" /><figcaption>certificate-current user</figcaption></figure><p>3. Now expand certificates &gt; right-click on personal, select all tasks and click on “request new certificate” refer to below figure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*wwVsA13bnZW7MzcGM844xQ.png" /></figure><p>4. for the first option just select Next twice, since I’m using the default CA and we should see a screen something like the below figure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Kqb74fDcfCPrMz9u6U9Ow.png" /></figure><p>As we can see from above, we need complete the information for our certificate before we can enroll it, click on the “More information required” link to start the process</p><p>5. creating a certificate with the below parameters</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*EgfEQMFHg5IA2eou2_rgtg.png" /><figcaption>svc.gitlab is my service account with kerbros authentication and domain</figcaption></figure><p>6. Click on the enroll and a new certificate will be created under certificates as given below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtmP-vOugivod5calEJqYQ.png" /><figcaption>vulncert</figcaption></figure><p>Congratulations, you have just created a certificate that will provide persistence up to 2 years without any detection,</p><p>7. Now let&#39;s export the certificate by right-clicking on our certificate and exporting it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*ONJPA8X2Qm9_RQCyeMQ39A.png" /><figcaption>Exporting certificate</figcaption></figure><p>8. while exporting, export the private keys, and export in format. PFX (personal information exchange) and create a password for authenticating the certificate as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*prWB4a3rvNnbw6sG2RKWbg.png" /><figcaption>Creating password</figcaption></figure><p>after the above steps are done correctly, the file should appear something like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*SK8Wc3RA8xcHOpdcR-rtMA.png" /><figcaption>exported vulnkey</figcaption></figure><blockquote><strong>Impersonation of user through created malicious certificate</strong></blockquote><ol><li>getting started with the impersonation we use the Rubeus tool to generate a specified TGT key from the command below,</li></ol><p><a href="https://github.com/GhostPack/Rubeus">GitHub - GhostPack/Rubeus: Trying to tame the three-headed dog.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4UX2rqnP64kh-SeoiUWKAw.png" /><figcaption>generating tgt key</figcaption></figure><p>2. After successful completion output should look something like below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*6FX5QqFgvLCt3Cxrhu9s2g.png" /><figcaption>I wrote my impersonation ticket as “gitlabvuln.kirbi”</figcaption></figure><p>3. Now as we have TGT, we can impersonate and DA account and gain control over administrator, to check the available users, open the “active directory users and computers” box</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*HfNTCN_oTPXPaUKvTZ-xqA.png" /><figcaption>for example i’m taking da-clloyd</figcaption></figure><p>4. From above select one DA’s to target and use the below following command for the demonstration I’m using “da-clloyd”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6PE1fi_3yCq71CQnQTUPlA.png" /><figcaption>passwd changed to our own password “Hellohacker!”</figcaption></figure><p>5. Finally we have compromised AD by using certificate templates misconfiguration , additionally to confirm we can run below command</p><p>runas /user:&lt;domain&gt;\&lt;username of DA&gt; cmd.exe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pqh6Z_8dDx4qeqO7uqTrKw.png" /><figcaption>finally running commands with another compromised AD user</figcaption></figure><p>6. Now we can use administrative roles to perform further post exploitation</p><blockquote>Mitigations and fixes</blockquote><ul><li>Review all the certificate templates in your organization for poisonous parameter combinations. You can use <a href="https://github.com/GhostPack/PSPKIAudit">PSPKIAudit</a> to assist with this.</li><li>In cases where poisonous parameter combinations cannot be avoided, make sure that there are stopgaps such as having to require Admin Approval before the certificate will be issued.</li><li>Update your playbooks. Most organizations’ playbooks will include something along the lines of resetting the credentials for a compromised account. As pointed out here, that’s not really going to remedy the persistent access. Therefore, reviewing certificates that were issued would be required and the malicious certificate will have to be revoked.</li></ul><blockquote>Resources</blockquote><ul><li><a href="https://posts.specterops.io/certified-pre-owned-d95910965cd2">Certified Pre-Owned</a></li><li><a href="https://github.com/GhostPack/PSPKIAudit">GitHub - GhostPack/PSPKIAudit: PowerShell toolkit for AD CS auditing based on the PSPKI toolkit.</a></li><li><a href="https://github.com/GhostPack/Rubeus">GitHub - GhostPack/Rubeus: Trying to tame the three-headed dog.</a></li></ul><p>Thanks for reading ,HAPPY HACKING !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d269e4fd2ac9" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/playing-with-ad-certificate-templates-d269e4fd2ac9">Playing with AD Certificate Templates</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypassing UAC Methods and tricks]]></title>
            <link>https://systemweakness.com/bypassing-uac-methods-and-tricks-a536f784cc46?source=rss-52514190c8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a536f784cc46</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[uac]]></category>
            <dc:creator><![CDATA[sw0rdf1sh]]></dc:creator>
            <pubDate>Fri, 15 Apr 2022 16:41:53 GMT</pubDate>
            <atom:updated>2022-04-19T06:18:15.711Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*jz5ZFKo_2kYd5j6JUTgi5g.png" /><figcaption>Bypass tricks</figcaption></figure><blockquote>Overview :</blockquote><p>Here we will be looking into the bypassing techniques , first understanding UAC<br>&gt; <strong>User Account Control (UAC).</strong> This feature allows for any process to be run with low privileges independent of who runs it (either a regular user or an admin).<br>&gt; From an attacker’s perspective, bypassing UAC is essential to breaking out of highly restrictive environments and fully elevating privileges on target hosts. While learning the bypass techniques, we will also look at any alerts that could be triggered and artifacts that may be created on the target system that the blue team could detect.</p><blockquote>What is UAC ?</blockquote><p>&gt; User Account Control (UAC) is a Windows security feature that forces any new process to run in the security context of a non-privileged account by default. This policy applies to processes started by any user, including administrators themselves. The idea is that we can’t solely rely on the user’s identity to determine if some actions should be authorized.</p><blockquote>Different integrity levels (IL)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*ApZnZyAIWxn95H5iYZXxOw.png" /></figure><blockquote>Working of UAC :</blockquote><ol><li>The user requests to run an application as administrator.</li><li>A <strong>ShellExecute</strong> API call is made using the <strong>runas</strong> verb.</li><li>The request gets forwarded to Appinfo to handle elevation.</li><li>The application manifest is checked to see if Auto Elevation is allowed (more on this later).</li><li>App info executes <strong>consent.exe</strong>, which shows the UAC prompt on a <strong>secure desktop</strong>. A secure desktop is simply a separate desktop that isolates processes from whatever is running in the actual user’s desktop to avoid other processes from tampering with the UAC prompt in any way.</li><li>If the user gives consent to run the application as administrator, the Appinfo service will execute the request using a user’s Elevated Token. Appinfo will then set the parent process ID of the new process to point to the shell from which elevation was requested.</li></ol><ul><li>here we will be looking into two case study for bypassing UAC</li></ul><blockquote><strong>Case study : msconfig</strong></blockquote><p>“</p><p>spwanning run and enter the command “msconfig”</p><figure><img alt="running msconfig" src="https://cdn-images-1.medium.com/max/400/1*L39JFtIp90fhq9kQdepn3Q.png" /><figcaption>running msconfig</figcaption></figure><p>As msconfig open, without any UAC prompts where the beauty lies within the the windows as there is exemptions and allow certain program binary to execute without prompts</p><ul><li>Now navigate to “Tools” and launch</li></ul><p>we will obtain a high IL command prompt without interacting with UAC in any way.</p><blockquote><strong>Case Study : azman.msc (Authorization manager)</strong></blockquote><ul><li>As with msconfig, azman.msc will auto elevate without requiring user interaction. If we can find a way to spawn a shell from within that process, we will bypass UAC. Note that, unlike msconfig, azman.msc has no intended built-in way to spawn a shell.</li><li>first run “azman.msc</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*vrJDV6vdZhsOkxbSaReQ7Q.png" /></figure><ul><li>To run shell we will abuse the application’s help</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*ysWaNaCDaCV0kKpO_GGtZw.png" /></figure><ul><li>We will right-click any part of the help- and select view source</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*5arWSFTIhi7UUbkyDmiJVA.png" /></figure><ul><li>This will spawn a notepad process that we can leverage to get a shell. To do so, go to <strong>File-&gt;Open</strong> and make sure to select <strong>All Files</strong> in the combo box on the lower right corner. Go to C:\Windows\System32 and search for cmd.exe and open the program</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*ouNLi9jUxqqwVNhEyWd52Q.png" /></figure><ul><li>This will open cmd.exe at a high privsec level.</li></ul><blockquote><strong>Auto-Elevate</strong></blockquote><ul><li>some executables can auto-elevate, achieving high IL without any user intervention. This applies to most of the Control Panel’s functionality and some executables provided with Windows.</li><li>condition to meet auto-elevate</li></ul><p>&gt; The executable must be signed byt the windows publisher<br>&gt; The executable must be contained in a trusted directory, like <strong>%SystemRoot%/System32/ or </strong><strong>%ProgramFiles%/\</strong></p><p>&gt; Executable files (.exe) must declare the autoElevate element inside the manifests.<br>&gt; sigcheck tool can be used to view the manifest for autoelevate privileges</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*I_85qFTr4xvpcTZufyolsw.png" /><figcaption>msconfig with auto-Elevate privileges</figcaption></figure><blockquote><strong>Fodhelper</strong></blockquote><p>Fodhelper.exe is one of Windows default executables in charge of managing Windows optional features, including additional languages, applications not installed by default, or other operating-system characteristics. Like most of the programs used for system configuration, fodhelper can auto elevate when using default UAC settings so that administrators won’t be prompted for elevation when performing standard administrative tasks. While we’ve already taken a look at an autoElevate executable, unlike msconfig, fodhelper can be abused without having access to a GUI</p><ol><li>connecting to the victim machine</li></ol><p>nc &lt;IP&gt; port</p><p>2. Checking user is part of Administrator group with medium integrity level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*jAitLA04oMWTbi_FOoI0Yg.png" /><figcaption>checking net user of the system</figcaption></figure><p>3. As user is medium integrity level member we can inject payload and make to communicate to parent</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*qb_AGs4r2JZncArfL0Womw.png" /><figcaption>medium integrity level</figcaption></figure><p>4. We can set required registry value to the ms-settings class to get a reverse connection by using reverse shell. here i’m going to use socat and set registry as below :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*zQZwBocIz4AdW4vqs2zZRg.png" /><figcaption>changing shell commands registry values</figcaption></figure><p>As above we are using socat which is type of reverse shell connection , and we will setup listener at attacker end to obtain high privilege reverse shell connection.</p><blockquote><strong>Clearing our tracks</strong></blockquote><pre><strong>reg delete HKCU\Software\Classes\ms-settings\ /f</strong></pre><p>execute the command and clear artifacts and interference with all tasks</p><blockquote><strong>Using automatic UAC bypasses</strong></blockquote><p><a href="https://github.com/hfiref0x/UACME">GitHub - hfiref0x/UACME: Defeating Windows User Account Control</a></p><p>Conclusion</p><p>As there are different methods to bypass UAC , most of them are automated and can be easy detected by the AV scan , this is rough idea of working of UAC and its functions some interested resource link are provide below for more explorations and deep diving</p><ul><li><a href="https://github.com/hfiref0x/UACME">UACME github repository</a></li><li><a href="https://www.bleepingcomputer.com/news/security/bypassing-windows-10-uac-with-mock-folders-and-dll-hijacking/">Bypassing UAC with mock folders and DLL hijacking</a></li><li><a href="https://elastic.github.io/security-research/whitepapers/2022/02/03.exploring-windows-uac-bypass-techniques-detection-strategies/article/">UAC bypass techniques detection strategies</a></li><li><a href="https://www.tiraniddo.dev/2017/05/reading-your-way-around-uac-part-1.html">Reading your way around UAC</a></li></ul><p>Thank you for reading , HAPPY HACKING :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a536f784cc46" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/bypassing-uac-methods-and-tricks-a536f784cc46">Bypassing UAC Methods and tricks</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LOG4J vulnerability (CVE-2021–44228)]]></title>
            <link>https://systemweakness.com/log4j-vulnerability-cve-2021-44228-cbcf13d0ca58?source=rss-52514190c8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbcf13d0ca58</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[apache-log4j]]></category>
            <category><![CDATA[log4j]]></category>
            <category><![CDATA[cve-2021-44228]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[sw0rdf1sh]]></dc:creator>
            <pubDate>Tue, 14 Dec 2021 05:33:07 GMT</pubDate>
            <atom:updated>2021-12-21T06:42:54.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1X2c4iLIyFALZmbo.jpg" /></figure><blockquote><strong>Summary :</strong></blockquote><p>Log4j2 is a open source java-based logging framework commonly incorporated into Apache web server and spring-boot web applications</p><p>the vulnerability has been reported CVE-2021–44228 against the log4j-core.jar. CVE2021–44228 is considered a critical flaw and it has based score 10 which is the highest possible severe rating.</p><blockquote><strong>Who is impacted !!</strong></blockquote><p>Too many services are vulnerable to this exploit as log4j used java-based jogging utility. cloud services such as apple i Cloud and other cloud services are affected , anyone using Apache framework services or any spring-boot java-based framework applications used log4j is likely to be vulnerable.</p><blockquote><strong>Working of exploit :</strong></blockquote><p>the exploit works when three is a service or application running with vulnerable version of log4j2</p><p>attacker who can control log messages or log message parameters can execute arbitrary code in the vulnerable server loaded from the LDAP server when message lookup sub is enabled</p><blockquote><strong>Affected Apache log4j2 versions</strong></blockquote><p>2.0 &lt;=Apache log4j2 &lt;= 2.14.1</p><blockquote><strong>Exploit requirements:</strong></blockquote><p>A server with a vulnerability log4j version</p><blockquote><strong>Exploitation steps :</strong></blockquote><ul><li>data from the users get sent to the server</li><li>the server logs the data in the request containing malicious payload</li><li>the Log4j vulnerability is triggered by the payload and the server makes request to <a href="https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fattacker.com%2F&amp;data=04%7C01%7CChenchu.Puneet%40csscorp.com%7C880bebe61b494bae678f08d9bdeac28e%7C75b66d8f8c574f67b1beb01c924e2579%7C0%7C0%7C637749638271533738%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=WVlGxTgS%2FMwf1VpKt%2BKDusiHpdS8wERBs4yItylFGe0%3D&amp;reserved=0">attacker.com</a> via JNDI (Java Naming and Directory Interface</li><li>this response contains a path to a remote java class files , which is inject into the server process.</li><li>this injected payload is trigger a second stage and allows an attacker to execute arbitrary code.</li></ul><blockquote><strong>How to mitigate :</strong></blockquote><ul><li>admin/system team running a search/grep command on all server to spot any file with name “log4j2” , then checking if it is a vulnerable version or not form the Vulnerability dB and matching with CVE’s</li><li>updating version 2.15.0 of log4j which has been released without the vulnerability</li><li>Adding “log4.format.msg.nolookup=true” to the global conf of the web server applications.</li></ul><blockquote><strong>Defense :</strong></blockquote><p>&gt; Remote Lookup can be disabled<br> &gt; Using firewalls to prevent remote calls to unexpected servers<br> — Applying proper firewall rules on the application servers such that they are only allowed to communicate to the known request <br> — Running application with least privileged accounts<br> — Running application in the virtual environment for rapid restoration and constrained network<br> — Deploying honeypots to find the exploitation reconnaissance.<br> — Deploying honeypots near the suspected applications.</p><blockquote><strong>Indicators of Attacks</strong></blockquote><p>&gt; Spike in CPU performance<br> &gt; Unauthorized configuration change<br> &gt; Disparate logs &amp; commands needed</p><blockquote><strong>Attacks seen against this vulnerability</strong> :</blockquote><p>&gt; Attackers are trying to exploit the DNS<br> &gt; Request Strings are encoded with base64.<br> &gt; HTTPS delivery mechanism<br> &gt; Exploiting DNS</p><blockquote><strong>Reference :</strong></blockquote><ol><li><a href="https://www.indiatoday.in/technology/news/story/log4j-zero-day-vulnerability-discovered-affects-icloud-minecraft-steam-and-more-services-1886670-2021-12-11">https://www.indiatoday.in/technology/news/story/log4j-zero-day-vulnerability-discovered-affects-icloud-minecraft-steam-and-more-services-1886670-2021-12-11</a></li><li><a href="https://www.theverge.com/2021/12/10/22828303/log4j-library-vulnerability-log4shell-zero-day-exploit">https://www.theverge.com/2021/12/10/22828303/log4j-library-vulnerability-log4shell-zero-day-exploit</a></li><li><a href="https://www.kaspersky.co.in/blog/log4shell-critical-vulnerability-in-apache-log4j/23739/">https://www.kaspersky.co.in/blog/log4shell-critical-vulnerability-in-apache-log4j/23739/</a></li><li><a href="https://www.lunasec.io/docs/blog/log4j-zero-day/">https://www.lunasec.io/docs/blog/log4j-zero-day/</a></li><li><a href="https://www.rapid7.com/blog/post/2021/12/10/widespread-exploitation-of-critical-remote-code-execution-in-apache-log4j/">https://www.rapid7.com/blog/post/2021/12/10/widespread-exploitation-of-critical-remote-code-execution-in-apache-log4j/</a></li><li><a href="https://www.picussecurity.com/resource/blog/simulating-and-preventing-cve-2021-44228-apache-log4j-rce-exploits">https://www.picussecurity.com/resource/blog/simulating-and-preventing-cve-2021-44228-apache-log4j-rce-exploits</a></li></ol><blockquote>Conclusion :</blockquote><p>As this vulnerability in the java library class affects all the java running applications servers , this would stay for long time as related as to pandemic.</p><p>Thanks for your time in reading this<strong> happy hacking everyone.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbcf13d0ca58" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/log4j-vulnerability-cve-2021-44228-cbcf13d0ca58">LOG4J vulnerability (CVE-2021–44228)</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Epsilon Red ransomware]]></title>
            <link>https://sw0r.medium.com/epsilon-red-ransomware-aac45bd55358?source=rss-52514190c8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/aac45bd55358</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[mitigation]]></category>
            <category><![CDATA[newsbreak]]></category>
            <category><![CDATA[ransomware]]></category>
            <dc:creator><![CDATA[sw0rdf1sh]]></dc:creator>
            <pubDate>Wed, 08 Sep 2021 07:25:38 GMT</pubDate>
            <atom:updated>2021-09-08T07:25:38.112Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*HaEA5fbmUlOtRQ7TauHiYA.png" /></figure><blockquote>Epsilon Red ::<br><strong>1. Introduction</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BnXkB482ON4aHQ0pakbzrg.png" /><figcaption>Explaining each power shell scripts</figcaption></figure><p>&gt; This ransomware is written in GO language</p><p>&gt; same like REvil ransomware this also left similar ransomware note with few grammatical corrections.</p><p>&gt; The name Epsilon Red, like many coined by ransomware threat actors, is a reference to pop culture. The character Epsilon Red was a relatively obscure adversary of some of the X-Men in the Marvel extended universe, a “super soldier” alleged to be of Russian origin, sporting four mechanical tentacles and a bad attitude.</p><blockquote><strong>2. Preparation stage (cook-up)</strong></blockquote><p>&gt; series of power shell scripts from (1 to 12) and unique scripts like P.exe sand C.exe are created.</p><p>&gt; these series of scripts are triggered by the power shell script called RED.ps1 which is executed on the machine using windows management instrumentation</p><p>&gt; followed the script also retrieves and unpack in the system,32 folder with extension .7z ( later stages this file get deleted to avoid left overs)</p><blockquote><strong>3. obfuscation :( Evasion technique )</strong></blockquote><p>&gt; The Power Shell scripts also use a rudimentary form of obfuscation in which the threat actors appear to have added in some square brackets and braces at random into the script, breaking up the lines of Power-Shell script code, and then use a command that strips out those brackets.</p><blockquote><strong>4. Blocking Firewall and clearev (events records)</strong></blockquote><p>&gt; the attacker unpacks RED.ps1 (parent script) into %SYSTEM%\RED directory then creates schedule task that run unpacked child scripts ( 1.ps1 to 12.ps1 scripts).</p><p>&gt; after every schedule task it waits for one hour and execute a command to modify windows firewall rule such that all the communication prots are blocked leaving exception to 5650 which is communication port for commercial toll called remote utilities</p><p>Link : <a href="https://www.remoteutilities.com/">https://www.remoteutilities.com/</a></p><p>( they can use it for free. Anyone can submit an email address through the company’s website and receive a free license key by email that allows them to use the full capability of the product on up to 10 machines, in perpetuity. )</p><p>&gt; As part of this tool , it offers ability for licensed user to generate a digitally signed executable installer, per-configured with a password and other preferences embedded into the .exe. Users choose their options, which get transmitted back to the company via the application to generate a unique “One-Click package” executable the program then downloads. The threat actor can then deploy this installer, which runs unattended, and automatically synchronizes to their Remote Utilities Viewer console.</p><p>&gt; 1 to 6 and 10,11,C.exe,P.exe runs in the task schedule by which these script perform to disable AV , kill process and many task involving hindering of backup tools and program in the windows. (as shown in the chart)</p><p>&gt; 6.ps1 scripts kill not only processes but also service based on the strings that may appear in the service names and this also disable windows defender by setting or changing the registry keys.</p><p>reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender” /f /v DisableAntiSpyware /t REG_DWORD /d</p><p>&gt; explanation and what each script do is given in chart</p><blockquote><strong>5. How epsilon ransomware is executed :</strong></blockquote><p>&gt; ransomeware itself called RED.exe is 64-bit executable file written in GO language.</p><p>&gt; this uses godirwalk which gives ability to scan the hard drive on which it’s running for directory path and export same into lists</p><p>&gt; the ransomware then run child process that encrypt each sub folder in the present directory or wrt to the list of directories path</p><p>&gt; after short amount of time all files get encrypted with help of child process and drops ransomware notes in each folder .</p><p>&gt; Victims are encouraged to visit a special URL on a website operated on the normal web (epsilons[.]red) to engage with the attackers.</p><blockquote><strong>Ransomware vulnerability target in scope :</strong></blockquote><p>1. unpatched server <br>2. exchange server vulnerable to proxy Logon exploit chain</p><blockquote><strong>Mitigations :</strong></blockquote><p>1. Patching internet-facing exchange server as quickly as possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aac45bd55358" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One percent Ransomware Group :]]></title>
            <link>https://sw0r.medium.com/one-percent-ransomware-group-dcc0fa3cc460?source=rss-52514190c8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcc0fa3cc460</guid>
            <category><![CDATA[cisa]]></category>
            <category><![CDATA[cert]]></category>
            <category><![CDATA[ransomware]]></category>
            <dc:creator><![CDATA[sw0rdf1sh]]></dc:creator>
            <pubDate>Thu, 02 Sep 2021 08:28:16 GMT</pubDate>
            <atom:updated>2021-09-02T08:28:16.098Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*1NmfHG0T5ws4eNLx.jpg" /></figure><p><strong>One percent Ransomware Group :</strong></p><p>who are One percent ransomware group :</p><p>Cyber-criminal group who self identifies as the ‘One Percent Group’ and who have used Cobalt Strike to perpetuate ransomware attacks against US companies since November 2020m as said by FBI</p><p>One Percent Group actors encrypt the data and exfiltrate it from the victims’ systems and as soon ransomware is launched , the group initiate call to affected users by spoofing their phone number and threatens to release data to public if they don’t play ransom.</p><p>The agency did link One Percent Group to the notorious REvil (Sodinokibi) ransomware gang, whose data leak site they’ve used to leak and auction their victims’ stolen files.</p><blockquote>In the illustration below, a tree diagram showing their methodology and tools used for compromising at each stages of attack</blockquote><p><strong>Note</strong>: These tools are used for legitimate &amp; malicious purpose and can be found in GitHub</p><blockquote>Flow chart contains :</blockquote><ol><li>Approach</li><li>Stage by stage description</li><li>Tools used at each level</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*iegQEHJKE86A-Iyxi3xdAQ.png" /><figcaption>Flow diagram</figcaption></figure><p>Thanks for your time………… cheers !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcc0fa3cc460" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[::: Pegasus The Stealth Falcon:::]]></title>
            <link>https://sw0r.medium.com/pegasus-the-stealth-falcon-56617a85aed4?source=rss-52514190c8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/56617a85aed4</guid>
            <category><![CDATA[spyware-pegasus]]></category>
            <category><![CDATA[pegasus-project]]></category>
            <category><![CDATA[pegasus]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[sw0rdf1sh]]></dc:creator>
            <pubDate>Thu, 29 Jul 2021 06:48:25 GMT</pubDate>
            <atom:updated>2021-07-29T06:48:25.148Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*Eyr3FpTReDVeMjD2UpoJjA.jpeg" /><figcaption>“ source links at end “</figcaption></figure><p>about Pegasus:</p><ul><li>Pegasus is a spyware developed by the Israeli cyberarms firm NSO Group that can be covertly installed on mobile phones (and other devices) running most versions of iOS and Android.</li><li>2021 Project Pegasus revelations suggest that the current Pegasus software can exploit all recent iOS versions up to iOS 14.6. As of 2016, Pegasus was capable of reading text messages, tracking calls, collecting passwords, location tracking, accessing the target device’s microphone and camera, and harvesting information from apps</li><li>his spyware is Trojan horse that can be sent “ flying through the air” to infect phones</li><li>The highlight of the attack is that this uses zero-click exploit to compromise the mobile device with one message , another thing is this doesn’t human involvement , as soon as message is received , everything is compromised and that spyware remains stealth and able to maintain persistence.</li><li>Pegasus was discovered in August 2016 after a failed installation attempt on the iPhone of a human rights activist led to an investigation revealing details about the spyware, its abilities, and the security vulnerabilities it exploited. News of the spyware caused significant media coverage. As Pegasus first originated in year of 2016 , thus there were people who involved in the project and helped in<strong> BLACK HAT CONFERENCE</strong> revealing details about the spyware.</li><li>Recently , amnesty international developed a tool to check whether your being victim to Pegasus project</li></ul><blockquote>Sources :</blockquote><blockquote>- black hat conference : <a href="https://www.youtube.com/watch?v=Y6e_ctKqSqM">https://www.youtube.com/watch?v=Y6e_ctKqSqM</a><br>- The citizen lab report : <a href="https://citizenlab.ca/2016/12/bill-marczak-vanity-fair-iphone-spyware-targeting-activists/">https://citizenlab.ca/2016/12/bill-marczak-vanity-fair-iphone-spyware-targeting-activists/</a><br>- forbidden stories : <a href="https://forbiddenstories.org/pegasus-the-new-global-weapon-for-silencing-journalists/">https://forbiddenstories.org/pegasus-the-new-global-weapon-for-silencing-journalists/</a></blockquote><p>Thanks for your time , have a nice day !<br>cheers ………</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56617a85aed4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>