Windows: Alert on suspicious parent process spawning csc.exe

Flags csc.exe execution when spawned by script/document hosts or PowerShell using encoded content, excluding common benign parent contexts.

FreeReviewedSigma · High · v2
Product
windows
Category
process_creation
Author
Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), X__Junior (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2019-02-11
Updated
2026-07-31

ATT&CK techniques

Execution → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule flags process creation events where csc.exe is executed with a parent image that matches common scripting or automation binaries (e.g., cscript.exe, mshta.exe, wscript.exe, Office apps) or PowerShell launch patterns with encoded content. It matters because attackers may use csc.exe as a payload delivery or execution component when invoked from unusual parent processes or obfuscated command lines. The detection relies on Windows process creation telemetry, using parent process image/command-line fields and the executed image/original file name to match csc.exe.

Related detections9 linkedT1059.005 — drag to rearrange
Windows Remote Thread Creation via CACTUSTORCH Using Script/Office/Rundll Host Images
Suspicious Script Host Execution of Decoy-Named JavaScript Dropper (PS1Bot)
Suspicious MSHTA VBScript WScript Shell Execution
Suspicious Wscript Execution of JavaScript From AppData Local Temp via Process Creation (via process_creation)
Windows AppLocker Audit-Mode Events Indicate Files Would Have Been Blocked
Windows Wscript/Cscript Executes Files with Uncommon Non-Script Extensions
Windows WScript/CScript File Write With Script Extensions to Temp or Startup Paths
Windows AppLocker Blocked Application, Script, MSI, or Packaged-App Execution
Windows Process Creation: Suspicious Children Spawned by HTML Help (hh.exe)
Windows: Alert on suspicious parent process spawning csc.exe
Pivot detection · T1059.005 · 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.