{"id":"1f6399cf-2c80-4924-ace1-6fcff3393480","title":"DirectorySearcher Powershell Exploitation","description":"Enumerates Active Directory to determine computers that are joined to the domain","author":"frack113","status":"test","level":"medium","date":"2022-02-12","modified":"","tags":["attack.discovery","attack.t1018"],"technique_ids":["T1018"],"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/T1018/T1018.md#atomic-test-15---enumerate-domain-computers-within-active-directory-using-directorysearcher"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_directorysearcher.yml","source_sha256":"a141d1f4dda720382495243f23c59ee5785c86cb71ecade124eedacc0269677b","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_directorysearcher.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: DirectorySearcher Powershell Exploitation\nid: 1f6399cf-2c80-4924-ace1-6fcff3393480\nstatus: test\ndescription: Enumerates Active Directory to determine computers that are joined to the domain\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1018/T1018.md#atomic-test-15---enumerate-domain-computers-within-active-directory-using-directorysearcher\nauthor: frack113\ndate: 2022-02-12\ntags:\n    - attack.discovery\n    - attack.t1018\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            - 'New-Object '\n            - 'System.DirectoryServices.DirectorySearcher'\n            - '.PropertiesToLoad.Add'\n            - '.findall()'\n            - 'Properties.name'\n    condition: selection\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1018","id":"T1018","name":"Remote System Discovery","page":"techniques/enterprise/T1018/"}],"data_path":"data/detection-rules/1f6399cf-2c80-4924-ace1-6fcff3393480.json","kind":"sigma"}
