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 RDP Connection File Opened From Download or Mail Directory via Process Creation
Suspicious Code of Conduct Phishing Email From cocinternal.com Sender (via m365)
Suspicious Office Application Spawning Script Interpreter
Malicious Equation Editor Child Process Indicating Exploit
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
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.