Identify usable model inputs from existing DNS telemetry.

A feature is simply a measurable clue you give a model, such as the length of a name or how many different devices asked for it. The good news is that you already collect plenty of clues.

Feature group

Examples

Good for

Caution

Query metadata

Name, type, timestamp, response code, response size

Everything; the base layer of every DNS model

Timestamps must be consistent across sites or seasonality is corrupted

Lexical

Name length, character randomness (entropy), digit ratio

Spotting algorithmically generated names

Legitimate CDN and cloud hostnames look random too, a major source of false alarms

Temporal

Query rate, timing between queries, regularity, burstiness

Beaconing, tunnelling, separating crawlers and bots

Encrypted transports hide much of this at the resolver boundary

Response

TTL values, answer count, address variety, NXDOMAIN rate

Fast-flux behaviour and misconfiguration

Cloud services legitimately use short TTLs and rotating addresses

Population

How many distinct clients ask, and how that spreads over time

Separating one noisy host from a coordinated campaign

Needs client identifiers, which carry privacy duties

This is about resisting the pull of the easiest clues. Looking at the appearance of domain names is the most published approach, because it is simple and demonstrates well, and it was genuinely effective in early work on generated names (Yadav et al., 2010). The weakness shows up in real life: modern cloud infrastructure creates huge numbers of perfectly legitimate hostnames that are long, random-looking and full of digits. A model trained on yesterday’s mix of traffic then produces the very false-alarm flood from Tunde’s story.

Clues about behaviour are sturdier, because behaviour is more expensive for an attacker to imitate. A malicious domain asked for by a handful of infected machines looks very different from a popular service. Approaches built on this idea, using passive DNS data, have aged well (Bilge et al., 2011).

Your best feature is usually population. How many distinct clients ask for a name, and how that number changes over hours, is harder to fake and generalises better than the look of the name.

Read the last row of the table before building anything. Client identifiers turn DNS data into personal data in many places, which is a governance question for Module 7, not an afterthought.