Detection rules › Kusto
Corelight - C2 DGA Detected Via Repetitive Failures
'Detects large amounts of DNS resolution failures.'
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Command & Control |
Rule body
id: 8eaa2268-74ee-492c-b869-450eff707fef
name: Corelight - C2 DGA Detected Via Repetitive Failures
description: |
'Detects large amounts of DNS resolution failures.'
severity: Medium
status: Available
requiredDataConnectors:
- connectorId: Corelight
dataTypes:
- Corelight_v2_dns
- Corelight_v2_dns_red
- corelight_dns
- corelight_dns_red
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
tactics:
- CommandAndControl
relevantTechniques:
- T1568
query: |
let threshold = 25;
union corelight_dns, corelight_dns_red
// rcodes: SERVFAIL=2, NXDOMAIN=3
| where rcode in (2, 3)
| summarize count() by query, id_orig_h, bin(TimeGenerated, 5m)
| where count_ > threshold
entityMappings:
- entityType: IP
fieldMappings:
- identifier: Address
columnName: id_orig_h
version: 2.1.1
kind: Scheduled
Stages and Predicates
Parameters
let threshold = 25;
union (2 sources)
Each leg below queries one source; the rule matches if any leg does. Sources: corelight_dns, corelight_dns_red
Leg 1: corelight_dns
Leg 2: corelight_dns_red
Applied to the combined result
| where rcode in (2, 3) | summarize count() by query, id_orig_h, bin(TimeGenerated, 5m) | where count_ > threshold
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
count_ | gt |
| field:"count_" kind:gt value:"25" |
rcode | in |
| field:"rcode" kind:in |
Output fields
These fields are emitted when the rule matches.
| Field | Source |
|---|---|
id_orig_h | summarize |
query | summarize |