Malicious Macro
Also called Macro Malware, VBA Macro.
Office document code that runs attacker logic when enabled.
What it is
Embedded automation code, typically VBA, inside an office document that executes when the user enables content, commonly downloading and launching a second-stage payload.
Why it matters
Macro-laden documents were for years the dominant malware delivery method and still appear, so detecting the 'enable content' lure and analyzing extracted macro code is a routine document-forensics task.
In practice
A spreadsheet that, once macros are enabled, reaches out to a remote host and runs a downloaded payload.
What to look for
- Office files asking to enable editing or content.
- Word or Excel spawning PowerShell, cmd or mshta.
- VBA with AutoOpen or Document_Open.
Common mistake
Allowing macros from the internet. Microsoft now blocks them by default; keep it that way.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
CrowdStrike Falcon Commercial
An EDR agent that records process, file and network activity on each host and flags this kind of behavior.
-
Microsoft Defender for Endpoint Commercial
Microsoft's EDR, with advanced hunting tables you can query for this activity across Windows, macOS and Linux.
-
Velociraptor Open source
Collects and hunts for artifacts across many hosts at once, often during live response. Our notes.
-
Sysmon Free
Free Windows logging of process starts, network connections and more, which many detections rely on. Our notes.
Read next
- Attachment-Based Delivery: Delivering malware as an email attachment the victim opens.
- Phishing: Tricking people into revealing credentials or running malware via fake messages.
- HTML Smuggling: Reassembling a malicious file in the browser from script in an HTML page.