<?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 Shruti Londhe on Medium]]></title>
        <description><![CDATA[Stories by Shruti Londhe on Medium]]></description>
        <link>https://medium.com/@shrutinagesh0405?source=rss-9d07598eba9b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fz7Bsk8ymBYkJQ8UN6wvxw@2x.jpeg</url>
            <title>Stories by Shruti Londhe on Medium</title>
            <link>https://medium.com/@shrutinagesh0405?source=rss-9d07598eba9b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 02:21:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shrutinagesh0405/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[DHARMA RANSOMWARE: THE DIGITAL KIDNAPPING!]]></title>
            <link>https://medium.com/@shrutinagesh0405/dharma-ransomware-the-digital-kidnapping-a178558f2f34?source=rss-9d07598eba9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a178558f2f34</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[cybercrime]]></category>
            <dc:creator><![CDATA[Shruti Londhe]]></dc:creator>
            <pubDate>Mon, 06 Nov 2023 06:32:27 GMT</pubDate>
            <atom:updated>2023-11-07T18:43:22.232Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jn3ZapmYcXk8q2o-kFoixQ.jpeg" /></figure><p>In the world of computers and software, there are tricky programs that can cause problems for many people. These programs are like puzzles, and as a malware analyst, I’ve chosen to figure them out. It’s a bit like looking at abstract art, where you’re trying to understand what’s going on.</p><p>Malware Analysis is to take these troublesome programs and study them in a safe and controlled environment. It’s like playing a chess game, thinking carefully about each move to outsmart the program. The goal is not only to stop the immediate problem but also to learn how these malware programs work, so we can defend against them better. It’s like investigating evidence of digital crime scenes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YjhUo_tMV090y6cfPCDZ7g.jpeg" /></figure><h3><strong>What is Dharma Ransomware?</strong></h3><p>Imagine ransomware as a digital enigma that plays a game of hide and seek with your personal data. It threatens to reveal your secrets or lock them away forever, but it will give you the key if you pay a ransom.</p><p>Some ransomware is like a simple lock, only blocking access to your computer without harming your files. But the trickier kind works like a magic spell. It makes your files disappear and asks for money to make them reappear. The catch is, you can’t get your files back without the magic words, like a secret code that&#39;s the decrypting key!</p><p>To make things even more complex, these digital extortionists often ask for their ransom in cryptocurrencies like Bitcoin or Monera, which are hard to trace. It’s like trying to catch a shadow in a digital maze.</p><p>Dharma wasn’t always called by this name, though. In its early days, it was known as the Crysis ransomware family, is like a digital kidnapper. It keeps your important files locked up until you pay up.</p><h3><strong>6 Stages of Attack:</strong></h3><p><strong>1. The Origin:</strong></p><p>It is dropped mostly by phishing emails.</p><p>Dharma ransomware targets both individuals and organizations. Its name, “Dharma,” was derived from the extension “.dharma” it appends to encrypted files and the variants of it appends extensions like “. wallet” or “. any website”</p><p><strong>2.Compromise/Infection:</strong></p><p>Dharma’s strategy is simple yet devastating. It infiltrates a compromised computer through various means, such as phishing emails, malicious downloads, or software vulnerabilities. Once inside, it encrypts files, rendering them inaccessible. These files often contain important data, personal documents, or sensitive information, effectively locking them away.</p><p><strong>3.Scan:</strong></p><p>It looks for files with sensitive data of organization.</p><p><strong>4.Encrypt:</strong></p><p>Starts encrypting it with RC4 encryption method.</p><p><strong>5.Ransom Note:</strong></p><p>After the files are encrypted, Dharma leaves behind a ransom note, usually in a text file explaining the situation to the victim. This note demands a ransom payment, typically in cryptocurrency like Bitcoin, in exchange for the decryption key required to unlock the files.</p><p><strong>6.Pay day:</strong></p><p>They use cryptocurrency as a ransom payment method because Cryptocurrencies are challenging to trace, making it difficult for law enforcement to track down the perpetrators. This anonymity has made cryptocurrency an attractive choice for ransomware operators.</p><h3><strong>DHARMA SAMPLE ANALYSIS:</strong></h3><p>Let’s consider a sample of Dharma variant to observe its behavior.</p><p>Sha256 of sample is,</p><p>2210baa7b596879b413965c17f9f33dbf698ac183b2b82329d397c73dee5fc3d</p><p><strong>Pre requisites:</strong></p><p>i. Isolated Environment-Virtual Machine (Hyper-V)/Sandbox</p><p>ii. For Static Analysis — Bintext, CFF explorer, PE Studio</p><p>iii. For Dynamic Analysis- Sysinternal Tools (Promon &amp; ProcExp), RegShot</p><p>iv. For Capturing Network Activity — Wireshark,NetMon,Fiddler.</p><h3><strong>PE Header Analysis:</strong></h3><p>DOS Header occupies the first 64 bytes of the file. i.e., the first 4 rows of the hex editor as seen in the image below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*9ugCQOBd9v3kTxxjwEalTg.png" /><figcaption>MZ executable file</figcaption></figure><p>If you notice you will see the ASCII strings “MZ” mentioned at the beginning of the file. This MZ occupies the first two bytes (hexadecimal: 4D 5A or 0x54AD) of the DOS Header which is read as 5A 4D.</p><p>The final field in the DOS header , e_lfanew, is a 4-byte offset (C8 00 00 00) and tells where the PE Header is located. Check the PE header section below for this offset location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*aE6dFH7dGLjXLGVwTLB90A.png" /></figure><p>Dos stub seems normal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*drLr4u_ftSjnJIflDio62A.png" /></figure><p>The PE signature is 50 45 00 00 that is PE..</p><p>here L indicates that the file is 32 bit executable</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*9sytEsjM9D20LkoKg-bUMw.png" /></figure><p>The file header is the next 20 bytes of the PE file and contains only the most basic information about the layout of the file. In this 20 bytes where the 3rd and 4th bytes will together represent the number of sections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*Hxq7jNnCwL2wRFrW6EbTHg.png" /></figure><p>Size of image=82000</p><p>size of file=483kb</p><p>Overlay-Size of image &gt;file size</p><p>From the above expression we can confirm that Overlay is not appended to it.</p><h3><strong>STATIC ANALYSIS:</strong></h3><p>Static analysis involves the examination of malware without running it, focusing on its code,structure and attributes.This technique allows to uncover hidden strings, pattern and gain insights into the potential behavior of ransomware. By scrutizing the file itself, rather than observing it in action, static analysis provides a crucial early detection method.</p><p>Let’s dive in!</p><p>File Properties:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*jI6Izk0dAwCGz3E6eA5xAA.png" /></figure><p>Imports:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*Kj1vk1GXkfwSqPE7JkrKcw.png" /></figure><p>Indicators of evidence:</p><p>Kernel32.dll: kernel32.dll is a critical dynamic link library (DLL) file in the Microsoft Windows operating system. It plays a fundamental role in the functioning of Windows and provides a wide range of essential services to applications and the operating system itself it can be used maliciously for-</p><p><em>Process and Memory Management</em></p><p><em>File Operations</em></p><p><em>Threading and Synchronization</em></p><p>GetProcAddress: is a function in the Windows API that allows a program to retrieve the address of an exported function or a variable from a dynamic link library (DLL).</p><p>LoadLibraryA: is a fundamental function for dynamically loading and using external libraries in Windows applications.</p><h3><strong>STRING ANALYSIS:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*E7TbU79GFBxN1WwPp8nlWA.png" /></figure><blockquote>This is the strong evidence that the sample is trying to access a payload of <strong>CRYSIS</strong> folder which is the Parent Family of Dharma ransomware.</blockquote><h3><strong>DYNAMIC ANALYSIS:</strong></h3><p>Dynamic analysis involves the execution of ransomware in a controlled environment to observe its behavior and understand its functionalities. This approach provides invaluable insights into how ransomware operates.</p><p>After executing ransomware as administrator, we can observe procmon and procexp to see what sample does-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*az9cMe16wtJEHAo4ZLA00g.png" /><figcaption>process tree of given sample</figcaption></figure><blockquote>The sample is using many legitimate processes to do changes.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*zmSE6nFcTgcYO07rgdcw3A.png" /></figure><p>1. Deletion of all the shadow copies and backup/recovery data potentially disabling backup utilities and security software to avoid detection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*CkWtxDQwR9VMq14hAx8olA.png" /><figcaption>readme.txt files dropped.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*-bMefJEnGG_iFEX4T9WEgA.png" /></figure><p>2.It dropped a ransom note in every folder containing encrypted files and on the desktop.</p><p>It also drops a .hta file to all the folders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmzGJ0dCwNduOB1f13rhnA.png" /></figure><p>The file has done changes in RUN directory showing PERSISTENCE which is strong evidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NA4xQMQ7zZex_saUmmWvcg.png" /></figure><p>Navigating to the path, and executing the .hta file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*rmhqrvvItWujwWCGY3d4Ww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3-0dV1R9CMtx8GRmAGiDxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*9d7ZRynqvpHbxH3V2gnxGw.png" /></figure><p>3. It pops up a threatening pop up about the encrypted sensitive data and publishing it, also gives the details about paying ransom.</p><h3><strong>REGSHOT ANALYSIS:</strong></h3><p>Regshot is a lightweight, open-source registry compare utility that allows users to take snapshots of the Windows registry and compare them to reveal any modifications made over time. By capturing the state of the registry before and after an event, Regshot helps identify alterations, additions, or deletions in the system configuration.</p><ol><li>After looking at the regshot we can see it has added the .hta or the pop file to every folder and to every registry.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HWDylsfHhn7-9VcEAzQlvw.png" /></figure><p>2.The ransomware has successfully encrypted all the files and added the extension of “onionmail” website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*Xk000eObvZkgOHm8gghTmA.png" /></figure><p>4. it has added “Readme” text files to all the folders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*96lcIFqVq_mZLaO-rMEEiw.png" /></figure><h4><strong>CONCLUSION</strong></h4><h4><strong>In the vast digital landscape, ransomware behaves like a cunning thief, sneaking into our virtual homes and locking away our cherished belongings. Imagine it as a shadowy figure that steals not just our files, but our peace of mind too. However, in this tale of challenges and courage, we, the digital community, are the heroes. Together, we can outsmart this virtual bandit, guarding our digital treasures with knowledge and awareness through blogs. Remember, even in the face of darkness, the light of awareness and cooperation can guide us toward a safer cyber future.</strong></h4><h4><strong>Stay tuned for upcoming blogs!</strong></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a178558f2f34" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>