Elastic: Machine learning detection for DNS-based Domain Generation Algorithms
This detection capability utilizes supervised machine learning to identify DNS queries with high DGA probability, a technique commonly used by malware to establish resilient command and control infrastructure.
Triage facts
Revision 1- Evidence
- Unknown
- Severity
- Low
- Action
- Elevated
- Sources
- 4 public sources
- Freshness
- Revision 1Nov 6, 21:01 UTC
- Source quality
- A1Likely
Elastic has released an updated machine learning-based detection rule designed to identify Domain Generation Algorithm (DGA) activity within DNS traffic. DGA is a technique used by various malware families to generate large pools of domain names dynamically, allowing them to cycle through C2 infrastructure and evade static blocklist defenses. The detection relies on a supervised ML model to calculate a malicious probability score for DNS question names.
Impact
The use of DGA allows malware to maintain communication with C2 servers even if individual domains are blocked or sinkholed. Monitoring for these patterns helps in early detection of C2 beaconing before a full-scale compromise or data exfiltration occurs.
Recommendation
- Deploy the "Domain Generation Algorithm Detection" integration via Kibana to enable the required ML framework and ingest pipelines.
- Ingest DNS logs from Elastic Defend, Network Packet Capture, or Packetbeat into the Elastic Security platform.
- Tune the detection logic by adding exclusions for known internal development tools, software update mechanisms, and CDNs that frequently exhibit DGA-like naming patterns.
- Investigate high-scoring alerts by pivoting to endpoint logs on the source host to check for suspicious process activity associated with the DNS request.
Threat Hunt
Identify high-probability DGA DNS requests in network telemetry
Data: DNS query logs, Network packet capture
Mitigations
Configure ML-based DGA detection integration in Kibana
T1568.002