HackPath
BootcampCoursesRoadmapPracticePricing
Log inStart learning
Back to courses

Course

Foundations of Information Security

0%
Introduction2 lessons
01The Architecture of Information Security
20m
02Fundamental Security Principles
25m
InfoSec Domains8 lessons
03Network Security Fundamentals
25m
04Application Security Principles
25m
05Operational Security (OpSec) Concepts
25m
06Business Continuity and Disaster Recovery
25m
07Cloud Security Essentials
25m
08Physical Security Mechanisms
25m
09Mobile Device Security Foundations
25m
10Security in Internet of Things (IoT) Environments
25m
Threats5 lessons
11Distributed Denial-of-Service (DDoS) Attacks
25m
12Ransomware Threat Landscape
25m
13Social Engineering Tactics
25m
14Internal Threat Actors
25m
15Advanced Persistent Threat (APT) Campaigns
25m
Cybersecurity Teams4 lessons
16Adversaries and Threat Profiles
25m
17Red Team Operations & Offensive Security
25m
18Blue Team Defensive Operations
25m
19Purple Team Collaboration Framework
25m
Lesson 18·18 / 19·25 min

Blue Team Defensive Operations

Follow a supplied defensive case from event to alert, incident assessment and scoped response. Interpret detection errors and timing without claiming unverified recovery.

EnglishFrançaisDeutschالعربيةहिन्दी

Quick Recap.

IS-R17 separated authorised scope, a denied read, an alert and acknowledgement. The alert did not cause the earlier denial. A requested improvement was not a verified correction.

A school receives an alert about a file read. Someone proposes disabling an account and isolating a computer. What happened, who can act, and what result has actually been checked? Read fictional IS-B18 on paper or in your notes. No collection, isolation, account change or live lab is required.

Learning Objectives.

Define defensive functions, distinguish event/alert/incident, trace the supplied response, design a four-source pipeline and calculate three detection measures with explicit denominators.

Read the defensive case.

A Blue Team performs defensive security functions: help prevent harm, monitor selected activity, investigate and respond within its mandate, then improve. A log records events; an event is an occurrence such as a read. An alert flags something for examination. Triage is initial assessment and prioritisation. An incident is an event assessed against the organisation's incident criteria, such as a violation of an access policy. An alert alone does not establish an intrusion.

A session represents an established application interaction after sign-in; an account can have several sessions. ALLOW means the application permitted the read; DENY means it refused it. A row is one returned data record. These meanings let us read the following case.

SourceSupplied information
P1, policy and ownershipAPP-SCHOOL is a fictional school application. TEST-BLUE may read DEMO-PUBLIC but must not read DEMO-PRIVATE. Policy treats a successful forbidden read as an incident. Application owner manages session revocation; endpoint owner decides computer isolation with the incident lead, considering service impact. Evidence is restricted to event/session IDs and counts, without real content.
E1, application at 15:00Event EV-B18, account TEST-BLUE, session S-B18: READ DEMO-PRIVATE ALLOW; 12 rows returned. No real personal data.
L1, collection at 15:02Collects the log of EV-B18 with event time 15:00. This is the same read, not another read at 15:02.
A1, alert at 15:04Flags EV-B18 as a possible forbidden read. No blocking action is recorded.
H1, analyst at 15:06Acknowledges, compares E1 with P1 and records an incident for that policy violation. Extent, operator identity and root cause remain unknown.
Q1, proposal at 15:08Proposes disabling TEST-BLUE and isolating a suspected computer. No approval, computer evidence or execution supplied.
C1, application owner at 15:10Records completed revocation of session S-B18 only. No account disablement or computer isolation recorded.
V1, application recheck at 15:12A supplied read using S-B18 to DEMO-PRIVATE receives DENY; 0 rows. No other session, root-cause correction or legitimate-service recovery check supplied.

Follow the evidence before choosing a tool.

All timestamps use one fictional day and synchronised clock. The dossier was written for this lesson; these are not measurements from a real system.

Observation: E1 reports a permitted read with 12 rows. Interpretation: with P1 and H1, this supports a recorded incident involving one forbidden read. Hypothesis: an attacker controlled the computer; Q1 does not establish it. Identity, cause and wider extent remain unknown. A session/account ID does not identify the human operator.

A1 follows E1, so it did not prevent this read. H1 includes assessment here; a mere acknowledgement would not. Containment limits ongoing effects: C1 revokes one session. Eradication addresses causes and unwanted access mechanisms; it is not established. Recovery restores and checks legitimate service; V1 does not test that. The session's later denial cannot undo the 12 rows already returned.

