Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for THREAT-Recon-DNSSubdomainWordlistEnumeration.
Upgrade to ProDetect DNS Subdomain Wordlist Brute-Force Enumeration in IBM QRadar
Adversaries iteratively query an organization's authoritative or recursive DNS infrastructure with large wordlists of candidate subdomain labels (dev, staging, vpn, mail-old, api-internal, etc.) to discover hostnames that were never intentionally published — forgotten staging environments, internal-only services accidentally exposed, or third-party integrations. Unlike the HTTP directory/file wordlist scanning covered by generic Active Scanning detections, this technique operates entirely at the DNS layer using tools such as massdns, puredns, gobuster's dns mode, dnsrecon, fierce, and amass's active enumeration mode, which resolve thousands of candidate FQDNs per minute and rely on the high NXDOMAIN response rate as an intrinsic side effect of brute-forcing an unknown namespace. Because these queries never touch a web server or generate an HTTP log line, they are invisible to WAF- and web-access-log-based scanning detections and require dedicated visibility into DNS server query logs (authoritative nameserver, recursive resolver, or DNS security gateway) plus endpoint process telemetry for internal pivot scanning.
MITRE ATT&CK
- Tactic
- Reconnaissance
QRadar Detection Query
SELECT
DATEFORMAT(starttime, 'YYYY-MM-dd HH:mm:ss') AS EventTime,
sourceip AS SourceIP,
destinationip AS DestinationIP,
username AS Username,
"Process Name" AS ProcessName,
"Command" AS CommandLine,
CASE
WHEN LOWER("Process Name") LIKE '%massdns%' OR LOWER("Process Name") LIKE '%gobuster%'
OR LOWER("Process Name") LIKE '%puredns%' OR LOWER("Process Name") LIKE '%dnsrecon%'
OR LOWER("Process Name") LIKE '%amass%' THEN 'InternalDNSEnumTool'
ELSE 'Other'
END AS Signal
FROM events
WHERE
QIDNAME(qid) LIKE '%Process Create%'
AND (
LOWER("Process Name") LIKE '%massdns%'
OR LOWER("Process Name") LIKE '%gobuster%'
OR LOWER("Process Name") LIKE '%puredns%'
OR LOWER("Process Name") LIKE '%dnsrecon%'
OR LOWER("Process Name") LIKE '%amass%'
)
AND starttime > NOW() - 86400000
UNION
SELECT
DATEFORMAT(starttime, 'YYYY-MM-dd HH:mm:ss') AS EventTime,
sourceip AS SourceIP,
'N/A' AS DestinationIP,
'N/A' AS Username,
'N/A' AS ProcessName,
QUERYNAME AS CommandLine,
'DNSServerQueryLog' AS Signal
FROM dns_events
WHERE
RESPONSECODE = 'NXDOMAIN'
AND starttime > NOW() - 86400000
GROUP BY sourceip, QUERYNAME
HAVING COUNT(*) OVER (PARTITION BY sourceip) >= 50
ORDER BY EventTime DESC QRadar AQL detection combining process-based events (execution of massdns, gobuster, puredns, dnsrecon, or amass) with a UNION over a DNS query log source filtered to NXDOMAIN responses, surfacing source IPs generating high-volume subdomain enumeration traffic against the authoritative or recursive DNS layer.
Data Sources
Required Tables
False Positives & Tuning
- Network operations or ASM vendors running scheduled subdomain discovery scans against documented base domains
- Legitimate DNS migration or zone-audit scripts resolving many candidate hostnames in sequence
Other platforms for THREAT-Recon-DNSSubdomainWordlistEnumeration
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Simulated DNS Subdomain Wordlist Query Burst
Expected signal: Authoritative/recursive DNS server query log entries showing 60 sequential NXDOMAIN responses for distinct subdomains of example.com from the executing host's source IP within a short window.
- Test 2gobuster DNS Mode Execution
Expected signal: Process creation event for gobuster with CommandLine containing 'dns -d example.com -w' and the wordlist file path.
- Test 3massdns Bulk Subdomain Resolution
Expected signal: Process creation event for massdns with CommandLine containing '-r' and '-t A' flags; DNS query log entries for the listed candidate subdomains.
Unlock playbooks & atomic tests with Pro
Get the full detection package for THREAT-Recon-DNSSubdomainWordlistEnumeration — response playbook and atomic red team tests, plus investigation guidance and hunting queries.
df00tech Pro — £29/user/month