A field guide for the developing analyst

A practical guide · Fundamentals to investigation

The Cybersecurity
Analyst’s
Guidebook.

Build the knowledge. Read the evidence.
Develop the analyst mindset.

Begin with the foundations →
24STRUCTURED CHAPTERS
340GLOSSARY ENTRIES
103REVIEW QUESTIONS

Preface

From terminology
to informed decisions.

A cybersecurity analyst’s most useful skill is the ability to explain what the evidence shows, what remains uncertain, and what should happen next.

Two connected study paths: Chapters 1–14 build the foundation. Chapters 15–24 deepen detection engineering, network analysis, email and web investigations, forensics, automation, cloud security, incident leadership, and applied practice. Complete the capstones and seek feedback as you develop professional judgment.

This guide develops that skill step by step. It begins with security and networking fundamentals, moves through logs, identity, malware, and endpoint investigation, and brings those ideas together in incident response and practical SOC scenarios.

It is written for beginners and developing analysts. You do not need previous SOC experience, but familiarity with everyday computer use will help. Read the chapters in order when learning; use the glossary and field reference when revising.

How to use this book

  1. Understand the concept. Explain it in plain language before memorizing an acronym.
  2. Examine the example. Identify the relevant users, devices, timestamps, and actions.
  3. Attempt the exercise. Write your reasoning before opening an answer panel.
  4. Practice in a lab. Apply the concepts to logs and tools you are authorized to use.
01–04 · Build the foundation05–12 · Develop investigation skills13–14 · Apply & communicate15–24 · Advanced skills & capstones

A note on examples

Scenario names, addresses, and events illustrate investigation methods. A suspicious IP address, an unusual process, or an alert is a lead to investigate, rather than proof of compromise on its own. Validate examples against the actual environment and its normal activity.

Commands and queries may require local configuration, logging, or schema changes. Frameworks and products evolve; consult current official documentation for operational use. Completing the book provides a foundation for further practice, rather than a professional certification.

Your reading desk

Learn at your own pace.

Listen to a chapter, test your understanding, and keep notes as you read.

0 / 24 chapters complete0 quizzes attempted

Progress and notes are saved in this browser on this device. They do not sync across devices. Export a copy to keep your notes.

The learning path

Table of contents

01
Security FoundationsUnderstand what security protects, how risk develops, and how analysts turn observations into decisions.
↗
02
Networking for Security AnalystsLearn how devices communicate and how network evidence reveals suspicious activity.
↗
03
Operating Systems & Security LogsRead processes, authentication records, and system logs to reconstruct what happened.
↗
04
SOC Operations & Alert TriageMove from a security alert to a documented investigation, using context and evidence.
↗
05
Windows Security & PowerShellInvestigate Windows events, parent–child process relationships, and PowerShell activity.
↗
06
Malware & Adversary BehaviourRecognize malware behaviour and use MITRE ATT&CK to describe adversary actions.
↗
07
Vulnerability & Patch ManagementInterpret vulnerability findings and prioritize remediation using exposure and business impact.
↗
08
Identity, Active Directory & KerberosUnderstand enterprise identity and investigate account compromise, authentication abuse, and privilege changes.
↗
09
EDR, XDR & Endpoint InvestigationUse endpoint telemetry to connect processes, files, network activity, and response actions.
↗
10
Incident Response & EvidenceCoordinate containment, preserve evidence, and support recovery with a clear incident record.
↗
11
Threat Hunting & Advanced InvestigationDevelop hypotheses and test them against security data to find activity that alerts may miss.
↗
12
Cloud Security & Threat DetectionApply identity, logging, and investigation skills to cloud services and container environments.
↗
13
Practical SOC InvestigationsBring the core skills together in realistic login, malware, network, and privilege investigations.
↗
14
Interview Preparation & Career DevelopmentExplain your reasoning clearly, practice interview scenarios, and build evidence of practical skills.
↗
15
Detection Engineering & SIEM QueriesTurn a security hypothesis into a reliable, testable detection with documented limitations.
↗
16
Packet Analysis, TLS & Network HuntingRead traffic as evidence, understand encryption limits, and correlate observations across network sensors.
↗
17
Phishing, Email Security & Business Email CompromiseInvestigate suspicious messages, account misuse, and business-process fraud as connected problems.
↗
18
Web Applications, APIs & Attack InvestigationUnderstand the application behaviors behind alerts and investigate requests in their full business and identity context.
↗
19
Digital Forensics & Evidence-Based ReconstructionPreserve evidence, reason about artifacts, and build findings that another analyst can reproduce.
↗
20
Python, PowerShell & Analyst AutomationAutomate repetitive analysis while preserving data quality, traceability, and human judgment.
↗
21
Advanced Cloud, Containers & Identity InvestigationsInvestigate identity-driven activity, ephemeral workloads, and cross-service impact in modern environments.
↗
22
Risk, Cryptography & Incident LeadershipConnect technical findings to business decisions, resilient controls, and clear communication.
↗
23
The Analyst Practice Lab & Twelve-Week Study PlanBuild practical competence through a safe lab, repeatable exercises, and evidence-based feedback.
↗
24
Capstone Investigations & Analyst ReadinessCombine evidence, test competing explanations, and present decisions through complete investigation cases.
↗
A
A–Z terminology glossary340 definitions for study and quick reference.
↗
B
Analyst field referenceInvestigation prompts, reporting template, and review guidance.
↗
C
Further readingOfficial standards, frameworks, and technical documentation.
↗

Chapter 01 / 24

Security Foundations

Understand what security protects, how risk develops, and how analysts turn observations into decisions.

What actually is cybersecurity?

At its simplest:

Cybersecurity = protecting systems, networks, applications, accounts, and data from unauthorized access, damage, disruption, or theft.

Imagine a company has:

  • Employee laptops
  • Wi-Fi/network
  • Servers
  • Email
  • Website
  • Database
  • Cloud services
  • Employee accounts

An attacker might try to:

Get in → gain access → increase privileges → move around → steal data → maintain access

Your job as an analyst is largely to:

Prevent → Detect → Investigate → Respond

That's the foundation.


The CIA Triad

This is probably the first thing you should genuinely understand.

CIA = Confidentiality + Integrity + Availability

Confidentiality

Only authorized people can see the information.

Example:

A company's salary database should not be accessible to every employee.

If an attacker steals the database:

Confidentiality has been compromised.


Integrity

Information remains accurate and isn't improperly modified.

Imagine an attacker changes:

Employee salary = $1,000

to:

Employee salary = $100,000

The information was altered.

That's an integrity violation.


Availability

Systems and data are available when authorized users need them.

Imagine an attacker launches a DDoS attack and takes down the company's website.

Users can't access it.

That's an availability problem.


Remember it like this:

C = Can people see what they shouldn't?

I = Did someone change something they shouldn't?

A = Can people access what they need?


Asset → Threat → Vulnerability → Risk

This chain is extremely important.

Let's use a company laptop.

Asset

Something valuable you need to protect.

Employee laptop.

Threat

Something that could cause harm.

Attacker.

Vulnerability

A weakness the attacker could exploit.

Laptop has an unpatched vulnerability.

Exploit

The method/code used to take advantage of that weakness.

Attacker uses an exploit against the vulnerability.

Risk

The potential consequence of that happening.

Attacker gains access to company data.

So:

Asset → Threat → Vulnerability → Exploit → Risk

Don't mix these up.


Threat vs Vulnerability

This trips up beginners constantly.

Threat

Potential source of harm.

Example:

Hacker.

Vulnerability

Weakness that can be exploited.

Example:

Outdated software.

The hacker isn't the vulnerability.

The outdated software isn't the threat.

They're different pieces of the problem.


Attack Surface

Imagine a company has:

  • 200 laptops
  • 50 employees
  • 3 servers
  • Website
  • VPN
  • Email
  • Cloud storage
  • Mobile app
  • Wi-Fi

All the places an attacker could potentially interact with are part of the organization's:

Attack surface

The bigger the attack surface, generally, the more opportunities an attacker has.

That's why security teams try to:

Remove unnecessary services + patch vulnerabilities + restrict access + monitor activity.


Authentication vs Authorization

Another must-know distinction.

Authentication

Who are you?

You enter:

Username + Password

The system verifies your identity.

That's authentication.

Authorization

What are you allowed to do?

You successfully log in.

But you're an employee, so perhaps you can:

View your payslip
View everyone else's salary
Delete employee accounts
Access HR's private database

That's authorization.

Easy memory trick:

Authentication = Who are you?

Authorization = What can you do?


Least Privilege

This is one of the most important security principles.

Give a user only the permissions they actually need.

Imagine you're hiring someone to answer phones.

You don't give them:

Domain Administrator

access.

That's basically handing someone the keys to the kingdom because they needed to answer the bloody phone.

Instead:

Phone employee → phone permissions

HR employee → HR permissions

IT administrator → administrative permissions

This limits damage if an account gets compromised.


Defense in Depth

Never rely on one security control.

Imagine a company has:

Firewall

↓

MFA

↓

Endpoint protection

↓

SIEM monitoring

↓

Access controls

↓

Backups

If one defense fails, another can catch or limit the attack.

That's:

Defense in Depth

Think of it as security onion layers.

An attacker has to peel through multiple defenses instead of walking through one unlocked door.


Network Fundamentals

Every device communicating over a network needs some way to identify where traffic should go.

That's where an IP address comes in.

Example:

192.168.1.25

Think of it like an apartment address.

Your device:

"I'm 192.168.1.25."

Another device:

"I'm 192.168.1.50."

They can communicate across the network.


What is a port?

An IP address identifies the machine.

A port identifies the service/application endpoint.

Imagine:

IP address = apartment building

Port = specific apartment/door

For example:

192.168.1.25:443

Means:

Device 192.168.1.25, service on port 443.

Some important ports:

22 → SSH

53 → DNS

80 → HTTP

443 → HTTPS

3389 → RDP


TCP vs UDP

You'll see these constantly.

TCP

TCP is:

Connection-oriented and reliable.

It establishes communication and makes sure data arrives properly.

Used by things such as:

  • HTTPS
  • SSH
  • FTP

UDP

UDP is:

Connectionless and lightweight.

It doesn't provide the same delivery guarantees.

It's useful where speed matters.

Examples include:

  • DNS
  • Streaming
  • Some gaming traffic
  • VoIP

Simple mental model:

TCP = "Did you get that? I'll make sure."

UDP = "I sent it. Good luck, "


DNS

This one is very important for analysts.

You type:

google.com

Your computer needs an IP address to communicate with the server.

DNS translates:

Domain → IP

Example conceptually:

example.com

↓

93.184.216.34

DNS = Domain Name System

As an analyst, suspicious DNS requests can be extremely useful.

For example, a compromised computer repeatedly contacting a suspicious domain could be evidence of command-and-control activity.


HTTP vs HTTPS

HTTP

Web communication without TLS protection.

http://

HTTPS

HTTP protected using TLS encryption.

https://

So when you log into a website over HTTPS, the connection is encrypted in transit.

Important:

HTTPS doesn't magically mean the website itself is trustworthy.

A malicious website can use HTTPS too.

Encryption protects the connection; it doesn't certify that the person on the other end is a saint.


What is a firewall?

A firewall controls network traffic according to rules.

For example:

Allow HTTPS traffic.

Block suspicious inbound traffic.

Allow internal server communication.

Think of it as a security guard checking traffic against a rulebook.


IDS vs IPS

IDS

Intrusion Detection System

Detects suspicious activity and alerts you.

Basically:

"Oi, something looks wrong."

IPS

Intrusion Prevention System

Can actively block/prevent suspicious traffic.

Basically:

"Oi, something looks wrong. I'm stopping it."

So:

IDS → Detect

IPS → Detect + Prevent


Malware

Malware simply means:

Malicious software.

Major categories:

Virus

Malicious code that attaches to other files/programs and spreads when executed.

Worm

Can spread automatically between systems.

Trojan

Pretends to be legitimate software.

Ransomware

Encrypts/locks data and demands payment.

Spyware

Secretly collects information.

RAT

Remote Access Trojan.

Allows attackers to remotely control a compromised machine.


The Attack Lifecycle

Now connect everything.

Imagine an employee receives a malicious email.

Step 1 — Initial Access

Attacker gets into the environment.

Step 2 — Execution

Malicious code runs.

Step 3 — Persistence

Attacker makes sure they can come back.

Step 4 — Privilege Escalation

They obtain higher privileges.

Step 5 — Discovery

They investigate the environment.

"What computers exist?"

"Where's the database?"

"Who is an administrator?"

Step 6 — Lateral Movement

They move to other systems.

Step 7 — Collection

They gather valuable information.

Step 8 — Exfiltration

They send stolen information outside the organization.

Step 9 — Impact

They may encrypt files, destroy data, shut down systems, etc.

This sequence is basically the beginning of thinking like a security analyst.


Your first analyst mindset

When you see suspicious activity, start asking:

WHO?

Which user/account?

WHAT?

What happened?

WHEN?

When did it happen?

WHERE?

Which machine/IP/system?

HOW?

How did it happen?

WHY?

What was the attacker trying to accomplish?

WHAT NEXT?

Did they move further into the environment?

That's investigation.


Mini Scenario

Suppose your SIEM generates this alert:

User john.smith had 35 failed login attempts followed by one successful login from an unfamiliar IP address.

You'd ask:

  1. Was the account actually compromised?
  2. Where did the login originate?
  3. Was the IP internal or external?
  4. What time did it happen?
  5. Does John normally log in from that location?
  6. Were the failed attempts caused by John mistyping his password?
  7. What happened after the successful login?
  8. Did the account access unusual resources?
  9. Did it create anything?
  10. Did it attempt privilege escalation?

That's the beginning of SOC analysis.


Your fundamental chain

Asset
↓
Threat
↓
Vulnerability
↓
Attack
↓
Detection
↓
Investigation
↓
Response

And for networking:

Device → IP → Port → Protocol → Traffic → Log → Alert → Investigation

Chapter review

Before moving into SIEM + logs + actual SOC investigation, you should be able to explain these without looking them up:

  • CIA Triad
  • Asset
  • Threat
  • Vulnerability
  • Risk
  • Attack surface
  • Authentication
  • Authorization
  • Least privilege
  • IP address
  • Port
  • TCP vs UDP
  • DNS
  • HTTP vs HTTPS
  • Firewall
  • IDS vs IPS
  • Malware
  • Initial access
  • Persistence
  • Privilege escalation
  • Lateral movement
  • Exfiltration

Applied context

Security controls in everyday life

A control can be preventive, detective, or corrective. MFA helps prevent unauthorized access, an alert detects unusual activity, and a tested backup supports recovery. One control may serve several purposes, and no single control eliminates all risk.

Practice: Choose an account you use. Identify its valuable data, one realistic threat, one weakness, and two controls. Explain which risk each control reduces.

Knowledge check

1. Which term describes a weakness that could be exploited?

  1. Threat
  2. Vulnerability
  3. Asset
  4. Control
Reveal answer & explanation

Vulnerability A vulnerability is a weakness; a threat is a potential cause of harm.

2. What does least privilege mean?

  1. Give everyone administrator access
  2. Grant only the access needed for a task
  3. Disable logging
  4. Trust all internal connections
Reveal answer & explanation

Grant only the access needed for a task Limit permissions to what is needed, for the required time.

Chapter 02 / 24

Networking for Security Analysts

Learn how devices communicate and how network evidence reveals suspicious activity.

What is a network?

A network is simply:

Multiple devices communicating with each other.

For example:

Your laptop
     ↓
Wi-Fi router
     ↓
Internet
     ↓
Google server

Your laptop needs to know:

  • Who it's talking to
  • Where that device is
  • What service it's communicating with
  • How the communication should happen

That's where IP addresses, MAC addresses, ports and protocols come in.


IP Addresses

An IP address identifies a network interface/device at the network layer.

Example:

192.168.1.25

This is IPv4.

IPv4 looks like:

192.168.1.25

Four numbers separated by dots.

Each number ranges from:

0 → 255


Public vs Private IP

This matters a LOT in investigations.

Private IP

Used inside local/private networks.

Common private ranges:

10.0.0.0/8
172.16.0.0/12
192.168.0.0/16

Example:

192.168.1.25

Your phone might have this kind of address on Wi-Fi.

Public IP

An address reachable across the public internet.

Your home router generally has a public IP assigned by your ISP.

So you might have:

Phone
192.168.1.25
     ↓
Router
203.x.x.x
     ↓
Internet

The internal address isn't normally directly visible to websites.


MAC Address

A MAC address identifies a network interface at the local network/data-link level.

Example:

A4:7B:9C:12:34:56

Think:

IP = network address

MAC = local hardware/interface identifier

But don't fall into the beginner trap of thinking a MAC address is permanently tied to a person/device in every situation. Modern devices can use randomized MAC addresses, especially for Wi-Fi privacy.


IP vs MAC

Imagine a hotel.

IP address

"Room 302"

MAC address

"The specific device/interface associated with that local network connection."

Different purposes.


Ports

This is extremely important.

Suppose a server has:

192.168.1.10

That identifies the machine.

But the machine may be running:

  • Web server
  • SSH
  • Database
  • Email service

How does traffic know which service it wants?

Ports.

For example:

192.168.1.10:443

means:

Connect to port 443 on that machine.


Important Ports

Memorize these first:

Port Protocol/Service
20/21 FTP
22 SSH
23 Telnet
25 SMTP
53 DNS
80 HTTP
443 HTTPS
445 SMB
3389 RDP
3306 MySQL
1433 Microsoft SQL Server
5432 PostgreSQL

Security analyst example

Suppose you see:

192.168.1.50 → 192.168.1.10:3389

You immediately know:

Someone is communicating with the server over RDP.

Then you investigate who, when, why, and whether it's normal.


TCP

TCP = Transmission Control Protocol

TCP establishes a connection before transferring data.

The famous process is the:

Three-Way Handshake

Client                  Server
  |                       |
  | ---- SYN ----------> |
  | <--- SYN-ACK ------- |
  | ---- ACK ----------> |
  |                       |
  |   Connection ready   |

SYN

"Can we communicate?"

SYN-ACK

"Yes, I hear you."

ACK

"Cool."

Now communication begins.


Why does TCP matter to analysts?

Because network traffic can reveal suspicious behavior.

For example:

Computer
   ↓
SYN
   ↓
Server
   ↓
No response

Repeated connection attempts across thousands of ports could indicate scanning.

An attacker might essentially be asking:

"Is anything listening here?"

Again.

Again.

Again.

And again.


UDP

UDP = User Datagram Protocol

UDP doesn't establish a TCP-style connection.

It's lightweight and fast.

Conceptually:

Send → Done

No three-way handshake.

This makes it useful for things where speed matters more than guaranteed delivery.

Examples:

  • DNS
  • Streaming
  • Gaming
  • Voice/video traffic

TCP vs UDP

Memorize this:

TCP UDP
Connection-oriented Connectionless
Reliable delivery No delivery guarantee
Handshake No TCP handshake
More overhead Less overhead
Ordered data No guaranteed ordering

Think:

TCP: "I need to know you received it."

UDP: "Here's the packet. I'm leaving."


DNS

You type:

youtube.com

Your computer needs an IP address.

DNS helps translate:

youtube.com
       ↓
IP address

DNS = Domain Name System

It's basically the internet's phonebook.


Why DNS matters to cybersecurity

Because attackers use domains.

Imagine an infected computer repeatedly makes DNS requests:

random-domain.com
random-domain.com
random-domain.com
random-domain.com

Then communicates with that domain.

That could be suspicious.

Analysts may investigate:

  • Domain age
  • Domain reputation
  • DNS history
  • IP address
  • Frequency of requests
  • What happened after the DNS lookup

DNS is therefore a valuable source of security telemetry.


HTTP

HTTP is a protocol used for web communication.

Example:

Browser → Web Server

Your browser might request:

GET /login

The server responds.

HTTP itself doesn't provide encryption.


HTTPS

HTTPS is HTTP protected using TLS.

Browser
   ↓
Encrypted HTTPS
   ↓
Web Server

This prevents someone sitting on the network from simply reading the contents of the communication in transit.

But remember:

HTTPS ≠ safe website.

A phishing website can absolutely use HTTPS.

The connection can be encrypted while the website is still malicious.


What is a packet?

Data travelling across a network gets broken into pieces called packets.

Conceptually:

Message
   ↓
[Packet 1]
[Packet 2]
[Packet 3]
[Packet 4]

Each packet contains information that helps deliver it.

You can think of it like a postal package.

It has:

  • Source
  • Destination
  • Protocol information
  • Data

The actual useful data is called the:

Payload


Source vs Destination

This terminology will appear constantly in SIEM/network logs.

Example:

Source IP:      192.168.1.25
Destination IP: 8.8.8.8
Destination Port: 53
Protocol: UDP

Translation:

Device 192.168.1.25 sent UDP traffic to 8.8.8.8 on port 53.

Port 53?

DNS.

Now you're thinking like an analyst.


Inbound vs Outbound

Inbound

Traffic coming into your system/network.

Internet
   ↓
Company Server

Outbound

Traffic leaving your system/network.

Company Computer
   ↓
Internet

Security analysts care about both.

For example:

Suspicious inbound

Internet → internal server

Could indicate:

Scanning / exploitation attempt

Suspicious outbound

Internal computer → suspicious external IP

Could indicate:

Malware / C2 / data exfiltration


Firewall

A firewall controls traffic using rules.

Example:

ALLOW TCP 443
DENY TCP 23
ALLOW DNS
DENY unknown inbound traffic

A firewall can look at things such as:

  • Source IP
  • Destination IP
  • Port
  • Protocol
  • Direction

IDS vs IPS

IDS

Intrusion Detection System

Detects suspicious traffic and alerts.

Traffic
  ↓
IDS
  ↓
 ALERT

IPS

Intrusion Prevention System

Can actively block suspicious traffic.

Traffic
  ↓
IPS
  ↓
 BLOCKED

Easy:

IDS = Detect

IPS = Detect + Prevent


NAT

NAT = Network Address Translation

This is why dozens of devices in your home can access the internet using a single public IP.

Example:

Phone       192.168.1.10
Laptop      192.168.1.11
TV          192.168.1.12
                 ↓
              Router
                 ↓
           Public IP
                 ↓
             Internet

The router translates the internal/private addresses to the public address.


ARP

ARP = Address Resolution Protocol

It helps devices on a local network determine:

"Which MAC address belongs to this IP?"

Conceptually:

Who has 192.168.1.20?

        ↓

Device with 192.168.1.20:
"My MAC is AA:BB:CC:DD:EE:FF"

ARP Spoofing

An attacker can send false ARP information.

They might convince a victim:

"I am the router."

Then traffic can potentially be redirected through the attacker.

This is called:

ARP spoofing / ARP poisoning

And it can enable Man-in-the-Middle (MITM) attacks.


Subnet

A subnet divides a larger network into smaller logical networks.

For example:

192.168.1.0/24

might represent a network containing addresses from:

192.168.1.0

through

192.168.1.255

You don't need to become a subnetting wizard yet.

For cybersecurity, understand the concept:

Subnet = logical subdivision of a network.

It helps with:

  • Network organization
  • Access control
  • Segmentation
  • Reducing broadcast traffic
  • Security boundaries

Network Segmentation

Suppose a company has:

Employee PCs
      |
      ↓
   Network
      |
      ├── HR
      ├── Finance
      ├── Servers
      └── Guest Wi-Fi

You don't want a compromised guest Wi-Fi device casually wandering into the finance servers.

So you separate networks and control traffic between them.

That's:

Network segmentation

It's a major defense against lateral movement.


Put it together: Analyst Scenario

Imagine your SIEM shows:

Source:
192.168.10.45

Destination:
185.x.x.x

Port:
443

Protocol:
TCP

Time:
02:43 AM

What do you know?

Source

Internal machine:

192.168.10.45

Destination

External internet address.

Port

443

Likely HTTPS.

Protocol

TCP.

Time

2:43 AM.

Now here's where the analyst brain kicks in.

Is this normal?

Maybe.

Maybe not.

You investigate:

Who owns 192.168.10.45?

↓

Who was logged in?

↓

What process generated the connection?

↓

What domain was contacted?

↓

Has this IP/domain been associated with malware?

↓

Did the machine make repeated connections?

↓

Did anything execute beforehand?

↓

Was data uploaded afterward?

That's an actual investigation.


Your networking mental model

You should now be able to look at:

192.168.10.45 → 185.x.x.x:443 TCP

and mentally translate it into:

"An internal device communicated with an external IP using TCP on port 443, probably HTTPS."


Mini quiz — don't Google it

Answer these in your own words:

1. What's the difference between an IP address and a MAC address?

2. What does a port identify?

3. What's the main difference between TCP and UDP?

4. What does DNS do?

5. What's the difference between HTTP and HTTPS?

6. What is a packet?

7. What's the difference between inbound and outbound traffic?

8. What's the difference between IDS and IPS?

9. What is NAT used for?

10. If you see:

192.168.1.50 → 8.8.8.8:53 UDP

what do you think is happening?

Give me your answers without worrying about getting them perfect. I'll mark them like a training exercise, correct anything that's wrong, and then we can hit Chapter 3: Windows/Linux fundamentals + logs, which is where cybersecurity analyst work starts getting seriously practical.

Applied context

Read a connection as a five-tuple

A network conversation is often identified by source IP, source port, destination IP, destination port, and transport protocol. Record all five when available. NAT and proxies may change what different sensors observe.

Source IP       Source port   Destination IP   Destination port   Protocol
192.0.2.10      51842         198.51.100.20    443                TCP

These are documentation addresses. Port 443 suggests HTTPS, but verify the application protocol, owning process, destination, certificate, and timing. A common port can carry malicious traffic.

Knowledge check

1. What does destination port 443 prove?

  1. The traffic is safe
  2. The destination is trusted
  3. HTTPS may be in use; verify the actual protocol
  4. No investigation is needed
Reveal answer & explanation

HTTPS may be in use; verify the actual protocol Ports are clues. Validate protocol, process, and context.

2. What does DNS usually do?

  1. Maps names to records such as IP addresses
  2. Encrypts every packet
  3. Authenticates every user
  4. Blocks all malicious sites
Reveal answer & explanation

Maps names to records such as IP addresses DNS resolves names using different record types. It is not a universal security control.

Chapter 03 / 24

Operating Systems & Security Logs

Read processes, authentication records, and system logs to reconstruct what happened.

What is an operating system?

An operating system (OS) manages a computer's:

  • Hardware
  • Applications
  • Files
  • Users
  • Processes
  • Network connections
  • Permissions

Two operating systems you'll constantly encounter:

Windows

Linux


Windows vs Linux

Windows

Common in:

  • Businesses
  • Offices
  • Active Directory environments
  • Employee laptops
  • Enterprise servers

Linux

Common in:

  • Web servers
  • Cloud infrastructure
  • Security tools
  • Network appliances
  • DevOps
  • Databases

As an analyst, you need to be comfortable with both.


What is a process?

A process is a program that is currently running.

For example, you open Chrome.

The operating system starts a process for Chrome.

You open PowerShell.

Another process starts.

You can have:

chrome.exe
powershell.exe
explorer.exe

running simultaneously.


Why do analysts care about processes?

Because attackers need to run something.

Imagine a normal employee computer suddenly starts:

winword.exe
    ↓
powershell.exe
    ↓
cmd.exe
    ↓
suspicious.exe

That's interesting.

Not automatically malicious — but interesting.

The relationship between processes is called a:

Process tree


Parent and Child Processes

Suppose:

explorer.exe
      ↓
powershell.exe
      ↓
something.exe

explorer.exe is the parent process.

powershell.exe is its child process.

Then something.exe is a child of PowerShell.

This relationship can reveal suspicious execution chains.


PowerShell

PowerShell is Microsoft's command-line and scripting environment.

It's legitimate.

Administrators use it constantly.

Attackers also love it.

Why?

Because PowerShell can interact deeply with Windows.

So seeing:

powershell.exe

does not mean:

"MALWARE!!!"

Instead:

"Why was PowerShell executed, by whom, from where, and what did it do?"

That's the analyst mindset.


Linux

Linux has a command-line environment called a shell.

A very common shell is:

Bash

You'll see commands like:

ls
cd
pwd
cat
grep
ps
sudo

You don't need to become a Linux administrator immediately.

You need to understand what you're looking at.


Important Linux Commands

pwd

Shows your current directory.

pwd

Meaning:

Where am I?


ls

Lists files/directories.

ls

cd

Changes directory.

cd /var/log

cat

Displays file contents.

cat logfile.txt

grep

Searches text.

grep "failed" logfile.txt

This one is extremely useful for analysts.

You're essentially saying:

"Show me log entries containing the word failed."


ps

Shows running processes.

ps

sudo

Runs something with elevated privileges.

sudo command

What is a log?

This is the big one.

A log is a record of activity.

For example:

