{"id":"96c982fe-3d08-4df4-bed2-eb14e02f21c8","title":"Get-ADUser Enumeration Using UserAccountControl Flags","description":"Detects AS-REP roasting is an attack that is often-overlooked. It is not very common as you have to explicitly set accounts that do not require pre-authentication.","author":"frack113","status":"test","level":"medium","date":"2022-03-17","modified":"","tags":["attack.discovery","attack.t1033"],"technique_ids":["T1033"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Legitimate PowerShell scripts"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.002/T1069.002.md#atomic-test-11---get-aduser-enumeration-using-useraccountcontrol-flags-as-rep-roasting","https://shellgeek.com/useraccountcontrol-flags-to-manipulate-properties/"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_as_rep_roasting.yml","source_sha256":"637bec57b62beefc024bba6dd58f303298cf3f32088971b7e09843ba54070ee6","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_as_rep_roasting.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Get-ADUser Enumeration Using UserAccountControl Flags\nid: 96c982fe-3d08-4df4-bed2-eb14e02f21c8\nstatus: test\ndescription: Detects AS-REP roasting is an attack that is often-overlooked. It is not very common as you have to explicitly set accounts that do not require pre-authentication.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.002/T1069.002.md#atomic-test-11---get-aduser-enumeration-using-useraccountcontrol-flags-as-rep-roasting\n    - https://shellgeek.com/useraccountcontrol-flags-to-manipulate-properties/\nauthor: frack113\ndate: 2022-03-17\ntags:\n    - attack.discovery\n    - attack.t1033\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection:\n        # 4194304 DONT_REQ_PREAUTH\n        ScriptBlockText|contains|all:\n            - 'Get-ADUser'\n            - '-Filter'\n            - 'useraccountcontrol'\n            - '-band'\n            - '4194304'\n    condition: selection\nfalsepositives:\n    - Legitimate PowerShell scripts\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1033","id":"T1033","name":"System Owner/User Discovery","page":"techniques/enterprise/T1033/"}],"data_path":"data/detection-rules/96c982fe-3d08-4df4-bed2-eb14e02f21c8.json","kind":"sigma"}