Assign functions and response activities.

A SOC (Security Operations Center) organises monitoring and response. It may be internal, shared or outsourced, with coverage chosen for business needs. Neither continuous staffing nor a three-tier hierarchy is universal.

Analysts examine alerts and correlate records, as H1 does. Responders coordinate scope, containment and recovery with owners. Threat hunting proactively tests a stated hypothesis against available activity; it is not automatically vulnerability scanning, and finding nothing is bounded by visibility. Engineers maintain collection, detection and preventive controls. An incident lead coordinates decisions and communications; intelligence analysts contextualise threat information; managers plan capacity; compliance and privacy specialists advise on relevant obligations. People may combine functions. No career hierarchy or staffing statistics are implied.

Preparation agrees contacts, criteria, access, evidence handling, backups and continuity. Detection/analysis compares records and impact; containment chooses scoped actions with owners; eradication treats identified causes; recovery checks service; learning changes procedures and tests selected outcomes. Activities overlap and repeat; improvement need not wait for closure. NIST SP 800-61 Rev. 3, published in April 2025, integrates incident response into the CSF 2.0 risk-management framework. These six teaching activities are not a mandatory universal sequence.

A playbook describes a repeatable response procedure with decision points, owners, impact checks and evidence. For Q1, obtain computer evidence and check service impact before treating isolation as justified. C1 is narrower than Q1. Preserve relevant records, agreed retention and restricted access. Learn from reporting and workload without blaming the person who raised an alert.

Choose sources and understand tool limits.

Telemetry is collected system activity. Correlation links records using identifiers, time and context; similar timestamps alone are insufficient. A four-source design can include the following; unavailable records must remain unavailable.

Source familyQuestion and coverage limit
EndpointActivity on a computer. Could examine the suspected device; no endpoint record is supplied, so computer compromise is unverified.
IdentitySign-ins, accounts and sessions. Could examine session issuance/revocation; C1 covers S-B18 revocation, not every session or sign-in.
DNS (Domain Name System)Name-resolution queries. Could show selected names requested, not complete page contents or all communication. No DNS record supplied.
ProxyAn intermediary recording selected web requests. Could examine allowed coverage; encrypted contents and bypass paths may be invisible. No proxy record supplied.

A SIEM (Security Information and Event Management) gathers and analyses selected logs; it cannot observe missing sources automatically. IDS (Intrusion Detection System) detects selected suspicious activity; IPS (Intrusion Prevention System) can enforce prevention where deployed and configured. A passive network monitor is not automatically an IPS. EDR (Endpoint Detection and Response) observes and can act on supported managed computers, subject to permissions and coverage. Firewalls enforce selected traffic rules; vulnerability scanners look for weaknesses; forensic tools examine preserved evidence. Threat intelligence supplies contextual information, not proof that a named actor performed E1.

Tools support the workflow, rather than guarantee detection or response. Alert fatigue is overload from alerts requiring attention; prioritisation, staffing, usable procedures and tested rules matter. Faster action alone can interrupt legitimate service. Prevention, detection, response and learning should address the organisation's risks and resources.

Measure a defined sample.

A false positive (FP) incorrectly flags benign activity; a false negative (FN) misses activity the detector should flag. TP means true positive; TN true negative. Here positive means an alert, negative no alert, and true/false compares that decision with a separately known reference. A rule for unusual activity may correctly fire on a legitimate action; not every benign reviewed alert is a rule error.

M1 is a separate fictional validation set: 30 cases with independently supplied reference labels, one detector decision per case, same chosen rule. Ten cases should alert; twenty should not. It is not an inventory of real incidents.

Reference labelAlertNo alert
Should alertTP = 6FN = 4
Should not alertFP = 4TN = 16

Detection on known positive cases, or recall, is TP / (TP + FN): 6 / 10 = 60%. False positive rate (FPR) is FP / (FP + TN): 4 / 20 = 20%. False-alert share among alerts is FP / (TP + FP): 4 / 10 = 40%. The last two answer different questions. These definitions follow the classification measures; our counts are invented. A zero denominator would make a rate undefined, not automatically 0%.

Real missed incidents are not all known, so this sample cannot establish organisation-wide detection. Changing a threshold may trade misses for extra alerts; better data or rules can also improve both. Choose changes using impact and a new labelled validation, without assuming a guaranteed improvement.

