Elective I · Year IV Part I · 45 hrs · 80 marks

Security Operations Fundamentals

Everything the eight-chapter syllabus asks for, written from the lecture decks and organised around the questions the course has actually set. Five chapters are complete; three are outlined and waiting on their slides.

8
chapters in the syllabus
5
written up in full
80
marks in the written paper
45
lecture hours
Lecture: 3 Tutorial: 1 Practical: 3/2 17 lab sessions fully lab-based

Where the marks areChapter weighting

Straight from the official evaluation scheme. The bar is marks out of 80; filled bars are chapters covered here, outlined bars are still to come. Chapters 2 and 3 alone are 30 of the 80 marks, over a third of the paper.

How to read thisThe shape of a chapter

What the cards mean

  • A card tagged ASKED covers a question the course has already set, either in the chapter notes or as a stated assignment. Treat these as the core.
  • A card tagged LIKELY covers one of the predicted questions published alongside the chapter. The wording is the lecturer's, so the marks split in brackets is a real guide to how long the answer should be.
  • An untagged card is supporting material: you need it to answer the tagged ones properly, but it is unlikely to be a question on its own.
  • Examinable only in the sidebar hides everything untagged. Find a topic searches every chapter at once, not just the one you are looking at.
A warning about the marks split Question marks in this guide are quoted as the course published them, e.g. [2+6]. The evaluation scheme itself notes there may be minor deviation in marks distribution, so use the splits to budget answer length, not to predict the paper.

Answering a “discuss / explain” question well

Nearly every question on this paper is worth six to ten marks and is graded on structure as much as recall. The pattern that scores:

  1. Define the term first, in one or two sentences, in the wording the deck uses. That is usually a mark or two on its own.
  2. Give the structure: the stages, the categories, the acronym expanded. If the question says “list and describe”, list first, then describe.
  3. Attach one concrete example per item. The decks are full of named cases (Stuxnet, SolarWinds, Equifax, WannaCry, Lazarus, TA577), and an examiner reading a hundred scripts remembers the one with real examples.
  4. Close with the defensive angle. “What do we do about it?” is the point of the whole course; a countermeasure sentence rarely loses marks.

ProvenanceWhere this comes from

Sources and what is missing

  • Chapter 1: Cybersecurity Concepts and Principles deck, 99 slides.
  • Chapter 2: Malware and Cyber Attacks deck.
  • Chapters 3 and 5: the combined Cyber Threat Modelling and Threat Hunting / Emerging Technologies deck.
  • Chapter 7: Security Policy, Audit & Assessment, 37 slides.
  • Chapters 4, 6 and 8: syllabus and published questions only. The topic outline is in the last panel so you know what is coming; the notes go in when the decks arrive.

This course is new enough that there is no bank of past papers to count frequencies against, the way an older subject would allow. The published chapter questions are the best signal available, so those are what the tags track.

Chapter 1 · 4 hours · 7 marks

Cybersecurity Concepts and Principles

The vocabulary the rest of the course is written in. Small on the marks sheet, but every later chapter assumes you already have the CIA triad, the risk terms and the policy hierarchy straight.

1.1 to 1.3What security is, and what it is for

Cybersecurity, and the specialised areas of security

Definition Cybersecurity is the practice of protecting computers, networks, devices, data and systems from unauthorised or malicious access, attack or damage. Its aim is to ensure the confidentiality, integrity and availability of information and resources in the digital world.
Definition Security is the quality or state of being secure: free from danger, and protected from the risk of loss, damage, unwanted modification or other hazards.
  • Security protects against three things: malice (deliberate harm by an attacker), mistakes (an authorised user deleting or altering data by accident) and mischance (system failure, fire, flood, anything unforeseen).
  • It is never one control. Security is achieved by several strategies at once: a multilayered system, defence in depth, data abstraction, data hiding, encryption. It is management's role to ensure each strategy is planned, organised, staffed, directed and controlled.

The specialised areas of security: a favourite list question, because each one wants a control as an example:

AreaWhat it protectsTypical controls
PhysicalPeople, physical assets and the workplace from fire, unauthorised entry, natural disasterBiometrics, fence, CCTV, fire extinguisher
PersonnelThe people inside the organisationEvacuation plan, floor warden
OperationsThe business running without interruption or compromiseBCP and DRP
CommunicationsCommunication media, technology and contentEncryption
NetworkNetworking devices, connections and their contentFirewall, IDS/IPS, DMZ
Information (InfoSec)The information itself, in every stateClassification, access control, policy

The CIA triad

The three, in the deck's wording Confidentiality: prevent or minimise unauthorised access to data while it is in storage, in process and in transit.
Integrity: the quality or state of being whole, complete and uncorrupted.
Availability: authorised subjects are granted timely and uninterrupted access to objects.

Each leg is examined the same way: an attack that breaks it, an everyday event that erodes it, and a countermeasure.

AttacksNon-malicious eventsCountermeasures
Confidentiality Capturing network traffic, stealing password files, social engineering, port scanning, eavesdropping, sniffing, privilege escalation Failing to encrypt a transmission, failing to authenticate a remote system before transferring data, leaving secured access points open, misrouted faxes, documents left on printers, walking away from a terminal with data on screen Encryption, network traffic padding, strict access control, rigorous authentication, data classification, personnel training
Integrity Viruses, logic bombs, unauthorised access, malicious modification, intentional replacement, system backdoors Corruption while information is compiled, stored or transmitted; faulty programming; noise in the transmission channel Strict access control, rigorous authentication, IDS, object/data encryption, hash total verification, interface restrictions, input and function checks
Availability DoS attacks, object destruction, communication interruption Accidentally deleting files, over-utilising a hardware or software component, under-allocating resources, mislabelling or misclassifying objects Access controls, performance and traffic monitoring, firewalls and routers to blunt DoS, redundancy for critical systems, tested backups

The supporting concepts: worth a line each if the question is worth eight marks:

  • Under confidentiality: sensitivity (harm if disclosed), discretion (an operator controlling disclosure to limit damage), criticality (how mission-critical the information is), concealment (hiding: security through obscurity), secrecy, privacy (personally identifiable information), seclusion (storing something out of the way, with strict access control) and isolation (keeping things separated so information does not commingle).
  • Under integrity: accuracy, truthfulness, authenticity, non-repudiation, accountability, responsibility, validity (all false information excluded), completeness (all true information included) and comprehensiveness (the entire scope collected, with any limitation documented).
  • Under availability: usability, accessibility (the widest range of subjects can interact with the resource regardless of capability) and timeliness (prompt, low-latency response).
  • Availability depends on the other two. Without integrity and confidentiality, availability cannot be meaningfully maintained. Data that is available but wrong is worth nothing.

Controls, mapped to the leg they serve: the answer an examiner is looking for when a question says “how would you achieve each”:

AvailabilityIntegrityConfidentiality
RAID, clustering, load balancing, redundant data and power lines, software and data backups, disk shadowing, co-location and off-site facilities, roll-back functions, fail-over configurations Hashing (data integrity), configuration management (system integrity), change control (process integrity), access control, software digital signing, transmission CRC functions Encryption at rest (whole-disk, database), encryption in transit (IPSec, SSL, PPTP, SSH), access control, physical and technical
Answer skeleton, “Define the CIA triad… describe a threat targeting each” [2+3+3]
  1. Define all three in one sentence each (2 marks).
  2. One named threat per leg with a sentence of mechanism, packet sniffing on an unencrypted link breaks C; a logic bomb altering records breaks I; a DDoS flood breaks A (3 marks).
  3. Then the OT/AIC contrast, see the next card (3 marks).

CIA priority: why OT flips the triad to AIC

  • Every organisation has unique security requirements, so the importance of C, I and A differs. Deciding which matters most is essential to crafting a sufficient security solution, you cannot maximise all three at once.
  • Military and government organisations tend to prioritise confidentiality above integrity and availability, a leaked plan is worse than a slow one.
  • Private companies tend to prioritise availability above the other two, a shop that is down is losing money every minute.
  • Operational Technology follows AIC. Even inside a private company, IT systems follow CIA but OT systems: PLCs (programmable logic controllers), SCADA and MES (manufacturing execution systems): put availability above all, and value integrity over confidentiality.
  • Why: an OT system is controlling something physical. A turbine, a pump, a production line. Stopping it is a safety and production event; the setpoints it is executing are rarely secret, but a wrong setpoint is dangerous. Hence A > I > C.
  • The Maroochy Shire case makes the point: a former contractor used a stolen laptop and radio equipment to access the SCADA system controlling sewage pumps, releasing over 800,000 litres of raw sewage into rivers, parks and a hotel's grounds. Nothing confidential leaked, the damage was entirely to availability and physical integrity.

IAAA, authentication factors, and phishing-resistant MFA

IAAA Identification: the system recognises an individual user; the first step in gaining access (username, swiping a card, presenting a biometric).
Authentication: the user provides proof that they are who they claim to be.
Authorisation: assurance that this user or computer has been granted access to this specific information; the system evaluates an ACL comparing subject, object and intended activity.
Accountability: assurance that all activity can be linked or attributed to a person or process. (This is exactly why password sharing is fatal, it destroys accountability.)
Non-repudiation: assurance that someone cannot deny the validity of something they did.

The authentication factors. A factor is a category of proof, not an instance of one:

FactorBasisExamplesWeakness
Type 1: something you knowKnowledgePassword, PIN, passphrase, security questionGuessable, phishable, reusable across sites, shareable
Type 2: something you havePossessionSmart card, hardware token, TOTP app, security key, phone receiving a pushLost, stolen, cloned; codes can be read out to an attacker
Type 3: something you areInherenceFingerprint, iris, face, palm vein, retinaCannot be reissued after compromise; false accept / false reject rates
Somewhere you areLocationSource IP, GPS geofence, network segmentSpoofable via VPN or proxy; used as a supporting signal, not a primary factor
Something you doBehaviourTyping rhythm, gait, signature dynamicsVariable; usually continuous authentication rather than a gate
Definition Multi-factor authentication (MFA) is authentication that requires two or more proofs drawn from different factor categories. A password plus a security question is not MFA, both are something you know. A password plus a hardware token is.
Definition Phishing-resistant MFA is MFA that an attacker cannot defeat by relaying credentials through a fake site or by pestering the user. The authenticator is cryptographically bound to the real site's origin, so a proxy on a look-alike domain simply gets no valid response.
  • Phishable methods: SMS one-time codes, TOTP apps, email codes and simple push approvals. Every one of them produces a secret the user can be tricked into handing over, or an approval the user can be nagged into granting, MFA fatigue. An adversary-in-the-middle proxy sits between user and real site and relays the code within its validity window.
  • Phishing-resistant methods: FIDO2 / WebAuthn security keys and passkeys, and PKI smart cards (PIV/CAC). The private key never leaves the authenticator, the challenge is signed against the origin the browser actually connected to, and there is no code for a human to read out.
  • Why it matters here: the Chapter 2 credential attacks: phishing, credential stuffing, password spraying, all end at the authentication step. Phishing-resistant MFA is the single control that closes most of them at once.

The CNSS security model (McCumber cube)

  • CNSS is the Committee on National Security Systems. Its model shows the three dimensions central to any discussion of InfoSec, drawn as a 3×3×3 cube.
  • Dimension 1: security goals (information characteristics): confidentiality, integrity, availability.
  • Dimension 2: information states (location): storage, transmission, processing.
  • Dimension 3: security control categories: technology, policy and practices, people (education, training and awareness).
  • The purpose of the model is to identify gaps in the coverage of an InfoSec programme. Each of the 27 cells is a question: “how do we protect the integrity of data while it is being processed?” An empty cell is an uncovered risk.
CNSS SECURITY MODEL · THE McCUMBER CUBE Three dimensions, twenty-seven cells. Each cell is a question, and an empty cell is an uncovered risk. Security goals C I A Information states Storage Transmission Processing Control categories Technology Policy & practices People Reading a cell Confidentiality × Storage encryption at rest, RBAC, classification Integrity × Transmission MACs, digital certificates, SSL pinning Availability × Processing resource isolation, auto-scaling, BCP/DR Integrity × Processing tamper-proof logs, input validation, code signing The purpose of the model is to identify gaps in the coverage of an information security programme. Walk all twenty-seven cells and ask: what protects this goal, in this state, through this category of control? Any cell you cannot answer is a risk nobody has assigned an owner to.

Worked cells: the concrete controls the deck puts in the grid:

StateConfidentialityIntegrityAvailability
StorageEncryption at rest, RBAC/ABAC access control, data classification and labelling, secure backupsHashing (SHA-256, HMAC), file integrity monitoring (Tripwire, OSSEC), digital signatures, version control and checksumsRAID and fault tolerance, cloud redundancy across regions, backup and recovery plans
TransmissionNetwork encryption (TLS, VPN, IPSec), data masking and tokenisation, secure protocols (SSH, HTTPS)Message authentication codes, digital certificates (PKI, TLS), transport integrity such as SSL pinningLoad balancing and failover clustering, DDoS mitigation (CDN, WAF, rate limiting), network monitoring and QoS
ProcessingEncrypted computation, secure enclaves (SGX, Nitro), role-based access enforcementTamper-proof logging, input validation and sanitisation, code signing and integrity verificationResource isolation (containers, microservices), capacity planning and auto-scaling, BCP/DR
Control categoryTechnology: firewalls, IDS/IPS, SIEM, EDR/XDR, secure coding (SAST/DAST), patch and vulnerability management: Policy: ISO 27001, NIST, SOC 2, awareness training, compliance audits, BCP/IRP/DRP: People: awareness and phishing training, insider-threat management, IAM and MFA

Defence in depth (layered security)

Definition Defence in depth is the strategy of deploying multiple, independent, overlapping controls so that no single failure exposes the asset. Each layer buys detection time and forces the attacker to succeed repeatedly rather than once.
  • Perimeter: the boundary between the organisation and everything else. Border firewall, DMZ, IPS, secure web and email gateways, DDoS protection, VPN termination. Increasingly this layer is identity, since there is no fixed edge any more.
  • Internal network: assuming the perimeter is already breached. VLAN and subnet segmentation, micro-segmentation, internal firewalls, NAC, east-west traffic monitoring (NDR). This is the layer that stops lateral movement.
  • Host / endpoint: the individual machine. OS hardening, patch management, host firewall, EDR, application allow-listing, least privilege on local accounts, disk encryption.
  • Application: secure coding, input validation, WAF, authentication and session management, dependency and supply-chain scanning.
  • Data: the thing actually being protected. Classification, encryption at rest and in transit, DLP, rights management, tested backups.
  • Wrapping all of it: people (awareness training, phishing simulations) and policy (the rules that make every layer above mandatory rather than optional). Also called security through obscurity when used alone, which is exactly why it must never be used alone.

The point of the strategy: controls are chosen so their failure modes are independent. Two firewalls from the same vendor with the same bug are one layer, not two.

1.4 to 1.5Threats, vulnerabilities and risk

The risk vocabulary: assets, threats, vulnerabilities

These definitions get quoted back verbatim in answers all through the paper. Learn them in this order, because each one builds on the last.

TermDefinition
AssetAnything of value to the organisation: intellectual property, data, people (their knowledge, skills and abilities), brand, goodwill, hardware, software, network components, procedures.
ThreatAny action or inaction that could cause damage, destruction, alteration, loss or disclosure of assets, or that could block access to or prevent maintenance of assets.
VulnerabilityA weakness, flaw, loophole, oversight, error, limitation, frailty or susceptibility in the IT infrastructure or its controls.
Threat agentWhatever exploits the vulnerability. Usually people, but it can be a program, hardware or a system. Threat events include natural calamity, system failure, human error and power outage.
ExposureBeing susceptible to asset loss because of a threat, the possibility that a vulnerability can or will be exploited by a threat agent or event.
RiskThe possibility or likelihood that a threat will exploit a vulnerability to cause harm to an asset. An assessment of probability, possibility or chance.
AttackThe exploitation of a vulnerability by a threat agent.
BreachA security mechanism being bypassed or thwarted by a threat agent.
Security controlWhat reduces the likelihood or impact of a risk, or helps identify issues: firewall, IDS/IPS, auditing, data classification, separation of duties.
The chain, in one line: a threat agent exploits a vulnerability in an asset → that is an attack → the chance of it happening is risk → a successful bypass is a breachcontrols reduce likelihood or impact
  • Attack surface: all the vulnerabilities or weaknesses in the security controls that an attacker could exploit. Attack vectors are the routes threat actors use to gain unauthorised access. Attacks are prolific because the attack surface keeps growing: IoT and smart devices, mobile, home networks, data centres, the supply chain.
  • Actors posing risk to a business: cyber criminals after money or saleable data; industrial competitors and foreign state actors seeking economic advantage; APTs gathering military and national intelligence; hackers who find it an enjoyable challenge; hacktivists with political or ideological motives; and employees or others with legitimate access, whether by accident or deliberate misuse.

Risk management: the process, and Sun Tzu

Definition Risk management is the process of discovering and assessing the risks to an organisation's operations and determining how those risks can be controlled or mitigated. The goal is to reduce risk to an acceptable level: never to zero.
The cycle Risk identification → Risk analysis → Risk evaluation → Risk treatment / control / response → Risk review and monitoring → (back to identification)

The Sun Tzu framing, which the deck leans on and which makes a tidy opening paragraph:

  • “If you know the enemy and know yourself, you need not fear the result of a hundred battles. If you know yourself but not the enemy, for every victory gained you will also suffer a defeat. If you know neither, you will succumb in every battle.”
  • Know yourself: identify, examine and understand your valuable information assets and how each is protected while being processed, stored and transmitted. A database security administrator asks: what type of data is stored, where are the servers, what DBMS is it.
  • Know the enemy: identify, examine and understand the threats facing those assets. For a web application that means XSS, SQL injection, DoS, CSRF/XSRF, and so on.
  • All three communities of interest must take part: InfoSec, IT, and the business/non-technical side. Together they locate operational weaknesses, understand how information is processed, stored and transmitted, and identify what resources are available. Only then can a strategic plan of defence be developed.
  • Risk management is not install-and-forget. It is a process of creating safeguards and controls that are then reviewed.

Risk identification, the five steps

Risk identification begins with self-examination. Managers identify the information assets, classify them into useful groups, and prioritise them by overall importance.

  1. Create an inventory of information assets: people, procedures, data and information, software, hardware, networking elements. Do this without prejudging the value of anything; value is assigned later.
  2. Classify and organise those assets meaningfully: into the six categories above, reflecting sensitivity and security priority. A classification scheme must be comprehensive (every inventoried asset fits a category) and mutually exclusive (each asset sits in exactly one).
  3. Assign a value to each asset: a relative, comparative judgement so the most valuable get the highest priority.
  4. Identify threats to the catalogued assets: threat identification, then threat assessment.
  5. Pinpoint vulnerable assets by tying specific threats to specific assets.

Attributes to record, by asset type:

Asset typeAttributes
PeoplePosition name/number/ID, supervisor name/number/ID, security clearance level, special skills
ProceduresDescription, intended purpose, the software/hardware/network elements it is tied to, where it is stored for reference, where it is stored for update
DataClassification, owner/creator/manager, size, data structure used (sequential, relational), online or offline, location, backup procedures
Software, hardware, networkName, IP address, MAC address, asset type, serial number, manufacturer, model or part number, software version or revision, physical location, logical location, controlling entity

