GO KALI FREE
IntermediateSecurity Operations

Threat Hunting for Beginners: What It Is & How to Start Your First Hunt

Learn threat hunting for beginners: what it is, how to start with a hypothesis, your first lab hunt with Sysmon and Splunk queries, tools, and a cheat sheet.

#threat hunting for beginners#what is threat hunting#threat hunting tutorial#threat hunting tools#threat hunting vs incident response#how to start threat hunting#threat hunting methodology#cyber threat hunting

The C2 Beacon That No Alert Caught

In 2019, a threat hunter at a major bank noticed something odd: one server was making DNS queries to a domain that had never been seen before — a 52-character alphanumeric string that resolved to different IPs every five minutes. The SIEM hadn't alerted because no signature matched. The EDR hadn't flagged it because the process was a legitimate Windows tool. A threat hunter had found what automation missed: a C2 beacon that had been operating undetected for eight months.

Threat hunting is the proactive search for malicious activity that has evaded existing security controls. Unlike automated detection that waits for alerts, threat hunting assumes compromise is already present.

What Is Threat Hunting?

Threat hunting is a human-led, hypothesis-driven search through security telemetry, such as process logs and network records, for attacker activity that automated detection may have missed. Instead of waiting for an alert, hunters assume a compromise may already be present and proactively look for evidence that supports or weakens a specific suspicion.

Dwell time is the gap between compromise and discovery. Attackers can go unnoticed for days or weeks when their actions blend in with routine administration. Hunting gives defenders a way to investigate that activity without waiting for an existing rule to flag it.

Threat hunting is not alert triage, which starts with an alert, or incident response, which investigates and contains a suspected or confirmed incident. It is not penetration testing either: a penetration tester actively tests defenses, while a hunter looks for evidence of activity that may have already happened.

Threat Hunting vs Incident Response vs Threat Intelligence vs Penetration Testing

AspectThreat huntingIncident responseThreat intelligencePenetration testing
TriggerA testable suspicion, a coverage gap, or an intelligence leadA credible report, alert, or finding that suggests an incidentA question about threats relevant to the organizationAn approved engagement with a defined scope
GoalFind attacker activity that current detections may have missedDetermine what happened, contain the incident, and recoverExplain which threats matter and how they operateTest whether weaknesses or control gaps can be demonstrated
TimingProactively during routine operations, without needing an alertDuring and after a suspected or confirmed incidentBefore, during, or after hunts and incidentsDuring the agreed testing window
OutputEvidence, a documented conclusion, and possible detection improvementsAn incident timeline, containment actions, and recovery recommendationsAssessed indicators, behavior summaries, and recommended prioritiesValidated findings and remediation recommendations

How hunting feeds incident response: When a hunt uncovers credible evidence, give responders the affected hosts and accounts, the event times, and the original records behind the finding. Explain what you checked and what remains uncertain so responders can scope the incident without repeating the hunt.

How hunting feeds threat intelligence: A hunt can show whether a reported attacker behavior also appears in your environment and what it looks like in your logs. Share verified observations with the intelligence team, keeping confirmed indicators separate from leads that still need validation.

