Detection Engineer Interview Guide with Questions and Prep
How the detection engineer interview works, the detection and threat skills it scores, 8 practice questions, a Python log-analysis round and a 7-day plan.
Updated
A detection engineer interview tests whether you can turn knowledge of how attackers behave into rules that catch them in SIEM and EDR data without drowning the SOC in false positives. Expect questions on attacker techniques, detection logic and tuning, a practical log-analysis coding task, and a walkthrough of how you would investigate an alert.
What the job really is#
Detection engineers write, test and maintain the logic that raises alerts. A rule is a hypothesis: "if an attacker does X, we will see Y in these logs." The job is making that hypothesis precise, checking it against real telemetry, measuring how noisy it is, and tuning it until analysts trust it. Good detection engineers treat rules like code, with version control, tests, documentation and a clear owner, and they think about the gaps as much as the coverage.
Our practice interviews are set at Kestrel Shield, a fictional managed detection and response provider for mid-sized companies. An MDR setting adds a useful constraint: one rule runs across many customer environments, each with different normal behaviour, so a detection that is fine in one network can fire hundreds of times a day in another.
What the detection engineer interview process looks like#
Real loops usually include a recruiter screen, a technical screen on security fundamentals, a detection design round, a coding or query exercise over log data, an incident or scenario walkthrough, and a behavioural interview.
Our practice papers condense that into one session with an AI voice interviewer and live coding in the browser:
- 30 minutes: introductions (2), your work (5), live coding (13), detection design (7), your questions (2), wrap-up (1).
- 45 minutes: the same sections at 3, 7, 18, 12, 4 and 1 minutes.
- 60 minutes: 20 minutes of coding, 14 minutes of detection design, and an extra 10-minute incident walkthrough.
The 30-minute paper suits a screen rehearsal; the 60-minute paper is closest to a full loop. See how the practice interviews work.
Skills scored and how they are weighted#
Each skill is rated Not yet, Developing, Hire-ready or Standout, with quotes from what you said as evidence. Detection logic and threat knowledge are must-haves: both need Hire-ready for an overall yes.
- Detection logic (must-have, 20%): precise conditions, thresholds, time windows and tuning.
- Threat knowledge (must-have, 15%): attacker techniques and the evidence they leave behind.
- Coding (15%): working Python that passes hidden tests.
- Data wrangling (10%): parsing and correlating messy, high-volume log data.
- Problem decomposition (10%): breaking a technique into observable steps.
- Debugging (10%): working out why a rule missed or over-fired.
- Communication (10%): explaining a detection to an analyst or customer.
- Ownership (10%): maintaining rules after they ship.
Detection engineer interview questions to practise#
We wrote these questions for this guide. They show the style of the round, not the content of any paper.
Detection logic#
- Write the logic, in words, for detecting password spraying against a single sign-on provider. A strong answer counts distinct accounts per source over a window, contrasts it with brute force against one account, and names likely false positives.
- A rule for suspicious PowerShell fires 400 times a day. What do you do? A strong answer samples the alerts, groups them by parent process and host, and tunes with narrow exclusions rather than raising thresholds blindly.
- How do you know a detection still works six months after you wrote it? A strong answer mentions scheduled attack simulations, log source health checks and alerting when expected data stops arriving.
Threat knowledge#
- An attacker has a valid user's credentials. What would they likely do next, and what could you detect? A strong answer walks through discovery, privilege escalation and lateral movement, naming specific log events for each.
- How would you detect persistence through a scheduled task on Windows? A strong answer names the relevant event sources, what makes a task suspicious, and how to baseline legitimate admin tooling.
Investigation and communication#
- You see a successful login from a new country right after many failures. Walk me through triage. A strong answer checks the user's history, MFA outcome, device and follow-on activity before deciding whether to escalate.
- A customer asks why you missed an incident. How do you respond? A strong answer is factual about the gap, explains what will change, and avoids both defensiveness and overpromising.
Experience#
- Tell me about a detection you wrote that caught something real. A strong answer covers the hypothesis, the data, the tuning, and what the alert led to.
The live coding round#
The exercise is in Python: detecting an authentication attack pattern in logs. Expect to parse authentication events, group them by user, source or time window, and decide when a sequence crosses the line from ordinary to suspicious. Hidden tests check your function when you submit, so edge cases count: events out of order, events exactly on a window boundary, malformed lines.
How to talk while coding:
- Describe the attack pattern in one sentence and say which fields prove it.
- State your window and threshold and why, and note that you would tune them on real data.
- Sort by timestamp before applying any sliding-window logic, and say so.
- Explain how you handle boundaries ("inclusive at five minutes").
- When a test fails, reason from the failing input first.
Interviewers listen for the link between the code and the threat. Saying "this catches many accounts from one source, but a slow spray spread across sources would slip past" shows you understand the limits of your own rule.
Common mistakes#
- Describing a technique without saying which log fields would reveal it.
- Proposing detections with no thought for false positives or tuning.
- Treating thresholds as facts rather than starting points.
- Ignoring missing or delayed telemetry.
- Forgetting the analyst who has to act on the alert.
If you enjoy the investigative side and customer conversations, the Support Engineer interview guide covers a loop that also leans heavily on debugging from logs.
A one-week prep plan#
- Day 1: revise common initial access and credential attacks: spraying, brute force, token theft and MFA fatigue.
- Day 2: practise Python log parsing, sorting by time and sliding windows with
collections.deque. - Day 3: write three detections in plain words, each with data source, logic, false positives and tuning notes.
- Day 4: prepare two stories: a detection that worked and one you had to fix.
- Day 5: take the 30-minute practice paper and review the quotes on your scorecard.
- Day 6: rehearse an incident walkthrough aloud, from first alert to containment.
- Day 7: take the 60-minute paper end to end.
When you are ready, practise the Detection Engineer interview and get scored on detection logic, threat knowledge and coding.
Frequently asked questions#
What questions are asked in a detection engineer interview?#
Expect questions on attacker techniques and the evidence they leave, detection design such as how to catch password spraying, tuning noisy rules, a coding or query exercise over log data, and an incident walkthrough. Interviewers care about precise logic and realistic handling of false positives more than memorising framework IDs.
Do detection engineers need to code?#
Yes, at a practical level. Most teams expect you to write queries in their SIEM language and scripts in Python for testing, enrichment or data analysis. In interviews this often means parsing logs and finding a pattern over time. Clean, tested code and clear reasoning matter more than advanced algorithms.
How is detection engineering different from SOC analyst work?#
SOC analysts triage and investigate alerts; detection engineers build and tune the logic that produces them. The roles overlap, and many detection engineers start as analysts. Interviews for detection roles go deeper on rule design, data sources, testing and coverage, while analyst interviews focus more on triage and response.
How should I prepare for a detection engineer interview?#
Revise common attack techniques and the logs that reveal them, practise writing detections in plain language with false positives and tuning notes, and get comfortable parsing logs in Python with time windows. Then rehearse an incident walkthrough out loud and take a timed mock interview.
How long are the practice interviews?#
There are three papers of 30, 45 and 60 minutes. Each covers your work, live coding in the browser and a detection design problem, and the 60-minute paper adds an incident walkthrough. You can start a Detection Engineer practice interview at any of the three lengths.