The IcedID banking trojan on Romanian servers: an analysis anyone can follow

Originally published in May 2020, based on public information.

IcedID (also known as BokBot) is a banking trojan discovered in September 2017. In March 2020, a Word document sent by email downloaded IcedID from a compromised Romanian website, while a second .ro domain hosted the trap document itself. The analysis below uses only a public scanning platform and can be repeated by anyone, with no advanced malware analysis skills.

Key points

  • The trojan reached victims by email, in a document named like an invoice, which asked for content to be enabled.
  • 37 of 63 antivirus products flagged the document as malicious.
  • Once enabled, the document downloaded a file from a Romanian website and saved it as ZXTRTU.exe.
  • The owners of the two websites did not know they were hosting malicious files.
  • A suspicious document can be checked in a few minutes on a public scanning platform.

Why a vulnerable website matters

Owning a website comes with responsibility. The days when a hacked site simply had its home page replaced, so the attacker could boast, are over. Today a vulnerable website is used to distribute infected files, for redirects and to store malware or stolen data. The owner becomes, without knowing it, a supporter of illegal activity.

How the trojan reaches the victim

IcedID spreads through altered web pages or through emails with trap files. In the case analysed it arrived by email. The text of the message manipulates the recipient into downloading the attachment, and the name of the document is chosen to suit the target:

  • for companies: invoice, notice, warning, request, reply to a request, payment order;
  • for individuals: invoice, voucher, discount, alert.

The email analysed had a document attached, which we will call Invoice.doc. When opened, the text was hidden, on the pretext that a function was not active and had to be enabled.

Checking on VirusTotal

The document was uploaded to VirusTotal: scan result.

The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis

Detection 37 of 63, meaning 37 antivirus products say the file is malicious. The tags displayed are informative too, and each can be looked up online: docx, email-pattern, enum-windows, exe-pattern, handle-file, obfuscated, open-file, run-dll, url-pattern, write-file. Three deserve attention:

  • macros: automation functions, that is, a series of visible or invisible commands;
  • obfuscated: a method of hiding a function, source code or commands;
  • url-pattern: the document probably contains a web address.

The details page

The details page holds a lot of information about the scanned document.

The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis
The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis
The languages found in the document hint at where it comes from.
The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis
The application is Microsoft Word, the base target is a script that mentions a Romanian web page, and the document was created on 27 February 2020.

Relations with other sources

The relations page shows which addresses the document is linked to.

The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis
Scanned on 7 March 2020, with a detection of 5 out of 72, the document was directly linked to the Romanian page. The rest are scans of the same document coming from other web pages.

Behaviour when enabled

The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis
This is where the relationship between the trojan and the Romanian page becomes clear: the document downloads the malware from that address. The attacker had uploaded it to the site’s uploads folder.
The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis
The commands executed.

The chain is clear:

  1. the document is opened in Microsoft Word and the user enables editing;
  2. the command that downloads the file ginndoe.jp from the web page is executed;
  3. the file is saved to disk as ZXTRTU.exe;
  4. PowerShell waits four seconds, then starts ZXTRTU.exe.

The community

Useful information also comes from the VirusTotal community.

The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis
The same malware is linked to another Romanian page as well. That one hosted the .doc document, not the malware.

The two .ro domains

The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis
The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis

Both were .ro domains, with different IP addresses. When we checked, one returned a 404 error and the other was under construction. Most likely the owners had been notified and had taken action.

Bonus: scanning the ZXTRTU.exe file

The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis
The IcedID banking trojan on Romanian servers, screenshot from the ProDefence analysis

The file’s relationship with the domains shown may involve sending or downloading data.

Conclusion

You do not have to be a specialist to check a suspicious document or an “urgent” email. Question everything you receive: is this really an email from a friend? Why would my manager send me a payment order by email?

Public sources used: malware-traffic-analysis.net and VirusTotal. To have a suspicious document examined, ProDefence provides analysis of suspicious files and malware, and for websites, web and network security audits.

Skip to content