Detectioncriticaltest

Suspicious Cobalt Strike DNS Beaconing - DNS Client

Detects a program that invoked suspicious DNS queries known from Cobalt Strike beacons

Open in Detection LabConvert ruleBuild Package
Nasreddine BencherchaliCreated 2023-01-160d18728b-f5bf-4381-9dcf-915539fff6c2windows
Log Source
Windowsdns-client
ProductWindows← raw: windows
Servicedns-client← raw: dns-client

Definition

Requirements: Microsoft-Windows-DNS Client Events/Operational Event Log must be enabled/collected in order to receive the events.

Detection Logic
Detection Logic3 selectors
detection:
    selection_eid:
        EventID: 3008
    selection_query_1:
        QueryName|startswith:
            - 'aaa.stage.'
            - 'post.1'
    selection_query_2:
        QueryName|contains: '.stage.123456.'
    condition: selection_eid and 1 of selection_query_*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

MITRE ATT&CK
Rule Metadata
Rule ID
0d18728b-f5bf-4381-9dcf-915539fff6c2
Status
test
Level
critical
Type
Detection
Created
2023-01-16
Path
rules/windows/builtin/dns_client/win_dns_client_mal_cobaltstrike.yml
Raw Tags
attack.t1071.004attack.command-and-control
View on GitHub