Sigma rule: Powershell DNSExfiltration

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-8cbd8fa02515, updated 2022-01-07T00:00:00.000Z.

Rule

Title
Powershell DNSExfiltration
Status
test
Level
high
Author
frack113
Date
2022-01-07
File
rules/windows/powershell/powershell_script/posh_ps_invoke_dnsexfiltration.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

DNSExfiltrator allows for transferring (exfiltrate) a file over a DNS request covert channel

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection_cmdlet:
    - ScriptBlockText|contains: 'Invoke-DNSExfiltrator'
    - ScriptBlockText|contains|all:
          - ' -i '
          - ' -d '
          - ' -p '
          - ' -doh '
          - ' -t '
condition: selection_cmdlet

False positives (as the rule lists them)

  • Legitimate script

Tags

  • attack.exfiltration
  • attack.t1048

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/rules/windows/powershell/powershell_script/posh_ps_invoke_dnsexfiltration.yml

Sources and licences

  • SigmaHQ

    "Powershell DNSExfiltration" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_invoke_dnsexfiltration.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: Powershell DNSExfiltration",
entity page, dataset version ref-8cbd8fa02515, updated 2022-01-07T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/d59d7842-9a21-4bc6-ba98-64bfe0091355 (accessed 2026-11-03).
Underlying source: SigmaHQ rule d59d7842-9a21-4bc6-ba98-64bfe0091355, 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.