Assigning value, the questions to ask. Which asset is most critical to the organisation's success? Which generates the most revenue? The highest profitability? Which is most expensive to replace? Most expensive to protect? Whose loss or compromise would be most embarrassing or create the greatest liability?

  • Weighted factor analysis is the final step: score each asset against each criterion, multiply by the criterion's weight, and sum to a single figure. That produces the ranked list separating critical from non-critical assets.
  • Threat assessment criteria: which threat represents the most danger, judged on the probability of it attacking, the frequency with which it can occur, the amount of damage it could create, the cost to recover, and which threats need the greatest expenditure to prevent.
  • The TVA worksheet combines the two lists: assets with their vulnerabilities down one axis, prioritised threats across the other. Each cell is a threat to vulnerability pair to be assessed. This is the deliverable that feeds risk assessment.

Risk assessment, the risk determination formula

Definition Risk assessment is the process of determining which threats are more likely to happen and will affect the organisation's information assets.
Risk = (likelihood of occurrence of a vulnerability × value of the information asset) − (percentage of risk already mitigated by current controls) + (uncertainty of current knowledge of the vulnerability)
  • Likelihood: an overall rating, often on a defined numerical scale such as 0.1 to 1.0, of the probability that a specific vulnerability will be exploited.
  • Asset value: a weighted score from the risk identification stage (1 to 100, or low/medium/high).
  • Percentage mitigated by current controls: if a vulnerability is fully managed by an existing control it can be set aside; if partially controlled, estimate the fraction handled.
  • Uncertainty: you cannot know everything about every vulnerability, and the degree to which a control reduces risk is itself an estimate. Uncertainty is a manager's judgement from experience. If assumptions are 90% accurate, uncertainty is 10%.
Worked example from the deck

Asset A is worth 50 with one vulnerability at likelihood 1.0, no controls, assumptions 90% accurate. Asset B is worth 100 with vulnerability #2 at likelihood 0.5 with a control covering 50% of its risk, and vulnerability #3 at likelihood 0.1 with no controls, assumptions 80% accurate.

A, vuln 1 = (50 × 1.0) − 0% + 10% = 55 B, vuln 2 = (100 × 0.5) − 50% + 20% = 35 B, vuln 3 = (100 × 0.1) − 0% + 20% = 12

The ranked vulnerability risk worksheet lists them 55, 35, 12: and that ordering, not the raw numbers, is what drives the remediation queue.

Quantitative risk analysis: AV, EF, SLE, ARO, ALE

This is the case-study question and the stated assignment. Learn the five formulas cold; they are almost free marks if you show the working.

EF Exposure Factor the % of the asset's value lost in one incident SLE Single Loss Expectancy SLE = AV × EF (cost of ONE event) ARO Annualized Rate of Occ. how many times per year you expect it ALE Annualized Loss Expectancy ALE = SLE × ARO (cost per YEAR) Is the control worth buying? value of the safeguard = ALE(before) − ALE(after) − annual cost of the control buy it when that number is positive
Worked case 1, the warranty question

An LCD monitor costs $500 to replace and you expect three failures a year. A two-year warranty is offered at $2,000. Buy it?

SLE = $500 cost to replace one monitor ARO = 3 failures expected per year ALE = 500 × 3 = $1,500 / year over the 2 years the warranty covers: 1,500 × 2 = $3,000 cost of the countermeasure: $2,000

Answer: yes: the warranty costs $2,000 against $3,000 of expected loss, a net saving of $1,000, so it is a cost-effective countermeasure.

Worked case 2: the assignment (Online Nepal Mart)

An online retailer holds PII for 10,000 customers. The website has an unpatched SQL injection flaw. Threat: an attacker exploits it and steals the whole database.

Step 1: quantify the risk AV = NPR 5,000,000 fines + brand damage + notification + credit monitoring EF = 60% (0.6) share of that value lost in a full breach SLE = 5,000,000 × 0.6 = NPR 3,000,000 ARO = 0.5 SQLi is common and actively exploited → 50% chance this year ALE = 3,000,000 × 0.5 = NPR 1,500,000 / year Step 2: mitigate WAF subscription NPR 150,000 / yr code review + patch (one-off) NPR 200,000 vulnerability scanner NPR 50,000 / yr total = NPR 400,000 new ARO = 0.1 controls cut the chance to 10% new ALE = 3,000,000 × 0.1 = NPR 300,000 / year Step 3: is it worth it? ROSI = (1,500,000 − 300,000) − 400,000 = NPR 800,000 / year saved

Recommendation: implement. The benefit clearly outweighs the cost, so the plan is justified: and note that SLE is unchanged by the controls: they reduce likelihood, not the damage a successful breach would do.

Quantitative versus qualitative: the comparison question:

QuantitativeQualitative
OutputMoney: SLE, ALE, ROSIRatings: high/medium/low, a 1 to 5 scale, a heat map
BasisMeasured or estimated financial values and frequenciesExpert judgement, scenario workshops, experience
StrengthDirectly supports cost/benefit decisions; results are comparable and defensible to a boardFast, cheap, works where no reliable data exists; captures reputational and intangible harm
WeaknessSlow and data-hungry; hard to price brand damage or loss of life; false precisionSubjective and hard to compare between assessors; cannot be fed into a cost/benefit sum
Use whenThe asset and loss history can be priced: hardware, fraud, downtimeAssessing new systems, human factors, or anything where numbers would be invented

Most real programmes are hybrid: qualitative screening to find the handful of risks worth the effort, then quantitative analysis on those.

Selecting security controls: purpose × mechanism

Controls are classified twice over, and a good answer gives both axes with an example in each cell.

By purpose, what the control is trying to do:

  • Preventive: stops a security issue from occurring. Firewall rule, MFA, encryption, locked door.
  • Deterrent: discourages a policy violation. Warning banner, visible CCTV, published sanctions.
  • Detective: identifies issues requiring investigation. IDS, log review, SIEM alert, audit.
  • Corrective: modifies the environment to return systems to normal after unwanted activity, or stops an attack in progress. Quarantining a file, terminating a session, applying a patch.
  • Recovery: remediates issues that have already occurred. Restoring from backup, failing over to a DR site.
  • Compensating: an alternative when the primary control is not feasible; must give equivalent protection.

By mechanism, how it is implemented:

  • Technical (logical): uses technology to achieve the objective: ACLs, encryption, IPS, MFA.
  • Administrative (managerial): uses process: policies, background checks, awareness training, separation of duties.
  • Physical: impacts the physical world: fences, guards, locks, mantraps, fire suppression.

The three broad categories the deck names for identifying possible controls are policies (the general approach to handling a threat), programs (activities the organisation performs to improve security) and technical controls (hardware or software mechanisms managing access and protecting resources).

Risk treatment, the four responses

Definition Risk treatment analyses and implements possible responses to control risk.
OptionWhat it meansExample from the deck
AvoidanceChange business practice so the risk becomes irrelevant, stop doing the risky thingServing HTTPS instead of HTTP; choosing a memory-safe language (Rust) over C/C++ so whole vulnerability classes cannot occur
TransferenceShift the financial consequence to a third party. The risk still happens, someone else paysCyber insurance; moving a workload to a cloud provider who carries part of the obligation
MitigationReduce the likelihood or the impact. The commonest response by farPatching vulnerable systems, an incident response plan, a business continuity plan
AcceptanceChoose to continue operating in the face of the risk, knowingly and with sign-offA low-likelihood, low-impact flaw on an isolated test box, formally accepted by the risk owner
  • Acceptance must be documented and owned. Silent acceptance: nobody decided, it just never got fixed: is negligence, not treatment.
  • Residual risk is what remains after treatment. There is always some; the question is whether it is below the organisation's stated appetite.
  • Transference does not transfer accountability. Insurance pays for the loss; the regulator and your customers still come to you.

NIST RMF, and “you can't boil the ocean”

The phrase “You can't boil the ocean” means you cannot protect everything, everywhere, to the same standard. Resources are finite, so security must be prioritised by risk: the most valuable assets facing the most likely threats get the strongest controls, and the rest get a defensible baseline.

Why the statement is true, in risk-management terms:

  • The asset inventory of any real organisation runs to thousands of items, and the TVA worksheet pairs every one against every plausible threat. If you assume every threat can and will attack every asset, the project scope becomes too complex to finish, which is exactly why the deck manages threat identification and vulnerability identification separately and only coordinates them at the end.
  • Risk can only be reduced to an acceptable level, never to zero, so past a certain point extra spend buys almost nothing.
  • Hence weighted factor analysis, the ranked vulnerability risk worksheet, and the whole apparatus of ordering risks. The ordering is the deliverable.

The NIST Risk Management Framework (SP 800-37) is the formal version of that idea, seven steps that force prioritisation before spending:

  1. Prepare: set context: roles, risk appetite, organisation-wide strategy, and the assessment approach. This is where “what are we not going to do” gets decided.
  2. Categorise: classify the system and the information it processes by the impact of losing confidentiality, integrity or availability. This is the step that stops you boiling the ocean: a low-impact system does not get high-impact controls.
  3. Select: choose the control baseline matching that categorisation, then tailor it: add, remove or substitute controls for this system's actual risk.
  4. Implement: deploy the controls and document how they were implemented.
  5. Assess: test whether the controls are implemented correctly, operating as intended and producing the desired outcome.
  6. Authorise: a senior official formally accepts the residual risk and permits the system to operate. An explicit, accountable acceptance decision.
  7. Monitor: continuously watch control effectiveness, changes to the system and the threat environment, and feed changes back into the cycle.
Answer skeleton: “'You can't boil the ocean' … in light of NIST RMF”
  1. Define risk management and state its goal: reduce risk to an acceptable level, not zero.
  2. Explain the phrase: finite budget, unbounded attack surface, so triage is compulsory.
  3. Walk the seven RMF steps, dwelling on Categorise and Select/tailor as the prioritisation machinery, and Authorise as the point where somebody formally owns the leftovers.
  4. Tie back: weighted factor analysis and the ranked vulnerability worksheet are how the prioritisation is actually computed.
  5. Close on Monitor: the ocean keeps refilling, so the cycle repeats.

Due care and due diligence

The distinction, in one line Due diligence is knowing what should be done. Due care is doing it.
  • Due care: taking the actions a reasonable and prudent person would take in the same circumstances. It is about conduct: actually deploying the control, actually running the backup, actually revoking the leaver's account.
  • Due diligence: the ongoing investigation and management effort required to know what due care demands. It is about knowledge and oversight: risk assessments, vendor assessments, monitoring, audit, keeping policy current.
  • Practical example. Writing a password policy that mandates rotation and MFA, after assessing the threat, that is due diligence. Enforcing it in Active Directory, training staff and auditing exceptions each quarter, that is due care. Doing the first without the second gives you a document and a breach.
  • Why failure to exercise due care is negligence. Negligence in law is failing to meet the standard of care a reasonable party would meet, where that failure causes foreseeable harm. Once an organisation has done the diligence, or once the control is so widespread as to be industry standard, the risk is foreseeable. Not acting on a known, foreseeable, cheaply-fixable risk is the definition of falling below the standard, so courts and regulators treat it as negligence and liability follows.
  • This is why policy matters legally. Policies are reference documents for internal audit and for resolving disputes about management's due care and diligence; they are a clear statement of management's intent. The Equifax breach in Chapter 7 is the canonical example: the patch existed, the risk was known, and nobody applied it.

1.6Security policies and procedures

Policies, standards, baselines, guidelines and procedures

The single most reusable list in the course, it is asked here and again in Chapter 7.

DocumentWhat it isStatusExample
PolicyA plan or course of action that guides decisions. High-level statement of management intentMandatoryAcceptable Use Policy, Access Control Policy, Remote Access Policy
StandardCompulsory requirements for the use of hardware, software, technology and controls, the detailed statement of what must be done to comply with policyMandatoryPCI-DSS, NIST CSF, ITIL, ISO; internally, “we buy this manufacturer” or a consistent company email signature
BaselineThe minimum level of security every system in the organisation must meet. Anything below it comes out of production until it is brought upMandatoryCommon Criteria, ITSEC, NIST hardening baselines
GuidelineRecommended action: how to apply a standard, or what to do when no standard exists. States which mechanisms should be used rather than prescribing a product or configurationRecommendedSecurity best-practice notes, vendor hardening advice
ProcedureStep-by-step instructions describing the exact actions needed to implement a specific mechanism or solutionMandatoryThe runbook for deploying and configuring the firewall
THE POLICY HIERARCHY Broader and more general at the top, more specific and technical at the bottom. Only one layer is optional. Policy plan or course of action guiding decisions Standard compulsory requirements for tech and controls Baseline minimum level every system must meet Guideline recommended action and best practice Procedure step by step instructions to implement a control MANDATORY MANDATORY MANDATORY RECOMMENDED MANDATORY All data protected per its classification Laptops use AES-256 full-disk encryption The hardened OS build image Prefer passphrases to short complex passwords The runbook for enabling BitLocker more specific
  • Policies are the least expensive means of control and often the most difficult to implement. They cost only the management time to create, approve and communicate them, plus the employee time to integrate them into daily work: trivial next to technical controls, even with an outside consultant. But they are frequently impracticable, lack commitment, or do not match the organisation's objectives, because they depend on people changing behaviour.
  • The basic rules for shaping a policy: never conflict with law; stand up in court; be properly supported and administered; contribute to the success of the organisation; involve the end users of the information systems.
  • Example policies you should be able to name: Acceptable Use Policy, Data Breach Response Policy, Disaster Recovery Plan, Business Continuity Plan, Remote Access Policy, Access Control Policy.

Chapter 7 takes this further into the NIST SP 800-14 three tiers: EISP, ISSP and SysSP, and into what makes a policy legally enforceable. If a question asks about policy for eight marks, cover both this hierarchy and those tiers.

ContextWhy any of this is worth doing

Cyber attack as global economic, political and technical warfare

A ten-mark essay question. It wants scale, motive, named incidents and consequence, not a definition.

  • The claim: cyber attack has transformed from nuisance into a global economic, political and technical instrument. Attackers continuously evolve sophisticated tactics, techniques and procedures (TTPs), and the most advanced attack can compromise a whole network in hours, Ryuk ransomware has deployed two hours after initial access.
  • Economic. Massive ransomware campaigns, big-game hunting and widespread data breaches are daily headlines. Ransomware cost rose from $8bn (2018) to $11.5bn (2019) to $20bn (2020), with average payments climbing from roughly $312k (2020) to $570k (H1 2021) and average demands from $847k to $5.3m, a 518% jump in a single year.
  • Political / state. Stuxnet: built by the NSA, CIA and Israeli intelligence, targeted the PLCs in Iran's nuclear programme and was the first known virus capable of crippling hardware. SolarWinds (Dec 2020, APT29 “Cozy Bear”) put a backdoor into Orion updates and reached 18,000 customers including US government agencies, Microsoft, FireEye, Cisco, Intel, Nvidia and VMware. Lazarus, attributed to North Korea, has taken an estimated $3bn from crypto platforms to fund weapons programmes.
  • Technical / supply chain. Log4j: a ubiquitous Java logging library in enterprise applications, cloud services, IoT devices and even Minecraft servers, let an attacker execute arbitrary code on any vulnerable server. The xz backdoor was a multi-year social-engineering campaign against an open-source maintainer. One flaw in one dependency becomes everyone's flaw.
  • Physical consequence. Maroochy Shire: a disgruntled former employee of the installer used a stolen laptop and radio kit to drive the SCADA system, and released 800,000 litres of raw sewage into rivers, parks and a hotel's grounds. Weeks of “unexplained malfunctions” before anyone suspected an attacker.
  • Impact on the victim: reputational damage, financial loss, loss of customers, falling stock and profit, lost sales. Sensitive customer information, intellectual property and even control of key machinery are increasingly at risk.
  • And yet: management at most organisations still treats InfoSec as relatively unimportant and not worthy of top-management attention, failing to appreciate that doing it well produces tangible business benefits such as increased sales and competitive advantage. As Warren Buffett put it: “It takes 20 years to build a reputation and five minutes to ruin it.”

Question bankEvery question set on this chapter

Chapter 1 questions, verbatim

Wording exactly as the course published it. Asked means it appeared in the chapter notes or as a stated assignment; likely means it was published as a predicted question. Each one links to the card that answers it.

Describe the CNSS security model and how it applies to information security.

“You can’t boil the ocean”. Elaborate the intent behind the statemnet in the light of risk management concepts with references to NIST RMF framework.

Or: What is risk management and why do we need risk management? Explain the risk management in light of NIST RMF framework.

Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA?

AskedAssignmentQuantitative analysis

A case to prepare a quantitative risk analysis and risk mitigation plan.

AskedCase studySLE, ARO, ALE

(a) What is SLE (Single Loss Expectancy)? (b) What is ARO (Annualized Rate of Occurrence)? (c) What is ALE (Annualized Loss Expectancy)? (d) Should you purchase warranty coverage? Justify with reason.

AskedCase studyDormant account breach

(a) What happened and how did the organization suffer? (b) What are the factors that led to this event? (c) What should have been done to prevent this issue?

Cyber-attack has transformed into Global, economic, political, and technical warfare. Explain.

Likely[2+3+3]CIA triadCIA vs AIC

Define the CIA Triad and explain its three components. For each component, describe a specific threat that targets it. Discuss why an Operational Technology (OT) system might prioritize the triad differently (AIC) compared to a traditional IT system (CIA).

Likely[2+6]Defence in depth

What is the Defense in Depth (Layered Security) strategic approach? Based on the strategy, identify and briefly explain four distinct security layers, such as Perimeter, Internal Network, Host, and Data.

Explain the relationship between Organizational Assets, Threats, and Vulnerabilities in cybersecurity. Describe the five key steps involved in the risk identification process, starting from creating an inventory of assets.

Differentiate between Quantitative and Qualitative Risk Analysis. Describe the four primary risk treatment strategies an organization can adopt (avoidance, transference, mitigation, acceptance), providing a clear example for each.

Explain the difference between Due Care and Due Diligence, providing a practical example to illustrate the distinction. Why is a failure to exercise due care often considered negligence in a legal context?

Likely[4+4]Policy hierarchy

Define and differentiate between Policies, Standards, Baselines, and Guidelines in information security governance. Explain why security policies are considered the least expensive means of control but are often the most difficult to implement.

Case study: the dormant account nobody closed

The scenario. A former Vice President of Technology, terminated three years earlier, remotely accessed his old employer’s internal email system. His old credentials still worked. He read executive and HR mail for over five months, focusing on discussions about employee terminations, then used an anonymous webmail account to warn two employees they were about to be fired.

(a) What happened, and how did the organisation suffer.

  • Financial loss: over $100,000 spent investigating the breach.
  • Operational disruption and loss of confidentiality: the two warned employees reported the leak to their supervisors, exposing private executive-level communications and forcing an internal scramble.

(b) The factors that led to it. A failure of basic policy and procedure, not of technology:

  • No offboarding process. The leaver’s accounts and credentials were never deactivated or revoked on termination. This is the root cause.
  • No password management. User IDs and passwords remained virtually unchanged over three years, so old credentials stayed valid indefinitely.
  • No access audits. A dormant account belonging to a terminated employee logged in remotely for five months and nobody reviewed active accounts or watched remote access logs.

