Windows wscript.exe DNS Queries to Potentially Malicious Hex-Label Domains

Alerts when wscript.exe triggers DNS lookups for domains matching a C2-like regex pattern.

FreeReviewedSigma · High · v5
Product
windows
Category
dns_query
Author
Dusty Miller (SigmaHQ), DRL 1.1
Published
2023-02-23
Updated
2026-07-31

ATT&CK techniques

C2
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. Exfiltration

  13. Impact

What it detects

This rule flags DNS queries on Windows where the initiating process is wscript.exe and the queried domain matches a specific hex-label pattern. Such scripted execution often appears in attacker tradecraft for secondary communication stages, where malware pulls instructions or configuration via DNS. The detection relies on DNS query telemetry that includes the process image path and the queried domain name, plus pattern matching against the expected domain format.

Related detections9 linkedT1219 — drag to rearrange
Possible AnyDesk RMM Silent MSI Installation via Windows Installer (via process_creation)
macOS Process Creation: MeshAgent Remote Access via --meshServiceName
Windows MeshAgent Remote Access Tool Command Line Execution Indicators
Windows Process Creation: Microsoft QuickAssist.exe Execution
Windows MeshAgent remote command execution via cmd.exe or PowerShell child processes
Windows Incoming AnyDesk Connection via AnyDesk.exe or AnyDeskMSI.exe
Windows File Drop Indicators for RemoteKrbRelay SMB Relay Secret Dump Module
Windows DNS Queries to azurewebsites.net From Non-Browser Processes
Windows CSharp Streamer RAT Potentially Loaded .NET Executable from Temp dat####.tmp
Windows wscript.exe DNS Queries to Potentially Malicious Hex-Label Domains
Pivot detection · T1219 · 9 related

Changelog

v5
  1. v5
    Candidate ingested via manual entry.2026-07-31
  2. v4
    Candidate ingested via manual entry.2026-07-31
  3. v3
    Candidate ingested via manual entry.2026-07-31
  4. v2
    Candidate ingested via manual entry.2026-07-31
  5. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.