Sigma rule: Office Macro File Download
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-bd6d90b2c3e5, updated 2025-10-29T00:00:00.000Z.
Rule
- Title
- Office Macro File Download
- Status
- test
- Level
- low
- Author
- Nasreddine Bencherchali (Nextron Systems)
- Date
- 2022-01-23
- Modified
- 2025-10-29
- File
- rules/windows/file/file_event/file_event_win_office_macro_files_downloaded.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the creation of a new office macro files on the system via an application (browser, mail client).
This can help identify potential malicious activity, such as the download of macro-enabled documents that could be used for exploitation.
Log source
- product
- windows
- category
- file_event
Detection
selection_processes:
Image|endswith:
# Email clients
- '\RuntimeBroker.exe' # Windows Email clients uses RuntimeBroker to create the files
- '\outlook.exe'
- '\thunderbird.exe'
# Browsers
- '\brave.exe'
- '\chrome.exe'
- '\firefox.exe'
- '\iexplore.exe'
- '\maxthon.exe'
- '\MicrosoftEdge.exe'
- '\msedge.exe'
- '\msedgewebview2.exe'
- '\opera.exe'
- '\safari.exe'
- '\seamonkey.exe'
- '\vivaldi.exe'
- '\whale.exe'
selection_ext:
- TargetFilename|endswith:
- '.docm'
- '.dotm'
- '.xlsm'
- '.xltm'
- '.potm'
- '.pptm'
- TargetFilename|contains:
- '.docm:Zone'
- '.dotm:Zone'
- '.xlsm:Zone'
- '.xltm:Zone'
- '.potm:Zone'
- '.pptm:Zone'
condition: all of selection_*False positives (as the rule lists them)
- Legitimate macro files downloaded from the internet
- Legitimate macro files sent as attachments via emails
Tags
- attack.initial-access
- attack.t1566.001
MITRE ATT&CK ids this rule names
Related rules
References
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1566.001/T1566.001.md
- https://learn.microsoft.com/en-us/deployoffice/compat/office-file-format-reference
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_event/file_event_win_office_macro_files_downloaded.yml
Sources and licences
SigmaHQ
"Office Macro File Download" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_event/file_event_win_office_macro_files_downloaded.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Office Macro File Download",
entity page, dataset version ref-bd6d90b2c3e5, updated 2025-10-29T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/0e29e3a7-1ad8-40aa-b691-9f82ecd33d66 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 0e29e3a7-1ad8-40aa-b691-9f82ecd33d66, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.