MODULE 5
π‘οΈ Certified SOC Analyst Level 2
Proactive Threat Detection and Threat Hunting
Module Introduction
Welcome to Module Five of your Certified Security Operations Centre Analyst Level 2 course! In this module, we will explore proactive threat detection and threat hunting. You will learn how to stay ahead of attackers by proactively hunting for threats.
Think of threat hunting as cybersecurity detective work. Instead of waiting for alerts, hunters actively search for signs of compromise. By the end of this module, you will be able to conduct threat hunts using various tools and frameworks.
π‘ What you will learn: Threat intelligence fundamentals, types, and strategies, threat intelligence sources and platforms (TIP), threat intelligence-driven SOC operations, threat hunting significance and frameworks, threat hunting with PowerShell, YARA, and hunting tools, structured and unstructured threat hunting, and data transformation techniques.
Learning Objectives
By the end of this module, you will be able to:
- Understand threat intelligence fundamentals.
- Identify threat intelligence sources and platforms.
- Apply threat intelligence in SOC operations.
- Understand threat hunting significance and frameworks.
- Use PowerShell, YARA, and other tools for threat hunting.
- Apply structured and unstructured threat hunting.
- Use data transformation techniques.
Warmβup Story
Chuka's Threat Hunting Discovery
Chuka was a Tier 2 SOC analyst at a bank in Lagos. He noticed that traditional alerting was not catching all threats. He decided to start threat hunting.
He used threat intelligence to guide his hunts. He used PowerShell to search for suspicious activity on endpoints. He used YARA rules to identify malware. His proactive hunting uncovered a persistent threat that had evaded detection.
Chuka's efforts prevented a major data breach. He learned that threat hunting is essential for staying ahead of attackers.
Main Lessons
Lesson 1: Threat Intelligence Fundamentals
Definition: Threat intelligence is information about threats that helps organizations defend against them.
Why it is important: Threat intelligence provides context about threats, enabling proactive defense.
- Realβlife example: A company uses threat intelligence to identify new ransomware variants.
- School example: A school uses threat intelligence to protect student data.
- Home example: A family uses threat intelligence to avoid phishing scams.
- Nigerian example: A bank uses threat intelligence to detect fraud.
π Mini summary: Threat intelligence provides information about threats, enabling proactive defense.
Lesson 2: Types of Threat Intelligence
Definition: Threat intelligence can be categorized into different types.
- Strategic: High-level insights for decision-makers.
- Tactical: Information about attacker tactics, techniques, and procedures (TTPs).
- Operational: Specific threat information.
- Technical: Indicators of compromise (IoCs).
π Mini summary: Threat intelligence types include strategic, tactical, operational, and technical.
Lesson 3: Threat Intelligence Sources
Definition: Threat intelligence sources are places where threat intelligence is obtained.
- Open-source intelligence (OSINT): Publicly available information.
- Commercial intelligence: Paid threat intelligence feeds.
- Information sharing: Sharing intelligence with other organizations.
- Government sources: Intelligence from government agencies.
π Mini summary: Threat intelligence sources include OSINT, commercial intelligence, information sharing, and government sources.
Lesson 4: Threat Intelligence Platforms (TIP)
Definition: A Threat Intelligence Platform (TIP) is a tool that collects, analyzes, and shares threat intelligence.
- Functions:
- Collection: Gather intelligence from various sources.
- Analysis: Analyze intelligence to identify threats.
- Sharing: Share intelligence with other systems.
- Integration: Integrate with SIEM and other tools.
- Examples:
- MISP: Open-source threat intelligence platform.
- Anomali: Commercial threat intelligence platform.
- ThreatConnect: Commercial threat intelligence platform.
π Mini summary: Threat Intelligence Platforms collect, analyze, and share threat intelligence.
Lesson 5: Threat Intelligence-Driven SOC Operations
Definition: Threat intelligence-driven SOC operations use intelligence to guide detection and response.
- Steps:
- Collect: Gather intelligence.
- Analyze: Identify threats.
- Prioritize: Focus on the most critical threats.
- Respond: Take action to mitigate threats.
- Learn: Use insights to improve.
π Mini summary: Threat intelligence-driven SOC operations use intelligence to guide detection and response.
Lesson 6: Threat Hunting Significance
Definition: Threat hunting is the proactive search for threats that have evaded detection.
Why it is important: Threat hunting helps organizations find and eliminate threats before they cause damage.
- Benefits:
- Proactive: Find threats before they cause damage.
- Early detection: Catch threats early.
- Improved response: Enhance incident response.
- Continuous improvement: Improve security posture.
π Mini summary: Threat hunting is the proactive search for threats, enabling early detection and improved response.
Lesson 7: Threat Hunting Frameworks
Definition: Threat hunting frameworks provide structured approaches to hunting.
- MITRE ATT&CK: Provides a common language for describing threats.
- Cyber Kill Chain: Describes the stages of an attack.
- Diamond Model: Analyzes adversary activity.
π Mini summary: Threat hunting frameworks include MITRE ATT&CK, Cyber Kill Chain, and the Diamond Model.
Lesson 8: Threat Hunting with PowerShell
Definition: PowerShell is a powerful tool for threat hunting on Windows systems.
- Commands:
- Get-Process: List running processes.
- Get-Service: List services.
- Get-EventLog: View event logs.
- Get-WinEvent: Query event logs.
Get-Process
Get-WinEvent -LogName Security | Where-Object { $_.Id -eq 4624 }
π Mini summary: PowerShell is a powerful tool for threat hunting on Windows systems.
Lesson 9: Threat Hunting with YARA
Definition: YARA is a tool for identifying malware based on patterns in files or processes.
- YARA rules: Define patterns to search for.
- Applications:
- Malware detection: Identify malware.
- Threat hunting: Search for threats.
- Incident response: Investigate incidents.
rule SilentBanker {
meta:
description = "Detects SilentBanker malware"
strings:
$a = {6A 40 68 00 30 00 00 6A 14 8D 91}
$b = "SilentBanker"
condition:
$a or $b
}
π Mini summary: YARA is a tool for identifying malware based on patterns in files or processes.
Lesson 10: Structured and Unstructured Threat Hunting
Definition: Threat hunting can be structured or unstructured.
- Structured: Following a defined methodology (e.g., MITRE ATT&CK).
- Unstructured: Ad-hoc searching based on intuition.
π Mini summary: Structured threat hunting follows a defined methodology, while unstructured hunting is ad-hoc.
Lesson 11: Data Transformation Techniques
Definition: Data transformation techniques convert data into a format suitable for analysis.
- Normalization: Standardizing data formats.
- Enrichment: Adding context to data.
- Aggregation: Summarizing data.
- Filtering: Removing irrelevant data.
π Mini summary: Data transformation techniques include normalization, enrichment, aggregation, and filtering.
Lesson 12: Threat Hunting Best Practices
Definition: Best practices for effective threat hunting.
- Use threat intelligence: Guide hunts with intelligence.
- Use frameworks: Apply MITRE ATT&CK and other frameworks.
- Collaborate: Work with other analysts.
- Document findings: Record what you find.
- Continuously improve: Learn from each hunt.
π Mini summary: Best practices for threat hunting include using threat intelligence, using frameworks, collaborating, documenting findings, and continuously improving.
Key Vocabulary
Threat Intelligence: Information about threats.
TTPs: Tactics, Techniques, and Procedures.
IoCs: Indicators of Compromise.
OSINT: Open-Source Intelligence.
TIP: Threat Intelligence Platform.
Threat Hunting: Proactive search for threats.
YARA: A tool for identifying malware.
MITRE ATT&CK: A knowledge base of adversary tactics and techniques.
Data Transformation: Converting data into a suitable format.
Enrichment: Adding context to data.
Important Concepts
- Threat intelligence provides information about threats.
- Threat intelligence platforms collect, analyze, and share intelligence.
- Threat intelligence-driven SOC operations use intelligence to guide detection and response.
- Threat hunting is the proactive search for threats.
- MITRE ATT&CK provides a common language for describing threats.
- PowerShell and YARA are powerful tools for threat hunting.
Step-by-Step Explanations
How to Conduct a Threat Hunt
- Define the scope and objectives.
- Formulate a hypothesis.
- Gather data from multiple sources.
- Analyze the data.
- Investigate findings.
- Document the findings.
- Take action.
How to Use MITRE ATT&CK for Hunting
- Identify the threat you are hunting for.
- Map the threat to MITRE ATT&CK tactics and techniques.
- Create detection rules based on the mapping.
- Search for evidence of the techniques.
- Investigate and respond to findings.
Real-Life Examples
- In a business: A company uses threat hunting to detect APTs.
- In a school: A school uses threat hunting to protect student data.
- In a hospital: A hospital uses threat hunting to protect patient data.
- In Nigeria: A bank uses threat hunting to detect fraud.
Nigerian Examples
- A bank in Lagos uses threat hunting to detect APTs.
- A telecom company in Abuja uses MITRE ATT&CK for hunting.
- A hospital in Kano uses threat hunting to protect patient data.
- A government agency in Enugu uses threat intelligence.
Fun Examples Children Can Relate To
- A detective searching for clues (threat hunting).
- A security guard patrolling a building (proactive defense).
- A spy gathering intelligence (threat intelligence).
- A detective using a magnifying glass (YARA).
Everyday Examples
- Searching for lost keys (threat hunting).
- Checking your home for intruders (proactive defense).
- Gathering information about a potential threat (threat intelligence).
- Using a magnifying glass (YARA).
Teacher Notes
- Emphasize the importance of proactive defense.
- Use real-world examples to illustrate concepts.
- Discuss the role of MITRE ATT&CK in threat hunting.
- Encourage students to practice threat hunting.
Parent Tips
- Help your child understand the importance of proactive security.
- Discuss how to search for threats.
- Encourage them to think about threat intelligence.
- Support their interest in cybersecurity careers.
Interesting Facts
- Threat hunting was first introduced in the 2010s.
- MITRE ATT&CK was first released in 2013.
- YARA was created by Victor M. Alvarez in 2011.
- PowerShell was first released in 2006.
Did You Know?
Did you know? Threat hunting can detect threats that have been active for months.
Did you know? MITRE ATT&CK is updated regularly with new techniques.
Did you know? YARA is used by many antivirus companies.
Remember This
- Threat intelligence provides information about threats.
- Threat intelligence platforms collect, analyze, and share intelligence.
- Threat hunting is the proactive search for threats.
- MITRE ATT&CK provides a common language for describing threats.
- PowerShell and YARA are powerful tools for threat hunting.
Common Mistakes
- Not using threat intelligence: Intelligence guides hunts.
- Not using frameworks: Frameworks provide structure.
- Not documenting findings: Without documentation, you cannot learn.
- Not collaborating: Hunting alone is less effective.
- Not continuously improving: Learning is essential.
Best Practices
- Use threat intelligence.
- Use frameworks.
- Collaborate with other analysts.
- Document findings.
- Continuously improve.
Comparison: Threat Intelligence Types
| Type | Description | Audience |
| Strategic | High-level insights | Decision-makers |
| Tactical | TTPs | Analysts |
| Operational | Specific threat information | Operators |
| Technical | IoCs | Technical staff |
Comparison: Structured vs Unstructured Hunting
| Feature | Structured | Unstructured |
| Methodology | Defined | Ad-hoc |
| Consistency | High | Low |
| Best for | Large organizations | Small teams |
End-of-Module Summary
Congratulations! You have completed Module Five. You now know:
- Threat intelligence fundamentals, types, and sources.
- Threat intelligence platforms (TIP).
- Threat intelligence-driven SOC operations.
- Threat hunting significance and frameworks.
- Threat hunting with PowerShell and YARA.
- Structured and unstructured threat hunting.
- Data transformation techniques.
- Best practices for threat hunting.
You are now ready to move on to Module Six, where you will learn about Incident Response and Investigation.
Frequently Asked Questions
- What is threat intelligence? Information about threats.
- What are TTPs? Tactics, Techniques, and Procedures.
- What are IoCs? Indicators of Compromise.
- What is OSINT? Open-Source Intelligence.
- What is a TIP? Threat Intelligence Platform.
- What is threat hunting? Proactive search for threats.
- What is YARA? A tool for identifying malware.
- What is MITRE ATT&CK? A knowledge base of adversary tactics and techniques.
- What is data transformation? Converting data into a suitable format.
- What is enrichment? Adding context to data.
Review Questions
- What is threat intelligence?
- What are the types of threat intelligence?
- What are threat intelligence sources?
- What is a threat intelligence platform?
- What is threat hunting?
- What are threat hunting frameworks?
- What is PowerShell used for in threat hunting?
- What is YARA used for?
- What is the difference between structured and unstructured hunting?
- What are data transformation techniques?
- What is the difference between strategic and tactical intelligence?
- What is the difference between OSINT and commercial intelligence?
- What is the role of threat intelligence in SOC operations?
- What are the best practices for threat hunting?
- How do you conduct a threat hunt?
Fill-in-the-Blank Exercises
- __________ is information about threats.
- __________ are Tactics, Techniques, and Procedures.
- __________ are Indicators of Compromise.
- __________ stands for Open-Source Intelligence.
- A __________ is a Threat Intelligence Platform.
- __________ is the proactive search for threats.
- __________ is a tool for identifying malware.
- __________ is a knowledge base of adversary tactics and techniques.
- __________ converts data into a suitable format.
- __________ adds context to data.
True or False
- Threat intelligence is not important. (False)
- TTPs are tactics, techniques, and procedures. (True)
- IoCs are indicators of compromise. (True)
- OSINT is not a threat intelligence source. (False)
- A TIP collects and analyzes threat intelligence. (True)
- Threat hunting is reactive. (False)
- YARA is a tool for identifying malware. (True)
- MITRE ATT&CK is a commercial tool. (False)
- Data transformation is not important. (False)
- Enrichment adds context to data. (True)
Multiple Choice Questions
- What is threat intelligence?
a) Information about threats b) A type of software c) A hardware device d) A threat
Answer: a
- What are TTPs?
a) Tactics, Techniques, and Procedures b) A type of software c) A hardware device d) A threat
Answer: a
- What are IoCs?
a) Indicators of Compromise b) A type of software c) A hardware device d) A threat
Answer: a
- What is OSINT?
a) Open-Source Intelligence b) A type of software c) A hardware device d) A threat
Answer: a
- What is a TIP?
a) A Threat Intelligence Platform b) A type of software c) A hardware device d) A threat
Answer: a
- What is threat hunting?
a) Proactive search for threats b) A type of software c) A hardware device d) A threat
Answer: a
- What is YARA?
a) A tool for identifying malware b) A type of software c) A hardware device d) A threat
Answer: a
- What is MITRE ATT&CK?
a) A knowledge base of adversary tactics and techniques b) A type of software c) A hardware device d) A threat
Answer: a
- What is data transformation?
a) Converting data into a suitable format b) A type of software c) A hardware device d) A threat
Answer: a
- What is enrichment?
a) Adding context to data b) A type of software c) A hardware device d) A threat
Answer: a
- What is the difference between strategic and tactical intelligence?
a) Strategic is high-level; tactical is detailed b) They are the same c) Tactical is high-level; strategic is detailed d) None
Answer: a
- What is the difference between OSINT and commercial intelligence?
a) OSINT is free; commercial is paid b) They are the same c) Commercial is free; OSINT is paid d) None
Answer: a
- What is the role of threat intelligence in SOC operations?
a) It guides detection and response b) It is not important c) It only generates alerts d) None
Answer: a
- What are the best practices for threat hunting?
a) Use threat intelligence, use frameworks, collaborate, document findings, continuously improve b) Only use threat intelligence c) Only use frameworks d) None
Answer: a
- How do you conduct a threat hunt?
a) Define scope, formulate a hypothesis, gather data, analyze, investigate, document, take action b) Only define scope c) Only gather data d) None
Answer: a
Matching Exercises
Match the term on the left with its description on the right.
| Term | Description |
| 1. Threat Intelligence | A. Proactive search for threats |
| 2. Threat Hunting | B. Information about threats |
| 3. MITRE ATT&CK | C. Tool for identifying malware |
| 4. YARA | D. Knowledge base of adversary tactics and techniques |
| 5. TIP | E. Threat Intelligence Platform |
Answers: 1-B, 2-A, 3-D, 4-C, 5-E
Short Answer Questions
- What is the difference between strategic and tactical intelligence?
- What is the difference between OSINT and commercial intelligence?
- What is the role of threat intelligence in SOC operations?
- What are the best practices for threat hunting?
- How do you conduct a threat hunt?
Scenario-Based Exercises
- Scenario: You are a SOC analyst. You want to start threat hunting. What steps would you take?
- Scenario: You have received threat intelligence about a new attack campaign. How would you use it?
- Scenario: You have identified a potential threat. How would you investigate it?
Group Activity
In groups of 3-4, conduct a mock threat hunt. Develop a hypothesis, gather data, and analyze it. Present your findings to the class.
Individual Activity
Write a one-page report on a threat hunting case study. Include the hypothesis, methodology, findings, and lessons learned.
Classroom Discussion Questions
- Why is threat hunting important for SOCs?
- What are the challenges of threat hunting?
- How can organizations integrate threat intelligence?
- What is the role of MITRE ATT&CK in threat hunting?
- How can organizations improve their threat hunting capabilities?
Mini Project
Project: "Threat Hunting Plan." Create a threat hunting plan for a fictional organization. Include objectives, methodologies, data sources, and tools. Present your plan to the class.
Practical Assignment
Create a threat hunting plan for a specific threat (e.g., ransomware). Include the hypothesis, data sources, and steps to investigate.
Challenge Exercise
Research a real-world threat hunting case study. Write a one-page summary of the case study and what was learned.
Quiz Answers
Fill-in-the-Blank Answers:
- Threat intelligence
- TTPs
- IoCs
- OSINT
- TIP
- Threat hunting
- YARA
- MITRE ATT&CK
- Data transformation
- Enrichment
True or False Answers: 1-F, 2-T, 3-T, 4-F, 5-T, 6-F, 7-T, 8-F, 9-F, 10-T
Key Takeaways
- Threat intelligence provides information about threats.
- Threat intelligence platforms collect, analyze, and share intelligence.
- Threat hunting is the proactive search for threats.
- MITRE ATT&CK provides a common language for describing threats.
- PowerShell and YARA are powerful tools for threat hunting.
Preparation for the Next Module
In Module Six, you will learn about Incident Response and Investigation. You will explore incident response processes, playbooks, and tools.