Possible Computer Enumeration And Export Through Get-ADComputer Cmdlet - PowerShell (via ps_script)
This rule detects use of the Get-ADComputer cmdlet to collect computer information and output it to a file
SigmamediumWindowsv1
sigma
possible-computer-enumeration-and-export-through-get-adcomputer-cmdlet-powershell-via-ps-script
title: Possible Computer Enumeration And Export Through Get-ADComputer Cmdlet - PowerShell (via ps_script)
id: b70f515a-f038-5699-b2d3-f043ceda7b40
status: stable
description: This rule detects use of the Get-ADComputer cmdlet to collect computer information and output it to a file
references:
- https://attack.mitre.org/techniques/T1033/
- 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
author: Huntrule Team
date: 2026-06-02
tags:
- attack.discovery
- attack.t1033
logsource:
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
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.