Sigma rule: DNSCat2 Powershell Implementation Detection Via Process Creation

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-1305ffef440d, updated 2023-02-24T00:00:00.000Z.

Rule

Title
DNSCat2 Powershell Implementation Detection Via Process Creation
Status
unsupported
Level
high
Author
Cian Heasley
Date
2020/08/08
Modified
2023/02/24
File
unsupported/windows/proc_creation_win_correlation_dnscat2_powershell_implementation.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

The PowerShell implementation of DNSCat2 calls nslookup to craft queries. Counting nslookup processes spawned by PowerShell will show hundreds or thousands of instances if PS DNSCat2 is active locally.

Log source

product
windows
category
process_creation

Detection

selection:
    ParentImage|endswith:
        - '\powershell.exe'
        - '\pwsh.exe'
    Image|endswith: '\nslookup.exe'
    CommandLine|endswith: '\nslookup.exe'
condition: selection | count(Image) by ParentImage > 100

False positives (as the rule lists them)

  • Other powershell scripts that call nslookup.exe

Tags

  • attack.command_and_control
  • attack.t1071
  • attack.t1071.004
  • attack.t1001.003
  • attack.t1041

MITRE ATT&CK ids this rule names

References

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

Sources and licences

  • SigmaHQ

    "DNSCat2 Powershell Implementation Detection Via Process Creation" by Cian Heasley (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/unsupported/windows/proc_creation_win_correlation_dnscat2_powershell_implementation.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: DNSCat2 Powershell Implementation Detection Via Process Creation",
entity page, dataset version ref-1305ffef440d, updated 2023-02-24T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/b11d75d6-d7c1-11ea-87d0-0242ac130003 (accessed 2026-11-03).
Underlying source: SigmaHQ rule b11d75d6-d7c1-11ea-87d0-0242ac130003, 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.