Identify the abuse categories and which are detection problems at all.
The most valuable security judgement is knowing which problems are detection problems. Here are the five main ways DNS is abused, and an honest answer to “Is machine learning the right tool?” for each.
|
Abuse |
What it looks like in your data |
Is ML the right tool? |
|
Algorithmically generated domains |
Malware resolving many short-lived, random-looking names, most returning NXDOMAIN |
Yes: classification, but only with population features and a stated alert budget |
|
DNS tunnelling and exfiltration |
Long, high-randomness labels; unusual record types; sustained query volume to one zone |
Yes: behavioural and volume features work well; lexical alone does not |
|
Random-subdomain flood |
A sudden surge of unique, non-existent names under a target zone |
Partly: detection is easy; the real remedy is negative-cache and rate-limit configuration |
|
Cache poisoning and spoofing |
Forged answers accepted by a resolver |
No: this is a cryptographic problem solved by DNSSEC validation |
|
Hijacking and misdelegation |
Registrar or NS records changed without authorisation |
No: this is access control and change monitoring, not prediction |
Look closely at the last two rows. Cache poisoning is a question of whether data is genuine, and it has an existing cryptographic answer: DNSSEC authenticates the origin and integrity of records, so a forged answer fails validation instead of needing to be spotted statistically (Arends et al., 2005). Hijacking, through a compromised registrar account or unauthorised name server changes, is an access-control and change-monitoring problem. The controls are a registrar lock, strong authentication, and an alert whenever delegation changes. No amount of query analysis replaces them.
The third row is the interesting middle case. Random-subdomain floods are easy to detect, because the NXDOMAIN share jumps sharply. But detection is not the valuable part. The valuable part is the configuration work from Module 5, where a sensible negative-cache TTL and response rate limiting absorb the flood before it reaches you. This pattern recurs throughout DNS security: knowing something is happening is cheap, and the fix usually lives in configuration, not in the detector.
KEY TAKEAWAY Two of the five are not ML problems. Proposing a model for them signals that the problem has not been properly diagnosed. That is a useful test to apply to any DNS security pitch you receive.