(c) What should have been done.

  • Implement an offboarding policy: a formal, mandatory procedure that terminates all system access (email, network, remote access) the moment employment ends.
  • Enforce password management: a strong password policy with rotation at regular intervals for all users, privileged accounts especially.
  • Conduct regular access audits: periodic review of every user account to find and disable stale, orphaned or unauthorised ones. A review would have flagged a terminated VP’s account immediately.
  • Monitor remote access logs: a three-year dormant account suddenly logging in is exactly the anomaly monitoring exists to catch. Detection would have taken minutes, not five months.

The examinable point: every control that would have stopped this is administrative, not technical. It is the cheapest category of control, and the one this organisation skipped.

Chapter 2 · 9 hours · 15 marks

Malware and Cyber Attacks

The joint-heaviest chapter on the paper. Eleven syllabus topics, each one a named attack class with a mechanism, an example and a countermeasure. Learn it as attack, then defence, every time.

2.1 to 2.2Malware and how it spreads

Malicious code: the umbrella term

Definition Malicious code objects are the broad range of programmed computer security threats that exploit network, operating system, software and physical security vulnerabilities to spread malicious payloads to computer systems.
  • Two families, split by who does the spreading. Viruses and Trojan horses depend on irresponsible human use to move from system to system. Worms spread rapidly among vulnerable systems under their own power, with no human involved.
  • The major cyber threat concerns the course names: malware (viruses, worms, Trojans), phishing and spear phishing, ransomware, DoS and DDoS, advanced persistent threats (APTs), and web application attacks such as SQL injection and XSS.

Viruses: propagation and destruction

  • A virus has exactly two functions. Propagation defines how it spreads from system to system, infecting each machine it leaves in its wake. Destruction is the payload, whatever malicious activity the writer had in mind, and it can hit any of confidentiality, integrity or availability.

The four propagation techniques. Name the technique, then the mechanism, then the example:

TechniqueHow it worksExample
Master Boot Record Attacks the MBR, the part of bootable media the computer uses to load the OS at boot. The MBR is tiny, so the virus stores most of its code elsewhere on the media. Spread mostly by infected media shared between users: if the media is in the drive at boot, the target reads the infected MBR, the virus loads into memory, infects the local hard drive MBR, and spreads onward. Petya overwrites the MBR, leaving the OS unbootable
File infector Infects executable files and triggers when the OS runs them. Copies its code onto programs such as .COM and .EXE. Payloads range from highly destructive (formatting the drive) to benign (displaying a message). A companion virus is self-contained and escapes detection through the filename: if you have game.exe it uses game.com
Macro virus Abuses the scripting built into office documents to automate repetitive tasks, typically Visual Basic for Applications. Macros are a real productivity feature, which is exactly what exposes the system: opening the document runs the macro, and the macro is the virus. This is why documents from unexpected sources are treated as executables. Melissa
Service injection Uses process injection (DLL injection, process hollowing, thread hijacking) to run inside the memory space of a legitimate Windows system process. The malicious code masquerades as trusted system activity, bypasses basic process monitoring, and blends into normal traffic. Compromising a trusted process lets it bypass antivirus running on the host. Defence: keep all software patched

Virus technologies: how viruses evade antivirus

  • Multipartite: uses more than one propagation technique. The Marzia virus (1993) first infected critical COM and EXE files including command.com, making it a file infector, then two hours later wrote malicious code to the master boot record, making it an MBR virus as well.
  • Stealth: hides by tampering with the operating system to fool antivirus packages. A stealth boot sector virus might overwrite the MBR and then modify the OS file access functions so that reading the MBR returns the clean original.
  • Polymorphic: modifies its own code as it travels from system to system. Propagation and destruction stay the same, but the signature differs on every infection, so signature matching fails.
  • Encrypted: encrypts its payload to make detection harder. The weakness is that anything encrypted needs a decryptor or a key, so the decryption routine itself carries a telltale signature that updated antivirus can match on.

Worms

Definition A worm carries the same destructive potential as other malicious code objects with one added twist: it propagates itself without requiring any human intervention. That single property is what makes worms a significant risk to network security.
  • Morris Worm (1988). Written by Robert Tappan Morris, it spread by exploiting four security holes in Unix: vulnerabilities in sendmail, finger and rsh/rexec, plus guessing weak passwords. It unintentionally caused denial of service for around 10% of the 60,000 machines then on ARPANET. Morris received three years probation, 400 hours of community service and a $10,000 fine under the Computer Fraud and Abuse Act of 1986. Ironically his father was director of the NSA National Computer Security Center at the time.
  • Code Red. Randomly selected hundreds of IP addresses and probed for a vulnerable version of IIS, compromising any it found. Because each infected host sought many new targets, its reach magnified rapidly. It defaced HTML pages on the local web server and planted a logic bomb to launch a denial of service attack against 198.137.240.91, then the White House web server. Government administrators changed the IP address before the attack began.
  • Stuxnet. Aimed originally at Iran nuclear facilities, targeting the programmable logic controllers that automate machine processes. Built by the NSA, CIA and Israeli intelligence, uncovered in 2010 but thought to be in development since 2005. The first known virus capable of crippling hardware. Its propagation techniques: searching for unprotected administrative shares on the local network, exploiting zero-day vulnerabilities in the Windows Server service and Print Spooler service, connecting to systems using a default database password, and spreading on shared infected USB drives.

Virus vs worm vs Trojan horse

The comparison question. Answer on primary function and propagation, then give the macro virus mechanism.

VirusWormTrojan horse
Primary functionInfect a host file or boot record and deliver a destructive payloadReplicate across a network as fast as possible, often carrying a payload tooDeceive. It appears benevolent while carrying a hidden malicious payload
Needs a host fileYes, it attaches to an executable, document or boot sectorNo, it is a standalone programNo, it is the program the user chose to run
PropagationRequires human action: running the infected file, booting from infected media, opening the documentSelf-propagating, exploits a vulnerability or weak credentials with no human involvedRequires the user to download and run it willingly, believing it is something else
Replicates itselfYesYes, aggressivelyUsually no
ExampleMelissa, Petya, MarziaMorris, Code Red, StuxnetThe Xbox emulator Trojan, rogue antivirus

How a macro virus infects a system, in the four steps an examiner wants:

  1. Delivery. The victim receives a document (Word, Excel) as an email attachment or download, usually with an urgent pretext.
  2. Execution. Opening it triggers the embedded VBA macro, either automatically through an auto-open event or after the user clicks Enable Content.
  3. Infection. The macro copies itself into the global template so every document subsequently opened or created on that machine is infected too.
  4. Payload and spread. It then does its damage and mails itself onward to the victim address book, which is how Melissa spread.

Trojan examples from the deck. A 2002 Trojan claimed to let PC users run Xbox games. It simply did not work, but it wrote a Windows Registry value that opened a specific web page at every boot, so the creators could cash in on advertising revenue. A rogue antivirus tricks the user into installing it by claiming to be an antivirus package, then either steals personal information or demands payment to update itself. The update simply disables the Trojan.

Logic bombs, botnets, spyware and supply chain compromise

  • Logic bomb: malicious code that infects a system and lies dormant until triggered by one or more conditions such as a date, a program launch or a website logon. Michelangelo infected the MBR through shared floppy disks and hid until 6 March, the artist birthday, then reformatted the hard drive and destroyed all data.
  • Botnet: a number of internet-connected devices each running one or more bots. Botnets perform DDoS attacks, steal data, send spam, and give the attacker access to the device and its connection. Examples: Prometei (July 2020), a cryptomining botnet that spreads using SMB with stolen credentials, PsExec, WMI and SMB exploits to move laterally, then quietly mines Monero; FritzFrog (August 2020), a peer-to-peer botnet.
  • Taidoor: a malware variant used by a Chinese APT for cyber espionage against governments, corporations and think tanks, infecting systems since 2008 according to US Cyber Command.
  • Spyware: monitors your actions and transmits the details to a remote system. It might wait for you to log into a banking site and send the username and password to its creator, or wait for a credit card number on an e-commerce site and pass it to a fraudster to resell.
  • Adware: displays advertisements on infected computers. Simple forms show pop-ups; more nefarious versions monitor shopping behaviour and redirect you to competitor sites.
  • MageCart: a highly targeted group known for placing digital credit card skimmers on e-commerce sites, intercepting cardholder name, address, CVV and expiry, which are then sold on underground card shops.
  • SolarWinds supply chain compromise. On 13 December 2020 FireEye discovered a highly evasive campaign that used the SolarWinds supply chain to reach organisations worldwide. The actor deployed a backdoor named SUNBURST into the Orion IT monitoring platform. Multiple trojanised updates were digitally signed and published to the SolarWinds update site between March and May 2020. SolarWinds serves more than 300,000 customers, including over 425 of the US Fortune 500, all ten top US telecoms companies, every branch of the US military, the Pentagon, State Department, NASA, NSA, Postal Service, Department of Justice and the Office of the President.

RansomwareThe dominant threat of the decade

Ransomware, RaaS and the extortion ladder

The basic attack chain Attacker gains access to the victim network → deletes all shadow copies so local recovery is impossible → encrypts the data → makes a ransom demand. If the demand is met the victim will likely get their data back, which is a possibility rather than a guarantee. If not, and there is no backup or decryptor, the data is lost.
  • Delivery. Malicious attachments, drive-by downloads, and persuading users to download and install software.
  • Scale. Ransomware cost $8bn in 2018, $11.5bn in 2019 and $20bn in 2020. Average payment rose from about $312,000 in 2020 to $570,000 in the first half of 2021, an 82% increase. Average demand rose from $847,000 to $5.3m, a 518% increase.
  • Operators are ruthless. Attacks surged even during the COVID-19 pandemic, with healthcare providers among the targets.
  • Named families: WannaCry, Petya and NotPetya, EvilQuest, Ryuk.
Definition Ransomware as a Service (RaaS) is a criminal business model in which one group writes and maintains the malicious code while another group, the affiliates, spreads it. The developers take a cut of each ransom. RaaS gives less-experienced criminals everything they need to launch an attack: the encryptor, the leak site, the negotiation portal and support.
  • Why the model matters: it separates skill from scale. Writing reliable crypto malware is hard; sending phishing mail is not. RaaS lets the skilled group monetise many unskilled operators at once, which is why volume exploded.
  • Named RaaS developers identified on underground forums: Ryuk, REvil, RainMaker Labs, GandCrab, Sodinokibi, Jokeroo.

The extortion ladder. Each rung adds a new lever on top of the previous ones, because good backups defeated encryption alone:

THE RANSOMWARE EXTORTION LADDER Each rung keeps every lever below it and adds one more, because the defence against the previous rung got good. RUNG 1 RUNG 2 RUNG 3 RUNG 4 Single Double Triple Quadruple delete shadow copies, then encrypt the data and demand payment + exfiltrate first, then leak parts publicly and raise the demand + launch a DDoS attack against the victim while they try to recover + contact the victim users and customers directly to apply pressure defeated by tested offline backups backups no longer save you no time to recover calmly disclosure happens either way Rung 2 is the pivotal one. Once the data is already stolen, a perfect restore still leaves a reportable breach, regulatory exposure and reputational harm, so the ransom stops being about decryption and starts being about silence. Ransomware as a Service sits underneath all four: one group writes and maintains the code, affiliates spread it and share the proceeds, which separates the skill of writing crypto malware from the scale of sending phishing mail.
StageAdded leverWhy it was added
SingleEncrypt the data after deleting shadow copiesThe original model. Defeated by a victim with tested offline backups
DoubleExfiltrate sensitive data before encrypting, then leak parts of it publicly or on the dark web and raise the demandBackups no longer save you. Even a fully restored victim faces a data breach, regulatory exposure and reputational harm
TripleLaunch a DDoS attack against the organisation on top of encryption and leaksKeeps the victim offline and in crisis while they try to recover, compressing the time available to refuse
QuadrupleContact the customers and users of the targeted organisation directly to apply pressureTurns the victim customer base into the negotiating lever, and makes the breach public whether the victim discloses or not

Not all wipers ask for money. The MBR wiper targeting Ukraine, tracked by Microsoft as DEV-0586 (now Cadet Blizzard), came in two stages. Stage 1 (stage1.exe, dropped in working directories such as C:\PerfLogs, C:\ProgramData, C:\ and C:\temp) overwrites the MBR with a fake ransom note; powering the device down executes it. Stage 2 (stage2.exe) downloads a file corrupter hosted on a Discord channel, which overwrites file contents with a fixed number of 0xCC bytes. Four things marked it out as destructive rather than criminal: the same ransom payload appeared at multiple victims rather than being customised; it overwrote the MBR with no recovery mechanism instead of encrypting; explicit payment amounts and wallet addresses were given, which modern criminals rarely do; and the only contact method was a Tox ID.

Prevention and recovery, the HIPAA-style checklist

Prevention: security awareness and training so staff can detect and report malicious software; risk analysis to identify risks to confidentiality, integrity and availability; risk management to reduce them to a reasonable level; access controls so rights granted are not excessive; and business associate agreements defining who prevents, manages and reports incidents.

Recovery: contingency plans covering data backup, disaster recovery and emergency operations mode; testing and revision procedures, including test restorations to verify backup integrity, because an untested backup is a hope rather than a control; and application and data criticality analysis so nothing critical is left out of the plan.

Incident handling: prepare teams and activities ahead of time; detect and analyse (scope, origin, whether it is ongoing, how it happened); contain the impact and propagation; eradicate the incident and the vulnerabilities that allowed it; recover lost data and return to business as usual; then handle post-incident regulatory and contractual obligations.

2.6Zero-day exploits

Zero-day: vulnerability, exploit, attack

Three terms, often confused Zero-day vulnerability: a security flaw in software or hardware that is unknown to the vendor and has no available patch. Zero-day refers to the number of days the vendor has known about the flaw and had to issue a fix.
Zero-day exploit: the code or technique written by attackers to take advantage of that unpatched vulnerability.
Zero-day attack: the execution of that exploit in the wild against target systems before any defence or patch exists.

Why they are so dangerous, which is the second half of the exam question:

  • They bypass traditional defences. Signature-based antivirus and IDS generally fail, because no signature exists yet. Everything that works by recognising the known is blind by construction.
  • State-sponsored usage. Because of their value on the black and grey markets, advanced zero-days are developed or acquired by nation-state APTs for espionage, so the attacker using one is usually well resourced and patient.
  • The window of vulnerability. Two delays keep systems exposed: the necessary gap between discovery of new malicious code and the issuing of patches and antivirus updates, and then slowness on the part of administrators in applying those updates. The second is usually longer than the first.

Worked case: the March 2021 Microsoft Exchange Server attack. Four chained CVEs:

CVESeverityFlaw typeRole in the chain
CVE-2021-26855Critical, CVSS 9.1Server-Side Request ForgeryInitial access. Bypasses authentication by masquerading as the Exchange server itself
CVE-2021-26857High, CVSS 7.8Insecure deserialisationPrivilege escalation. Runs code in the high-privilege SYSTEM account context
CVE-2021-26858High, CVSS 7.8Arbitrary file writePersistence. Writes web shells to disk after authentication
CVE-2021-27065High, CVSS 7.8Arbitrary file writePersistence. Secondary vector to drop web shells such as China Chopper
  • Phase 2, post-exploitation and lateral movement. Threat actors dropped web shells such as China Chopper, giving a persistent back door that survives service restarts. They then extracted hashed and plaintext credentials from server memory, and stole NTDS.dit, the Active Directory database.
  • Phase 3, blast radius. Active Directory theft is the worst case in enterprise security. Possession of the AD database grants domain administrator privileges and every password hash in the organisation. Attackers can then mint persistent access tokens, so trust in the identity layer is gone.
  • The recovery nightmare. Antivirus scanning and applying the vendor patch are no longer enough at that stage. Because the entire identity architecture is compromised, organisations are forced to rebuild the whole Active Directory domain from scratch.
The two discussion questions from the deck

1. If signature-based antivirus cannot detect a zero-day exploit, what could have alerted us? Anything that watches behaviour rather than known patterns. Behaviour-based IDS and EDR catching a web server process spawning a shell; process-lineage monitoring flagging w3wp.exe starting cmd.exe or powershell.exe; file integrity monitoring on the web root catching a new .aspx file appearing; outbound network and NDR analysis spotting C2 beaconing; SIEM correlation of unusual authentication and access to NTDS.dit; UEBA flagging a service account behaving unlike its baseline; and threat hunting against the published IoCs. In short, the Chapter 3 and Chapter 5 material exists precisely because signatures fail here.

2. Why did the emergency patch not fix already-exploited servers? A patch closes the door; it does not evict the attacker who already walked through it. The web shells, stolen credentials and stolen AD database all persist independently of the vulnerability. The attacker now has legitimate credentials and a back door, so they no longer need the exploit at all. Remediation requires hunting for and removing the web shells, resetting every credential, and in the AD-theft case rebuilding the domain.

2.3Social engineering

Social engineering and phishing

Definition Social engineering manipulates people rather than machines into breaking normal security procedure. In its most basic form the attacker simply calls the user and asks for their password, posing as technical support or another authority figure who needs the information immediately. It is one of the most effective tools attackers use to gain access to a system.
TypeWhat makes it different
PhishingMass fraudulent email designed to closely resemble legitimate communication, harvesting credentials or delivering malware
Spear phishingSpecifically targeted at an individual, based on research conducted by the attacker. Includes personal detail to make the message look authentic
WhalingA subset of spear phishing aimed at high-value targets such as senior executives, whose authority makes the payoff larger
VishingPhishing techniques over voice communication, typically the telephone
SmishingThe same over SMS, where there is no sender display name and links are shortened by default
QuishingThe lure is a QR code rather than a link. The destination is invisible to the reader, the code often survives email filtering as an image, and scanning usually moves the victim onto a personal phone outside corporate controls
Dumpster divingPhysically rummaging through the target company rubbish for sensitive information

The worked phishing example. Bob in Finance receives an email supposedly from AWS claiming an urgent invoice payment. Six indicators give it away, and they are the six an examiner wants listed:

  1. Urgency in the subject. Urgent: August Invoice creates time pressure so the reader acts before thinking.
  2. Look-alike sender address. The mail claims to be from AWS but comes from [email protected], with a doubled a.
  3. Look-alike link. The hyperlink text says one thing but leads to http://aawsinc.com/support, an insecure look-alike domain.
  4. Plain HTTP. The destination is not even encrypted.
  5. Sent outside business hours, Saturday at 9pm, when nobody is around to verify and the help desk is closed.
  6. Unexpected attachment. Invoice_August_AWS2134.docx, an Office document from a source you were not expecting, which is a macro virus delivery in one step.

Countermeasure. The deck gives one word, education and training. In practice add technical backing: DMARC, SPF and DKIM on inbound mail, external-sender banners, attachment sandboxing, link rewriting, a one-click report button, and phishing-resistant MFA so a harvested password is worth nothing.

2.7Password attacks

Password attacks

All four are brute force in the broad sense: they gain access to accounts when passwords are unknown, or when password hashes have been obtained. What differs is how they spread the attempts, and that is chosen to dodge lockout.

AttackMechanismDetection signal
Password guessingAn adversary with no prior knowledge of legitimate credentials guesses passwords to attempt access. Risky, because it causes numerous authentication failures and account lockouts depending on the login failure policyMany failures against one account in a short window
Dictionary attackGuesses drawn from a wordlist of likely passwords rather than the full keyspace, usually against a captured hash offlineOffline, so often invisible. Detect the theft of the hash instead
Password sprayingA single password, or a small list of very common ones, tried against many different accounts. Deliberately avoids the lockout that brute forcing one account with many passwords would triggerOne or two failures against very many accounts, from one source
Credential stuffingCredentials obtained from breach dumps of unrelated services are replayed against target accounts, relying on credential overlap from password reuseHigh success rate mixed with failures, from unusual geographies, with valid password on first try

