The Emotet attack on CV19 Romania: analysis of an “invoice”
Analysis originally published in November 2020. The full follow-up was published on the CV19 Romania website.
On 14 October 2020, six days after the session on hospital cybersecurity organised by CERT-RO together with the Cyber Volunteers 19 group, the address [email protected] received an email with an “invoice” for a contract that did not exist. The Word document asked the user to enable content, and the hidden macro launched PowerShell, which downloaded the Emotet malware and, in the next stage, Trickbot, giving the attacker full control of the computer.
Key points
- The first signal: an invoice issued under a contract that did not exist.
- The document asked for “updates” and for editing to be enabled, although a normal document simply opens.
- 40 of 62 antivirus engines flagged the file as malicious.
- The execution chain: Word, macro, PowerShell, download of the second stage from seven domains.
- The commands were hidden with Base64 encoding.

The first warning sign
The text of the message referred to an invoice issued under a non-existent contract. The incident response procedure was triggered immediately and the investigation began.
What the victim sees when opening the “invoice”
On opening, the document displayed a supposed update notice: certain applications, including Microsoft Word, “need an update”, and the user was urged to enable editing. A normal document would simply have opened. The text in the file was written very small and, once enlarged, turned out to be automatically generated, with no logic to it.

Checking on detection platforms
Before following the sender’s instructions, the file was checked on a malware detection platform: 40 detections out of 62 and two tags, “doc” and “executes-dropped-file”, meaning a Word document that executes a file.

The execution chain
- Microsoft Word opens;
- when content is enabled, a macro runs;
- the macro launches PowerShell;
- PowerShell connects to several websites and downloads the second stage;
- the second stage gives the attacker full control of the workstation.


Analysing the file
Opened in an editor, the file does not show much. Extracted separately, the macro and PowerShell sections contain a long Base64-encoded string, a method that allows special characters to be transmitted regardless of protocol.


Decoded, the string becomes a series of PowerShell commands that download the second stage from several websites. This is where Trickbot appears, the malware targeted by Microsoft’s action in that period.

Indicators of compromise
The first indicators of compromise are the seven domains that hosted, knowingly or not, the second stage of the attack. The full list and the rest of the analysis are on CV19 Romania: Emotet attack on CV19 (in Romanian).
What still holds today
- Microsoft now blocks macros by default in files downloaded from the internet, but attackers have moved to other formats (.iso, .lnk, .one);
- any document that asks you to “enable content” should be treated as suspicious;
- an invoice for a contract that does not exist is reason enough not to open the attachment.
To have a suspicious attachment examined, ProDefence provides analysis of suspicious files and malware.



Prodefence SRL