skip to content

In a SIEM, how does a rule matching a known-bad domain differ from one matching a behaviour?

level: juniorimportance: must knowfreq 72%

answer

  1. what does the rule actually compare
  2. literal value versus shape of activity
  3. cheap to write, quietly easy to break
  4. behaviour survives new hostnames and certificates
  5. coverage versus certainty, keep both

basics

~20 s

An indicator rule matches a fixed artefact such as a domain or hash, so it is cheap to write and dies when that artefact changes. A behavioural rule matches how the activity looks: costlier to tune, but it survives.

solid answer

~50 s

A known-bad-domain rule is a match list. The SIEM compares one field in each proxy or DNS record against a set of literal values. It takes minutes to write, needs no understanding of what the adversary is actually doing, and gives a very clean verdict when it hits. But it only ever catches the exact string it holds, and the operator changes hostnames as a routine cost of doing business, so the rule goes quiet without anyone noticing. A behavioural rule describes the shape of the activity instead: for example, a non-browser process on a workstation holding outbound TLS sessions to an internet edge that no browser on that host ever navigated to. It keeps working when the hostname and certificate change, but you have to understand the technique to write it, it also matches legitimate work, and it needs tuning. A real portfolio carries both.

go deeper

for a junior

Be ready to state, in one sentence each, what an indicator rule and a behavioural rule compare, and to give one concrete example of each over proxy or DNS records. Say plainly that a match list breaks silently.

for a middle

An interviewer expects you to explain the maintenance asymmetry: the indicator rule stops matching with no visible signal, while the behavioural rule's cost shows up as hits on legitimate software that you tune out deliberately.

for a senior

Show you can name a behavioural clause for a real technique and predict which legitimate software will also satisfy it before you ship the rule. Separate false positive from benign true positive out loud.

for a principal

Own the portfolio view: what share of your rules are match lists, who re-confirms their entries, and what happens to your analyst queue when someone loads a large list straight into alerting.

## Two things a rule can compare A detection rule is a predicate over collected records. What separates the two families is what the predicate is written against. An **indicator rule** compares a field to a fixed artefact that was *observed once*: a domain name, a URL, an IP address, a file hash, a certificate serial, a TLS client fingerprint such as a JA3 value. The rule says, in effect, "if any egress proxy record's destination host equals one of these strings, alert". Authoring cost is close to zero — you paste a value in. Reading the alert is easy too, because the verdict is almost pre-made: the record contained a string somebody previously attached to malicious activity. A **behavioural rule** compares fields to an *invariant of the activity* — something that has to be true for the technique to work at all, independent of the infrastructure carrying it. "A process that is not a browser or a known updater is making outbound TLS connections to the internet" is a behavioural clause. So is "a host reached an external address with no preceding DNS resolution from that host". Nothing in either clause names a hostname, so nothing in either clause breaks when the hostname changes. ## What each costs **To author.** The indicator rule costs a copy-paste. The behavioural rule costs you understanding: you have to know the technique well enough to name a property of it that cannot be dropped, and you have to know which collected record carries that property. **To maintain.** This is where they diverge hardest, and it is the part juniors miss. The indicator rule needs no maintenance and gives no warning when it becomes useless — it simply stops matching. Nothing on your dashboard changes; a rule that never fires looks exactly like a rule protecting a quiet estate. The behavioural rule does need maintenance, but its maintenance is *visible*: it fires on legitimate work — a backup agent, a monitoring collector, an installer — and you tune those out by excluding them on a stable attribute, one at a time, in daylight. **To run.** The indicator rule usually has no selective predicate: every record in the source has to be tested against the whole list on every scheduled run, so its cost tracks total traffic volume and grows with the list. A well-chosen behavioural clause is normally *selective* — it eliminates the overwhelming majority of records before anything expensive happens. ## What each actually proves An indicator match proves exactly one thing: **a record contained that string**. It does not prove the host is compromised. Infrastructure gets reused, domains get resold, a CDN address is shared with thousands of innocent tenants, and an analyst may have visited a sample in a browser. A behavioural match proves the *behaviour occurred*, which is a stronger statement about the activity and a weaker one about intent — plenty of legitimate software does adversary-shaped things. That gives you the distinction the whole triage discipline turns on: a **false positive** (the clause did not really match what it claims to match) is a rule defect; a **benign true positive** (the clause matched correctly, and the cause is legitimate) is a tuning job, not a broken rule. Getting the vocabulary the right way round matters here too. A domain, a hash, a certificate serial are **indicators** — artefacts observed. "Fronting command-and-control through a mainstream CDN so that egress looks like ordinary web traffic" is a **behaviour**. Candidates who call a hash a technique, or describe a behavioural clause as "a better indicator", have not separated the two categories yet. ## Why both stay in the portfolio The conclusion is not "behavioural rules are correct and match lists are amateur". A short, high-confidence, expiry-dated match list is one of the cheapest things a small team owns: near-zero authoring cost, near-zero analyst time when it does not fire, and a fast, defensible close when it does. What goes wrong is scale and permanence — a very large list wired straight into alerting, with no owner and no expiry date, converts somebody else's collection into your analyst's Tuesday. The practical rule of thumb: spend behavioural rules on **coverage** of techniques you expect to face, and spend match lists on **certainty** about a small set of things you currently care about, with a date on them and a name against them.

  • If indicator rules are that fragile, why keep any match lists at all?
    Because certainty is worth something. A short list scoped to something you currently care about costs almost nothing to author, costs nothing while it stays silent, and gives a fast, defensible close when it hits. The failure mode is not the list, it is an enormous permanent list with no owner and no expiry date wired straight into alerting.
  • A behavioural rule fires on a legitimate backup agent. Is that a false positive?
    No. It is a benign true positive: the clause matched exactly what it claims to match, and the cause is authorised software. The fix is an exclusion on a stable attribute of that agent, not deleting the clause. Calling it a false positive leads people to weaken the behavioural condition itself, which is how you tune away the detection along with the noise.
  • How would you notice that an indicator rule has gone quiet because the artefact changed?
    Not by watching the dashboard — silence from a detection is indistinguishable from a quiet estate, so you cannot compute its miss rate from its own output. The only evidence is executing the behaviour yourself with fresh infrastructure and seeing whether anything fires. Replaying a stored copy of the old record proves nothing: it still contains the artefact you already knew.

Matching a hostname is recognising a getaway car by its plate; matching a behaviour is recognising that someone is driving away from the loading bay at 04:00. Plates are repainted in an afternoon.

saying these in an interview costs you the question

  • Claims behavioural rules make match lists obsolete
  • Calls a domain or file hash a technique
  • Treats a silent indicator rule as evidence of a quiet estate
  • Says an indicator match proves the host is compromised
  • Assumes behavioural rules need no tuning
  • Calls every behavioural-rule hit on legitimate software a false positive

context