E1 to A1 is 4 minutes; A1 to H1 is 2 minutes; E1 to H1 is 6 minutes; C1 to V1 is 2 minutes. These are selected intervals, not the duration of an attack. MTTD (Mean Time To Detect) averages defined start-to-detection intervals across a stated sample. If two constructed cases take 4 and 8 minutes, their mean is (4 + 8) / 2 = 6 minutes; that does not measure this organisation. MTTR can mean mean time to respond, recover or resolve: specify the end condition, start, population and exclusions before calculating it. A1 to H1 measures acknowledgement/assessment here, not recovery. No recovery mean is available. Remediation time and control effectiveness likewise require defined completion criteria and rechecks.

Worked example: IS-B18-R.

E1/L1 describe one EV-B18 at 15:00, collected at 15:02. A1 at 15:04 did not block it. H1 plus P1 supports a policy incident, without identifying a person. C1 records S-B18 revocation at 15:10; V1 at 15:12 checks one denied read with 0 rows. Q1 is still an unexecuted broader proposal. IS-B18-R assigns application owner to verify session scope and legitimate access, endpoint owner/incident lead to examine computer evidence and service impact, and analysts to preserve correlation and assess wider extent. It does not claim eradication or recovery.

Exercises

Exercise 1: Design a pipeline in 2 to 5 minutes.

Use fictional IS-B18: P1 permits TEST-BLUE to read DEMO-PUBLIC, not DEMO-PRIVATE. E1 at 15:00 logs EV-B18/S-B18 READ DEMO-PRIVATE ALLOW, 12 rows; L1 at 15:02 collects that same event; A1 at 15:04 alerts; H1 at 15:06 assesses a policy incident. Q1 at 15:08 proposes account disablement/computer isolation without execution evidence. C1 at 15:10 revokes S-B18 only; V1 at 15:12 gives DENY, 0 rows for S-B18/DEMO-PRIVATE. No endpoint, DNS or proxy records supplied. Draft IS-B18-R: name endpoint, identity, DNS and proxy sources with one coverage limit each, three triage questions and two containment proposals with owner, impact check and required result evidence. Do not operate a tool.

Exercise 2: Calculate and qualify the evidence.

Fictional IS-B18 gives E1 event 15:00, L1 collection 15:02 of that event, A1 alert 15:04, H1 acknowledgement/assessment 15:06, C1 S-B18 revocation 15:10 and V1 S-B18 read DENY, 0 rows at 15:12. Q1 account disablement/isolation is only proposed. Separate M1 has 30 independently labelled cases: TP = 6, FN = 4, FP = 4, TN = 16, one decision per case. Calculate event/alert, alert/H1 and C1/V1 intervals, recall, FPR and false-alert share. Correct “40% FPR and the whole incident recovered”.

Open questions

Question 1: How can fewer alerts conceal worse detection?.

In fictional M1, independently labelled cases yield TP = 6, FN = 4, FP = 4, TN = 16. A manager proposes suppressing every alert to reduce workload. In IS-B18, E1 at 15:00 permits EV-B18/S-B18 READ DEMO-PRIVATE, 12 rows, against P1; A1 alerts at 15:04, H1 assesses at 15:06. C1 revokes S-B18 at 15:10; V1 at 15:12 denies one read with 0 rows; Q1's computer isolation is only proposed. Explain the proposal's effect on the fixed M1 sample and why neither alert count nor V1 proves full protection. Propose an accountable improvement and verification.

Expected evidence and common mistakes.

IS-B18-R keeps eight sources, event versus collection, policy assessment, Q1/C1/V1 scope, owners and missing evidence. Its calculations distinguish 60% recall, 20% FPR and 40% false-alert share. An absence of alerts does not prove security; a revoked session does not prove that an account was disabled, a host isolated or a cause removed.

Defensive operations connect prevention, observation, decisions and scoped verification. Reports should help owners choose the next action and its evidence. Red/Blue collaboration can test agreed improvements without turning one result into a claim of complete security.

Flashcards

Flashcards · 1/10
0001
0001
Unseen

What is the Blue Team's purpose?

0001
0001

Answer

Perform defensive functions, investigate and respond within a mandate, and improve selected controls.

Next: Purple Team Collaboration Framework. Compare shared objectives, approved changes and rechecked results across offensive and defensive functions.

You're on a free lesson

Ready to go further?

Unlock all courses, exercises, real-world scenarios and flashcards — everything to build real skills.

Unlock full access →

No commitment · Cancel anytime

Sign in to track your progress.

Sign in to validate →

200+ lessons · Challenges · Flashcards

$99/year — save 31% vs monthly

Unlock full access →