User logged in
File created
Process started
Firewall blocked connection
Password failed
Application crashed

Systems generate logs constantly.


Why are logs important?

Imagine someone claims:

"Nobody accessed the server last night."

You don't need to guess.

You examine the logs.

Maybe you discover:

02:13:44
User: admin
Source IP: 185.x.x.x
Action: Successful login

Logs allow analysts to reconstruct:

What happened?


Types of Logs

You'll encounter many.

Authentication logs

Record login activity.

Examples:

  • Successful login
  • Failed login
  • Password changes
  • MFA events

System logs

Record operating-system activity.

Examples:

  • Service started
  • Service stopped
  • System rebooted
  • Hardware/software errors

Application logs

Generated by applications.

Examples:

  • Login attempt
  • API request
  • Error
  • Database query

Firewall logs

Record network traffic allowed or blocked by a firewall.

Example:

Source: 10.0.0.25
Destination: 185.x.x.x
Port: 443
Action: ALLOW

DNS logs

Record DNS requests.

Example:

Host: workstation-12
Query: suspicious-domain.com
Response: 185.x.x.x

Event vs Alert vs Incident

These three are not the same thing.

Event

Something happened.

Example:

User logged in.

Alert

A security system says:

"This event looks suspicious."

Example:

50 failed login attempts detected.

Incident

After investigation, you determine:

"This is a real security problem."

So:

Event → Alert → Investigation → Incident

An alert isn't automatically an incident.

That's extremely important.


Windows Event Viewer

Windows has a built-in tool called:

Event Viewer

It contains logs from the system.

You can find things such as:

  • Security events
  • Application events
  • System events

Security analysts often investigate Windows events through SIEM platforms rather than manually opening Event Viewer on every computer, but the underlying logs are the same kind of evidence.


Windows Event IDs

Windows assigns numerical IDs to many events.

Some you'll want to recognize:

4624

Successful logon

Meaning:

Someone successfully authenticated.


4625

Failed logon

Meaning:

Authentication failed.


4688

New process created

Meaning:

A process started.

This can be VERY useful during investigations.


4720

User account created


4726

User account deleted


4740

User account locked out


4672

Special privileges assigned to new logon

Potentially interesting because privileged access is involved.


Example Investigation

Suppose your SIEM generates:

Multiple failed logons for account admin.

You investigate.

You find:

Event ID: 4625
Account: admin
Source IP: 185.x.x.x

Then:

Event ID: 4624
Account: admin
Source IP: 185.x.x.x

So you have:

Multiple failed logins

↓

Successful login

That's suspicious.

Now you investigate further.


Look at What Happened After Login

You discover:

4624
Successful login
      ↓
4688
PowerShell started
      ↓
Network connection
      ↓
New account created

Now things are getting spicy.

You might investigate:

  • What commands did PowerShell execute?
  • What IP did the system contact?
  • What account was created?
  • What privileges did it receive?
  • Did files change?
  • Did the attacker move to another machine?

This is how individual logs become an attack story.


Linux Logs

Linux commonly stores logs under:

/var/log/

You'll encounter files such as:

auth.log
syslog
messages

depending on the Linux distribution and logging configuration.

Authentication activity is particularly interesting.

You might find:

Failed password for user admin

Repeated failures from the same external IP?

Potential brute-force activity.


What is a timestamp?

A timestamp tells you when an event occurred.

Example:

2026-11-09 02:14:33

Time matters enormously in investigations.

Imagine:

02:10 — phishing email received
02:13 — suspicious file opened
02:14 — PowerShell started
02:16 — external connection established
02:20 — data transferred

Timeline Analysis

Security analysts often reconstruct incidents chronologically.

For example:

09:01
User receives phishing email

09:03
Attachment opened

09:03
Malicious process starts

09:04
PowerShell executes

09:05
C2 connection established

09:08
Credentials accessed

09:15
Lateral movement begins

09:30
Data exfiltration

That's much more useful than staring at 10,000 disconnected log entries.


Authentication Logs

These are particularly important.

You want to know:

Who logged in?

From where?

When?

Was it successful?

What happened afterward?

For example:

User: shahulan
Source IP: 192.168.1.50
Time: 01:22
Result: SUCCESS

Normal?

Maybe.

But:

User: shahulan
Source IP: Russia
Time: 03:17
Result: SUCCESS

An unfamiliar geographic location can be an investigation lead. Check VPN use, travel, proxy services, and the reliability of geolocation before drawing a conclusion.

Yeah. That's worth investigating.


Log Fields

Logs are usually structured into fields.

Example:

Timestamp:
2026-11-09 03:17:22

User:
admin

Source IP:
185.x.x.x

Destination:
10.0.0.15

Action:
LOGIN

Result:
SUCCESS

Each field provides a piece of the puzzle.


Source vs Destination

You learned this last lesson, but now apply it to logs.

Source

Where activity originated.

Destination

Where activity went.

Example:

Source IP:
10.0.0.25

Destination IP:
185.x.x.x

Destination Port:
443

Translation:

Internal machine 10.0.0.25 communicated externally over TCP/HTTPS.


What is a SIEM?

SIEM = Security Information and Event Management

A SIEM collects logs from many systems into one place.

Instead of checking:

Laptop #1

Laptop #2

Server #1

Firewall

VPN

Email system

Cloud

individually...

You send their logs into the SIEM.

Laptop ────────┐
Server ────────┤
Firewall ──────┤
VPN ───────────┤
Cloud ─────────┼──→ SIEM
Email ─────────┤
EDR ───────────┘

Now analysts can search across everything.


Why SIEMs are powerful

Imagine this attack:

Email system

Shows:

Phishing email delivered.

Endpoint

Shows:

Suspicious PowerShell executed.

DNS

Shows:

Suspicious domain queried.

Firewall

Shows:

Outbound connection established.

Authentication

Shows:

User account accessed another server.

Individually, these might look unrelated.

The SIEM can help correlate them.

Now you have:

One attack story.

That's one of the core jobs of a SOC analyst.


Correlation

Correlation = connecting related events.

Example:

Failed login
      ↓
Successful login
      ↓
PowerShell execution
      ↓
Suspicious DNS request
      ↓
External connection

Each event alone might not prove compromise.

Together?

Very suspicious.


Analyst Mental Model

When looking at logs, ask:

WHO?

Which user/device?

WHEN?

What time?

WHERE?

Source/destination?

WHAT?

What action occurred?

HOW?

What process/protocol/tool was involved?

WHAT NEXT?

What happened immediately afterward?

That final question is crucial.


Mini Investigation

Here's your first proper analyst exercise.

You receive these events:

02:01:12
User: employee01
Event: Failed login
Source IP: 185.44.x.x

02:01:18
User: employee01
Event: Failed login
Source IP: 185.44.x.x

02:01:24
User: employee01
Event: Successful login
Source IP: 185.44.x.x

02:02:01
User: employee01
Event: PowerShell started

02:02:14
Device: WORKSTATION-01
Event: DNS query
Domain: suspicious-example.com

02:02:20
Device: WORKSTATION-01
Event: Outbound connection
Destination: 185.x.x.x
Port: 443

Don't worry about finding the "official" answer. Think like an analyst.

Tell me:

  1. Which event is the first thing that makes you suspicious?
  2. Why?
  3. What would you investigate next?
  4. What could the sequence potentially indicate?
  5. Would you immediately declare it a confirmed incident? Why or why not?

Applied context

Make your timeline reliable

Normalize timestamps to a stated timezone, usually UTC, while preserving original values. Check event time versus ingestion time, clock drift, daylight-saving changes, and missing telemetry. A gap in logs may reflect a collection problem rather than an absence of activity.

Practice: Create a five-row timeline with columns for UTC time, data source, device, identity, action, and confidence. Label observations separately from conclusions.

Knowledge check

1. Why normalize timestamps?

  1. To delete original evidence
  2. To compare events reliably across sources
  3. To hide clock drift
  4. To remove the need for logs
Reveal answer & explanation

To compare events reliably across sources Use a stated timezone and preserve original values.

2. Does a missing event prove nothing happened?

  1. Yes
  2. No, logging coverage and collection can be incomplete
Reveal answer & explanation

No, logging coverage and collection can be incomplete Check audit settings, retention, collection health, and data gaps.

Chapter 04 / 24

SOC Operations & Alert Triage

Move from a security alert to a documented investigation, using context and evidence.

What is a SOC?

SOC = Security Operations Center

It's the team responsible for monitoring and responding to cybersecurity threats.

A simplified SOC looks like:

                 Security Events
                      ↓
        ┌─────────────────────────┐
        │          SIEM           │
        └────────────┬────────────┘
                     ↓
                  ALERT
                     ↓
              SOC ANALYST
                     ↓
             INVESTIGATION
                     ↓
        ┌────────────┴────────────┐
        ↓                         ↓
   FALSE POSITIVE             INCIDENT
                                  ↓
                             ESCALATION

Your job as an analyst is basically:

Figure out what the hell happened.


What does a SIEM actually do?

SIEM = Security Information and Event Management

A SIEM collects logs from many sources.

For example:

Windows ───────┐
Linux ─────────┤
Firewall ──────┤
VPN ───────────┤
Email ─────────┼──→ SIEM
Cloud ─────────┤
EDR ───────────┤
Applications ──┘

The SIEM then lets you:

  • Search logs
  • Correlate events
  • Create detection rules
  • Generate alerts
  • Investigate incidents
  • Build dashboards
  • Track activity

Event vs Alert

This distinction is fundamental.

Event

Something happened.

Example:

User logged in.

That's just an event.

Alert

A security system determines that an event or combination of events deserves attention.

Example:

100 failed logins from one IP

The SIEM might generate:

Possible brute-force attack

That's an alert.


Alert ≠ Incident

This is probably the most important thing in SOC work.

An alert means:

"Something potentially suspicious happened."

It does not automatically mean:

"We have been hacked."

Example:

Alert:
Multiple failed logins

Could be:

Scenario A

Attacker attempting brute force.

Scenario B

Employee repeatedly entering the wrong password.

Scenario C

Automated application misconfigured.

Scenario D

Security scanner performing authorized testing.

Same alert.

Completely different conclusions.

That's why analysts investigate.


Alert Triage

Triage means determining:

How serious is this, and what should I do next?

When an alert arrives, you don't immediately start deleting servers like an overexcited intern.

You first gather information.


Your First Questions

When you receive an alert, ask:

WHO?

Who is involved?

  • User
  • Account
  • Device
  • Service

WHAT?

What happened?

  • Login?
  • Malware?
  • Network connection?
  • File execution?
  • Data transfer?

WHEN?

When did it happen?

WHERE?

Where did it originate?

  • IP
  • Device
  • Country
  • Network
  • Cloud environment

HOW?

What technique or method was involved?

WHY?

Is there a legitimate explanation?

WHAT HAPPENED BEFORE AND AFTER?

This one is huge.


Example Alert

Your SIEM gives you:

"Multiple failed login attempts detected."

Don't stop there.

You investigate the alert.

You find:

Account:
admin

Failed attempts:
87

Source IP:
185.10.x.x

Time:
02:13–02:18

Target:
Server01

That's suspicious.

Now investigate further.


Investigation Step 1 — Identify the Account

Ask:

Who owns admin?

Is it:

  • Human?
  • Service account?
  • Administrator?
  • Shared account?

If it's a normal employee account, that's one situation.

If it's a domain administrator, suddenly the priority increases.


Investigation Step 2 — Identify the Source

Where did the attempts come from?

185.10.x.x

Is it:

  • Internal?
  • External?
  • Known VPN?
  • Corporate office?
  • Cloud provider?
  • Known malicious IP?

Never assume an IP is malicious simply because it looks weird.

Context matters.


Investigation Step 3 — Look at Timing

Suppose:

02:13
Failed login

02:14
Failed login

02:15
Failed login

02:16
Failed login

02:17
Successful login

That's considerably more interesting than:

Failed login

Then:

successful authentication after repeated failures

is a major investigation point.


Investigation Step 4 — Look for What Happened Next

Suppose after successful login:

02:17
Successful login

02:18
PowerShell launched

02:19
New account created

02:20
Connection to external IP

02:22
Large data transfer

Now you're looking at a potential attack chain.

That's why analysts don't investigate alerts in isolation.


Severity

Alerts are usually assigned a severity.

Common levels:

Informational

Probably nothing serious.

Low

Minor suspicious activity.

Medium

Potentially meaningful security event.

High

Likely serious security issue.

Critical

Potentially severe compromise/impact.

Different organizations use different scoring systems.

Don't assume "High" automatically means confirmed compromise.

Severity is about the risk/importance of the alert, not necessarily certainty.


False Positive

A false positive occurs when a security system flags something suspicious that turns out to be legitimate.

Example:

Your SIEM detects:

"Massive login activity."

You investigate.

Turns out the company deployed a new application that automatically authenticates thousands of users.

Not an attack.

False positive.


True Positive

A true positive means the detection correctly identified suspicious/malicious activity.

Example:

Alert:

Suspicious PowerShell execution.

Investigation finds:

  • Unknown script
  • Malicious download
  • C2 connection
  • Unauthorized account

That's a true positive.


False Negative

This is nastier.

A false negative occurs when malicious activity happens but isn't detected.

Example:

Attacker compromises an account.

SIEM generates no alert.

Nobody notices for six months.

That's a detection failure.


Detection Rules

A SIEM needs rules to decide when something deserves attention.

For example:

IF
failed_login_count > 20
FROM same IP
WITHIN 5 minutes

THEN
generate alert

That's a basic detection rule.

Another:

IF
PowerShell starts
AND
downloads executable
AND
connects to suspicious external domain

THEN
generate high-severity alert

This is where security analysts start getting into detection engineering.


Correlation Rules

A powerful SIEM can correlate multiple events.

For example:

Failed Login
      +
Successful Login
      +
PowerShell
      +
Suspicious DNS
      +
External Connection

Instead of creating five unrelated alerts, the SIEM can recognize the combination.

That is correlation.


IOC

Now you'll start hearing this constantly.

IOC = Indicator of Compromise

An IOC is evidence associated with potentially malicious activity.

Examples:

IP address

185.x.x.x

Domain

malicious-example.com

File hash

SHA256:
a7c91f...

Filename

invoice.exe

Registry key

Potentially associated with persistence.

Suspicious account

Potentially compromised identity.


IOA

IOA = Indicator of Attack

Instead of focusing on a specific piece of evidence, you're looking at attacker behavior.

Example:

PowerShell downloads a script → executes it → establishes an outbound connection.

That's behavior.

This is useful because attackers can change:

  • IP addresses
  • File names
  • Domains
  • Malware hashes

But their behavior may remain recognizable.


IOC vs IOA

Think:

IOC = What evidence did they leave?

IOA = What behavior are they performing?

Example:

IOC:

Malicious IP 185.x.x.x

IOA:

Repeated outbound connections to an external server every 60 seconds.


TTP

TTP = Tactics, Techniques, and Procedures

This describes how attackers operate.

Tactic

What is the attacker trying to accomplish?

Example:

Credential Access

Technique

How are they doing it?

Example:

Credential Dumping

Procedure

The specific implementation they used.

This terminology becomes especially important when working with MITRE ATT&CK.


MITRE ATT&CK

Think of MITRE ATT&CK as a giant map of attacker behavior.

For example:

Initial Access
      ↓
Execution
      ↓
Persistence
      ↓
Privilege Escalation
      ↓
Credential Access
      ↓
Discovery
      ↓
Lateral Movement
      ↓
Collection
      ↓
C2
      ↓
Exfiltration

When investigating an attack, you can map observed behavior to ATT&CK techniques.

That helps analysts communicate what actually happened.


Analyst Workflow

Here's a realistic simplified workflow:

Step 1

Alert arrives

↓

Step 2

Validate the alert

Is it real or noise?

↓

Step 3

Collect evidence

Logs, endpoint telemetry, network data, user activity.

↓

Step 4

Build a timeline

What happened before/during/after?

↓

Step 5

Determine scope

One machine?

One user?

Entire organization?

↓

Step 6

Determine severity

Low?

Medium?

High?

Critical?

↓

Step 7

Contain/escalate if necessary

↓

Step 8

Document everything


Documentation

Don't underestimate this.

A SOC analyst needs to be able to write:

What happened?

What evidence supports it?

What systems/users were affected?

What actions were taken?

What remains unknown?

Bad:

"Looks hacked."

Good:

"Account employee01 experienced 43 failed authentication attempts from external IP X between 02:10–02:13 UTC, followed by a successful authentication. Shortly afterward, PowerShell executed on WORKSTATION-01 and the host established an outbound connection to domain Y. Investigation is ongoing."

The second one can actually be used by another analyst.


Escalation

You don't have to solve every incident yourself.

Junior analyst might discover:

"This appears to be an actual compromise."

Then escalate to:

  • Tier 2 analyst
  • Incident response team
  • Threat hunter
  • Security engineer
  • SOC manager

depending on the organization.

Escalating isn't failing.

Failing is sitting on a confirmed compromise because you're afraid to bother someone senior.


Your First SOC Investigation

Alert

Suspicious PowerShell Activity

You have these events:

10:02:11
User: employee01
Event: Microsoft Word opened
File: Invoice.docm

10:02:14
Process: powershell.exe
Parent: WINWORD.EXE

10:02:16
PowerShell:
Downloads file from external domain

10:02:20
Process:
invoice.exe

10:02:22
DNS:
random-example.com

10:02:23
Outbound:
10.0.5.21 → 185.x.x.x:443

10:02:25
User:
employee01
Event:
Successful login to SERVER01

Now don't jump straight to "confirmed malware."

Work it like an analyst.

Your job:

1. What is the first suspicious event?

2. What makes the PowerShell activity suspicious?

3. Why is WINWORD.EXE → powershell.exe worth investigating?

4. What evidence would you want next?

5. What could the attack chain potentially be?

6. Which stage(s) of the attack lifecycle might be occurring?

7. Would you classify this as a false positive, suspicious activity, or confirmed incident based only on this evidence?

8. What would you do next as the analyst?

Take your time and answer it like you're sitting in a SOC.

Once you nail this, Chapter 5 is Windows security + Event IDs + PowerShell investigation, where I'll show you how to read actual Windows security events and start building an attack timeline from them.

Applied context

Write a decision, not just a verdict

A useful triage note states the alert, the evidence reviewed, the scope checked, the assessment and its confidence, remaining unknowns, and the next owner or action. A closed alert should explain why closure is justified.

Example: “The failed logins came from the approved VPN gateway and match the user’s reported password change. No unusual successful logons or follow-on activity were found in the available 24-hour window. Close as benign activity detected by the rule; retain the evidence and review whether tuning is appropriate.”

Knowledge check

1. What does an alert establish?

  1. A confirmed incident
  2. Activity matched a detection condition
  3. A user is guilty
  4. Data was stolen
Reveal answer & explanation

Activity matched a detection condition Investigate the event and supporting context before deciding.

2. Which note best supports a triage decision?

  1. False positive
  2. Looks fine
  3. Evidence reviewed, scope, confidence, and next action
  4. Ignore it
Reveal answer & explanation

Evidence reviewed, scope, confidence, and next action A useful note explains the decision and its limitations.

Chapter 05 / 24

Windows Security & PowerShell

Investigate Windows events, parent–child process relationships, and PowerShell activity.

Why Windows matters

Most organizations use Windows across employee computers, laptops and servers.

Attackers know this. They often exploit Windows features that administrators and employees use every day.

As an analyst, you'll investigate things like:

  • Who logged into a computer?
  • Was the login successful?
  • Which programs were executed?
  • Did someone create a new account?
  • Was PowerShell used suspiciously?
  • Did an attacker gain administrative privileges?

Your primary evidence often comes from Windows Event Logs.

Windows Event Viewer

Windows Event Viewer records activities happening on a computer.

To open it:

  1. Press Win + R.
  2. Type eventvwr.msc.
  3. Press Enter.
  4. Expand Windows Logs.
  5. Select Security.

You'll find records of authentication, account changes, permissions and other security-related activity.

The four important log categories

Log What it records
Security Logins, accounts, permissions
System Operating system events
Application Application activity
Setup Installation and update events

Important Windows Event IDs

These are worth learning. You'll encounter them in SOC investigations.

Event ID Meaning Why it matters
4624 Successful login Someone accessed an account
4625 Failed login Possible password attack
4634 Logoff Session ended
4648 Explicit credentials used Alternative credentials supplied
4672 Special privileges assigned Potential privileged access
4688 Process created A program was executed
4720 User account created Possible unauthorized account
4726 User account deleted Possible evidence destruction
4740 Account locked out Repeated failed authentication
4768 Kerberos TGT requested Domain authentication
4769 Kerberos service ticket requested Access to a domain service

Important: An event ID alone does not prove an attack. You need context.

For example, Event 4720 could be a legitimate HR administrator creating an employee account.

Understanding process execution

This is one of the most important skills in endpoint investigation.

A process is a program currently running.

Examples:

  • explorer.exe — Windows File Explorer
  • winword.exe — Microsoft Word
  • powershell.exe — PowerShell
  • cmd.exe — Command Prompt
  • chrome.exe — Google Chrome
  • svchost.exe — Windows service host

Parent and child processes

Imagine this:

WINWORD.EXE
<caption>Microsoft Word opened by employee</caption>
POWERSHELL.EXE
<caption>Child process launched by Word</caption>
INVOICE.EXE
<caption>Downloaded executable launched by PowerShell</caption>

This is called a process tree.

Why is this suspicious?

Microsoft Word normally shouldn't need to launch PowerShell, download an executable and run it.

This could indicate a malicious document containing a macro or another form of code execution.

But remember: suspicious doesn't automatically mean malicious.

PowerShell investigation

PowerShell is a Windows command-line and scripting environment.

Administrators use it for legitimate tasks. Attackers also abuse it because it can:

  • Execute scripts.
  • Download files.
  • Create users.
  • Modify system settings.
  • Interact with network resources.
  • Run commands without opening traditional applications.

Commands you should recognize

Command Purpose
Get-Process Lists running processes
Get-Service Lists Windows services
Get-LocalUser Lists local user accounts
Get-ComputerInfo Displays system information
Get-NetTCPConnection Shows network connections
Get-ChildItem Lists files and folders
Get-EventLog Reads supported event logs

These are primarily investigative or administrative commands.

Suspicious PowerShell patterns

An analyst should pay attention to commands involving:

  • Encoded commands.
  • Downloading scripts from unknown domains.
  • Hidden or unusual execution.
  • Unexpected execution under privileged accounts.
  • Commands launched by unusual parent processes.

For example, -EncodedCommand is not automatically malicious, but it deserves investigation when combined with suspicious behavior.

Building an attack timeline

A cybersecurity analyst needs to reconstruct events in chronological order.

Consider this fictional investigation:

Time Event
09:00 Employee opens an email attachment
09:02 Word launches PowerShell
09:03 PowerShell downloads an executable
09:04 Executable starts running
09:05 Computer contacts an unfamiliar external IP
09:07 New user account created
09:09 Employee account accesses a server

A possible interpretation:

  1. Initial access — malicious attachment opened.
  2. Execution — PowerShell runs.
  3. Payload delivery — executable downloaded.
  4. Command and control — external communication established.
  5. Persistence — new account potentially created.
  6. Lateral movement — access to another server potentially obtained.

These are possible attack stages, not confirmed conclusions. You need supporting evidence for each.

Practical analyst investigation

When you investigate suspicious Windows activity, collect:

  • Username and account privileges.
  • Computer hostname.
  • Event ID and timestamp.
  • Parent and child process names.
  • Process command line.
  • File path and SHA-256 hash.
  • Source and destination IP addresses.
  • DNS queries and network connections.
  • Related logins and account changes.

Then ask:

What happened before the suspicious activity, during it, and after it?

That's how you turn disconnected logs into an investigation.


Your Chapter 5 practical examination

You're the SOC analyst. Your SIEM generates an alert:

Alert: Suspicious Account Creation

WINDOWS SECURITY EVENTS | Time | Event | |---|---| | 11:02:01 | Event 4625 — Failed login | | 11:02:05 | Event 4625 — Failed login | | 11:02:09 | Event 4624 — Successful login | | 11:03:12 | Event 4688 — PowerShell started | | 11:04:20 | Event 4720 — New account created | | 11:05:10 | Event 4672 — Special privileges assigned |
All events occurred on workstation WS-014. The successful login used account employee01.

Practice & review

1. Which event first suggests suspicious activity?

  1. 4624
  2. 4625
  3. 4720
  4. 4672
Reveal answer & explanation

4625 The failed logins are the first suspicious signals. They could indicate attempted unauthorized access.

2. What does Event ID 4688 tell you?

  1. A user logged out
  2. A process was created
  3. An account was deleted
  4. A password changed
Reveal answer & explanation

A process was created 4688 records process creation. You need the process name, command line and parent process.

3. Why is Event 4720 important?

  1. A new account was created
  2. A computer shut down
  3. A network connection closed
  4. A user logged out
Reveal answer & explanation

A new account was created An unexpected account could be used to maintain access.

4. What does Event 4672 indicate?

  1. Failed login
  2. Special privileges assigned
  3. Account deletion
  4. File downloaded
Reveal answer & explanation

Special privileges assigned This indicates special privileges were assigned to a login session. It does not independently prove privilege escalation.

5. What should you investigate next?

  1. Immediately delete every account
  2. Ignore the alert
  3. Identify who created the account and inspect its privileges and process history
  4. Shut down the entire organization
Reveal answer & explanation

Identify who created the account and inspect its privileges and process history Correct. Establish who performed the action, whether it was authorized, and what happened around it.

One final challenge: Beyond the multiple-choice questions, explain in your own words how an attacker could go from failed logins to creating a privileged account.

Chapter 06 / 24

Malware & Adversary Behaviour

Recognize malware behaviour and use MITRE ATT&CK to describe adversary actions.

What exactly is malware?

Malware means malicious software. It's software designed to harm systems, steal information, disrupt operations or gain unauthorized access.

Not every suspicious program is malware. Analysts examine its behaviour and evidence before making that conclusion.

The main types of malware

1. Ransomware
  Encrypts files or systems and demands payment to restore access.
  <text color="secondary" size="xs">Example: Files become inaccessible and a ransom note appears.</text>
</box>

2. Trojan
  Malicious software disguised as legitimate software.
  <text color="secondary" size="xs">Example: A fake invoice application that secretly installs malware.</text>
</box>

3. Worm
  Malware that can spread between systems, often without requiring users to manually execute it on every device.
</box>

4. Spyware
  Secretly monitors activity and collects information.
</box>

5. Keylogger
  Records keyboard input, potentially capturing passwords and sensitive information.
</box>

6. RAT — Remote Access Trojan
  Gives an attacker remote access to a compromised system.
</box>

7. Botnet
  A collection of compromised devices controlled by an attacker.
</box>

Other terms worth knowing:

  • Rootkit: Hides malicious activity and maintains privileged access.
  • Backdoor: A hidden method of accessing a system.
  • Dropper: Delivers or installs another malicious component.
  • Loader: Loads additional malware into a system.
  • Cryptojacker: Secretly uses computing resources to mine cryptocurrency.

How malware infects a computer

Let's walk through a realistic example.

An employee receives an email:

Email
From: billing@unknown-company.example

Subject: Outstanding Invoice — Immediate Payment

Your invoice is attached. Please review and process payment immediately.

Invoice.docm Microsoft Word macro-enabled document
This is a fictional training example.

The employee opens the attachment.

A possible sequence:

  • Initial access
    Attacker delivers a malicious attachment.
    
  • Execution
    The document triggers malicious code.
    
  • Payload delivery
    Malware is downloaded onto the computer.
    
  • Persistence
    Malware attempts to survive a reboot or maintain access.
    
  • Command and control
    The infected device communicates with attacker-controlled infrastructure.
    
  • Impact
    The attacker may steal data, encrypt files or disrupt operations.
    

This is one possible attack chain, not a mandatory sequence. Real attacks can skip, repeat or reorder stages.

Static vs dynamic malware analysis

This is a major distinction in cybersecurity.

Static analysis means examining a file without executing it.

Examples:

  • Calculate its SHA-256 hash.
  • Examine file metadata.
  • Inspect strings contained in the file.
  • Check its file type.
  • Examine its structure and signatures.

Dynamic analysis means observing what a file does while it executes in a controlled environment.

Examples:

  • Does it create new files?
  • Does it modify the registry?
  • Does it launch PowerShell?
  • Does it connect to an external server?
  • Does it create new user accounts?
Static analysis Dynamic analysis
Does not execute the file Executes in a controlled environment
Examines file characteristics Observes runtime behaviour
Can be safer and quicker Can reveal actual behaviour
May miss hidden behaviour Malware may detect the sandbox

What is a sandbox?

A sandbox is an isolated environment used to examine suspicious files without exposing normal production systems.

Important: Never experiment with unknown malware on your personal laptop. Use an appropriately isolated lab or professional analysis environment.

