Hacker exploits vulnerabilities in aNotepad to abuse WogRAT

The new WogRAT malware attacks systems running Windows and Linux, using the aNotepad online platform to store and deliver malicious code.

By data researchers from the AhnLab Security Intelligence Center (ASEC) who discovered this malware has been active since at least the end of 2022 and targets Japan, Singapore, China, Hong Kong and other Asian countries.

How WogRAT was initially distributed is unknown, but researchers note that the names of its executable files are similar to the names of popular programs (flashsetup_LL3gjJ7.exe, WindowsApp.exe, WindowsTool.exe, BrowserFixup.exe, ChromeFixup.exe, HttpDownload.exe, ToolKit.exe), This suggests that the malware is distributed using malicious advertising, posing as popular software.

On the note-taking platform aNotepad, the malware hosts a base64-encoded .NET file for Windows, masquerading as an Adobe product. Since aNotepad is a legitimate service, it does not raise suspicion from security solutions and does not appear on block lists, which helps hackers make the infection chain more invisible.

The fact is that when WogRAT is first launched on the victim’s computer, it is unlikely to be noticed by antiviruses, because it does not contain any malicious functions, only an encrypted downloader of malicious code that is compiled and executed on the fly. This loader fetches another malicious .NET binary stored in base64 encoding in aNotepad, resulting in the loading of a DLL that is WogRAT.

WogRAT then compiles and sends a base profile of the infected system to its command and control server and receives commands to execute in response. Thus, the malware is capable of: executing a specific command, downloading a file from a specified URL, transferring the specified file to the control server, waiting for some time (in seconds), and completing its work.

The Linux version of WogRAT, which comes as an ELF file, has much in common with the Windows version. However, it is distinguished by the use of Tiny Shell for routing, additional encryption when communicating with the management server, and this option does not use aNotepad.

TinySHell is an open-source backdoor that facilitates communication and command execution on Linux systems and is used by many hacking groups, including LightBasin, OldGremlin, UNC4540 and the operators of the Linux rootkit Syslogk.

Another noticeable difference between the versions is the fact that commands in the Linux version are not sent via POST requests, but are transmitted through a reverse shell created on a given IP and port.