Sigma rule: Computer Discovery And Export Via Get-ADComputer Cmdlet - PowerShell

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-9ca2ffc99b29, updated 2022-11-17T00:00:00.000Z.

Rule

Title
Computer Discovery And Export Via Get-ADComputer Cmdlet - PowerShell
Status
test
Level
medium
Author
Nasreddine Bencherchali (Nextron Systems)
Date
2022-11-17
File
rules/windows/powershell/powershell_script/posh_ps_computer_discovery_get_adcomputer.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection:
    ScriptBlockText|contains|all:
        - 'Get-ADComputer '
        - ' -Filter \*'
    ScriptBlockText|contains:
        - ' | Select '
        - 'Out-File'
        - 'Set-Content'
        - 'Add-Content'
condition: selection

False positives (as the rule lists them)

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

Tags

  • attack.discovery
  • attack.t1033

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_computer_discovery_get_adcomputer.yml

Sources and licences

  • SigmaHQ

    "Computer Discovery And Export Via Get-ADComputer Cmdlet - PowerShell" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_computer_discovery_get_adcomputer.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Computer Discovery And Export Via Get-ADComputer Cmdlet - PowerShell",
entity page, dataset version ref-9ca2ffc99b29, updated 2022-11-17T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/db885529-903f-4c5d-9864-28fe199e6370 (accessed 2026-11-03).
Underlying source: SigmaHQ rule db885529-903f-4c5d-9864-28fe199e6370, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.