Hashes and Indicators of Compromise

A hash is a fixed-length value generated from data using a hashing algorithm.

Think of it as a digital fingerprint of a file.

Example:

File: invoice.exe

SHA256:
a3f5c8d9e1b7...

Even a small change to the file will generally produce a different hash.

Common algorithms:

  • MD5
  • SHA-1
  • SHA-256

For security investigations, SHA-256 is generally preferred over MD5 and SHA-1.

What is an IOC?

IOC = Indicator of Compromise.

Examples:

IOC Example
Malicious IP 185.x.x.x
Suspicious domain example-malicious.test
File hash SHA-256 value
Filename invoice.exe
Registry key Unexpected persistence entry
Account Unauthorized administrator

An IOC helps an analyst identify evidence associated with a possible compromise.

But an IOC is not absolute proof. IP addresses can be shared, domains can change ownership, and files can be modified.

MITRE ATT&CK — Your attacker's behaviour map

is a knowledge base documenting how real-world attackers behave.

Instead of simply saying:

"Someone hacked the computer."

You can describe the observed behaviour using standardized tactics and techniques.

The difference between tactics, techniques and procedures

  • Tactic: What is the attacker trying to achieve?
  • Technique: How are they trying to achieve it?
  • Procedure: How did they actually perform it?

Example:

Level Example
Tactic Credential Access
Technique Credential Dumping
Procedure Using a particular tool to extract credentials

Enterprise ATT&CK tactics

These are the main tactic categories you'll encounter:

Tactic Meaning
Reconnaissance Gathering information about a target
Resource Development Preparing infrastructure and tools
Initial Access Getting into a system
Execution Running malicious code
Persistence Maintaining access
Privilege Escalation Gaining higher permissions
Defense Evasion Avoiding detection
Credential Access Stealing credentials
Discovery Learning about the environment
Lateral Movement Moving between systems
Collection Gathering valuable information
Command and Control Communicating with compromised systems
Exfiltration Stealing data out of the environment
Impact Damaging or disrupting systems

You don't need to memorize every technique today. Understand what each tactic represents.

Malware investigation tools

These are useful tools to recognize as a SOC analyst.

****
  Examines network traffic and packets.

  <a href="https://www.wireshark.org/">Official website</a>
</box>

****
  Checks files, hashes, domains and IP addresses against multiple security engines.

  <a href="https://www.virustotal.com/">Official website</a>
</box>

****
  Examines running processes and their relationships.

  <a href="https://learn.microsoft.com/en-us/sysinternals/">Microsoft Sysinternals</a>
</box>

****
  Interactive malware analysis sandbox.

  <a href="https://any.run/">Official website</a>
</box>

****
  Records detailed system activity, including process creation and network connections.

  <a href="https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon">Official documentation</a>
</box>

One warning: Don't upload confidential company documents, private data or sensitive files to public analysis services such as VirusTotal without authorization.


Practical SOC investigation

Now let's put everything together.

CASE FILE: MAL-006

Suspected Malware Infection

FICTIONAL CORPORATE ENVIRONMENT
Computer: HR-014

User: employee02

Investigation timeline:

Time Observed activity
08:30 Employee opens attachment
08:31 WINWORD.EXE launches PowerShell
08:32 PowerShell downloads unknown executable
08:33 invoice.exe executes
08:34 Unknown external IP contacted
08:36 New scheduled task created
08:40 Large outbound data transfer

YOUR MISSION
Determine what happened, identify the possible attack stages, and recommend the next response.

Knowledge check

Practice & review

1. Which malware category could this represent?

  1. Ransomware only
  2. Trojan or downloader
  3. Worm only
  4. Definitely spyware
Reveal answer & explanation

Trojan or downloader The unknown executable may be a Trojan or downloader. The evidence doesn't establish its exact malware family.

2. Which activity indicates execution?

  1. Employee opens the attachment
  2. WINWORD launches PowerShell
  3. Large data transfer
  4. External IP exists
Reveal answer & explanation

WINWORD launches PowerShell The process launch is evidence of code execution.

3. What does the scheduled task suggest?

  1. Persistence
  2. Reconnaissance
  3. Exfiltration
  4. Initial access
Reveal answer & explanation

Persistence Scheduled tasks can be abused to execute code again later.

4. Which activity suggests possible exfiltration?

  1. Opening Word
  2. Downloading the executable
  3. Large outbound data transfer
  4. Creating a scheduled task
Reveal answer & explanation

Large outbound data transfer Large outbound transfers may indicate data theft. You must inspect the destination and contents where possible.

5. What should you do first as the analyst?

  1. Delete all company files
  2. Ignore it
  3. Follow incident procedures and coordinate containment of the affected endpoint
  4. Immediately pay the attacker
Reveal answer & explanation

Follow incident procedures and coordinate containment of the affected endpoint Containment should follow organizational procedures. Preserve evidence and coordinate with the incident response team.

One question without multiple choice

Imagine you're writing an incident report to your security manager.

Explain what happened in this investigation from the first suspicious event to the final data transfer. Identify at least three MITRE ATT&CK tactics and explain why you chose them.


Chapter 07 / 24

Vulnerability & Patch Management

Interpret vulnerability findings and prioritize remediation using exposure and business impact.

What is a vulnerability?

A vulnerability is a weakness in software, hardware, configurations or security procedures that could be exploited.

Examples:

  • An outdated Windows operating system.
  • A web application with SQL injection.
  • A server using weak passwords.
  • An exposed database.
  • A router running outdated firmware.
  • An incorrectly configured firewall.

Think of a company building a house.

  • The house = IT infrastructure.
  • The unlocked window = vulnerability.
  • The burglar = threat actor.
  • Breaking through the window = exploit.
  • The stolen property = impact.

Your job is to help identify and reduce those weaknesses.

Vulnerability vs Threat vs Exploit vs Risk

These terms are related, but they are NOT interchangeable.

Term Meaning
Vulnerability A weakness
Threat Something capable of causing harm
Exploit A method or code that takes advantage of a weakness
Risk Potential loss or damage from a threat exploiting a vulnerability
Mitigation Reducing the likelihood or impact
Remediation Fixing the underlying problem

Example:

A company's server has an outdated application.

  • Vulnerability: The application contains a security flaw.
  • Threat: A cybercriminal may target the server.
  • Exploit: The attacker uses the flaw to gain unauthorized access.
  • Risk: Company information could be stolen.
  • Remediation: Update the application to a secure version.

What is CVE?

stands for Common Vulnerabilities and Exposures.

It is a system that gives publicly known cybersecurity vulnerabilities standardized identification numbers.

For example:

CVE-2021-44228

This identifies the famous Log4Shell vulnerability.

A CVE identifier usually follows this format:

CVE-YEAR-NUMBER

CVE-2021-44228
│   │    │
│   │    └── Unique identifier
│   └─────── Year assigned
└─────────── CVE prefix

Why does CVE matter?

Imagine a company uses 500 different applications.

Instead of describing a vulnerability in a different way every time, security teams can use its CVE identifier to find information about the same vulnerability.

You can investigate CVEs through:

What is CVSS?

stands for Common Vulnerability Scoring System.

It provides a standardized way to measure the severity of a vulnerability.

The CVSS score ranges from 0.0 to 10.0.

Score Severity
0.0 None
0.1–3.9 Low
4.0–6.9 Medium
7.0–8.9 High
9.0–10.0 Critical

Example

Imagine you discover two vulnerabilities:

Vulnerability A

9.8 / 10

Potentially severe remotely exploitable weakness.

Vulnerability B

2.1 / 10

Limited impact and difficult exploitation.

Which one should the security team prioritize?

Usually A.

But here's something important:

CVSS severity is not the same as business risk.

A critical vulnerability on an isolated test computer might be less urgent than a high-severity vulnerability on an internet-facing production server containing sensitive customer information.

You must consider:

  • How exposed is the system?
  • Is there a known active exploit?
  • Does the organization use the affected software?
  • What data does the system contain?
  • What would happen if it were compromised?

What is a zero-day vulnerability?

A zero-day vulnerability is a security flaw for which the affected vendor has had zero days to provide a fix at the point it is exploited or disclosed.

In practice, the term is commonly used for vulnerabilities exploited before a patch is available.

Example:

A hacker discovers an unknown weakness in a company's operating system and exploits it before the vendor releases a security update.

Why is it dangerous?

  • No official patch may exist.
  • Traditional security controls may not detect it.
  • Organizations may not know they're vulnerable.
  • Attackers may exploit it before defenders can respond.

Possible temporary protections include:

  • Disabling the affected service.
  • Restricting network access.
  • Applying security workarounds.
  • Increasing monitoring.
  • Deploying compensating controls.

Vulnerability scanning vs penetration testing

These are two different activities.

Vulnerability scanning
Identifies known weaknesses and misconfigurations.
Penetration testing
Safely tests whether weaknesses can actually be exploited within an authorized scope.
Vulnerability scanning Penetration testing
Finds potential weaknesses Tests security weaknesses
Often automated Often involves manual testing
Can cover many systems Usually has a defined scope
Produces vulnerability reports Produces findings and demonstrated impact

A vulnerability scanner might report that a server has a vulnerable version of software.

A penetration tester may demonstrate whether that weakness allows unauthorized access.

Neither activity guarantees that every vulnerability has been found.

Patch management

A patch is a software update that fixes bugs, security vulnerabilities or other problems.

Patch management is the process of identifying, testing, approving and deploying updates.

Typical patch management lifecycle

  • Identify
    Find outdated or vulnerable software.
    
  • Assess
    Determine severity, exposure and business impact.
    
  • Prioritize
    Decide which vulnerabilities need attention first.
    
  • Test
    Test the patch in a controlled environment.
    
  • Deploy
    Install the approved patch on affected systems.
    
  • Verify
    Confirm the patch was successfully installed and the vulnerability is addressed.
    
  • Document
    Record the changes, results and remaining risks.
    

Why not install every patch immediately?

Because updates can sometimes break applications, interrupt operations or cause compatibility issues.

For example, an airport operations system cannot simply be taken offline during critical operations without considering operational safety.

That's why patching requires planning and risk assessment.

Vulnerability management tools

These are worth recognizing as a cybersecurity analyst.

****
  Scans systems for vulnerabilities and configuration weaknesses.

  <a href="https://www.tenable.com/products/nessus">Official website</a>
</box>

****
  Open-source vulnerability scanning technology.

  <a href="https://www.greenbone.net/">Official website</a>
</box>

****
  Cloud-based vulnerability and security management platform.

  <a href="https://www.qualys.com/">Official website</a>
</box>

****
  Helps identify, assess and prioritize weaknesses across an organization's devices.

  <a href="https://learn.microsoft.com/en-us/defender-vulnerability-management/">Official documentation</a>
</box>

Practical case study — Your first vulnerability report

You're working as a security analyst for a fictional airport company.

Your vulnerability scanner produces this report:

Vulnerability Scan Report
SYSTEM: AIRPORT-OPS-SERVER01

9.8

CVSS Score
| Finding | Details | |---|---| | Software | Outdated server application | | CVE | CVE-2021-44228 | | Vulnerability | Log4Shell | | Exposure | Internet-facing | | Exploit status | Public exploitation known | | Asset | Airport operations server | | Data | Operational and employee information |
Your responsibility

Assess the risk, recommend remediation and explain the urgency to your security manager.

Knowledge check

Practice & review

1. What does CVE-2021-44228 identify?

  1. A malware family
  2. The Log4Shell vulnerability
  3. A Windows Event ID
  4. A firewall rule
Reveal answer & explanation

The Log4Shell vulnerability It is the identifier assigned to the Log4Shell vulnerability affecting Apache Log4j.

2. What does CVSS 9.8 indicate?

  1. Low severity
  2. Medium severity
  3. High severity
  4. Critical severity
Reveal answer & explanation

Critical severity A score of 9.0–10.0 is Critical.

3. Why is this finding especially concerning?

  1. The server is internet-facing and exploitation is known
  2. The server has a keyboard
  3. The company uses Windows
  4. The server has a hostname
Reveal answer & explanation

The server is internet-facing and exploitation is known Exposure and known exploitation increase the practical risk.

4. What should happen first?

  1. Ignore it until the next annual scan
  2. Assess exposure and coordinate urgent mitigation with the responsible team
  3. Delete the server immediately
  4. Publish the vulnerability report publicly
Reveal answer & explanation

Assess exposure and coordinate urgent mitigation with the responsible team Urgently assess the affected application and exposure, then coordinate mitigation or patching under the organization's change and incident procedures.

5. Does CVSS alone determine business priority?

  1. Yes, always
  2. No, business impact and exposure also matter
Reveal answer & explanation

No, business impact and exposure also matter Risk-based prioritization combines severity with asset criticality, exposure, exploitability and business impact.

Analyst assignment

Forget the multiple choice for a moment.

Imagine your manager asks:

"We discovered a critical vulnerability on an airport operations server. What would you recommend, and why?"

Give me your response as if you're actually the security analyst.

  1. The immediate risks.
  2. Why the vulnerability needs urgent attention.
  3. What mitigation you recommend.
  4. How you would verify the fix.
  5. What you would tell management.

Next: Chapter 8 — Active Directory, Identity Management, Authentication, Kerberos & Privilege Escalation.

Applied context

Prioritize beyond a severity score

Combine technical severity with whether the asset is exposed, whether exploitation is known, the privileges required, asset criticality, and available mitigations. CISA’s KEV catalog is evidence of exploitation; EPSS estimates exploitation probability for supported CVEs over a defined future period. Neither replaces local context.

After a patch, verify the running version, rescan when appropriate, and check whether exploitation may already have occurred. A successful installation message alone does not establish that the risk is resolved.

Chapter 08 / 24

Identity, Active Directory & Kerberos

Understand enterprise identity and investigate account compromise, authentication abuse, and privilege changes.

What is Identity and Access Management (IAM)?

IAM stands for Identity and Access Management.

It controls:

  • Who can access an organization's systems.
  • What resources they can access.
  • What actions they're allowed to perform.
  • How their identity is verified.

Imagine an airport company with 200 employees.

Not everyone should have access to everything.

Employee Appropriate access
HR officer Employee records
Finance officer Financial systems
Airport operations officer Operations systems
IT administrator Approved IT management tools
Security analyst Security monitoring systems

This is IAM in practice.

Authentication vs Authorization

These two terms are essential.

  • Authentication (AuthN): Proves who you are.
  • Authorization (AuthZ): Determines what you're allowed to do.

Example:

You log into a company system using your username and password.

That's authentication.

The system allows you to view your own employee records but not payroll records belonging to everyone else.

That's authorization.

What is Active Directory?

(AD) is Microsoft's directory service used by organizations to manage users, computers, groups and permissions in a Windows domain.

Instead of configuring every employee computer individually, administrators can centrally manage them.

For example, an organization might have:

COMPANY.LOCAL
│
├── Users
│   ├── Shahulan
│   ├── Ahmed
│   └── Mohamed
│
├── Groups
│   ├── HR
│   ├── Finance
│   ├── Operations
│   └── IT Administrators
│
├── Computers
│   ├── HR-PC-01
│   ├── OPS-PC-01
│   └── FIN-PC-01
│
└── Servers
    ├── FILE-SERVER
    ├── HR-SERVER
    └── DOMAIN-CONTROLLER

This is a simplified illustration of an organization's directory structure.

Important Active Directory terminology

Term Meaning
Domain Managed network environment
Domain Controller (DC) Server that provides domain authentication and directory services
User Account Digital identity for a person
Computer Account Identity for a computer in the domain
Security Group Collection of users or computers with shared permissions
Organizational Unit (OU) Container used to organize directory objects
Group Policy (GPO) Centralized configuration and security settings
Domain Admin Highly privileged domain-level administrative role
Service Account Account used by an application or service

Important: A Domain Controller is one of the most sensitive systems in a Windows domain. Compromising it can put the entire domain at risk.

What is the principle of least privilege?

This is one of the most important security principles.

Least privilege means giving users only the permissions necessary to perform their jobs.

Imagine an employee working in airport operations.

They need access to their shift schedule and operational applications.

They do not need:

  • Access to payroll administration.
  • Permission to create domain administrators.
  • Access to every employee's medical records.
  • Permission to modify domain-wide security policies.

Why?

Because if their account gets compromised, the attacker's available permissions are limited.

This is also why administrators should avoid using their privileged accounts for everyday activities.

What is Kerberos?

is an authentication protocol commonly used in Windows Active Directory environments.

It allows users and services to authenticate without repeatedly sending their passwords across the network.

Think of it as a digital ticket system.

The three important components

Component Meaning
Client The user or computer requesting access
KDC Key Distribution Center; issues authentication tickets
Service The resource the user wants to access

The KDC runs on a Domain Controller in a typical Active Directory environment.

How Kerberos authentication works

1. User logs in
<caption>Employee authenticates using their domain credentials.</caption>
Requests authentication
2. Domain Controller / KDC
<caption>Verifies authentication and issues a Ticket Granting Ticket (TGT).</caption>
Requests access to a service
3. Service ticket
<caption>KDC issues a Ticket Granting Service ticket (TGS) for the requested service.</caption>
4. Access granted
<caption>The service validates the ticket and applies its access permissions.</caption>

Two terms you absolutely need to remember:

  • TGT: Ticket Granting Ticket. Used to request access tickets for services.
  • TGS: Ticket Granting Service ticket. Used to access a particular network service.

Why does a SOC analyst care?

Because unusual Kerberos activity can indicate:

  • Password attacks.
  • Credential theft.
  • Attempts to obtain service account credentials.
  • Unauthorized access to domain resources.
  • Attempts to forge authentication tickets.

We'll look at those attacks shortly.

NTLM vs Kerberos

Both are Windows authentication mechanisms.

Kerberos NTLM
Ticket-based authentication Challenge-response authentication
Commonly used in Active Directory domains Often used for compatibility and certain legacy scenarios
Supports mutual authentication Does not provide the same standard mutual-authentication model
Uses a KDC Does not require a KDC

A SOC analyst should recognize both because attackers may abuse weaknesses in authentication systems.

Important identity security technologies

These are common terms you'll see in security reports and job interviews.

Term Meaning
MFA Multi-Factor Authentication
2FA Two-Factor Authentication
SSO Single Sign-On
RBAC Role-Based Access Control
ABAC Attribute-Based Access Control
PAM Privileged Access Management
LDAP Lightweight Directory Access Protocol
GPO Group Policy Object

MFA — Multi-Factor Authentication

MFA requires more than one type of verification.

The three common factor categories:

  1. Something you know — password or PIN.
  2. Something you have — security key or authenticator device.
  3. Something you are — fingerprint or facial recognition.

For example:

  • Username and password.
  • Then a verification through an authenticator app.

Even if an attacker steals the password, MFA can make account compromise harder.

However, MFA isn't invincible. Attackers may use phishing, stolen session tokens or MFA fatigue attacks.

RBAC — Role-Based Access Control

Permissions are assigned based on a person's role.

For example:

  • HR role → HR systems.
  • Finance role → Finance systems.
  • Operations role → Operations systems.

PAM — Privileged Access Management

PAM helps organizations control highly privileged accounts.

It can provide:

  • Controlled administrator access.
  • Temporary privilege elevation.
  • Credential vaulting.
  • Session monitoring.
  • Audit trails.

Think of PAM as extra security around the keys to the kingdom.

How attackers abuse Active Directory

Attackers often target identities because compromising an account can be easier than directly breaking into a protected system.

Attack 1 — Brute force

An attacker repeatedly tries different passwords against an account.

Example:

employee01 — password attempt 1
employee01 — password attempt 2
employee01 — password attempt 3
employee01 — password attempt 4
employee01 — password attempt 5

Analyst indicators:

  • Numerous failed logins.
  • Repeated attempts against one account.
  • Unusual source IP addresses.
  • Attempts outside normal working hours.

Attack 2 — Password spraying

Instead of trying hundreds of passwords against one account, an attacker tries a small number of common passwords across many accounts.

Example:

employee01 → Password123
employee02 → Password123
employee03 → Password123
employee04 → Password123

This can help attackers avoid account lockout policies.

Analyst indicators:

  • One source IP targeting many accounts.
  • Similar login failures across different users.
  • Unusual authentication patterns.

Attack 3 — Credential stuffing

Attackers use previously leaked username/password combinations against other services.

Why does this work?

Because some people reuse passwords across websites.

Analyst indicators:

  • Login attempts from unfamiliar locations.
  • Multiple accounts targeted.
  • Successful logins following repeated failures.
  • Unusual access patterns.

Attack 4 — Pass-the-Hash

This is an authentication attack involving the abuse of stolen password hashes.

A password hash is not the original password. However, certain Windows authentication mechanisms can allow attackers to authenticate using stolen hash material without knowing the plaintext password.

Analyst indicators:

  • Suspicious privileged authentication.
  • Unexpected access to multiple computers.
  • Unusual authentication patterns involving NTLM.
  • Evidence of credential dumping.

Attack 5 — Kerberoasting

Kerberoasting targets service accounts associated with Service Principal Names (SPNs).

At a high level:

  1. An attacker gains access to a domain account.
  2. They request service tickets for accounts with SPNs.
  3. They obtain ticket material.
  4. They attempt offline password cracking.
  5. Weak service account passwords may be recovered.

Why is this dangerous?

Service accounts sometimes have excessive permissions or weak, long-standing passwords.

Analyst indicators:

  • Unusual volumes of service ticket requests.
  • Requests involving numerous SPNs.
  • Unexpected activity from ordinary user accounts.
  • Suspicious authentication patterns.

Attack 6 — Golden Ticket

A Golden Ticket attack involves forging Kerberos Ticket Granting Tickets using compromised domain Kerberos secrets, particularly the krbtgt account's key.

This is extremely serious because it can allow an attacker to impersonate domain identities.

Analyst indicators:

  • Suspicious or anomalous Kerberos tickets.
  • Unusual ticket lifetimes or authentication patterns.
  • Unexpected privileged domain access.
  • Other evidence of Domain Controller compromise.

Attack 7 — MFA fatigue

An attacker repeatedly sends authentication approval requests to a victim, hoping the person eventually approves one out of frustration.

Analyst indicators:

  • Numerous MFA requests.
  • Repeated denied requests.
  • Unexpected approval.
  • Successful login immediately afterward.

Windows Event IDs for identity investigations

You already learned some Windows Event IDs in Chapter 5. Let's expand that knowledge.

Event ID Meaning
4624 Successful login
4625 Failed login
4648 Explicit credentials used
4672 Special privileges assigned
4720 User account created
4722 User account enabled
4723 Password change attempted
4724 Password reset attempted
4725 User account disabled
4726 User account deleted
4732 Member added to a local security group
4728 Member added to a global security group
4738 User account changed
4740 Account locked out
4768 Kerberos TGT requested
4769 Kerberos service ticket requested
4771 Kerberos pre-authentication failed
4776 NTLM credential validation

Remember: An event is evidence of an action, not proof of malicious intent.

For example, Event 4728 could indicate that an administrator legitimately added a new employee to a security group.

But if an ordinary employee account suddenly adds itself to a privileged group, that's worth investigating.

How to investigate a compromised employee account

Imagine your SIEM generates this alert:

SOC ALERT: Possible Account Compromise
DOMAIN: COMPANY.LOCAL | Time | Event | |---|---| | 01:12 | 20 failed logins for employee04 | | 01:14 | Successful login from unfamiliar IP | | 01:16 | Kerberos service tickets requested | | 01:18 | Employee04 added to Administrators group | | 01:20 | Login to FILE-SERVER | | 01:23 | Large number of files accessed |
INITIAL ASSESSMENT Multiple indicators suggest possible account compromise and privilege escalation.

Your investigation workflow

  • Identify the account
    Who owns employee04? Is this activity expected?
    
  • Investigate authentication
    Examine failed and successful logins, source IPs, locations and authentication methods.
    
  • Investigate privilege changes
    Who added employee04 to the Administrators group? Was it authorized?
    
  • Investigate lateral movement
    Why did employee04 access FILE-SERVER? Which systems were accessed?
    
  • Investigate data access
    Which files were accessed? Was anything copied or transferred externally?
    
  • Contain and escalate
    Follow incident response procedures. Coordinate account restriction, credential resets, endpoint isolation and evidence preservation as appropriate.
    

How organizations defend Active Directory

A good security analyst should understand attacks and their countermeasures.

Threat Defensive measure
Brute force Account lockout policies, MFA, monitoring
Password spraying Password protection, MFA, authentication monitoring
Credential stuffing Unique passwords, MFA, breached-password detection
Pass-the-Hash Credential protection, restrict NTLM, endpoint monitoring
Kerberoasting Strong service account passwords, managed service accounts, monitoring
Golden Ticket Protect Domain Controllers and krbtgt credentials, monitor Kerberos
MFA fatigue Number matching, phishing-resistant MFA, user awareness
Privilege escalation Least privilege, PAM, privileged group monitoring

Some additional concepts:

  • Microsoft Entra ID: Microsoft's cloud identity and access management platform.
  • Conditional Access: Applies access rules based on conditions such as device, location and risk.
  • LAPS: Helps manage and rotate local administrator passwords.
  • gMSA: Group Managed Service Account; supports managed service account passwords.
  • Protected Users: An Active Directory security group that applies additional protections to privileged authentication.

Practical examination — Active Directory attack

You're a SOC analyst at a company with 300 employees.

Your SIEM detects the following:

CASE AD-008
Account: finance01

Device: FINANCE-PC-03

Domain: COMPANY.LOCAL


| Time | Event | |---|---| | 02:01 | 15 failed login attempts | | 02:03 | Successful login | | 02:05 | Event 4769 — Multiple service tickets requested | | 02:08 | Event 4728 — Account added to privileged group | | 02:10 | Event 4624 — Login to FILE-SERVER | | 02:14 | Unusual access to financial records |
All times are fictional and based on a training scenario.

Test your knowledge

Practice & review

1. What is the most likely initial warning sign?

  1. 15 failed login attempts
  2. Service tickets requested
  3. Financial records accessed
  4. Group membership changed
Reveal answer & explanation

15 failed login attempts Repeated failures are the earliest suspicious signal in this timeline.

2. Which attack might be associated with unusual service ticket requests?

  1. SQL injection
  2. Kerberoasting
  3. DDoS
  4. Cross-site scripting
Reveal answer & explanation

Kerberoasting Kerberoasting can involve requesting service tickets for accounts with SPNs. More evidence is needed to confirm it.

3. What does Event 4728 indicate?

  1. Successful login
  2. Account added to a global security group
  3. Password reset
  4. Account deleted
Reveal answer & explanation

Account added to a global security group The key question is which group was modified and whether the change was authorized.

4. Which stage does accessing another company's server represent?

  1. Lateral movement
  2. Reconnaissance only
  3. Initial access
  4. Data destruction
Reveal answer & explanation

Lateral movement Moving from one compromised system or account to another system can represent lateral movement.

5. What is the correct analyst response?

  1. Ignore it because the password worked
  2. Immediately delete every employee account
  3. Investigate the account, privilege change and server activity, then coordinate containment
  4. Publish the employee's password
Reveal answer & explanation

Investigate the account, privilege change and server activity, then coordinate containment Correlate the evidence, establish scope, preserve records and follow incident response procedures.

Analyst assignment

This time, no multiple-choice answers.

Your security manager asks:

"An employee's account was compromised. The attacker accessed a file server and added the account to a privileged security group. What happened, how serious is it, and what would you do?"

Explain:

  1. How the attacker might have obtained access.
  2. Why the privileged group change is dangerous.
  3. What lateral movement means in this case.
  4. What evidence you would collect.
  5. How you would contain the incident.
  6. How you would prevent it happening again.

Applied context

Modern identity: passkeys and session theft

Passkeys based on FIDO2/WebAuthn use public-key credentials bound to the relying party. They can resist common credential-phishing attacks better than passwords and one-time codes. Recovery paths and enrollment controls still matter.

MFA does not protect every session automatically. Stolen session cookies or tokens may enable access after authentication. Investigate token use, session properties, application access, and device context; coordinate revocation and credential changes through the response plan.

Chapter 09 / 24

EDR, XDR & Endpoint Investigation

Use endpoint telemetry to connect processes, files, network activity, and response actions.

What is an endpoint?

An endpoint is a device connected to an organization's network.

Examples:

  • Desktop computers.
  • Laptops.
  • Servers.
  • Workstations.
  • Mobile devices.
  • Virtual machines.

Imagine an airport company:

Device Endpoint?
HR computer Yes
Finance laptop Yes
Airport operations workstation Yes
File server Yes
Employee smartphone Yes

Why are endpoints important?

Because attackers frequently target employee devices to gain access to an organization's systems.

If an attacker compromises an employee's laptop, they might attempt to steal credentials, execute malware, or access other systems.

What is EDR?

EDR stands for Endpoint Detection and Response.