Defence, in order of effect: phishing-resistant MFA, which makes a correct password insufficient; blocking known-breached and common passwords rather than forcing complexity rules; lockout or progressive delay tuned so it stops guessing without enabling a lockout DoS; detection rules built on the signals in the table above; and salted, slow password hashing so a stolen database resists dictionary attack.

2.4 to 2.5Denial of service and interception

DoS, DDoS, DRDoS, and the flood attacks

  • DoS. A denial of service attack can result in system crashes, system reboots, data corruption and blockage of services. One attacker, one victim.
  • DDoS. A distributed denial of service occurs when multiple systems attack a single system at the same time. Attackers commonly use botnets to launch them, which is what makes the difference practical rather than academic: the traffic arrives from thousands of legitimate-looking sources, so you cannot simply block one IP, and the aggregate bandwidth can exceed anything the victim provisions.
  • DRDoS. A distributed reflective denial of service does not attack the victim directly. It manipulates traffic or a network service so the attack is reflected back to the victim from other sources. DNS poisoning attacks and smurf attacks are examples. The advantages to the attacker are that the true source is hidden and the response is often larger than the request, giving amplification.
FloodProtocolMechanism
Smurf ICMP A spoofed broadcast ping. Normally ping sends an echo request to one system and gets one echo reply. In a smurf attack the attacker sends the echo request as a broadcast to every system on the network with the source IP spoofed to the victim address. All those systems reply to the victim, flooding it
Fraggle UDP ports 7 and 19 The same idea without ICMP. Broadcasts a UDP packet using the spoofed IP of the victim, so every system on the network sends traffic to the victim
Ping flood ICMP Floods a victim with ping requests. Very effective when launched by zombies in a botnet: tens of thousands of systems pinging at once overwhelm the target, which has no time left to answer legitimate requests
SYN flood TCP Half-open connections exhaust the victim connection table. The reference point the deck contrasts smurf against

Detection. Intrusion detection systems are an effective method of detecting many DoS and DDoS attacks. Knowledge-based detection matches known signatures. Behaviour-based detection spots deviation from normal, with a high number of false alarms as its primary drawback. Both come in HIDS (host-based) and NIDS (network-based) forms.

Mitigation. Rate limiting, traffic filtering, upstream scrubbing and CDN absorption, anycast to spread load, and blocking directed broadcasts at the router, which kills smurf and fraggle outright.

Man-in-the-middle attacks: interception then decryption

Definition A man-in-the-middle attack secretly places the attacker between two parties who believe they are talking directly to each other. The attacker can read, insert and modify traffic in both directions while both ends see a normal conversation.

A successful MITM attack has two distinct phases, and the exam question turns on keeping them apart:

Phase 1: interceptionPhase 2: decryption
GoalGet the traffic to flow through the attackerMake the intercepted traffic readable
Problem being solvedRouting. The victim traffic normally never touches the attackerEncryption. Sitting in the path is useless if everything is ciphertext
Example techniqueARP spoofing: the attacker sends forged ARP replies on the LAN claiming the gateway IP maps to the attacker MAC address, so every host sends its traffic to the attacker firstSSL stripping: the attacker downgrades the victim connection from HTTPS to HTTP, keeping an HTTPS link to the real server while the victim side runs in clear text
Other techniquesDNS spoofing or cache poisoning, rogue access point or evil twin Wi-Fi, DHCP spoofing, BGP hijackForged or fraudulent certificates, downgrade to weak cipher suites, exploiting a client that ignores certificate warnings
CountermeasureDynamic ARP inspection and DHCP snooping on switches, 802.1X port authentication, static ARP for critical hosts, avoiding untrusted Wi-Fi, VPNHSTS with preload so the browser refuses HTTP, certificate pinning, HTTPS everywhere, certificate transparency monitoring, refusing weak ciphers

The one-line answer: interception is about position, decryption is about readability. An attacker who achieves interception but not decryption sees only metadata; an attacker who achieves both sees everything, including session cookies, which leads straight into session hijacking.

2.8Application attacks

Buffer overflow, TOCTOU, back doors and rootkits

  • Buffer overflow. Exists when a developer does not properly validate user input to ensure it is of an appropriate size. Input that is too large overflows a data structure and affects other data stored in the computer memory, which an attacker shapes to overwrite a return address and redirect execution. Defence: bounds checking, safe string functions, stack canaries, ASLR and DEP, and memory-safe languages.
  • TOCTOU. Time of check to time of use is a timing vulnerability that occurs when a program checks access permissions too far in advance of the resource request. Between the check and the use, the attacker swaps the resource, for example replacing a file with a symbolic link to one they should not reach. This is a race condition, so defence means making check and use atomic rather than checking harder.
  • Back doors. Undocumented command sequences that let anyone who knows them bypass normal access restrictions. Often introduced during development and debugging to speed up the workflow and avoid repeated authentication, then left in.
  • Escalation of privilege. Once attackers gain a foothold they move quickly to a second objective: expanding from the normal user account they compromised to comprehensive administrative access. Rootkits are one of the most common ways they do it.
  • Rootkits. Malicious software designed to give unauthorised access to a computer. They are hard to detect and conceal their own presence within an infected system, letting the attacker remotely access the machine, manipulate it and steal data. LoJax is a UEFI rootkit used by APT28 to persist remote access software on targeted systems, which means it survives both a disk wipe and an operating system reinstall.

2.9Web application security

Cross-site scripting: reflected, stored and DOM based

Definition In cross-site scripting an attacker exploits a vulnerability on a website to inject malicious code, typically JavaScript, into a web application. When an unsuspecting user visits the infected page the code executes in the victim browser, and can steal cookies, hijack sessions, execute malware, bypass access control or help exploit browser vulnerabilities.

The comparison question turns on two things: where the payload lives, and how execution is reached.

Reflected (non-persistent)Stored (persistent)DOM based (local)
Where the payload resides In the request itself, usually a URL parameter. Nothing is saved anywhere In the application database or storage, saved by the server Nowhere on the server. It lives in the client-side script and the DOM, often after the URL fragment which is never sent to the server
Execution flow Attacker crafts a URL containing a rogue script and tricks the victim into opening it → server echoes the parameter into the response → the browser executes it as part of the page Attacker posts text containing malicious JavaScript to a forum, message board or guest book → the server stores it → every later visitor renders the page and executes it Victim opens a page with attacker-controlled input → the page own JavaScript reads it from the DOM (form field, cookie, location.hash) and writes it back unsafely → the browser executes it. The server response is never malicious
Who is hit One victim per delivered link Everyone who views the page, so it is the most damaging One victim, and the attack may be invisible to server-side logging and WAFs
Deck example Mike<SCRIPT>alert('hello')</SCRIPT> and a comment parameter that steals document.cookie via an image source A forum post whose body contains a script tag <script>alert(document.cookie)</script> executed through modified client-side JavaScript
Two developer-side mitigations 1. Contextual output encoding of every reflected parameter before it reaches HTML. 2. Strict input validation with an allow-list on the parameter, plus a Content Security Policy that blocks inline script 1. Encode on output, not just on input, so stored data is neutralised wherever it is rendered. 2. Sanitise rich text server side with a vetted allow-list library, never a home-made blacklist 1. Use safe DOM APIs: textContent instead of innerHTML, and never pass user data to eval or document.write. 2. Validate and encode client side before writing to any sink, and adopt Trusted Types plus CSP

Across all three: set session cookies HttpOnly so stolen script cannot read them, and Secure plus SameSite so they are not leaked or replayed. This limits the payoff even when injection succeeds.

Cross-site request forgery (XSRF or CSRF)

  • The trust relationship is the whole point. XSS exploits the trust a user has in a website to execute code on the user computer. XSRF exploits the trust a remote site has in a user system to execute commands on the user behalf.
  • How it works. It makes the reasonable assumption that users are often logged into many different websites at the same time. The attacker embeds code in one website that sends a command to a second website. When the user clicks the link on the first site, they are unknowingly sending a command to the second, and if they happen to be logged in there, the command may succeed.
  • The banking example. An attacker wanting to steal funds posts a link on an online forum. The link is actually a request to the money transfer site issuing a transfer to the attacker account. The attacker leaves it posted and waits for a logged-in user to click.

Ways to protect against XSRF, which is asked as a question on its own:

  1. Anti-CSRF tokens. Create web applications that use secure tokens the attacker would not know to embed in the links. A unique, unpredictable, per-session or per-request token is placed in the form and validated server side. This is the primary defence.
  2. Check the referring URL. Only accept requests that originated from your own site, by validating the Referer or Origin header.
  3. SameSite cookies. Set session cookies to SameSite=Lax or Strict so the browser does not attach them to cross-site requests at all, which removes the ambient authority the attack depends on.
  4. Use the right HTTP method. Never allow state-changing actions over GET, so a plain link or image tag cannot trigger them.
  5. Re-authenticate or step up for sensitive actions. Require the password, an MFA prompt or a confirmation step for transfers, password changes and email changes.
  6. Short sessions and explicit logout, which shrink the window in which the user is logged in and therefore exploitable.

SQL injection

  • What it is. Like XSS, SQL injection sends unexpected input to a web application. But instead of using that input to fool a user, it uses it to gain unauthorised access to the underlying database. The input breaks out of the data context and is executed as part of the SQL statement.
  • Why it is riskier than XSS from the organisation point of view. A successful XSS compromises the sessions of users who visit a page. A successful SQL injection can read, modify or destroy the entire database at once, which is every user rather than one, and it happens server side where the crown jewels are.

Protecting against SQL injection, in the deck order:

  1. Use prepared statements. Prepared statements, including parameterised queries and stored procedures, store the SQL statement on the database server where only DBAs and authorised developers can modify it. The application may pass parameters to it but cannot alter the underlying structure of the statement, so injected text can never become code. This is the real fix.
  2. Perform input validation. Allow-list the expected type, length, format and range on every parameter. A supporting control, not a substitute for the first.
  3. Limit account privileges. The application database account should hold the minimum rights it needs. If it cannot DROP, an injection cannot DROP either. This limits blast radius rather than preventing the flaw.
How SQLi fundamentally differs from reflected XSS
  1. Where the injected code executes. SQLi executes on the server, inside the database engine. Reflected XSS executes in the victim browser.
  2. What is being confused. SQLi confuses data with SQL. XSS confuses data with HTML or JavaScript.
  3. Who is the victim. SQLi victimises the application and every record it holds. Reflected XSS victimises the individual user who clicks the link.
  4. What the attacker gets. SQLi yields the data itself, and sometimes command execution on the host. XSS yields that one user session, cookies and browser context.
  5. Delivery. SQLi needs only a request to the vulnerable parameter. Reflected XSS additionally needs a victim to be tricked into opening a crafted URL.

2.10 to 2.11Reconnaissance and masquerading

Reconnaissance attacks

Reconnaissance lets an attacker find weak points to target directly with their attack code. Tool developers have automated it, and the three stages run in strict order, each narrowing the target set:

  1. IP probes, also called IP sweeps or ping sweeps, are usually the first reconnaissance carried out against a targeted network. Output: a list of live hosts. Nmap is the most common tool for both this and port scanning.
  2. Port scans. With a list of active systems in hand, the attacker probes them to determine what public services are running on each machine. Web servers, file servers and other servers supporting critical operations are prime targets.
  3. Vulnerability scans. Having picked a specific system, the attacker needs a specific vulnerability that can be exploited to gain the desired access permissions. Popular tools: Nessus, OpenVAS, Qualys, Core Impact, Nexpose. These are the same tools defenders run in Chapter 7, which is the point: the difference is authorisation, not technique.

Masquerading attacks: IP spoofing and session hijacking

Definition A masquerading attack is one in which the attacker assumes the identity of a trusted system or an authorised user in order to gain access they would otherwise be denied.

IP spoofing. The attacker reconfigures their system so it carries the IP address of a trusted system, then attempts to reach other external resources. This is surprisingly effective on networks without adequate filtering. Administrators should configure filters at the perimeter of each network so that:

  • Packets with internal source IP addresses do not enter the network from outside.
  • Packets with external source IP addresses do not exit the network from inside.
  • Packets with private IP addresses do not pass through the router in either direction, unless specifically allowed as part of an intranet configuration.

These three simple filtering rules eliminate the vast majority of IP spoofing attacks and greatly enhance network security.

Session hijacking. A malicious individual intercepts part of the communication between an authorised user and a resource, then takes over the session and assumes that user identity. Common techniques:

  • Capturing the authentication details exchanged between client and server, then using them to assume the client identity.
  • Tricking the client into thinking the attacker system is the server, acting as the middleman while the client sets up a legitimate connection to the real server, then disconnecting the client.
  • Reusing cookie data from a user who did not properly close the connection.

Defence. Encrypt everything in transit so tokens cannot be captured; regenerate the session identifier on privilege change and at login; set cookies HttpOnly, Secure and SameSite; bind sessions to additional context; enforce idle and absolute timeouts; and log out properly.

DefenceCountermeasures and best practice

Specific preventive measures

  • Honeypots and honeynets: decoy systems that occupy and observe an attacker.
  • Pseudo flaws: false vulnerabilities or apparent loopholes intentionally implanted in a system to tempt attackers into revealing themselves.
  • Padded cells: a simulated environment offering fake data to retain an intruder interest, like a honeypot, except the IDPS transfers the intruder into it without telling them the change has occurred.
  • Warning banners: inform both authorised and unauthorised users, and typically remind authorised users of the content of acceptable-use agreements. A deterrent control that also supports later prosecution.
  • Anti-malware: the most important protection against malicious code is anti-malware software with up-to-date signature files and heuristic capabilities.
  • Allow-listing and deny-listing applications: an effective preventive measure that blocks users from running unauthorised applications.
  • Firewalls at the perimeter and on the host.
  • Sandboxing: provides a security boundary for applications and prevents an application from interacting with others. Anti-malware products use sandboxing to test unknown applications.
  • Third-party security services: outsourcing services such as auditing and penetration testing to an outside individual or organisation.
  • Penetration testing has three goals: determine how well a system tolerates an attack, identify employee ability to detect and respond to attacks in real time, and identify additional controls that reduce risk. Techniques: black box (zero knowledge team), white box (full knowledge) and grey box (partial knowledge).

Logging, monitoring and auditing. Audit trails give a comprehensive record of system activity and help detect security violations, software flaws and performance problems. Alongside them: monitoring and accountability, investigations, sampling, and clipping levels, a non-statistical sampling technique that selects only events exceeding a predefined threshold and ignores everything below it. Also keystroke monitoring, traffic and trend analysis, egress monitoring, and data loss prevention, which scans files for the organisation classification labels such as Confidential, Proprietary, Private and Sensitive, and comes in network-based and endpoint-based forms.

Security audits in the security operations domain ensure management controls are in place: patch management, vulnerability management, configuration management and change management. Dual administrator accounts are common practice, one account for day-to-day use and a second with additional privileges for administrative work, which reduces the risk attached to the privileged account.

Top secure coding practices: validate input, pay attention to compiler warnings, architect and design for security policies, keep it simple, default deny, adhere to least privilege, sanitise data sent to other systems, practise defence in depth, use effective quality assurance techniques, adopt a secure coding standard, define security requirements, and model threats.

Security best practice the deck lists for an organisation: a centrally managed, up-to-date anti-malware solution; patch early and patch often; disable file and printer sharing, or protect it with strong passwords and Active Directory authentication; apply least privilege and restrict users from installing and running applications; enforce a strong password policy with regular changes; raise IT security awareness with social engineering and phishing training, including hovering over links to verify the destination before clicking; block attachment types commonly associated with malware such as .dll and .exe, and those antivirus cannot scan such as .zip; enable personal firewalls configured to deny unsolicited connections; filter emails with known malspam indicators and block suspicious IPs at the firewall; disable unnecessary services; monitor web browsing habits; exercise caution with removable media; scan all downloads before executing; and maintain situational awareness of the latest threats with appropriate ACLs.

The four critical web application vulnerabilities, side by side

An asked question wants all four in one answer. Give the one-line mechanism, the trust that is abused, and the impact, then finish with shared best practice.

MechanismTrust abusedImpact
XSS Untrusted input is rendered into a page without encoding, so the browser executes it as script The trust the user has in the site Stolen cookies, hijacked sessions, malware execution, bypassed access control
XSRF A third-party page causes the victim browser to issue an authenticated state-changing request The trust the site has in the user browser Actions performed as the victim: transfers, password or email changes, privilege grants
Buffer overflow Input larger than the buffer overwrites adjacent memory, letting the attacker redirect execution The assumption that input fits the space reserved for it Arbitrary code execution on the server, crash, full host compromise
SQL injection Untrusted input escapes the data context and is executed as part of the SQL statement The assumption that parameters stay parameters Read, modify or destroy the whole database; sometimes command execution on the DB host

Best practices that raise resilience against all four:

  1. Validate input, encode output. Allow-list what comes in; encode for the exact context it goes out into (HTML, attribute, JavaScript, URL, SQL). The two halves fix different problems and you need both.
  2. Never build code by string concatenation. Prepared statements and parameterised queries for SQL; safe DOM APIs and templating with automatic escaping for HTML.
  3. Enforce anti-CSRF tokens and SameSite cookies on every state-changing endpoint, and never allow state change over GET.
  4. Harden the session: HttpOnly, Secure, SameSite, regeneration at login, idle and absolute timeouts.
  5. Apply least privilege to the application database account and the service account, so a successful attack has the smallest possible blast radius.
  6. Use memory-safe languages or safe APIs where buffer overflow is possible, plus compiler protections: stack canaries, ASLR, DEP, bounds checking.
  7. Add a Content Security Policy that blocks inline script, which turns most XSS from a compromise into a blocked console error.
  8. Test continuously: SAST and DAST in the pipeline, dependency and supply-chain scanning, a WAF as compensating control, and periodic penetration testing.
  9. Handle errors quietly. Verbose database and stack-trace errors hand the attacker the map, as the Chapter 7 DREAD example shows.
  10. Train the developers. Every one of these four is a known, solved class of bug; they recur because the people writing the code were never shown them.

Question bankEvery question set on this chapter

Chapter 2 questions, verbatim

Chapter 2 is worth 15 marks, joint highest on the paper. Every question below is reproduced exactly as published, with a link to the card that answers it.

AskedXSS

Compare reflected, stored, and DOM-based XSS in terms of where the malicious payload resides and execution flow. Provide two developer-side mitigations for each type.

Provide an overview of four critical web application vulnerabilities: XSS, XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications.

AskedClass discussionZero-day

If signature-based antivirus cannot detect a zero-day exploit, what security controls could have alerted us to this attack?

AskedClass discussionExchange case

Why didn’t applying Microsoft’s March 2nd emergency patch fix the problem for servers that were already exploited?

LikelyXSRF

What are the ways to protect against XSRF?

What is masquerading attacks? Explain about IP Spoofing and Session Hijacking.

Distinguish between a computer virus, a worm, and a Trojan horse, focusing on their primary functions and methods of propagation. Briefly describe how a macro virus operates to infect a system.

