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
Malicious mshta Launching WScript VBScript Loader
Suspicious VBScript Code Stored in CurrentVersion Registry Value
Suspicious rundll32 or mshta Proxy Execution of VBScript
Suspicious Script Host Spawned by cmd for DarkGate Execution
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-Only Events Indicating What Would Be Blocked in Enforce Mode
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.