EDR software monitors endpoint activity to detect, investigate and respond to potential security threats.

Think of it as a security monitoring system installed across company computers and servers.

What does EDR monitor?

Activity Example
Processes PowerShell launching suspicious programs
Files Unknown executable being created
Network Computer contacting suspicious IP
Registry Unexpected startup modification
Accounts Suspicious account activity
Behaviour Unusual execution patterns

EDR collects endpoint telemetry and uses detection logic to identify suspicious behaviour.

What can EDR do?

  • Detect suspicious processes.
  • Identify malware.
  • Investigate process relationships.
  • Alert security analysts.
  • Isolate compromised devices.
  • Quarantine malicious files.
  • Terminate suspicious processes, where supported.
  • Collect investigation evidence.

Important: EDR doesn't magically prevent every cyberattack. It helps defenders detect and respond to threats.

EDR vs Traditional Antivirus

This distinction matters in interviews.

Traditional antivirus
Primarily identifies and blocks known malicious files and other threats using signatures and additional detection techniques.
EDR
Collects endpoint activity, detects suspicious behaviour and supports investigation and response.
Traditional antivirus EDR
Focuses on malware prevention and detection Focuses on detection, investigation and response
Often file-oriented Also examines behaviour and telemetry
May provide limited investigation context Provides richer endpoint investigation context
Usually simpler workflows More advanced response capabilities

Modern antivirus products can also have behavioural detection and response features. The distinction is about capabilities, not a strict boundary.

What is XDR?

XDR stands for Extended Detection and Response.

EDR focuses primarily on endpoints.

XDR brings together security information from multiple sources.

Imagine an organization using:

  • Endpoint security.
  • Email security.
  • Network security.
  • Cloud security.
  • Identity security.

An XDR platform can correlate information from these different systems to help analysts see the bigger picture.

EDR vs XDR

EDR XDR
Endpoint-focused Cross-domain security visibility
Monitors devices Correlates multiple security sources
Investigates endpoint threats Investigates threats across connected systems
Can isolate endpoints May coordinate broader response actions

Example:

An employee receives a phishing email.

  1. Email security detects a suspicious attachment.
  2. EDR detects Word launching PowerShell.
  3. Identity security detects unusual login activity.
  4. Network security detects suspicious outbound traffic.
  5. XDR correlates the events into a broader incident.

Instead of investigating five unrelated alerts, the analyst can investigate one connected attack story.

What is endpoint telemetry?

This is a term you'll hear constantly.

Telemetry is information collected about system activity.

EDR can collect information such as:

  • Process creation.
  • Parent and child processes.
  • Command-line arguments.
  • File creation and modification.
  • Network connections.
  • User activity.
  • Registry modifications.
  • Security events.

Example: Process tree

explorer.exe Employee opens a document
WINWORD.EXE Microsoft Word starts
powershell.exe Word launches PowerShell
invoice.exe Unknown executable runs
Illustrative process tree showing a potentially malicious execution chain.

An analyst investigates:

  1. Which user started the process?
  2. What was the parent process?
  3. What command-line arguments were used?
  4. Where did the executable come from?
  5. What is its SHA-256 hash?
  6. Did it communicate externally?
  7. Did it create persistence mechanisms?

This is called endpoint investigation.

Behavioural detection

Modern security systems don't only look for known malware files. They also look for suspicious behaviour.

For example, PowerShell is a legitimate Windows tool.

But consider these two situations:

Scenario A
An IT administrator opens PowerShell to check installed services.
Scenario B
Microsoft Word launches PowerShell, which downloads an unknown executable and starts it.

Same program. Very different context.

This is why analysts examine behaviour, relationships and surrounding events.

Important detection terms

Term Meaning
Behavioural detection Identifying suspicious actions or patterns
Signature-based detection Matching known malware signatures
Heuristic detection Using rules or characteristics to identify potentially malicious activity
Anomaly detection Identifying activity that differs from expected behaviour
Process tree Parent-child relationships between processes
Telemetry Collected activity data
Alert Notification of potentially suspicious activity
Detection rule Logic used to identify suspicious behaviour

What is a false positive?

An EDR alerts because an administrator runs a legitimate script.

The alert looks suspicious, but investigation shows it was approved maintenance.

That's a false positive.

What about a false negative?

Malicious activity occurs, but the security system fails to detect it.

That's a false negative.

Both matter. Too many false positives overwhelm analysts; false negatives allow threats to go unnoticed.

EDR response capabilities

Detection is only half the job. EDR also supports response.

Here are common response actions:

Network isolation
  Disconnects an endpoint from normal network communications while preserving an approved management connection where supported.
</box>
Quarantine
  Prevents a suspicious file from being accessed or executed.
</box>
Process termination
  Stops a suspicious running process.
</box>
Account containment
  Coordinates account disabling, session revocation or credential resets when compromise is suspected.
</box>
Evidence collection
  Collects relevant endpoint information for further investigation.
</box>

A serious warning: Isolating a device can interrupt business operations. Imagine isolating an airport operations workstation during an active flight operation. You need to coordinate with the incident response team and operational management, follow established procedures and consider safety-critical dependencies.

EDR and XDR platforms you should recognize

These are widely used products and platforms in the cybersecurity industry.

****
  Endpoint detection, investigation and response.

  <a href="https://www.microsoft.com/en-us/security/business/endpoint-security/microsoft-defender-endpoint">Official website</a>
</box>

****
  Endpoint protection, EDR and extended security capabilities.

  <a href="https://www.crowdstrike.com/platform/">Official website</a>
</box>

****
  Endpoint protection, detection and response.

  <a href="https://www.sentinelone.com/platform/">Official website</a>
</box>

****
  Extended detection and response across connected security data sources.

  <a href="https://www.paloaltonetworks.com/cortex/cortex-xdr">Official website</a>
</box>

You don't need to master every platform immediately. The investigation concepts transfer between products.

How a SOC analyst investigates an EDR alert

Here's a workflow worth learning:

  • Receive alert — Understand what triggered the detection.
  • Identify endpoint — Determine the affected computer and user.
  • Inspect process tree — Find the parent, child and related processes.
  • Examine files — Check filenames, paths, hashes and reputation.
  • Check network activity — Investigate domains, IPs and connections.
  • Build timeline — Reconstruct what happened before and after detection.
  • Determine scope — Check whether other devices or accounts are affected.
  • Respond — Contain, escalate and document according to incident procedures.

A good analyst doesn't blindly click the quarantine button whenever an alert appears. They establish what's happening, assess the impact and choose an appropriate response.

Practical SOC investigation — Case EDR-009

You're working in a SOC for a company operating 150 computers.

Your EDR platform generates this alert:

EDR ALERT

Suspicious PowerShell Execution

ENDPOINT: HR-PC-014 | Time | Activity | |---|---| | 10:02:01 | Employee opens Invoice.docm | | 10:02:04 | WINWORD.EXE launches PowerShell | | 10:02:06 | PowerShell downloads unknown file | | 10:02:09 | invoice.exe executes | | 10:02:12 | Unknown external IP contacted | | 10:02:15 | New scheduled task created | | 10:03:00 | Similar alert appears on another endpoint |
EDR findings
  • Unknown executable detected.
  • Suspicious process relationship.
  • Unusual outbound connection.
  • Possible persistence.
  • Second endpoint potentially affected.

Knowledge check

Practice & review

1. Which activity first raises a serious concern?

  1. Employee opens Word
  2. WINWORD.EXE launches PowerShell
  3. Employee logs into Windows
  4. Computer connects to printer
Reveal answer & explanation

WINWORD.EXE launches PowerShell This unusual parent-child relationship deserves investigation, especially given the later download and execution.

2. What does EDR collect to help investigate this?

  1. Only employee names
  2. Endpoint telemetry such as process, file and network activity
  3. Only internet speed
  4. Only screen brightness
Reveal answer & explanation

Endpoint telemetry such as process, file and network activity Telemetry provides evidence to reconstruct endpoint behaviour.

3. What does the scheduled task potentially indicate?

  1. Persistence
  2. Normal shutdown
  3. Data backup only
  4. DNS resolution
Reveal answer & explanation

Persistence Attackers can abuse scheduled tasks to execute code again later.

4. Why is the second endpoint important?

  1. It proves the first alert was false
  2. It may indicate a wider compromise
  3. It means the antivirus is broken
  4. It can be ignored
Reveal answer & explanation

It may indicate a wider compromise You must establish scope. The same attack may be affecting multiple endpoints.

5. What is the most appropriate response?

  1. Ignore the alerts
  2. Delete all company computers
  3. Investigate both endpoints, preserve evidence and coordinate containment
  4. Immediately uninstall EDR
Reveal answer & explanation

Investigate both endpoints, preserve evidence and coordinate containment This combines investigation, scope assessment, evidence preservation and coordinated response.

Analyst assignment

Forget the quiz for a moment.

Your manager asks:

"We detected suspicious PowerShell activity on two employee computers. One computer downloaded an unknown executable, created a scheduled task and contacted an external IP. What do you recommend?"

Explain:

  1. What makes the activity suspicious?
  2. What evidence would you collect?
  3. Why should you investigate the second computer?
  4. Would you isolate the affected computers? Explain your decision.
  5. How would you determine whether data was stolen?
  6. How would you prevent another infection?

Chapter 10 / 24

Incident Response & Evidence

Coordinate containment, preserve evidence, and support recovery with a clear incident record.

What is Incident Response?

Incident Response (IR) is the organized process of identifying, investigating, containing, removing and recovering from cybersecurity incidents.

Imagine an employee opens a malicious attachment.

The malware steals credentials, compromises a server and begins transferring company information.

The security team must:

  1. Detect the attack.
  2. Determine what happened.
  3. Stop it from spreading.
  4. Remove the threat.
  5. Restore affected systems.
  6. Learn how to prevent it happening again.

That entire process is incident response.

What is a security incident?

A security incident is an event, or series of events, that compromises or threatens the confidentiality, integrity or availability of information or systems.

Examples:

  • Ransomware infection.
  • Unauthorized account access.
  • Data theft.
  • Malware execution.
  • Compromised administrator account.
  • Unauthorized changes to critical systems.
  • Denial-of-service attack.

Remember the distinction:

Term Meaning
Event Something happened
Alert A detection system flags something
Suspicious activity Activity that needs investigation
Incident A security event requiring coordinated response

Not every alert is an incident.

The Incident Response Lifecycle

A widely used incident response approach is described in NIST guidance.

The following six phases provide a practical learning model:

  • Preparation
      Get ready before an incident happens.
    
      - Incident response plans.
      - Security tools.
      - Backups.
      - Staff training.
      - Contact lists.
    </list-item>
    <list-item>
      Identification
    
      Detect and investigate suspicious activity.
    
      - Examine alerts.
      - Review logs.
      - Identify affected systems.
      - Determine incident severity.
    </list-item>
    <list-item>
      Containment
    
      Limit the damage and prevent further spread.
    
      - Isolate affected devices.
      - Disable compromised accounts when appropriate.
      - Block malicious communication.
      - Restrict affected systems.
    </list-item>
    <list-item>
      Eradication
    
      Remove the threat and its persistence mechanisms.
    
      - Remove malware.
      - Eliminate unauthorized accounts.
      - Patch exploited vulnerabilities.
      - Address the root cause.
    </list-item>
    <list-item>
      Recovery
    
      Restore normal operations safely.
    
      - Restore clean backups.
      - Rebuild compromised systems.
      - Reset affected credentials.
      - Verify system security.
      - Monitor for reinfection.
    </list-item>
    <list-item>
      Lessons Learned
    
      Review the incident and improve defenses.
    
      - What happened?
      - How did it happen?
      - What worked?
      - What failed?
      - What needs improvement?
    </list-item>
    

Important: NIST's current incident response guidance integrates incident response across broader cybersecurity risk management. These six phases are a useful teaching framework, not a claim that every organization follows one identical sequence.

Understanding Containment

Containment deserves special attention.

Why?

Because an attacker who has compromised one computer may attempt to spread to other computers.

Imagine this:

HR-PC-01
Attacker attempts lateral movement
FILE-SERVER Potential target
FINANCE-PC Potential target
Containment
<caption>Security team isolates the affected endpoint and investigates other systems.</caption>

Three types of containment

1. Endpoint containment

Isolate an infected computer using EDR.

2. Network containment

Restrict communication with malicious IP addresses, domains or affected network segments.

3. Identity containment

Disable compromised accounts, revoke active sessions or reset credentials as appropriate.

Short-term vs long-term containment

Short-term Long-term
Isolate infected endpoint Rebuild affected endpoint
Temporarily block malicious IP Implement stronger network controls
Disable compromised account Reset credentials and improve IAM
Restrict affected server Apply permanent remediation

A crucial lesson: containment must be planned. You don't blindly disconnect critical infrastructure without considering business and safety consequences.

For example, an airport operations system may support active operational activities. Any containment decision must involve the appropriate operational and security teams.

Incident Severity Classification

Not every incident has the same level of seriousness.

Security teams classify incidents to determine how quickly and carefully they need to respond.

Severity Example
Suspicious activity blocked with no evidence of compromise
Malware detected on one non-critical workstation
Confirmed compromised employee account
Ransomware spreading across critical company infrastructure

Severity depends on several factors:

  • Number of affected systems.
  • Sensitivity of information.
  • Business impact.
  • Whether the attacker has administrator privileges.
  • Whether the attack is ongoing.
  • Whether data has been stolen.
  • Whether essential services are disrupted.

Remember: Severity and confidence are different.

You might have a high-severity alert with low confidence, or a confirmed incident with medium business impact.

Digital Evidence and Chain of Custody

When investigating a cyberattack, evidence matters.

You cannot simply tell management:

"Trust me, someone hacked the system."

You need records supporting your findings.

Common digital evidence

Evidence What it can show
System logs Events and system activity
Network logs Communication between devices
EDR telemetry Process and endpoint activity
Memory image Information present in RAM
Disk image Files and data stored on a device
Email headers Email routing and sender information
File hashes File identity and integrity checks
Authentication logs Login and account activity

What is chain of custody?

Chain of custody is the documented record of how evidence was collected, handled, transferred, stored and accessed.

Imagine collecting a compromised laptop.

You should document:

  1. Who collected it?
  2. When was it collected?
  3. Where was it collected?
  4. What condition was it in?
  5. Who handled it afterward?
  6. Where was it stored?
  7. Were forensic copies created?
  8. Were hashes calculated and verified?

Why?

Because evidence may later be reviewed by auditors, investigators, regulators or courts.

What is hashing?

A forensic investigator can calculate a SHA-256 hash of a forensic image.

If the hash remains consistent during verification, that supports the conclusion that the image has not changed.

A hash alone doesn't prove when or how evidence was collected. Proper documentation and handling are also necessary.

Root Cause Analysis

Root Cause Analysis (RCA) means identifying the underlying reason an incident happened.

Example:

A company suffers a ransomware attack.

A weak investigation might conclude:

"An employee opened a malicious attachment."

A proper investigation asks:

  • Why did the email reach the employee?
  • Why wasn't the attachment blocked?
  • Why could the document execute suspicious code?
  • Why did the employee account have excessive permissions?
  • Why wasn't the endpoint isolated earlier?
  • Why were backups accessible to the attacker?

The goal isn't simply to blame someone.

It's to identify the weaknesses that allowed the incident to happen.

Five Whys technique

Imagine ransomware infected a server.

Question Answer
Why was the server encrypted? Ransomware executed
Why did ransomware execute? An attacker deployed it
How did the attacker access the environment? A compromised administrator account
Why was that account compromised? Weak authentication and stolen credentials
Why wasn't the compromise detected earlier? Insufficient monitoring and controls

This helps teams identify improvements instead of stopping at the first obvious explanation.

Incident Response Documentation

Every serious incident should be documented.

A useful incident report includes:

CYBERSECURITY INCIDENT REPORT

TRAINING TEMPLATE



Incident ID: IR-2026-001

Incident type: Malware infection

Severity: High

Detection time: 10:02

Affected system: HR-PC-014

Affected user: employee02

Summary: Suspicious PowerShell activity resulted in the execution of an unknown executable and possible unauthorized external communication.

Evidence collected:

  • EDR process tree.
  • PowerShell command-line records.
  • File SHA-256 hash.
  • DNS and network logs.
  • Windows Security Events.

Actions taken:

  • Endpoint isolated following approval.
  • Related accounts investigated.
  • Evidence preserved.
  • Incident escalated to the response team.

Outstanding questions:

  • Was sensitive data accessed?
  • Were other endpoints compromised?
  • Was persistence established?

Current status: Under investigation.

A good incident report separates:

  • Confirmed facts.
  • Suspected activity.
  • Unknown information.
  • Actions already taken.
  • Recommended next actions.

Never present an assumption as a confirmed fact.

Incident Response Roles

A cybersecurity incident is rarely handled by one person.

Different teams have different responsibilities.

Role Responsibility
SOC Analyst Tier 1 Initial alert monitoring and triage
SOC Analyst Tier 2 Deeper investigation and analysis
Incident Responder Coordinates containment and recovery
Threat Hunter Searches for hidden or undetected threats
Digital Forensics Analyst Collects and examines evidence
Security Engineer Implements and improves security controls
CISO Oversees organizational security and major risk decisions
IT Administrator Supports systems, restoration and remediation
Legal / Compliance Advises on legal, regulatory and reporting obligations

As a beginner SOC analyst, your job is generally to detect, investigate, document and escalate according to your organization's procedures.

You aren't expected to independently make every major containment or business decision.

Important Incident Response Frameworks

These are useful names to recognize professionally.

  • — Publishes cybersecurity standards and guidance, including incident response guidance.
  • — Provides incident handling training and practical guidance.
  • — Publishes incident response resources and cybersecurity advisories.
  • — Standard for information security management systems.

Useful resources:

Practical SOC Investigation — Case IR-010

You're working as a SOC analyst for a company operating several airport facilities.

Your security monitoring system generates this alert:

INCIDENT REPORT: IR-010

Ransomware Activity Detected

FICTIONAL AIRPORT COMPANY | Time | Event | |---|---| | 09:02 | Employee opens suspicious attachment | | 09:04 | PowerShell launches | | 09:06 | Unknown executable runs | | 09:08 | Multiple files begin getting encrypted | | 09:10 | EDR detects ransomware behaviour | | 09:12 | Similar activity detected on FILE-SERVER | | 09:14 | Operations team reports inaccessible files |
Your mission: Coordinate the initial investigation and recommend incident response actions.

Knowledge check

Practice & review

1. Which incident response phase involves identifying what happened?

  1. Preparation
  2. Identification
  3. Recovery
  4. Lessons Learned
Reveal answer & explanation

Identification Identification involves detecting, validating and assessing the incident.

2. What is the immediate objective of containment?

  1. Write the final report
  2. Prevent further spread and limit damage
  3. Delete all evidence
  4. Reinstall every computer
Reveal answer & explanation

Prevent further spread and limit damage Containment limits the impact while the team investigates and plans remediation.

3. Why is FILE-SERVER especially important?

  1. It has a hostname
  2. It may contain shared or critical company data and may be affected
  3. It is always infected
  4. It cannot be isolated
Reveal answer & explanation

It may contain shared or critical company data and may be affected A server compromise can affect many users and business operations. Its actual impact must be established.

4. What does chain of custody document?

  1. Employee attendance
  2. How evidence is collected, handled and transferred
  3. Internet speed
  4. Software licensing
Reveal answer & explanation

How evidence is collected, handled and transferred It helps establish the integrity and traceability of digital evidence.

5. What happens during eradication?

  1. Remove malware and address the underlying cause
  2. Ignore the incident
  3. Restore files without checking systems
  4. Delete the incident report
Reveal answer & explanation

Remove malware and address the underlying cause Eradication removes the threat and closes the weaknesses that allowed it.

Analyst assignment

Now imagine your security manager asks:

"Ransomware has infected an employee computer and potentially reached an airport operations file server. What should our response team do?"

Answer these six questions:

  1. What makes this a critical incident?
  2. Which systems should be investigated?
  3. How would you contain the infection without unnecessarily disrupting airport operations?
  4. What evidence should be preserved?
  5. How would you eradicate the threat and restore operations?
  6. What improvements would prevent a repeat attack?

Important: In this scenario, operational safety comes first. Coordinate containment with airport operations and incident leadership rather than independently disconnecting safety-critical systems.


Applied context

Recovery is a verification task

Before restoring service, confirm that the entry point is addressed, credentials and sessions are handled, restored data is trustworthy, and monitoring can detect recurrence. Test backups and recovery procedures before an incident.

Define who can approve restoration and what evidence they need. Track recovery objectives, operational dependencies, and lessons learned with named owners.

Chapter 11 / 24

Threat Hunting & Advanced Investigation

Develop hypotheses and test them against security data to find activity that alerts may miss.

What is Threat Hunting?

Threat hunting is the proactive process of searching through systems, networks and security data to discover threats that automated security tools may have missed.

Think about it this way:

Traditional SOC monitoring Threat hunting
Waits for alerts Actively searches for threats
Investigates detected activity Looks for hidden suspicious activity
Often follows detection rules Tests hypotheses using evidence
Reacts to suspicious events Proactively searches for attacker behaviour

Example

Your EDR hasn't generated any alerts.

However, you notice:

  • An employee logs in at 03:15 AM.
  • The login originates from an unfamiliar location.
  • PowerShell executes shortly afterward.
  • A new scheduled task appears.
  • The computer communicates with an unfamiliar external domain.

No single event necessarily proves an attack.

But together?

That's something worth investigating.

The Threat Hunting Process

A practical threat hunting workflow has five stages:

  • Create a hypothesis
      Decide what suspicious activity you want to investigate.
    
      Example: An attacker may be using compromised employee accounts to access internal servers.
    </list-item>
    <list-item>
      Collect data
    
      Gather relevant logs and telemetry.
    
      - Authentication logs.
      - Windows Event Logs.
      - EDR telemetry.
      - DNS logs.
      - Firewall records.
    </list-item>
    <list-item>
      Investigate
    
      Search for unusual patterns and relationships.
    
      - Unusual login times.
      - Unexpected PowerShell execution.
      - Unknown processes.
      - Unusual outbound connections.
    </list-item>
    <list-item>
      Identify findings
    
      Determine whether the evidence indicates malicious activity, legitimate activity or something requiring more investigation.
    </list-item>
    <list-item>
      Improve detection
    
      Create or improve detection rules, document findings and escalate confirmed incidents.
    </list-item>
    

One important distinction: a threat hunt doesn't have to discover an attacker to be successful. It can also identify gaps in monitoring and improve security visibility.

Threat Hunting Hypotheses

A hypothesis is an informed assumption that you investigate using evidence.

Here are five examples:

Hypothesis What you investigate
An employee account is compromised Unusual authentication activity
Malware is hiding in PowerShell Suspicious command execution
An attacker established persistence Scheduled tasks and startup entries
Data is being stolen Unusual outbound transfers
An attacker is moving laterally Connections between internal devices

Example: Compromised account

Your hypothesis:

"An attacker may be using a compromised administrator account outside normal working hours."

You investigate:

  • Windows Event ID 4624 — successful logon.
  • Windows Event ID 4625 — failed logon.
  • Windows Event ID 4672 — special privileges assigned.
  • VPN authentication records.
  • Microsoft Entra ID sign-in logs, if applicable.

You discover an administrator account logged in from an unfamiliar source at 02:40 AM.

Next, you check what happened after authentication.

Did the account access unusual servers? Create users? Execute PowerShell? Access sensitive files?

That's threat hunting.

Understanding Indicators of Compromise (IOCs)

During threat hunting, analysts search for Indicators of Compromise.

An IOC is an observable clue that may indicate a system or account has been compromised.

Common IOCs include:

IOC Example
Malicious IP 185.XX.XX.20
Suspicious domain invoice-update-example.com
File hash SHA-256 hash of a known malicious file
Suspicious filename invoice_update.exe
Registry modification Unexpected startup entry
Unauthorized account Unknown administrator account
Unusual network traffic Unexpected outbound connection

Important: An IOC is not automatically proof of an attack.

A legitimate application could contact an unfamiliar IP. An attacker could also change their infrastructure, making an old IOC useless.

That's why analysts investigate context and behaviour.

IOC vs IOA

These two terms are easy to confuse.

  • IOC — Indicator of Compromise: Evidence that may indicate compromise has occurred.
  • IOA — Indicator of Attack: Behaviour suggesting an attack is happening or being attempted.

Example:

  • IOC: A known malicious file hash appears on a workstation.
  • IOA: Microsoft Word launches PowerShell and downloads an executable.

IOAs can be particularly useful because attackers can change their tools, filenames and IP addresses, but their behaviours may remain similar.

Behavioural Threat Hunting

This is where you start thinking like a real SOC analyst.

Instead of searching only for known malware, you search for suspicious behaviour.

Behaviour 1: Suspicious process execution

Normal-looking process tree
`explorer.exe` `chrome.exe`

Suspicious process tree
`WINWORD.EXE` `powershell.exe` `unknown.exe`
Word launching PowerShell and an unknown executable is suspicious, but context is needed before declaring it malicious.

Behaviour 2: Persistence

Persistence means an attacker attempts to maintain access to a compromised system.

Common places to investigate:

  • Windows scheduled tasks.
  • Registry Run keys.
  • Windows services.
  • Startup folders.
  • Unauthorized accounts.
  • Suspicious scripts.

Example:

An employee reports that their computer is acting strangely.

You find a scheduled task running an unknown executable every time the computer starts.

You investigate:

  1. Who created the task?
  2. When was it created?
  3. Which executable does it launch?
  4. Where is that executable stored?
  5. What account runs it?
  6. Does the executable communicate externally?

Behaviour 3: Lateral Movement

Lateral movement occurs when an attacker moves from one compromised system to another within an environment.

Example:

  1. Attacker compromises an employee workstation.
  2. Steals the employee's credentials.
  3. Accesses a file server.
  4. Attempts to access an administrator workstation.
  5. Attempts to reach a Domain Controller.

A threat hunter searches for unusual connections, authentication patterns and privilege usage across multiple machines.

Behaviour 4: Data Exfiltration

Data exfiltration means unauthorized transfer of information out of an environment.

Indicators worth investigating:

  • Unusually large outbound transfers.
  • Unexpected cloud-storage uploads.
  • Unfamiliar external destinations.
  • Large transfers outside normal working hours.
  • Unusual DNS traffic.
  • Access to sensitive files by unexpected accounts.

For example, an employee workstation normally uploads 20 MB per day, but suddenly uploads 8 GB overnight.

That doesn't automatically mean data theft. Backups and legitimate synchronization can explain large transfers. But it deserves investigation.

Threat Hunting Tools

These are tools worth recognizing and eventually learning hands-on.

****
  SIEM platform for collecting, analysing and correlating security data. Supports KQL queries.
  <text color="secondary" size="xs"><a href="https://learn.microsoft.com/en-us/azure/sentinel/">Microsoft Sentinel documentation</a></text>
</box>

****
  Searches, analyses and visualizes machine-generated data using SPL.
  <text color="secondary" size="xs"><a href="https://www.splunk.com/">Splunk official website</a></text>
</box>

****
  Examines network packets to investigate communication between devices.
  <text color="secondary" size="xs"><a href="https://www.wireshark.org/">Wireshark official website</a></text>
</box>

****
  Provides detailed Windows system activity, including process creation and network connections.
  <text color="secondary" size="xs"><a href="https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon">Sysmon documentation</a></text>
</box>

****
  Collects endpoint evidence and supports large-scale threat hunting.
  <text color="secondary" size="xs"><a href="https://docs.velociraptor.app/">Velociraptor documentation</a></text>
</box>

Introduction to Threat Hunting Queries

Now let's learn how analysts actually search for suspicious activity.

Two common query languages are:

  • KQL: Kusto Query Language, used in Microsoft Sentinel and other Microsoft security products.
  • SPL: Search Processing Language, used in Splunk.

Here's a basic KQL example.

DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName =~ "powershell.exe"
| project Timestamp, DeviceName,
          AccountName, InitiatingProcessFileName,
          ProcessCommandLine
| order by Timestamp desc

What does this do?

Command Purpose
DeviceProcessEvents Searches process activity
where Timestamp > ago(24h) Looks at the last 24 hours
FileName =~ "powershell.exe" Filters PowerShell processes
project Selects fields to display
order by Sorts newest events first

This is a starting point, not a complete malicious-activity detector.

Here's another example:

DeviceLogonEvents
| where Timestamp > ago(24h)
| where ActionType == "LogonSuccess"
| project Timestamp, DeviceName,
          AccountName, RemoteIP,
          LogonType
| order by Timestamp desc

This searches successful logons and displays their associated information.

Analyst mindset: A query finds activity. Your investigation determines whether that activity is suspicious.

Baseline Analysis — Knowing What's Normal

One of the most important threat hunting skills is understanding normal behaviour.

