Persistent Emotet Malware with a Crafty Social Engineering Technique
Malware Family: Emotet
SHA256 Hash Vaule
View the Full VMRay Analyzer Report
With security ever more tightly integrated into operating systems, malware authors often rely on the unwitting participation of an end user to enable malicious action. Social engineering techniques have evolved significantly over the years and last week the VMRay Research Team identified a crafty spear-phishing email addressed to some our employees. The email was designed to look like it had been sent by the CEO of VMRay.
The email was designed to look like it had been sent by the CEO of VMRay (Figure 1). The CEO’s name and email address were also included in the email.
The email simply states that it contains a link to a document with ‘the desired information’. A quick lookup of the URL contained in the email on VirusTotal reveals that only 4 out of 63 AV engines detect it as malicious.
On clicking the link in the email, a Word document is downloaded. The Word document contains a macro which is both obfuscated and encoded. Since Microsoft Office has security restrictions that prevent files from executing macros, especially when they are downloaded from the web, the malware author tries to trick the user to enable the macro by displaying three steps to enable the content (a social engineering technique that we also observed in the Microsoft Word ‘invoice’ analysis).
Encoded and Obfuscated Macro
The VMRay Research Team was able to decrypt and de-obfuscate the macro contained in the Word document. We can see in Figure 4 that the macro executes a series of PowerShell commands which downloads the malicious payload from a remote host in order to proceed to the next stage.
The malicious payload collects and sends user and system information including computer name, CPU architecture and OS version, as well as a list of active processes to a remote host. This information can be seen in the function log generated by VMRay Analyzer (Figure 6).
To ensure that it persists even after the system is restarted, this malware sample adds an entry to the startup directory in the Windows registry. VMRay Analyzer detects this attempt by the malware (listed under Detected Threats) and ensures that an automatic reboot is performed in order to reveal the complete behavior of the malware sample.
VMRay Analyzer Results
In addition to the log file and complete process flow graph highlighted in Figures 4, 5 and 6, VMRay Analyzer also creates a summary of all the suspicious behavior patterns exhibited by the sample (Figure 8). A network activity graph is also created which shows all the hosts contacted (Figure 9).
After the reboot, the system continues to be monitored (indicated in the process flow graph in figure 6). The malware sample tries to establish contact with a C&C server to perform more malicious actions. Unfortunately, in our analysis, the malware could not successfully contact the C&C server after the reboot since the C&C server appeared to have been taken down already. Nevertheless, the connection attempt is detected by VMRay Analyzer and flagged in the report.
This example shows how social engineering techniques continue to evolve. It also highlights persistence as a technique used by malware authors to maintain access to systems even after interruptions such as system restarts.
View the complete VMRay Analyzer report for the downloaded Word document