{"id":"fa6a5a45-3ee2-4529-aa14-ee5edc9e29cb","title":"Suspicious Get Local Groups Information - PowerShell","description":"Detects the use of PowerShell modules and cmdlets to gather local group information.\nAdversaries 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.\n","author":"frack113","status":"test","level":"low","date":"2021-12-12","modified":"2025-08-22","tags":["attack.discovery","attack.t1069.001"],"technique_ids":["T1069.001"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Inventory scripts or admin tasks"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.001/T1069.001.md"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_susp_local_group_reco.yml","source_sha256":"1cf1b2a00aa28996b954b06fa03201b9d432f1cae9bb17392dde1f5067905bf4","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_susp_local_group_reco.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious Get Local Groups Information - PowerShell\nid: fa6a5a45-3ee2-4529-aa14-ee5edc9e29cb\nrelated:\n    - id: cef24b90-dddc-4ae1-a09a-8764872f69fc\n      type: similar\nstatus: test\ndescription: |\n    Detects the use of PowerShell modules and cmdlets to gather local group information.\n    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.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.001/T1069.001.md\nauthor: frack113\ndate: 2021-12-12\nmodified: 2025-08-22\ntags:\n    - attack.discovery\n    - attack.t1069.001\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection_localgroup:\n        ScriptBlockText|contains:\n            - 'get-localgroup '\n            - 'get-localgroupmember '\n    selection_wmi_module:\n        ScriptBlockText|contains:\n            - 'get-wmiobject '\n            - 'gwmi '\n            - 'get-ciminstance '\n            - 'gcim '\n    selection_wmi_class:\n        ScriptBlockText|contains: 'win32_group' # Covers both win32_group and win32_groupuser\n    condition: selection_localgroup or all of selection_wmi_*\nfalsepositives:\n    - Inventory scripts or admin tasks\nlevel: low\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1069.001","id":"T1069.001","name":"Local Groups","page":"techniques/enterprise/T1069.001/"}],"data_path":"data/detection-rules/fa6a5a45-3ee2-4529-aa14-ee5edc9e29cb.json","kind":"sigma"}