This is called baseline analysis.

Suppose an employee normally:

  • Logs in between 08:00 and 17:00.
  • Uses one company laptop.
  • Accesses three internal servers.
  • Transfers around 100 MB daily.

Suddenly, the same account:

  • Logs in at 03:00.
  • Connects from a new IP.
  • Accesses 15 servers.
  • Transfers 12 GB of data.

That pattern deserves investigation.

But don't jump to conclusions. Maybe the employee was authorized to perform overnight maintenance.

A good analyst compares activity against:

  1. The user's normal behaviour.
  2. The device's normal behaviour.
  3. The organization's normal behaviour.
  4. The user's role and permissions.
  5. Known maintenance schedules.

The golden rule: Unusual does not automatically mean malicious.

MITRE ATT&CK and Threat Hunting

Remember MITRE ATT&CK from Chapter 6?

It's especially useful for threat hunting because it helps organize attacker behaviour into tactics and techniques.

Some examples:

Attacker tactic Example technique
Initial Access Phishing
Execution PowerShell
Persistence Scheduled Task
Privilege Escalation Exploitation for privilege escalation
Defense Evasion Obfuscated files or information
Credential Access Credential dumping
Discovery System information discovery
Lateral Movement Remote services
Exfiltration Exfiltration over web services

Official resource: MITRE ATT&CK knowledge base.

When investigating an incident, you can map observed behaviour to ATT&CK techniques.

For example:

  • Word opens a malicious attachment.
  • PowerShell executes a downloaded payload.
  • A scheduled task maintains persistence.
  • The attacker accesses another server.
  • Data is transferred externally.

This gives your investigation a structured picture of the attack.

Threat Hunting vs Incident Response

These two disciplines work together, but they aren't the same.

Threat Hunting Incident Response
Proactively searches for threats Responds to confirmed or suspected incidents
Starts with a hypothesis Starts with an incident or detection
Looks for hidden activity Limits damage and restores operations
Improves detection coverage Coordinates containment and recovery
May discover previously unknown threats Manages the consequences of threats

A threat hunt can discover an incident, at which point the organization follows its incident response procedures.


Practical Threat Hunting Exercise

HUNT-011: Suspicious Administrator Activity
FICTIONAL AIRPORT IT ENVIRONMENT You are hunting for possible administrator account compromise.

Your SIEM provides these events:

Time Event
02:10 12 failed logins
02:14 Successful administrator login
02:16 PowerShell launched
02:18 New scheduled task created
02:22 Connection to unfamiliar external IP
02:30 Large outbound data transfer

Your task: Investigate the sequence and determine the appropriate next steps.

Questions for your investigation

  1. What is your initial threat hunting hypothesis?
  2. Which events are the strongest indicators of suspicious activity?
  3. What would you investigate about the administrator account?
  4. How would you determine whether the scheduled task is malicious?
  5. How would you investigate the outbound data transfer?
  6. At what point would you escalate this to incident response?

What evidence would you collect?

  • Authentication records.
  • Administrator account details and group memberships.
  • PowerShell command lines.
  • Scheduled task configuration and creation records.
  • Destination IP and network logs.
  • EDR process tree.
  • File and process hashes.
  • Relevant timestamps.

Don't immediately delete the scheduled task or terminate processes without following the response procedure and considering evidence preservation.

Knowledge Check

Practice & review

1. What is threat hunting?

  1. Waiting for antivirus alerts
  2. Proactively searching for hidden threats
  3. Deleting suspicious files
  4. Installing firewalls
Reveal answer & explanation

Proactively searching for hidden threats Threat hunting proactively searches for malicious activity that automated detections may have missed.

2. What is an IOC?

  1. A potential indicator of compromise
  2. A type of firewall
  3. A network protocol
  4. A backup system
Reveal answer & explanation

A potential indicator of compromise An IOC is an observable clue that may indicate compromise.

3. Which is an example of lateral movement?

  1. An employee changing their password
  2. An attacker moving from a workstation to a server
  3. A firewall blocking a connection
  4. A computer installing an update
Reveal answer & explanation

An attacker moving from a workstation to a server Lateral movement involves an attacker moving between systems within an environment.

4. What does baseline analysis help identify?

  1. Computer hardware prices
  2. Normal versus unusual activity
  3. Employee salaries
  4. Internet subscription plans
Reveal answer & explanation

Normal versus unusual activity A baseline helps analysts understand normal activity and spot deviations.

5. Which language is commonly used for Microsoft Sentinel hunting queries?

  1. HTML
  2. CSS
  3. KQL
  4. SQL only
Reveal answer & explanation

KQL KQL is commonly used to query Microsoft Sentinel and Microsoft security data.

Chapter 12 / 24

Cloud Security & Threat Detection

Apply identity, logging, and investigation skills to cloud services and container environments.

What is Cloud Computing?

Cloud computing means accessing computing resources over a network, usually the internet, instead of relying entirely on hardware owned and operated locally.

Instead of buying a physical server, a company can rent computing resources from a cloud provider.

For example, a company might use cloud services to:

  • Store employee records.
  • Host its website.
  • Run business applications.
  • Store customer databases.
  • Manage employee accounts.
  • Back up company information.
  • Run security monitoring systems.

Major cloud providers

****
  Offers services such as EC2, S3, IAM and CloudTrail.

  <text color="secondary" size="xs"><a href="https://aws.amazon.com/">Official website</a></text>
</box>

****
  Offers Virtual Machines, Entra ID, Storage and Microsoft Defender for Cloud.

  <text color="secondary" size="xs"><a href="https://azure.microsoft.com/">Official website</a></text>
</box>

****
  Offers Compute Engine, Cloud Storage, IAM and Cloud Logging.

  <text color="secondary" size="xs"><a href="https://cloud.google.com/">Official website</a></text>
</box>

The Three Cloud Service Models

You need to understand these three terms because they appear frequently in cybersecurity job descriptions.

IaaS — Infrastructure as a Service

You rent virtual infrastructure such as servers, storage and networking.

Example: AWS EC2 or Azure Virtual Machines.

Customer manages much of the operating system, applications and configuration.
PaaS — Platform as a Service

You use a managed platform to build and run applications without managing the underlying infrastructure.

Example: Azure App Service or Google App Engine.

The provider manages more of the underlying infrastructure.
SaaS — Software as a Service

You use software delivered over the internet.

Example: Microsoft 365, Gmail or Salesforce.

The provider manages the application infrastructure, while customers still manage their users, data and configurations.

Quick comparison

Model You mainly manage
IaaS OS, applications, data and configuration
PaaS Application, data and platform configuration
SaaS Users, access, data and service configuration

The more managed the service, the more responsibility the provider takes on — but the customer never gets to ignore security.

Shared Responsibility Model

This is one of the most important concepts in cloud security.

Shared Responsibility Model means the cloud provider and the customer share security responsibilities.

Imagine a company stores employee salary information in AWS.

AWS protects the underlying physical infrastructure, but the company must properly configure access to its data.

Cloud provider responsibility Customer responsibility
Physical data centers User permissions
Physical servers Data protection
Core infrastructure Account security
Infrastructure networking Cloud configuration
Hardware maintenance Application security

Responsibilities vary by service and provider.

Example

A company accidentally makes an S3 storage bucket publicly accessible.

An attacker downloads confidential employee records.

Who is responsible for the misconfiguration?

Generally, the customer.

The cloud provider supplies the service, but the customer must configure it securely.

Essential Cloud Security Terminology

Let's build your cloud security vocabulary.

Term Meaning
Cloud tenant An organization's isolated cloud environment
Cloud workload An application, service or computing task running in the cloud
Virtual Machine (VM) Software-based computer running on virtualized hardware
Object storage Storage for files and objects, such as S3
Bucket A storage container, commonly used in object storage
IAM Identity and Access Management
MFA Multi-Factor Authentication
API Application Programming Interface
Security group Rules controlling network traffic to supported cloud resources
Security posture Overall state of an environment's security
Misconfiguration Incorrect or insecure configuration
Secret Sensitive authentication information such as an API key
Access key Credential used to authenticate programmatic access
Encryption at rest Protecting stored data through encryption
Encryption in transit Protecting data while it moves across networks
Cloud audit log Record of actions performed in cloud environments

Cloud IAM — Identity and Access Management

Remember Chapter 8, where we studied Active Directory, Kerberos, permissions and privileged accounts?

Cloud IAM applies similar security principles to cloud resources.

For example, imagine a company has:

  • 10 HR employees.
  • 5 finance employees.
  • 3 IT administrators.
  • 1 security analyst.

Should every employee have access to every cloud resource?

Absolutely not.

You apply Least Privilege.

Each person receives only the permissions necessary to perform their job.

Important IAM concepts

1. User: An identity representing a person or service.

2. Role: A collection of permissions that can be assigned or assumed.

3. Policy: A set of rules defining what actions are allowed or denied.

4. Service account / workload identity: An identity used by applications and automated services.

5. MFA: An additional authentication factor beyond a password.

Example: Dangerous permissions

An ordinary employee account has permission to:

  • Read employee records.
  • Delete cloud backups.
  • Create administrator accounts.
  • Modify security settings.

That's excessive privilege.

A security analyst should investigate why those permissions exist and whether they have been abused.

Cloud Security Threats and Attacks

Cloud environments introduce security risks that SOC analysts must recognize.

1. Public storage exposure
  A storage bucket or container is accidentally made accessible to everyone.

  Risk: Confidential files become publicly accessible.
</box>

2. Exposed credentials
  API keys, passwords or access tokens are leaked through code repositories, configuration files or phishing.

  Risk: Attackers use those credentials to access cloud resources.
</box>

3. Account takeover
  An attacker compromises a cloud administrator account.

  Risk: They may create users, change permissions, access data or disable security controls.
</box>

4. Cryptojacking
  Attackers abuse cloud computing resources to mine cryptocurrency.

  Risk: High computing costs, degraded performance and compromised workloads.
</box>

5. Cloud ransomware
  Attackers compromise cloud accounts, workloads or storage and encrypt or destroy accessible data.

  Risk: Data loss, business disruption and potentially expensive recovery.
</box>

6. Cloud misconfiguration
  Insecure firewall rules, excessive permissions, exposed services or disabled logging.

  Risk: Attackers find weaknesses without necessarily exploiting a software vulnerability.
</box>

A particularly important attack: Stolen cloud credentials

Imagine an attacker obtains an employee's cloud access key.

They might:

  1. Authenticate using the stolen key.
  2. Enumerate cloud resources.
  3. Discover storage buckets.
  4. Access confidential files.
  5. Create additional credentials.
  6. Establish persistent access.
  7. Exfiltrate data.

Notice something?

The attacker might not need malware at all.

They can abuse legitimate cloud services using stolen credentials.

That's why cloud identity monitoring is extremely important.

Cloud Logging and Monitoring

This is where cloud security connects directly to your SOC analyst training.

A SOC analyst needs visibility into what users, applications and services are doing in the cloud.

Important cloud logging services

Provider Logging service What it records
AWS CloudTrail AWS account and API activity
Microsoft Azure Activity Log Azure management-plane operations
Microsoft Entra ID Sign-in and audit logs Authentication and identity changes
Google Cloud Cloud Audit Logs Administrative and resource activity

For example, AWS CloudTrail can record actions such as:

  • Someone creating an IAM user.
  • Someone changing permissions.
  • Someone accessing an S3 bucket.
  • Someone disabling a logging service.
  • Someone creating a new access key.

Example investigation

Your SIEM receives this fictional sequence:

Time Cloud event
01:15 Unusual successful login
01:17 Administrator role assumed
01:19 New access key created
01:21 Storage bucket accessed
01:25 Large data download begins
01:30 Logging configuration modified

A SOC analyst should investigate the account, source IP, authentication method, API actions, accessed resources and data transfer.

The logging configuration change is particularly concerning because an attacker may be trying to reduce visibility.

Cloud Security Monitoring Tools

These are important products and technologies to recognize.

****
  Helps identify cloud security weaknesses, threats and workload risks.

  <text size="xs" color="secondary"><a href="https://learn.microsoft.com/en-us/azure/defender-for-cloud/">Documentation</a></text>
</box>

****
  Detects suspicious activity and potential threats in AWS environments.

  <text size="xs" color="secondary"><a href="https://aws.amazon.com/guardduty/">Official website</a></text>
</box>

****
  Helps discover vulnerabilities, misconfigurations and threats in Google Cloud.

  <text size="xs" color="secondary"><a href="https://cloud.google.com/security-command-center">Official website</a></text>
</box>

****
  Provides cloud security visibility, risk prioritization and exposure analysis.

  <text size="xs" color="secondary"><a href="https://www.wiz.io/">Official website</a></text>
</box>

Three cloud security terms you'll encounter in job descriptions

Term Meaning
CSPM Cloud Security Posture Management — identifies cloud misconfigurations and security weaknesses
CWPP Cloud Workload Protection Platform — protects workloads such as VMs and containers
CNAPP Cloud-Native Application Protection Platform — combines cloud security capabilities across the application lifecycle

You don't need to memorize every vendor's product today. Understand what problem each technology solves.

Containers and Kubernetes Security

Modern applications are often deployed using containers.

What is a container?

A container packages an application and its dependencies so it can run consistently across environments.

Docker is a popular container platform.

What is Kubernetes?

Kubernetes is a platform used to deploy, manage and scale containerized applications.

Important terminology

Term Meaning
Container Isolated application environment
Docker Container platform
Image Template used to create a container
Registry Storage location for container images
Kubernetes Container orchestration platform
Pod Smallest deployable unit in Kubernetes
Cluster Group of machines managed together
Node Machine participating in a cluster
Secret Sensitive information used by applications

Security risks

  • Vulnerable container images.
  • Exposed management interfaces.
  • Stolen Kubernetes credentials.
  • Excessive container permissions.
  • Insecure secrets.
  • Compromised container registries.

Example

A company deploys an application using a vulnerable container image.

An attacker exploits the vulnerable application and gains access to the container.

The attacker then attempts to access sensitive credentials stored in the environment.

A SOC analyst investigates:

  1. Which container was compromised?
  2. Which image was used?
  3. What process executed?
  4. Did the attacker access secrets?
  5. Did the attacker interact with the Kubernetes API?
  6. Were other containers or nodes affected?

Cloud Threat Hunting — Practical KQL

Let's connect this to Chapter 11.

Microsoft Sentinel uses KQL to query security data.

Here's a fictional example using Azure Activity Logs:

AzureActivity
| where TimeGenerated > ago(24h)
| where OperationNameValue contains "Microsoft.Authorization"
| project TimeGenerated,
          Caller,
          CallerIpAddress,
          OperationNameValue,
          ActivityStatusValue
| order by TimeGenerated desc

What does this investigate?

It searches Azure activity records for operations involving authorization resources, which may include changes to access permissions.

Another example:

SigninLogs
| where TimeGenerated > ago(24h)
| where ResultType != "0"
| project TimeGenerated,
          UserPrincipalName,
          IPAddress,
          Location,
          ResultDescription
| order by TimeGenerated desc

This searches for unsuccessful sign-in events.

These queries are starting points. Table availability, field names and permissions depend on your Microsoft Sentinel data configuration.

Cloud Security Defenses

Now let's look at how organizations protect their cloud environments.

Security control Purpose
MFA Protects accounts against password-only compromise
Least privilege Limits unnecessary access
Encryption Protects sensitive information
Network segmentation Limits access between resources
Logging Records user and system activity
Backups Supports recovery after data loss
Security groups Controls network traffic
Secret management Protects API keys and credentials
Vulnerability scanning Finds vulnerable software
Conditional Access Applies access requirements based on context

Five controls I'd prioritize

  1. Require MFA for privileged accounts.
  2. Prevent public access to sensitive storage.
  3. Remove unused credentials and access keys.
  4. Enable and protect audit logging.
  5. Maintain tested, protected backups.

For critical environments, also monitor changes to security policies, administrator roles and logging configurations.


Practical SOC Case Study — CLOUD-012

CLOUD-012: Suspected AWS Account Compromise
FICTIONAL COMPANY ENVIRONMENT A company receives several AWS CloudTrail alerts.
Time Activity
02:00 Employee account logs in from unfamiliar IP
02:03 New IAM access key created
02:06 Administrator permissions assigned
02:09 S3 storage bucket accessed
02:12 8 GB of data downloaded
02:15 CloudTrail logging configuration changed


Your mission: Investigate the account compromise and recommend a response.

Your investigation questions

  1. What is the likely initial compromise?
  2. Why is creating a new access key suspicious?
  3. What evidence would confirm whether the attacker accessed confidential information?
  4. Why might changing CloudTrail logging be dangerous?
  5. How would you contain the compromised identity?
  6. How would you determine whether the attacker accessed other cloud resources?

Expected response priorities

  • Preserve relevant logs and evidence.
  • Identify the compromised identity and its permissions.
  • Revoke or disable compromised credentials through approved procedures.
  • Review active sessions and other credentials.
  • Investigate storage access and possible data exfiltration.
  • Check for additional users, roles and permission changes.
  • Restore secure logging and verify monitoring.
  • Escalate to incident response and the appropriate cloud administrators.

Don't just delete the compromised account. You need to understand what the attacker created, changed and accessed before and during containment.


Chapter 12 Examination

Practice & review

1. What does IaaS stand for?

  1. Internet as a Service
  2. Infrastructure as a Service
  3. Identity as a System
  4. Information as a Service
Reveal answer & explanation

Infrastructure as a Service IaaS provides virtual computing infrastructure such as servers, storage and networking.

2. Who is generally responsible for configuring access permissions to a customer's cloud storage?

  1. Only the internet provider
  2. The customer
  3. The computer manufacturer
  4. Nobody
Reveal answer & explanation

The customer The customer is responsible for configuring access to their cloud data and resources.

3. What does AWS CloudTrail primarily record?

  1. Employee salaries
  2. AWS account and API activity
  3. Physical building access
  4. Website design
Reveal answer & explanation

AWS account and API activity CloudTrail records AWS account activity and API calls.

4. What is CSPM used for?

  1. Cloud security posture and misconfiguration management
  2. Creating video games
  3. Managing employee payroll
  4. Encrypting every email automatically
Reveal answer & explanation

Cloud security posture and misconfiguration management CSPM identifies cloud security posture problems, including misconfigurations.

5. An attacker steals an AWS access key. What should the SOC investigate?

  1. Only the employee's browser history
  2. The identity, permissions, API activity and accessed resources
  3. Only the computer wallpaper
  4. Nothing if no malware is detected
Reveal answer & explanation

The identity, permissions, API activity and accessed resources Stolen cloud credentials can be abused directly through legitimate cloud APIs, even without malware.

Applied context

Investigate cloud control-plane activity

Cloud attacks can use legitimate APIs without deploying malware. Review who changed permissions, created credentials, disabled logs, accessed secrets, or modified storage access. Link actions by principal, session, source, resource, and time.

Distinguish control-plane audit events from data-plane access records. Not every data access is logged by default. Confirm logging coverage and retention before asserting that an account did not access data.

Chapter 13 / 24

Practical SOC Investigations

Bring the core skills together in realistic login, malware, network, and privilege investigations.

What does a SOC analyst actually do?

A Security Operations Center (SOC) analyst monitors an organization's digital environment for suspicious activity, investigates security alerts and responds according to established procedures.

A typical shift might look like this:

  • Receive alerts
      SIEM, EDR, email security and cloud security systems generate alerts.
    </list-item>
    <list-item>Triage alerts
    
      Determine which alerts deserve investigation first.
    </list-item>
    <list-item>Investigate
    
      Examine logs, accounts, processes, IP addresses and network connections.
    </list-item>
    <list-item>Determine findings
    
      Classify activity as benign, suspicious or confirmed malicious.
    </list-item>
    <list-item>Respond and escalate
    
      Follow incident procedures, preserve evidence and notify the appropriate team.
    </list-item>
    <list-item>Document
    
      Record findings, timestamps, evidence and actions taken.
    </list-item>
    

SOC Tier 1 vs Tier 2 vs Tier 3

Level Typical responsibilities
Tier 1 Monitoring, initial triage, basic investigation
Tier 2 Deeper investigations, incident handling, correlation
Tier 3 Advanced threat hunting, detection engineering, complex incidents

Job titles and responsibilities vary by organization. Some smaller SOCs combine several levels.

Your investigation toolkit

Before investigating, understand what information each tool provides.

Tool What you use it for
SIEM Search and correlate security logs
EDR Investigate endpoint activity
Wireshark Examine network packets
Event Viewer Inspect Windows logs
PowerShell Investigate Windows systems
VirusTotal Research file hashes and indicators
Sysmon Detailed Windows telemetry
MITRE ATT&CK Map attacker behaviour
Threat intelligence Research suspicious IPs and domains

These tools are complementary. No single tool tells you the entire story.

The SOC investigation methodology

When an alert arrives, follow a consistent workflow.

The 10-step investigation checklist
  • Identify the alert and detection source.
  • Record the detection timestamp.
  • Identify the affected user and device.
  • Examine the suspicious activity.
  • Review related logs and telemetry.
  • Build an event timeline.
  • Determine scope and potential impact.
  • Assess severity and confidence.
  • Escalate or respond according to policy.
  • Document your investigation.

Two concepts you must separate

Severity: How damaging could the incident be?

Confidence: How certain are you that the activity is malicious?

For example:

  • High severity, low confidence: A possible ransomware alert on a critical server.
  • High severity, high confidence: Confirmed ransomware encrypting a critical server.
  • Low severity, high confidence: Confirmed unwanted software on a non-critical workstation.

This distinction helps analysts prioritize correctly.


Practical Investigation 1 — Brute Force Attack

CASE SOC-013-A
Alert: Multiple failed authentication attempts

Affected account: finance.user

Source IP: 203.0.113.45

Target: FINANCE-PC-04

Time Event
09:00 Failed login
09:01 Failed login
09:02 Failed login
09:03 Failed login
09:04 Failed login
09:05 Successful login
203.0.113.0/24 is a documentation-only IP range, not a real attacker's address.

Step 1: Understand the alert

Five failed logins followed by a successful login.

Possible explanations:

  • Employee repeatedly entered the wrong password.
  • An application used an outdated password.
  • An attacker attempted password guessing.
  • An attacker successfully guessed or obtained the password.

Step 2: Investigate the account

You should examine:

  • Whether the login originated from a familiar location.
  • Whether the source IP is associated with the employee.
  • Whether MFA was used.
  • Whether the login time is unusual.
  • Whether other accounts were targeted.
  • What happened after successful authentication.

Step 3: Examine Windows Event IDs

Event ID Meaning
4625 Failed logon
4624 Successful logon
4740 Account locked out
4648 Explicit credentials used
4672 Special privileges assigned

Step 4: Build your conclusion

A successful login after repeated failures is suspicious, but it doesn't prove an account compromise.

You need additional evidence.

If the login is unauthorized, escalate according to incident procedures and consider account containment, session revocation and credential resets.

Analyst finding: Suspicious authentication activity requiring further investigation.

Practical Investigation 2 — Malware Execution

CASE SOC-013-B
Alert: Suspicious PowerShell execution

Device: HR-PC-014

User: employee02

Detection source: EDR

Observed process tree
<box background="surface" padding={2} radius="md" align="center">
  `explorer.exe`
  <caption>Windows desktop process</caption>
</box>
<box align="center"><icon name="arrow-down"/></box>
<box background="surface" padding={2} radius="md" align="center">
  `WINWORD.EXE`
  <caption>Microsoft Word</caption>
</box>
<box align="center"><icon name="arrow-down" color="danger"/></box>
<box background="rgba(190,60,60,0.12)" padding={2} radius="md" align="center">
  `powershell.exe`
  <span class="ce-badge ce-badge-error">Suspicious</span>
</box>
<box align="center"><icon name="arrow-down" color="danger"/></box>
<box background="rgba(190,60,60,0.12)" padding={2} radius="md" align="center">
  `invoice_update.exe`
  <span class="ce-badge ce-badge-error">Unknown executable</span>
</box>
Additional observations:
  • Executable downloaded from an unfamiliar domain.
  • External network connection established.
  • New scheduled task created.
  • EDR generated a malware behaviour alert.

Step 1: Identify the suspicious behaviour

Word launching PowerShell is unusual in many office environments.

PowerShell launching an unfamiliar executable increases concern.

A scheduled task may indicate persistence.

Step 2: Collect evidence

Evidence Why it matters
Process tree Shows execution relationships
Command line Reveals what PowerShell executed
File hash Helps identify the executable
File location Helps establish whether it is legitimate
DNS logs Shows domain lookups
Network logs Identifies external communication
Scheduled task Reveals possible persistence

Step 3: Map the behaviour to MITRE ATT&CK

Behaviour ATT&CK technique
Malicious document T1566.001 — Spearphishing Attachment
PowerShell execution T1059.001 — PowerShell
Scheduled task T1053.005 — Scheduled Task
External communication Potential command and control

Reference: MITRE ATT&CK.

Step 4: Decide what to do

A reasonable response would be:

  1. Preserve relevant EDR and system evidence.
  2. Determine whether the executable is malicious.
  3. Investigate other devices for the same indicators.
  4. Coordinate endpoint isolation if compromise is confirmed or sufficiently suspected.
  5. Investigate potential credential theft and data exfiltration.
  6. Escalate to incident response.

Analyst finding: Strong indicators of malware execution and possible persistence.

Practical Investigation 3 — Network Traffic Analysis

Now let's investigate network activity.

Your SIEM generates an alert:

CASE SOC-013-C
Alert: Unusual outbound network traffic

Device: OPS-PC-07

Field Observation
Source 192.168.10.45
Destination 198.51.100.25
Port 443
Protocol TCP
Transfer 4.8 GB outbound
Time 02:30 AM
198.51.100.0/24 is also reserved for documentation examples.

What should you investigate?

1. Destination IP

Research whether the destination is known, expected or associated with suspicious activity.

2. Port and protocol

TCP 443 commonly carries HTTPS traffic.

But encrypted traffic isn't automatically safe.

3. Transfer volume

Why did a workstation transfer 4.8 GB overnight?

4. Device owner

Was an employee performing an authorized backup or file transfer?

5. Application and process

Which process initiated the connection?

6. Data sensitivity

Did the workstation have access to confidential company information?

Wireshark example

Wireshark lets you inspect network packets.

Useful display filters:

ip.addr == 192.168.10.45

Shows packets involving the specified IP.

tcp.port == 443

Shows TCP traffic using port 443.

dns

Shows DNS packets.

http.request

Shows HTTP requests when visible in the capture.

For HTTPS, packet contents are normally encrypted, so you may need endpoint telemetry, DNS records, TLS metadata and proxy logs to understand the connection.

Analyst finding: Unusual outbound transfer requiring investigation for possible data exfiltration.

Practical Investigation 4 — Privilege Escalation

CASE SOC-013-D
Alert: Unauthorized privileged group modification

Account: temp.user

System: DC-01

Time Event
11:00 User successfully logs in
11:03 New local account created
11:05 Account added to privileged group
11:07 Administrative activity detected
11:10 Access to sensitive file server

Relevant Windows Event ID: 4728 — Member added to a security-enabled global group.

Your investigation

You need to determine:

  • Who created the account?
  • Who added it to the privileged group?
  • Was the change approved?
  • What permissions were granted?
  • What did the account access afterward?
  • Were other systems affected?
  • Was sensitive information accessed?

Don't assume every new administrator account is malicious. Approved IT maintenance can create legitimate changes.

Analyst finding: Potential unauthorized privilege escalation and account abuse.


Build an Investigation Timeline

This is one of the most valuable skills a SOC analyst can develop.

Imagine the four cases are related to the same attacker.

You discover the following combined timeline:

Attack timeline

  • 09:00 — Initial access attempt
      Multiple failed logins against an employee account.
    </list-item>
    <list-item>
      09:05 — Successful authentication
    
      Unusual login succeeds.
    </list-item>
    <list-item>
      09:10 — Execution
    
      Word launches PowerShell and an unknown executable.
    </list-item>
    <list-item>
      09:15 — Persistence
    
      A scheduled task is created.
    </list-item>
    <list-item>
      09:25 — Privilege escalation
    
      An unauthorized account is added to a privileged group.
    </list-item>
    <list-item>
      09:35 — Lateral movement
    
      The compromised account accesses another internal system.
    </list-item>
    <list-item>
      09:45 — Possible exfiltration
    
      Large outbound data transfer begins.
    </list-item>
    

This is why correlation matters.

An individual event might look harmless.

But multiple related events can reveal an attack.

Your job is to connect the evidence, establish what happened and determine the impact.

Hands-on SOC Commands

Windows PowerShell

These are useful defensive investigation commands.

Command Purpose
Get-Process Lists running processes
Get-Service Lists Windows services
Get-LocalUser Lists local accounts
Get-NetTCPConnection Displays TCP connections
Get-ScheduledTask Lists scheduled tasks
Get-FileHash Calculates file hashes
Get-WinEvent Queries Windows event logs

