Skip to content
Write-up Intermediate

Malicious Excel Document Analysis

A malicious Excel document contains hidden macros that download three .dat files from remote servers and register them as DLL services using Rundll32. An attacker could use this to install malware, mine cryptocurrency, and steal data from the victim's system.

Jay Vadhaiya Follow

Published on infosecwriteups.com

{{media:0}}

Jay Vadhaiya, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the document uses hidden Excel 4.0 macros with obfuscated cell references to download and execute malicious DLLs, bypassing antivirus detection.

Impact

The malware could mine cryptocurrency, steal data, and spread to other systems, potentially causing system crashes and downtime.

What the attacker needed

Victim opens malicious Excel file; victim enables macros

How it was found

  1. The victim opens the malicious Excel document and enables macros.
  2. The macros use URLDownloadToFileA to download a .dat file from three different IP addresses and save them as Fol.doka, Fol.doka1, and Fol.doka2.
  3. The macros use EXEC to run Rundll32 with DllRegisterServer on each downloaded file, registering them as DLL services.
  4. The malware then uses NTDLL.dll functions to gain privileges and impersonate higher-privilege processes.
  5. The malware creates mutants and loads RPC module DLL, and communicates with C2 servers over HTTP port 80.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report analyses a harmful Excel file that tricks you into enabling macros (small programs inside the document). Once enabled, the macros secretly download other files from the internet and run them, letting attackers take control of the computer. It is like a Trojan horse hidden in a spreadsheet.

Similar reports

Same bug class and techniques, clearest first.