Detectionlowtest
Suspicious Get Local Groups Information - PowerShell
Detects the use of PowerShell modules and cmdlets to gather local group information. Adversaries may use local system permission groups to determine which groups exist and which users belong to a particular group such as the local administrators group.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script
Definition
Requirements: Script Block Logging must be enabled
Detection Logic
Detection Logic3 selectors
detection:
selection_localgroup:
ScriptBlockText|contains:
- 'get-localgroup '
- 'get-localgroupmember '
selection_wmi_module:
ScriptBlockText|contains:
- 'get-wmiobject '
- 'gwmi '
- 'get-ciminstance '
- 'gcim '
selection_wmi_class:
ScriptBlockText|contains: 'win32_group' # Covers both win32_group and win32_groupuser
condition: selection_localgroup or all of selection_wmi_*False Positives
Inventory scripts or admin tasks
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
fa6a5a45-3ee2-4529-aa14-ee5edc9e29cb
Status
test
Level
low
Type
Detection
Created
Sun Dec 12
Modified
Fri Aug 22
Author
Path
rules/windows/powershell/powershell_script/posh_ps_susp_local_group_reco.yml
Raw Tags
attack.discoveryattack.t1069.001