Windows OneNote.exe launches cmd/cscript/mshta/PowerShell/wscript with OneNote-exported scripts

Alerts when OneNote.exe spawns common script interpreters to execute OneNote-exported or offline-cache script content.

FreeReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
@kostastsale (SigmaHQ), DRL 1.1
Published
2023-02-02
Updated
2026-07-30

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags process creation events where OneNote.exe launches command-line scripting or script-hosting binaries (cmd.exe, cscript.exe, mshta.exe, PowerShell, pwsh, wscript.exe) with paths indicating OneNote-exported or OneNote offline cache script content. Attackers commonly use malicious OneNote attachments to cause exported embedded content to be executed through these interpreters, enabling stealthy code execution from user interaction. The detection relies on Windows process creation telemetry, specifically the parent process name, child image name, and command-line path fragments such as exported and onenote offline cache directories.

Related detections6 linkedT1218.001 — drag to rearrange
Malicious Compiled HTML Help Process Spawning a Script Interpreter (via process_creation)
Suspicious Process Execution from CHM Help File (via process_creation)
Windows hh.exe Initiates HTTP(S) Network Connections
Windows Process Creation: Suspicious Children Spawned by HTML Help (hh.exe)
Windows: Alert on Suspicious HH.EXE Process Execution
Windows hh.exe Execution Triggered by .chm Command Line
Windows OneNote.exe launches cmd/cscript/mshta/PowerShell/wscript with OneNote-exported scripts
Pivot detection · T1218.001 · 6 related

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