Severity
Medium
Analysis Summary
NjRat is a Remote Access Trojan, which is found leveraging Pastebin to deliver a second-stage payload after initial infection. There are multiple versions of the secondary payload used, ranging from base64 encoded version, hexadecimal, JSON data format, compressed blobs, and plain text data with malicious URLs embedded within. This is done to evade detection by security products and increase the possibility of operating unnoticed. njRat is developed in the .NET framework and can hijack the functions of a compromised machine remotely, including taking screenshots, exfiltrating data, keylogging, and killing processes such as antivirus programs, while also connecting the machine to a botnet. RAT was also found abusing Windows API functions such as Windows API calls such as GetKeyboardState(), GetAsynckeyState(), and MapVirtualKey() for keylogging, and data theft. It was also discovered downloading web scraping tools such as “proxy scrapper” to extract large amounts of data via proxies.
Impact
- Unauthorized Access
Indicators of Compromise
MD5
15e12235e0ff99601bcf926331d50610
11c3196429a302348c62e6da8cfb886a
a6fd318006dc828ff5d76a647f385d68
SHA-256
4a65c27c890a97e68fbc5dd25b4d8828f834f60f307acb2a4979df3223dcba4b
46a9fd7c1f057ddb96e35ae32b81273b7ef1c2abd0fd0b41a414cf6e657a77c9
2c6592950b4b786a7a13f1457f5f5fbeaf096906dc106503a8286c1c03b62a8f
SHA1
ea585a502ef2a89adf507d7e8a26129c3faaff63
57e8df5da599483555e30633e3d403ddfc9f0089
4d63e01958e754cf059fdc09e9b39aa12bd6c69e
Remediation
- Block all threat indicators at your respective controls.
- Search for indicators of compromise (IOCs) in your environment utilizing your respective security controls.
- Do not download documents attached in emails from unknown sources and strictly refrain from enabling macros when the source isn’t reliable.
- Enable antivirus and anti-malware software and update signature definitions promptly. Using multi-layered protection is necessary to secure vulnerable assets.
- Patch and upgrade any platforms and software timely and make it into a standard security policy.
- Enforce access management policies.
- Along with network and system hardening, code hardening should be implemented within the organization so that their websites and software are secure. Use testing tools to detect any vulnerabilities in the deployed codes.

