Powershell DNSExfiltration

 Original Source: [Sigma source]
Title: Powershell DNSExfiltration
Status: test
Description:DNSExfiltrator allows for transferring (exfiltrate) a file over a DNS request covert channel
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1048/T1048.md#atomic-test-3---dnsexfiltration-doh
  -https://github.com/Arno0x/DNSExfiltrator
Author: frack113
Date: 2022-01-07
modified:None
Tags:
  • -'attack.exfiltration'
  • -'attack.t1048'
Logsource:
  • 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
Falsepositives:
  -Legitimate script
Level: high