Macro malware, a major threat in the 1990s, has recently returned to focus and is evolving, courtesy of tricks designed to better keep the malicious code hidden, Microsoft warns.
Security researchers at Microsoft's Malware Protection Center (MMPC) recently observed a new variation of the TrojanDownloader:O97M/Donoff family of Office-targeting macro-based malware in a file that contained a VBA project designed to script the malicious macro.
Active for several years, Donoff is used in spam email campaigns in which attackers employ various social engineering techniques to trick users into opening malicious attachments. Similar to Bartallex, Dridex, and others, Donoff is a downloader, meaning that after execution it drops other malware onto the infected system, including banking Trojans, point of sale threats, and ransomware, IBM said in a December 2015 report.
In the newly observed campaign, Donoff authors went to great lengths to make sure that the attachment doesn’t appear malicious. The file is a Word document that contains seven VBA modules and a VBA user form with three buttons (using the CommandButton elements), Microsoft's Marianne Mallen and Wei Li explain.
The researchers explain that the VBA modules appear to be legitimate SQL programs powered with a macro without malicious code. However, upon closer inspection, they discovered that a strange string in the Caption field for CommandButton3 in the user form, which appeared to be an encrypted string.
When analyzing the other modules in the file, the researchers discovered unusual code in Module2 as well, where a macro was designed to decrypt the string in the Caption field for CommandButton3. The string was found to be a URL that would fetch a payload containing the Locky ransomware.
Microsoft researchers also found that the default autoopen() macro was used to run the entire VBA project as soon as the document was opened.
“The VBA project (and, therefore, the macro) will automatically run if the user enables macros when opening the file – our strongest suggestion for the prevention of Office-targeting macro-based malware is to only enable macros if you wrote the macro yourself, or completely trust and know the person who wrote it,” Microsoft’s researchers explain.
Earlier this year, Dridex and Locky, two related malware families that also use malicious macros for distribution, were observed employing new evasion techniques as well. At the time, researchers at Trend Micro noticed that both threats were using Form object in macros to obfuscate the malicious code, instead of scripts usually laid in the macro sheet to deliver and execute the malicious payload.
Regards,
OURTECHPLANET.COM