Design a DGA detector that survives a real alert budget.
Some malware cannot afford to use a fixed address, because defenders would simply block it. Instead, it generates many candidate names from a secret seed and tries them one after another until one works. These are called algorithmically generated domains, or DGAs. Most of those names do not exist, so an infected machine produces a telltale burst of NXDOMAIN answers for names nobody else asks for.
|
Card |
What it says |
|
1. The behaviour |
Malware generates many names from a seed and tries them until one resolves. Most fail, so infected hosts produce a distinctive burst of NXDOMAIN responses for names nobody else queries. |
|
2. The weak signal |
Lexical features: randomness, length, digit ratio. Effective in early research (Yadav et al., 2010) and increasingly fragile, because legitimate cloud hostnames now look identical. |
|
3. The strong signal |
Population and response behaviour: how many distinct clients ask, how many of those names fail, and whether the same small set of hosts queries them together (Antonakakis et al., 2012). |
|
4. The operating point |
Do not classify every name. Rank hosts by suspicion and send the top N per day to an analyst, where N is the number your team can actually investigate. |
Now for the reframe that makes it work. Do not ask, “Is this domain malicious?” Ask instead, “Which of my hosts is behaving like an infected machine?” The first question runs against hundreds of thousands of names at a base rate near zero, and it drowns you. The second runs against a few thousand hosts, produces a ranked list rather than a stream of alarms, and matches how an analyst really works. An analyst investigates a machine, not a string of letters. Same data, same clues, entirely different outcome.
KEY TAKEAWAY The reframe is a change of unit, not a change of algorithm. By changing the unit from domains to hosts, you change the denominator, and therefore the base rate you are fighting.
TRY IT YOURSELF: From one day of resolver logs, rank your clients by their NXDOMAIN ratio and by the count of unique names they queried that nobody else did. Look at the top ten. This crude two-clue ranking finds real infections in most networks, and it is the baseline any purchased DGA detector must beat.
