MODULE 7
π‘οΈ Certified SOC Analyst Level 2
Forensics Investigation and Malware Analysis
Module Introduction
Welcome to Module Seven of your Certified Security Operations Centre Analyst Level 2 course! In this module, we will explore forensics investigation and malware analysis. You will learn how to investigate incidents, analyze malware, and recover evidence.
Think of forensics as cybersecurity detective work. By the end of this module, you will be able to conduct forensic investigations and analyze malware.
π‘ What you will learn: Forensic investigation fundamentals, investigating network, application, email, and insider incidents, malware analysis (static and dynamic), memory analysis with Volatility, triage artifact collection with KAPE, and incident response with Velociraptor.
Learning Objectives
By the end of this module, you will be able to:
- Understand forensic investigation fundamentals.
- Investigate network, application, email, and insider incidents.
- Perform static and dynamic malware analysis.
- Use Volatility for memory analysis.
- Collect triage artifacts with KAPE.
- Use Velociraptor for incident response.
Warmβup Story
Ngozi's Forensics Investigation
Ngozi was a Tier 2 SOC analyst at a bank in Lagos. She received an alert about a potential malware infection. She started a forensic investigation.
She used Volatility to analyze memory dumps and identify malicious processes. She used KAPE to collect triage artifacts. She used Velociraptor to investigate endpoints. Her investigation revealed a new malware variant.
Ngozi's forensic skills helped the team contain the incident. She learned that forensics is essential for incident response.
Main Lessons
Lesson 1: Forensic Investigation Fundamentals
Definition: Forensic investigation is the process of collecting, preserving, and analyzing digital evidence.
Why it is important: Forensics helps organizations understand what happened and gather evidence for legal proceedings.
- Realβlife example: A company uses forensics to investigate a data breach.
- School example: A school uses forensics to investigate a cyber incident.
- Home example: A family uses forensics to investigate a security incident.
- Nigerian example: A bank uses forensics to investigate fraud.
π Mini summary: Forensic investigation is the process of collecting, preserving, and analyzing digital evidence.
Lesson 2: Investigating Network Incidents
Definition: Network forensics involves analyzing network traffic to identify malicious activity.
- Steps:
- Capture: Capture network packets.
- Analyze: Analyze packet data.
- Correlate: Correlate with other evidence.
- Report: Document findings.
π Mini summary: Network forensics involves capturing and analyzing network packets to identify malicious activity.
Lesson 3: Investigating Application Incidents
Definition: Application forensics involves analyzing application logs and data to identify malicious activity.
- Steps:
- Collect: Collect application logs.
- Analyze: Analyze log data.
- Correlate: Correlate with other evidence.
- Report: Document findings.
π Mini summary: Application forensics involves analyzing application logs to identify malicious activity.
Lesson 4: Investigating Email Incidents
Definition: Email forensics involves analyzing email traffic and content to identify malicious activity.
- Steps:
- Collect: Collect email logs and content.
- Analyze: Analyze email data.
- Correlate: Correlate with other evidence.
- Report: Document findings.
π Mini summary: Email forensics involves analyzing email traffic and content to identify malicious activity.
Lesson 5: Investigating Insider Incidents
Definition: Insider forensics involves investigating malicious activity from within the organization.
- Steps:
- Collect: Collect user activity logs.
- Analyze: Analyze user behavior.
- Correlate: Correlate with other evidence.
- Report: Document findings.
π Mini summary: Insider forensics involves investigating malicious activity from within the organization.
Lesson 6: Malware Analysis β Static Analysis
Definition: Static analysis involves examining malware without executing it.
- Steps:
- File properties: Examine file metadata.
- Strings: Extract human-readable strings.
- Code analysis: Disassemble the code.
- Tools: PeStudio, IDA.
π Mini summary: Static analysis examines malware without executing it, using file properties, strings, and code analysis.
Lesson 7: Malware Analysis β Dynamic Analysis
Definition: Dynamic analysis involves executing malware in a sandbox to observe its behavior.
- Steps:
- Sandbox: Execute malware in a sandbox.
- Behavior: Observe file system, registry, and network activity.
- Tools: Process Explorer, Process Monitor, Wireshark.
π Mini summary: Dynamic analysis executes malware in a sandbox to observe its behavior.
Lesson 8: Memory Analysis with Volatility
Definition: Volatility is a framework for analyzing memory dumps.
- Commands:
- pslist: List processes.
- netscan: List network connections.
- cmdline: List command-line arguments.
- dlllist: List loaded DLLs.
vol.py -f memory.dump --profile=Win10x86_19041 pslist
vol.py -f memory.dump --profile=Win10x86_19041 netscan
π Mini summary: Volatility is a framework for analyzing memory dumps, with commands like pslist, netscan, and cmdline.
Lesson 9: Triage Artifact Collection with KAPE
Definition: KAPE (Kroll Artifact Parser and Extractor) is a tool for collecting and parsing forensic artifacts.
- Features:
- Collection: Collect triage artifacts.
- Parsing: Parse collected artifacts.
- Automation: Automate collection and parsing.
- Use cases:
- Incident response: Quickly collect evidence.
- Forensic analysis: Parse collected artifacts.
π Mini summary: KAPE is a tool for collecting and parsing forensic artifacts, useful for incident response.
Lesson 10: Incident Response with Velociraptor
Definition: Velociraptor is a tool for incident response and digital forensics.
- Features:
- Collection: Collect forensic artifacts.
- Analysis: Analyze collected data.
- Response: Respond to incidents.
- Use cases:
- Incident response: Investigate and respond to incidents.
- Forensic analysis: Conduct forensic analysis.
π Mini summary: Velociraptor is a tool for incident response and digital forensics.
Key Vocabulary
Forensic Investigation: Collecting, preserving, and analyzing digital evidence.
Static Analysis: Examining malware without executing it.
Dynamic Analysis: Executing malware in a sandbox.
Volatility: A memory forensics framework.
KAPE: A tool for collecting and parsing forensic artifacts.
Velociraptor: A tool for incident response and digital forensics.
Sandbox: A controlled environment for executing malware.
Memory Dump: A snapshot of system memory.
Triage Artifacts: Key evidence collected quickly.
Chain of Custody: A record of evidence handling.
Important Concepts
- Forensic investigation collects, preserves, and analyzes digital evidence.
- Network, application, email, and insider incidents require different forensic approaches.
- Static analysis examines malware without execution.
- Dynamic analysis executes malware in a sandbox.
- Volatility is a memory forensics framework.
- KAPE collects and parses forensic artifacts.
- Velociraptor is used for incident response and forensics.
Step-by-Step Explanations
How to Perform Static Analysis
- Identify the malware file.
- Check file properties (size, creation date).
- Extract strings from the file.
- Analyze the file structure using PeStudio.
- Disassemble the file using IDA.
How to Perform Dynamic Analysis
- Set up a sandbox environment.
- Execute the malware in the sandbox.
- Monitor file system, registry, and network activity.
- Use Process Monitor and Process Explorer.
- Capture network traffic with Wireshark.
Real-Life Examples
- In a business: A company uses Volatility to analyze memory dumps.
- In a school: A school uses KAPE to collect triage artifacts.
- In a hospital: A hospital uses Velociraptor for incident response.
- In Nigeria: A bank uses forensics to investigate fraud.
Nigerian Examples
- A bank in Lagos uses Volatility for memory analysis.
- A telecom company in Abuja uses KAPE for triage.
- A hospital in Kano uses Velociraptor for incident response.
- A government agency in Enugu uses forensics for investigations.
Fun Examples Children Can Relate To
- A detective examining clues (forensics).
- A scientist studying a virus (malware analysis).
- A security guard watching cameras (network forensics).
- A librarian organizing books (KAPE).
Everyday Examples
- Examining a suspicious email (email forensics).
- Running a program in a virtual machine (dynamic analysis).
- Checking your bank account for fraud (network forensics).
- Organizing your files (KAPE).
Teacher Notes
- Emphasize the importance of forensics in incident response.
- Use real-world examples to illustrate concepts.
- Discuss the role of Volatility, KAPE, and Velociraptor.
- Encourage students to practice with forensic tools.
Parent Tips
- Help your child understand the importance of forensics.
- Discuss how to investigate digital evidence.
- Encourage them to think about forensic careers.
- Support their interest in cybersecurity.
Interesting Facts
- Volatility is used by many forensic investigators.
- KAPE was developed by Kroll.
- Velociraptor is open-source.
- Static analysis is often the first step in malware analysis.
Did You Know?
Did you know? Volatility can analyze memory dumps from Windows, Linux, and Mac.
Did you know? KAPE can collect artifacts from live systems.
Did you know? Velociraptor is used by many SOCs.
Remember This
- Forensic investigation collects, preserves, and analyzes digital evidence.
- Network, application, email, and insider incidents require different forensic approaches.
- Static analysis examines malware without execution.
- Dynamic analysis executes malware in a sandbox.
- Volatility is a memory forensics framework.
- KAPE collects and parses forensic artifacts.
- Velociraptor is used for incident response and forensics.
Common Mistakes
- Not preserving evidence: Evidence must be preserved.
- Not using a sandbox: Malware could infect your system.
- Not documenting findings: Without documentation, you cannot learn.
- Not collaborating: Sharing findings helps the community.
- Not staying updated: Threats evolve constantly.
Best Practices
- Preserve evidence.
- Use a sandbox for dynamic analysis.
- Document findings.
- Collaborate with other analysts.
- Stay updated on new threats and techniques.
Comparison: Static vs Dynamic Analysis
| Feature | Static | Dynamic |
| Execution | No | Yes |
| Risk | Low | Medium |
| Insight | Code structure | Behavior |
| Best for | Initial analysis | Detailed analysis |
Comparison: Forensics Tools
| Tool | Purpose | Best for |
| Volatility | Memory analysis | Memory dumps |
| KAPE | Artifact collection | Triage |
| Velociraptor | Incident response | Forensics and response |
End-of-Module Summary
Congratulations! You have completed Module Seven. You now know:
- Forensic investigation fundamentals.
- How to investigate network, application, email, and insider incidents.
- How to perform static and dynamic malware analysis.
- How to use Volatility for memory analysis.
- How to collect triage artifacts with KAPE.
- How to use Velociraptor for incident response.
You are now ready to move on to Module Eight, where you will learn about SOC for Cloud Environments.
Frequently Asked Questions
- What is forensic investigation? Collecting, preserving, and analyzing digital evidence.
- What is static analysis? Examining malware without executing it.
- What is dynamic analysis? Executing malware in a sandbox.
- What is Volatility? A memory forensics framework.
- What is KAPE? A tool for collecting and parsing forensic artifacts.
- What is Velociraptor? A tool for incident response and digital forensics.
- What is a sandbox? A controlled environment for executing malware.
- What is a memory dump? A snapshot of system memory.
- What are triage artifacts? Key evidence collected quickly.
- What is chain of custody? A record of evidence handling.
Review Questions
- What is forensic investigation?
- What is static analysis?
- What is dynamic analysis?
- What is Volatility?
- What is KAPE?
- What is Velociraptor?
- What is a sandbox?
- What is a memory dump?
- What are triage artifacts?
- What is chain of custody?
- What is the difference between static and dynamic analysis?
- What is the difference between Volatility and KAPE?
- How do you perform static analysis?
- How do you perform dynamic analysis?
- What is the role of Velociraptor in incident response?
Fill-in-the-Blank Exercises
- __________ is collecting, preserving, and analyzing digital evidence.
- __________ examines malware without executing it.
- __________ executes malware in a sandbox.
- __________ is a memory forensics framework.
- __________ is a tool for collecting and parsing forensic artifacts.
- __________ is a tool for incident response and digital forensics.
- A __________ is a controlled environment for executing malware.
- A __________ is a snapshot of system memory.
- __________ are key evidence collected quickly.
- __________ is a record of evidence handling.
True or False
- Forensic investigation collects evidence. (True)
- Static analysis executes malware. (False)
- Dynamic analysis executes malware in a sandbox. (True)
- Volatility is a memory forensics framework. (True)
- KAPE is a malware analysis tool. (False)
- Velociraptor is used for incident response. (True)
- A sandbox is a controlled environment. (True)
- A memory dump is a snapshot of memory. (True)
- Triage artifacts are not important. (False)
- Chain of custody is a record of evidence handling. (True)
Multiple Choice Questions
- What is forensic investigation?
a) Collecting, preserving, and analyzing evidence b) A type of software c) A hardware device d) A threat
Answer: a
- What is static analysis?
a) Examining malware without executing it b) Executing malware in a sandbox c) A type of software d) A hardware device
Answer: a
- What is dynamic analysis?
a) Executing malware in a sandbox b) Examining malware without executing it c) A type of software d) A hardware device
Answer: a
- What is Volatility?
a) A memory forensics framework b) A type of software c) A hardware device d) A threat
Answer: a
- What is KAPE?
a) A tool for collecting and parsing forensic artifacts b) A type of software c) A hardware device d) A threat
Answer: a
- What is Velociraptor?
a) A tool for incident response and digital forensics b) A type of software c) A hardware device d) A threat
Answer: a
- What is a sandbox?
a) A controlled environment for executing malware b) A type of software c) A hardware device d) A threat
Answer: a
- What is a memory dump?
a) A snapshot of system memory b) A type of software c) A hardware device d) A threat
Answer: a
- What are triage artifacts?
a) Key evidence collected quickly b) A type of software c) A hardware device d) A threat
Answer: a
- What is chain of custody?
a) A record of evidence handling b) A type of software c) A hardware device d) A threat
Answer: a
- What is the difference between static and dynamic analysis?
a) Static is without execution; dynamic is with execution b) They are the same c) Dynamic is without execution; static is with execution d) None
Answer: a
- What is the difference between Volatility and KAPE?
a) Volatility is for memory; KAPE is for artifacts b) They are the same c) KAPE is for memory; Volatility is for artifacts d) None
Answer: a
- How do you perform static analysis?
a) Analyze file properties, strings, and code b) Execute the malware c) Use a sandbox d) None
Answer: a
- How do you perform dynamic analysis?
a) Execute the malware in a sandbox b) Analyze file properties c) Extract strings d) None
Answer: a
- What is the role of Velociraptor in incident response?
a) Investigate and respond to incidents b) A type of software c) A hardware device d) A threat
Answer: a
Matching Exercises
Match the term on the left with its description on the right.
| Term | Description |
| 1. Static Analysis | A. Executes malware in a sandbox |
| 2. Dynamic Analysis | B. Examines malware without execution |
| 3. Volatility | C. Memory forensics framework |
| 4. KAPE | D. Collects and parses artifacts |
| 5. Velociraptor | E. Incident response and forensics |
Answers: 1-B, 2-A, 3-C, 4-D, 5-E
Short Answer Questions
- What is the difference between static and dynamic analysis?
- What is the difference between Volatility and KAPE?
- How do you perform static analysis?
- How do you perform dynamic analysis?
- What is the role of Velociraptor in incident response?
Scenario-Based Exercises
- Scenario: You are a SOC analyst. You have received a suspicious file. How would you analyze it?
- Scenario: You need to analyze a memory dump. How would you use Volatility?
- Scenario: You need to collect triage artifacts. How would you use KAPE?
Group Activity
In groups of 3-4, analyze a sample malware file. Use static and dynamic analysis techniques. Present your findings to the class.
Individual Activity
Write a one-page report on a forensic tool of your choice (Volatility, KAPE, or Velociraptor). Include its features and use cases.
Classroom Discussion Questions
- Why is forensics important for SOCs?
- What are the challenges of forensic investigation?
- How can organizations improve their forensic capabilities?
- What is the role of Volatility in incident response?
- How can KAPE help with incident response?
Mini Project
Project: "Forensics Investigation." Conduct a forensic investigation for a fictional incident. Use Volatility, KAPE, and Velociraptor. Present your findings to the class.
Practical Assignment
Analyze a memory dump using Volatility. Identify malicious processes, network connections, and command history. Write a report on your findings.
Challenge Exercise
Research a real-world forensic case study. Write a one-page summary of the case study and what was learned.
Quiz Answers
Fill-in-the-Blank Answers:
- Forensic investigation
- Static analysis
- Dynamic analysis
- Volatility
- KAPE
- Velociraptor
- sandbox
- memory dump
- Triage artifacts
- Chain of custody
True or False Answers: 1-T, 2-F, 3-T, 4-T, 5-F, 6-T, 7-T, 8-T, 9-F, 10-T
Key Takeaways
- Forensic investigation collects, preserves, and analyzes digital evidence.
- Static analysis examines malware without execution.
- Dynamic analysis executes malware in a sandbox.
- Volatility is a memory forensics framework.
- KAPE collects and parses forensic artifacts.
- Velociraptor is used for incident response and forensics.
Preparation for the Next Module
In Module Eight, you will learn about SOC for Cloud Environments. You will explore Azure SOC, AWS SOC, and GCP SOC.