Example:

Get-FileHash "C:\Temp\invoice.exe" -Algorithm SHA256

This calculates the SHA-256 hash of a file.

Another example:

Get-NetTCPConnection |
Select-Object LocalAddress, LocalPort,
RemoteAddress, RemotePort, State

This displays network connections on a Windows machine.

Linux investigation commands

Command Purpose
ps aux Lists running processes
ss -tulpn Displays listening network sockets
who Shows logged-in users
last Displays login history
journalctl Reads system journal logs
ip addr Displays network interfaces
sha256sum file Calculates SHA-256 hash

These are useful starting points, not substitutes for a complete investigation.

Your Final SOC Analyst Challenge

You're now the Tier 1 SOC analyst at a fictional company called Maldives Aviation Services.

Your SIEM generates this alert:

INCIDENT MAS-2026-013
Multiple security alerts detected
Time Observation
01:00 18 failed logins
01:04 Successful administrator login
01:06 PowerShell executed
01:08 Unknown executable launched
01:10 Scheduled task created
01:13 New administrator account created
01:17 Internal file server accessed
01:21 6 GB outbound transfer

Affected systems:

  • ADMIN-PC-02
  • FILE-SERVER-01
  • DOMAIN-CONTROLLER-01

Potential impact:

  • Compromised administrator credentials.
  • Unauthorized account creation.
  • Possible data exfiltration.
  • Possible lateral movement.

Your assignment

Answer these questions as if you're reporting to your SOC manager.

  1. What is your initial assessment?
  2. Which three events concern you the most, and why?
  3. What evidence would you collect?
  4. How would you establish the attack timeline?
  5. How would you investigate whether data was stolen?
  6. What containment measures would you recommend?
  7. What is your incident severity and confidence?
  8. Write a short incident report for your manager.

Final examination

Practice & review

1. Which Windows Event ID represents a successful logon?

  1. 4625
  2. 4624
  3. 4720
  4. 4740
Reveal answer & explanation

4624 4624 records successful logons.

2. What does a process tree help an analyst understand?

  1. Computer pricing
  2. Relationships between processes
  3. Internet subscription speed
  4. Employee salaries
Reveal answer & explanation

Relationships between processes A process tree shows parent-child process relationships.

3. What does 4.8 GB of unusual outbound traffic potentially indicate?

  1. Guaranteed malware infection
  2. Potential data exfiltration requiring investigation
  3. A confirmed firewall failure
  4. Nothing worth investigating
Reveal answer & explanation

Potential data exfiltration requiring investigation Unusual outbound traffic can indicate data exfiltration, but legitimate transfers must also be considered.

4. What should an analyst do before escalating a suspected incident?

  1. Delete all logs
  2. Preserve evidence and document findings
  3. Immediately wipe every device
  4. Ignore unrelated evidence
Reveal answer & explanation

Preserve evidence and document findings Preserving evidence and documenting findings supports an effective investigation.

5. What is the difference between severity and confidence?

  1. They mean the same thing
  2. Severity measures potential impact; confidence measures certainty
  3. Severity measures internet speed
  4. Confidence measures employee permissions
Reveal answer & explanation

Severity measures potential impact; confidence measures certainty Severity concerns impact; confidence concerns how strongly the evidence supports the assessment.

Chapter 14 / 24

Interview Preparation & Career Development

Explain your reasoning clearly, practice interview scenarios, and build evidence of practical skills.

Understand the job you're applying for

A SOC Analyst (Security Operations Center Analyst) monitors an organization's systems and investigates potential security threats.

Typical responsibilities include:

  • Monitoring SIEM alerts.
  • Investigating suspicious logins.
  • Reviewing Windows and Linux logs.
  • Analysing suspicious processes.
  • Investigating malware alerts.
  • Identifying indicators of compromise.
  • Monitoring network traffic.
  • Documenting incidents.
  • Escalating confirmed threats.

SOC Analyst Tier 1 — What employers expect

Skill What you should understand
Networking IP addresses, ports, TCP, UDP, DNS, HTTP/S
Windows Event Viewer, Event IDs, PowerShell
Linux Basic terminal commands and logs
SIEM Alert investigation and log correlation
EDR Endpoint detection and investigation
IAM Authentication, authorization, MFA
Malware Malware types, hashes, suspicious execution
Incident response Identification, containment, eradication, recovery
Threat hunting Searching for suspicious activity
Reporting Clear evidence-based incident documentation

You don't need to be an expert in every area for an entry-level position. You do need to demonstrate sound fundamentals and a willingness to learn.

The most common SOC interview questions

These are questions you should be able to answer without reading from a screen.

Question 1: What is cybersecurity?

Strong answer:

"Cybersecurity is the practice of protecting systems, networks, applications and data from unauthorized access, attacks, damage and disruption."

Question 2: Explain the CIA Triad.

Strong answer:

"The CIA Triad consists of Confidentiality, Integrity and Availability. Confidentiality ensures information is only accessible to authorized users. Integrity ensures information remains accurate and unaltered. Availability ensures systems and information remain accessible when needed."

Question 3: What is the difference between a threat and a vulnerability?

Strong answer:

"A threat is something capable of causing harm, while a vulnerability is a weakness that could be exploited by a threat."

Example:

  • Threat: A cybercriminal.
  • Vulnerability: An unpatched server.
  • Exploit: A method used to abuse that weakness.
  • Risk: The potential damage resulting from exploitation.

Question 4: What is a SIEM?

Strong answer:

"A Security Information and Event Management system collects and analyses logs from multiple sources, correlates events and generates alerts to help security analysts detect and investigate suspicious activity."

Examples: Microsoft Sentinel and Splunk.

Question 5: What is the difference between IDS and IPS?

Strong answer:

"An Intrusion Detection System monitors network activity and identifies potential threats. An Intrusion Prevention System can also actively block or prevent detected malicious traffic."

Question 6: What is the difference between authentication and authorization?

Strong answer:

"Authentication verifies who a user is. Authorization determines what that authenticated user is allowed to access or do."

Question 7: What is phishing?

Strong answer:

"Phishing is a social engineering attack in which an attacker impersonates a trusted person or organization to trick someone into revealing sensitive information, opening malicious attachments or visiting malicious websites."

Question 8: What is an IOC?

Strong answer:

"An Indicator of Compromise is an observable artifact that may indicate a system or account has been compromised. Examples include malicious file hashes, suspicious IP addresses, malicious domains and unauthorized accounts."

Question 9: What is EDR?

Strong answer:

"Endpoint Detection and Response monitors endpoint activity, detects suspicious behaviour and provides investigation and response capabilities. It helps analysts investigate process execution, file activity, network connections and potential malware."

Question 10: What is incident response?

Strong answer:

"Incident response is the structured process of identifying, investigating, containing, eradicating and recovering from cybersecurity incidents, followed by reviewing lessons learned."

Technical questions that separate candidates

These questions test whether you understand what happens during an actual investigation.

Question 11: What would you do if you noticed 50 failed login attempts followed by one successful login?

Strong answer:

"I would treat it as suspicious authentication activity. I would identify the affected account, source IP, timestamps and login locations. I would examine whether MFA was used and review activity following the successful login. I would check for privilege changes, unusual resource access and lateral movement. If compromise is suspected, I would preserve evidence and escalate according to incident response procedures."

Question 12: What is Event ID 4624?

A successful Windows logon.

Other important Event IDs:

Event ID Description
4624 Successful logon
4625 Failed logon
4634 Logoff
4648 Explicit credentials used
4672 Special privileges assigned
4688 Process created
4720 User account created
4728 Member added to global security group
4740 Account locked out

Question 13: What would you do if Microsoft Word launched PowerShell unexpectedly?

Strong answer:

"I would investigate the parent-child process relationship, PowerShell command line, file hashes, file locations and any network connections. I would examine EDR telemetry and determine whether a malicious document or script was involved. If malicious execution is confirmed or strongly suspected, I would follow the organization's containment and escalation procedures."

Question 14: What is lateral movement?

"Lateral movement is when an attacker moves from one compromised system to another within an organization's environment, often to access additional resources or gain greater control."

Question 15: What is the difference between a false positive and a false negative?

  • False positive: A security system flags legitimate activity as malicious.
  • False negative: Malicious activity occurs but the detection system fails to identify it.

Question 16: What is the difference between hashing and encryption?

Hashing Encryption
One-way transformation Reversible with the correct key
Used to verify integrity Used to protect confidentiality
Example: SHA-256 Example: AES

Question 17: What is the difference between TCP and UDP?

"TCP is connection-oriented and provides reliable, ordered delivery. UDP is connectionless and does not guarantee delivery or ordering, but has lower protocol overhead."

Question 18: What would you do if an EDR detected ransomware?

Strong answer:

"I would validate the alert, identify the affected endpoint and examine process activity, file modifications and network connections. I would assess whether the ransomware is spreading and coordinate isolation with the incident response team. I would preserve evidence, investigate other affected systems and support eradication and recovery."

Question 19: What is MITRE ATT&CK?

"MITRE ATT&CK is a knowledge base of adversary tactics and techniques based on observed attacker behaviour. Security analysts use it to understand attacks, map investigation findings and improve detection coverage."

Question 20: What is the difference between vulnerability scanning and penetration testing?

  • Vulnerability scanning identifies known weaknesses.
  • Penetration testing attempts to exploit weaknesses within an authorized scope to evaluate real-world security impact.

HR and behavioural interview questions

Technical knowledge isn't everything. Employers also want someone who can communicate, work under pressure and follow procedures.

This is where your aviation operations and safety background can become an advantage.

Question 21: Tell me about yourself.

Here's a possible answer based on your career background:

" I have experience in airport operations and safety, where attention to detail, following procedures, risk awareness and communication are extremely important. My interest in technology and cybersecurity has led me to develop knowledge in networking, Windows security, SIEM, incident response and threat detection. I'm now looking to build a career in cybersecurity, particularly in security operations, where I can combine my operational experience with my technical knowledge."

Don't memorize it word for word. Make it sound like you.

Question 22: Why do you want to become a SOC analyst?

"I enjoy investigating problems, identifying unusual activity and understanding how systems work. Cybersecurity combines technical analysis, critical thinking and risk management. I'm particularly interested in threat detection and incident response because I want to help organizations identify and respond to security threats before they cause significant damage."

Question 23: You don't have professional cybersecurity experience. Why should we hire you?

"Although I'm still developing my professional cybersecurity experience, I've built a foundation in networking, Windows security, SIEM concepts, incident response and cloud security. My previous operational experience has also taught me to follow procedures, remain attentive, communicate clearly and take risks seriously. I'm willing to learn, accept feedback and develop my technical skills."

Question 24: How do you handle pressure?

"In operational environments, I've learned that pressure requires clear communication, prioritization and following established procedures. I avoid making assumptions, assess the situation and focus on the most important risks first."

Question 25: What would you do if you didn't know how to investigate an alert?

"I would first review the alert details and available documentation, then consult relevant procedures and trusted technical resources. If I still couldn't determine the correct response, I would escalate to a senior analyst rather than take an action that could compromise evidence or disrupt business operations."

That's a good answer. Pretending to know everything is a terrible strategy.

How to turn your aviation experience into a cybersecurity advantage

This is worth understanding before you attend interviews.

Your previous work wasn't cybersecurity, but several skills transfer directly.

Aviation operations and safety Cybersecurity equivalent
Hazard identification Threat identification
Risk assessment Cybersecurity risk assessment
Incident reporting Security incident reporting
Safety procedures Security policies and procedures
Operational monitoring Security monitoring
Emergency response Incident response
Investigation Security investigation
Regulatory compliance Security compliance

For example:

An Airport Safety Officer identifies a potential operational hazard, evaluates the risk, follows procedures and reports the findings.

A SOC analyst identifies suspicious activity, evaluates the security risk, follows procedures and reports the findings.

The technical subject is different, but the discipline of investigation and risk management transfers well.

How to answer scenario-based questions

Interviewers often give you a situation and ask what you would do.

Use this five-step structure:

The SOC response formula

  • Identify
      What happened? Which alert was generated?
    </list-item>
    <list-item>Investigate
    
      What logs, accounts, devices and evidence are relevant?
    </list-item>
    <list-item>Assess
    
      What is the severity, confidence and business impact?
    </list-item>
    <list-item>Respond
    
      What containment or escalation actions are appropriate?
    </list-item>
    <list-item>Document
    
      What happened, what evidence was collected and what actions were taken?
    </list-item>
    

Use this structure when you're stuck. It keeps your answer organized and demonstrates an analyst mindset.

Certifications and practical skills employers recognize

A certificate can help demonstrate learning, but employers also want proof that you can actually investigate security events.

Some useful options:

** — Cybersecurity certifications and training**
  Good for networking and cybersecurity fundamentals.

  <a href="https://www.netacad.com/">Cisco Networking Academy</a>
</box>

****
  Broad security knowledge, threats, architecture, identity and risk management.

  <a href="https://www.comptia.org/certifications/security">Official certification</a>
</box>

****
  Focuses on security operations, threat detection, incident response and Microsoft security tools.

  <a href="https://learn.microsoft.com/en-us/credentials/certifications/security-operations-analyst/">Official certification</a>
</box>

****
  Hands-on labs for networking, defensive security, Windows, Linux and SOC investigations.

  <a href="https://tryhackme.com/">Official website</a>
</box>

My suggested learning order:

  1. Finish the Cisco cybersecurity fundamentals training.
  2. Practise hands-on SOC investigations.
  3. Build familiarity with Microsoft Sentinel and KQL.
  4. Work toward Security+ if it fits your budget and career plan.
  5. Consider SC-200 when you've developed more practical experience.

You don't need to collect ten certificates before applying for an entry-level role.

Build a small SOC portfolio

This is how you demonstrate that you've done more than watch lessons.

Create a small portfolio containing:

Project What it demonstrates
Failed login investigation Authentication analysis
Windows Event ID investigation Windows security knowledge
Suspicious PowerShell investigation Endpoint analysis
Phishing email investigation Email threat analysis
Network traffic investigation Networking and Wireshark
Incident response report Documentation and response
Cloud account investigation Cloud security knowledge

For each project, include:

  • Objective.
  • Tools used.
  • Evidence collected.
  • Investigation steps.
  • Findings.
  • Conclusion.
  • Recommended response.

Use synthetic data or authorized lab environments. Never publish real company logs, employee details, credentials or confidential information.


Final SOC Analyst Mock Interview

This is your final practical assessment.

SOC Analyst — Entry-Level Interview
FICTIONAL EMPLOYER — SECURITY OPERATIONS TEAM Interviewer:

"We have detected unusual activity involving an administrator account. There were 20 failed logins, followed by a successful login from an unfamiliar IP address. Shortly afterward, PowerShell was executed and a new administrator account was created."

Question 1: What would you investigate first?

Question 2: Which Windows Event IDs would you examine?

Question 3: How would you determine whether the account was compromised?

Question 4: What containment measures would you recommend?

Question 5: How would you document and escalate your findings?



Your interviewer then asks:

"Why should we hire you instead of another candidate who already has cybersecurity work experience?"

Your answer sheet

  1. What would you investigate first?
  2. Which Windows Event IDs would you examine?
  3. How would you determine whether the account was compromised?
  4. What containment measures would you recommend?
  5. How would you document and escalate your findings?
  6. Why should we hire you over a candidate with professional cybersecurity experience?

Use these prompts to write your own incident assessment. Compare each claim with the evidence in the scenario.

Chapter 15 / 24 · Advanced study

Detection Engineering & SIEM Queries

Turn a security hypothesis into a reliable, testable detection with documented limitations.

Start with a detection hypothesis

A detection is an argument about observable activity. Begin with an attacker behaviour, explain why it matters, identify the data that can show it, and define the conditions that should generate an alert. “Detect hackers” is not testable. “Identify an office application launching a script interpreter on employee workstations” is much closer.

Write a detection specification before writing the query. Include the owner, purpose, required sources and fields, time window, expected event volume, grouping keys, thresholds, exclusions, severity rationale, investigation steps, and known blind spots. Map to ATT&CK where there is a defensible relationship. Mapping a technique does not establish full coverage of it.

Know the data contract

A SIEM receives records in particular schemas. The same concept may appear as Account, UserPrincipalName, or another field. Confirm the event source, field type, normalization, ingestion delay, retention, timezone, and collection health. A correct query over incomplete data still gives an incomplete result.

Distinguish filtering, grouping, aggregation, joins, and time windows. An overly broad join can multiply records. A grouping key that omits the target account can combine unrelated failures. A threshold without a baseline can create a flood of alerts during an expected password reset.

Worked KQL example: failed logons

This illustrative query targets the SecurityEvent table as commonly used in Microsoft Sentinel. Verify that Windows Security events are ingested and confirm the actual fields and audit settings in your workspace. It groups failed Windows logons; it does not establish a brute-force attack or account compromise.

SecurityEvent
| where TimeGenerated > ago(1h)
| where EventID == 4625
| summarize Failures=count(),
    FirstSeen=min(TimeGenerated),
    LastSeen=max(TimeGenerated)
  by Account, IpAddress, bin(TimeGenerated, 10m)
| where Failures >= 10
| order by Failures desc

One row means the same account and recorded source address met the threshold within an aligned ten-minute bucket. Bucket boundaries can split a burst. A source behind NAT can represent many users. Blank source fields need separate handling. Investigate related successes, other targeted accounts, the logon type, target host, status codes, and normal behaviour.

The same idea in SPL

The following is a schema template, not a ready-to-run query. Replace the index, sourcetype, and field names with those used in your Splunk environment.

index=YOUR_WINDOWS_INDEX sourcetype=YOUR_SOURCETYPE EventCode=4625
| bin _time span=10m
| stats count as failures min(_time) as first_seen
    max(_time) as last_seen by Account_Name Source_Network_Address _time
| where failures >= 10
| sort - failures

Use a constrained time range and selective filters. Before operationalizing the result, inspect raw events and validate how multi-value fields, event timestamps, and absent values behave.

Detection tests and quality

Test a known positive, a representative negative, and boundary cases. Include missing fields, delayed events, duplicate ingestion, an expected administrator workflow, and activity split across time buckets. Confirm that required telemetry exists on the systems the rule claims to cover.

Precision is TP / (TP + FP): the fraction of positive detections that were actually positive under your chosen ground truth. Recall is TP / (TP + FN): the fraction of actual positives detected. These measures require labeled data; you cannot calculate recall just by counting production alerts. In a controlled test with eight true-positive alerts, two false positives, and two missed positive cases, precision and recall are both 80%.

Operational measures include alert volume, analyst review time, investigation outcomes, ingestion gaps, and rule execution failures. A low alert count may mean strong prevention, low attack activity, or broken collection. Tune narrowly and document why an exclusion is safe enough, who owns it, and when it should expire.

Detection as maintained code

Store rule logic, test records, expected results, change history, and investigation guidance together. Review changes before production, test rollback, and assign an owner. Revisit detections after incidents, schema changes, software updates, and new attacker behaviours. Sigma can express portable detection logic, but conversion still needs schema mapping and platform validation.

Knowledge check

1. What should come before writing a production detection query?

  1. A testable behaviour hypothesis and data requirements
  2. A random threshold
  3. A list of vendor logos
  4. An assumption that every log exists
Reveal answer & explanation

A testable behaviour hypothesis and data requirements The hypothesis and telemetry requirements establish what can be detected and tested.

2. Does a failed-logon threshold prove account compromise?

  1. Yes
  2. No; it identifies activity needing context
Reveal answer & explanation

No; it identifies activity needing context Correlate successes, target accounts, host context, and later actions.

3. What does precision measure?

  1. TP / (TP + FP)
  2. TP / (TP + FN)
  3. The total number of logs
  4. Query duration only
Reveal answer & explanation

TP / (TP + FP) Precision measures how many positive detections were actually positive.

4. Can production alert counts alone establish recall?

  1. Yes
  2. No; recall needs knowledge of actual positive cases, including misses
Reveal answer & explanation

No; recall needs knowledge of actual positive cases, including misses You need labeled cases or another defensible source of ground truth.

5. Why test events near time-bucket boundaries?

  1. To make the query longer
  2. A burst may be split between buckets
  3. Time never matters
  4. To avoid checking raw events
Reveal answer & explanation

A burst may be split between buckets Aligned bins can split related activity and affect threshold results.

Chapter 16 / 24 · Advanced study

Packet Analysis, TLS & Network Hunting

Read traffic as evidence, understand encryption limits, and correlate observations across network sensors.

Choose the right observation point

A packet capture records what a sensor could see at a particular point and time. A capture inside a host, before NAT, after NAT, or behind a proxy may show different addresses and traffic. SPAN configurations, packet drops, asymmetric routing, offloading, and capture filters affect completeness. Record where and how the capture was collected before interpreting it.

Begin with the question you want answered: Did the host resolve a domain? Was a connection established? How much data moved? What application generated it? Define the relevant time range and endpoints, then compare packet evidence with DNS, proxy, firewall, and endpoint logs.

A practical packet-reading sequence

  1. Scope: confirm capture time, timezone, interface, host, and collection limits.
  2. Inventory: review endpoints, conversations, protocols, duration, and byte counts.
  3. Resolve: relate DNS queries and answers to later connections, while respecting TTLs, caches, and shared infrastructure.
  4. Reconstruct: review connection establishment, resets, retransmissions, direction, and application data where available.
  5. Correlate: identify the owning process, user session, and surrounding host activity.

Useful Wireshark display filters

These are display-filter examples for an existing authorized capture. Display filters select what you view after capture; capture filters use different syntax and decide what is collected.

ip.addr == 192.0.2.10
ip.src == 192.0.2.10 && tcp.dstport == 443
dns
http.request
tls.handshake.type == 1
tcp.flags.syn == 1 && tcp.flags.ack == 0
tcp.stream eq 0

Use an actual stream identifier from your capture. The address is reserved for documentation. A SYN filter shows attempts, not completed handshakes. http.request does not reveal HTTPS requests hidden inside TLS. Protocol dissection can also depend on how the capture is decoded.

What TLS hides and reveals

TLS protects application content between its endpoints, subject to protocol and configuration. Passive sensors can often observe endpoints, timing, packet sizes, and parts of connection negotiation. Exactly which handshake fields are visible depends on protocol version, session behavior, and features such as Encrypted Client Hello. Do not assume that a hostname or certificate will always be visible.

A legitimate certificate does not establish that the application is trustworthy. Shared hosting and CDNs make IP-based conclusions especially fragile. Decryption requires appropriate access, configuration, and authorization; do not assume a server private key can decrypt modern TLS sessions.

DNS investigation beyond a domain reputation score

Review the querying host and process, record type, frequency, response codes, answer changes, and connection activity that follows. Long labels, high query volume, or many nonexistent names can support a hypothesis, but software updates, telemetry, and misconfiguration may produce similar patterns.

DoH and DoT encrypt DNS traffic on the wire. Endpoint telemetry, approved resolver logs, and network policy may offer visibility that a passive port-53 view lacks. A resolver cache can also make the absence of a fresh query unsurprising.

Use flow and Zeek metadata

Zeek’s connection metadata can summarize endpoints, duration, state, and byte counts; DNS and other protocol logs add context where enabled. Field availability and meaning depend on version and configuration. Match records using identifiers and timestamps rather than assuming all nearby rows are the same conversation.

Periodic outbound connections may resemble beaconing. Check timing variation, payload size, destination infrastructure, process ancestry, and how common the pattern is among other devices. An updater can be periodic too. A large outbound transfer may be backup traffic; determine what process sent it, where it went, and whether the transfer was authorized.

Practice deliverable

Using an approved sample capture, describe one conversation from name resolution through connection closure. Provide the five-tuple, relevant timestamps, visible application details, bytes in each direction, and collection limitations. Add two plausible explanations and identify the host evidence that would discriminate between them.

Knowledge check

1. What does a TCP SYN packet establish?

  1. A connection attempt
  2. A completed application transaction
  3. A successful login
  4. A trustworthy destination
Reveal answer & explanation

A connection attempt Connection establishment and later application activity require additional evidence.

2. Can the filter http.request normally show encrypted HTTPS request bodies without decryption?

  1. Yes
  2. No
Reveal answer & explanation

No TLS encrypts application content; display filtering does not decrypt it.

3. Why record the capture point?

  1. It affects visible addresses and traffic
  2. It never changes interpretation
  3. It removes the need for timestamps
  4. It identifies every user automatically
Reveal answer & explanation

It affects visible addresses and traffic NAT, proxies, routing, and sensor configuration change what is observable.

4. Does periodic traffic prove command and control?

  1. Yes
  2. No; legitimate services can also be periodic
Reveal answer & explanation

No; legitimate services can also be periodic Correlate with process, destination, timing, and environmental context.

5. What is a good next source for an unexplained connection?

  1. The owning process and endpoint telemetry
  2. Only an IP reputation number
  3. A guess based on port 443
  4. The device wallpaper
Reveal answer & explanation

The owning process and endpoint telemetry Host context links network activity to execution and user activity.

Chapter 17 / 24 · Advanced study

Phishing, Email Security & Business Email Compromise

Investigate suspicious messages, account misuse, and business-process fraud as connected problems.

Preserve the actual message

A screenshot helps explain what a recipient saw but often omits essential evidence. Preserve the original message, full headers, message identifier, sender and recipient information, attachments, URLs, delivery time, and relevant mail-platform records. Use approved tooling to inspect attachments and URLs safely rather than opening them on an everyday workstation.

Record the difference between the display name, visible From address, Reply-To address, envelope sender, and the infrastructure that handled the message. Legitimate services can make these differ. A mismatch is a lead, not an automatic malicious verdict.

SPF, DKIM, and DMARC

SPF checks whether the sending infrastructure is authorized for the evaluated envelope identity, commonly the MAIL FROM domain. It does not directly authenticate the visible display name. Forwarding can affect SPF results.

DKIM validates a cryptographic signature over specified message content and headers for the signing domain. It supports integrity checks for the signed portions; it does not establish that the message’s business request is legitimate.

DMARC evaluates whether a passing SPF or DKIM identity aligns with the visible From domain and supplies policy and reporting mechanisms. At least one aligned passing mechanism can satisfy the check. A message can pass authentication and still be phishing when sent from a compromised account or attacker-controlled domain.

Review authentication results recorded by trusted receiving infrastructure. Attackers can insert header-looking content, so establish which header fields your platform actually generated and trusts.

A phishing investigation workflow

  1. Validate the report: preserve the message and determine the recipient’s interaction.
  2. Inspect the lure: identify impersonation, urgency, attachment or URL behavior, and the requested action.
  3. Scope delivery: find related messages using identifiers, subject patterns, sender infrastructure, URLs, and attachment hashes.
  4. Scope impact: investigate clicks, downloads, execution, sign-ins, consent grants, mailbox changes, and data access.
  5. Contain and recover: coordinate message removal, identity response, endpoint investigation, and business-process intervention.

A recipient’s report that they “only opened it” needs clarification. Did they open an attachment, preview a document, submit credentials, grant consent, approve MFA, or run a downloaded file? Translate the answer into a timeline that can be checked against logs.

URLs and attachments

Review the actual target and redirect chain, not just the link label. URL shorteners, cloud-storage links, QR codes, and legitimate document-sharing platforms can conceal the final destination. Defang indicators in reports where appropriate so they are not accidentally activated.

Hashes help identify identical attachments; a modified file has a different hash. File extensions can be misleading. Use metadata, file type, safe static inspection, and approved sandbox evidence. Do not treat a scanner’s zero detections as proof that a file is benign, and do not upload confidential documents to public scanners.

Business email compromise is also process abuse

BEC may use a compromised real mailbox and no malware. Look for payment diversion, invoice changes, payroll redirection, unusual supplier requests, or pressure to bypass verification. Investigate sign-in context, session activity, forwarding and inbox rules, delegated access, sent items, OAuth applications, and changes to recovery information where the platform exposes them.

Work with finance or the affected business team to verify high-impact requests through a known independent contact channel. Replying to the same compromised thread is not independent verification. If money has moved, follow the organization’s fraud-response and banking procedures promptly.

Containment and follow-through

Depending on the incident, response may include disabling malicious rules, revoking sessions or tokens, restricting an account, resetting credentials, removing unauthorized application grants, and searching other mailboxes. Coordinate changes, preserve evidence, and verify that access is actually removed.

After recovery, review why the message was delivered, why the request was credible, and which business controls could interrupt the fraud. Track improvements in mail policy, identity protection, reporting, user education, and payment verification with owners.

Knowledge check

1. Can an email that passes DMARC still be phishing?

  1. Yes
  2. No
Reveal answer & explanation

Yes Authentication does not guarantee a legitimate request or an uncompromised sender.

2. Which artifact best preserves email investigation details?

  1. Only a cropped screenshot
  2. The original message with full headers and relevant platform records
  3. The sender display name alone
  4. A copied subject line
