{"id":"db885529-903f-4c5d-9864-28fe199e6370","title":"Computer Discovery And Export Via Get-ADComputer Cmdlet - PowerShell","description":"Detects usage of the Get-ADComputer cmdlet to collect computer 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/","https://www.cisa.gov/uscert/sites/default/files/publications/aa22-320a_joint_csa_iranian_government-sponsored_apt_actors_compromise_federal%20network_deploy_crypto%20miner_credential_harvester.pdf"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_computer_discovery_get_adcomputer.yml","source_sha256":"5f9592eea9eebc8d746582821595d271c7ed5ddd16ef7f38dd6b6cf5e33d4403","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_computer_discovery_get_adcomputer.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Computer Discovery And Export Via Get-ADComputer Cmdlet - PowerShell\nid: db885529-903f-4c5d-9864-28fe199e6370\nrelated:\n    - id: 435e10e4-992a-4281-96f3-38b11106adde\n      type: similar\nstatus: test\ndescription: Detects usage of the Get-ADComputer cmdlet to collect computer 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/\n    - https://www.cisa.gov/uscert/sites/default/files/publications/aa22-320a_joint_csa_iranian_government-sponsored_apt_actors_compromise_federal%20network_deploy_crypto%20miner_credential_harvester.pdf\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-ADComputer '\n            - ' -Filter \\*'\n        ScriptBlockText|contains:\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/db885529-903f-4c5d-9864-28fe199e6370.json","kind":"sigma"}
