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.
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.
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:
- 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.
- Give the structure: the stages, the categories, the acronym expanded. If the question says “list and describe”, list first, then describe.
- 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.
- 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
- 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:
| Area | What it protects | Typical controls |
|---|---|---|
| Physical | People, physical assets and the workplace from fire, unauthorised entry, natural disaster | Biometrics, fence, CCTV, fire extinguisher |
| Personnel | The people inside the organisation | Evacuation plan, floor warden |
| Operations | The business running without interruption or compromise | BCP and DRP |
| Communications | Communication media, technology and content | Encryption |
| Network | Networking devices, connections and their content | Firewall, IDS/IPS, DMZ |
| Information (InfoSec) | The information itself, in every state | Classification, access control, policy |
The CIA triad
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.
| Attacks | Non-malicious events | Countermeasures | |
|---|---|---|---|
| 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”:
| Availability | Integrity | Confidentiality |
|---|---|---|
| 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 |
- Define all three in one sentence each (2 marks).
- 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).
- 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
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:
| Factor | Basis | Examples | Weakness |
|---|---|---|---|
| Type 1: something you know | Knowledge | Password, PIN, passphrase, security question | Guessable, phishable, reusable across sites, shareable |
| Type 2: something you have | Possession | Smart card, hardware token, TOTP app, security key, phone receiving a push | Lost, stolen, cloned; codes can be read out to an attacker |
| Type 3: something you are | Inherence | Fingerprint, iris, face, palm vein, retina | Cannot be reissued after compromise; false accept / false reject rates |
| Somewhere you are | Location | Source IP, GPS geofence, network segment | Spoofable via VPN or proxy; used as a supporting signal, not a primary factor |
| Something you do | Behaviour | Typing rhythm, gait, signature dynamics | Variable; usually continuous authentication rather than a gate |
- 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.
Worked cells: the concrete controls the deck puts in the grid:
| State | Confidentiality | Integrity | Availability |
|---|---|---|---|
| Storage | Encryption at rest, RBAC/ABAC access control, data classification and labelling, secure backups | Hashing (SHA-256, HMAC), file integrity monitoring (Tripwire, OSSEC), digital signatures, version control and checksums | RAID and fault tolerance, cloud redundancy across regions, backup and recovery plans |
| Transmission | Network encryption (TLS, VPN, IPSec), data masking and tokenisation, secure protocols (SSH, HTTPS) | Message authentication codes, digital certificates (PKI, TLS), transport integrity such as SSL pinning | Load balancing and failover clustering, DDoS mitigation (CDN, WAF, rate limiting), network monitoring and QoS |
| Processing | Encrypted computation, secure enclaves (SGX, Nitro), role-based access enforcement | Tamper-proof logging, input validation and sanitisation, code signing and integrity verification | Resource isolation (containers, microservices), capacity planning and auto-scaling, BCP/DR |
| Control category | Technology: 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)
- 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.
| Term | Definition |
|---|---|
| Asset | Anything of value to the organisation: intellectual property, data, people (their knowledge, skills and abilities), brand, goodwill, hardware, software, network components, procedures. |
| Threat | Any 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. |
| Vulnerability | A weakness, flaw, loophole, oversight, error, limitation, frailty or susceptibility in the IT infrastructure or its controls. |
| Threat agent | Whatever 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. |
| Exposure | Being susceptible to asset loss because of a threat, the possibility that a vulnerability can or will be exploited by a threat agent or event. |
| Risk | The possibility or likelihood that a threat will exploit a vulnerability to cause harm to an asset. An assessment of probability, possibility or chance. |
| Attack | The exploitation of a vulnerability by a threat agent. |
| Breach | A security mechanism being bypassed or thwarted by a threat agent. |
| Security control | What reduces the likelihood or impact of a risk, or helps identify issues: firewall, IDS/IPS, auditing, data classification, separation of duties. |
- 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
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.
- 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.
- 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).
- Assign a value to each asset: a relative, comparative judgement so the most valuable get the highest priority.
- Identify threats to the catalogued assets: threat identification, then threat assessment.
- Pinpoint vulnerable assets by tying specific threats to specific assets.
Attributes to record, by asset type:
| Asset type | Attributes |
|---|---|
| People | Position name/number/ID, supervisor name/number/ID, security clearance level, special skills |
| Procedures | Description, intended purpose, the software/hardware/network elements it is tied to, where it is stored for reference, where it is stored for update |
| Data | Classification, owner/creator/manager, size, data structure used (sequential, relational), online or offline, location, backup procedures |
| Software, hardware, network | Name, 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
- 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%.
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.
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.
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?
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.
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.
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:
| Quantitative | Qualitative | |
|---|---|---|
| Output | Money: SLE, ALE, ROSI | Ratings: high/medium/low, a 1 to 5 scale, a heat map |
| Basis | Measured or estimated financial values and frequencies | Expert judgement, scenario workshops, experience |
| Strength | Directly supports cost/benefit decisions; results are comparable and defensible to a board | Fast, cheap, works where no reliable data exists; captures reputational and intangible harm |
| Weakness | Slow and data-hungry; hard to price brand damage or loss of life; false precision | Subjective and hard to compare between assessors; cannot be fed into a cost/benefit sum |
| Use when | The asset and loss history can be priced: hardware, fraud, downtime | Assessing 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
| Option | What it means | Example from the deck |
|---|---|---|
| Avoidance | Change business practice so the risk becomes irrelevant, stop doing the risky thing | Serving HTTPS instead of HTTP; choosing a memory-safe language (Rust) over C/C++ so whole vulnerability classes cannot occur |
| Transference | Shift the financial consequence to a third party. The risk still happens, someone else pays | Cyber insurance; moving a workload to a cloud provider who carries part of the obligation |
| Mitigation | Reduce the likelihood or the impact. The commonest response by far | Patching vulnerable systems, an incident response plan, a business continuity plan |
| Acceptance | Choose to continue operating in the face of the risk, knowingly and with sign-off | A 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”
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:
- 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.
- 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.
- Select: choose the control baseline matching that categorisation, then tailor it: add, remove or substitute controls for this system's actual risk.
- Implement: deploy the controls and document how they were implemented.
- Assess: test whether the controls are implemented correctly, operating as intended and producing the desired outcome.
- Authorise: a senior official formally accepts the residual risk and permits the system to operate. An explicit, accountable acceptance decision.
- Monitor: continuously watch control effectiveness, changes to the system and the threat environment, and feed changes back into the cycle.
- Define risk management and state its goal: reduce risk to an acceptable level, not zero.
- Explain the phrase: finite budget, unbounded attack surface, so triage is compulsory.
- 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.
- Tie back: weighted factor analysis and the ranked vulnerability worksheet are how the prioritisation is actually computed.
- Close on Monitor: the ocean keeps refilling, so the cycle repeats.
Due care and due diligence
- 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.
| Document | What it is | Status | Example |
|---|---|---|---|
| Policy | A plan or course of action that guides decisions. High-level statement of management intent | Mandatory | Acceptable Use Policy, Access Control Policy, Remote Access Policy |
| Standard | Compulsory requirements for the use of hardware, software, technology and controls, the detailed statement of what must be done to comply with policy | Mandatory | PCI-DSS, NIST CSF, ITIL, ISO; internally, “we buy this manufacturer” or a consistent company email signature |
| Baseline | The minimum level of security every system in the organisation must meet. Anything below it comes out of production until it is brought up | Mandatory | Common Criteria, ITSEC, NIST hardening baselines |
| Guideline | Recommended 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 configuration | Recommended | Security best-practice notes, vendor hardening advice |
| Procedure | Step-by-step instructions describing the exact actions needed to implement a specific mechanism or solution | Mandatory | The runbook for deploying and configuring the firewall |
- 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?
A case to prepare a quantitative risk analysis and risk mitigation plan.
(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.
(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.
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).
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?
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
- 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:
| Technique | How it works | Example |
|---|---|---|
| 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
- 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.
| Virus | Worm | Trojan horse | |
|---|---|---|---|
| Primary function | Infect a host file or boot record and deliver a destructive payload | Replicate across a network as fast as possible, often carrying a payload too | Deceive. It appears benevolent while carrying a hidden malicious payload |
| Needs a host file | Yes, it attaches to an executable, document or boot sector | No, it is a standalone program | No, it is the program the user chose to run |
| Propagation | Requires human action: running the infected file, booting from infected media, opening the document | Self-propagating, exploits a vulnerability or weak credentials with no human involved | Requires the user to download and run it willingly, believing it is something else |
| Replicates itself | Yes | Yes, aggressively | Usually no |
| Example | Melissa, Petya, Marzia | Morris, Code Red, Stuxnet | The Xbox emulator Trojan, rogue antivirus |
How a macro virus infects a system, in the four steps an examiner wants:
- Delivery. The victim receives a document (Word, Excel) as an email attachment or download, usually with an urgent pretext.
- Execution. Opening it triggers the embedded VBA macro, either automatically through an auto-open event or after the user clicks Enable Content.
- Infection. The macro copies itself into the global template so every document subsequently opened or created on that machine is infected too.
- 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
- 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.
- 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:
| Stage | Added lever | Why it was added |
|---|---|---|
| Single | Encrypt the data after deleting shadow copies | The original model. Defeated by a victim with tested offline backups |
| Double | Exfiltrate sensitive data before encrypting, then leak parts of it publicly or on the dark web and raise the demand | Backups no longer save you. Even a fully restored victim faces a data breach, regulatory exposure and reputational harm |
| Triple | Launch a DDoS attack against the organisation on top of encryption and leaks | Keeps the victim offline and in crisis while they try to recover, compressing the time available to refuse |
| Quadruple | Contact the customers and users of the targeted organisation directly to apply pressure | Turns 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: 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
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:
| CVE | Severity | Flaw type | Role in the chain |
|---|---|---|---|
| CVE-2021-26855 | Critical, CVSS 9.1 | Server-Side Request Forgery | Initial access. Bypasses authentication by masquerading as the Exchange server itself |
| CVE-2021-26857 | High, CVSS 7.8 | Insecure deserialisation | Privilege escalation. Runs code in the high-privilege SYSTEM account context |
| CVE-2021-26858 | High, CVSS 7.8 | Arbitrary file write | Persistence. Writes web shells to disk after authentication |
| CVE-2021-27065 | High, CVSS 7.8 | Arbitrary file write | Persistence. 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.
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
| Type | What makes it different |
|---|---|
| Phishing | Mass fraudulent email designed to closely resemble legitimate communication, harvesting credentials or delivering malware |
| Spear phishing | Specifically targeted at an individual, based on research conducted by the attacker. Includes personal detail to make the message look authentic |
| Whaling | A subset of spear phishing aimed at high-value targets such as senior executives, whose authority makes the payoff larger |
| Vishing | Phishing techniques over voice communication, typically the telephone |
| Smishing | The same over SMS, where there is no sender display name and links are shortened by default |
| Quishing | The 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 diving | Physically 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:
- Urgency in the subject. Urgent: August Invoice creates time pressure so the reader acts before thinking.
- Look-alike sender address. The mail claims to be from AWS but comes from
[email protected], with a doubled a. - Look-alike link. The hyperlink text says one thing but leads to
http://aawsinc.com/support, an insecure look-alike domain. - Plain HTTP. The destination is not even encrypted.
- Sent outside business hours, Saturday at 9pm, when nobody is around to verify and the help desk is closed.
- 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.
| Attack | Mechanism | Detection signal |
|---|---|---|
| Password guessing | An 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 policy | Many failures against one account in a short window |
| Dictionary attack | Guesses drawn from a wordlist of likely passwords rather than the full keyspace, usually against a captured hash offline | Offline, so often invisible. Detect the theft of the hash instead |
| Password spraying | A 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 trigger | One or two failures against very many accounts, from one source |
| Credential stuffing | Credentials obtained from breach dumps of unrelated services are replayed against target accounts, relying on credential overlap from password reuse | High 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.
| Flood | Protocol | Mechanism |
|---|---|---|
| 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
A successful MITM attack has two distinct phases, and the exam question turns on keeping them apart:
| Phase 1: interception | Phase 2: decryption | |
|---|---|---|
| Goal | Get the traffic to flow through the attacker | Make the intercepted traffic readable |
| Problem being solved | Routing. The victim traffic normally never touches the attacker | Encryption. Sitting in the path is useless if everything is ciphertext |
| Example technique | ARP 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 first | SSL 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 techniques | DNS spoofing or cache poisoning, rogue access point or evil twin Wi-Fi, DHCP spoofing, BGP hijack | Forged or fraudulent certificates, downgrade to weak cipher suites, exploiting a client that ignores certificate warnings |
| Countermeasure | Dynamic ARP inspection and DHCP snooping on switches, 802.1X port authentication, static ARP for critical hosts, avoiding untrusted Wi-Fi, VPN | HSTS 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
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:
- 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.
- Check the referring URL. Only accept requests that originated from your own site, by validating the Referer or Origin header.
- SameSite cookies. Set session cookies to
SameSite=LaxorStrictso the browser does not attach them to cross-site requests at all, which removes the ambient authority the attack depends on. - Use the right HTTP method. Never allow state-changing actions over GET, so a plain link or image tag cannot trigger them.
- 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.
- 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:
- 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.
- Perform input validation. Allow-list the expected type, length, format and range on every parameter. A supporting control, not a substitute for the first.
- 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.
- Where the injected code executes. SQLi executes on the server, inside the database engine. Reflected XSS executes in the victim browser.
- What is being confused. SQLi confuses data with SQL. XSS confuses data with HTML or JavaScript.
- Who is the victim. SQLi victimises the application and every record it holds. Reflected XSS victimises the individual user who clicks the link.
- 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.
- 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:
- 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.
- 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.
- 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
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.
| Mechanism | Trust abused | Impact | |
|---|---|---|---|
| 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:
- 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.
- Never build code by string concatenation. Prepared statements and parameterised queries for SQL; safe DOM APIs and templating with automatic escaping for HTML.
- Enforce anti-CSRF tokens and SameSite cookies on every state-changing endpoint, and never allow state change over GET.
- Harden the session:
HttpOnly,Secure,SameSite, regeneration at login, idle and absolute timeouts. - Apply least privilege to the application database account and the service account, so a successful attack has the smallest possible blast radius.
- Use memory-safe languages or safe APIs where buffer overflow is possible, plus compiler protections: stack canaries, ASLR, DEP, bounds checking.
- Add a Content Security Policy that blocks inline script, which turns most XSS from a compromise into a blocked console error.
- Test continuously: SAST and DAST in the pipeline, dependency and supply-chain scanning, a WAF as compensating control, and periodic penetration testing.
- Handle errors quietly. Verbose database and stack-trace errors hand the attacker the map, as the Chapter 7 DREAD example shows.
- 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.
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.
If signature-based antivirus cannot detect a zero-day exploit, what security controls could have alerted us to this attack?
Why didn’t applying Microsoft’s March 2nd emergency patch fix the problem for servers that were already exploited?
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?
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
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
- 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.
- 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.
- 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.
- 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.
| Strategic | Operational | Tactical / technical | |
|---|---|---|---|
| Time horizon | Months to years | Days to weeks | Real time to hours |
| Audience | CISO, board, chief risk officer, executives | SOC managers, incident response, IT security lead | SOC analysts, and the tools themselves: SIEM, firewall, EDR |
| Format | Reports, briefings, threat landscape papers | Campaign reports, actor advisories, TTP briefs | STIX/TAXII feeds, CSV blocklists, YARA and Sigma rules |
| Content | Threat actor profiling, geopolitical and economic drivers, long-term attack trend analysis, sector-specific landscape reports | Active campaign tracking, adversary TTP detail, context around IoCs, emerging vulnerabilities exploited in the wild before patches spread | Malicious IPs, domains, file hashes, URLs, email indicators, YARA and Sigma rules |
| Goes stale | Slowly, useful for 12 months or more | Quickly, in days as the campaign evolves | Within 24 to 48 hours as infrastructure rotates |
| Action taken | Review security architecture, reprioritise the multi-year investment roadmap | Brief staff this week, update SIEM rules, block listed domains | Ingest 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[.]comandworkday-hrportal[.]netto block at the gateway and proxy; C2 addresses91.215.85.209,185.220.101.47,45.142.212.100to block outbound; the SHA-256 of the Qakbot dropper; and a YARA ruleQakbot_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
| Level | Pain for the attacker | What it costs them to change it |
|---|---|---|
| TTPs | Tough | Retraining, new tooling, a new way of operating. This is behaviour, not an artefact, so changing it means changing who they are |
| Tools | Challenging | Find, buy or build a replacement, then learn it. Weeks or months |
| Network / host artefacts | Annoying | Reconfigure the implant: mutex names, registry keys, user agents, URI patterns. Real effort |
| Domain names | Simple | Register a new one. Costs a few dollars and some minutes |
| IP addresses | Easy | Spin up another VPS or rotate through a proxy pool. Automatic |
| Hash values | Trivial | Change 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.
| Phase | What happens | Common 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. Collection | Gather raw data from the sources chosen in phase 1: internal logs and telemetry, commercial feeds, open sources, ISACs and sharing communities, dark web, human sources | Collecting everything available rather than what the requirements demand, which buries analysts in noise |
| 3. Processing | Turn raw collected data into a usable form: normalise formats, translate, deduplicate, enrich, score confidence, discard the irrelevant | Treating raw feed entries as finished intelligence and pushing them straight to consumers |
| 4. Analysis | Interpret the processed data against the requirements. Correlate, look for patterns, judge significance, and produce assessments with stated confidence. This is where data becomes intelligence | Reporting observations without judgement, so the consumer still has to work out what it means |
| 5. Dissemination | Deliver the finished product to each audience in the format and at the tempo they can use, which is why the three types exist | One report for every audience. The board gets hashes, the SIEM gets prose, nobody acts |
| 6. Feedback | Consumers say what was useful, what was missing and what decisions it changed. That refines the requirements and restarts the cycle | Never 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
It answers four questions, and quoting them is the cheapest two marks in the chapter:
- What are we building?
- What can go wrong?
- What do we do about it?
- 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 point | The design. You decompose the system you are building | The attacker, or an incident that already happened |
| When | During design, before code exists | After deployment, after a pentest, or after a breach |
| Question asked | Where could this design go wrong? | How did they get in, and how would they do it again? |
| Typical method | STRIDE applied to a data flow diagram, each element checked against all six threat categories | Attack trees, red teaming, ATT&CK-driven simulation, post-incident analysis |
| Example | Before launching a mobile banking app, the team draws the data flows and finds that API endpoints lack authorisation checks, so they fix it before release | After 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 fix | Lowest. It is a design change on a whiteboard | Highest. 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.
| Letter | Threat | Property it violates | Example |
|---|---|---|---|
| S | Spoofing: pretending to be someone or something else to gain unauthorised access | Authentication | Using stolen credentials, forging a token, ARP or DNS spoofing |
| T | Tampering: unauthorised modification of data or code | Integrity | Altering a price in a request, modifying a config file, poisoning an update |
| R | Repudiation: denying having performed an action, with no way to prove otherwise | Non-repudiation | A user denies making a transfer and there is no signed, tamper-proof audit log |
| I | Information disclosure: exposure of information to unauthorised parties | Confidentiality | Verbose error messages, an unauthenticated API, a public storage bucket |
| D | Denial of service: disrupting availability of a system or service | Availability | Resource exhaustion, a flood, an expensive unbounded query |
| E | Elevation of privilege: gaining higher access rights than intended | Authorisation | A missing authorisation check, an exploited buffer overflow, a rootkit |
DREAD
- 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?
A penetration test on a customer-facing web application reveals three findings. Score each 1 to 10 and fix in rank order.
| Finding | D | R | E | A | D | Total | Reasoning |
|---|---|---|---|---|---|---|---|
| SQL injection on the login page | 10 | 10 | 9 | 10 | 8 | 47 | Full 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 internet | 9 | 8 | 5 | 7 | 7 | 36 | Administrative takeover if credentials are guessed or sprayed, but it still needs credentials, so exploitability is lower |
| Verbose errors leaking server version | 2 | 10 | 2 | 2 | 10 | 26 | Trivial 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.
- Define objectives. Understand business goals, compliance requirements and risk appetite.
- Define technical scope. Map the technical environment: infrastructure, applications, dependencies, data flows.
- Application decomposition. Break the application into components: data flows, trust boundaries, entry points, assets.
- Threat analysis. Identify realistic threats using threat intelligence, attacker profiles and historical data. This is where MITRE ATT&CK plugs in.
- Vulnerability and weakness analysis. Correlate known vulnerabilities, CVEs and code weaknesses with the threats identified.
- Attack modelling and simulation. Build attack trees and simulate how an attacker would chain vulnerabilities together to reach a goal.
- Risk and impact analysis. Quantify the business impact of successful attacks and prioritise countermeasures accordingly.
A bank is launching a mobile banking app allowing balance checks, transfers and bill payments.
Stage 4, threat actors and threats.
| Threat actor | Motivation | Capability |
|---|---|---|
| Organised cybercriminal groups | Financial gain | High |
| Opportunistic attackers | Financial gain | Low to medium |
| Malicious insiders (bank staff) | Financial gain, sabotage | Medium |
| Nation-state actors | Espionage, disruption | Very high |
Stage 5, threats mapped to vulnerabilities.
| Threat | Identified vulnerability |
|---|---|
| Credential stuffing using leaked username and password lists | No account lockout policy; MFA not enforced for all users |
| Man-in-the-middle interception between app and API | Certificate pinning not implemented in the mobile app |
| API abuse of poorly secured endpoints | Several API endpoints missing authorisation checks |
| Session hijacking of active tokens | Session tokens do not expire; no anomaly detection on session usage |
| Insider fraud by privileged staff | Excessive privileges granted to operations staff; no transaction audit logging |
| Third-party compromise of the bill payment gateway | Gateway connection not validated; no integrity checks on responses |
Stage 7, prioritised by business impact.
| Attack scenario | Likelihood | Business impact | Priority |
|---|---|---|---|
| Credential stuffing account takeover | High | Critical: direct financial loss, regulatory breach | P1, fix immediately |
| API abuse, unauthorised data access | Medium | Critical: GDPR breach, regulatory fines | P1, fix immediately |
| Session hijacking | Medium | High: account takeover, reputational damage | P2, fix before launch |
| MitM attack | Low | High: data interception, credential theft | P2, fix before launch |
| Insider fraud | Low | High: financial loss, regulatory scrutiny | P3, mitigate with controls |
| Third-party gateway compromise | Low | Medium: payment redirection, customer impact | P3, 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.
| # | Stage | Definition | Example | Defender action |
|---|---|---|---|---|
| 1 | Reconnaissance | Gathering information about the target before any attack begins | Attacker scrapes LinkedIn to identify IT staff, then uses Shodan to find exposed RDP ports | Reduce public exposure, monitor for scanning, brand and domain monitoring |
| 2 | Weaponisation | Packaging a payload and exploit into a deliverable weapon | Attacker embeds a macro-based backdoor into a Word document | Happens on attacker infrastructure, so defend by intelligence sharing and knowing the tooling |
| 3 | Delivery | Transmitting the weapon to the target | Phishing email sent to a finance employee with the malicious Word document attached | Email filtering, attachment sandboxing, web proxy, user awareness training |
| 4 | Exploitation | Triggering the exploit to execute code on the victim system | Employee opens the document, the macro runs and exploits a vulnerable Office version | Patching, macro policy, application allow-listing, exploit mitigation |
| 5 | Installation | Establishing persistence so access survives reboots and discovery | Malware writes itself to the Windows registry run key and drops a RAT | EDR, autorun monitoring, file integrity monitoring, least privilege |
| 6 | Command and Control | Opening a channel for the attacker to remotely control the compromised system | The RAT beacons to an attacker-controlled server over HTTPS every 60 seconds | Egress filtering, DNS and proxy inspection, NDR beacon detection, C2 blocklists |
| 7 | Actions on Objectives | Carrying out the ultimate goal of the attack | Attacker exfiltrates the customer database over the C2 channel | DLP, egress monitoring, segmentation, encryption at rest, backups |
- 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.
- 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.
- 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.
- 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:
- Threat modelling input. Replaces generic brainstorming with evidence-based attacker behaviour.
- Red teaming and penetration testing. Red teams plan simulations that mirror actual adversary behaviour, so tests stay realistic and relevant.
- Security gap analysis. Map existing controls against the matrix to see which techniques you can detect or prevent, and which leave you exposed.
- Detection engineering. Blue teams write SIEM and EDR rules against techniques, ensuring coverage of known attacker methods.
- 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.
- Threat intelligence. Correlate actor profiles with the techniques they are known to use, prioritising defences against the most relevant adversaries.
- 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 Chain | MITRE ATT&CK | |
|---|---|---|
| Shape | Linear, 7 sequential stages | A matrix, 14 enterprise tactics with hundreds of techniques, entered and re-entered in any order |
| Granularity | High level. Tells you the attacker is at installation | Specific. Tells you the attacker used T1547.001 Registry Run Keys |
| Origin | A model, derived from military doctrine | Empirical, built from observed real-world intrusions and mapped to named actor groups |
| Covers post-compromise | Weakly. Everything after installation collapses into two stages | Thoroughly. Discovery, lateral movement, collection, defence evasion each get a full column |
| Best for | Explaining an intrusion to management, structuring layered defence | Detection engineering, hunting, gap analysis, red team planning |
| Execution | Persistence | Exfiltration |
|---|---|---|
| Command & Scripting Interpreter | Registry Run Keys | Exfil Over C2 Channel |
| Scheduled Task/Job | Scheduled Task/Job | Exfil Over Web Service |
| User Execution | Create Account | Automated Exfiltration |
| Native API | Boot/Logon Autostart | Exfil 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
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:
- Finds what tools miss. Surfaces novel and human-driven attacks that evade automated, signature-based detection.
- Shrinks dwell time. Attackers are found and contained sooner, so less time to move laterally or exfiltrate.
- Surfaces hidden gaps. Reveals visibility blind spots and process weaknesses. Even a hunt that finds nothing is valuable, because it proves coverage.
- 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-driven | Intelligence-driven | Analytics-driven | |
|---|---|---|---|
| Trigger | An idea about attacker behaviour, often based on MITRE ATT&CK TTPs | New threat intelligence: IoCs, TTPs, or a report on an active campaign | Statistical or machine-learning flagged outliers in the environment |
| Example | If 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. |
| Strength | Finds unknown-unknowns, works at the top of the Pyramid of Pain | Fast, concrete, immediately actionable | Scales across huge data, finds what nobody thought to look for |
| Weakness | Only as good as the hypothesis and the analyst | Reactive and short-lived, since IoCs rotate within days | Noisy, 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.
| Vertex | Meaning | Worked example: a phishing intrusion |
|---|---|---|
| Adversary | Who is doing it | A financially motivated criminal group |
| Capability | What they used | A malicious macro embedded in an invoice attachment |
| Infrastructure | What they used it from or through | A C2 server IP the macro calls out to |
| Victim | Who it was used against | A 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.
| Level | Name | What it looks like |
|---|---|---|
| HMM0 | Initial | Relies almost entirely on automated alerting. Little to no proactive hunting |
| HMM1 | Minimal | Incorporates threat intelligence, mostly IoC searches. Moderate data collection |
| HMM2 | Procedural | Follows established hunting procedures created by others. High data collection |
| HMM3 | Innovative | Creates new data analysis procedures in house. High data collection |
| HMM4 | Leading | Automates 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
| Data | Tools | Skills |
|---|---|---|
| SIEM logs, EDR telemetry, NetFlow, DNS and Sysmon logs | Splunk or ELK, YARA, osquery, MITRE ATT&CK Navigator | Hypothesis-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.
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).
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.
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.exespawningpowershell.exe→ PowerShell spawnsPsExec.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.
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.
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.
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.
SIEM: Security Information and Event Management
- 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
- 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
- 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
- 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
- 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
- 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 data | Core question it answers | Output | Blind spot | |
|---|---|---|---|---|
| SIEM | Logs from everything | Did anything suspicious happen anywhere? | Correlated, prioritised alerts and a searchable archive | Only sees what is logged; produces more alerts than can be triaged |
| SOAR | Alerts and cases from the SIEM and other tools | What do we do about it, automatically? | Executed playbooks, containment actions, structured cases | Only as good as the playbook; poor input means fast wrong action |
| UEBA | Identity, access and activity history | Is this entity behaving unlike itself and its peers? | Risk-scored anomalies per user and device | Needs a learning period; an anomaly is not proof of attack |
| NDR | Packets, flows, DNS | What is actually moving on the wire? | Behavioural network detections, east-west visibility | Limited payload insight when encrypted; no host-level context |
| EDR | Endpoint process, file and network telemetry | What happened on this machine, and can I stop it? | Full process tree, host isolation, real-time response | Needs an agent, so unmanaged, IoT, OT and legacy devices are invisible |
| XDR | All of the above, natively correlated | Are these separate alerts actually one attack? | A single prioritised incident spanning layers | Works best inside one vendor ecosystem; weaker on arbitrary third-party data |
- UEBA scores a finance account as anomalous: 2am login from a new country, ten times the normal file access volume.
- EDR on that user machine shows Word spawning PowerShell, then PsExec reaching two servers the account has never touched.
- 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.
- 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.
- XDR presents all four as a single incident with one timeline, rather than four tickets in four consoles.
- 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.
| Incident | Year | What happened | The policy gap |
|---|---|---|---|
| Equifax | 2017 | An unpatched known vulnerability exposed 147 million records | No enforced patching and vulnerability management policy |
| WannaCry | 2017 | Ransomware hit 150+ countries via unpatched Windows | No patch cadence and no incident response plan |
| Marriott | 2018 | 339 million guest records stolen through a third party | Weak password and third-party access controls |
| SolarWinds | 2020 | A malicious update pushed to thousands of organisations | Gaps in supply chain policy and audit |
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
- 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.
| Layer | What it is | Status | Example |
|---|---|---|---|
| Policy | A plan or course of action that guides decisions. High level, broad and general | Mandatory | All company data must be protected according to its classification |
| Standard | Compulsory requirements for hardware, software and controls. The detailed statement of what must be done to comply with the policy | Mandatory | All laptops use AES-256 full-disk encryption; PCI-DSS; ISO 27001 |
| Baseline | The minimum security level every system must meet. Systems below it come out of production until brought up | Mandatory | A hardened OS build image; the Common Criteria or ITSEC evaluation level |
| Guideline | Recommended actions and best practice. Flexible, and used where no standard exists or to explain how to apply one | Recommended | Prefer passphrases over complex short passwords |
| Procedure | Step-by-step instructions to implement a control | Mandatory | The 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:
- Developed using industry-accepted practices
- Distributed by all appropriate methods
- Read by all employees
- Understood by all employees
- Formally agreed to by act or affirmation
- 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.
| EISP | ISSP | SysSP | |
|---|---|---|---|
| Full name | Enterprise Information Security Policy | Issue-Specific Security Policy | System-Specific Security Policy |
| Level | Strategic | Tactical | Operational |
| Scope | The whole organisation | One technology or process | One system or device |
| Purpose | Sets direction, scope and tone. An executive-level document | Governs the proper use of a specific technology | Configures a particular system, often written as standards and procedures |
| Owner | Senior management / CISO | The function owning that technology | Management plus the system administrator |
| Example | The corporate information security policy signed by the CEO | The email policy, the BYOD policy, the internet acceptable use policy | The 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 guidance | Technical specifications | |
|---|---|---|
| Written by | Management | The system administrator |
| Says | What the system must achieve, and why | How the system is configured to achieve it |
| Purpose | Guides how the technology is implemented and configured. Applies to anything affecting confidentiality, integrity or availability. Informs technologists of management intent | The administrator directions for implementing managerial policy. Each type of equipment has its own technical SysSP |
| Firewall example | The 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.
| Document | What it governs |
|---|---|
| Acceptable Use Policy | What users may and may not do with company assets |
| Access Control Policy | Who may reach which systems and data |
| Remote Access Policy | Secure offsite connectivity, typically VPN |
| Data Breach Response Policy | The steps taken when data is exposed |
| Disaster Recovery Plan | Restoring IT after an outage |
| Business Continuity Plan | Keeping the business running while IT is down |
7.3Security auditing and compliance
What an audit is, and why it is an assurance engagement
| Type | Assurance given, and to whom |
|---|---|
| Financial | That the statements give a true and fair view, to shareholders |
| Internal | That internal controls work and risk is managed, to management and the board |
| Statutory | That the organisation is compliant, to regulators |
| IS / IT | That 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.
- Planning. Define objectives, scope, risk and controls; build checklists; schedule the work; hold the kick-off meeting.
- Fieldwork and documentation. Run the checklist, gather data and conduct interviews, record findings in working papers.
- 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.
- Solution development. Agree an action plan, via a recommendation, a management response, or a jointly agreed solution.
- Report drafting and issuance. Scope, executive summary, issues and action plans, conclusion. Then distribute.
- 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
| Kind | What it is | Force | Examples |
|---|---|---|---|
| Regulation | Law you must obey | Enforced by government. Non-compliance means fines or legal action | GDPR, HIPAA |
| Standard | A defined, published, often certifiable specification you can be measured against | Contractual or certification-driven rather than legal | ISO 27001, PCI-DSS |
| Framework | A structured, flexible model of best practice you adapt to your own context | Voluntary, adopted because it works | NIST CSF, SOC 2 |
GDPR, HIPAA and SOC 2 at a glance
| GDPR | HIPAA | SOC 2 | |
|---|---|---|---|
| Type | EU regulation (law) | US federal law | Attestation / audit report |
| Protects | Personal data of EU residents | Protected health information (PHI) | Customer data held at service providers |
| Applies to | Anyone handling EU personal data | Healthcare providers, plans and business associates | SaaS, cloud and service organisations |
| Built around | 7 data-protection principles | Privacy, Security and Breach rules | 5 Trust Services Criteria |
| Penalty or proof | Up to €20m or 4% of global revenue | Fines plus criminal liability | A 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
| Framework | What it gives you |
|---|---|
| ISO/IEC 27001 | The international standard for an Information Security Management System. Certifiable and risk-based |
| NIST CSF | Five functions: Identify, Protect, Detect, Respond, Recover. Flexible and widely adopted |
| PCI-DSS | Mandatory for anyone storing or processing payment-card data. Prescriptive controls |
| SOC 2 | Trust Services Criteria for service providers. Type I is design, Type II is operating effectiveness |
| CIS Controls | Prioritised, prescriptive safeguards. A practical starting point for defence |
| ITIL / COBIT | Service-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.
| Method | The question it answers | Character |
|---|---|---|
| Security audit | Do the right controls exist and are they documented? | Checklist-driven, evidence-based, often for compliance. Broad, not deep |
| Vulnerability assessment | What weaknesses can we find? | Broad, largely automated scan that finds and lists known weaknesses. No exploitation |
| Penetration test | Can 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:
- Scope and plan. Agree targets, rules of engagement, timing and authorisation.
- Discover. Enumerate assets, services and the attack surface.
- Analyse. Identify and rank weaknesses, remove false positives.
- Report. Communicate findings, risk ratings and recommendations.
- Remediate. Owners fix the issues per the agreed action plan.
- Verify. Re-test to confirm the fix, then repeat the cycle.
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
How much does the tester know?
| Type | Knowledge given | What it models | Trade-off |
|---|---|---|---|
| Black box | None | An external attacker with zero inside information | Most realistic, but slowest, and time spent on reconnaissance is time not spent testing |
| Grey box | Partial: some access or credentials | A malicious insider or a compromised user account | The usual choice. Realistic enough, and efficient |
| White box | Full: architecture, source and credentials | An attacker with perfect knowledge, or a thorough internal review | Most 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:
- Reconnaissance. Gather information: OSINT, footprinting, passive and active recon.
- Scanning and enumeration. Map live hosts, open ports, services and versions.
- Gaining access. Exploit a weakness to get an initial foothold.
- Maintaining access. Escalate privilege, move laterally, establish persistence.
- 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.
- 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 scanning | Penetration testing | |
|---|---|---|
| Goal | Find and list known weaknesses | Exploit weaknesses to prove impact |
| Method | Automated tools | Mostly manual, human-led |
| Breadth vs depth | Broad, shallow | Narrow, deep |
| Frequency | Continuous, weekly or monthly | Periodic, for example annually or per release |
| Output | A prioritised list of findings | A narrative of the attack path plus evidence |
| Cost and skill | Lower. Routine hygiene | Higher. 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.
| Section | Content | Audience |
|---|---|---|
| Executive summary | Business-level risk and headline issues | Leadership |
| Scope and methodology | What was tested, how, and the rules of engagement | Both. It also bounds what the report does not cover |
| Findings and evidence | Each issue with proof, affected assets and reproduction steps | Engineers |
| Risk rating | Severity and likelihood per finding, for example CVSS | Both. It is how the two audiences agree on order |
| Recommendations | Concrete, prioritised remediation for each issue | Engineers and their managers |
| Conclusion and appendices | Overall posture, raw data and references | Both |
Scoring and prioritising risk
You cannot fix everything at once, so severity plus context decides what goes first.
| CVSS score | Severity | Expected action |
|---|---|---|
| 9.0 to 10.0 | Critical | Fix immediately |
| 7.0 to 8.9 | High | Fix within days |
| 4.0 to 6.9 | Medium | Planned remediation |
| 0.1 to 3.9 | Low | Fix 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:
- Recommendation. The auditor recommends a fix, but it may not be acted on. Weakest, because nobody is obliged to respond.
- Management response. The auditor reports the issue and management must formally respond, accepting, rejecting or scheduling it. This creates an accountable record.
- 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.
- Policy is the foundation. Cheap to write, hard to embed. It starts and ends the security programme.
- Know the three tiers. EISP sets strategy, ISSP governs technology use, SysSP configures systems.
- Audit equals assurance. Reasonable, not full: sampling-based confidence that controls work.
- Compliance is a floor. Meeting GDPR, HIPAA or SOC 2 is necessary and never sufficient.
- Test reality, with permission. Scanning finds breadth, penetration testing proves depth. Always authorised.
- 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.
(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.
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.
What types of logs can be integrated into a SIEM?
With reference to SIEM architecture, explain how different stages (data collection, normalization, correlation, storage, reporting).
What is Log Management? Describe four key benefits an effective log management solution provides to an organization, such as improved security and faster troubleshooting.
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.
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.
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.
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.
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.
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.
Describe the concepts like responsible disclouse and pretecting Whistleblower in your own words with examples.
Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent?
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
| # | Lab | Activity | Chapter |
|---|---|---|---|
| 1 | Risk Assessment | Analyse a fictional organisation assets, threats and vulnerabilities and calculate risk. Create a risk assessment matrix, prioritise risks, recommend mitigation strategies | 1 |
| 2 | Bug-Bee Security Project | A web application vulnerability assessment. Collaborate to assess a provided application, identify vulnerabilities and potential exploits, suggest mitigations, document findings and share insights | 2, 7 |
| 3 | Phishing Awareness | Simulate a phishing attack. Recognise phishing emails, report them, discuss best practice for avoiding them | 2 |
| 4 | DDoS Attack | Experience a simulated DDoS attack on a network using the LOIC tool. Configure and test mitigation such as rate limiting and traffic filtering | 2 |
| 5 | Threat Intelligence Gathering | Gather intelligence related to a specific industry using open-source tools, then collect and analyse it | 3 |
| 6 | MITRE ATT&CK Framework | Investigate a simulated attack scenario, identify attack techniques and tactics, propose defensive measures | 3 |
| 7 | Threat Hunting Simulation | Simulate a hunt in a controlled environment using real-world techniques to detect and respond to threats | 3 |
| 8 | Log Collection, Parsing and Analysis | Collect and analyse logs from various sources, examine them for indicators of compromise, generate reports, and parse log data with log parsing tools and regex patterns | 4 |
| 9 | Data Visualisation | Visualise security data to identify trends and anomalies, creating dashboards and reports | 4 |
| 10 | SIEM Implementation | Deploy a SIEM in a lab environment, configure data sources, create dashboards, set up alerting | 4, 5 |
| 11 | Integrate SIEM, SOAR and EDR | Demonstrate integration and collaboration between the three for advanced detection and response | 5 |
| 12 | Incident Triage | Investigate and triage a security incident, following a response playbook to identify and categorise it | 6 |
| 13 | Access Control Configuration | Security controls, IAAA and MFA. Configure access controls for a network, implement ACLs and test permissions | 1 |
| 14 | Compliance Audit | Conduct a compliance audit against a security policy using auditing tools | 7 |
| 15 | Security Policies and Procedures | Develop security policies. Write a sample Acceptable Use Policy, a Password Policy and an Incident Response Plan | 7 |
| 16 | Privacy Impact Assessment | Evaluate the privacy impact of a new technology or system and recommend mitigations | 8 |
| 17 | Assessing 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 recommendations | 8 |
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
- Matt Bishop, Computer Security: Art and Science, second edition, Pearson Education
- William Stallings, Network Security Essentials, third edition
- Don Murdoch, Blue Team Handbook: SOC, SIEM and Threat Hunting Use Cases, Notes from the Field
- Yuri Diogenes and Erdal Ozkaya, Cybersecurity: Attack and Defense Strategies, Infrastructure Security with Red Team and Blue Team Tactics
- Matt Walker, CEH Certified Ethical Hacker All-in-One Exam Guide, fourth edition (2019)
- Michael E. Whitman and Herbert J. Mattord, Management of Information Security, fourth edition
- Hands-On Ethical Hacking and Network Defense, third edition
- Electronic Transaction Act (ETA) 2008
- Privacy Act 2018
Evaluation scheme
The questions cover all chapters of the syllabus. There may be minor deviation in marks distribution.
| Chapter | Title | Hours | Marks |
|---|---|---|---|
| 1 | Cybersecurity Concepts and Principles | 4 | 7 |
| 2 | Malware and Cyber Attacks | 9 | 15 |
| 3 | Cyber Threat Modelling and Threat Hunting | 9 | 15 |
| 4 | Log Management, Data Visualisation and Security Monitoring | 7 | 12 |
| 5 | Emerging Technologies in Security Operations | 4 | 8 |
| 6 | Incident Detection and Response | 6 | 10 |
| 7 | Security Policy and Audit | 4 | 7 |
| 8 | The Ethics of Cyber Security | 2 | 6 |
| Total | 45 | 80 |
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