Define Ransomware-as-a-Service (RaaS) and explain its business model. Describe the evolution of ransomware tactics from ‘single extortion’ (encryption) to ‘double’ (exfiltration) and ‘triple’ (DDoS) extortion.

What is a Man-in-the-Middle (MITM) attack? Explain the difference between the ‘interception’ and ‘decryption’ phases of a successful MITM attack, providing one example technique for each phase (e.g., ARP spoofing for interception and SSL stripping for decryption).

Define social engineering and describe two specific types, such as spear phishing and vishing. What is a Zero-Day vulnerability, and why is it particularly dangerous for organizations?

Describe a SQL Injection attack and list two primary methods to protect a web application from it, such as using prepared statements and input validation. How does this fundamentally differ from a non-persistent (reflected) Cross-Site Scripting (XSS) attack?

Likely[3+5]DoS and DDoS

Explain the primary difference between a Denial of Service (DoS) and a Distributed Denial of Service (DDoS) attack. Describe how a Smurf Attack works by using spoofed IP addresses and ICMP broadcast requests to overwhelm a victim.

Chapter 3 · 9 hours · 15 marks

Cyber Threat Modelling and Threat Hunting

The other 15-mark chapter, and the one that turns the course from a list of attacks into a way of working. Three big blocks: intelligence, modelling, and hunting.

3.1Threat intelligence and its sources

What threat intelligence is

Gartner, the definition to quote Threat intelligence is evidence-based knowledge, including context, mechanisms, indicators, implications and actionable advice, about an existing or emerging menace or hazard to assets, that can be used to inform decisions regarding the subject response to that menace or hazard.
Two more worth knowing Forrester: details of the motivations, intent and capabilities of internal and external threat actors, including specifics on their tactics, techniques and procedures. Its primary purpose is to inform business decisions regarding the risks and implications associated with threats.
FIRST (2018): cyber threat intelligence is the systematic collection, analysis and dissemination of information pertaining to a company operation in cyberspace and, to an extent, physical space. It is designed to inform all levels of decision makers.
  • The opening line of the chapter is the intuition: what if we could learn from how others were attacked, before we face the same attack ourselves?
  • Data is not intelligence. It becomes intelligence only when it has been processed, contextualised and made actionable for a specific decision-maker, at the right time. Raw feeds are input, not output.
  • CTI as a product. Intelligence products are intended to be used by recipients to assist in decision making. If nobody makes a decision differently because of it, it was not intelligence.
  • CTI as a process. The intelligence process consists of gathering information, analysing it, and synthesising it into an intelligence product.
  • The term is used three ways in industry: for the collection of data, for the teams of analysts and the processes required to analyse it, and as the name of a product to be commercialised and sold. Note the ambiguity in an answer and it reads as understanding rather than confusion.

Why a security team needs it: four strategic reasons

  1. Proactive defence. Intelligence reveals which attack vectors adversaries actively exploit against organisations like yours, so you can harden controls before an attack occurs rather than reacting after.
  2. Threat identification. It acts as a living, continuously updated database of known indicators of compromise. Teams match IoCs against logs and network traffic to surface active threats.
  3. Discovery of unknowns. It identifies gaps in detection coverage, the areas of your IT landscape not caught by existing rules, alerts or signatures, and reduces dwell time by surfacing threats operating beneath the radar.
  4. Targeted threat hunting. It enriches logs with external context and creates awareness of compromise paths relevant to your sector, guiding hunters toward the highest-value investigation targets.

The three types of threat intelligence

Each type serves a different audience, time horizon and decision. The comparison is the exam question, so lead with the table and then give the worked example for each.

StrategicOperationalTactical / technical
Time horizonMonths to yearsDays to weeksReal time to hours
AudienceCISO, board, chief risk officer, executivesSOC managers, incident response, IT security leadSOC analysts, and the tools themselves: SIEM, firewall, EDR
FormatReports, briefings, threat landscape papersCampaign reports, actor advisories, TTP briefsSTIX/TAXII feeds, CSV blocklists, YARA and Sigma rules
ContentThreat actor profiling, geopolitical and economic drivers, long-term attack trend analysis, sector-specific landscape reportsActive campaign tracking, adversary TTP detail, context around IoCs, emerging vulnerabilities exploited in the wild before patches spreadMalicious IPs, domains, file hashes, URLs, email indicators, YARA and Sigma rules
Goes staleSlowly, useful for 12 months or moreQuickly, in days as the campaign evolvesWithin 24 to 48 hours as infrastructure rotates
Action takenReview security architecture, reprioritise the multi-year investment roadmapBrief staff this week, update SIEM rules, block listed domainsIngest into tools automatically, block, alert. No human decision needed

One scenario, seen at all three levels. The deck uses the same March 2024 campaign throughout, which is exactly how to structure an eight-mark answer:

  • Strategic. Lazarus Group, attributed to North Korea Reconnaissance General Bureau, has systematically targeted cryptocurrency exchanges and DeFi platforms since 2017, taking an estimated $3bn to fund the state weapons programme. Their approach involves multi-month infiltration of developer environments and supply chains before any funds move, with dwell times of 6 to 18 months. What it means: organisations holding digital assets are persistent, high-probability targets regardless of geography; segregating custody infrastructure from internet-facing systems is a multi-year architectural priority; social engineering of treasury and finance staff is the primary initial access vector. The key point: this does not tell you what to patch today, it tells the CISO what to invest in over the next 18 months and what to tell the board about risk.
  • Operational. TA577, a financially motivated actor, is running an active phishing campaign against Finance and HR staff at mid-sized companies, impersonating payroll vendors ADP and Workday. The mails carry a malicious OneNote attachment that deploys Qakbot on click. Active six days across EMEA, average time from click to credential theft under four hours. Actions this week: enable detection rules for OneNote-embedded scripts in the SIEM, brief Finance and HR with example screenshots, block the sender domains, escalate any staff reports today. Key point: a human reads it, decides and acts within days.
  • Tactical. The IoC feed for that same campaign: sender domains payroll-adp-secure[.]com and workday-hrportal[.]net to block at the gateway and proxy; C2 addresses 91.215.85.209, 185.220.101.47, 45.142.212.100 to block outbound; the SHA-256 of the Qakbot dropper; and a YARA rule Qakbot_OneNote_Dropper_Mar2024. Confidence high, 847 feed entries, auto-ingested via TAXII. Key point: no human reads this to make a decision, it is consumed automatically by tools within minutes of receipt.

Close the answer with this: mature intelligence programmes layer all three. Strategic informs what to hunt for, operational tells you where and how, tactical gives the tools the raw data to act automatically.

The Pyramid of Pain

The idea in one line The Pyramid of Pain ranks indicators by how much pain it causes the adversary when you detect and block them. Harder indicators to detect impose greater cost on the attacker.
PYRAMID OF PAIN How much pain you cause the adversary by detecting and blocking each kind of indicator. TTPs Tools Network / host artefacts Domain names IP addresses Hash values Tough · retraining, new tradecraft, months Challenging · find, buy or build a replacement Annoying · reconfigure the implant Simple · register another domain Easy · rotate to another VPS Trivial · change one byte cost to the attacker Detections built at the top generalise: one rule for “Word spawns PowerShell” catches every campaign using malicious macros, whatever the hash, domain or payload. Detections at the bottom expire the moment the adversary rotates infrastructure. A real programme automates the bottom so its people can work at the top. MITRE ATT&CK is a catalogue of the top band.
LevelPain for the attackerWhat it costs them to change it
TTPsToughRetraining, new tooling, a new way of operating. This is behaviour, not an artefact, so changing it means changing who they are
ToolsChallengingFind, buy or build a replacement, then learn it. Weeks or months
Network / host artefactsAnnoyingReconfigure the implant: mutex names, registry keys, user agents, URI patterns. Real effort
Domain namesSimpleRegister a new one. Costs a few dollars and some minutes
IP addressesEasySpin up another VPS or rotate through a proxy pool. Automatic
Hash valuesTrivialChange a single byte. The hash is different and your blocklist is useless

Why moving up matters for a defender, which is the second half of the question:

  • Low-level indicators expire immediately. Blocking a hash or an IP stops that sample or that server, and the attacker is back in minutes. You are on a treadmill and they set the speed.
  • Detections built on TTPs generalise. A rule that fires on Word spawning PowerShell catches every campaign that uses malicious macros, whatever the hash, the domain or the payload. One detection, many adversaries.
  • It forces the attacker to change behaviour, not artefacts. That is expensive, visible, and often not worth it, so they move to a softer target. Imposing cost is the actual goal of defence.
  • It maps directly onto MITRE ATT&CK. ATT&CK is a catalogue of TTPs, so hunting with ATT&CK is hunting at the top of the pyramid by construction.
  • The tradeoff: low-level indicators are cheap, automatable and high-volume; TTP-level detection needs skill, good telemetry and tuning. A real programme does both, automating the bottom so humans can work at the top.

The threat intelligence lifecycle

A continuous loop, not a one-time process. Raw data enters at collection, finished intelligence exits at dissemination, and feedback refines the requirements that drive the next cycle. Each phase depends on the quality of the one before it.

1 Planning & Direction → 2 Collection → 3 Processing → 4 Analysis → 5 Dissemination → 6 Feedback → back to 1
PhaseWhat happensCommon failure
1. Planning and direction Define the intelligence requirements: the specific questions the organisation needs answered to make security decisions. Stakeholders set priority intelligence requirements (PIRs), translate them into questions such as which APTs target our sector, identify collection sources, agree timelines, formats and consumers, and document existing gaps Skipping it entirely. Teams collect feeds without defining what decisions the intelligence must support, and produce volumes of data nobody acts on
2. CollectionGather raw data from the sources chosen in phase 1: internal logs and telemetry, commercial feeds, open sources, ISACs and sharing communities, dark web, human sourcesCollecting everything available rather than what the requirements demand, which buries analysts in noise
3. ProcessingTurn raw collected data into a usable form: normalise formats, translate, deduplicate, enrich, score confidence, discard the irrelevantTreating raw feed entries as finished intelligence and pushing them straight to consumers
4. AnalysisInterpret the processed data against the requirements. Correlate, look for patterns, judge significance, and produce assessments with stated confidence. This is where data becomes intelligenceReporting observations without judgement, so the consumer still has to work out what it means
5. DisseminationDeliver the finished product to each audience in the format and at the tempo they can use, which is why the three types existOne report for every audience. The board gets hashes, the SIEM gets prose, nobody acts
6. FeedbackConsumers say what was useful, what was missing and what decisions it changed. That refines the requirements and restarts the cycleNever asking, so the same unread report is produced every quarter forever

Worked example of phase 1: a bank CISO defines three PIRs before a digital banking rollout. Which threat actors target mobile banking infrastructure? What are current attack trends against fintech APIs? What fraud techniques are emerging in our region? Everything downstream is scoped by those three questions.

3.2Threat modelling

Threat modelling concepts

Definition Threat modelling is a structured process for identifying, analysing and prioritising security threats to a system. It shifts security thinking from reactive to proactive, finding weaknesses before attackers do, and treats security as a design concern rather than an afterthought.

It answers four questions, and quoting them is the cheapest two marks in the chapter:

  1. What are we building?
  2. What can go wrong?
  3. What do we do about it?
  4. Did we do a good job?
  • Why do it. To identify risks early, when they are cheapest and easiest to fix; to avoid costly reactive security in the form of breaches, patches and emergency fixes; and to make informed, risk-based decisions about where to invest in controls.
  • How it is done. By bringing security, development, architecture and business teams together in a structured exercise; by mapping systems, identifying threats, simulating attacker behaviour and prioritising mitigations; and by applying it during design, development, pre-release, and periodically on live systems.

Proactive versus reactive threat modelling, which is a published question:

Proactive (defensive, software-centric)Reactive (adversarial, attacker-centric)
Starting pointThe design. You decompose the system you are buildingThe attacker, or an incident that already happened
WhenDuring design, before code existsAfter deployment, after a pentest, or after a breach
Question askedWhere could this design go wrong?How did they get in, and how would they do it again?
Typical methodSTRIDE applied to a data flow diagram, each element checked against all six threat categoriesAttack trees, red teaming, ATT&CK-driven simulation, post-incident analysis
ExampleBefore launching a mobile banking app, the team draws the data flows and finds that API endpoints lack authorisation checks, so they fix it before releaseAfter a pentest finds SQL injection on the login page, the team models how an attacker would chain it to reach the customer database, and prioritises accordingly
Cost of the fixLowest. It is a design change on a whiteboardHighest. It is a code change, a patch cycle, and possibly breach notification

STRIDE

  • What it is. Developed by Microsoft in 1999 as a structured way to identify security threats during system design. It is a threat categorisation framework: a checklist of threat types for security and development teams to think through systematically.
  • How it is applied. To Data Flow Diagrams. Each element of the diagram (process, data store, data flow, external entity, trust boundary) is examined against all six threat types in turn.
  • When. Best used early in design, while architecture decisions are still fluid and fixes are cheap.
  • Why it caught on. Simple, structured and accessible to non-specialists such as developers and architects. It is usually the first threat modelling framework a team learns.
LetterThreatProperty it violatesExample
SSpoofing: pretending to be someone or something else to gain unauthorised accessAuthenticationUsing stolen credentials, forging a token, ARP or DNS spoofing
TTampering: unauthorised modification of data or codeIntegrityAltering a price in a request, modifying a config file, poisoning an update
RRepudiation: denying having performed an action, with no way to prove otherwiseNon-repudiationA user denies making a transfer and there is no signed, tamper-proof audit log
IInformation disclosure: exposure of information to unauthorised partiesConfidentialityVerbose error messages, an unauthenticated API, a public storage bucket
DDenial of service: disrupting availability of a system or serviceAvailabilityResource exhaustion, a flood, an expensive unbounded query
EElevation of privilege: gaining higher access rights than intendedAuthorisationA missing authorisation check, an exploited buffer overflow, a rootkit

DREAD

Definition DREAD is a scoring model originally developed by Microsoft to rate the severity of security threats. Each letter is a risk dimension, and each is scored, typically 1 to 10 or 1 to 3. Unlike STRIDE, which finds threats, DREAD ranks them.
  • D, Damage potential. How severe is the harm if the vulnerability is exploited? Data loss, system compromise, reputational damage?
  • R, Reproducibility. How easily can the attack be reproduced? Can anyone replicate it, or does it need rare conditions?
  • E, Exploitability. How much skill, effort or tooling does it take to launch? A low score means it is trivially easy.
  • A, Affected users. What proportion of users or systems would be impacted? All users, just admins, a small subset?
  • D, Discoverability. How easy is it for an attacker to find the vulnerability in the first place? Is it publicly known?
Worked scenario from the deck

A penetration test on a customer-facing web application reveals three findings. Score each 1 to 10 and fix in rank order.

FindingDREADTotalReasoning
SQL injection on the login page1010910847Full database compromise, reproducible by anyone with a browser, automated by sqlmap, affects every user, and login pages are the first thing anyone tests
Admin panel exposed to the internet9857736Administrative takeover if credentials are guessed or sprayed, but it still needs credentials, so exploitability is lower
Verbose errors leaking server version210221026Trivial to find and reproduce, but on its own it discloses information rather than granting access. It is reconnaissance fuel for the other two

Fix order: SQL injection first, then the exposed admin panel, then the verbose errors. Note that the third scores high on two dimensions and still ranks last, which is the point of scoring across all five rather than reacting to whichever finding sounds worst.

PASTA: Process for Attack Simulation and Threat Analysis

Unlike DREAD, which is a scoring rubric, PASTA is a full seven-stage methodology that is risk-centric and business-aware. It is the one to cite when a question asks for a complete process rather than a checklist.

  1. Define objectives. Understand business goals, compliance requirements and risk appetite.
  2. Define technical scope. Map the technical environment: infrastructure, applications, dependencies, data flows.
  3. Application decomposition. Break the application into components: data flows, trust boundaries, entry points, assets.
  4. Threat analysis. Identify realistic threats using threat intelligence, attacker profiles and historical data. This is where MITRE ATT&CK plugs in.
  5. Vulnerability and weakness analysis. Correlate known vulnerabilities, CVEs and code weaknesses with the threats identified.
  6. Attack modelling and simulation. Build attack trees and simulate how an attacker would chain vulnerabilities together to reach a goal.
  7. Risk and impact analysis. Quantify the business impact of successful attacks and prioritise countermeasures accordingly.
Worked scenario: an online banking application

A bank is launching a mobile banking app allowing balance checks, transfers and bill payments.

Stage 4, threat actors and threats.

Threat actorMotivationCapability
Organised cybercriminal groupsFinancial gainHigh
Opportunistic attackersFinancial gainLow to medium
Malicious insiders (bank staff)Financial gain, sabotageMedium
Nation-state actorsEspionage, disruptionVery high

Stage 5, threats mapped to vulnerabilities.

ThreatIdentified vulnerability
Credential stuffing using leaked username and password listsNo account lockout policy; MFA not enforced for all users
Man-in-the-middle interception between app and APICertificate pinning not implemented in the mobile app
API abuse of poorly secured endpointsSeveral API endpoints missing authorisation checks
Session hijacking of active tokensSession tokens do not expire; no anomaly detection on session usage
Insider fraud by privileged staffExcessive privileges granted to operations staff; no transaction audit logging
Third-party compromise of the bill payment gatewayGateway connection not validated; no integrity checks on responses

Stage 7, prioritised by business impact.

Attack scenarioLikelihoodBusiness impactPriority
Credential stuffing account takeoverHighCritical: direct financial loss, regulatory breachP1, fix immediately
API abuse, unauthorised data accessMediumCritical: GDPR breach, regulatory finesP1, fix immediately
Session hijackingMediumHigh: account takeover, reputational damageP2, fix before launch
MitM attackLowHigh: data interception, credential theftP2, fix before launch
Insider fraudLowHigh: financial loss, regulatory scrutinyP3, mitigate with controls
Third-party gateway compromiseLowMedium: payment redirection, customer impactP3, mitigate with controls

3.3 to 3.4Kill chain and ATT&CK

The Cyber Kill Chain

  • Developed by Lockheed Martin. It models the sequential stages an adversary must complete to execute an attack successfully, and gives defenders a structured map of where to detect, disrupt or respond at each stage.
  • Seven stages, and the defensive value is that breaking any one link breaks the chain. The earlier you break it, the cheaper the incident.
