Possible Dropper Script Execution Through WScript/CScript/MSHTA (via process_creation)
This rule detects wscript/cscript/mshta executions of scripts located in user directories
SigmamediumWindowsv1
sigma
possible-dropper-script-execution-through-wscript-cscript-mshta-via-process-creation
title: Possible Dropper Script Execution Through WScript/CScript/MSHTA (via process_creation)
id: c23775b1-7807-5557-97c1-6c30be2f13d0
status: stable
description: This rule detects wscript/cscript/mshta executions of scripts located in user directories
references:
- https://attack.mitre.org/techniques/T1059/007/
- https://attack.mitre.org/techniques/T1059/005/
- https://thedfirreport.com/2023/10/30/netsupport-intrusion-results-in-domain-compromise/
- https://redcanary.com/blog/gootloader/
- https://www.microsoft.com/en-us/security/blog/2025/03/06/malvertising-campaign-leads-to-info-stealers-hosted-on-github/
author: Huntrule Team
date: 2026-02-19
tags:
- attack.execution
- attack.t1059.005
- attack.t1059.007
logsource:
category: process_creation
product: windows
detection:
selection_exec:
Image|endswith:
- '\wscript.exe'
- '\cscript.exe'
- '\mshta.exe'
selection_paths:
CommandLine|contains:
- ':\Perflogs\'
- ':\Temp\'
- ':\Tmp\'
- ':\Users\Public\'
- ':\Windows\Temp\'
- '\AppData\Local\Temp\'
- '\AppData\Roaming\Temp\'
- '\Start Menu\Programs\Startup\'
- '\Temporary Internet'
- '\Windows\Temp'
- '%LocalAppData%\Temp\'
- '%TEMP%'
- '%TMP%'
selection_ext:
CommandLine|contains:
- '.hta'
- '.js'
- '.jse'
- '.vba'
- '.vbe'
- '.vbs'
- '.wsf'
- '.wsh'
condition: all of selection_*
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.