Reveal answer & explanation

The original message with full headers and relevant platform records The original preserves identifiers and routing details missing from screenshots.

3. What does DKIM passing establish?

  1. The request is safe
  2. Validation of a signature for signed portions and its signing domain
  3. The attachment is harmless
  4. The recipient should pay
Reveal answer & explanation

Validation of a signature for signed portions and its signing domain Cryptographic authentication does not validate business intent.

4. What is useful evidence in a mailbox-compromise investigation?

  1. Inbox rules, sign-ins, sessions, and application grants
  2. Only the logo in the signature
  3. Only the subject
  4. Only the display name
Reveal answer & explanation

Inbox rules, sign-ins, sessions, and application grants Correlate identity and mailbox activity to scope unauthorized access.

5. How should a suspicious bank-detail change be verified?

  1. Reply to the same thread
  2. Use a known independent contact channel and approved process
  3. Trust the signature
  4. Assume DMARC settles it
Reveal answer & explanation

Use a known independent contact channel and approved process Independent verification can interrupt fraud even when a real mailbox is compromised.

Chapter 18 / 24 · Advanced study

Web Applications, APIs & Attack Investigation

Understand the application behaviors behind alerts and investigate requests in their full business and identity context.

Follow the request through the system

A web interaction may pass through a CDN, reverse proxy, WAF, application server, API gateway, and database. Each layer sees part of the request. Preserve timestamps, request identifiers, route and method, status, response size, identity, and the relevant application action. Request IDs can link layers more reliably than time alone.

A source IP may belong to a proxy or shared network. Forwarded-client headers are trustworthy only when inserted and handled by known infrastructure. Confirm how your application determines client identity before attributing activity.

Authentication, sessions, and authorization

Authentication establishes an identity according to the system’s mechanism. Session cookies and access tokens represent continuing access. Authorization decides whether that identity may perform a particular action on a particular object. An API that checks login but not ownership can expose another user’s records.

Broken object-level authorization is an API concern: changing an object reference should not let one user read or modify another user’s object without permission. To investigate, compare authenticated principal, requested object, ownership or tenant boundary, action, response, and the application’s authorization decision.

Understand common attack classes

Injection
Untrusted input influences an interpreter such as a database or shell. A suspicious request is an attempted attack until application behavior or downstream evidence supports success. Parameterized queries and safe APIs address particular injection paths.
Cross-site scripting
Attacker-controlled content executes in a victim’s browser within an application context. Output encoding must match context; appropriate sanitization and content security policy can add protection. Check where content was stored or reflected and whether a user actually rendered it.
Server-side request forgery
A server is induced to make requests chosen by an attacker. Investigate application input, server egress, accessed destinations, and returned data. Cloud metadata or internal-service access can increase impact.
Cross-site request forgery
A victim’s browser is induced to submit an unwanted authenticated request. Relevant defenses depend on request design, anti-CSRF tokens, cookie behavior, and origin validation.
File handling flaws
Uploads, path handling, and content processing can create unauthorized reads, writes, or execution. Investigate actual stored files, validation, access controls, and resulting processes.

Read status codes without overclaiming

A 200 response means the server returned a successful HTTP response according to its semantics; it does not prove that a malicious action succeeded. A 403 at the WAF does not prove the origin was never reached through another route. A 500 response may indicate an application error rather than successful exploitation. Use application state and downstream evidence.

Normal behavior also matters. A vulnerability scanner, a developer test, and an attacker can produce similar request patterns. Verify authorization, scope, timing, and the application changes that followed.

Tokens, secrets, and logs

API keys, session cookies, and bearer tokens can grant access to anyone who possesses them. Investigate their creation, permissions, use, lifetime, and revocation paths. Some token designs are self-contained; revocation behavior depends on the system. Do not paste live tokens into public decoders.

Log enough to investigate while avoiding unnecessary secrets or personal data. Prefer request IDs, actor identifiers, resource identifiers, authorization outcomes, and safe metadata. If a sensitive value was logged, treat the log as potentially sensitive evidence and assess exposure.

Example: suspicious object access

09:10Z  user=analyst-a  GET /api/reports/R-100  status=200
09:11Z  user=analyst-a  GET /api/reports/R-101  status=200
09:12Z  user=analyst-a  GET /api/reports/R-102  status=403

These records do not prove unauthorized access. Determine whether the first two reports belonged to the user or were legitimately shared. Check authorization events, response content or safe access metadata, and whether the 403 reflects a different policy. If the app returned another tenant’s report, scope similar requests and coordinate containment with the owner.

Safe practice

Use an intentionally vulnerable training app in an isolated lab, such as OWASP Juice Shop or WebGoat. Study the expected authorization and request flow before reviewing exercise traffic. The learning goal here is to reconstruct cause and impact, explain the control failure, and validate a fix. Do not test third-party production systems without permission.

Knowledge check

1. What must object-level authorization consider?

  1. Only whether someone is logged in
  2. Whether this identity may perform this action on this object
  3. Only the HTTP method
  4. Only the browser version
Reveal answer & explanation

Whether this identity may perform this action on this object Authorization is specific to the actor, action, and resource.

2. Does HTTP 200 prove a malicious database query succeeded?

  1. Yes
  2. No
Reveal answer & explanation

No Correlate application state and downstream evidence.

3. What is SSRF?

  1. A server making attacker-influenced requests
  2. A user changing a password
  3. A type of disk image
  4. A hashing algorithm
Reveal answer & explanation

A server making attacker-influenced requests Server-side request forgery abuses server-side request behavior.

4. What helps correlate CDN and application activity?

  1. A request identifier carried across layers
  2. Only the page color
  3. Only the response code
  4. Only a country flag
Reveal answer & explanation

A request identifier carried across layers Shared identifiers and normalized times support cross-layer reconstruction.

5. Should live bearer tokens be pasted into public debugging tools?

  1. Yes
  2. No; use approved local or private analysis methods
Reveal answer & explanation

No; use approved local or private analysis methods Bearer tokens may grant access and must be handled as secrets.

Chapter 19 / 24 · Advanced study

Digital Forensics & Evidence-Based Reconstruction

Preserve evidence, reason about artifacts, and build findings that another analyst can reproduce.

Define the question and authority

Forensics begins with a scoped question and authority to collect and examine data. Identify the relevant systems, time range, suspected activity, operational constraints, and evidence custodians. Coordinate with incident leadership and legal or privacy specialists when the organization’s procedures require it.

Decide what you need to preserve before changing the system. Network isolation, process termination, shutdown, account changes, and automated remediation can alter evidence. Operational and safety needs can outweigh forensic completeness; record the decision, owner, reason, and effect.

Volatility and acquisition

Memory, running processes, network connections, and ephemeral cloud instances may disappear quickly. Persistent disks and remote logs have different retention and collection challenges. Order collection according to volatility, impact, available tools, and the incident objective rather than following a rigid universal sequence.

Use approved acquisition procedures, known tools, accurate time records, and appropriate media handling. A live collection changes the system by running tools. A disk image and a logical copy preserve different things. Document the method and its limitations instead of describing every collection as a complete image.

Hashes and chain of custody

A cryptographic hash supports content identity checks. Record the algorithm and value at defined points and compare before analysis or transfer as appropriate. A matching hash does not establish that the original source was authentic, that acquisition captured everything, or that an interpretation is correct.

Chain-of-custody records describe collection, possession, transfers, access, and storage. Include the evidence identifier, source, collector, time and timezone, method, tool version, hash where applicable, storage location, and every handover. Work from a verified analysis copy when the procedure permits and protect the original.

Interpret artifacts in combination

Host artifacts can include event logs, file-system metadata, browser history, download records, scheduled tasks, services, autorun locations, process telemetry, and application records. Each artifact was created for a purpose and has specific semantics. Presence, absence, and timestamps must be interpreted in that context.

For example, a file’s existence does not prove execution. A process-creation record supports execution at its recorded time, subject to collection trust and scope. A download record, a file write, and process telemetry together form a stronger chain than a filename alone.

Memory investigation

Memory analysis can expose process information, loaded modules, network context, and other volatile structures supported by the acquisition and tool. Results depend on the operating system, capture quality, tooling, and interpretation. Tools such as Volatility 3 require supported analysis conditions; verify compatibility rather than copying a command from an unrelated lab.

Use multiple views to investigate inconsistencies, and corroborate with disk and endpoint records. A suspicious memory region needs further examination; a tool label by itself is not a complete finding.

Timeline reasoning

Separate event time, file metadata time, observation time, and collection time. Record timezone, clock drift, and ingestion delays. Sorting timestamps is a starting point, not proof of causality. Ask what could have created each artifact and what independent source supports the sequence.

Finding: suspicious script execution
Observation: process creation log records interpreter launch at 10:04Z.
Corroboration: endpoint telemetry links the process to a downloaded script.
Scope: one host examined; remote activity is not yet fully scoped.
Limitation: command-line logging was incomplete before 09:50Z.
Next step: inspect related authentication and network records.

A reproducible finding

State the question, evidence identifier, relevant record or location, tool and method, observation, interpretation, confidence, and limitations. Another analyst should be able to locate the evidence and understand how the conclusion follows. Preserve the query or command, parameters, and output references when useful.

Use precise language: “the available record shows” is different from “the attacker definitely did.” Distinguish facts, supported inferences, and unresolved hypotheses. If evidence conflicts, explain the conflict rather than omitting it.

Knowledge check

1. Does a matching hash prove the source account or device was trustworthy?

  1. Yes
  2. No; it supports a content identity check
Reveal answer & explanation

No; it supports a content identity check Hash identity is not proof of source authenticity or acquisition completeness.

2. What should a forensic finding include?

  1. Only a conclusion
  2. Evidence, method, observation, interpretation, and limitations
  3. Only a screenshot
  4. Only a tool name
Reveal answer & explanation

Evidence, method, observation, interpretation, and limitations Findings should be traceable and reproducible.

3. Does a file on disk prove it executed?

  1. Yes
  2. No
Reveal answer & explanation

No Seek process or other execution evidence.

4. Why record live-collection actions?

  1. They can change system state
  2. They never affect evidence
  3. They replace chain of custody
  4. They eliminate tool limitations
Reveal answer & explanation

They can change system state Document what changed and how it affects interpretation.

5. What is the purpose of a chain-of-custody record?

  1. Track evidence handling and transfers
  2. Prove every hypothesis
  3. Replace hashing
  4. List all employees
Reveal answer & explanation

Track evidence handling and transfers It documents the traceable handling history of evidence.

Chapter 20 / 24 · Advanced study

Python, PowerShell & Analyst Automation

Automate repetitive analysis while preserving data quality, traceability, and human judgment.

Automate a stable question

Start with a task you can perform manually and explain precisely. Examples include counting authentication failures by account, extracting indicators from an approved evidence set, validating required fields, or producing a daily data-quality summary. A script that automates a misunderstood task makes mistakes faster.

Define the input format, required fields, time range, expected output, and failure behavior. Preserve the raw input and produce a separate output. Include the script version, execution time, and parameters in a record when the output supports an investigation.

Read structured data before reaching for regular expressions

JSON and CSV parsers understand structure and escaping. Regular expressions are useful for patterns within text but can mishandle nested JSON, quoted commas, and multiline fields. Validate types, missing fields, and unexpected values explicitly.

Normalize timestamps deliberately. Prefer timezone-aware values and preserve the original string when it is evidence. Do not silently treat local time as UTC. A script that skips malformed rows should report how many were skipped and why.

Worked Python example: count synthetic logon failures

Create events.csv with the shown header and records, then save the script as count_failures.py in your lab. This example uses only Python’s standard library, reads the input, and reports malformed rows. It is a teaching tool, not a complete production detector.

timestamp,event_id,account,source_ip
2026-01-01T09:00:00Z,4625,lab-user,192.0.2.10
2026-01-01T09:00:10Z,4625,lab-user,192.0.2.10
2026-01-01T09:01:00Z,4624,lab-user,192.0.2.10
import csv
from collections import Counter
from datetime import datetime

counts = Counter()
skipped = 0

with open("events.csv", newline="", encoding="utf-8") as source:
    reader = csv.DictReader(source)
    required = {"timestamp", "event_id", "account", "source_ip"}
    if not required.issubset(set(reader.fieldnames or [])):
        raise ValueError("Missing required columns")
    for row in reader:
        try:
            stamp = datetime.fromisoformat(row["timestamp"].replace("Z", "+00:00"))
            if stamp.tzinfo is None:
                raise ValueError("Timezone required")
            event_id = int(row["event_id"])
            account = row["account"].strip()
            address = row["source_ip"].strip()
            if not account or not address:
                raise ValueError("Missing account or source")
            if event_id == 4625:
                counts[(account, address)] += 1
        except (TypeError, ValueError, KeyError):
            skipped += 1

for (account, address), count in counts.most_common():
    print(f"{account} | {address} | failures={count}")
print(f"Skipped malformed rows: {skipped}")

Expected result for the sample: two failures for lab-user from 192.0.2.10, with zero skipped rows. Notice that this counts the entire file; it does not apply a rolling time window or infer whether the successful logon was malicious.

PowerShell for defensive inspection

PowerShell objects can be filtered and exported without manually splitting formatted text. In an authorized Windows lab with access to Security logs, a constrained example is:

Get-WinEvent -FilterHashtable @{
    LogName='Security'
    Id=4625
    StartTime=(Get-Date).AddHours(-1)
} | Select-Object TimeCreated, Id, MachineName, Message

Log access and audit configuration determine what is available. Filter at the source when possible and avoid unbounded queries on busy systems. The human-readable Message can be localized; for automation, inspect the structured event fields and document how you map them.

Reliability and security

Read-only scripts still need scope controls: broad collection can expose sensitive data or overload APIs. Set timeouts, bounded pagination, rate limits, and output size limits. Handle transient errors with limited retries and report persistent failures. Make destructive actions explicit, separately reviewed, and reversible where possible.

Keep tokens and credentials outside source and outputs. Use approved secret storage and least-privilege access. Do not let an extracted filename, command, or indicator become executable shell input. Treat evidence as untrusted data.

Test the analyst outcome

Test valid input, missing columns, malformed timestamps, empty files, duplicate records, and unusual Unicode. Verify the output against a hand-calculated sample. Meaningful tests check the question the script is meant to answer, not merely that it runs.

For your portfolio, include a sanitized sample, usage instructions, expected output, limitations, and tests. A small tool that reliably answers one clear question is stronger evidence of skill than a large unexplained script.

Knowledge check

1. What is a suitable first automation task?

  1. A bounded repetitive task you can explain manually
  2. Automatically deleting every suspicious file
  3. Running unbounded queries everywhere
  4. Copying unknown shell commands
Reveal answer & explanation

A bounded repetitive task you can explain manually A stable, understood question supports reliable automation.

2. Why use a CSV parser instead of splitting on commas?

  1. It understands quoted fields and CSV structure
  2. It proves the data is true
  3. It removes all malformed input
  4. It detects malware
Reveal answer & explanation

It understands quoted fields and CSV structure Structured parsers handle format rules but still need validation.

3. What should happen to malformed input rows?

  1. Silently disappear
  2. Be handled and counted or reported
  3. Always crash without explanation
  4. Become shell commands
Reveal answer & explanation

Be handled and counted or reported Report data quality problems and preserve enough context to investigate.

4. Where should an API token be stored?

  1. In a public repository
  2. In approved secret storage outside source and output
  3. Inside every report
  4. In a screenshot
Reveal answer & explanation

In approved secret storage outside source and output Use least privilege and avoid exposing credentials.

5. Does counting failures over a whole CSV create a rolling-window brute-force detector?

  1. Yes
  2. No
Reveal answer & explanation

No Time-window logic and additional context require explicit implementation.

Chapter 21 / 24 · Advanced study

Advanced Cloud, Containers & Identity Investigations

Investigate identity-driven activity, ephemeral workloads, and cross-service impact in modern environments.

Map the environment before an incident

Cloud environments combine accounts, projects or subscriptions, identities, policies, workloads, networks, data stores, and external integrations. Build an inventory that connects business owners to these resources. Know which audit sources are enabled, where they are retained, and who can disable or alter them.

Identity is often the control point. A long-lived key, temporary role session, workload identity, or application principal can access services without an interactive desktop login. Record the principal, credential or session identifier where available, source, action, resource, and authorization outcome.

Control plane versus data plane

Control-plane activity changes or manages resources, such as creating a key or changing a policy. Data-plane activity uses the service’s data, such as reading an object. The exact distinction and logging configuration vary by provider and service.

When a storage policy becomes public, confirm whether it actually allows the suspected access, what objects are affected, and whether access evidence exists. A policy-change alert proves the change occurred according to the record; it does not alone prove which data was read. If access logs were unavailable, state that limitation.

Investigate a credential compromise

  1. Identify: determine the principal, credential type, effective permissions, and normal use.
  2. Trace: correlate sessions, API calls, policy changes, key creation, and resource access.
  3. Scope: search linked accounts, roles, applications, secrets, and data stores.
  4. Contain: coordinate credential disablement, session or token revocation where supported, policy restrictions, and workload impact.
  5. Recover: address the exposure path, restore trusted configuration, and verify continued logging.

Disabling one key may not invalidate all temporary credentials already issued through it. Confirm provider behavior and the organization’s revocation procedures. Rotate downstream secrets when the investigation supports their exposure.

Container and Kubernetes investigations

A container image is a packaged artifact; a running container is an instance with runtime state. A pod groups one or more containers according to Kubernetes design. Identify the image digest, workload, namespace, node, service account, deployment history, and runtime events. A mutable image tag is weaker identification than a digest.

Useful evidence can include orchestration audit logs, workload definitions, container stdout and stderr, image metadata, registry activity, runtime telemetry, node records, and network observations. An ephemeral workload may disappear before a traditional disk collection, so plan collection and retention in advance.

Examine privileged containers, host mounts, sensitive environment variables, service-account permissions, unexpected executions, and changes to workloads. A broad permission is a risk; correlate actual use before declaring it exploited.

CI/CD is part of the attack surface

Build systems may hold signing keys, deployment credentials, source access, and artifact-publishing rights. Review who changed pipeline definitions, approved runs, accessed secrets, or published artifacts. An attacker can alter the next deployment without touching the production host directly.

Track source commit, build identity, dependency inputs, artifact digest, provenance where available, deployment record, and production observation. An SBOM lists components; it does not prove that the build was trustworthy or that every listed vulnerability is reachable.

Cloud incident documentation

Cloud resources can change rapidly. Preserve resource identifiers, configuration snapshots, policy versions, relevant audit records, and the investigation queries. Avoid relying only on console screenshots. Record which permissions and retention settings limited your visibility.

Separate resource exposure, suspicious access, confirmed access, and confirmed exfiltration. These are different levels of evidence with different response implications. Coordinate provider support, legal, business owners, and incident leadership according to the incident plan.

Knowledge check

1. Does a storage policy change alone prove data exfiltration?

  1. Yes
  2. No
Reveal answer & explanation

No It establishes a configuration change; access and transfer need separate evidence.

2. What better identifies an exact container image?

  1. A mutable tag alone
  2. An image digest
  3. A display name
  4. A screenshot
Reveal answer & explanation

An image digest A digest identifies image content more precisely than a mutable tag.

3. Why investigate CI/CD during a cloud incident?

  1. It can hold deployment rights and influence production artifacts
  2. It cannot affect production
  3. It never contains secrets
  4. It replaces logging
Reveal answer & explanation

It can hold deployment rights and influence production artifacts Build and deployment systems are part of the trust chain.

4. Does disabling one long-lived key always revoke every temporary session it helped create?

  1. Yes
  2. No; verify service-specific behavior and revocation procedures
Reveal answer & explanation

No; verify service-specific behavior and revocation procedures Credential and session lifetimes vary by provider and mechanism.

5. What does an SBOM provide?

  1. A component inventory
  2. A guarantee of a safe build
  3. Proof of no vulnerabilities
  4. Proof of exploitation
Reveal answer & explanation

A component inventory An inventory supports analysis but does not establish overall trust or exploitability.

Chapter 22 / 24 · Advanced study

Risk, Cryptography & Incident Leadership

Connect technical findings to business decisions, resilient controls, and clear communication.

Security work exists to manage risk

A technical finding matters because it can affect people, operations, information, finances, or obligations. Describe the asset, plausible threat, weakness, potential impact, existing controls, and uncertainty. Give decision makers enough information to compare options.

A risk register should have an owner, treatment decision, actions, due dates, residual risk, and review date. Common responses include reducing, avoiding, transferring or sharing, and accepting risk within authority. A security team should not silently accept a business risk on behalf of an owner.

Cryptography as a set of tools

Encryption
Protects confidentiality when implemented and managed correctly. Symmetric encryption uses shared secret key material; asymmetric systems use a key pair. Modes, nonce handling, authentication, and key protection matter.
Hashing
Maps data to a digest for purposes such as content checking. General-purpose hashes are not the right default for storing passwords. Password storage needs a suitable password-hashing scheme with salts and appropriate cost settings.
Message authentication
Mechanisms such as HMAC use secret key material to support integrity and authenticity checks between parties that share it.
Digital signatures
Use asymmetric cryptography to support verification of signed data and the signing key’s involvement. Trust also depends on key ownership, protection, and verification policy.
Certificates
Bind information to a public key under a certification model. A valid server certificate is not a guarantee that a website’s business content is honest.

Use established libraries and organizational standards. Analysts should understand what a mechanism establishes and what evidence it produces, rather than inventing cryptographic schemes.

Key management changes the answer

Encryption is only as useful as the system around its keys. Investigate creation, access, storage, rotation, backup, revocation, and destruction. If an attacker can use the legitimate decryption service with a compromised identity, encrypted storage alone may not prevent data access.

Record whether key material, plaintext, encrypted data, or access permissions were exposed. These are different incidents. Evaluate the actual cryptographic configuration and access path before asserting that encryption eliminates impact.

Vulnerability, threat, and operational priorities

Compare the technical issue with exposure, exploitation evidence, data sensitivity, service criticality, and current controls. A lower-scored issue on a critical exposed identity path may need action before a higher-scored issue on an isolated test system.

Explain options with their likely effect, cost, operational risk, and verification plan. For example, emergency access restrictions may reduce exposure quickly while a tested patch is prepared. Document the residual risk and the owner’s decision.

Incident command and communication

Clear roles prevent parallel teams from making conflicting changes. Identify incident lead, technical investigation lead, communications owner, business owner, and relevant specialists. Use a shared timeline, action log, decision log, and agreed update cadence.

A useful leadership update includes what is known, what is affected, business impact, actions taken, major uncertainties, decisions needed, and the next update time. Avoid raw indicator lists without implications and avoid a confident conclusion unsupported by evidence.

Example: “One employee account shows suspicious access and a new forwarding rule. We have revoked the account’s active sessions and removed the rule. The available logs support mailbox access; the exact message scope is still being determined. Finance is verifying two payment-change requests through known contacts. Next update: 14:30 UTC.”

Metrics that improve decisions

Track data coverage, detection health, investigation outcomes, remediation age by risk, and completion of recovery improvements. Response times need clear definitions: when did the clock start, what counts as detection or containment, and which cases were included? Averages can hide severe outliers.

Do not reward closing alerts without assessing quality. Combine timeliness with evidence quality, case completeness, recurrence, and unresolved risk. Use post-incident reviews to improve systems rather than merely assigning blame.

Resilience and restoration

Recovery time objective describes a target restoration time; recovery point objective describes a target tolerance for data loss measured in time. These are planning objectives, not guarantees. Test dependencies, restoration procedures, backup integrity, and the ability to recover identities and keys.

Practice a tabletop exercise with a business team. Require participants to make decisions with incomplete information, record assumptions, and identify who can approve disruptive containment. Convert findings into owned, dated actions.

Knowledge check

1. Who should own acceptance of a business risk?

  1. An authorized risk owner
  2. An analyst silently closing the alert
  3. Nobody
  4. The scanner vendor
Reveal answer & explanation

An authorized risk owner Risk acceptance needs appropriate authority and documentation.

2. Is a fast general-purpose hash the default choice for storing passwords?

  1. Yes
  2. No; use an appropriate password-hashing scheme
Reveal answer & explanation

No; use an appropriate password-hashing scheme Password storage needs suitable salts and cost settings, not merely a fast digest.

3. Does encrypted storage stop all access through a compromised authorized account?

  1. Yes
  2. No
Reveal answer & explanation

No An account may still be able to ask legitimate services to decrypt data.

4. What belongs in an incident leadership update?

  1. Known facts, impact, actions, unknowns, decisions, and next update
  2. Only raw IP addresses
  3. Only an alarmist verdict
  4. A guaranteed attribution without evidence
Reveal answer & explanation

Known facts, impact, actions, unknowns, decisions, and next update Leaders need implications and decisions as well as technical facts.

5. What does RPO describe?

  1. A target tolerance for data loss measured in time
  2. A guaranteed zero-loss promise
  3. The number of firewall rules
  4. The patch version
Reveal answer & explanation

A target tolerance for data loss measured in time Recovery point objectives guide resilience planning and testing.

Chapter 23 / 24 · Advanced study

The Analyst Practice Lab & Twelve-Week Study Plan

Build practical competence through a safe lab, repeatable exercises, and evidence-based feedback.

Build a lab around the learning goal

You can begin with synthetic logs, a provided packet capture, and a text editor. A more developed lab can include a Windows VM, a Linux VM, and a log collection or analysis tool. Choose components your device can run comfortably. A small reliable lab is better than an overloaded collection of tools.

Use an isolated network, snapshots, test-only identities, and no production credentials. Understand VM networking before running exercises. Keep intentionally vulnerable applications local or explicitly isolated and remove them when finished. You do not need live malware to learn logs, triage, detection, and reporting.

For each exercise, write the objective, expected evidence, collection method, start time, actions, and cleanup plan. Label data as synthetic or lab-generated. Preserve a small representative sample and document what the lab cannot reproduce.

A twelve-week learning sequence

WeekFocusRequired deliverable
1Security foundations and identityA risk-and-control map for a fictional small business.
2Networking, DNS, and TCPAn annotated five-tuple and connection timeline from a training capture.
3Windows, Linux, and timestampsA normalized timeline with original timestamps and source limitations.
4Triage and documentationThree short cases: benign activity, suspicious activity, and confirmed malicious activity.
5Endpoint and process analysisA process-tree investigation with evidence supporting each link.
6Phishing and identityA synthetic email investigation including recipient and account scope.
7Vulnerabilities and riskA prioritized remediation plan with owners and verification criteria.
8Queries and detection engineeringA detection specification, test data, expected results, and tuning notes.
9Web and cloud evidenceA control-plane versus data-plane evidence map.
10Forensics and automationA reproducible finding and a small tested parser for synthetic records.
11Incident response and communicationA containment decision log and a leadership update from a tabletop.
12Capstones and portfolio reviewComplete the next chapter’s cases and revise two previous reports.

The schedule is a suggested order, not a deadline or promise of expertise. Repeat a week when you cannot explain the evidence independently. More experienced learners can use the deliverables as a diagnostic checklist.

A reusable lab worksheet

OBJECTIVE: What question will this lab answer?
ENVIRONMENT: Systems, versions, network boundaries, test identities.
EXPECTED EVIDENCE: Sources, fields, and timestamps.
ACTIONS: Ordered steps performed in the lab.
OBSERVATIONS: What the records actually show.
INTERPRETATION: What follows, and what does not.
VALIDATION: Comparison with known ground truth.
LIMITATIONS: Missing sources, unrealistic assumptions, tool limits.
CLEANUP: Credentials removed, vulnerable services stopped, snapshots handled.
DELIVERABLE: Report, query, detection, or tested script.

Assess your work honestly

Score each category from 0 to 3: 0 means missing; 1 means present but unsupported or incomplete; 2 means adequate and mostly reproducible; 3 means clear, corroborated, and explicit about limitations. Use the score to identify what to practice next, rather than as a professional qualification.

  • Scope: are affected identities, assets, time range, and boundaries clear?
  • Evidence: can another person locate and reproduce the important observations?
  • Reasoning: are facts, inferences, and alternative explanations distinguished?
  • Response: are actions proportionate, coordinated, and tied to the evidence?
  • Communication: can both technical and business readers understand the conclusion?

A maximum of 15 is possible for this exercise rubric. A high score on one lab does not establish broad proficiency. Seek independent feedback and revise weak areas.

Practice retrieval and transfer

Explain a concept without looking, solve a related example, then compare your answer with the source. Revisit material after a delay. Vary the scenario so you learn the principle rather than memorizing a case’s names and addresses. Connect the networking, endpoint, identity, and cloud views of the same problem.

Use the glossary flashcards for vocabulary, the chapter questions for recall and interpretation, and the capstones for reasoning. Keep a mistakes log with the error, why it occurred, and the evidence that would have corrected it.

