Sigma rule: Potential Persistence Via Powershell Search Order Hijacking - Task
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-77dd221309e2, updated 2023-02-03T00:00:00.000Z.
Rule
- Title
- Potential Persistence Via Powershell Search Order Hijacking - Task
- Status
- test
- Level
- high
- Author
- pH-T (Nextron Systems), Florian Roth (Nextron Systems)
- Date
- 2022-04-08
- Modified
- 2023-02-03
- File
- rules/windows/process_creation/proc_creation_win_schtasks_powershell_persistence.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects suspicious powershell execution via a schedule task where the command ends with an suspicious flags to hide the powershell instance instead of executeing scripts or commands. This could be a sign of persistence via PowerShell "Get-Variable" technique as seen being used in Colibri Loader
Log source
- product
- windows
- category
- process_creation
Detection
selection:
ParentImage: 'C:\WINDOWS\System32\svchost.exe'
ParentCommandLine|contains|all:
- '-k netsvcs'
- '-s Schedule'
CommandLine|endswith:
- ' -windowstyle hidden'
- ' -w hidden'
- ' -ep bypass'
- ' -noni'
condition: selectionFalse positives (as the rule lists them)
- Unknown
Tags
- attack.privilege-escalation
- attack.execution
- attack.persistence
- attack.t1053.005
- attack.t1059.001
MITRE ATT&CK ids this rule names
Related rules
- 6e8811ee-90ba-441e-8486-5653e68b2299 (similar)
References
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_schtasks_powershell_persistence.yml
Sources and licences
SigmaHQ
"Potential Persistence Via Powershell Search Order Hijacking - Task" by pH-T (Nextron Systems), Florian Roth (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_schtasks_powershell_persistence.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Potential Persistence Via Powershell Search Order Hijacking - Task",
entity page, dataset version ref-77dd221309e2, updated 2023-02-03T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/b66474aa-bd92-4333-a16c-298155b120df (accessed 2026-11-03).
Underlying source: SigmaHQ rule b66474aa-bd92-4333-a16c-298155b120df, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.