Windows Process Creation: Scheduled Task Creation via schtasks and wscript/vbscript
Alerts on Windows command lines that combine schtasks task creation with wscript running VBScript for persistence.
- Product
- windows
- Category
- process_creation
- Author
- Andreas Hunkeler (@Karneades) (SigmaHQ), DRL 1.1
- Published
- 2022-02-07
- Updated
- 2026-07-31
ATT&CK techniques
Execution → Priv EscRecon
Resource Dev
Initial Access
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule flags Windows process creation where the command line contains all of the following: "schtasks", "create", "wscript", and " /e:vbscript". Such activity is commonly used to establish persistence by creating scheduled tasks that execute VBScript through Windows Script Host. It relies on process creation telemetry, specifically the full command line of spawned processes, to match the expected parameter combination.
Reporting behind it
Changelog
v5- v5Candidate ingested via manual entry.2026-07-31
- v4Candidate ingested via manual entry.2026-07-31
- v3Candidate ingested via manual entry.2026-07-31
- v2Candidate ingested via manual entry.2026-07-31
- v1No 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.
title: "Windows Process Creation: Scheduled Task Creation via schtasks and wscript/vbscript"
id: 2454efba-c212-41b9-8468-dd1157c2f54f
status: test
description: 'This rule flags Windows process creation where the command line contains all of the following: "schtasks", "create", "wscript", and " /e:vbscript". Such activity is commonly used to establish persistence by creating scheduled tasks that execute VBScript through Windows Script Host. It relies on process creation telemetry, specifically the full command line of spawned processes, to match the expected parameter combination.'
references:
- https://www.microsoft.com/security/blog/2022/02/04/actinium-targets-ukrainian-organizations
- https://github.com/SigmaHQ/sigma/blob/master/rules-emerging-threats/2022/TA/ACTINIUM/proc_creation_win_apt_actinium_persistence.yml
author: Andreas Hunkeler (@Karneades), Huntrule Team
date: 2022-02-07
modified: 2023-03-18
tags:
- attack.privilege-escalation
- attack.execution
- attack.persistence
- attack.t1053
- attack.t1053.005
- detection.emerging-threats
logsource:
category: process_creation
product: windows
detection:
selection:
CommandLine|contains|all:
- schtasks
- create
- wscript
- " /e:vbscript"
condition: selection
falsepositives:
- Unlikely
level: high
license: DRL-1.1
related:
- id: e1118a8f-82f5-44b3-bb6b-8a284e5df602
type: derived