Build a responsible portfolio

Publish only sanitized training work you are permitted to share. Include the question, environment, method, evidence excerpts, findings, limitations, and next steps. Label simulated activity accurately. Never present a lab as an employer incident or include credentials, customer data, or private infrastructure details.

A useful portfolio can be small: one detection with tests, one phishing or endpoint investigation, one packet analysis, one automation tool, and a clear incident report. Explain your own contribution and invite review.

Choose a specialization after the foundation

Possible directions include detection engineering, threat hunting, incident response, digital forensics, cloud security, application security, or security operations leadership. Deepen one area while maintaining the common skills of networking, identity, evidence handling, and communication. Expertise develops through repeated practice, feedback, and exposure to varied systems over time.

Knowledge check

1. Do you need live malware to learn basic triage and detection?

  1. Yes
  2. No; synthetic logs and approved lab activity can teach core skills
Reveal answer & explanation

No; synthetic logs and approved lab activity can teach core skills Many key skills can be practiced without handling live malware.

2. What should a lab define before the exercise?

  1. Objective, boundaries, expected evidence, and cleanup
  2. Only a tool name
  3. Only a completion badge
  4. Only a final score
Reveal answer & explanation

Objective, boundaries, expected evidence, and cleanup These make the exercise purposeful and reproducible.

3. Does finishing a twelve-week plan establish expert status?

  1. Yes
  2. No; proficiency requires demonstrated skills and continued practice
Reveal answer & explanation

No; proficiency requires demonstrated skills and continued practice Time spent and course completion are not equivalent to expertise.

4. What belongs in a public portfolio?

  1. Sanitized authorized training work with honest context
  2. Production credentials
  3. Private customer logs
  4. An invented employment history
Reveal answer & explanation

Sanitized authorized training work with honest context Protect sensitive data and distinguish simulation from real work.

5. What should happen after identifying a reasoning mistake?

  1. Record why it occurred and practice the corrective skill
  2. Hide it
  3. Only memorize the answer
  4. Assume the tool was wrong
Reveal answer & explanation

Record why it occurred and practice the corrective skill A mistakes log supports targeted improvement and transfer.

Chapter 24 / 24 · Advanced study

Capstone Investigations & Analyst Readiness

Combine evidence, test competing explanations, and present decisions through complete investigation cases.

How to work a capstone

Attempt each case before opening its worked assessment. Use the case record template in the field reference. Produce a timeline, affected-asset list, hypotheses, evidence requests, severity rationale, response priorities, and a short leadership update. The supplied records are synthetic and deliberately incomplete.

You are assessed on reasoning, not on guessing a malware family or claiming certainty. A strong answer states what the records support, what alternative explanations remain, and what evidence would change the conclusion.

Case A: Identity and endpoint activity

Synthetic evidence · UTC

TimeSourceObservation
08:41Identity18 failed logons for lab.employee from 192.0.2.44.
08:43IdentitySuccessful remote logon for lab.employee; source 192.0.2.44.
08:47EndpointA document process launches a script interpreter on LAB-PC-07.
08:48EndpointThe script interpreter writes a new executable to the user profile.
08:49EndpointA scheduled task references that executable.
08:55NetworkLAB-PC-07 sends 180 MB to 198.51.100.80 over an encrypted connection.

6 records shown.

Your investigation questions

  1. Which observations support possible unauthorized access, execution, and persistence?
  2. What evidence links the remote logon to the endpoint process, rather than merely placing them near each other in time?
  3. What legitimate explanations should be checked?
  4. What would establish the content and authorization of the outbound transfer?
  5. Which immediate actions are proportionate, and who must coordinate them?
Review the worked assessment

The sequence supports a high-priority hypothesis of account misuse and suspicious endpoint execution with a persistence mechanism. It does not yet establish a specific malware family, prove the remote session caused the process launch, or confirm data exfiltration.

Correlate logon identifiers, user sessions, process ancestry, command lines, file hashes, task creation details, and network ownership. Verify whether the source is an approved VPN or shared gateway and whether an authorized workflow explains the document activity. Determine the transferred data and destination role where possible.

Coordinate endpoint containment, identity session review, and evidence preservation under the incident plan. Search other hosts for the same file, task pattern, and related activity. State the incomplete data scope and remaining uncertainty in the handover.

Case B: Mailbox fraud

A supplier reports an unexpected bank-detail change. A real employee mailbox sent the request in an existing conversation. The message passed the receiving platform’s authentication checks. The identity logs show a new session from unfamiliar infrastructure, and the mailbox audit records show a forwarding rule created shortly afterward.

  1. Does passing authentication resolve the concern?
  2. Which identity, mailbox, and application records should be preserved?
  3. How would you scope other affected messages and recipients?
  4. What independent business verification is needed?
  5. How would you establish that unauthorized access is removed?
Review the worked assessment

Authentication passing is compatible with a compromised real mailbox. The new session, forwarding rule, and fraudulent request support an account-compromise hypothesis, but session legitimacy and authorization should be checked.

Preserve the original message and relevant conversation, headers, mailbox changes, sign-ins, session records, grants, and available access records. Coordinate finance verification through known contacts. Review rule changes, delegated access, tokens, recovery settings, other sent messages, and affected recipients. Follow identity containment procedures and verify the revocation behavior of the platform.

The assessment should distinguish confirmed rule creation and message sending from unverified data exposure. Any payment already made requires the organization’s fraud-response process and rapid business coordination.

Case C: Cloud exposure

A cloud audit record shows a service identity changing a storage policy to allow broader access. The same identity recently created a credential from a build environment. A later object-access record shows a successful read of a sensitive report. Your available logs cover only one project and do not identify the content of any external transfer.

  1. Which observations establish a policy change and a data read?
  2. What do they fail to establish about broader exposure or exfiltration?
  3. Which build, identity, and storage records would you request?
  4. What containment might disrupt legitimate workloads?
  5. What recovery verification should occur before closure?
Review the worked assessment

The audit record supports the policy change; the access record supports a read according to the service’s event semantics. Establish which principal and session performed each action and whether it was authorized. The records do not establish the full dataset scope, cross-project activity, or an external transfer.

Investigate effective permissions, credential provenance, build changes, secret access, related sessions, policy versions, storage access, and logging gaps. Coordinate restriction of the exposure and handling of compromised credentials while assessing production dependencies. Verify session revocation, trusted policy restoration, source compromise remediation, and adequate monitoring.

Do not declare “no further access” based on a project-limited view. State the boundary and assign the cross-project follow-up to an owner.

Timeline challenge

Put these simplified response steps into a defensible order. Real incidents involve overlap and iteration; this exercise checks a basic dependency sequence.

  1. Coordinate proportionate containment and preserve required evidence.
  2. Validate the alert and establish initial facts.
  3. Verify recovery and record improvement actions.
  4. Assess scope, impact, and urgent operational constraints.
  5. Address the cause and prepare trusted restoration.

Use the move buttons to order the steps.

Your final deliverables

  • Technical report: one complete case with evidence references and a traceable timeline.
  • Leadership update: no more than 150 words covering facts, impact, actions, uncertainty, and decisions.
  • Detection improvement: one proposed rule or telemetry improvement, including test cases and blind spots.
  • Reflection: three assumptions you checked and one skill you will practice next.

Use the previous chapter’s rubric, seek another person’s review where possible, and revise your work. Readiness means you can explain and demonstrate your process within an appropriate role and scope. Expert judgment develops through continued learning, supervised practice, and varied real-world experience.

Knowledge check

1. In Case A, what is still unproven by transfer size alone?

  1. That bytes were observed
  2. The content and unauthorized nature of the transfer
  3. The recorded source host
  4. The recorded time
Reveal answer & explanation

The content and unauthorized nature of the transfer A large transfer alone does not establish exfiltration.

2. In Case B, what makes independent payment verification important?

  1. A real mailbox may be compromised
  2. A passed email check guarantees safety
  3. Only attachments can be malicious
  4. Existing threads cannot be abused
Reveal answer & explanation

A real mailbox may be compromised A known independent channel helps verify the business request.

3. In Case C, what does one-project visibility limit?

  1. Conclusions about activity outside that project
  2. The existence of every recorded event
  3. All possible analysis
  4. The ability to write limitations
Reveal answer & explanation

Conclusions about activity outside that project State the observed scope and request broader evidence.

4. What makes a strong capstone conclusion?

  1. Certainty without evidence
  2. A supported assessment with confidence, limitations, and next actions
  3. A guessed malware name
  4. A long list of acronyms
Reveal answer & explanation

A supported assessment with confidence, limitations, and next actions Analyst conclusions should follow from evidence and identify remaining uncertainty.

5. What should follow completion of the book?

  1. A claim of automatic expert status
  2. Continued practice, feedback, and demonstrated skills
  3. Stopping all learning
  4. Only memorizing terms
Reveal answer & explanation

Continued practice, feedback, and demonstrated skills Expertise requires application and continued development.

Appendix A · Reference

A–Z terminology glossary

Quick practice

The language of security, organized for quick reference.

340 entries

/var/log
Common location for Linux logs.
1433
Microsoft SQL Server
20/21
FTP
22
SSH
23
Telnet
25
SMTP
2FA
Two-factor authentication.
3306
MySQL
3389
RDP
443
HTTPS
445
SMB
4624
Successful logon
4625
Failed logon
4672
Special privileges assigned to new logon
4688
New process created
4720
User account created
4726
User account deleted
4740
User account locked out
4768
Kerberos authentication ticket requested
4769
Kerberos service ticket requested
4771
Kerberos pre-authentication failed
53
DNS
5432
PostgreSQL
80
HTTP
ABAC
Attribute-Based Access Control.
AD
Microsoft Active Directory.
Alert
Notification that potentially suspicious activity occurred.
Anomaly
Activity that deviates from expected behavior.
API Key
Credential used to authenticate API requests.
APT
Advanced Persistent Threat.
ARP
Maps IP addresses to MAC addresses on local networks.
ARP Spoofing
Sending false ARP information to manipulate local network traffic.
Artifact
Digital trace left by activity.
Asset
Anything valuable that needs protection: server, laptop, database, account, etc.
Asymmetric Encryption
Uses public/private key pairs.
Attack
An attempt to compromise a system or asset.
Attack Vector
The method used to gain access or cause harm.
Authentication
Verifying who someone is.
Authentication (AuthN)
Proving who you are.
Authorization
Determining what someone is allowed to do.
Authorization (AuthZ)
Determining what you're allowed to do.
Availability
Systems/data remain accessible when needed.
Azure Activity Log
Azure activity/event logging system.
Backdoor
Hidden method of accessing a system.
Baiting
Using something enticing to trick someone into performing an action.
Baseline
Normal behavior used for comparison.
Bash
Common Linux shell.
Beaconing
Repeated communication from compromised systems to an attacker/C2 server.
Behavioral Detection
Detecting suspicious behavior rather than only known malware signatures.
BOLA
Broken Object-Level Authorization: an authorization flaw that permits access to an object without the required resource-specific permission.
Bot
Compromised device controlled remotely.
Botnet
Network of compromised devices controlled by an attacker.
Broken Access Control
Users can perform actions/access resources they shouldn't.
Brute Force
Repeatedly trying passwords/credentials.
Bucket
Cloud storage container.
Business Email Compromise (BEC)
Attack involving compromised/spoofed business email to trick victims.
Certificate
Digital credential binding an identity to a public key.
Chain of Custody
Documentation showing who handled evidence and when.
Child Process
Process launched by another process.
chmod
Changes file permissions.
chown
Changes file ownership.
CI/CD
Continuous Integration and Continuous Delivery or Deployment: automated processes for building, testing, and releasing software.
CIA Triad
Confidentiality, Integrity, Availability — the three core goals of security.
Ciphertext
Encrypted data.
Cloud Security
Protecting cloud-hosted infrastructure/data.
CloudTrail
AWS service that records API/activity events.
Command and Control (C2)
Communication channel used by attackers to control compromised systems.
Confidentiality
Only authorized people can access information.
Connection
Communication between network endpoints.
Containment
Isolating a compromised device/account.
Control
Security measure used to prevent, detect, or respond to threats.
Control Plane
Interfaces and operations that manage service configuration and resources; distinguish these from service data-access operations.
Cookie
Small piece of data stored by a browser.
Correlation
Connecting multiple events to identify suspicious activity.
Credential Dumping
Extracting credentials from a system.
Credential Stuffing
Using leaked credentials against other services.
Credential Theft
Stealing usernames/passwords/tokens.
Critical
Extremely serious vulnerability.
cron
Linux scheduled-task mechanism.
Cryptojacking
Unauthorized use of systems to mine cryptocurrency.
CSRF
Cross-Site Request Forgery — tricking a user's browser into performing an unwanted action.
CVE
Common Vulnerabilities and Exposures identifier.
CVSS
Common Vulnerability Scoring System.
Dashboard
Visual display of security information.
Data Plane
Operations that use or process a service’s data; precise boundaries and logging vary by service.
DDoS
Distributed Denial-of-Service attack using many systems to overwhelm a target.
Decryption
Converting ciphertext back into readable data.
Defense Evasion
Techniques used to avoid detection.
Defense in Depth
Multiple layers of security controls.
Destination IP
IP address receiving traffic.
Detection Engineering
Designing, testing, deploying, and maintaining security detection logic and its supporting telemetry.
Detection Rule
Logic used to identify suspicious activity.
DHCP
Automatically assigns network configuration/IP addresses.
Digital Forensics
Investigating digital evidence after/during an incident.
Digital Signature
Mechanism used to verify authenticity/integrity.
Disk Image
Exact forensic copy of storage media.
DKIM
DomainKeys Identified Mail: signatures that support verification of specified message content and headers for a signing domain.
DLL
Dynamic Link Library.
DLP
Data Loss Prevention.
DMARC
Domain-based Message Authentication, Reporting, and Conformance: email policy and reporting based on aligned SPF or DKIM authentication.
DMZ
Network segment separating public-facing systems from internal networks.
DNS
Converts domain names into IP addresses.
DNS Spoofing
Manipulating DNS responses to redirect victims.
DoS
Denial-of-Service attack intended to make a service unavailable.
Dropper
Malware that installs/delivers another malicious payload.
Dynamic Analysis
Observing malware while it runs.
East-West Traffic
Traffic between internal systems.
EDR
Endpoint Detection and Response.
EDR Alert
Detection generated by endpoint security software.
Egress
Traffic leaving a network/system.
Encryption
Converting readable data into protected ciphertext.
Endpoint
Device such as laptop, desktop, or server.
EPSS
Exploit Prediction Scoring System: an estimate of exploitation probability for supported CVEs over a defined future period.
Eradication
Remove the attacker/malware/root cause.
Escalation
Sending an incident to a more specialized/higher-level analyst.
Event
Something that happened on a system/network.
Event ID
Identifier associated with a particular event.
Event Viewer
Windows tool for viewing system/security events.
Evidence
Data that can help establish what happened.
EXE
Executable Windows program.
Exfiltration
Stealing data from a compromised environment.
Exploit
Code/technique that takes advantage of a vulnerability.
Exploitability
How easily a vulnerability can be exploited.
Exposure
Condition where something is unnecessarily accessible or vulnerable.
False Negative
Malicious activity that wasn't detected.
False Positive
Alert that looks malicious but isn't.
FIDO2
Standards that support public-key authentication, including WebAuthn and authenticator communication protocols.
File Metadata
Information about a file, such as timestamps/attributes.
Firewall
Controls network traffic according to security rules.
Five-Tuple
Source IP, source port, destination IP, destination port, and transport protocol used to identify a network conversation.
Flow Data
Metadata describing network communication.
FTP
File Transfer Protocol.
Gateway
Device/network point through which traffic leaves a network.
Golden Ticket
Forged Kerberos authentication ticket providing extensive access.
GPO
Group Policy Object.
grep
Searches text for patterns.
Ground Truth
A defensible reference for whether an observed or simulated case is actually positive or negative when evaluating a detection.
Hardening
Making a system more resistant to attacks.
Hash
Mathematical fingerprint of data.
Hash Analysis
Identifying files using hashes.
Hashing
One-way transformation producing a fixed-size fingerprint.
HTTP
Protocol used for web communication.
HTTPS
HTTP protected with TLS encryption.
IaaS
Infrastructure as a Service.
IAM
Identity and Access Management.
ICMP
Network control/diagnostic protocol; used by tools like ping.
Identification
Determine whether an incident occurred.
Identity
Digital representation of a user/device/service.
IDOR
Insecure Direct Object Reference — accessing objects/resources without proper authorization.
IDS
Intrusion Detection System.
Image Digest
A content-based identifier used to identify a particular container image more precisely than a mutable tag.
Impact Assessment
Determine what was affected/damaged.
Impersonation
Pretending to be another person/entity.
Incident
Confirmed or suspected security event requiring investigation/response.
Incident Response (IR)
Process of investigating and handling security incidents.
Ingestion Delay
The interval between an event occurring or being recorded and its arrival in an analysis platform.
Ingress
Traffic entering a network/system.
Integrity
Information isn't improperly changed or corrupted.
IOA
Indicator of Attack — behavior suggesting an attack is occurring.
IOC
Indicator of Compromise — evidence that a system may have been compromised.
IOC Extraction
Finding malicious IPs, domains, hashes, filenames, etc.
IP Address
Address identifying a device/interface on a network.
IP Spoofing
Forging the source IP address.
IPS
Intrusion Prevention System.
IPv4
32-bit IP addressing system.
IPv6
128-bit IP addressing system.
JWT
JSON Web Token, commonly used for authentication/data exchange.
Kerberoasting
Attempting to obtain/crack service-account credentials using Kerberos service tickets.
Kerberos
Authentication protocol heavily used by Active Directory.
KEV
Known Exploited Vulnerabilities: CISA’s catalog of vulnerabilities with evidence of exploitation in the wild.
Key
Secret/value used by cryptographic algorithms.
Keylogger
Records keystrokes.
Lateral Movement
Moving from one compromised system/account to another.
LDAP
Protocol commonly used to access directory services.
Least Privilege
Give users only the access they actually need.
Lessons Learned
Review what happened and improve defenses.
Loader
Malware component that loads another payload.
Log
Recorded information about activity on a system.
Log Aggregation
Bringing logs together into one system.
Log Collection
Gathering logs from different systems.
Log Parsing
Breaking raw logs into understandable fields.
Log Source
System generating logs.
Logical Acquisition
Collection of selected files or objects through their logical interfaces, rather than a full physical media image.
LSASS
Windows process responsible for security/authentication functions.
MAC Address
Hardware/network interface identifier.
Malware
Malicious software.
Malware Family
Group of malware sharing characteristics/code.
MD5
Older hashing algorithm; unsuitable for modern cryptographic security but still seen for identification.
Memory Forensics
Investigating RAM contents.
MFA
Multi-Factor Authentication.
MFA Fatigue
Repeatedly sending MFA prompts hoping the user approves one.
Microsegmentation
Very granular network segmentation.
Misconfiguration
Incorrect security configuration exposing a resource.
Mitigation
Action taken to reduce risk.
MITM
Man-in-the-Middle attack where an attacker intercepts communications.
NAC
Network Access Control.
NAT
Translates one set of IP addresses to another.
NetFlow
Network traffic flow information.
netstat/ss
Displays network connections/listening services.
Network Segmentation
Dividing networks to limit movement/impact.
Normalization
Converting different log formats into a consistent structure.
North-South Traffic
Traffic entering/leaving an environment.
NTLM
Older Microsoft authentication protocol.
Obfuscation
Making malicious code harder to understand/detect.
PaaS
Platform as a Service.
Packet
Unit of data transmitted across a network.
Packing
Compressing/encoding executable code to conceal its contents.
PAM
Privileged Access Management.
Parent Process
Process that launched another process.
Pass-the-Hash
Using a stolen password hash to authenticate.
Pass-the-Ticket
Using stolen Kerberos tickets.
Passkey
A public-key credential used with mechanisms such as WebAuthn; credentials are bound to a relying party and can resist common phishing attacks.
Password Spraying
Trying one/common password against many accounts.
Patch
Software update that fixes bugs/security vulnerabilities.
Patch Management
Process of applying security updates.
Payload
Actual data carried inside a packet/message.
PCAP
Packet Capture.
Penetration Test
Authorized simulated attack.
Persistence
Maintaining access after initial compromise.
Phishing
Fraudulent attempt to trick someone into revealing information or executing something malicious.
PID
Process ID.
PKI
Public Key Infrastructure.
Plaintext
Original readable data.
Playbook
Step-by-step instructions for handling a particular alert/incident.
Port
Logical endpoint used by network services.
PowerShell
Windows command-line/scripting environment.
Precision
TP divided by TP plus FP: the fraction of positive detections that are actually positive under the evaluation’s ground truth.
Preparation
Getting tools/processes ready before incidents.
Pretexting
Creating a fake scenario to manipulate someone.
Private Key
Secret key that must be protected.
Privilege Escalation
Obtaining higher privileges than originally authorized.
Privileged Account
Account with elevated permissions.
Procedure
Real-world example of how a technique is used.
Process
Running program.
Process Tree
Relationship between parent/child processes.
Protocol
Rules used for communication between systems.
Provenance
Recorded information about an artifact’s origin and production history; useful for assessing trust and traceability.
Proxy
Intermediate system that forwards traffic.
ps
Displays running processes.
Public Key
Key that can generally be shared.
Ransomware
Malware that encrypts/locks data and demands payment.
RAT
Remote Access Trojan.
RBAC
Role-Based Access Control.
RDP
Remote Desktop Protocol.
Recall
TP divided by TP plus FN: the fraction of actual positive cases detected under the evaluation’s ground truth.
Recovery
Restore normal operations.
Registry
Windows configuration database.
Relying Party
The application or service that uses an authentication assertion or credential to authenticate a user.
Remediation
Actions taken to fix the problem.
Replay Attack
Reusing captured legitimate communication/authentication data.
Reputation
Assessment of whether an IP/domain/file is suspicious or malicious.
Residual Risk
Risk remaining after selected controls or treatments have been applied.
Retention
How long logs are stored.
Reverse Engineering
Analyzing software to understand how it works.
Risk
Potential impact of a threat exploiting a vulnerability.
root
Linux superuser account.
Root Cause
Fundamental reason the incident occurred.
Rootkit
Malware designed to hide itself and maintain privileged access.
RPO
Recovery Point Objective: a target tolerance for data loss measured in time.
RTO
Recovery Time Objective: a target time within which a service or capability should be restored.
Runbook
Operational instructions for performing a task or procedure.
SaaS
Software as a Service.
SAM
Security Account Manager database.
Sandbox
Isolated environment for safely analyzing suspicious files.
SBOM
Software Bill of Materials: an inventory of software components used to support dependency and supply-chain analysis.
Search Query
Query used to search logs for specific activity.
Secret
Sensitive credential/key used by an application/service.
Security Event
Event relevant to security.
Security Group
Virtual firewall/rules controlling traffic to cloud resources.
Security Log
Windows log containing authentication/security events.
Security Posture
Overall security strength of an organization.
Service Account
Account used by an application/service rather than a human.
Session
Temporary authenticated interaction between user and application.
Session Hijacking
Taking control of an authenticated session.
Severity
How serious a vulnerability is.
SHA-256
Cryptographic hashing algorithm widely used for integrity verification.
Shell
Command-line interface.
SIEM
Platform that collects, analyzes, correlates, and searches security logs/events.
Sigma
A rule format for expressing detection logic that must still be mapped and validated for a target platform and schema.
Silver Ticket
Forged Kerberos service ticket.
Smishing
Phishing through SMS/text messages.
SMTP
Protocol commonly used for sending email.
SOC Analyst
Person who monitors and investigates security events.
Source IP
IP address where traffic originated.
Spear Phishing
Targeted phishing against a specific person/group.
SPF
Sender Policy Framework: email authentication evaluating whether sending infrastructure is authorized for the evaluated envelope identity.
Spoofing
Pretending to be another system/person/address.
Spyware
Malware designed to secretly collect information.
SQL Injection (SQLi)
Injecting malicious SQL into database queries.
SSH
Secure remote shell access.
SSO
Single Sign-On.
SSRF
Server-Side Request Forgery — tricking a server into making requests.
Static Analysis
Examining malware without executing it.
STIX
Structured Threat Information Expression.
Strings
Readable text extracted from binaries/files.
Sub-technique
More specific version of a technique.
Subnet
Logical division of a network.
sudo
Execute commands with elevated privileges.
Symmetric Encryption
Same key used for encryption and decryption.
Sysmon
Microsoft Sysinternals tool that provides detailed system activity logging.
Tactic
The attacker's overall objective.
Tailgating
Physically following an authorized person into a restricted area.
TAXII
Protocol used to exchange threat intelligence.
TCP
Reliable, connection-oriented transport protocol.
Technique
How the attacker achieves that objective.
Telemetry
Data collected from systems/devices.
Threat
Something capable of causing harm.
Threat Actor
Person/group/system conducting malicious activity.
Threat Feed
Continuously updated source of threat indicators.
Threat Hunting
Proactively searching for hidden threats instead of waiting for alerts.
Threat Intelligence
Information about threats used to improve security decisions.
Timeline Analysis
Reconstructing events chronologically.
Timestamp
Time an event occurred.
TLS
Protocol providing encrypted network communication.
Token
Data used to represent authentication/authorization.
Token Revocation
Invalidating or restricting a token or session through the mechanisms supported by the issuing and consuming systems.
Triage
Quickly determining how serious an alert is and what to investigate first.
Trojan
Malicious software disguised as legitimate software.
True Negative
Legitimate activity correctly identified as harmless.
True Positive
Alert correctly identifies malicious/suspicious activity.
TTP
Tactics, Techniques and Procedures used by attackers.
UAC
User Account Control.
UDP
Faster connectionless transport protocol.
User/Account
Identity associated with an event.
Virus
Malware that attaches itself to another file/program and typically spreads when executed.
Vishing
Phishing through voice calls.
VPN
Encrypted connection through another network.
Vulnerability
A weakness that could be exploited.
Vulnerability Assessment
Evaluation of vulnerabilities and their risk.
Vulnerability Scan
Automated search for known weaknesses.
WAF
Web Application Firewall.
WebAuthn
A web standard for public-key authentication using credentials scoped to a relying party.
Whaling
Phishing aimed at senior/high-value individuals.
Wireshark
Network packet-analysis tool.
Worm
Malware capable of spreading automatically across systems/networks.
XDR
Extended Detection and Response across multiple security domains.
XSS
Cross-Site Scripting — injecting malicious scripts into web pages.
Zeek
A network security monitoring framework that produces structured connection and protocol metadata from observed traffic.
Zero Trust
Don't automatically trust something simply because it's inside the network.
Zero-Day
Vulnerability unknown to the vendor or without an available fix at the time of exploitation.

Appendix B · At the desk

Analyst field reference

Seven questions for every investigation

  1. Who? Which user, service account, or identity is involved?
  2. What? What action occurred, and what did the detection actually observe?
  3. When? What is the time range, timezone, and order of events?
  4. Where? Which devices, networks, applications, and cloud resources are involved?
  5. How? What process, session, credential, or access path explains the activity?
  6. What else? What happened before and after? Which alternative explanation fits?
  7. What next? What evidence is missing, and what action is proportionate?

A concise investigation record

CASE ID / OWNER:
ALERT / DETECTION SOURCE:
FIRST OBSERVED / TIMEZONE:
AFFECTED ACCOUNTS & ASSETS:

SUMMARY:
Describe the activity and why it matters.

EVIDENCE & TIMELINE:
List timestamped observations and evidence locations.
Separate observed facts from working hypotheses.

ASSESSMENT:
State severity, confidence, scope, and business impact.
Record alternative explanations and remaining unknowns.

ACTIONS:
Record approvals, containment, evidence preservation,
escalation, and remediation actions with timestamps.

NEXT STEPS / HANDOVER:
Assign owners and identify checks required for closure.

Common interpretation traps

  • A successful login after failed attempts warrants investigation; it does not establish that an attacker succeeded.
  • Port numbers suggest common services. Verify the actual protocol and process.
  • Encoded PowerShell can support administration or abuse. Review the decoded content safely and correlate it with execution context.
  • A hash is useful for matching file content; an unknown hash is not a clean verdict.
  • Encryption protects data in transit or at rest according to its design. An encrypted connection does not make its destination trustworthy.
  • CVSS describes technical severity. Prioritization also needs exposure, exploitation evidence, asset criticality, and business impact.

A repeatable study routine

For each chapter, write a short explanation, attempt the scenario, and record one question you still need to resolve. In a lab, practice collecting evidence and writing a concise report. Revisit the relevant chapter when your explanation depends on an assumption you cannot support.

Appendix C · Continue learning

Further reading

Use these primary sources to check current definitions, framework guidance, and product behaviour. This guide is a learning resource and is not endorsed by these organizations.