Detectionmediumtest

Computer Discovery And Export Via Get-ADComputer Cmdlet

Detects usage of the Get-ADComputer cmdlet to collect computer information and output it to a file

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Nasreddine Bencherchali (Nextron Systems)Created Thu Nov 10Updated Thu Nov 17435e10e4-992a-4281-96f3-38b11106addewindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    selection_cli:
        CommandLine|contains|all:
            - 'Get-ADComputer '
            - ' -Filter \*'
        CommandLine|contains:
            - ' > '
            - ' | Select '
            - 'Out-File'
            - 'Set-Content'
            - 'Add-Content'
    condition: all of selection_*
False Positives

Legitimate admin scripts may use the same technique, it's better to exclude specific computers or users who execute these commands or scripts often

Rule Metadata
Rule ID
435e10e4-992a-4281-96f3-38b11106adde
Status
test
Level
medium
Type
Detection
Created
Thu Nov 10
Modified
Thu Nov 17
Path
rules/windows/process_creation/proc_creation_win_powershell_computer_discovery_get_adcomputer.yml
Raw Tags
attack.discoveryattack.t1033
View on GitHub