Detection logic is a set of analytical rules or conditions that identifies activity matching suspected malicious behavior. It commonly emerges when a threat hunt produces a repeatable, useful way to recognize a threat. section 2.2.3 section 1.6
Good detection logic begins with a relevant, testable hypothesis: state what threat may be present, define where to look, and identify the techniques and indicators that could reveal it. Available data and tools determine whether the logic can be tested. section 2.2.3
Use a hunt-to-detection workflow:
- Form a hypothesis grounded in situational awareness, domain expertise, and threat-intelligence information. section 2.2.3
- Search the environment for indicators and evidence that could prove or disprove the hypothesis. section 1.6
- If the search fails, broaden the hunt, request additional system data, update the search, or revise the hypothesis. section 1.6
- If the search succeeds, pivot to determine incident extent, improve or create monitoring rules, share indicators or TTPs, and engage incident response. section 1.6
From an Active Directory hunt to detection
A hunter familiar with Active Directory and its deployment defines a hypothesis about a possible threat, then searches operating-system and AD event data using available tools. If the evidence supports the hypothesis, the resulting indicators and TTPs can inform a security monitoring detection rule and an incident-response ticket. section 2.2.3 section 1.6
Figure 1.3 High-level threat-hunting process
Use the high-level threat-hunting process to navigate the progression from hypothesis and evidence search through optimization, detection improvement, and response. section 1.6
