{"id":"88f0884b-331d-403d-a3a1-b668cf035603","title":"AD Groups Or Users Enumeration Using PowerShell - ScriptBlock","description":"Adversaries may attempt to find domain-level groups and permission settings.\nThe knowledge of domain-level permission groups can help adversaries determine which groups exist and which users belong to a particular group.\nAdversaries may use this information to determine which users have elevated permissions, such as domain administrators.\n","author":"frack113","status":"test","level":"low","date":"2021-12-15","modified":"2022-12-25","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":["Unknown"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.002/T1069.002.md"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_susp_ad_group_reco.yml","source_sha256":"695b84b032461b14ba8ef4621ca46f49bcef8b617bfedbaa6a70aed2ad146abe","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_susp_ad_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: AD Groups Or Users Enumeration Using PowerShell - ScriptBlock\nid: 88f0884b-331d-403d-a3a1-b668cf035603\nstatus: test\ndescription: |\n    Adversaries may attempt to find domain-level groups and permission settings.\n    The knowledge of domain-level permission groups can help adversaries determine which groups exist and which users belong to a particular group.\n    Adversaries may use this information to determine which users have elevated permissions, such as domain administrators.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.002/T1069.002.md\nauthor: frack113\ndate: 2021-12-15\nmodified: 2022-12-25\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    test_2:\n        ScriptBlockText|contains: get-ADPrincipalGroupMembership\n    test_7:\n        ScriptBlockText|contains|all:\n            - get-aduser\n            - '-f '\n            - '-pr '\n            - DoesNotRequirePreAuth\n    condition: 1 of test_*\nfalsepositives:\n    - Unknown\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/88f0884b-331d-403d-a3a1-b668cf035603.json","kind":"sigma"}
