0Pricing
Cloud & IT Cert Prep · Lesson

Threat Hunting Methodology and Hypothesis Generation

Develop structured hunt hypotheses based on threat intelligence, the MITRE ATT&CK framework, and environmental baselines to guide proactive investigations.

Threat Hunting Methodology and Hypothesis Generation is a free Cloud & IT Cert Prep lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cloud & IT Cert Prep learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What Is Threat Hunting?

Threat hunting is the proactive, human-led process of searching through networks and endpoints for adversaries who have bypassed existing security controls. Unlike reactive security (waiting for alerts), threat hunters actively look for signs of compromise using intelligence-driven hypotheses. Threat hunting assumes that some attackers are already inside the environment but have not yet been detected by automated tools.

Reactive vs Proactive Security

Traditional security operations are largely reactive — analysts respond to alerts generated by SIEMs, EDR tools, and firewalls. Threat hunting is fundamentally proactive: hunters look for threats that may not generate alerts because attackers are using legitimate tools or have evaded detection rules. Both approaches are necessary; hunting closes the gap for advanced threats that blend into normal activity.

The Threat Hunting Hypothesis

Every hunt begins with a hypothesis — a testable statement about adversary behavior in the environment. A good hypothesis is specific, intelligence-driven, and falsifiable. Example: 'An attacker with domain credentials may be using PowerShell remoting to move laterally between workstations in the sales subnet.' The hypothesis drives what data to collect, what queries to run, and what indicators to search for.

# Hypothesis structure template:
# Technique: Lateral Movement via PowerShell Remoting
# Source: MITRE ATT&CK T1021.006 (Remote Services: WinRM)
# Trigger: Recent spear phishing campaign targeting sales team
# Environment: Windows workstations in VLAN 10

# Testable prediction:
# 'We expect to see winrm connections (port 5985/5986)
#  between workstations that do NOT normally communicate'

MITRE ATT&CK as a Hypothesis Source

The MITRE ATT&CK framework is the most widely used source for threat hunting hypotheses. It catalogs Tactics, Techniques, and Procedures (TTPs) used by real threat actors, organized by attack phase (Initial Access, Execution, Persistence, Lateral Movement, etc.). Hunters use ATT&CK to identify which techniques are most likely given the current threat landscape and their specific environment's exposed attack surface.

# Common MITRE ATT&CK hunt hypotheses:
# T1059.001: PowerShell used for malicious execution
#   -> Hunt: encoded PowerShell commands, unusual parent processes

# T1003.001: LSASS Memory dumping (credential theft)
#   -> Hunt: processes accessing lsass.exe memory

# T1055: Process injection
#   -> Hunt: unusual memory allocations, remote thread creation

# T1071.001: Web protocols for C2 communication
#   -> Hunt: unusual HTTP/HTTPS to new or rare external domains

Threat Intelligence as a Hunt Trigger

Threat intelligence feeds provide the external context that triggers relevant hunt hypotheses. An intelligence report about a ransomware group targeting your sector, or an IoC feed containing newly identified C2 domains, can directly inspire a hunt. Hunters check whether those IoCs appear in logs, whether the described techniques have been used in the environment, and whether any systems have communicated with reported malicious infrastructure.

Baseline Deviation as a Hunt Trigger

A second source of hunt hypotheses is environmental baseline deviation. By understanding what normal looks like — which accounts log in at night, which servers make DNS requests, which processes typically run on workstations — hunters identify anomalies worth investigating. Baseline hunting requires prior data collection and baselining efforts, but catches sophisticated attackers who avoid known-bad signatures by staying close to normal behavior.

# Baseline deviation hunt examples:
# - Account 'serviceacct01' normally logs in M-F 8am-6pm
#   ANOMALY: Login at 2:47am on Saturday

# - Workstation WS-0042 sends avg 50MB/day outbound
#   ANOMALY: 4.7GB outbound transfer at 11pm

# - Process 'svchost.exe' always spawned by services.exe
#   ANOMALY: svchost.exe spawned by winword.exe

