Potential Discovery Activity Via Dnscmd.EXE
Detects an attempt to leverage dnscmd.exe to enumerate the DNS zones of a domain. DNS zones used to host the DNS records for a particular domain.
Detection logic
selection_img
Image|endswith: \dnscmd.exeselection_cli
CommandLine|contains:
- /enumrecords
- /enumzones
- /ZonePrint
- /infoCondition
all of selection_*Raw YAML
title: Potential Discovery Activity Via Dnscmd.EXE
id: b6457d63-d2a2-4e29-859d-4e7affc153d1
status: test
description: Detects an attempt to leverage dnscmd.exe to enumerate the DNS zones of a domain. DNS zones used to host the DNS records for a particular domain.
references:
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/dnscmd
- https://learn.microsoft.com/en-us/azure/dns/dns-zones-records
- https://lolbas-project.github.io/lolbas/Binaries/Dnscmd/
author: '@gott_cyber'
date: 2022-07-31
modified: 2023-02-04
tags:
- attack.discovery
- attack.execution
logsource:
category: process_creation
product: windows
detection:
selection_img:
Image|endswith: '\dnscmd.exe'
selection_cli:
CommandLine|contains:
- '/enumrecords'
- '/enumzones'
- '/ZonePrint'
- '/info'
condition: all of selection_*
falsepositives:
- Legitimate administration use
level: mediumFalse positives
- Legitimate administration use
References
Similar rules
AADInternals PowerShell Cmdlets Execution - ProccessCreation
highwindows · Same logsource category (process_creation)
Computer System Reconnaissance Via Wmic.EXE
mediumwindows · Same logsource category (process_creation)
HackTool - Bloodhound/Sharphound Execution
highwindows · Same logsource category (process_creation)
HackTool - CrackMapExec Execution
highwindows · Same logsource category (process_creation)