Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

Macro Malware Makes Improvements on Hiding Malicious Code

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.

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.  

Advertisement. Scroll to continue reading.

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.

Written By

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

Click to comment

You must be logged in to post a comment Login

Leave a Reply

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

SecurityWeek’s Cyber AI & Automation Summit pushes the boundaries of security discussions by exploring the implications and applications of predictive AI, machine learning, and automation in modern cybersecurity programs.

Register

Join to learn the four levels of architecting security into the agentic SDLC – from securing the code your developers' agents write to running a coordinated system of security agents you've built yourself.

Register

People on the Move

Jensen Huang has been reinstated as President and CEO at NVIDIA.

Lindsey Cerkovnik has joined Anthropic as Head of Vulnerability Disclosure and Security Community.

Kirsten Davies has been appointed National Cyber Director.

More People On The Move

Expert Insights

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.