The Hunting Loop: Hunt, Detect, Improve

Effective threat hunting follows a continuous loop. Plan: formulate a hypothesis. Hunt: query logs and telemetry to test the hypothesis. Analyze: investigate findings and determine if malicious activity exists. Respond: escalate confirmed threats to the IR team. Improve: convert successful hunts into automated detection rules so the same technique triggers alerts in the future — improving the SOC without requiring manual hunts every time.

Data Sources for Threat Hunting

Effective hunting requires rich telemetry. Key data sources include EDR telemetry (process creation, file writes, network connections from every endpoint), authentication logs (Active Directory, SAML, VPN), DNS query logs (detect DGA domains and tunneling), network flow data (NetFlow, zeek logs), and cloud audit logs (AWS CloudTrail, Azure Activity Log). The more telemetry, the more hunting visibility.

Tools for Threat Hunting

Threat hunters use several tool categories. SIEM platforms (Splunk, Microsoft Sentinel) provide log aggregation and query interfaces. EDR platforms (CrowdStrike, SentinelOne) offer endpoint telemetry and live querying. Specialized hunting tools like Velociraptor enable live response and artifact collection from remote endpoints at scale. Jupyter Notebooks are commonly used for ad-hoc data analysis during complex hunts.

# Example Splunk hunt query (PowerShell encoding):
# index=winlogbeat EventCode=4688
# CommandLine=*-EncodedCommand*
# | stats count by ComputerName, User, CommandLine
# | where count > 3
# | sort - count

# Looks for encoded PowerShell commands executed
# more than 3 times, which is unusual for normal users

Documenting Hunt Results

Every hunt — successful or not — should be documented. A hunt report captures the hypothesis, data sources queried, queries used, findings, and outcome. Negative results (hypothesis not confirmed) are valuable because they demonstrate coverage and help refine future hypotheses. Positive findings generate incident tickets and, ideally, new detection rules. Documentation builds institutional knowledge and demonstrates the value of the hunting program to leadership.

Maturing the Hunting Program

A mature threat hunting program evolves through levels of capability. Level 0: relying entirely on automated alerts. Level 1: basic manual hunts using ad-hoc queries. Level 2: structured hypotheses from ATT&CK and intelligence. Level 3: hunts produce automated detections, hunter teams specialize, and threat models are updated continuously. Organizations should measure mean dwell time reduction as a key metric of hunting program effectiveness.

Quick Check

Test your understanding of CompTIA Security+ (SY0-701) concepts from this lesson.

Lesson Recap

In this lesson you learned: threat hunting is proactive investigation that assumes some attackers have already bypassed detection, hypotheses are generated from MITRE ATT&CK, threat intelligence, and baseline deviations, and successful hunts produce automated detection rules that continuously improve the SOC's detection capability. Next up we explore SIEM architecture — the platform that provides the log aggregation and correlation needed to support hunts.

Frequently asked questions

Is the “Threat Hunting Methodology and Hypothesis Generation” lesson free?

Yes — the full text of “Threat Hunting Methodology and Hypothesis Generation” is free to read here on the web, and the Cloud & IT Cert Prep course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cloud & IT Cert Prep course, upgrade to CoddyKit PRO.

What will I learn in “Threat Hunting Methodology and Hypothesis Generation”?

Develop structured hunt hypotheses based on threat intelligence, the MITRE ATT&CK framework, and environmental baselines to guide proactive investigations. You practise Cloud & IT Cert Prep with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cloud & IT Cert Prep?

No prior experience is required. Cloud & IT Cert Prep on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Threat Hunting Methodology and Hypothesis Generation” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cloud & IT Cert Prep lesson?

Yes. Every Cloud & IT Cert Prep lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Threat Hunting Methodology and Hypothesis Generation
  2. SIEM Architecture: Log Ingestion, Parsing, and Correlation
  3. Writing SIEM Detection Rules and Alerts
  4. UEBA and Behavioral Analytics for Insider Threats
← Back to Cloud & IT Cert Prep