Nemty
- Type
- Ransomware
- Capabilities
- ExfiltrationExtortionDefense evasion
- Delivery
- PhishingMalspamLureMalvertisingExploit kit
- Platforms
- Windows
Nemty is a Windows ransomware family first discovered in August 2019. It encrypts victims’ files, adds a variant-specific filename extension, and leaves ransom instructions demanding payment for decryption. Observed versions delete Windows shadow copies to impede recovery. Its operators adopted double extortion in January 2020, combining file encryption with data theft and threats to publish stolen information if victims refused to pay.
Nemty has been distributed through malicious email attachments, compromised systems accessed through Remote Desktop Protocol, and RIG exploit-kit malvertising campaigns targeting outdated software, including Internet Explorer and Flash Player. The Phorpiex botnet, also known as Trik, has delivered Nemty and supported spam campaigns using romantic-message lures with archived malicious JavaScript attachments. Another campaign primarily targeting South Korean users impersonated the Korean Fair Trade Commission and delivered compressed executable attachments containing Nemty alongside a separate information stealer. Messages from that campaign also reached users in the United States, Germany, and the United Kingdom. Nemty samples have used third-party packers, including Rex3Packer and MalPE, to conceal their payloads.
Nemty initially operated as ransomware-as-a-service. An operator using the handle jsworm later announced the closure of the public service in favor of a private operation and subsequently advertised a rewritten release called Nemty Revenue 3.1. Nefilim shares substantial code with Nemty 2.5 but omits its ransomware-as-a-service component; code similarity alone does not establish common operators.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Threat actors behind Nemty ransomware close down their ransomware-as-a-service (RaaS) operation as they zero in on private schemes.
Based on our observations on Nefilim attacks to date, our hypothesis is that Nefilim is a RaaS operation whose business model closely resembles that of Nemty, another RaaS operation first spotted in August 2019.
Techniques & procedures
34 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
Security researcher Mol69 noticed that the file-encrypting malware is now a payload in malvertising campaigns from RIG exploit kit (EK).
Initial Access
6 techniques
Initial Access
Compared to phishing email, which is currently the common distribution method, leveraging a RDP connection puts the attacker in control... Once attackers have valid credentials, only 37% of their actions are blocked
It is most likely distributed through exposed Remote Desktop Protocol (RDP)... The new ransomware is most likely spread through RDP... Like Nefilim, many of these ransomware attacks abuse exposed RDP ports.
Security researcher Mol69 noticed that the file-encrypting malware is now a payload in malvertising campaigns from RIG exploit kit (EK).
There is evidence of an initial breach via exploitation of vulnerable server-side software (Citrix ADC) and unsecure RDP access.
In the past, Nemty has been observed being spread via the RIG exploit kit, as well as via malicious spam campaigns targeting users in Korea and China, where the malware is attached inside an archive.
The criminals behind the botnet use the infected computers to send email spam and have been observed pushing out a wide range of malware families, with Nemty being the latest to join the list.
Execution
3 techniques
Execution
Nemty 1.6 gains persistence by adding a scheduled task using the following command: cmd.exe /c schtasks.exe /create /sc onstart /tn “NEMTY_<FILEID>_” /tr “C:\Users\user\AdobeUpdate.exe”
The links lead to Powershell scripts that execute embedded malware payloads using Reflective PE Injection.
Exploit kits are not as commonly used since they typically thrive on vulnerabilities in Internet Explorer and Flash Player... Even so, many companies still depend on them
Persistence
3 techniques
Persistence
Nemty 1.6 gains persistence by adding a scheduled task using the following command: cmd.exe /c schtasks.exe /create /sc onstart /tn “NEMTY_<FILEID>_” /tr “C:\Users\user\AdobeUpdate.exe”
Compared to phishing email, which is currently the common distribution method, leveraging a RDP connection puts the attacker in control... Once attackers have valid credentials, only 37% of their actions are blocked
It is most likely distributed through exposed Remote Desktop Protocol (RDP)... The new ransomware is most likely spread through RDP... Like Nefilim, many of these ransomware attacks abuse exposed RDP ports.
Privilege Escalation
2 techniques
Privilege Escalation
Nemty 1.6 gains persistence by adding a scheduled task using the following command: cmd.exe /c schtasks.exe /create /sc onstart /tn “NEMTY_<FILEID>_” /tr “C:\Users\user\AdobeUpdate.exe”
Compared to phishing email, which is currently the common distribution method, leveraging a RDP connection puts the attacker in control... Once attackers have valid credentials, only 37% of their actions are blocked
Stealth
6 techniques
Stealth
It implements a minor anti-analysis trick consisting of a string obfuscation algorithm. The strings ... are encrypted by the RC4 stream cipher with a hardcoded key “fuckav” and encoded in Base64.
09.27.2019 09:05:57 CLEANING OLD BOTS WERE DELETED BECAUSE USELESS
there is no free decryption tool available at the moment and the malware makes sure to remove the file shadows created by Windows.
Compared to phishing email, which is currently the common distribution method, leveraging a RDP connection puts the attacker in control... Once attackers have valid credentials, only 37% of their actions are blocked
The confusion continues when it checks to see if the IP address of the victim is located in Russia, Belarus, Kazakhstan, Tajikistan, or Ukraine by accessing hxxp://api.db-ip.com/v2/free/ {IP address}/ countryName.
The links lead to Powershell scripts that execute embedded malware payloads using Reflective PE Injection.
Credential Access
1 technique
Credential Access
The polling service was leaking very important information on a GET request: the JWT token. By reusing that token in a cookie, you could access the Nemty’s panel authenticated as the user related to the token.
Discovery
4 techniques
Discovery
Upon launch, the sample will gather the information about storage devices attached to the infected machine, get its external IP address by an HTTP request to http://api.ipify.org
09.09.2019 08:46:37 Mini update update build, now ransomware will skip files with “nemty”, “exe”, “log”, “cab”, “cmd”, “com”, “cpl”, “exe”, “ini”, “dll”, “url”, “ttf”, “url” extension and even in upper case added process kill “sql”, “winword”, “wordpad”, “outlook”, “thunderbird”, “oracle”, “excel”, “onenote”, “virtualboxvm”
Upon launch, the sample will gather the information about storage devices attached to the infected machine, get its external IP address... determine the victim’s country...
The confusion continues when it checks to see if the IP address of the victim is located in Russia, Belarus, Kazakhstan, Tajikistan, or Ukraine by accessing hxxp://api.db-ip.com/v2/free/ {IP address}/ countryName.
Lateral Movement
2 techniques
Lateral Movement
It's unclear how Nemty is distributed but Kremez heard from a reliable source that the operators deploy it via compromised remote desktop connections.
It's unclear how Nemty is distributed but Kremez heard from a reliable source that the operators deploy it via compromised remote desktop connections.
Collection
1 technique
Collection
The polling service was leaking very important information on a GET request: the JWT token. By reusing that token in a cookie, you could access the Nemty’s panel authenticated as the user related to the token.
Command and Control
6 techniques
Command and Control
Nemty 1.4 uses HTTP GET with URI /public/gate?data=
In the log we can see that: A client 96.57.xx.xxx Sent a web request “GET tuneappservice.org/l3k42hj56h634gkj2lk14356jk4gh23k5jl6h4/gate.php?ped=RTY3M0E4NjhDQ0I5JE1DLTEwNw” We can see here what looks like a malware callback, it’s in fact Riltok.
The sample downloads the TOR client ... extracts it and launches on the infected machine. After waiting for 30 seconds ... the Trojan sends information about the infection to its C&C server hardcoded in the sample: ... .onion
In early October, we noticed that Trik had begun distributing Nemty as a payload, adding another channel for the ransomware’s delivery.
The domains involved are resolving to a list of IPs, (we observed from 1 up to more than 20 IPs per domain) that are just redirecting the traffic to the real server.
The story we are writing here will try to explain how, from a simple mistake made by an operator, we managed to collect and exploit a lot of precious information from a “Fast Flux” network called BraZZZerS Fast Flux between end of 2018 and 2022.
Exfiltration
2 techniques
Exfiltration
If a ransom is not paid, then the ransomware operators release the stolen files on a public 'news' site to expose the victim to government fines, lawsuits, and the risk of the attack being classified as a data breach.
Three more ransomware families have created sites that are being used to leak the stolen data of non-paying victims... Nefilim Ransomware has launched a site called "Corporate Leaks" that is being used to dump the data of victims who do not pay a ransom.
Impact
4 techniques
Impact
After achieving the privilege level needed, encryption usually occurs on the individual machine without lateral movement
Besides file encryption, it performs actions such as stopping a number of running processes and services to maximize the number of files available for encryption.
In addition, it deletes all system backups, shadow copies, disables the system recovery mode, and clears event logs.
The operators behind Sodinokibi Ransomware have published the download links to archives containing data allegedly stolen from the US firm Kenneth Cole Productions... threatens to leak online the full dump containing stolen data in case the company will decide to not meet the request.
Observables
73 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
50 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.