learn: Domain Generation Algorithm (DGA) Detection

trypcaphub/7mo ago
67 KB
204 packets
6.9s
79 views
6 downloads

Mixed protocols across UDP, DNS, ETHERNET

3 IDS alerts
Ready

45 DNS queries against BIND 9.18.39 demonstrating Domain Generation Algorithm behavior. 40 queries use randomly generated alphanumeric domain names (e.g., aji0y6dpb.net, sahxthv3a3z.org) across .com, .net, .org, .info, and .biz TLDs. These DGA domains all return NXDOMAIN (rcode 3) since they do not exist. 5 queries for legitimate domains (google.com, github.com, cloudflare.com, amazon.com, microsoft.com) return valid A records for comparison.

The contrast is the detection key: DGA domains are high-entropy random strings that consistently fail to resolve, while legitimate domains are readable words that resolve successfully. Suricata flagged "ET INFO Observed DNS Query to .biz TLD" for one of the DGA queries. Zeek identified 102 DNS transactions.

To find DGA traffic in Wireshark, filter for NXDOMAIN responses: dns.flags.rcode == 3. A large cluster of NXDOMAINs for random-looking domain names is a strong indicator of DGA-based malware cycling through generated domains searching for an active C2 server.

Loading packets...