Articles
Detection Engineering Interview Questions: Telemetry, Rules, and False Positives
Practice detection engineering interviews with telemetry coverage, Sigma rules, labeled tests, precision and recall, and scoped false-positive exceptions.
A rule matches perfectly in a test notebook and finds nothing in production. Perhaps the behavior never occurred. Perhaps the required command-line field is absent on half the fleet. Detection engineering interviews probe whether you can distinguish those possibilities before declaring a control effective.
Answer detection engineering interview questions by connecting a threat hypothesis to observable telemetry, explicit rule logic, labeled tests, and an operational response. A detection is more than a query: it needs coverage assumptions, useful evidence, ownership, and a way to notice when its inputs stop working.
The scenarios here are original defensive exercises, not claims about a particular employer's interview process. Sigma specifications and MITRE ATT&CK provide terminology and structure; the numeric fixtures, rollout gates, and exception policies below are editorial examples.
How do you turn a threat hypothesis into a detection?
Begin with a behavior and the decision an analyst should make. "Detect suspicious scripting" is too broad to test. A more useful starting point is: an unexpected application launches a script interpreter on a managed workstation, and the resulting process context warrants investigation.
List observable facts separately from inferred intent. Parent process, executable identity, command line, user, host, and timestamp may be observable. Malicious purpose is usually an interpretation requiring additional evidence. MITRE's PowerShell technique describes adversarial use of the interpreter, but the presence of PowerShell alone does not establish an attack.
Define what would falsify or narrow the hypothesis. A documented software deployment might create the same parent-child relationship. A process event without parent information may be insufficient to evaluate it. This reasoning leads to better rule scope than beginning with a string copied from an unrelated incident.
Finish the first answer with a testable promise: identify a specific behavior on systems where the required telemetry is available, then provide enough context for triage.
Which telemetry requirements should you state explicitly?
Treat fields as a contract. Specify the source, event class, identifier scope, timestamp meaning, required fields, and expected latency. "We collect endpoint logs" does not prove that the field used by a rule is populated or normalized consistently.
In an illustrative fleet of 100 endpoints, seventy provide process creation plus command-line data, twenty provide process events without command lines, and ten provide no process feed. A command-line-dependent rule can be evaluated on seventy endpoints under these assumptions. Saying it covers all 100 would confuse inventory membership with usable observation.
Measure missingness at the field level. A connector can be healthy while truncating command lines or omitting parent identifiers. Track whether those failures affect particular operating systems, agent versions, or host groups.
Also define the expected negative case. A workstation without relevant activity might legitimately emit no matching events. A workstation without any expected telemetry needs a collection-health investigation. The detection system should distinguish quiet behavior from unavailable evidence rather than assigning both the same reassuring status.
How should you explain Sigma without overstating portability?
Sigma describes detection rules in a structured format with a log source and detection logic. Its specification includes fields such as title, conditions, false-positive context, and severity. Conversion still depends on backend support and field mappings; a portable rule description does not prove identical behavior in every environment.
The SigmaHQ repository also applies conventions beyond the general specification. For example, its contribution convention requires metadata that is optional in the base format and starts newly created rules as experimental. Distinguish syntax validity, repository acceptance, and operational readiness when an interviewer asks whether a rule is "valid."
In a practical answer, review the converted query against actual records. Does the target backend interpret the condition as intended? Are the fields present with the expected case and types? Does a missing value behave like your fixture assumed?
A useful deliverable is a rule plus its mapping assumptions and tests. Without those, two teams can deploy the same source rule and unknowingly monitor different behaviors. Treat conversion as a step that needs validation, not a certificate of detection quality.
What belongs in a small detection test fixture?
Build a fixture that makes the rule's boundaries visible. Include a relevant behavior, a closely related benign workflow, a missing-field event, and a case near each time or count threshold. The purpose is to expose assumptions, not to collect a large number of easy examples.
| Fixture case | Expected handling | Reason |
|---|---|---|
| Unexpected interpreter child with complete context | Alert for investigation | Matches the stated hypothesis |
| Approved task with verified exception attributes | Suppress or lower priority under policy | Known bounded workflow |
| Missing parent identifier | Record insufficient evidence | Relationship cannot be evaluated |
| Same signer, different script identity | Retain for evaluation | Signer alone is not the exception |
| Duplicate delivery of one process event | Preserve one event identity | Avoid inflated counts |
Write expected outcomes before examining rule results. Otherwise it is easy to redefine success around whatever the query happens to return. Keep raw fixtures, normalization, and expected alerts versioned together so a mapping change cannot silently invalidate the test.
For process events, use synthetic or sanitized records that exercise detection logic without requiring harmful activity on production systems.
How do precision and recall change a tuning decision?
Precision asks what fraction of alerts are relevant. Recall asks what fraction of relevant cases were detected. Both require labels, and recall requires a denominator that includes missed relevant cases. Production alert tickets alone rarely provide a complete denominator.
Consider a labeled lab set with twenty malicious cases and eighty benign cases. The detector alerts on sixteen malicious and eight benign cases. It misses four malicious cases and correctly remains quiet on seventy-two benign cases.
| Actual class | Alert | No alert |
|---|---|---|
| Malicious | 16 | 4 |
| Benign | 8 | 72 |
Precision is 16 divided by 24, approximately 66.7 percent. Recall is 16 divided by 20, or 80 percent. These are measurements on this fixture, not promised production performance. The distribution of real activity and the quality of labeling can change both.
If an exception removes six benign alerts and three malicious alerts, investigate the lost cases before celebrating lower volume. Operational cost matters, but fewer alerts alone is not evidence of a better detector.
How do you reduce false positives responsibly?
First understand why the alert is benign. Is it a known administrative task, an overly broad condition, an identity normalization error, or a duplicate event? These causes deserve different fixes. A large allowlist can hide a data-quality problem without repairing it.
For a known task, define the smallest reliable exception. In this exercise, require the approved script hash, approved signer, managed path, assigned host group, and an unexpired exception record. All conditions must agree. A matching signer with a different hash does not qualify automatically.
These attributes are illustrative policy inputs, not an assurance that the task cannot be abused. Record an owner, reason, review date, and evidence of the approved workflow. Preserve visibility into suppressed matches during evaluation so the team can discover that the exception has become too broad.
When possible, fix the detection's logic rather than repeatedly adding names to an exclusion list. Explain which benign behavior the revised condition separates and rerun the relevant malicious fixtures.
How do you test sequences and time boundaries?
A sequence detection must define entity identity, event order, maximum gap, and duplicate handling. "A followed by B" is ambiguous if A and B come from different hosts or if clocks disagree. Specify the relationship before choosing a correlation engine.
Imagine process creation at 10:00, a related network event at 10:02, and delayed collection at 10:08. A rule using event time may reconstruct the sequence when the late record arrives; a short scheduled lookback may never reconsider it. Measure ingestion delay and define a recovery path for late evidence.
Test a record exactly on the boundary and one just outside it. If the allowed gap is five minutes, decide explicitly whether exactly five minutes qualifies. Include duplicate identifiers so retries do not create multiple episodes.
Also test out-of-order arrival. The operational system may need buffering, overlapping evaluation, or reconciliation. Each option has latency and resource costs. A strong answer names those costs and chooses based on the response objective rather than claiming that one window size is universally correct.
What should an alert give the responding analyst?
An alert should explain what happened, why it matched, which entities are involved, and what evidence supports the relationship. Include stable identifiers, relevant timestamps, source context, and the rule version. A severity label without this context leaves the analyst to rediscover the detection's logic.
For the interpreter-child example, include the parent and child identities, user, host, observed command line where available, and the specific condition that triggered evaluation. Mark missing fields plainly. Avoid an autogenerated narrative that states intent more confidently than the evidence allows.
Add a focused triage question: is this an approved task with matching deployment records, or an unexplained process chain requiring further investigation? Linkage to additional evidence should be authorized and appropriate for the environment, with sensitive values handled under the team's policies.
The response action should match confidence. A low-context anomaly can justify investigation without justifying automatic isolation. In an interview, discuss escalation and analyst needs before proposing an irreversible automated action based on one weak signal.
How do you roll out a rule and detect regressions?
Begin with offline fixtures and a representative historical evaluation, then observe the rule in a controlled rollout. Track alert volume, label quality, execution cost, telemetry freshness, and the hosts on which the rule can actually evaluate. Compare results by relevant cohort instead of relying only on a fleet-wide average.
Define a rollback condition before enabling notifications. For example, a parser change that removes parent identifiers invalidates this rule's central assumption. The correct response may be to mark coverage degraded and repair the mapping, not merely lower the threshold until alerts return.
Keep the previous rule and normalization versions available for comparison. A change in detections can come from logic, source behavior, enrichment, or collection. Versioning only the query leaves the other causes invisible.
Assign ownership for both the rule and its telemetry dependency. A detection with no maintained source contract can quietly deteriorate after an agent upgrade. Review expiry, exception growth, and untriaged alert backlog as part of ongoing operation.
How should you discuss ATT&CK coverage?
MITRE ATT&CK provides techniques and detection strategies that help organize defensive reasoning. Mapping a rule to a technique describes intended relevance; it does not establish that every implementation of that technique is detectable in your environment.
For example, a rule based on one interpreter command-line pattern has a narrower scope than all possible scripting activity. State the observable behavior, supported platforms, required telemetry, and known blind spots alongside the mapping. A colored matrix cell without those details can exaggerate coverage.
When asked how to prioritize, connect the organization's exposure and response goals to observable behaviors. A critical system lacking telemetry may need instrumentation before another rule. A noisy rule protecting a high-impact workflow may need better context rather than immediate retirement.
The interview value lies in explaining the evidence behind a coverage claim. Distinguish a proposed detector, a tested detector, and a monitored production control. Those are different maturity states even if they share the same technique tag.
How can you practice an end-to-end answer?
Start with the 100-endpoint fleet and explain why command-line coverage is seventy percent under the fixture's assumptions. Present the hypothesis, required fields, and one relevant event alongside a benign near-match. Then use the confusion matrix to describe the quality of your labeled test results.
Ask a partner to remove parent information, delay an event, or broaden an exception. Explain which promise the detector can no longer make and what you would measure next. Keep the answer concrete: the missing field, affected host group, test case, and response decision should all be named.
Finish by defining ownership and a degradation signal. A rule that worked once is only the beginning. A defensible detection continues to expose its assumptions, preserve analyst evidence, and reveal when its inputs stop supporting the behavior it was designed to observe.
Sources and Further Reading
Official primary sources checked September 24, 2026. All test data and thresholds are illustrative; no production effectiveness or employer question frequency is asserted.
- Sigma rule specification: structured rule format.
- SigmaHQ rule conventions: repository-specific requirements.
- MITRE ATT&CK PowerShell technique: adversarial scripting context.
- MITRE ATT&CK detection strategies: organizing detection approaches.