CYBER KILL CHAIN Seven sequential stages. The adversary must complete every one; the defender needs to break only a single link. 1 2 3 4 5 6 7 Recon Weaponise Delivery Exploit Install C2 Objectives LinkedIn, Shodan macro backdoor phishing mail macro runs run key, RAT beacon 60 s exfiltrate DB break the chain here and stages 4 to 7 never happen Detection telemetry differs by stage: perimeter logs, mail logs, endpoint process telemetry, DNS and flow, then DLP and egress volume. A stage with no detection coverage is a gap. Mapping controls stage by stage is how the thin stages get funded first.
#StageDefinitionExampleDefender action
1ReconnaissanceGathering information about the target before any attack beginsAttacker scrapes LinkedIn to identify IT staff, then uses Shodan to find exposed RDP portsReduce public exposure, monitor for scanning, brand and domain monitoring
2WeaponisationPackaging a payload and exploit into a deliverable weaponAttacker embeds a macro-based backdoor into a Word documentHappens on attacker infrastructure, so defend by intelligence sharing and knowing the tooling
3DeliveryTransmitting the weapon to the targetPhishing email sent to a finance employee with the malicious Word document attachedEmail filtering, attachment sandboxing, web proxy, user awareness training
4ExploitationTriggering the exploit to execute code on the victim systemEmployee opens the document, the macro runs and exploits a vulnerable Office versionPatching, macro policy, application allow-listing, exploit mitigation
5InstallationEstablishing persistence so access survives reboots and discoveryMalware writes itself to the Windows registry run key and drops a RATEDR, autorun monitoring, file integrity monitoring, least privilege
6Command and ControlOpening a channel for the attacker to remotely control the compromised systemThe RAT beacons to an attacker-controlled server over HTTPS every 60 secondsEgress filtering, DNS and proxy inspection, NDR beacon detection, C2 blocklists
7Actions on ObjectivesCarrying out the ultimate goal of the attackAttacker exfiltrates the customer database over the C2 channelDLP, egress monitoring, segmentation, encryption at rest, backups
How the kill chain aids detection, response and mitigation
  1. Detection. It tells you what to look for and where. Each stage produces different telemetry: recon shows in perimeter logs, delivery in mail logs, exploitation and installation in endpoint and process telemetry, C2 in DNS and network flow, actions on objectives in DLP and egress volume. Coverage gaps become visible as stages with no detection.
  2. Response. Knowing which stage the adversary reached scopes the incident. An attacker stopped at delivery needs a mail purge; one who reached installation needs host isolation and forensics; one at actions on objectives triggers breach notification.
  3. Mitigation. Controls can be mapped stage by stage and the thin stages funded first. Because the chain is sequential, a single successful break defeats the whole attack, so defence in depth across stages beats stacking controls on one stage.
  4. The limitation to mention for the top marks: the chain is linear and perimeter-oriented, so it models intrusion well but describes insider threat and long, looping post-compromise activity poorly. That is exactly the gap MITRE ATT&CK fills.

MITRE ATT&CK

  • What the name means. Adversarial Tactics, Techniques and Common Knowledge.
  • What it is. A globally accessible knowledge base of real-world attacker behaviour, maintained by the MITRE Corporation. Built from observed attack data, so it is empirical rather than theoretical. Free, open and continuously updated.
  • Three levels. Tactics are the why, the attacker goal, such as Initial Access, Privilege Escalation, Exfiltration. Techniques are the how, the specific methods used to achieve a tactic, such as phishing or pass-the-hash. Sub-techniques are granular variations of each technique.
  • Separate matrices for different environments: Enterprise, Mobile, and ICS (industrial control systems).
  • What it is not. It is not a threat modelling methodology. It is a threat intelligence reference library that feeds into threat modelling, specifically PASTA stage 4.

Seven uses, which makes a clean list answer:

  1. Threat modelling input. Replaces generic brainstorming with evidence-based attacker behaviour.
  2. Red teaming and penetration testing. Red teams plan simulations that mirror actual adversary behaviour, so tests stay realistic and relevant.
  3. Security gap analysis. Map existing controls against the matrix to see which techniques you can detect or prevent, and which leave you exposed.
  4. Detection engineering. Blue teams write SIEM and EDR rules against techniques, ensuring coverage of known attacker methods.
  5. Incident response. During or after an incident, ATT&CK helps identify what the attacker did, which stage they reached, and what lateral movement or persistence they used.
  6. Threat intelligence. Correlate actor profiles with the techniques they are known to use, prioritising defences against the most relevant adversaries.
  7. Awareness and training. Provides a common language across red, blue and management for discussing threats consistently.

ATT&CK compared with the Cyber Kill Chain, which is a published question:

Cyber Kill ChainMITRE ATT&CK
ShapeLinear, 7 sequential stagesA matrix, 14 enterprise tactics with hundreds of techniques, entered and re-entered in any order
GranularityHigh level. Tells you the attacker is at installationSpecific. Tells you the attacker used T1547.001 Registry Run Keys
OriginA model, derived from military doctrineEmpirical, built from observed real-world intrusions and mapped to named actor groups
Covers post-compromiseWeakly. Everything after installation collapses into two stagesThoroughly. Discovery, lateral movement, collection, defence evasion each get a full column
Best forExplaining an intrusion to management, structuring layered defenceDetection engineering, hunting, gap analysis, red team planning
ATT&CK in practice: a small snapshot
ExecutionPersistenceExfiltration
Command & Scripting InterpreterRegistry Run KeysExfil Over C2 Channel
Scheduled Task/JobScheduled Task/JobExfil Over Web Service
User ExecutionCreate AccountAutomated Exfiltration
Native APIBoot/Logon AutostartExfil Over Alternative Protocol

Worked example, T1059 Command & Scripting Interpreter. Attackers commonly run malicious commands via PowerShell or cmd.exe instead of dropping a custom binary, because the binary is already trusted and present. Hunt hypothesis: if this technique is in play, we would see PowerShell spawned by an unusual parent process such as Word or Excel. Action: query EDR or Sysmon for process trees matching that pattern.

3.5 to 3.7Threat hunting

What threat hunting is, and why it is needed

Definition Threat hunting is the proactive process of searching for undetected threats, attack behaviours and vulnerabilities across an organisation environment, before they cause damage. In plain terms: actively going looking for the attacker who did not trip any alarms.

The chapter opens on the right image. Your SOC dashboard says no threats detected. Your firewall is clean, your antivirus is silent, alerts are at zero. And the data has been leaving your network for months.

  • The guiding principle is assume breach. Hunting starts from the premise that an adversary is already inside and has evaded the controls, so the question is not are we compromised but where. That premise is what separates hunting from alert triage.
  • No single agreed definition. Analyst Lesley Carhart notes there is no industry-wide consensus on what threat hunting entails, so expect variation across organisations.

Why it is needed, with the numbers the deck cites:

  • +105% growth in ransomware attacks globally (SonicWall).
  • $4.24m average cost of a data breach (IBM).
  • ~21 days average attacker dwell time in 2022, down from far higher in 2016 (Mandiant M-Trends). Three weeks is still three weeks of unobserved access.

The core gap: automated tools only catch known, signature-based patterns; sophisticated attackers use living-off-the-land techniques with legitimate tools and no malware signature; and human-driven attacks are adaptive, evading static detection rules.

How hunting helps, four ways:

  1. Finds what tools miss. Surfaces novel and human-driven attacks that evade automated, signature-based detection.
  2. Shrinks dwell time. Attackers are found and contained sooner, so less time to move laterally or exfiltrate.
  3. Surfaces hidden gaps. Reveals visibility blind spots and process weaknesses. Even a hunt that finds nothing is valuable, because it proves coverage.
  4. Improves detection. Findings feed back into tuning and into building new automated detection rules for next time.

The hunting lifecycle is a continuous loop: 1 Trigger or hypothesis → 2 Investigate → 3 Uncover → 4 Respond → 5 Inform, then back to the trigger.

Prerequisites for successful hunting, at company level:

  • Mature logging and visibility. You cannot hunt what you cannot see.
  • An established baseline of normal. Needed before anything can be called anomalous.
  • Dedicated trained analysts, with domain, technology and process skills.
  • Threat intelligence access, for context on current TTPs to build hypotheses from.
  • Leadership buy-in, giving time and resourcing to hunt rather than only put out fires.
  • A repeatable methodology, a structured process rather than ad hoc one-off searches.

The three approaches to hunting

Hypothesis-drivenIntelligence-drivenAnalytics-driven
TriggerAn idea about attacker behaviour, often based on MITRE ATT&CK TTPsNew threat intelligence: IoCs, TTPs, or a report on an active campaignStatistical or machine-learning flagged outliers in the environment
ExampleIf an attacker got in, they would likely use PowerShell for lateral movement, so let us check for unusual PowerShell execution across endpoints.A new APT report lists five malicious IPs, so let us search our logs for any connections to them.Our UEBA tool flags a user account logging in at 3am from a new country, so let us investigate.
StrengthFinds unknown-unknowns, works at the top of the Pyramid of PainFast, concrete, immediately actionableScales across huge data, finds what nobody thought to look for
WeaknessOnly as good as the hypothesis and the analystReactive and short-lived, since IoCs rotate within daysNoisy, needs a good baseline, and outliers are not automatically malicious

Note the naming. One published question calls the three types awareness-based, intelligence-based and analytics-driven. Awareness-based is the same idea as hypothesis-driven: the hunter awareness of attacker tradecraft, usually from ATT&CK, generates the hypothesis. Mention both names and you are safe either way.

The PEAK framework

A free, vendor-agnostic hunting methodology, SANS-referenced.

  • P, Prepare. Define a hypothesis, scope the hunt, gather the required data access.
  • E, Execute. Run the investigation: query the data, test the hypothesis.
  • A, Act. Respond to findings: escalate to incident response, document, remediate.
  • K, Knowledge. Capture learnings and feed them into detection rules, future hunts and the team knowledge base.

PEAK also formalises three hunt types, hypothesis-driven, baseline and model-assisted, which map directly onto the three approaches above.

The Diamond Model of Intrusion Analysis

A lens for analysing what you find mid-hunt. Every intrusion event has four vertices, and knowing any one lets you pivot to the others.

VertexMeaningWorked example: a phishing intrusion
AdversaryWho is doing itA financially motivated criminal group
CapabilityWhat they usedA malicious macro embedded in an invoice attachment
InfrastructureWhat they used it from or throughA C2 server IP the macro calls out to
VictimWho it was used againstA finance department employee who opened the attachment
  • The pivot is the value. Find one malicious IP (infrastructure) and you can pivot to every victim that contacted it, to the capability delivered from it, and often to the adversary who registered it.
  • It composes with the kill chain. Each kill chain stage can be plotted as its own diamond, giving an activity thread across the whole intrusion.

The Hunting Maturity Model

Sqrrl model, which grades maturity by data collection and analysis sophistication. Useful for saying where an organisation is in an answer.

LevelNameWhat it looks like
HMM0InitialRelies almost entirely on automated alerting. Little to no proactive hunting
HMM1MinimalIncorporates threat intelligence, mostly IoC searches. Moderate data collection
HMM2ProceduralFollows established hunting procedures created by others. High data collection
HMM3InnovativeCreates new data analysis procedures in house. High data collection
HMM4LeadingAutomates the majority of successful hunts into analytics. Continuous improvement

The trajectory to describe: maturity is the process of turning successful hunts into automated detections, which frees the humans to hunt for the next unknown. HMM4 is not more hunting, it is less repeated hunting.

The hunter toolkit

DataToolsSkills
SIEM logs, EDR telemetry, NetFlow, DNS and Sysmon logsSplunk or ELK, YARA, osquery, MITRE ATT&CK NavigatorHypothesis-driven thinking, scripting, OS internals, threat intel literacy

SIEM querying, using the pipe-based query language of a platform such as Logpoint or GuardSix. Core syntax: label= or category= filters events by type, | chains commands, chart count() by field aggregates and groups, and order by count() desc sorts.

// Step 1, find file infections label=Detect label=File label=Infection | chart count() by sender, sender_domain, hash, receiver // Step 2, pivot to a suspicious user label=Login label=Fail user="rita.mm" | chart count() by source_address, workstation, user, host | order by count() desc // Step 3, check that IP for C2 activity category="Malware Command And Control" | chart count() by source_address

Notice the pivot pattern: each query output becomes the next query filter, file hash to user to IP to C2 category. That is hypothesis-driven hunting in action, and it is the Diamond Model pivot expressed as queries.

YARA matches malware by content and structure rather than by hash. Hashes break on the tiniest file change; YARA rules survive minor variants. A rule has three parts: meta (author, description), strings (the patterns to match) and condition (logic combining them).

rule Suspicious_PowerShell_Downloader { meta: author = "hunt team" description = "Flags obfuscated download+execute" strings: $s1 = "IEX" nocase $s2 = "DownloadString" nocase $s3 = "-EncodedCommand" nocase condition: 2 of ($s1, $s2, $s3) }

osquery treats every endpoint like a queryable SQL database. You ask questions about running processes, open ports, installed software and scheduled tasks across the whole fleet using familiar SQL. Commonly hunted tables: processes, listening_ports, startup_items, scheduled_tasks, logged_in_users, installed programs.

SELECT name, path, cmdline FROM processes WHERE parent_name = 'winword.exe' AND name = 'powershell.exe';

That single query finds every host where Microsoft Word spawned PowerShell, the classic malicious-macro pattern, and it is the same hypothesis as ATT&CK T1059.

A threat hunting playbook is a documented, repeatable hunt procedure rather than a one-off search. Six parts: 1 the hypothesis, what are we testing; 2 the ATT&CK technique it maps to; 3 the data sources required; 4 the query or steps, the reusable procedure itself; 5 expected findings, what normal versus suspicious looks like; 6 the escalation path, who to notify if confirmed.

A hunt report serves two audiences from one investigation. The technical hunt report for the SOC and IR team carries full methodology, queries used, raw findings and IoCs, and technical remediation steps. The executive summary for leadership carries business impact, risk level, plain-language findings and resourcing implications. A good report has six sections: hypothesis and scope; methodology (tools, data sources, queries); findings confirmed or denied with evidence; impact assessment; remediation actions taken or recommended; and lessons learned feeding playbook updates.

Four worked hunts

Each follows the same shape: trigger, tools, data, progression, what the correlation implies, and the outcome. Reuse the shape for any scenario question.

Scenario 1: compromised credentials to C2 callback.

  • Trigger: an automated alert flags a file infection. Tools: SIEM, VirusTotal. Data: email and file logs, Windows authentication logs, threat intel IoC lists.
  • Progression: file hash flagged → pivot to the recipient user Rita → she shows repeated failed logins across servers → pivot to the source IP → cross-reference against the known C2 IoC list → match found.
  • Inferred: Rita account is compromised, and a second account Bob is also being probed from the same IP. Both are part of one campaign.
  • Outcome: disable Rita account, disable Bob, block the C2 IP at the firewall.

Scenario 2: living-off-the-land lateral movement.

  • Trigger: the hypothesis that if an attacker is inside, they would use built-in tools to move laterally. Tools: EDR, Sysmon, osquery. Data: Sysmon Event ID 1 (process creation), Windows 4624 and 4625, PowerShell script block logs.
  • Progression: hunt for unusual parent-child process chains → find winword.exe spawning powershell.exe → PowerShell spawns PsExec.exe → check which hosts PsExec connected to → compare against the account normal access baseline.
  • Inferred: a user account is being used to move between hosts it has never touched before. Classic lateral movement, likely credential theft.
  • Outcome: isolate affected hosts, force credential reset, escalate to IR.

Scenario 3: DNS tunnelling and data exfiltration.

  • Trigger: analytics-driven, anomaly detection flags high DNS query volume from one host. Tools: DNS logs, Zeek for NetFlow analysis, SIEM. Data: DNS query logs (subdomain length and entropy), NetFlow byte volume per session.
  • Progression: baseline normal DNS query patterns → spot a host generating thousands of long, high-entropy subdomain queries to one domain → check NetFlow for that host outbound byte volume → confirm steady small-packet traffic consistent with tunnelling.
  • Inferred: the host is exfiltrating data via DNS tunnelling to evade traditional egress monitoring.
  • Outcome: block the domain, isolate the host, inspect for the tunnelling tool.

Scenario 4: insider threat and anomalous data access.

  • Trigger: UEBA flags a user accessing an unusual volume of sensitive files. Tools: UEBA, file server audit logs, DLP. Data: file access logs, the UEBA baseline profile, badge and VPN login times.
  • Progression: UEBA flags an employee accessing ten times their normal file volume → correlate with access time (2am) and a VPN login from unusual geography → check DLP logs for uploads of those files to an external site.
  • Inferred: not normal work behaviour. Either a compromised account or an insider exfiltrating data, for example before resigning.
  • Outcome: engage HR and Legal per the insider threat policy, preserve evidence, restrict account access.

Question bankEvery question set on this chapter

Chapter 3 questions, verbatim

Chapter 3 is worth 15 marks, joint highest with Chapter 2. Reproduced exactly as published, each linked to the card that answers it.

Define the Cyber kill Chain and outline its stages. Discuss how understanding the Cyber Kill Chain can aid in threat detection, response, and mitigation.

Define Threat Intelligence. Describe the three types of threat intelligence, Strategic, Tactical, and Operational, explaining the target audience and purpose of each.

Likely[2+6]Threat modelling

Explain the concept of Threat Modeling. Differentiate between a proactive (defensive) approach and a reactive (adversarial) approach to threat modeling, providing a clear example for each.

What is the Cyber Kill Chain? List and briefly describe at least four of its seven stages. How does the MITRE ATT&CK framework provide a more detailed view of adversary actions compared to the Cyber Kill Chain?

Define Threat Hunting and its guiding principle of ‘assume breach’. Describe the three types of threat hunting hypotheses: Awareness-based, Intelligence-based, and Analytics-driven.

Likely[4+4]STRIDEDREAD

What is the STRIDE threat model? List and define three of its six categories. In the context of rating threats, explain the purpose of the DREAD rating system.

Likely[3+5]Pyramid of Pain

Explain the Pyramid of Pain framework. Describe why moving up the pyramid from indicators like hash values and IP addresses to an adversary’s TTPs (Tactics, Techniques, and Procedures) is more effective for a defender.

Chapter 5 · 4 hours · 8 marks

Emerging Technologies in Security Operations

Five acronyms and the problem each one was invented to solve. The chapter is small, the question is broad, and the marks go to whoever can explain how the pieces fit together rather than define them one at a time.

5.1What you need to monitor and respond

From raw data to correlated, automated, unified defence

The five technologies are not competitors. They are answers to five different failures, and they arrived in roughly this order because each one was caused by the success of the last.

THE SECURITY OPERATIONS STACK Five technologies, five different failures. Each arrived because the previous one worked. SENSORS EDR endpoint process and file telemetry, host isolation NDR packets and flows, east-west, agentless, IoT and OT UEBA identity baselines, peer group scoring, insider detection fileless malware unmanaged devices valid credentials misused SOLVES SIEM aggregates and correlates every log, enriches with threat intelligence, retains it for audit and forensics millions of events a day no human can read XDR natively correlates endpoint, network, cloud and identity signals into one prioritised incident four consoles, no shared context SOAR runs the playbook: disable the account, isolate the hosts, block the C2 address, open the case, notify more alerts than analysts Read down the middle for the data path, and down the right for why each layer was invented.
the chain of causation, which is the best way to open the answer too many logs to read by hand → SIEM SIEM now makes too many alerts to triage → SOAR rules cannot see a valid login misused → UEBA antivirus cannot see fileless attacks → EDR unmanaged devices have no agent at all → NDR all of the above are separate consoles → XDR

SIEM: Security Information and Event Management

What it is A SIEM aggregates and correlates logs from across the environment, then raises alerts on suspicious patterns.
  • Why it emerged. Manual log review could not keep pace once organisations ran hundreds of systems generating millions of events a day.
  • What it solves. It gives a single, searchable view across firewalls, endpoints, identity and applications, and turns raw log volume into a manageable number of prioritised alerts.
  • Common features: search, dashboards, reporting, alerting, incident and case management, and threat investigation.
  • In this course the reference implementation is GuardSix or Logpoint, built on its own indexing engine with a fast pipe-based query language for pivoting across massive log volumes during a hunt. The query examples in Chapter 3 are that language.
  • Its limitation, which sets up SOAR. A SIEM tells you something happened. It does not do anything about it, and it generates far more alerts than a human team can work through.