Prerequisites

  • SIEM Fundamentals — Understanding of log collection and querying
  • Security Monitoring — Detection infrastructure knowledge
  • Incident Response — Understanding of adversary behavior
  • Log Analysis — Skill in examining system and network logs
  • The Threat Hunting Process

    Step 1: Form a Hypothesis

    Hunting begins with a question or hypothesis based on threat intelligence, recent research, or organizational risk assessment.

    Hypothesis Examples:

  • "An attacker may be using PowerShell without command-line flags to evade detection"
  • "There may be DNS tunneling in our environment based on recent APT campaigns"
  • "Lateral movement using WMI may be occurring in our server segment"
  • "Attackers may be using alternate authentication methods to bypass MFA"
  • Step 2: Collect and Prepare Data

    Gather the data needed to test the hypothesis from SIEM, EDR, logs, network traffic, and other sources.

    # Example: Collect PowerShell script block logs
    # Enable PowerShell logging via Group Policy
    # Event ID 4104: PowerShell script block logging
    
    # Collect network connections associated with processes
    # From EDR or Sysmon Event ID 3 (Network connection detected)
    

    Step 3: Execute Analysis

    Apply analytical techniques to identify malicious patterns in the collected data.

    Step 4: Investigate Findings

    Validate suspicious findings through deeper analysis — examine affected systems, review timelines, and correlate with other data sources.

    Step 5: Document and Improve

    Document findings, create detection rules, and update defensive controls to prevent future evasion.

    How to Start Threat Hunting in 5 Steps

    A practical approach to threat hunting for beginners is to start with one question, a small set of logs, and a clear stopping point.

    1. Pick a hypothesis narrow enough to fail

    Pick one behavior, a group of hosts, and a time window you can actually observe. Decide what would support the hypothesis and what would make you set it aside. Three examples:

  • An attacker used a document editor to launch PowerShell on a lab workstation during the last lab session.
  • Someone registered an unexpected scheduled task on an office workstation outside this week's approved maintenance window.
  • A compromised staff account logged on interactively to a workstation outside its assigned shift this week.
  • For the first hypothesis, a matching parent-child event is a lead, not proof of compromise. With verified log coverage and no matches, report "not observed in scope."

    2. Decide what data would answer it

    List the fields you need before opening a query editor. To test the document-editor hypothesis, use Sysmon Event ID 1 from Microsoft-Windows-Sysmon/Operational for the parent image, child image, command line, and user. Add Event ID 4104 from Microsoft-Windows-PowerShell/Operational for script content if Script Block Logging is enabled. For successful logons, use Windows Security Event ID 4624. If you have endpoint detection and response (EDR), a source such as Microsoft Defender for Endpoint's DeviceProcessEvents can supply process events. For network connections and DNS queries, use Zeek's conn.log and dns.log. Verify that the right hosts report data and that the fields you need are populated.

    3. Baseline normal first

    Look at routine activity on comparable hosts before deciding what is unusual. Help desk workstations do not behave like servers, and service accounts do not follow staff schedules. For example, if an inventory agent launches PowerShell during each approved maintenance window, record its parent path, job owner, target hosts, and expected timing. Compare a new event with that whole pattern, not just with the executable name. Without a baseline, you can spend the hunt rediscovering approved jobs. A baseline gives you a way to prioritize a rare parent process or a familiar job running on a host it never normally touches.

    4. Query and reduce

    Limit the search to the relevant hosts, time range, and event type. Then group the results by the fields that answer your question. Counting how often each parent process launches PowerShell is a simple form of stacking, or frequency analysis. Sort rare parent-child pairs to the top and review those groups instead of reading every event in order. If you filter out a verified inventory job, restrict the filter to its documented hosts and account, and keep the raw events available. The goal is a set a person can review. Rare does not mean malicious, and common does not mean safe.

    5. Triage, document, and turn the outcome into a detection rule

    Open the original records for the highest-priority matches and check them against another source, such as a change ticket or a script block log. Record the hypothesis, query, data coverage, evidence, and disposition: expected, inconclusive, or escalated to incident response. For example, an unexplained document-editor launch becomes more concerning if the script content and a process-linked network event corroborate it. If a repeatable pattern is worth monitoring, express it as a Sigma rule and translate it for your security information and event management (SIEM) platform. Test the translated rule against known matches and routine activity before enabling alerts.

    Worked Example: Your First Hunt — Finding Living-Off-the-Land PowerShell

    Run this hunt only on your own lab or a system you are authorized to defend. The records, command-line excerpts, and verdict below are illustrative examples, not instructions to reproduce attacker activity.

    Hypothesis: "An attacker is using PowerShell with hidden windows and encoded commands to run without triggering alerts."

    Check the data before searching

    Use Sysmon Event ID 1 (Process Create) in Microsoft-Windows-Sysmon/Operational to see what launched Windows PowerShell, under which account, and with what command line. Enable Script Block Logging and use Event ID 4104 in Microsoft-Windows-PowerShell/Operational to inspect the script content PowerShell processed. If you need a harmless collection check, open Windows PowerShell from Command Prompt and run Get-Date. Verify that the launch and script events arrive before interpreting search results.

    Find PowerShell launches with uncommon parents

    In Splunk, set the time picker to a lab session with known data. This SPL example assumes that your lab index is lab_windows, that host identifies the originating endpoint, and that your collector extracts Sysmon fields under the names shown. Substitute your own index, source, and field names if they differ.

    index=lab_windows source="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1
    | eval image_name=lower(mvindex(split(Image,"\\"),-1)),
           parent_name=lower(mvindex(split(ParentImage,"\\"),-1))
    | where image_name="powershell.exe" AND isnotnull(parent_name) AND parent_name!=""
        AND parent_name!="explorer.exe" AND parent_name!="services.exe"
    | sort 0 -_time
    | table _time host parent_name ParentImage User CommandLine ProcessId ProcessGuid
    

    This first pass is deliberately broader than the hypothesis: it includes qualifying launches whether or not the command line contains hidden-window or encoded-command flags. The parent exclusions reduce the review set; they are not a declaration that those parents are safe. Check records with missing parent fields separately if they appear in your data.

    Review the illustrative output

    The following five rows are illustrative. Command lines are abbreviated, and process IDs and GUIDs are omitted from the display.

    Time (UTC)HostParentUserCommand-line excerptAnalyst note
    09:18WS-042winword.exeLAB\trainee-WindowStyle Hidden -EncodedCommand [redacted]Both flags are present, and Office is an unexpected parent. Review first.
    09:10WS-017agentrunner.exeLAB\svc_inventory-WindowStyle Hidden -EncodedCommand [redacted]Both flags are present here too. Check whether the inventory job accounts for them.
    08:55WS-031cmd.exeLAB\tech-File [redacted]\health-check.ps1Compare the script and account with the help desk ticket.
    08:30WS-025msiexec.exeNT AUTHORITY\SYSTEM-File [redacted]\verify-install.ps1Check whether the launch coincides with an approved deployment.
    08:15WS-034taskeng.exeLAB\svc_reports-File [redacted]\daily-report.ps1Check the task's owner, action, and expected run time.

    Triage the evidence and record a verdict

  • Check the parent process. On WS-042, open the full Sysmon event and inspect ParentImage and ParentCommandLine. Use ParentProcessGuid to find the parent's own creation event if available. Verify that the parent really was the expected Word binary and check how it was started.
  • Check the command line and script content. Look for Event ID 4104 on the same host at the time of the launch. Where available, compare the PowerShell event header's execution process ID with the child ProcessId in the Sysmon event. Use host and time as well because process IDs can be reused. Read the logged content as evidence; do not execute it.
  • Check the user and session. Determine whether the account normally runs this workflow. Compare the logon session, timing, and host with approved work or a support ticket. An account name alone does not tell you who initiated the action.
  • Check network connections and alerts. If Sysmon Event ID 3 (Network Connect) is collected, look for a connection on the same host with the same ProcessGuid. EDR can also provide process-linked connections. DNS and proxy logs can corroborate timing, but they may not identify which process made the connection. Check the alert queue for the same host and time window.
  • Illustrative verdict: Escalate WS-042 to incident response. In this example, the script block referenced an unexpected destination, a network event tied a connection to that destination to the same PowerShell process, and no related alert appeared in the reviewed window. That supports the hypothesis without proving compromise by itself. Change records and job owners accounted for the other four rows, including the inventory job that used both flags.

    Turn the finding into a Sigma-style detection

    This candidate rule narrows the search to the two long-form flags observed together, while retaining the lab's parent exclusions. It looks for a process creation pattern, not proof that the script succeeded or that there was no other alert.

    title: Windows PowerShell With Hidden Window and Encoded Command From an Unusual Parent
    status: experimental
    description: Detects the observed long-form flags in Windows PowerShell launches outside two common lab parents.
    logsource:
      category: process_creation
      product: windows
    detection:
      selection:
        Image|endswith: '\powershell.exe'
        CommandLine|contains|all:
          - '-WindowStyle Hidden'
          - '-EncodedCommand'
      parent_present:
        ParentImage|exists: true
      filter_common_parents:
        ParentImage|endswith:
          - '\explorer.exe'
          - '\services.exe'
      condition: selection and parent_present and not filter_common_parents
    level: medium
    tags:
      - attack.execution
      - attack.t1059.001
    

    Translate the rule for your SIEM and verify that it uses the intended process creation source, full image paths, and correct handling of missing or empty parent fields. In the illustrative records, both WS-042 and WS-017 should match. Keep the inventory event as a benign test case: if you need an exception, scope it to the verified job rather than excluding every launch from that parent. This rule matches a specific pattern; it does not cover all suspicious PowerShell activity.

    Building a Baseline: Know Normal Before You Hunt

    A baseline describes what is typical for a particular set of systems or accounts. It does not certify that everything common is safe or that everything rare is malicious. Build it as a loop:

  • Pick a scope. Start with successful interactive logons on office workstations. Keep servers, service accounts, and remote logons separate if their patterns differ.
  • Gather data over time. Use Windows Security Event ID 4624 records from representative workdays and weekends. Confirm that the intended hosts report consistently, and compare hours in the appropriate local time zone.
  • Document patterns. Suppose staff usually log on between 9 AM and 5 PM on workdays. Record the usual source hosts and known exceptions, such as scheduled overnight support.
  • Flag outliers. A 3 AM logon is worth checking. Verify the logon type, source host, account owner's shift, and any approved work before deciding whether it needs escalation.
  • Revisit regularly. Update the baseline when shifts, host roles, or maintenance windows change. Record why an exception was added rather than treating repeated unexplained activity as normal.
  • Threat Hunting Methodologies

    IOC-Based Hunting

    Search for known indicators of compromise: hashes, IP addresses, domain names, registry keys, and file paths. This is the most common approach but limited to known threats.

    # Hunt for known malware hash across environment
    # Using EDR search or Splunk query
    index=endpoint process_hash="malicious_md5_hash"
    | stats count by host, user
    
    # Hunt for C2 domain connections
    index=network destination_domain="malicious.com"
    | stats count by src_ip, dst_ip
    

    TTP-Based Hunting

    Search for adversary tactics, techniques, and procedures (TTPs) rather than specific IOCs. This detects novel and evasive threats that change IOCs frequently.

    Common TTPs to Hunt:

  • PowerShell without -EncodedCommand or -Command — Attackers may use alternatives to avoid pattern matching
  • DLL sideloading — Legitimate executables loading malicious DLLs
  • Alternate authentication material — NTLM hash use for Kerberos auth (over-pass-the-hash)
  • Unusual service creation patterns — Services created and immediately started
  • # Hunt for suspicious WMI lateral movement
    index=wineventlog EventCode=4688
    | search CommandLine="*wmic*process*call*"
    | stats count by ComputerName, UserName, CommandLine
    

    Hypothesis-Driven Hunting

    Form hypotheses based on the MITRE ATT&CK framework, recent threat reports, or unique aspects of the environment.

    Example Hypothesis: "Attackers may be using legitimate admin tools (living off the land) to evade detection."

    # Hunt for unusual usage of living-off-the-land binaries
    index=endpoint
    | search (process_name="powershell.exe" OR process_name="wmic.exe" OR process_name="psexec.exe")
    | where NOT parent_process IN ("explorer.exe", "services.exe")
    | stats count by host, user, process_name
    

    Intel-Driven Hunting

    Use threat intelligence feeds to drive hunting. When new TTPs or campaigns are reported, hunt for activity matching those patterns in the environment.

    Data Sources for Threat Hunting

    SourceWhat to Look For
    Windows Event LogsEvent ID 4688 (process), 4104 (PowerShell), 4624 (logon), 4698 (scheduled task)
    SysmonProcess creation (1), network connect (3), file creation (11), registry (12-14)
    EDR TelemetryProcess tree, parent-child relationships, file modifications, registry changes
    Network LogsUnusual outbound connections, DNS queries, HTTP headers, TLS certificates
    DNS LogsDGA domains, long domain names (tunneling), unusual query patterns
    Proxy LogsUser-agent anomalies, access to unusual categories, data volume
    Cloud LogsUnusual API calls, IAM changes, data access patterns, configuration changes

    Analytical Techniques

    Stack Counting

    Count occurrences to find outliers — who connects to the most unusual destinations, which systems have the most failed logins, which processes create the most child processes.

    Time-Based Analysis

    Identify activity at unusual times — if users typically work 9-5, authentication at 3 AM is suspicious.

    Baseline Comparison

    Establish normal patterns and detect deviations. This requires collecting data over time to build baselines.

    Process Tree Analysis

    Examine parent-child process relationships. A Word document spawning PowerShell spawning netcat is highly suspicious.

    Co-occurrence Analysis

    Find events that should not happen together — e.g., a web server connecting to an internal file share.

    Threat Hunting Tools Compared

    ToolWhat it does for huntingBest forCost/open-source status
    SplunkSearches, groups, and correlates indexed events using SPL.Investigating across several log sources in one search interface.Commercial; limited Splunk Enterprise Free license where offered.
    WazuhCollects and analyzes endpoint and security events as a SIEM/XDR platform.Centralizing host telemetry in a self-managed lab.Free and open source.
    VelociraptorQueries endpoints and collects host artifacts for digital forensics, incident response, and hunting.Investigating files, processes, and other host artifacts across managed endpoints.Free and open source.
    SysmonRecords Windows telemetry such as process creation and, when configured, network connections and DNS queries.Building a Windows process and network activity baseline.Free Microsoft Sysinternals utility for Windows.
    SigmaDescribes detection logic in a portable rule format that can be translated for supported backends.Sharing and versioning detection logic across SIEM platforms.Open rule format with open-source tooling.
    MITRE ATT&CKMaps observed attacker behaviors to techniques and subtechniques.Writing hypotheses and identifying detection coverage gaps.Free public knowledge base.
    Elastic Security / ELKIndexes, searches, and visualizes logs; Elastic Security adds detection and investigation workflows.Exploring centrally collected logs and building searches or dashboards.Free and paid options; licensing and open-source status vary by component and distribution.
    ZeekProduces network protocol and connection logs, including dns.log and conn.log.Investigating DNS and connection patterns where you have network visibility.Free and open source.

    The Threat Hunting Maturity Model

    LevelWhat it looks likeWhat moves you forward
    Initial / ad hocOne analyst runs occasional searches. Queries and conclusions may stay in personal notes, and log coverage is uneven.Save each hypothesis, query, data source, and outcome in a shared template.
    RepeatableThe team hunts on a schedule and can rerun saved queries, but reviews and handoffs vary.Assign owners, standardize evidence handling, and agree on when to escalate a finding.
    Defined / managedHunts have owners, priorities, peer review, and a documented path from findings to tested detections.Map tested coverage to relevant ATT&CK behaviors, prioritize gaps, and retest after changes to data collection.
    OptimizedHunt priorities reflect incidents, telemetry gaps, and detection performance. Routine data checks are automated, while analysts still judge the evidence.Keep testing existing rules, retire stale ones, and use new findings to decide where to hunt next.

    How to Learn Threat Hunting

    Learn to read system and authentication logs first, then add Sysmon to understand process activity. Next, learn Splunk's Search Processing Language (SPL) or Kusto Query Language (KQL), map observed behavior to MITRE ATT&CK, and write a Sigma rule. For your first hunt, recognizing a parent-child process relationship matters more than knowing several query languages.

    Look for TryHackMe's threat hunting rooms, defensive training in Hack The Box Academy, CyberDefenders blue-team labs, and publicly available SANS white papers on threat hunting. Use free rooms or datasets where offered; some hosted labs require payment. A Windows lab you control with Sysmon and Event Viewer is enough to start without paying for a platform.

    WeekPracticeWhat to keep
    1Read Windows authentication logs. Identify accounts, hosts, times, and logon types, then sketch a baseline.A short baseline that separates routine activity from exceptions.
    2Collect Sysmon process events. Launch a familiar program and find its parent, user, and command line in the log.An annotated process creation event that you can explain field by field.
    3Write a narrow hypothesis and test it in an SPL or KQL practice environment. Stack the results and inspect the raw records behind an outlier.A saved query, its time range, and a note on what the results do and do not show.
    4Map the observed behavior to ATT&CK and turn a useful search pattern into a Sigma rule. Check it against expected matches and routine events.A hunt report, a draft rule, and notes on what you tested.

    Real-World Example: Hunting for Empire C2

    Scenario: A threat hunter hunts for PowerShell Empire command and control activity.

  • Hypothesis: "An attacker may be using PowerShell Empire for post-exploitation in our environment"
  • Data Collection: Sysmon Event ID 4104 (PowerShell script block logging) across all endpoints
  • Hunt Query: Search for PowerShell script blocks containing Empire staging patterns ("-e AAA...AAA", long base64 strings, specific function names)
  • Findings: 5 systems show PowerShell script blocks with stage 2 Empire payload patterns
  • Investigation: Process trees show initial compromise via phishing 3 days prior
  • Response: Affected systems isolated; credential rotation for all domain accounts
  • Improvement: Detection rule created for Empire staging patterns; phishing training enhanced
  • Threat Hunting Cheat Sheet

    From hypothesis to query

    HypothesisData sourceQuery idea
    Word launched PowerShell on a workstation.Sysmon Event ID 1Match Word as ParentImage and PowerShell as Image; group by host and user.
    A staff account logged on to a workstation outside its usual shift.Windows Security Event ID 4624Select the relevant logon type and compare local logon times with the account's schedule.
    An unfamiliar process accessed LSASS.Sysmon Event ID 10 (Process Access), if collectedFilter for lsass.exe as the target and stack by SourceImage and GrantedAccess. Compare with known endpoint tools.
    PowerShell used an encoded command that is unusual for this host.Sysmon Event ID 1 and PowerShell Event ID 4104Find encoded-command markers in process records, then look for corresponding script blocks on the same host.
    A new scheduled task appeared without an approved change.Windows Security Event ID 4698, with relevant auditing enabledGroup registrations by task name and creator, then compare with deployment records.
    A workstation queried a domain that comparable hosts have not been seen querying.Zeek dns.logCount distinct source hosts per query name in the selected window and review domains seen only on the workstation.

    From suspicious pattern to triage

    Suspicious patternWhat to check
    Word spawning PowerShellFull process chain, document or user context, script block logs, and approved Office automation.
    rundll32.exe with no visible DLL argumentWhether the command line was truncated, the binary's path and signer, its parent, and image-load records if available.
    LSASS access from an unusual processSource path and signer, requested access, and whether a known security or diagnostic tool explains it.
    Base64 in a command lineWhich program passed it, whether that workflow normally uses encoded input, and what corresponding script logs show. Encoding alone is not evidence of compromise.
    3 AM logonLocal time, logon type, source host, account owner's shift, and approved overnight work.
    New scheduled taskCreator account, task action and trigger, target path, and the associated deployment or change record.

    Troubleshooting Threat Hunting Problems

    ProblemLikely causeFix
    No data in the SIEMThe source is not logging locally, forwarding is broken, or the search uses the wrong index or time range.Confirm a known event locally. Trace it through the collector to the expected index, then check permissions and timestamps.
    Too many resultsThe search spans too many hosts, event types, or days.Narrow the scope, group by the fields tied to the hypothesis, and review outlier groups before opening individual events.
    Everything looks normalAn overly broad exception or an incomplete source may be hiding important activity.Inspect a sample of excluded events and verify that your query finds a known matching record in a labeled lab dataset.
    Query is too slowBroad scans, joins, or text matching run before basic filters.Filter by time, index, source, and event type first. Extract fields or join datasets only after narrowing the results.
    False positives flood the queueThe rule catches recurring legitimate jobs without enough context to distinguish them.Validate the recurring job independently and scope the exception to its expected identity, hosts, and workflow. Retest it against known suspicious records.
    No EDR in the labThe hunt was written around data available only from an endpoint agent.Use Sysmon and Windows Event Logs. Review them with Event Viewer or PowerShell's Get-WinEvent, and rewrite the hypothesis around fields you can observe.
    Can't tell benign from maliciousOne log shows what happened but not why.Check the original event, a second source, and the system owner's records. Mark the result inconclusive or escalate credible risk rather than forcing a verdict.
    The hunt found nothingThe behavior may not have occurred in scope, or the logs may not cover it.Verify source coverage and test the search against a known match. Document "not observed" or "insufficient telemetry," whichever the evidence supports.

    Common Mistakes

  • Hunting without a hypothesis — Random data browsing is inefficient
  • Ignoring false negatives — Not finding threats doesn't mean no threats exist
  • Too much reliance on automation — Hunting requires human creativity
  • Analyzing data without context — Network traffic analysis needs endpoint correlation
  • Not acting on findings — Hunting without remediation is wasted effort
  • Not documenting methodology — Repeatable processes improve over time
  • Hunting without a baseline: Compare activity within the same host or account cohort before calling it unusual. A server maintenance window tells you little about what is normal on a staff workstation.
  • Treating every anomaly as an incident: An outlier is a lead. Corroborate it with independent evidence and follow your team's escalation criteria.
  • Copying a Sigma rule without understanding it: Check the log source, field mappings, matches, and exclusions. Read the translated query and verify what it catches before using it to create alerts.
  • Hunting on production data without approval: Get explicit approval for the systems, datasets, and permitted queries. Read-only access does not replace authorization to inspect sensitive records.
  • Best Practices

  • Use the MITRE ATT&CK framework as a hunting roadmap
  • Spend 20-30% of analyst time on proactive hunting — not just alert triage
  • Document hunt methodology — Repeatable hunts improve over time
  • Correlate multiple data sources — Network + endpoint + cloud provides full picture
  • Continuously refine hypotheses — Based on findings and new intelligence
  • Build detection rules from hunt results — Each hunt should improve detection
  • Share hunting intelligence — Within the team and with threat intelligence communities
  • Hunt on a schedule. Set a weekly cadence, even if each session focuses on one hypothesis and a small host group. Carry open questions and data gaps into the next session.
  • Peer-review every hunt. Ask another analyst to rerun the query, inspect a sample of exclusions, and check whether the evidence supports the recorded conclusion.
  • Measure coverage against MITRE ATT&CK. Map hunts and detections to the specific behaviors they test. For each mapping, record the platforms, telemetry, and validation date. One rule for a PowerShell pattern does not cover the entire subtechnique.
  • Is Threat Hunting Legal?

    Threat hunting on systems you own or are explicitly authorized to defend is legitimate security work when it stays within scope and complies with applicable privacy and data handling rules. Never hunt on systems you are not authorized to inspect. An external host appearing in your logs does not give you permission to investigate that host directly.

    Preserve the original records and analyze copies. For chain of custody, record what you collected, the source, who collected it, when it was collected in UTC, and how. Hash evidence exports at collection when practical, restrict access, and log each transfer so another person can account for the evidence.

    Keep Learning

  • SIEM Fundamentals
  • Log Analysis
  • Incident Response
  • Detection Engineering
  • Cyber Threat Intelligence Basics
  • Docker Security Best Practices: How to Secure Docker Containers and Images
  • Splunk
  • Wazuh
  • Nmap
  • Wireshark
  • Summary

    Threat hunting proactively searches for malicious activity that evades automated detection. The process involves forming hypotheses, collecting data, analyzing for anomalies, investigating findings, and improving defenses. Methodologies include IOC-based, TTP-based, hypothesis-driven, and intel-driven approaches. Threat hunting transforms SOC teams from reactive alert responders to proactive threat seekers.

    Knowledge Check

  • What is the difference between threat hunting and automated detection?
  • What are the four threat hunting methodologies?
  • Why is hypothesis formation important before hunting?
  • What is TTP-based hunting and why is it more effective than IOC-based hunting?
  • What role does the MITRE ATT&CK framework play in threat hunting?
  • What is the first step of a threat hunt?
  • Why must you build a baseline before hunting?
  • What does it mean to turn a hunt into a detection rule?
  • Answers: 1. Threat hunting is a human-led, proactive search for attacker activity that automated detection missed, while automated detection waits for alerts and rules to fire. 2. IOC-based, TTP-based, hypothesis-driven, and intel-driven hunting. 3. A hypothesis focuses the hunt on a specific, testable scenario instead of random data browsing, which makes hunts efficient and repeatable. 4. TTP-based hunting searches for adversary behaviors rather than specific indicators, and TTPs change less frequently than IOCs, so it detects novel and evasive threats. 5. MITRE ATT&CK maps adversary techniques, so hunters can test for each technique, find coverage gaps, and prioritize hunts by relevance. 6. Pick a hypothesis narrow enough to fail, with a defined behavior, host group, and time window. 7. Without a baseline you cannot tell what is unusual, so you waste the hunt rediscovering approved jobs and normal activity. 8. Express the repeatable pattern as a Sigma rule, translate it for the SIEM, and test it against known matches and routine activity before enabling alerts.

    Frequently Asked Questions

    What is threat hunting and how does it differ from incident response?

    Threat hunting proactively searches for malicious activity that has evaded automated detection, assuming compromise has already occurred. Incident response reacts to confirmed alerts. Hunting transforms security teams from passive alert responders into active threat seekers.

    What are the four main threat hunting methodologies?

    The four methodologies are IOC-based hunting (searching for known indicators), TTP-based hunting (searching for adversary behaviors), hypothesis-driven hunting (testing educated guesses), and intel-driven hunting (using threat intelligence to guide searches).

    Why is hypothesis formation important in threat hunting?

    A hypothesis focuses hunting efforts on specific, testable scenarios rather than random data browsing. Good hypotheses are based on threat intelligence, MITRE ATT&CK techniques, or organizational risk, making hunts efficient and repeatable.

    What is TTP-based hunting and why is it more effective than IOC-based?

    TTP-based hunting searches for adversary tactics and techniques rather than specific indicators like IPs or hashes. TTPs change less frequently than IOCs, so TTP-based rules detect novel and evasive threats that would bypass IOC-based detection.

    What data sources are most valuable for threat hunting?

    Key data sources include Windows Event Logs (process creation, PowerShell, logon events), Sysmon (detailed endpoint telemetry), EDR (process trees and file modifications), network logs (unusual connections), and DNS logs (tunneling and DGA detection).

    What is stack counting in threat hunting?

    Stack counting counts occurrences of events to find outliers, such as which system connects to the most unusual destinations or which process creates the most child processes. It helps identify anomalous behavior by ranking entities against their peers.

    How does threat hunting relate to the MITRE ATT&CK framework?

    MITRE ATT&CK provides a structured map of adversary techniques that serves as a hunting roadmap. Hunters can systematically test for each technique in their environment, identify coverage gaps, and prioritize hunts based on the most relevant threats to their industry.

    What is living-off-the-land (LOTL) in threat hunting?

    Living-off-the-land refers to attackers using legitimate system tools (PowerShell, WMI, PsExec) for malicious purposes. Hunting for LOTL techniques requires behavioral analysis since the tools themselves are legitimate — focus on unusual parent-child processes and execution contexts.

    What percentage of analyst time should be spent on threat hunting?

    Security experts recommend spending 20-30% of analyst time on proactive hunting rather than solely on alert triage. This investment reduces dwell time by finding threats before they trigger automated alerts, significantly improving security posture.

    How do you measure the success of a threat hunting program?

    Success metrics include mean time to detect (MTTD) improvement, number of threats found that evaded automated detection, detection rules created from hunt findings, and MITRE ATT&CK coverage percentage. Each hunt should improve organizational detection capabilities.

    How do I start threat hunting as a beginner?

    Pick one testable hypothesis, identify the logs needed to answer it, and baseline normal activity before running your first hunt in a lab. A straightforward Windows lab path is to collect process events with Sysmon and search them in Splunk Free, where available, or Wazuh.

    What is threat hunting in simple words?

    Threat hunting means looking through records of what computers and accounts have been doing to find signs of a break-in, even when no security alert has gone off.

    What is the difference between threat hunting and incident response?

    Threat hunting proactively searches for signs of a break-in without waiting for an alert. Incident response handles suspected or confirmed incidents by investigating what happened, containing the threat, and helping the organization recover. A hunt can provide the evidence that starts that response.

    What tools do I need to start threat hunting?

    A useful starter set is Sysmon for Windows process logs, a SIEM such as Splunk Free where available or Wazuh to search them, and MITRE ATT&CK to look up attacker behaviors. You do not need paid tools to learn.

    Do I need a SIEM to do threat hunting?

    No. On one Windows lab host, you can collect Sysmon events and search them in Event Viewer or with PowerShell's Get-WinEvent. A SIEM helps you scale by collecting and correlating logs across hosts and data sources.

    Continue Learning

    Security Operations · Intermediate

    How to Analyze Logs: A Beginner's Guide to Linux, Windows & Web Log Analysis

    Learn how to analyze logs step by step: read Linux and Windows logs, search with grep and journalctl, and investigate a real brute-force attack in auth.log.

    Security Operations · Advanced

    Detection Engineering: Creating Security Alerts and Rules

    Learn detection engineering principles including rule development, Sigma rules, testing methodologies, false positive management, and building a detection program for security operations.

    Security Operations · Advanced

    Digital Forensics Basics: Collecting and Analyzing Evidence

    Learn digital forensics fundamentals including evidence collection, forensic imaging, memory analysis, timeline analysis, and proper chain of custody procedures for investigations.

    Security Operations · Advanced

    Incident Response: Structured Approach to Security Breaches

    Learn the incident response lifecycle including preparation, detection, containment, eradication, recovery, and lessons learned with practical frameworks and real-world scenarios.

    Related Security Tools

    Information Gathering

    Nmap

    Learn how to use Nmap, the free open-source network scanner: run your first port scan, discover live hosts, detect services and operating systems, and check for vulnerabilities with NSE scripts — a beginner tutorial for Kali Linux.

    Sniffing & Spoofing

    Wireshark

    Wireshark tutorial for beginners: capture packets, read the three panes, filter traffic and follow TCP streams — a hands-on guide to the world's foremost network protocol analyzer.

    Information Gathering

    Shodan CLI

    The Shodan Command-Line Interface allows you to interact with the Shodan search engine database directly from the terminal to query internet-connected assets and vulnerability data feeds.

    Exploitation

    MSFVenom

    MSFVenom is a standalone payload generator and encoder utility within the Metasploit Framework, first introduced in Metasploit 4.0 (2015) to replace the legacy msfpayload and msfencode tools with a single unified interface. It enables security professionals, penetration testers, and students to create, customize, and encode payloads for multiple platforms including Windows, Linux, macOS, Android, and PHP. MSFVenom is widely used in CTF competitions, security training labs, authorized penetration testing engagements, and red team operations to generate reverse shells, Meterpreter payloads, shellcode, and encoded executables. Understanding MSFVenom helps both offensive and defensive security professionals learn payload construction techniques, encoding methods, and detection strategies used in modern cybersecurity.

    Written by GO KALI FREE Team