Windows Office Macro File Creation via Office Applications

Alerts on creation of macro-enabled Office documents/templates by Office apps on Windows, excluding Office temporary files.

FreeReviewedSigma · Low · v2
Product
windows
Category
file_event
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-01-23
Updated
2026-07-31

ATT&CK techniques

Initial Access
  1. Recon

  2. Resource Dev

  3. Execution

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule identifies the creation of Office macro-enabled documents and templates (.docm, .dotm, .xlsm, .xltm, .potm, .pptm) on Windows. It helps catch attacker behavior that relies on generating macro-capable files for later execution, using file create events from process and target filename telemetry. Detection focuses on files created by the Office app executables while excluding common temporary Office files (e.g., names containing "\~$").

Related detections9 linkedT1566.001 — drag to rearrange
Suspicious mstsc Launch of RDP File From User Download or Temp Path (via process_creation)
Suspicious Regsvr32 Squiblydoo Remote Scriptlet Execution via Command Line (via process_creation)
Possible Mamba 2FA AiTM Phishing URL Pattern
Suspicious DLL Written to Explorer IconCache Path
Suspicious DNS Query to HTML Smuggling AiTM Phishing Domain
Malicious Microsoft Word Spawning Anomalous Child Process via CVE-2023-36884 (via process_creation)
Malicious Equation Editor Child Process Execution via process_creation
Microsoft 365 inbound suspicious email delivered to Inbox or Junk
Web Browser Opens .HTM/.HTML from Downloads Folder on Windows
Windows Office Macro File Creation via Office Applications
Pivot detection · T1566.001 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.