Sigma rule: Suspicious PowerShell WindowStyle Option
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-c1927b60523c, updated 2023-01-03T00:00:00.000Z.
Rule
- Title
- Suspicious PowerShell WindowStyle Option
- Status
- test
- Level
- medium
- Author
- frack113, Tim Shelton (fp AWS)
- Date
- 2021-10-20
- Modified
- 2023-01-03
- File
- rules/windows/powershell/powershell_script/posh_ps_susp_windowstyle.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Adversaries may use hidden windows to conceal malicious activity from the plain sight of users.
In some cases, windows that would typically be displayed when an application carries out an operation can be hidden
Log source
- product
- windows
- category
- ps_script
- definition
- Requirements: Script Block Logging must be enabled
Detection
selection:
ScriptBlockText|contains|all:
- 'powershell'
- 'WindowStyle'
- 'Hidden'
filter:
ScriptBlockText|contains|all:
- ':\Program Files\Amazon\WorkSpacesConfig\Scripts\'
- '$PSScriptRoot\Module\WorkspaceScriptModule\WorkspaceScriptModule'
condition: selection and not filterFalse positives (as the rule lists them)
- Unknown
Tags
- attack.stealth
- attack.t1564.003
MITRE ATT&CK ids this rule names
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/powershell/powershell_script/posh_ps_susp_windowstyle.yml
Sources and licences
SigmaHQ
"Suspicious PowerShell WindowStyle Option" by frack113, Tim Shelton (fp AWS) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_susp_windowstyle.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: Suspicious PowerShell WindowStyle Option",
entity page, dataset version ref-c1927b60523c, updated 2023-01-03T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/313fbb0a-a341-4682-848d-6d6f8c4fab7c (accessed 2026-11-03).
Underlying source: SigmaHQ rule 313fbb0a-a341-4682-848d-6d6f8c4fab7c, 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.