Security Experts:

Connect with us

Hi, what are you looking for?


Malware & Threats

XML Files Used to Distribute Dridex Banking Trojan

Cybercrooks have been leveraging malicious macros hidden inside XML files to distribute the Dridex financial malware, researchers have warned.

Cybercrooks have been leveraging malicious macros hidden inside XML files to distribute the Dridex financial malware, researchers have warned.

It’s not uncommon for cybercriminals to use specially crafted Microsoft Office files that contain macros for malware distribution. However, attackers usually rely on Microsoft Word and Excel documents, not the XML (Extensible Markup Language) format.

Last week, Trustwave spotted a spam run in which attackers sent out “remittance advice” emails that appeared to come from various companies. The messages instructed recipients to open the remittance advice attached to them.

According to researchers, the attachment is a Word document saved as an XML file named something like “Rem_0443NF.xml.” The file is opened with Microsoft Word if the application is installed on the device, and if macros are enabled, the malicious Visual Basic for Applications (VBA) code is executed.

“Hidden in this seemingly harmless XML file is a malicious macro document file which is compressed, encoded in base64, and stored in XML format,” explained Trustwave’s Rodel Mendrez.

The obfuscated macro downloads the Dridex Trojan from a remote server. The threat is designed to steal sensitive information, such as banking details, from infected systems.

This campaign has been active since October 2014. In January, Trustwave reported that the cybercriminals had leveraged Word and Excel documents to target banking customers in the United Kingdom.

Researchers at Sophos also reported seeing “a surge in brand new VBA malware packaged in this old and unusual format [XML].” The security firm believes it’s likely that cybercriminals have revived the format because it’s not usually associated with attacks.

“Perhaps, also, malware authors hope that the rarity of XML-type files means that some security products are unable to deconstruct it properly,” Graham Chantry, senior threat researcher with SophosLabs UK, explained in a blog post on new developments in Microsoft Office malware.

Chantry has pointed out that the attackers could have embedded the malware as scrambled data directly in the VBA code, which would have allowed the threat to function even when offline. However, the use of a downloader gives the malicious actors extra flexibility, allowing them to change the downloaded malware at any time. This also enables them to adapt the threat based on the victim’s location, and download clean files that serve as a decoy.

Didier Stevens, a handler at the SANS Institute’s Internet Storm Center, has provided some recommendations on how organizations can filter out emails that have potentially malicious XML files attached to them.

“XML declaration identifies the XML file as a Word document, and attribute w:macrosPresent=”yes” (of element w:wordDocument) indicates the presence of VBA macros,” Stevens said.

Written By

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Click to comment

Expert Insights

Related Content

Malware & Threats

Microsoft plans to improve the protection of Office users by blocking XLL add-ins from the internet.


CISA, NSA, and MS-ISAC issued an alert on the malicious use of RMM software to steal money from bank accounts.


Chinese threat actor DragonSpark has been using the SparkRAT open source backdoor in attacks targeting East Asian organizations.

Application Security

Electric car maker Tesla is using the annual Pwn2Own hacker contest to incentivize security researchers to showcase complex exploit chains that can lead to...

Malware & Threats

Norway‎-based DNV said a ransomware attack on its ship management software impacted 1,000 vessels.

Malware & Threats

Cybercrime in 2017 was a tumultuous year "full of twists and turns", with new (but old) infection methods, a major return to social engineering,...


A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...

Malware & Threats

Fortinet warned of three malicious PyPI packages containing code that fetches the Wacatac trojan and information stealer.