Skip to content
Write-up Intermediate

Static code analysis of .xlsm Emotet sample.

A malicious Excel macro-enabled workbook contains an obfuscated VBA macro that uses PowerShell to download files from a list of URLs and save them to the ProgramData folder. An attacker could use this to deliver and execute additional malware on the victim's system.

Adetomiwa Follow

Published on systemweakness.com

The file is a Microsoft Excel 2007+ Macro-enabled workbook (.xlsm) with the macro embedded in stream A9 using VB script.

Adetomiwa, on systemweakness.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 workbook contains a malicious macro that is automatically executed when the document is opened, allowing the attacker to run arbitrary commands.

What the attacker needed

Victim opens the .xlsm file; macros enabled

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 is a report about analysing a malicious Excel file. The file contains a macro (a small program) that, when opened, runs PowerShell commands to download other files from the internet and save them on the computer. This is a common way for attackers to install malware.

More by Adetomiwa

View all

2 more disclosed reports, best first.

Similar reports

Same bug class and techniques, clearest first.