{"id":"c2993223-6da8-4b1a-88ee-668b8bf315e9","title":"User Discovery And Export Via Get-ADUser Cmdlet - PowerShell","description":"Detects usage of the Get-ADUser cmdlet to collect user information and output it to a file","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2022-11-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 admin scripts may use the same technique, it's better to exclude specific computers or users who execute these commands or scripts often"],"references":["http://blog.talosintelligence.com/2022/09/lazarus-three-rats.html","https://www.microsoft.com/en-us/security/blog/2022/10/18/defenders-beware-a-case-for-post-ransomware-investigations/"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_user_discovery_get_aduser.yml","source_sha256":"1d902a452e87490e5134620f15aaa80d25871b81453ad8d82f9991f15aad7c63","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_user_discovery_get_aduser.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: User Discovery And Export Via Get-ADUser Cmdlet - PowerShell\nid: c2993223-6da8-4b1a-88ee-668b8bf315e9\nrelated:\n    - id: 1114e048-b69c-4f41-bc20-657245ae6e3f\n      type: similar\nstatus: test\ndescription: Detects usage of the Get-ADUser cmdlet to collect user information and output it to a file\nreferences:\n    - http://blog.talosintelligence.com/2022/09/lazarus-three-rats.html\n    - https://www.microsoft.com/en-us/security/blog/2022/10/18/defenders-beware-a-case-for-post-ransomware-investigations/\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-11-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        ScriptBlockText|contains|all:\n            - 'Get-ADUser '\n            - ' -Filter \\*'\n        ScriptBlockText|contains:\n            - ' > '\n            - ' | Select '\n            - 'Out-File'\n            - 'Set-Content'\n            - 'Add-Content'\n    condition: selection\nfalsepositives:\n    - Legitimate admin scripts may use the same technique, it's better to exclude specific computers or users who execute these commands or scripts often\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/c2993223-6da8-4b1a-88ee-668b8bf315e9.json","kind":"sigma"}
