Skip to main content
Skip to main content
Microsoft Security Intelligence
Published Jan 07, 2020 | Updated Aug 19, 2025

Trojan:MSIL/NjRat.A

Detected by Microsoft Defender Antivirus

Aliases: No associated aliases

Summary

Trojan:MSIL/NjRat.A is a detection variant for the infamous NjRAT family remote access trojan (RAT) that is attributed to Windows but can also infect other desktop operating systems. The first known instance of this malware family was found in 2012 supposedly linked to threat actors targeting the Middle East. It is now considered a commodity threat as its source code has been leaked on the dark web, allowing others to develop multiple variations. 

The malware is developed in .NET Microsoft Intermediate Language (MSIL) and can gain access to any device that has the .NET runtime library, which means it is endemic across multiple environments. NjRAT is a complete surveillance tool and can steal sensitive information such as credentials from web browsers, apps, keystrokes of all typed input, connected webcams, and microphones for recording, integrate and manipulate files, and download additional malicious payloads. 

NjRAT propagates via phishing campaign strategies with malicious attachments, exploited compromised sites with false updates, drive-by downloads, using infected USB devices, or disguised malicious software from pirate websites.  

  • Disconnect from networks/internet. 
  • Check scheduled tasks (schtasks /query) and remove malicious entries 
  • End task all instances of svchos.exe in Task Manager and use File Explorer to delete it from Windows. Boot to Safe Mode as needed and perform that action. 
  • Restore the Windows Hosts file (C:\Windows\System32\drivers\etc\hosts) from backups 
  • Reset all passwords stored in browsers or cached applications. 

Microsoft Defender Antivirus automatically removes threats as they are detected. However, many infections can leave remnant files and system changes. Updating your antimalware definitions and running a full scan might help address these remnant artifacts. 

You can also visit our advanced troubleshooting page or search the Microsoft virus and malware community for more help. 

Follow us