Detection rules › Sigma

Nslookup PowerShell Download Cradle

Status
test
Severity
medium
Log source
product windows, category ps_classic_start
Author
Sai Prashanth Pulisetti @pulisettis, Aishwarya Singam
Source
github.com/SigmaHQ/sigma

Detects a powershell download cradle using nslookup. This cradle uses nslookup to extract payloads from DNS records.

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Nslookup PowerShell Download Cradle
id: 999bff6d-dc15-44c9-9f5c-e1051bfc86e1
related:
    - id: 1b3b01c7-84e9-4072-86e5-fc285a41ff23
      type: similar
status: test
description: Detects a powershell download cradle using nslookup. This cradle uses nslookup to extract payloads from DNS records.
references:
    - https://twitter.com/Alh4zr3d/status/1566489367232651264
author: Sai Prashanth Pulisetti @pulisettis, Aishwarya Singam
date: 2022-12-10
modified: 2025-02-25
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    category: ps_classic_start
detection:
    selection:
        Data|contains|all:
            - 'powershell'
            - 'nslookup'
            - '[1]'
        Data|contains:
            - '-q=txt http'
            - '-querytype=txt http'
            - '-type=txt http'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Data|contains|all:
        - 'powershell'
        - 'nslookup'
        - '[1]'
    Data|contains:
        - '-q=txt http'
        - '-querytype=txt http'
        - '-type=txt http'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Datamatch
  • -q=txt http
  • -querytype=txt http
  • -type=txt http
  • [1]
  • nslookup
  • powershell