SOAR: Security Orchestration, Automation and Response

What it is SOAR orchestrates tools and automates repetitive response steps through structured, repeatable playbooks.
  • Why it emerged. SIEMs began generating more alerts than analysts could triage manually. SOAR closed that gap. It exists because the previous tool worked too well.
  • What it solves. It cuts mean time to respond by automating containment: disabling accounts, blocking IPs, isolating hosts. And it gives every investigation structured case management instead of scattered email threads.
  • Three words in the name, three jobs. Orchestration connects the tools so one action can drive many systems. Automation executes the repetitive steps without a human. Response is the containment and remediation itself.
  • In practice pre-built playbooks trigger directly off SIEM correlation rules, so a credential-compromise flow can run end to end with no analyst click.

UEBA: User and Entity Behaviour Analytics

What it is UEBA builds behavioural baselines for users and devices, then flags statistically significant deviations from them.
  • Why it emerged. Compromised credentials and insider threats look like normal activity to rule-based detection. There is no signature for a valid user doing valid things at the wrong time, so a SIEM rule cannot express the problem.
  • What it solves. It surfaces unusual login times, data access volumes and lateral movement that rules alone miss, and it detects malicious insiders acting entirely within their own legitimate permissions. That last case is invisible to every other tool on this page.
  • How it scores. Every entity is scored against its peer group in real time, so a finance user is compared with other finance users rather than with an absolute threshold.
  • The catch: it needs a period of learning before it is useful, and an anomaly is not the same as an attack. Its output is a starting point for investigation, which is why it pairs with analytics-driven hunting in Chapter 3.

NDR: Network Detection and Response

What it is NDR continuously monitors and analyses raw network traffic, packets and flow data. It uses behavioural models and machine learning to detect malicious activity rather than relying on signatures alone, and it covers east-west (internal, device-to-device) traffic as well as north-south (in and out of the network).
  • The problem it solves. Attackers who evade EDR by targeting unmanaged devices, IoT, OT or legacy systems still have to move across the network, and NDR sees that movement even without an agent.
  • It works on metadata, not payload. It detects encrypted and living-off-the-land activity through behavioural and metadata analysis, so TLS does not blind it.
  • It closes the gap between endpoint tools and network reality. The traffic does not lie, even when a host is compromised and its agent is reporting that all is well.
  • Use cases: detecting DNS tunnelling or C2 beaconing hidden inside encrypted traffic; spotting lateral movement between servers with no EDR agent installed; flagging an unmanaged or rogue device the moment it starts talking on the network.

EDR: Endpoint Detection and Response

What it is EDR continuously monitors endpoint processes, files and network activity, with the ability to respond in real time.
  • Why it emerged. Signature-based antivirus could not catch fileless malware or living-off-the-land attacker techniques. When the attacker uses PowerShell, there is no malicious file for a scanner to find.
  • What it solves. It reconstructs the full process tree behind an attack for fast, accurate investigation, and it lets an analyst isolate a compromised host from the network in seconds rather than hours.
  • Antivirus compared with EDR. Antivirus asks is this file known bad and blocks it. EDR asks is this behaviour normal, records everything so the answer can be revisited later, and gives the analyst an action to take. Detection plus telemetry plus response, rather than detection alone.
  • Its limitation, which sets up XDR. It sees the endpoint and only the endpoint. An attack that crosses email, identity, network and cloud shows up as four unrelated fragments.

XDR: Extended Detection and Response

What it is XDR natively correlates signals across endpoint, network, cloud and identity into a single incident.
  • Why it emerged. EDR, network detection, email and cloud tools ran as disconnected silos with no shared context. Each was individually correct and collectively useless.
  • What it solves. It reduces the number of consoles an analyst must pivot between mid-investigation, and it catches multi-stage attacks that span several layers before any single tool sees the full picture.
  • In practice an XDR incident auto-correlates four separate signals into one prioritised case in under two minutes, and the isolate-host action runs directly from the detection with no console switching.
  • XDR compared with SIEM, since this is the distinction most often muddled. A SIEM is vendor-neutral and log-centric: it ingests anything, stores it for years, and you write the correlation rules. XDR is telemetry-centric and mostly single-vendor: correlation is built in and pre-tuned across that vendor sensors, so it works out of the box but only across what it integrates with. Compliance and retention pull you toward SIEM; speed of detection pulls you toward XDR. Most organisations run both.

All five compared, and how they enhance posture together

This is the asked question. Give the table, then the integration story, then the posture benefits.

Primary dataCore question it answersOutputBlind spot
SIEMLogs from everythingDid anything suspicious happen anywhere?Correlated, prioritised alerts and a searchable archiveOnly sees what is logged; produces more alerts than can be triaged
SOARAlerts and cases from the SIEM and other toolsWhat do we do about it, automatically?Executed playbooks, containment actions, structured casesOnly as good as the playbook; poor input means fast wrong action
UEBAIdentity, access and activity historyIs this entity behaving unlike itself and its peers?Risk-scored anomalies per user and deviceNeeds a learning period; an anomaly is not proof of attack
NDRPackets, flows, DNSWhat is actually moving on the wire?Behavioural network detections, east-west visibilityLimited payload insight when encrypted; no host-level context
EDREndpoint process, file and network telemetryWhat happened on this machine, and can I stop it?Full process tree, host isolation, real-time responseNeeds an agent, so unmanaged, IoT, OT and legacy devices are invisible
XDRAll of the above, natively correlatedAre these separate alerts actually one attack?A single prioritised incident spanning layersWorks best inside one vendor ecosystem; weaker on arbitrary third-party data
The integration story, worked end to end
  1. UEBA scores a finance account as anomalous: 2am login from a new country, ten times the normal file access volume.
  2. EDR on that user machine shows Word spawning PowerShell, then PsExec reaching two servers the account has never touched.
  3. NDR shows steady beaconing from one of those servers to an external address every 60 seconds, inside TLS, on a host with no EDR agent.
  4. SIEM correlates the identity anomaly, the process lineage and the beacon into one alert, and enriches the destination IP against a threat intelligence feed. It matches a known C2 list.
  5. XDR presents all four as a single incident with one timeline, rather than four tickets in four consoles.
  6. SOAR runs the credential-compromise playbook: disable the account, isolate both hosts, block the C2 address at the firewall, open the case, notify the analyst. Elapsed time measured in seconds.

How this enhances the organisation security posture, the closing paragraph:

  • Coverage. Together the five cover logs, identity, endpoint, network and cloud, so there is no layer where an attacker can operate unobserved.
  • Detection of the unknown. UEBA, NDR and EDR are behavioural, so they catch what has no signature: fileless malware, insiders, stolen credentials, novel campaigns.
  • Speed. XDR removes the console-switching that dominates investigation time, and SOAR removes the human from the repetitive containment steps. Both attack dwell time, which is the number that determines how bad an incident becomes.
  • Consistency. Playbooks mean the response at 3am on a Sunday matches the response at 2pm on a Tuesday.
  • Analyst leverage. Automating triage and containment frees skilled people to do the threat hunting in Chapter 3, which is where the unknown-unknowns are found.
  • Compliance and forensics. The SIEM archive provides the retained, searchable evidence that audits in Chapter 7 depend on, and that post-incident analysis needs.

ContextDoing this in the cloud

Cloud challenges

Where the logs are. Four approaches, and a real programme uses all four:

  • Cloud-native log services: CloudWatch (AWS), Azure Monitor and Log Analytics, Google Cloud Logging. These capture control-plane and workload logs before anything reaches a SIEM.
  • Control-plane audit logs: CloudTrail, Azure Activity Log, GCP Audit Logs. These record every API call made against the cloud account itself, not just activity inside a workload, which is where account takeover shows up.
  • Container and orchestration logging: Kubernetes audit logs, Fluentd or Fluent Bit, OpenTelemetry. Needed because workloads are ephemeral and traditional agents cannot keep up.
  • CSPM, CIEM and CWPP feeds, increasingly forwarded into the SIEM as structured findings rather than raw logs, so misconfiguration and entitlement data can correlate with activity.

Four hard problems that make cloud monitoring different from on-premises:

  • Volume and cost. Cloud environments generate orders of magnitude more log volume than on-premises, and cloud-native storage and egress costs scale with it. What to not collect becomes a security decision.
  • Fragmented ownership. DevOps teams provision cloud resources independently of security, so logging is not enabled or forwarded consistently. You cannot monitor a resource you did not know existed.
  • No fixed perimeter to instrument. There is no single wire to tap the way NDR taps a network switch, so network visibility has to be reconstructed from flow logs and service meshes.
  • Shared responsibility gaps. The provider secures the infrastructure layer and logs some of it, but customers are responsible for enabling, forwarding and reviewing the rest, and many do not. The gap is not technical, it is a misunderstanding about who owns what.

Question bankEvery question set on this chapter

Chapter 5 questions, verbatim

One published question, worth 8 marks. It asks for all five technologies plus the posture argument, so budget your time across breadth rather than depth on any one.

Discuss the role of multiple emerging technologies (eg., SIEM, SOAR, UEBA, EDR, XDR) in security operations environment. Highlight key features and functionalities and how they enhance an organization’s ability to enhance cybersecurity posture.

Chapter 7 · 4 hours · 7 marks

Security Policy and Audit

Seven building blocks, from policy on paper to fixes in production. The chapter that explains why the technical controls in every other chapter are either mandatory or optional.

MotivationWhen policy fails, the breach follows

Four breaches that trace back to a policy gap

A scenario question asks you to pick one and explain how a specific policy failure caused it. Each of these is a one-line answer plus a paragraph.

IncidentYearWhat happenedThe policy gap
Equifax2017An unpatched known vulnerability exposed 147 million recordsNo enforced patching and vulnerability management policy
WannaCry2017Ransomware hit 150+ countries via unpatched WindowsNo patch cadence and no incident response plan
Marriott2018339 million guest records stolen through a third partyWeak password and third-party access controls
SolarWinds2020A malicious update pushed to thousands of organisationsGaps in supply chain policy and audit
Worked answer: Equifax

What happened. Attackers exploited a vulnerability in a public-facing web application for which a patch had already been published. It was not a zero-day; the fix existed and had not been applied. They remained inside for months and exfiltrated the personal data of about 147 million people.

The policy failure, step by step. A patch management policy is supposed to do four things, and each was missing. 1. Asset inventory: the organisation must know every system running the affected component, and it did not, so the patch notice reached nobody who owned the vulnerable host. 2. Defined remediation windows tied to severity, so a critical internet-facing flaw is fixed in days rather than whenever convenient. 3. Verification, a scan confirming the patch actually landed everywhere, which would have caught the missed host. 4. Accountability, a named owner and an escalation path when a deadline passes.

Why this is a policy failure and not a technical one. No new technology was needed. The patch, the scanner and the inventory tooling all existed. What was missing was the mandatory, enforced, audited process that makes someone responsible for using them. This is the Chapter 1 point about due care exactly: the diligence had been done by the vendor publishing the advisory, and the care was never taken.

7.1Security Policy Framework

What a Security Policy Framework is

Definition A Security Policy Framework is the hierarchy of documents, policies, standards, baselines, guidelines and procedures, that together direct how an organisation protects its information assets. A quality information security programme begins and ends with policy.
  • Written instructions from management on the proper, secure use of information and assets.
  • Provides structure and expresses the will of management in controlling behaviour.
  • Creates a productive work environment, free of unnecessary distraction and misuse.
  • Is the essential foundation of an effective InfoSec programme, and the reference point for audits and legal disputes.
  • The paradox to quote: policy is the least expensive control, costing only the time to write, approve and communicate it, a fraction of what technical controls cost. Yet it is often the hardest to implement, because it depends on people changing behaviour.

Governance, standards and compliance

Every organisation has governance: the body that approves, monitors and holds security to account. It sits over the three things a security programme is made of, people (who is responsible), process (how we do things) and technology (what tools we use), and ensures checks and balances between them.

What governance gives you:

  • Structure. Standards such as ISO, NIST and ITIL give organisations the ability to understand the flow of everything going on.
  • A static measure to monitor against. It answers the question are my security professionals doing what they need to, the way they need to?
  • Approval. You always operate as an approved project or purchase rather than an ad hoc decision.
  • Compliance monitoring, a key ongoing responsibility of the governance committee.

The policy hierarchy

From high-level intent down to step-by-step action. Each layer supports the one above, and the mandatory or recommended column is where marks are won or lost.

THE POLICY HIERARCHY Broader and more general at the top, more specific and technical at the bottom. Only one layer is optional. Policy plan or course of action guiding decisions Standard compulsory requirements for tech and controls Baseline minimum level every system must meet Guideline recommended action and best practice Procedure step by step instructions to implement a control MANDATORY MANDATORY MANDATORY RECOMMENDED MANDATORY All data protected per its classification Laptops use AES-256 full-disk encryption The hardened OS build image Prefer passphrases to short complex passwords The runbook for enabling BitLocker more specific
LayerWhat it isStatusExample
PolicyA plan or course of action that guides decisions. High level, broad and generalMandatoryAll company data must be protected according to its classification
StandardCompulsory requirements for hardware, software and controls. The detailed statement of what must be done to comply with the policyMandatoryAll laptops use AES-256 full-disk encryption; PCI-DSS; ISO 27001
BaselineThe minimum security level every system must meet. Systems below it come out of production until brought upMandatoryA hardened OS build image; the Common Criteria or ITSEC evaluation level
GuidelineRecommended actions and best practice. Flexible, and used where no standard exists or to explain how to apply oneRecommendedPrefer passphrases over complex short passwords
ProcedureStep-by-step instructions to implement a controlMandatoryThe numbered runbook for enabling BitLocker and escrowing the recovery key

The trap: the hierarchy runs broader and more general at the top, more specific and technical at the bottom, but guideline is the only recommended layer. Procedures sit at the bottom and are still mandatory. Getting that right is usually worth a mark on its own.

What makes a policy effective and enforceable

Five basic rules for shaping a policy. It must:

  • Never conflict with law.
  • Stand up in court if challenged.
  • Be properly supported and administered.
  • Contribute to the success of the organisation.
  • Involve the end users of the information systems.

Six conditions for enforceability. A policy is only enforceable if it is:

  1. Developed using industry-accepted practices
  2. Distributed by all appropriate methods
  3. Read by all employees
  4. Understood by all employees
  5. Formally agreed to by act or affirmation
  6. Uniformly applied and enforced

Why the last one matters most: a policy enforced selectively is worse than no policy, because inconsistent enforcement is precisely what a dismissed employee argues in a tribunal. Uniform application is what makes the document survive a legal challenge.

7.2SPF documents: the three tiers

NIST SP 800-14: EISP, ISSP and SysSP

Every information security policy fits into one of three categories. This is the most frequently asked structure in the chapter.

EISPISSPSysSP
Full nameEnterprise Information Security PolicyIssue-Specific Security PolicySystem-Specific Security Policy
LevelStrategicTacticalOperational
ScopeThe whole organisationOne technology or processOne system or device
PurposeSets direction, scope and tone. An executive-level documentGoverns the proper use of a specific technologyConfigures a particular system, often written as standards and procedures
OwnerSenior management / CISOThe function owning that technologyManagement plus the system administrator
ExampleThe corporate information security policy signed by the CEOThe email policy, the BYOD policy, the internet acceptable use policyThe firewall ruleset policy for the perimeter firewall

EISP in detail. It sets the strategic direction, scope and tone for all of the organisation security efforts; it is an executive-level document owned by senior management or the CISO; it assigns responsibilities for the various areas of information security; and it guides development, implementation and management of the security programme. Its components:

  • An overview of the corporate philosophy on security
  • The structure of the InfoSec organisation and who fills each role
  • Shared responsibilities for everyone: employees, contractors, consultants, partners, visitors
  • Role-unique responsibilities specific to each function, for example HR versus Marketing

ISSP in detail. It provides detailed, targeted guidance instructing staff in the secure use of a technology; it protects both employee and organisation from inefficiency and ambiguity; and it indemnifies the organisation against liability for an employee misuse. It is deliberately generic on vendors, for example remote access only via a company VPN without naming a product, so vendors can change without a rewrite.

  • Common ISSP topics: email, internet and web use, BYOD, home use of equipment, personal devices on the network, anti-malware configuration, and a no-hacking or no-testing-of-controls rule.
  • What a complete ISSP contains: statement of policy (scope, applicability, technology addressed, responsibilities); authorised access and usage (fair use, privacy); prohibited use (misuse, criminal, harassing, IP violations); systems management (monitoring, encryption, virus protection); violations of policy (reporting procedures and penalties); policy review and modification; and limitations of liability.

SysSP in detail. Focused on a single system, a firewall, a web server, even one computer. It has two parts, and the distinction between them is a published question:

Management guidanceTechnical specifications
Written byManagementThe system administrator
SaysWhat the system must achieve, and whyHow the system is configured to achieve it
PurposeGuides how the technology is implemented and configured. Applies to anything affecting confidentiality, integrity or availability. Informs technologists of management intentThe administrator directions for implementing managerial policy. Each type of equipment has its own technical SysSP
Firewall exampleThe perimeter firewall shall default-deny all inbound traffic. Only HTTPS to the DMZ web servers is permitted. Rule changes require change-board approval and are reviewed quarterly.The actual ACLs defining who, what, when, where and how a resource is used, and the configuration rules, the instructional codes for firewalls, IDPS and proxies

Why both halves are needed: without the management guidance an administrator may configure the firewall as they see fit, possibly against the organisation intent, and nobody can later say the configuration was wrong. The two are often combined into a single document, and SysSPs frequently function as standards or procedures.

Policy documents you will actually meet

Reference documents for internal audits and for resolving legal disputes about due care.

DocumentWhat it governs
Acceptable Use PolicyWhat users may and may not do with company assets
Access Control PolicyWho may reach which systems and data
Remote Access PolicySecure offsite connectivity, typically VPN
Data Breach Response PolicyThe steps taken when data is exposed
Disaster Recovery PlanRestoring IT after an outage
Business Continuity PlanKeeping the business running while IT is down

7.3Security auditing and compliance

What an audit is, and why it is an assurance engagement

Definition An audit is an assurance engagement: it provides confidence to stakeholders that things are as they should be. An IS or IT audit gives assurance that IT assets are safe, controls run smoothly and threats are detected.
TypeAssurance given, and to whom
FinancialThat the statements give a true and fair view, to shareholders
InternalThat internal controls work and risk is managed, to management and the board
StatutoryThat the organisation is compliant, to regulators
IS / ITThat IT assets are safe, controls run smoothly and threats are detected
  • Reasonable assurance, not full assurance. This is the phrase the question wants. Because audits rely on sampling, they reduce risk to an acceptable level rather than eliminating it. An auditor examines a sample of transactions or configurations and concludes about the whole; that inference is strong but never certain. Discrepancies and findings are reported to the Audit Committee.
  • Scope of an IT security audit. It assesses the security of the networked infrastructure: systems, networks, operating systems and applications. It is performed by someone with technical and business knowledge of the IT estate. Auditors interview key staff, run vulnerability assessments and penetration tests, and catalogue existing controls. The goal is to confirm compliance, confirm assets are protected, and recommend improved controls.
  • Auditing subject areas: applications (ERP, email, scheduling, what users see), databases (which organise and serve the data), system platforms (the operating environments), networks (firewalls, switches, routers) and data-centre facilities (the physical building and racks).

