njRAT
- Type
- RAT
- Capabilities
- Credential theftKeyloggingReconnaissanceDefense evasion
- Delivery
- PhishingSpearphishingLureSeo poisoningUSB
- Platforms
- Windows
njRAT, also known as Bladabindi, is a Windows remote access trojan implemented in .NET that has circulated since approximately 2012. Used by cybercriminals and espionage actors, it provides remote desktop access, screen capture, keystroke logging, credential theft, file management, and plugin support. It can discover other hosts on connected networks and supports propagation through USB devices. Its code has been reused in derivative malware, including KGB RAT.
Distribution methods include spearphishing attachments, malicious download links, trojanized software installers, and fake game downloads. Observed examples include malicious UltraMailer installers and purported leaked Grand Theft Auto VI builds promoted through search-engine poisoning, gaming forums, social media, and torrent sites. njRAT has also been deployed following exploitation of Apache Log4j vulnerabilities and through archives exploiting WinRAR vulnerability CVE-2023-38831.
Blind Eagle, also tracked as APT-C-36, has distributed njRAT through spearphishing. The malware has also been used in attempts to compromise human rights defender Ahmed Mansoor. Its broad commodity availability supports use by operators with varying levels of sophistication rather than attribution to a single group. Observed samples include obfuscated builds and copies that create firewall rules to permit communications. Modified variants have added cryptocurrency-mining functionality.
Associated vulnerabilities
10 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
31 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
(Citation: Proofpoint TA2541 February 2022)(Citation: Cisco Operation Layover September 2021)
+25 more in the app. View in Mallory
Techniques & procedures
121 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
This time, the typosquatting packages identified by us are laced with a popular Remote Access Trojan (RAT).
Resource Development
7 techniques
Resource Development
The observed infrastructure includes TinyURL short links, Discord CDN-hosted payloads, direct-IP payload hosts, and the wins10ok.duckdns[.]org NJRAT C2 domain.
"Cyber criminals are spending millions buying up expired domains to repurpose them for malware..." and "estimated to have invested more than $7 million in acquiring over 10,000 expired domains now used for ... malware distribution."
NJRat/Xworm Botnet Servers ... Extremely high number of running services (typically 200-400) ... At least one dns.name pointing to an ngrok address
Adversaries may buy, steal, or download malware that can be used during targeting.
TinyURL links resolved to Base64-encoded loader and dropper files hosted on the Discord content delivery network.
Transparent Tribe has set up websites with malicious hyperlinks and iframes to infect targeted victims with Crimson, njRAT, and other malicious tools.
Malicious GTA6 ISO files were distributed through search engine optimization (SEO) poisoning, gaming forums, social media, and torrent sites.
Initial Access
8 techniques
Initial Access
[njRAT](https://attack.mitre.org/software/S0385) can be configured to spread via removable drives.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)
Может распространяться путём взлома через незащищенную конфигурацию RDP
It is also found to be delivered by masquerading as a legitimate application installer uploaded to file-sharing services and luring victims via drive-by download campaigns.
...эксплойтов...
Yet, it is secretly pulling in the malicious 'jdb.js' as a dependency... in version 1.0.4... the very last line being: require('jdb.js');
The actor sends malicious emails written in Portuguese, Spanish, and sometimes English. The emails use reservation-themed lures with business-relevant themes such as hotel room bookings.
The emails may contain malicious attachments or URLs aiming to distribute one of at least 15 different malware payloads... These early campaigns typically used malicious Word attachments that exploited Equation Editor vulnerabilities.
The attacks we have documented usually involve the use of malicious links or e-mail attachments, designed to obtain information from a device.
Execution
13 techniques
Execution
Persistence: Registry Run Key HKCU and HKLM Scheduled Task MIN schtasks every 1 minute StUpdate Registry Persistence
It allows to call functions exported by DLL libraries, in particular Windows API functions, from JScript and VBScript.
[njRAT](https://attack.mitre.org/software/S0385) has executed PowerShell commands via auto-run registry key persistence.(Citation: Trend Micro njRAT 2018)
[njRAT](https://attack.mitre.org/software/S0385) can launch a command shell interface for executing commands.(Citation: Fidelis njRAT June 2013)
We found the initial macros for testing and then another version that, for the untrained eye, would seem like a perfectly normal macro. In both cases, the macro extracts data from the Microsoft Form object embedded in the malicious document. | These emails would appear to contain an attached PDF file that was a link to a .vbs file hosted on Google Drive.
The malicious HTA is simply an escaped JavaScript snippet that, in turn, executes a VBScript (embedded in an HTA) to download and execute the next stage
[njRAT](https://attack.mitre.org/software/S0385) has used the ShellExecute() function within a script.(Citation: Trend Micro njRAT 2018)
The bad actors behind this campaign execute the malicious code by proxy, by injecting it into MSBuild.exe... This directly maps to the Technique T1127.001 in the MITRE ATT&CK framework.
The .NET assembly is loaded utilizing PowerShell’s [AppDomain]::CurrentDomain.Load() method.
When a victim double-clicks on the PDF, the vulnerability will quietly launch a script in the folder to install malware on the device.
자료 공유 사이트를 통해 악성코드가 활발하게 유포되고 있어 주의가 필요하다. 자료 공유 사이트에서 다운받은 실행파일은 각별히 주의해야 하며
Infection begins when a victim mounts the malicious ISO and launches gta6installer.exe.
DCOM_DATA is decoded and dropped to %temp% directory under the name “HOUDINI.BIN” and registered with regsvr32.exe.
Persistence
7 techniques
Persistence
Persistence: Registry Run Key HKCU and HKLM Scheduled Task MIN schtasks every 1 minute StUpdate Registry Persistence
[njRAT](https://attack.mitre.org/software/S0385) can create, delete, or modify a specified Registry key or value.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)
Может распространяться путём взлома через незащищенную конфигурацию RDP
copy the malware to this path and deleting the current instance of the malware and starting the new process of malware as “Microsoft system.exe”.
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[njRAT](https://attack.mitre.org/software/S0385) has added persistence via the Registry key <code>HKCU\Software\Microsoft\CurrentVersion\Run\</code> and dropped a shortcut in <code>%STARTUP%</code>.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)
Furthermore, we also observed that the vbs script also dropped to disk the following .lnk file: C:\Users\Lucas\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\windowsUpdate.lnk This direct access points at the following Powershell execution
Privilege Escalation
8 techniques
Privilege Escalation
Persistence: Registry Run Key HKCU and HKLM Scheduled Task MIN schtasks every 1 minute StUpdate Registry Persistence
loading them using a puppet process injection within the memory of process “C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe” ... or in “C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe”
The injection method is a straight process hollowing, following all the usual steps.
SeDebugPrivilege is a powerful Windows security privlege that allows a user or process to debug, read, and write memory in any other process, bypassing default Access Control Lists (DACLs)... AdjustTokenPrivileges This API enables or disables privileges in the specified access token.
copy the malware to this path and deleting the current instance of the malware and starting the new process of malware as “Microsoft system.exe”.
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[njRAT](https://attack.mitre.org/software/S0385) has added persistence via the Registry key <code>HKCU\Software\Microsoft\CurrentVersion\Run\</code> and dropped a shortcut in <code>%STARTUP%</code>.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)
Furthermore, we also observed that the vbs script also dropped to disk the following .lnk file: C:\Users\Lucas\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\windowsUpdate.lnk This direct access points at the following Powershell execution
Stealth
34 techniques
Stealth
“[The executable] contains a base-64 encoded executable” and “it is .NET-compiled, which uses a commercial code protector software for obfuscation.”
"embed an OLE Package object within a PowerPoint slideshow... the object is executed while the slideshow is viewed"
A common factor of the operation’s second-stage samples is the usage of steganography to obfuscate their malicious intent.
[njRAT](https://attack.mitre.org/software/S0385) has used AutoIt to compile the payload and main script into a single executable after delivery.(Citation: Trend Micro njRAT 2018)
ISOMorph leverages HTML Smuggling to deliver malicious files to users’ endpoints by evading network security solutions such as sandboxes and legacy proxies.
The packed LV ransomware samples identified by CTU researchers appear to use the same basic crypter. The packed executable stores the LV ransomware binary as RC4-encrypted data within a section named 'enc'.
Generated datasets for njrat fileless registry entry in attack range.
[njRAT](https://attack.mitre.org/software/S0385) has included a base64 encoded executable.(Citation: Trend Micro njRAT 2018)
Numerous executables and scripts are written to %TEMP%, several using filenames intended to resemble legitimate GTA, Rockstar Games, Steam, or Windows components.
Install As: WindowsServices.exe
Install name "USB.exe"; crypto investment decoy images ... The install name USB.exe is a social engineering choice
loading them using a puppet process injection within the memory of process “C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe” ... or in “C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe”
The injection method is a straight process hollowing, following all the usual steps.
Once the configuration scripts have completed execution, they are deleted from the endpoint.
[njRAT](https://attack.mitre.org/software/S0385) is capable of deleting files.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)
"Indicator Removal: Clear Persistence" (listed under njRAT)
[njRAT](https://attack.mitre.org/software/S0385) is capable of manipulating and deleting registry keys, including those used for persistence.(Citation: Trend Micro njRAT 2018)
The bad actors behind this campaign execute the malicious code by proxy, by injecting it into MSBuild.exe... This directly maps to the Technique T1127.001 in the MITRE ATT&CK framework.
SeDebugPrivilege is a powerful Windows security privlege that allows a user or process to debug, read, and write memory in any other process, bypassing default Access Control Lists (DACLs)... AdjustTokenPrivileges This API enables or disables privileges in the specified access token.
The packed samples analyzed by CTU researchers use the hard-coded "kZlXjn3o373483wb6ne1LIBNWD3KWBEK" key to decrypt the contents of the enc section.
Where $H5 = injector DLL bytes $H1 = malware payload bytes aspnet_compiler.exe = target process to inject the payload into. May vary for different instances of the infections.
"The YIPPHB dropper is executed using the Installutil.exe command-line utility to start the RAT phase."
This macro downloads an HTML document from the C2 and uses the mshta, as can be seen on the image above on the right.
The following analytic detects the loading of a DLL using the regsvr32 application with the silent parameter and DLLInstall execution.
The malware first create a registry key value pair “{di:!}” under current user and we see implement a mutual exclusion object to hinder concurrent infections on a single device.
first check the list predefined process running on victim’s machine if they are, the malware executable will stop execution... CsAntiProcess handler look for the process and if its there , it stops execution.
Reviewing the INS function , first we see the malware trying to find the file “C:\Windows\Microsoft system.exe” and copy the malware to this path... Further we see the malware killing a process “Exsample.exe” if its running. based on the research , it indicates that this file is a old version of same malware.
The following analytic detects potentially malicious processes that initiate a ping delay using an invalid IP address... command-line executions involving "ping 0 -n". This behavior is significant as it is commonly used by malware like NJRAT to introduce time delays for evasion tactics, such as delaying self-deletion.
In the second stage, AHK drops a Batch script that hides the manifest file, so that only the benign VBS launcher called conhost.exe will be visible to the victim.
“For propagation, it installs a hidden copy of itself on any removable drive found on the infected system.”
DCOM_DATA is decoded and dropped to %temp% directory under the name “HOUDINI.BIN” and registered with regsvr32.exe.
“[It] execute[s] PowerShell to load the encoded executable via reflective loading (loading an executable from memory rather than from the system’s disks).”
OK.ko() First, it creates a mutex to ensure only a single instance is running.
It relied on social engineering to trick people into clicking on malicious links and installing malware on their devices.
Defense Impairment
4 techniques
Defense Impairment
[njRAT](https://attack.mitre.org/software/S0385) can create, delete, or modify a specified Registry key or value.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)
The list of process mentioned... wireshak, apateDNS, processhacker, dnSpy, ILSpy, VGAuthService, VBoxService... malware checks on the system on execution
“When the backdoor runs, it creates a firewall policy that adds PowerShell’s process to the list of allowed programs in the system.”
[njRAT](https://attack.mitre.org/software/S0385) has modified the Windows firewall to allow itself to communicate through the firewall.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)
Credential Access
4 techniques
Credential Access
Every pressed key is compared ... MapVirtualKey ... GetKeyboardLayout ... ToUnicodeEx ... GetAsyncKeyState
[njRAT](https://attack.mitre.org/software/S0385) is capable of logging keystrokes.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)(Citation: Citizen Lab Group5)(Citation: Kaspersky BlindEagle AUG 2024)
Agent Tesla can gather credentials from a number of browsers... APT33 has used a variety of publicly available tools like LaZagne to gather credentials... TrickBot can obtain passwords stored in files from web browsers such as Chrome, Firefox, Internet Explorer, and Microsoft Edge... SELECT action_url, username_value, password_value FROM logins; CryptUnprotectData
[njRAT](https://attack.mitre.org/software/S0385) has a module that steals passwords saved in victim web browsers.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)(Citation: Citizen Lab Group5)
Discovery
17 techniques
Discovery
Ex Obtains information about the running processes, the services, and the active connections.
[njRAT](https://attack.mitre.org/software/S0385) gathers information about opened windows during the initial infection.(Citation: Fidelis njRAT June 2013)
[njRAT](https://attack.mitre.org/software/S0385) can read specific registry values.(Citation: Trend Micro njRAT 2018)
[njRAT](https://attack.mitre.org/software/S0385) can identify remote hosts on connected networks.(Citation: Fidelis njRAT June 2013)
[njRAT](https://attack.mitre.org/software/S0385) enumerates the current user during the initial infection.(Citation: Fidelis njRAT June 2013)
Ex Obtains information about the running processes, the services, and the active connections.
[njRAT](https://attack.mitre.org/software/S0385) can search a list of running processes for Tr.exe.(Citation: Trend Micro njRAT 2018)
This behavior is significant as it is commonly used by malware like NjRAT to check for administrative privileges on a compromised host.
[njRAT](https://attack.mitre.org/software/S0385) enumerates the victim operating system and computer name during the initial infection.(Citation: Fidelis njRAT June 2013)
[njRAT](https://attack.mitre.org/software/S0385) can browse file systems using a file manager module.(Citation: Fidelis njRAT June 2013)
[njRAT](https://attack.mitre.org/software/S0385) will attempt to detect if the victim system has a camera during the initial infection. [njRAT](https://attack.mitre.org/software/S0385) can also detect any removable drives connected to the system.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)
first check the list predefined process running on victim’s machine if they are, the malware executable will stop execution... CsAntiProcess handler look for the process and if its there , it stops execution.
Reviewing the INS function , first we see the malware trying to find the file “C:\Windows\Microsoft system.exe” and copy the malware to this path... Further we see the malware killing a process “Exsample.exe” if its running. based on the research , it indicates that this file is a old version of same malware.
The following analytic detects potentially malicious processes that initiate a ping delay using an invalid IP address... command-line executions involving "ping 0 -n". This behavior is significant as it is commonly used by malware like NJRAT to introduce time delays for evasion tactics, such as delaying self-deletion.
The script will then check for the presence of five Anti-Virus products on the endpoint.
WMI Antivirus Enumeration Select * From AntiVirusProduct
OK.ko() First, it creates a mutex to ensure only a single instance is running.
Lateral Movement
2 techniques
Lateral Movement
[njRAT](https://attack.mitre.org/software/S0385) has a module for performing remote desktop access.(Citation: Fidelis njRAT June 2013)(Citation: Kaspersky BlindEagle AUG 2024)
[njRAT](https://attack.mitre.org/software/S0385) can be configured to spread via removable drives.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)
Collection
8 techniques
Collection
[njRAT](https://attack.mitre.org/software/S0385) can collect data from a local system.(Citation: Fidelis njRAT June 2013)
Every pressed key is compared ... MapVirtualKey ... GetKeyboardLayout ... ToUnicodeEx ... GetAsyncKeyState
[njRAT](https://attack.mitre.org/software/S0385) is capable of logging keystrokes.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018)(Citation: Citizen Lab Group5)(Citation: Kaspersky BlindEagle AUG 2024)
[njRAT](https://attack.mitre.org/software/S0385) can capture screenshots of the victim’s machines.(Citation: Trend Micro njRAT 2018)(Citation: Kaspersky BlindEagle AUG 2024)
The procedure of the initial phase of execution is summarized as below: Steal Clipboard Content Write to TEMP/FransescoPast.txt
Its capabilities range from logging keystrokes to executing commands, stealing credentials, and capturing microphones and webcams.
[njRAT](https://attack.mitre.org/software/S0385) can access the victim's webcam.(Citation: Fidelis njRAT June 2013)(Citation: Citizen Lab Group5)
In stream 3 we can see the first bytes of content contain the ASCII characters MSCF. This is consistent with Cabinet Archive (CAB) files.
Command and Control
18 techniques
Command and Control
Compare Today Date Switch to Backup C2 ******.ddns.net port 2000 Planted by Builder Author Use Original C2 Set by njRAT Operator
NJRAT communicates with AWS-hosted IP addresses and the ngrok tunneling endpoint 7.tcp.eu.ngrok[.]io:12684; DCRAT communicates with a0700877.xsph[.]ru.
[njRAT](https://attack.mitre.org/software/S0385) has used HTTP for C2 communications.(Citation: Trend Micro njRAT 2018)
"Replication Through Removable Media" (listed under njRAT)
Almost one-third of prevalent malware families we recently analyzed support communication over non-HTTP/S protocols.
Both panels shared identical Alibaba Cloud OSS credentials pointing to a publicly listable storage bucket ("jpginfo") ... Alibaba Cloud OSS used as malware staging infrastructure
Le principe : un token bot et un chat_id embarqués dans le binaire permettent d’envoyer les données volées directement dans un chat Telegram via api.telegram.org, sans infrastructure propre à gérer.
[njRAT](https://attack.mitre.org/software/S0385) can download files to the victim’s machine.(Citation: Fidelis njRAT June 2013)(Citation: Trend Micro njRAT 2018) [APT-C-36](https://attack.mitre.org/groups/G0099) has used modified versions of [njRAT](https://attack.mitre.org/software/S0385) to enable the download of .NET assemblies.(Citation: Kaspersky BlindEagle AUG 2024)
ADVSTORESHELL C2 traffic is encrypted, then encoded with Base64 encoding. APT19 HTTP malware variant used Base64 to encode communications to the C2 server. APT33 has used base64 to encode command and control traffic.
[njRAT](https://attack.mitre.org/software/S0385) uses Base64 encoding for C2 traffic.(Citation: Fidelis njRAT June 2013)
Useful starting points are MITRE ATT&CK techniques for remote access software (T1219)
The malware establishes a connection to the C2 server 44gang44.duckdns[.]org (dynamic DNS service) on port 2222
[njRAT](https://attack.mitre.org/software/S0385) has used a fast flux DNS for C2 IP resolution.(Citation: Trend Micro njRAT 2018)
The decrypted C2 domain is laohe1[.]myvnc[.]com — a No-IP dynamic DNS domain ... We resolved all six "laohe" DDNS domains under the myvnc[.]com namespace.
“The variant of the BLADABINDI backdoor uses water-boom[.]duckdns[.]org as its command-and-control (C&C) server… this fileless version’s C&C-related URL uses dynamic domain name system (DNS).”
[njRAT](https://attack.mitre.org/software/S0385) has used port 1177 for HTTP C2 communications.(Citation: Trend Micro njRAT 2018)
the final-stage njRAT payload had its C2 configuration encrypted with a custom AES-256 scheme ... AES-256-ECB encrypted config
Command and Control Encrypted Channel: Asymmetric Crypto T1573.002 TLS with RSA-4096 self-signed cert
Exfiltration
2 techniques
Exfiltration
[njRAT](https://attack.mitre.org/software/S0385) has used C2 infrastructure to receive stolen information from the infected machine including screenshots and other system information.(Citation: Trend Micro njRAT 2018)(Citation: Kaspersky BlindEagle AUG 2024)
The leak sites name and shame victims. The threat actors coerce the victims into paying the ransom by threatening to publish their sensitive information.
Impact
8 techniques
Impact
Files on the victim's system will be encrypted with session keys that are protected by LV's public key, and victims will be directed to LV's ransom payment site via the updated ransom note.
Further we see the malware killing a process “Exsample.exe” if its running.
The following analytic detects the modification of registry keys to disable System Restore on a machine... disabling System Restore can hinder recovery efforts... Annotations ID Technique Tactic T1490 Inhibit System Recovery Impact
“BLADABINDI… is a remote access tool (RAT) with a myriad of backdoor capabilities — from keylogging to carrying out distributed denial of service (DDoS).”
DDoS The author implemented a simple Denial-of-Service functionality: HTTP flooding
By infecting a host with this malware, a remote attacker gains the ability to... initiate system shutdown or restart at will...
Disk Wipe: Disk Structure Wipe - T1561.002 NJRAT, also known as “Bladabindi,” is a well-known Remote Access Trojan (RAT) designed to collect and steal sensitive information from targeted or compromised systems. Interestingly, STRT identified a unique technique in one variant that could overwrite the Master Boot Record (MBR) of the Windows operating system.
Scammers running business email compromise (BEC) fraud have grown in number, attack more often, and turn to remote access trojans as the preferred malware type to accompany their raids.
Observables
896 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
200 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.