The IT audit process: six phases

A repeatable cycle from planning through to tracking issues to closure.

  1. Planning. Define objectives, scope, risk and controls; build checklists; schedule the work; hold the kick-off meeting.
  2. Fieldwork and documentation. Run the checklist, gather data and conduct interviews, record findings in working papers.
  3. Issue discovery and validation. List potential concerns and validate them with the client before reporting, in good time. Validating first is what stops the report carrying findings that turn out to be misunderstandings.
  4. Solution development. Agree an action plan, via a recommendation, a management response, or a jointly agreed solution.
  5. Report drafting and issuance. Scope, executive summary, issues and action plans, conclusion. Then distribute.
  6. Issue tracking. Follow up to closure, escalate as a last resort, and validate the fix. Without this phase the whole audit is advisory.

Compliance and internal controls

  • What internal controls do. Every system and process exists for a business purpose. The auditor looks for risks to that purpose, confirms controls are in place to mitigate them, and where controls are missing or failing, records a finding.
  • Why compliance matters. It demonstrates due care and due diligence to regulators, customers and courts, and it turns policy on paper into evidence that controls actually operate.
  • Compliance is not security. It is a floor, not a ceiling. A fully compliant organisation can still be breached, because standards codify the minimum agreed practice at the time they were written, and attackers do not stop there.
  • Continuous monitoring closes the gap between annual audits. An audit is a snapshot; the environment changes daily.

7.4Standards and regulations

Regulation, standard and framework: three different things

KindWhat it isForceExamples
RegulationLaw you must obeyEnforced by government. Non-compliance means fines or legal actionGDPR, HIPAA
StandardA defined, published, often certifiable specification you can be measured againstContractual or certification-driven rather than legalISO 27001, PCI-DSS
FrameworkA structured, flexible model of best practice you adapt to your own contextVoluntary, adopted because it worksNIST CSF, SOC 2

GDPR, HIPAA and SOC 2 at a glance

GDPRHIPAASOC 2
TypeEU regulation (law)US federal lawAttestation / audit report
ProtectsPersonal data of EU residentsProtected health information (PHI)Customer data held at service providers
Applies toAnyone handling EU personal dataHealthcare providers, plans and business associatesSaaS, cloud and service organisations
Built around7 data-protection principlesPrivacy, Security and Breach rules5 Trust Services Criteria
Penalty or proofUp to €20m or 4% of global revenueFines plus criminal liabilityA Type I or Type II report. No fine

SOC 2 Type I versus Type II, worth knowing because it is the difference between design and reality. Type I attests that controls are suitably designed at a point in time. Type II attests that they operated effectively over a period, typically 6 to 12 months. Customers ask for Type II.

Frameworks you build programmes on

FrameworkWhat it gives you
ISO/IEC 27001The international standard for an Information Security Management System. Certifiable and risk-based
NIST CSFFive functions: Identify, Protect, Detect, Respond, Recover. Flexible and widely adopted
PCI-DSSMandatory for anyone storing or processing payment-card data. Prescriptive controls
SOC 2Trust Services Criteria for service providers. Type I is design, Type II is operating effectiveness
CIS ControlsPrioritised, prescriptive safeguards. A practical starting point for defence
ITIL / COBITService-management and IT-governance frameworks that wrap security into operations

7.5 to 7.6Testing and assessment

Three ways to assess security

They overlap, but each answers a different question, and depth increases as you go down.

MethodThe question it answersCharacter
Security auditDo the right controls exist and are they documented?Checklist-driven, evidence-based, often for compliance. Broad, not deep
Vulnerability assessmentWhat weaknesses can we find?Broad, largely automated scan that finds and lists known weaknesses. No exploitation
Penetration testCan an attacker actually get in?Narrow, mostly manual. Exploits weaknesses to prove real-world impact

The rule of thumb to quote: a vulnerability assessment tells you the doors are unlocked; a penetration test walks through them and shows what is behind.

The assessment lifecycle. Whatever the depth, a disciplined assessment follows the same repeatable path:

  1. Scope and plan. Agree targets, rules of engagement, timing and authorisation.
  2. Discover. Enumerate assets, services and the attack surface.
  3. Analyse. Identify and rank weaknesses, remove false positives.
  4. Report. Communicate findings, risk ratings and recommendations.
  5. Remediate. Owners fix the issues per the agreed action plan.
  6. Verify. Re-test to confirm the fix, then repeat the cycle.
Authorisation first Testing without written permission and an agreed scope is not a security assessment, it is a crime. Rules of engagement protect both sides: they define what may be touched, when, by whom, what is out of bounds, and who to call if something breaks.

Vulnerability scanning

  • What it does. Software compares systems against a database of known vulnerabilities (CVEs) and misconfigurations.
  • Broad, fast and repeatable, which makes it ideal to run frequently and on a schedule.
  • Output: a prioritised list of findings, usually scored by severity.
  • It does not exploit, so expect false positives that a human must validate. This is the trade for safety and speed.
  • Common types: network, host, web-application, database and cloud-config scans.
  • Authenticated versus unauthenticated. A credentialed scan logs in and reads actual patch levels, so it is far more accurate. An unauthenticated scan sees only what an outsider sees, which is a different and also useful question.
  • Tools: Nessus, OpenVAS, Qualys, Nexpose.

Scan cadence: continuously or weekly for critical external assets; monthly for internal infrastructure; after every significant change or new deployment; and quarterly ASV scans, which are required by PCI-DSS.

Penetration testing

Definition A penetration test is a goal-driven, largely manual attack simulation that proves real-world impact by exploiting weaknesses rather than merely listing them.

How much does the tester know?

TypeKnowledge givenWhat it modelsTrade-off
Black boxNoneAn external attacker with zero inside informationMost realistic, but slowest, and time spent on reconnaissance is time not spent testing
Grey boxPartial: some access or credentialsA malicious insider or a compromised user accountThe usual choice. Realistic enough, and efficient
White boxFull: architecture, source and credentialsAn attacker with perfect knowledge, or a thorough internal reviewMost thorough and most efficient coverage, least realistic as a simulation

Common engagement targets: external network, internal network, web application, wireless, social engineering, physical, cloud, and mobile or API.

Six phases, a structured methodology following PTES and mirroring the attacker kill chain:

  1. Reconnaissance. Gather information: OSINT, footprinting, passive and active recon.
  2. Scanning and enumeration. Map live hosts, open ports, services and versions.
  3. Gaining access. Exploit a weakness to get an initial foothold.
  4. Maintaining access. Escalate privilege, move laterally, establish persistence.
  5. Covering tracks. Understand how an attacker would evade detection. In an authorised test this is documented rather than actually done, so the client can measure their own detection capability.
  6. Analysis and reporting. Document the path, the impact and the evidence, and recommend fixes.

Vulnerability scan versus penetration test. Complementary rather than competing. Most programmes need both:

Vulnerability scanningPenetration testing
GoalFind and list known weaknessesExploit weaknesses to prove impact
MethodAutomated toolsMostly manual, human-led
Breadth vs depthBroad, shallowNarrow, deep
FrequencyContinuous, weekly or monthlyPeriodic, for example annually or per release
OutputA prioritised list of findingsA narrative of the attack path plus evidence
Cost and skillLower. Routine hygieneHigher. Specialist expertise

7.7Reporting and remediation

Anatomy of a findings report

A good report speaks to executives and engineers in the same document, which is why it has six parts rather than one.

SectionContentAudience
Executive summaryBusiness-level risk and headline issuesLeadership
Scope and methodologyWhat was tested, how, and the rules of engagementBoth. It also bounds what the report does not cover
Findings and evidenceEach issue with proof, affected assets and reproduction stepsEngineers
Risk ratingSeverity and likelihood per finding, for example CVSSBoth. It is how the two audiences agree on order
RecommendationsConcrete, prioritised remediation for each issueEngineers and their managers
Conclusion and appendicesOverall posture, raw data and referencesBoth

Scoring and prioritising risk

You cannot fix everything at once, so severity plus context decides what goes first.

CVSS scoreSeverityExpected action
9.0 to 10.0CriticalFix immediately
7.0 to 8.9HighFix within days
4.0 to 6.9MediumPlanned remediation
0.1 to 3.9LowFix as capacity allows

Severity is not the whole story. Prioritise with context: asset value and exposure, exploitability and threat intelligence, existing compensating controls, and business impact.

The line to quote: a medium on an internet-facing crown-jewel system can outrank a high on an isolated test box. CVSS scores the vulnerability; only you can score the asset.

Remediation, tracking and re-test

Three ways to agree an action plan, in increasing order of how likely the fix is to happen:

  1. Recommendation. The auditor recommends a fix, but it may not be acted on. Weakest, because nobody is obliged to respond.
  2. Management response. The auditor reports the issue and management must formally respond, accepting, rejecting or scheduling it. This creates an accountable record.
  3. Solution. Client and auditor mutually agree the action plan. Most effective, because the people who have to do the work have already committed to it.

Issue tracking, until every finding is resolved: assign an owner and a due date, track to closure, escalate as a last resort, then re-test and validate.

Key takeaways from the chapter
  1. Policy is the foundation. Cheap to write, hard to embed. It starts and ends the security programme.
  2. Know the three tiers. EISP sets strategy, ISSP governs technology use, SysSP configures systems.
  3. Audit equals assurance. Reasonable, not full: sampling-based confidence that controls work.
  4. Compliance is a floor. Meeting GDPR, HIPAA or SOC 2 is necessary and never sufficient.
  5. Test reality, with permission. Scanning finds breadth, penetration testing proves depth. Always authorised.
  6. Close the loop. Report clearly, prioritise by risk, remediate, then re-test to verify.

Further reading the deck names: NIST SP 800-14, ISO/IEC 27001, NIST CSF, the OWASP Testing Guide, PTES.

Question bankEvery question set on this chapter

Chapter 7 questions, verbatim

One asked question and five predicted ones, reproduced exactly as published.

Explain various types of information security policies outlined in NIST 800-14 with examples.

(a) What is the purpose of an information security policy? (b) Differentiate between Policies, Standards, Baselines, Guidelines, and Procedures. Explain which are mandatory and provide a clear example of each.

According to the NIST framework, security policies can be grouped into three main types. List and describe these three types: Enterprise (EISP), Issue-Specific (ISSP), and System-Specific (SysSP), and give a practical example for each.

LikelySysSP

(a) A System-Specific Policy (SysSP) is composed of two main parts. What are they? (b) Using the example of a new company firewall, explain the difference between the “Management Guidance” and the “Technical Specifications” (e.g., ACLs or Configuration Rules) for that firewall.

(a) What is an IS Audit, and why is it considered an “assurance engagement”? (b) Outline the six phases of the IT Audit process, from the initial planning stage to the final follow-up.

LikelyScenarioPolicy failures

The chapter references several major breaches like Equifax and WannaCry. Choose one of these case studies and explain how a specific failure in security policy (e.g., patch management or vulnerability assessment policy) directly contributed to the incident.

Chapters 4, 6 and 8 · 15 hours · 28 marks

Chapters still to come

These three chapters have no lecture deck yet, so they carry the syllabus outline and every question already published. That is 28 of the 80 marks, so read the questions now even though the notes are not written.

Chapter 4Log Management, Data Visualisation and Security Monitoring

Syllabus outline: 7 hours, 12 marks

  • 4.1 Importance of log management
  • 4.2 Log sources: operating systems, applications, network devices
  • 4.3 Log collection, aggregation and retention
  • 4.4 Log analysis and correlation
  • 4.5 Security Information and Event Management (SIEM)
  • 4.6 Data visualisation for security analysis

You are not starting from zero. The SIEM material in Chapter 5 and the SIEM query and hunting material in Chapter 3 already cover a large part of 4.4 and 4.5. Read those two first and much of this chapter will already be familiar.

Chapter 4 questions, verbatim

Published before the deck. Every one is reproduced exactly.

Asked

What types of logs can be integrated into a SIEM?

Asked

With reference to SIEM architecture, explain how different stages (data collection, normalization, correlation, storage, reporting).

Likely[2+6]

What is Log Management? Describe four key benefits an effective log management solution provides to an organization, such as improved security and faster troubleshooting.

Likely[8]

Identify and describe four different types of logs (e.g., Authentication, Firewall, Application, etc.). For each type you choose, explain the specific kind of information it typically records.

Likely[2+6]

Define Security Information and Event Management (SIEM). Explain the core function of a SIEM in translating raw log data into actionable intelligence, covering the key processes of Normalization, Storage, and Analytics.

Likely[8]

Describe the typical data processing pipeline in a SIEM. Explain the purpose of at least four of the following stages: Collect, Parse, Normalize, Enrich, and Store.

Likely[2+6]

What is the SOC Visibility Triad? Describe its three core components and explain why integrating them provides a more comprehensive security monitoring capability than using any single component alone.

Likely[4+4]

Differentiate between Log Analysis and Log Correlation. Explain why Log Enrichment (e.g., adding threat intelligence context) is a crucial step for effective security monitoring.

Chapter 6Incident Detection and Response

Syllabus outline: 6 hours, 10 marks

  • 6.1 Incident identification and classification
  • 6.2 Incident handling and response procedures
  • 6.3 Incident triage and escalation
  • 6.4 Post-incident analysis and reporting
  • 6.5 Case studies of real incidents

Head start: the ransomware incident-handling checklist in Chapter 2 already walks prepare, detect and analyse, contain, eradicate, recover and post-incident. The four worked hunts in Chapter 3 are triage examples, and the SOAR playbook material in Chapter 5 is the automation half of response.

Chapter 6 questions, verbatim

One question published so far.

Asked

What are the fundamental steps involved in incident handling and response procedures? Provide examples of specific actions taken during each step.

Chapter 8The Ethics of Cyber Security

Syllabus outline: 2 hours, 6 marks

  • 8.1 Ethical considerations in cybersecurity
  • 8.2 Cyber crime and cyber terrorism
  • 8.3 Legal and ethical frameworks
  • 8.4 Privacy and data protection
  • 8.5 Ethical hacking and responsible disclosure
  • 8.6 Professional ethics in cybersecurity
  • 8.7 Social responsibility in cybersecurity
  • 8.8 Cyber law in the context of Nepal

Two marks per hour makes this the densest chapter on the paper: 6 marks for 2 lecture hours. The named Nepali statutes to know are the Electronic Transaction Act (ETA) 2008 and the Privacy Act 2018, both listed in the course references.

Chapter 8 questions, verbatim

Three questions published so far.

Asked

Describe the concepts like responsible disclouse and pretecting Whistleblower in your own words with examples.

Asked

Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent?

Asked

Define ethical considerations in the context of cybersecurity. Also, provide an overview of cyber law in the context of Nepal.

Practical · 3/2 · fully lab-based

Lab sessions and references

Seventeen lab sessions, each mapping onto a chapter you have just read. The practical is not separate from the theory; it is the same syllabus with your hands on it.

The seventeen labs

#LabActivityChapter
1Risk AssessmentAnalyse a fictional organisation assets, threats and vulnerabilities and calculate risk. Create a risk assessment matrix, prioritise risks, recommend mitigation strategies1
2Bug-Bee Security ProjectA web application vulnerability assessment. Collaborate to assess a provided application, identify vulnerabilities and potential exploits, suggest mitigations, document findings and share insights2, 7
3Phishing AwarenessSimulate a phishing attack. Recognise phishing emails, report them, discuss best practice for avoiding them2
4DDoS AttackExperience a simulated DDoS attack on a network using the LOIC tool. Configure and test mitigation such as rate limiting and traffic filtering2
5Threat Intelligence GatheringGather intelligence related to a specific industry using open-source tools, then collect and analyse it3
6MITRE ATT&CK FrameworkInvestigate a simulated attack scenario, identify attack techniques and tactics, propose defensive measures3
7Threat Hunting SimulationSimulate a hunt in a controlled environment using real-world techniques to detect and respond to threats3
8Log Collection, Parsing and AnalysisCollect and analyse logs from various sources, examine them for indicators of compromise, generate reports, and parse log data with log parsing tools and regex patterns4
9Data VisualisationVisualise security data to identify trends and anomalies, creating dashboards and reports4
10SIEM ImplementationDeploy a SIEM in a lab environment, configure data sources, create dashboards, set up alerting4, 5
11Integrate SIEM, SOAR and EDRDemonstrate integration and collaboration between the three for advanced detection and response5
12Incident TriageInvestigate and triage a security incident, following a response playbook to identify and categorise it6
13Access Control ConfigurationSecurity controls, IAAA and MFA. Configure access controls for a network, implement ACLs and test permissions1
14Compliance AuditConduct a compliance audit against a security policy using auditing tools7
15Security Policies and ProceduresDevelop security policies. Write a sample Acceptable Use Policy, a Password Policy and an Incident Response Plan7
16Privacy Impact AssessmentEvaluate the privacy impact of a new technology or system and recommend mitigations8
17Assessing Cyber Law Completeness (Nepal)Analyse existing cyber laws and regulations in Nepal to assess their completeness against contemporary cybersecurity and privacy issues, identify gaps and propose recommendations8

Course objectives, in the syllabus wording

On successful completion, students will be able to:

  • Understand core cybersecurity principles and concepts
  • Recognise and analyse various types of cyber threats and attacks
  • Apply threat modelling, threat intelligence and threat hunting techniques
  • Effectively manage logs, visualise data and monitor security
  • Stay up to date with emerging technologies in security operations, including the concept of the vCISO
  • Detect and respond to security incidents using best practices
  • Develop and implement security policies, access controls and compliance measures
  • Embrace ethical considerations and legal frameworks in cybersecurity

References

  1. Matt Bishop, Computer Security: Art and Science, second edition, Pearson Education
  2. William Stallings, Network Security Essentials, third edition
  3. Don Murdoch, Blue Team Handbook: SOC, SIEM and Threat Hunting Use Cases, Notes from the Field
  4. Yuri Diogenes and Erdal Ozkaya, Cybersecurity: Attack and Defense Strategies, Infrastructure Security with Red Team and Blue Team Tactics
  5. Matt Walker, CEH Certified Ethical Hacker All-in-One Exam Guide, fourth edition (2019)
  6. Michael E. Whitman and Herbert J. Mattord, Management of Information Security, fourth edition
  7. Hands-On Ethical Hacking and Network Defense, third edition
  8. Electronic Transaction Act (ETA) 2008
  9. Privacy Act 2018

Evaluation scheme

The questions cover all chapters of the syllabus. There may be minor deviation in marks distribution.

ChapterTitleHoursMarks
1Cybersecurity Concepts and Principles47
2Malware and Cyber Attacks915
3Cyber Threat Modelling and Threat Hunting915
4Log Management, Data Visualisation and Security Monitoring712
5Emerging Technologies in Security Operations48
6Incident Detection and Response610
7Security Policy and Audit47
8The Ethics of Cyber Security26
Total4580

About this guide

  • Built from the course lecture decks and the questions published alongside each chapter. The raw decks are not redistributed.
  • Written for BE Computer Engineering, Year IV Part I, Elective I, IOE Pulchowk Campus, Tribhuvan University.
  • One file, no network. Every diagram is inline SVG and every style is embedded, so the page works offline and prints to a clean PDF.
  • Not official. Copyright in the original slides and questions rests with their authors. Any error in these notes is mine rather than the course.
  • Back to the semester index